Skip to content

Commit

Permalink
feat:update deployments to use FallbackRoutingHook (#3179)
Browse files Browse the repository at this point in the history
### Description

- mainnet3, testnet4 should be using fallback routing hooks because it's
more "porous" for first-time deployers of hyperlane to have
merkleTreeHook out of the box

### Drive-by changes

- added overrides to configureHook in basedeployer and setHook in
hookdeployer
- added fetching local rpc first logic in infra/chains and then secrets
rpc if needed. This would mean the forking and live setup will be closer
as the rpc urls will be the same between the two.

### Related issues

None

### Backward compatibility

Yes

### Testing

Fork
  • Loading branch information
aroralanuk authored Jan 29, 2024
1 parent 3bb4d87 commit ff77135
Show file tree
Hide file tree
Showing 12 changed files with 889 additions and 345 deletions.
654 changes: 343 additions & 311 deletions rust/config/mainnet3_config.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions typescript/infra/config/environments/mainnet3/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const ethereumMainnetConfigs: ChainMap<ChainMetadata> = {
confirmations: 3,
},
transactionOverrides: {
maxFeePerGas: 500 * 10 ** 9, // 500 gwei
maxPriorityFeePerGas: 100 * 10 ** 9, // 100 gwei
maxFeePerGas: 1000 * 10 ** 9, // 500 gwei
maxPriorityFeePerGas: 200 * 10 ** 9, // 100 gwei
// gasPrice: 50 * 10 ** 9, // 50 gwei
},
},
Expand Down
17 changes: 13 additions & 4 deletions typescript/infra/config/environments/mainnet3/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
AggregationIsmConfig,
ChainMap,
CoreConfig,
FallbackRoutingHookConfig,
HookType,
IgpHookConfig,
IsmType,
Expand Down Expand Up @@ -77,10 +78,18 @@ export const core: ChainMap<CoreConfig> = objMap(owners, (local, owner) => {
type: HookType.PAUSABLE,
...owner,
};

const defaultHook: AggregationHookConfig = {
type: HookType.AGGREGATION,
hooks: [pausableHook, merkleHook, igpHook],
const aggregationHooks = objMap(
originMultisigs,
(_origin, _): AggregationHookConfig => ({
type: HookType.AGGREGATION,
hooks: [pausableHook, merkleHook, igpHook],
}),
);
const defaultHook: FallbackRoutingHookConfig = {
type: HookType.FALLBACK_ROUTING,
...owner,
domains: aggregationHooks,
fallback: merkleHook,
};

const requiredHook: ProtocolFeeHookConfig = {
Expand Down
Loading

0 comments on commit ff77135

Please sign in to comment.