Skip to content

Commit

Permalink
feat: enroll appchain, treasure, zklink (#4973)
Browse files Browse the repository at this point in the history
### Description

- enroll appchain, treasure, zklink
- owner updates
	- add swell safe
	- add ICAs for appchain, lumiaprism
- validator updates
	- swell
		- add luganodes, merkly, mitosis validator
	- lumiaprism
		- add merkly, mitosis validator
	- Lisk
		- lisk’s own one
	- Aleph Zero
		- alephzero’s own one
	- vana
		- add p2p
	- treasure
		- add treasure, mitosis, P2P validator
	- appchain
		- add merkly, mitosis validator
	- zklink
		- add merkly, mitosis validator
- introduce `HyperlaneICAChecker` to only check/enroll Ethereum ICA
router
- add ability to read `ProxyAdmin` owner transfer txs

### Drive-by changes

- igp updates
- fix: do owner check when inferring calls in governor


### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->

---------

Signed-off-by: pbio <[email protected]>
  • Loading branch information
paulbalaji authored Dec 11, 2024
1 parent 5b70527 commit 5942e9c
Show file tree
Hide file tree
Showing 12 changed files with 315 additions and 122 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-rocks-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': patch
---

Update default validator sets for alephzeroevmmainnet, appchain, lisk, lumiaprism, swell, treasure, vana, zklink.
10 changes: 10 additions & 0 deletions typescript/infra/config/environments/mainnet3/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ export const chainMetadataOverrides: ChainMap<Partial<ChainMetadata>> = {
// maxFeePerGas: 100000 * 10 ** 9, // 100,000 gwei
// },
// },
// taiko: {
// transactionOverrides: {
// gasPrice: 25 * 10 ** 7, // 0.25 gwei
// },
// },
// linea: {
// transactionOverrides: {
// gasPrice: 5 * 10 ** 8, // 0.5 gwei
// },
// },
// zircuit: {
// blocks: {
// confirmations: 3,
Expand Down
32 changes: 16 additions & 16 deletions typescript/infra/config/environments/mainnet3/gasPrices.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
"decimals": 9
},
"astarzkevm": {
"amount": "0.24",
"amount": "0.0988",
"decimals": 9
},
"flame": {
"amount": "101.0",
"decimals": 9
},
"avalanche": {
"amount": "25.0",
"amount": "27.735398516",
"decimals": 9
},
"b3": {
"amount": "0.001000252",
"amount": "0.001000253",
"decimals": 9
},
"base": {
Expand All @@ -60,7 +60,7 @@
"decimals": 9
},
"boba": {
"amount": "0.001000047",
"amount": "0.001000059",
"decimals": 9
},
"bsc": {
Expand Down Expand Up @@ -140,7 +140,7 @@
"decimals": 9
},
"gnosis": {
"amount": "1.500000008",
"amount": "1.500000007",
"decimals": 9
},
"gravity": {
Expand Down Expand Up @@ -176,11 +176,11 @@
"decimals": 9
},
"lisk": {
"amount": "0.00100103",
"amount": "0.001001147",
"decimals": 9
},
"lukso": {
"amount": "0.921815267",
"amount": "1.109955713",
"decimals": 9
},
"lumia": {
Expand All @@ -192,7 +192,7 @@
"decimals": 9
},
"mantapacific": {
"amount": "0.00300029",
"amount": "0.003000983",
"decimals": 9
},
"mantle": {
Expand All @@ -216,7 +216,7 @@
"decimals": 9
},
"mode": {
"amount": "0.001000252",
"amount": "0.001001363",
"decimals": 9
},
"molten": {
Expand All @@ -240,7 +240,7 @@
"decimals": 9
},
"optimism": {
"amount": "0.001065045",
"amount": "0.001000469",
"decimals": 9
},
"orderly": {
Expand All @@ -264,7 +264,7 @@
"decimals": 9
},
"prom": {
"amount": "546.0",
"amount": "51.9",
"decimals": 9
},
"proofofplay": {
Expand All @@ -276,7 +276,7 @@
"decimals": 9
},
"real": {
"amount": "0.04",
"amount": "0.022",
"decimals": 9
},
"redstone": {
Expand All @@ -296,7 +296,7 @@
"decimals": 9
},
"sei": {
"amount": "100.0",
"amount": "3.328028877",
"decimals": 9
},
"shibarium": {
Expand Down Expand Up @@ -336,23 +336,23 @@
"decimals": 9
},
"treasure": {
"amount": "10000.0",
"amount": "702.999550885",
"decimals": 9
},
"unichain": {
"amount": "0.001000252",
"decimals": 9
},
"vana": {
"amount": "0.002488334",
"amount": "0.002986",
"decimals": 9
},
"viction": {
"amount": "0.25",
"decimals": 9
},
"worldchain": {
"amount": "0.00100026",
"amount": "0.001000255",
"decimals": 9
},
"xai": {
Expand Down
7 changes: 7 additions & 0 deletions typescript/infra/config/environments/mainnet3/owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const safes: ChainMap<Address> = {
endurance: '0xaCD1865B262C89Fb0b50dcc8fB095330ae8F35b5',
zircuit: '0x9e2fe7723b018d02cDE4f5cC1A9bC9C65b922Fc8',
zeronetwork: '0xCB21F61A3c8139F18e635d45aD1e62A4A61d2c3D',
swell: '0x5F7771EA40546e2932754C263455Cb0023a55ca7',
};

export const icaOwnerChain = 'ethereum';
Expand Down Expand Up @@ -166,6 +167,12 @@ export const icas: Partial<
vana: '0x29dfa34765e29ea353FC8aB70A19e32a5578E603',
bsquared: '0xd9564EaaA68A327933f758A54450D3A0531E60BB',
superseed: '0x29dfa34765e29ea353FC8aB70A19e32a5578E603',

// Dec 4, 2024 batch
// ----------------------------------------------------------
// swell: '0xff8326468e7AaB51c53D3569cf7C45Dd54c11687', // already has a safe
lumiaprism: '0xAFfA863646D1bC74ecEC0dB1070f069Af065EBf5',
appchain: '0x4F25DFFd10A6D61C365E1a605d07B2ab0E82A7E6',
} as const;

export const DEPLOYER = '0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba';
Expand Down
188 changes: 94 additions & 94 deletions typescript/infra/config/environments/mainnet3/tokenPrices.json
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
{
"ancient8": "3628.85",
"alephzeroevmmainnet": "0.61841",
"apechain": "1.52",
"appchain": "3628.85",
"arbitrum": "3628.85",
"arbitrumnova": "3628.85",
"astar": "0.078025",
"astarzkevm": "3628.85",
"flame": "7.36",
"avalanche": "48.31",
"b3": "3628.85",
"base": "3628.85",
"bitlayer": "95794",
"blast": "3628.85",
"bob": "3628.85",
"boba": "3628.85",
"bsc": "639.49",
"bsquared": "95794",
"celo": "0.983257",
"cheesechain": "0.00180324",
"chilizmainnet": "0.104233",
"coredao": "1.43",
"cyber": "3628.85",
"degenchain": "0.01711559",
"dogechain": "0.421781",
"duckchain": "6.5",
"eclipsemainnet": "3628.85",
"endurance": "3.09",
"ethereum": "3628.85",
"everclear": "3628.85",
"fantom": "1.034",
"flare": "0.03388989",
"flowmainnet": "1.01",
"fraxtal": "3614.4",
"fusemainnet": "0.03486937",
"gnosis": "0.997956",
"gravity": "0.03730451",
"harmony": "0.02834153",
"immutablezkevmmainnet": "1.94",
"inevm": "30.08",
"injective": "30.08",
"kaia": "0.357047",
"kroma": "3628.85",
"linea": "3628.85",
"lisk": "3628.85",
"lukso": "3.33",
"lumia": "1.7",
"lumiaprism": "1.7",
"mantapacific": "3628.85",
"mantle": "0.888186",
"merlin": "95787",
"metal": "3628.85",
"metis": "60.01",
"mint": "3628.85",
"mode": "3628.85",
"molten": "0.284308",
"moonbeam": "0.313413",
"morph": "3628.85",
"neutron": "0.523303",
"oortmainnet": "0.255252",
"optimism": "3628.85",
"orderly": "3628.85",
"osmosis": "0.589662",
"polygon": "0.621246",
"polygonzkevm": "3628.85",
"polynomialfi": "3628.85",
"prom": "6.5",
"proofofplay": "3628.85",
"rarichain": "3628.85",
"ancient8": "3849.95",
"alephzeroevmmainnet": "0.563568",
"apechain": "1.66",
"appchain": "3849.95",
"arbitrum": "3849.95",
"arbitrumnova": "3849.95",
"astar": "0.078825",
"astarzkevm": "3849.95",
"flame": "7.62",
"avalanche": "49.4",
"b3": "3849.95",
"base": "3849.95",
"bitlayer": "98047",
"blast": "3849.95",
"bob": "3849.95",
"boba": "3849.95",
"bsc": "714.94",
"bsquared": "98047",
"celo": "0.916567",
"cheesechain": "0.0015485",
"chilizmainnet": "0.119182",
"coredao": "1.42",
"cyber": "3849.95",
"degenchain": "0.01880045",
"dogechain": "0.429424",
"duckchain": "6.4",
"eclipsemainnet": "3849.95",
"endurance": "3.21",
"ethereum": "3849.95",
"everclear": "3849.95",
"fantom": "1.23",
"flare": "0.02912373",
"flowmainnet": "1.048",
"fraxtal": "3847.8",
"fusemainnet": "0.04124996",
"gnosis": "1.001",
"gravity": "0.03951512",
"harmony": "0.03939191",
"immutablezkevmmainnet": "1.89",
"inevm": "30.43",
"injective": "30.43",
"kaia": "0.282109",
"kroma": "3849.95",
"linea": "3849.95",
"lisk": "3849.95",
"lukso": "2.81",
"lumia": "2.25",
"lumiaprism": "2.25",
"mantapacific": "3849.95",
"mantle": "1.13",
"merlin": "99320",
"metal": "3849.95",
"metis": "59.74",
"mint": "3849.95",
"mode": "3849.95",
"molten": "0.382952",
"moonbeam": "0.345164",
"morph": "3849.95",
"neutron": "0.571583",
"oortmainnet": "0.22645",
"optimism": "3849.95",
"orderly": "3849.95",
"osmosis": "0.699208",
"polygon": "0.633271",
"polygonzkevm": "3849.95",
"polynomialfi": "3849.95",
"prom": "7.16",
"proofofplay": "3849.95",
"rarichain": "3849.95",
"real": "1",
"redstone": "3628.85",
"rootstockmainnet": "95652",
"sanko": "53.86",
"scroll": "3628.85",
"sei": "0.613723",
"shibarium": "0.59728",
"snaxchain": "3628.85",
"solanamainnet": "223.96",
"stride": "0.675504",
"superseed": "3628.85",
"superpositionmainnet": "3628.85",
"swell": "3628.85",
"taiko": "3628.85",
"redstone": "3849.95",
"rootstockmainnet": "98004",
"sanko": "58.27",
"scroll": "3849.95",
"sei": "0.625869",
"shibarium": "0.670964",
"snaxchain": "3849.95",
"solanamainnet": "226.39",
"stride": "0.779753",
"superseed": "3849.95",
"superpositionmainnet": "3849.95",
"swell": "3849.95",
"taiko": "3849.95",
"tangle": "1",
"treasure": "0.64326",
"unichain": "3628.85",
"treasure": "0.638598",
"unichain": "3849.95",
"vana": "1",
"viction": "0.479042",
"worldchain": "3628.85",
"xai": "0.37142",
"xlayer": "53.81",
"zeronetwork": "3628.85",
"zetachain": "0.819612",
"zircuit": "3628.85",
"zklink": "3628.85",
"zksync": "3628.85",
"zoramainnet": "3628.85"
"viction": "0.50166",
"worldchain": "3849.95",
"xai": "0.368066",
"xlayer": "56.38",
"zeronetwork": "3849.95",
"zetachain": "0.805386",
"zircuit": "3849.95",
"zklink": "3849.95",
"zksync": "3849.95",
"zoramainnet": "3849.95"
}
3 changes: 2 additions & 1 deletion typescript/infra/scripts/check/check-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { DeployEnvironment } from '../../src/config/environment.js';
import { HyperlaneAppGovernor } from '../../src/govern/HyperlaneAppGovernor.js';
import { HyperlaneCoreGovernor } from '../../src/govern/HyperlaneCoreGovernor.js';
import { HyperlaneHaasGovernor } from '../../src/govern/HyperlaneHaasGovernor.js';
import { HyperlaneICAChecker } from '../../src/govern/HyperlaneICAChecker.js';
import { HyperlaneIgpGovernor } from '../../src/govern/HyperlaneIgpGovernor.js';
import { ProxiedRouterGovernor } from '../../src/govern/ProxiedRouterGovernor.js';
import { Role } from '../../src/roles.js';
Expand Down Expand Up @@ -148,7 +149,7 @@ export async function getGovernor(
governor = new ProxiedRouterGovernor(checker);
} else if (module === Modules.HAAS) {
chainsToSkip.forEach((chain) => delete routerConfig[chain]);
const icaChecker = new InterchainAccountChecker(
const icaChecker = new HyperlaneICAChecker(
multiProvider,
ica,
objFilter(
Expand Down
Loading

0 comments on commit 5942e9c

Please sign in to comment.