Skip to content

Commit

Permalink
feat: enroll new chains + validators on default ISMs (#4694)
Browse files Browse the repository at this point in the history
### Description

feat: enroll new chains + validators on default ISMs

- migrate new chains to ICAs
- migrate some existing SAFE owned chains to ICAs
- ensure defaultHook on inevm is made hot again
- add J to safe signers

### Drive-by changes

- IGP gas/token price updates
- add tx overrides when deploying ICA accounts
- swap out A for J on safe signers
- add support for updating owners when doing a safe multisend
- add support for checking and surfacing defaulthook/requiredhook owner
violations
- improve logging + skip bytecode mismatches for now
- parallelise call inference in base app governor
- parallelise deployment of ICAs in get-owner-ica.ts
- reuse existing configured gasPrices for sealevel chains

### Related issues

na

### Backward compatibility

yes

### Testing

will be testing as part of check-deploy
  • Loading branch information
paulbalaji authored Oct 21, 2024
1 parent eeae55b commit 02a5b92
Show file tree
Hide file tree
Showing 16 changed files with 411 additions and 150 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-goats-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Enroll new validators. Add tx overrides when deploying ICA accounts. Core checker now surfaces owner violations for defaultHook and requiredHook. App checker temporarily ignores bytecode mismatch violations.
7 changes: 6 additions & 1 deletion typescript/infra/config/environments/mainnet3/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,17 @@ export const chainMetadataOverrides: ChainMap<Partial<ChainMetadata>> = {
// gasLimit: 6800000, // set when deploying contracts
},
},
// set when deploying contracts
// Deploy-only overrides, set when deploying contracts
// chiliz: {
// transactionOverrides: {
// maxFeePerGas: 100000 * 10 ** 9, // 100,000 gwei
// },
// },
// zircuit: {
// blocks: {
// confirmations: 3,
// },
// },
};

export const getRegistry = async (useSecrets = true): Promise<IRegistry> =>
Expand Down
28 changes: 14 additions & 14 deletions typescript/infra/config/environments/mainnet3/gasPrices.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"decimals": 9
},
"base": {
"amount": "0.008669818",
"amount": "0.015396226",
"decimals": 9
},
"bitlayer": {
"amount": "0.050000007",
"decimals": 9
},
"blast": {
"amount": "0.004707204",
"amount": "0.005712307",
"decimals": 9
},
"bob": {
Expand Down Expand Up @@ -72,27 +72,27 @@
"decimals": 9
},
"eclipsemainnet": {
"amount": "0.001",
"decimals": 9
"amount": "0.0000001",
"decimals": 1
},
"endurance": {
"amount": "3.0756015",
"decimals": 9
},
"ethereum": {
"amount": "21.610477208",
"amount": "14.852716956",
"decimals": 9
},
"everclear": {
"amount": "0.1",
"decimals": 9
},
"flare": {
"amount": "29.55878872",
"amount": "49.455765643",
"decimals": 9
},
"flow": {
"amount": "0.0000001",
"amount": "0.1",
"decimals": 9
},
"fraxtal": {
Expand All @@ -104,11 +104,11 @@
"decimals": 9
},
"gnosis": {
"amount": "2.000000007",
"amount": "1.500000007",
"decimals": 9
},
"immutablezkevm": {
"amount": "10.00000005",
"amount": "10.1",
"decimals": 9
},
"inevm": {
Expand All @@ -124,7 +124,7 @@
"decimals": 9
},
"linea": {
"amount": "0.240000007",
"amount": "0.243",
"decimals": 9
},
"lisk": {
Expand Down Expand Up @@ -156,7 +156,7 @@
"decimals": 9
},
"metis": {
"amount": "1.247735823",
"amount": "1.278943587",
"decimals": 9
},
"mint": {
Expand Down Expand Up @@ -236,12 +236,12 @@
"decimals": 9
},
"shibarium": {
"amount": "28.138673121",
"amount": "39.319461243",
"decimals": 9
},
"solanamainnet": {
"amount": "0.001",
"decimals": 9
"amount": "0.5",
"decimals": 1
},
"superposition": {
"amount": "0.01",
Expand Down
40 changes: 37 additions & 3 deletions typescript/infra/config/environments/mainnet3/owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ export const icas: Partial<
inevm: '0xFDF9EDcb2243D51f5f317b9CEcA8edD2bEEE036e',

// Jul 26, 2024 batch
// -------------------------------------
// ----------------------------------------------------------
xlayer: '0x1571c482fe9E76bbf50829912b1c746792966369',
cheesechain: '0xEe2C5320BE9bC7A1492187cfb289953b53E3ff1b',
worldchain: '0x1996DbFcFB433737fE404F58D2c32A7f5f334210',
// zircuit: '0x0d67c56E818a02ABa58cd2394b95EF26db999aA3', // already has a safe

// Aug 5, 2024 batch
// ----------------------------------------------------------
cyber: '0x984Fe5a45Ac4aaeC4E4655b50f776aB79c9Be19F',
degenchain: '0x22d952d3b9F493442731a3c7660aCaD98e55C00A',
kroma: '0xc1e20A0D78E79B94D71d4bDBC8FD0Af7c856Dd7A',
Expand All @@ -88,9 +89,10 @@ export const icas: Partial<
sanko: '0x5DAcd2f1AafC749F2935A160865Ab1568eC23752',
tangle: '0xCC2aeb692197C7894E561d31ADFE8F79746f7d9F',
xai: '0x22d952d3b9F493442731a3c7660aCaD98e55C00A',
// taiko: '0x483D218D2FEe7FC7204ba15F00C7901acbF9697D', // already has a safe
// taiko: '0x483D218D2FEe7FC7204ba15F00C7901acbF9697D', // renzo chain

// Aug 26, 2024 batch
// ----------------------------------------------------------
astar: '0x6b241544eBa7d89B51b72DF85a0342dAa37371Ca',
astarzkevm: '0x526c6DAee1175A1A2337E703B63593acb327Dde4',
bitlayer: '0xe6239316cA60814229E801fF0B9DD71C9CA29008',
Expand All @@ -101,9 +103,41 @@ export const icas: Partial<
shibarium: '0x6348FAe3a8374dbAAaE84EEe5458AE4063Fe2be7',

// Sep 9, 2024 batch
// ----------------------------
// ----------------------------------------------------------
everclear: '0x63B2075372D6d0565F51210D0A296D3c8a773aB6',
oortmainnet: '0x7021D11F9fAe455AB2f45D72dbc2C64d116Cb657',

// Sep 19, 2024 SAFE --> ICA v1 Migration
// ----------------------------------------------------------
celo: '0x3fA264c58E1365f1d5963B831b864EcdD2ddD19b',
avalanche: '0x8c8695cD9905e22d84E466804ABE55408A87e595',
polygon: '0xBDD25dd5203fedE33FD631e30fEF9b9eF2598ECE',
moonbeam: '0x480e5b5De6a29F07fe8295C60A1845d36b7BfdE6',
gnosis: '0xD42125a4889A7A36F32d7D12bFa0ae52B0AD106b',
scroll: '0x2a3fe2513F4A7813683d480724AB0a3683EfF8AC',
polygonzkevm: '0x66037De438a59C966214B78c1d377c4e93a5C7D1',
ancient8: '0xA9FD5BeB556AB1859D7625B381110a257f56F98C',
redstone: '0x5DAcd2f1AafC749F2935A160865Ab1568eC23752',
mantle: '0x08C880b88335CA3e85Ebb4E461245a7e899863c9',
bob: '0xc99e58b9A4E330e2E4d09e2c94CD3c553904F588',
zetachain: '0xc876B8e63c3ff5b636d9492715BE375644CaD345',
zoramainnet: '0x84977Eb15E0ff5824a6129c789F70e88352C230b',
fusemainnet: '0xbBdb1682B2922C282b56DD716C29db5EFbdb5632',
endurance: '0x470E04D8a3b7938b385093B93CeBd8Db7A1E557C',
// sei: '0xabad187003EdeDd6C720Fc633f929EA632996567', // renzo chain

// Oct 16, 2024 batch
// ----------------------------------------------------------
immutablezkevm: '0x8483e1480B62cB9f0aCecEbF42469b9f4013577a',
rari: '0x1124D54E989570A798769E534eAFbE1444f40AF6',
rootstock: '0x69350aeA98c5195F2c3cC6E6A065d0d8B12F659A',
alephzeroevm: '0x004a4C2e4Cd4F5Bd564fe0A6Ab2Da56258aE576f',
chiliz: '0xb52D281aD2BA9761c16f400d755837493e2baDB7',
lumia: '0x418E10Ac9e0b84022d0636228d05bc74172e0e41',
superposition: '0x34b57ff8fBA8da0cFdA795CC0F874FfaB14B1DE9',
flow: '0xf48377f8A3ddA7AAD7C2460C81d939434c829b45',
metall2: '0x2f1b1B0Fb7652E621316460f6c3b019F61d8dC9a',
polynomial: '0xC20eFa1e5A378af9233e9b24515eb3408d43f900',
} as const;

export const DEPLOYER = '0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba",
"0xc3E966E79eF1aA4751221F55fB8A36589C24C0cA",
"0x3b7f8f68A4FD0420FeA2F42a1eFc53422f205599",
"0x88436919fAa2310d32A36D20d13E0a441D24fAc3",
"0x478be6076f31E9666123B9721D0B6631baD944AF",
"0x003DDD9eEAb62013b7332Ab4CC6B10077a8ca961",
"0xd00d6A31485C93c597D1d8231eeeE0ed17B9844B",
"0x483fd7284A696343FEc0819DDF2cf7E06E8A06E5",
Expand Down
138 changes: 69 additions & 69 deletions typescript/infra/config/environments/mainnet3/tokenPrices.json
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
{
"ancient8": "2437.96",
"alephzeroevm": "0.36741",
"arbitrum": "2437.96",
"astar": "0.059165",
"astarzkevm": "2437.96",
"avalanche": "26.77",
"base": "2437.96",
"bitlayer": "62244",
"blast": "2437.96",
"bob": "2437.96",
"bsc": "572.12",
"celo": "0.764821",
"cheesechain": "0.00448064",
"chiliz": "0.069844",
"coredao": "0.912209",
"cyber": "2437.96",
"degenchain": "0.00934571",
"dogechain": "0.110085",
"eclipsemainnet": "2437.96",
"endurance": "2.11",
"ethereum": "2437.96",
"everclear": "2437.96",
"flare": "0.01456139",
"flow": "0.533589",
"fraxtal": "2434.37",
"fusemainnet": "0.02952521",
"gnosis": "1.009",
"immutablezkevm": "1.48",
"inevm": "20.24",
"injective": "20.24",
"kroma": "2437.96",
"linea": "2437.96",
"lisk": "2437.96",
"lukso": "1.51",
"lumia": "0.954153",
"mantapacific": "2437.96",
"mantle": "0.59813",
"merlin": "62293",
"metall2": "2437.96",
"metis": "34.53",
"mint": "2437.96",
"mode": "2437.96",
"molten": "0.632429",
"moonbeam": "0.163919",
"neutron": "0.390086",
"oortmainnet": "0.11645",
"optimism": "2437.96",
"osmosis": "0.521323",
"polygon": "0.371959",
"polygonzkevm": "2437.96",
"polynomial": "2437.96",
"proofofplay": "2437.96",
"rari": "2437.96",
"ancient8": "2629.74",
"alephzeroevm": "0.381786",
"arbitrum": "2629.74",
"astar": "0.061114",
"astarzkevm": "2629.74",
"avalanche": "27.96",
"base": "2629.74",
"bitlayer": "67813",
"blast": "2629.74",
"bob": "2629.74",
"bsc": "597.89",
"celo": "0.817141",
"cheesechain": "0.00556724",
"chiliz": "0.079288",
"coredao": "0.98348",
"cyber": "2629.74",
"degenchain": "0.00882961",
"dogechain": "0.126177",
"eclipsemainnet": "2629.74",
"endurance": "2.16",
"ethereum": "2629.74",
"everclear": "2629.74",
"flare": "0.01493582",
"flow": "0.558323",
"fraxtal": "2629.35",
"fusemainnet": "0.02901498",
"gnosis": "0.997404",
"immutablezkevm": "1.54",
"inevm": "21.05",
"injective": "21.05",
"kroma": "2629.74",
"linea": "2629.74",
"lisk": "2629.74",
"lukso": "1.47",
"lumia": "0.969511",
"mantapacific": "2629.74",
"mantle": "0.636484",
"merlin": "67781",
"metall2": "2629.74",
"metis": "45.78",
"mint": "2629.74",
"mode": "2629.74",
"molten": "0.436605",
"moonbeam": "0.169406",
"neutron": "0.408859",
"oortmainnet": "0.114304",
"optimism": "2629.74",
"osmosis": "0.558566",
"polygon": "0.371646",
"polygonzkevm": "2629.74",
"polynomial": "2629.74",
"proofofplay": "2629.74",
"rari": "2629.74",
"real": "1",
"redstone": "2437.96",
"rootstock": "61812",
"sanko": "41.59",
"scroll": "2437.96",
"sei": "0.444401",
"shibarium": "0.404651",
"solanamainnet": "144.84",
"superposition": "2437.96",
"taiko": "2437.96",
"redstone": "2629.74",
"rootstock": "67219",
"sanko": "70.7",
"scroll": "2629.74",
"sei": "0.447635",
"shibarium": "0.410927",
"solanamainnet": "155.35",
"superposition": "2629.74",
"taiko": "2629.74",
"tangle": "1",
"viction": "0.359062",
"worldchain": "2437.96",
"xai": "0.215315",
"xlayer": "42.29",
"zetachain": "0.581304",
"zircuit": "2437.96",
"zoramainnet": "2437.96"
"viction": "0.369839",
"worldchain": "2629.74",
"xai": "0.216438",
"xlayer": "41.56",
"zetachain": "0.617959",
"zircuit": "2629.74",
"zoramainnet": "2629.74"
}
Loading

0 comments on commit 02a5b92

Please sign in to comment.