@hyperlane-xyz/sdk 1.0.0-beta0 → 1.0.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -3
- package/dist/HyperlaneApp.d.ts +13 -0
- package/dist/HyperlaneApp.d.ts.map +1 -0
- package/dist/HyperlaneApp.js +25 -0
- package/dist/HyperlaneApp.js.map +1 -0
- package/dist/consts/chainConnectionConfigs.d.ts +18 -0
- package/dist/consts/chainConnectionConfigs.d.ts.map +1 -0
- package/dist/consts/chainConnectionConfigs.js +33 -0
- package/dist/consts/chainConnectionConfigs.js.map +1 -0
- package/dist/consts/chainMetadata.d.ts +98 -0
- package/dist/consts/chainMetadata.d.ts.map +1 -0
- package/dist/consts/chainMetadata.js +529 -0
- package/dist/consts/chainMetadata.js.map +1 -0
- package/dist/consts/chains.d.ts +40 -0
- package/dist/consts/chains.d.ts.map +1 -0
- package/dist/consts/chains.js +66 -0
- package/dist/consts/chains.js.map +1 -0
- package/dist/consts/environments/index.d.ts +449 -0
- package/dist/consts/environments/index.d.ts.map +1 -0
- package/dist/consts/environments/index.js +22 -0
- package/dist/consts/environments/index.js.map +1 -0
- package/dist/consts/environments/mainnet.json +138 -0
- package/dist/consts/environments/test.json +44 -0
- package/dist/consts/environments/testnet2.json +138 -0
- package/dist/consts/environments/testnet3.json +114 -0
- package/dist/contracts.d.ts +18 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +61 -0
- package/dist/contracts.js.map +1 -0
- package/dist/core/HyperlaneCore.d.ts +473 -0
- package/dist/core/HyperlaneCore.d.ts.map +1 -0
- package/dist/core/HyperlaneCore.js +122 -0
- package/dist/core/HyperlaneCore.js.map +1 -0
- package/dist/core/HyperlaneCore.test.d.ts +2 -0
- package/dist/core/HyperlaneCore.test.d.ts.map +1 -0
- package/dist/core/HyperlaneCore.test.js +27 -0
- package/dist/core/HyperlaneCore.test.js.map +1 -0
- package/dist/core/TestCoreApp.d.ts +21 -0
- package/dist/core/TestCoreApp.d.ts.map +1 -0
- package/dist/core/TestCoreApp.js +61 -0
- package/dist/core/TestCoreApp.js.map +1 -0
- package/dist/core/TestCoreDeployer.d.ts +13 -0
- package/dist/core/TestCoreDeployer.d.ts.map +1 -0
- package/dist/core/TestCoreDeployer.js +53 -0
- package/dist/core/TestCoreDeployer.js.map +1 -0
- package/dist/core/contracts.d.ts +21 -0
- package/dist/core/contracts.d.ts.map +1 -0
- package/dist/core/contracts.js +14 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/core/events.d.ts +8 -0
- package/dist/core/events.d.ts.map +1 -0
- package/dist/core/events.js +3 -0
- package/dist/core/events.js.map +1 -0
- package/dist/core/message.d.ts +146 -0
- package/dist/core/message.d.ts.map +1 -0
- package/dist/core/message.js +285 -0
- package/dist/core/message.js.map +1 -0
- package/dist/core/testHyperlaneDeploy.hardhat-test.d.ts +3 -0
- package/dist/core/testHyperlaneDeploy.hardhat-test.d.ts.map +1 -0
- package/dist/core/testHyperlaneDeploy.hardhat-test.js +66 -0
- package/dist/core/testHyperlaneDeploy.hardhat-test.js.map +1 -0
- package/dist/deploy/HyperlaneAppChecker.d.ts +22 -0
- package/dist/deploy/HyperlaneAppChecker.d.ts.map +1 -0
- package/dist/deploy/HyperlaneAppChecker.js +88 -0
- package/dist/deploy/HyperlaneAppChecker.js.map +1 -0
- package/dist/deploy/HyperlaneDeployer.d.ts +40 -0
- package/dist/deploy/HyperlaneDeployer.d.ts.map +1 -0
- package/dist/deploy/HyperlaneDeployer.js +212 -0
- package/dist/deploy/HyperlaneDeployer.js.map +1 -0
- package/dist/deploy/core/HyperlaneCoreChecker.d.ts +13 -0
- package/dist/deploy/core/HyperlaneCoreChecker.d.ts.map +1 -0
- package/dist/deploy/core/HyperlaneCoreChecker.js +122 -0
- package/dist/deploy/core/HyperlaneCoreChecker.js.map +1 -0
- package/dist/deploy/core/HyperlaneCoreDeployer.d.ts +30 -0
- package/dist/deploy/core/HyperlaneCoreDeployer.d.ts.map +1 -0
- package/dist/deploy/core/HyperlaneCoreDeployer.js +114 -0
- package/dist/deploy/core/HyperlaneCoreDeployer.js.map +1 -0
- package/dist/deploy/core/types.d.ts +51 -0
- package/dist/deploy/core/types.d.ts.map +1 -0
- package/dist/deploy/core/types.js +19 -0
- package/dist/deploy/core/types.js.map +1 -0
- package/dist/deploy/middleware/LiquidityLayerApp.d.ts +26 -0
- package/dist/deploy/middleware/LiquidityLayerApp.d.ts.map +1 -0
- package/dist/deploy/middleware/LiquidityLayerApp.js +115 -0
- package/dist/deploy/middleware/LiquidityLayerApp.js.map +1 -0
- package/dist/deploy/middleware/LiquidityLayerRouterDeployer.d.ts +33 -0
- package/dist/deploy/middleware/LiquidityLayerRouterDeployer.d.ts.map +1 -0
- package/dist/deploy/middleware/LiquidityLayerRouterDeployer.js +97 -0
- package/dist/deploy/middleware/LiquidityLayerRouterDeployer.js.map +1 -0
- package/dist/deploy/middleware/deploy.d.ts +21 -0
- package/dist/deploy/middleware/deploy.d.ts.map +1 -0
- package/dist/deploy/middleware/deploy.js +70 -0
- package/dist/deploy/middleware/deploy.js.map +1 -0
- package/dist/deploy/proxy.d.ts +18 -0
- package/dist/deploy/proxy.d.ts.map +1 -0
- package/dist/deploy/proxy.js +43 -0
- package/dist/deploy/proxy.js.map +1 -0
- package/dist/deploy/router/HyperlaneRouterChecker.d.ts +13 -0
- package/dist/deploy/router/HyperlaneRouterChecker.d.ts.map +1 -0
- package/dist/deploy/router/HyperlaneRouterChecker.js +44 -0
- package/dist/deploy/router/HyperlaneRouterChecker.js.map +1 -0
- package/dist/deploy/router/HyperlaneRouterDeployer.d.ts +13 -0
- package/dist/deploy/router/HyperlaneRouterDeployer.d.ts.map +1 -0
- package/dist/deploy/router/HyperlaneRouterDeployer.js +115 -0
- package/dist/deploy/router/HyperlaneRouterDeployer.js.map +1 -0
- package/dist/deploy/router/types.d.ts +7 -0
- package/dist/deploy/router/types.d.ts.map +1 -0
- package/dist/deploy/router/types.js +3 -0
- package/dist/deploy/router/types.js.map +1 -0
- package/dist/deploy/types.d.ts +23 -0
- package/dist/deploy/types.d.ts.map +1 -0
- package/dist/deploy/types.js +9 -0
- package/dist/deploy/types.js.map +1 -0
- package/dist/deploy/utils.d.ts +10 -0
- package/dist/deploy/utils.d.ts.map +1 -0
- package/dist/deploy/utils.js +38 -0
- package/dist/deploy/utils.js.map +1 -0
- package/dist/deploy/verify/ContractVerifier.d.ts +19 -0
- package/dist/deploy/verify/ContractVerifier.d.ts.map +1 -0
- package/dist/deploy/verify/ContractVerifier.js +137 -0
- package/dist/deploy/verify/ContractVerifier.js.map +1 -0
- package/dist/deploy/verify/types.d.ts +14 -0
- package/dist/deploy/verify/types.d.ts.map +1 -0
- package/dist/deploy/verify/types.js +3 -0
- package/dist/deploy/verify/types.js.map +1 -0
- package/dist/deploy/verify/utils.d.ts +6 -0
- package/dist/deploy/verify/utils.d.ts.map +1 -0
- package/dist/deploy/verify/utils.js +25 -0
- package/dist/deploy/verify/utils.js.map +1 -0
- package/dist/domains.d.ts +4 -0
- package/dist/domains.d.ts.map +1 -0
- package/dist/domains.js +12 -0
- package/dist/domains.js.map +1 -0
- package/dist/events.d.ts +25 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +161 -0
- package/dist/events.js.map +1 -0
- package/dist/gas/calculator.d.ts +134 -0
- package/dist/gas/calculator.d.ts.map +1 -0
- package/dist/gas/calculator.js +240 -0
- package/dist/gas/calculator.js.map +1 -0
- package/dist/gas/calculator.test.d.ts +2 -0
- package/dist/gas/calculator.test.d.ts.map +1 -0
- package/dist/gas/calculator.test.js +208 -0
- package/dist/gas/calculator.test.js.map +1 -0
- package/dist/gas/token-prices.d.ts +34 -0
- package/dist/gas/token-prices.d.ts.map +1 -0
- package/dist/gas/token-prices.js +105 -0
- package/dist/gas/token-prices.js.map +1 -0
- package/dist/gas/token-prices.test.d.ts +2 -0
- package/dist/gas/token-prices.test.d.ts.map +1 -0
- package/dist/gas/token-prices.test.js +46 -0
- package/dist/gas/token-prices.test.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +140 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/accounts.hardhat-test.d.ts +2 -0
- package/dist/middleware/accounts.hardhat-test.d.ts.map +1 -0
- package/dist/middleware/accounts.hardhat-test.js +63 -0
- package/dist/middleware/accounts.hardhat-test.js.map +1 -0
- package/dist/middleware/liquidity-layer.hardhat-test.d.ts +2 -0
- package/dist/middleware/liquidity-layer.hardhat-test.d.ts.map +1 -0
- package/dist/middleware/liquidity-layer.hardhat-test.js +89 -0
- package/dist/middleware/liquidity-layer.hardhat-test.js.map +1 -0
- package/dist/middleware/queries.hardhat-test.d.ts +2 -0
- package/dist/middleware/queries.hardhat-test.d.ts.map +1 -0
- package/dist/middleware/queries.hardhat-test.js +69 -0
- package/dist/middleware/queries.hardhat-test.js.map +1 -0
- package/dist/middleware.d.ts +16 -0
- package/dist/middleware.d.ts.map +1 -0
- package/dist/middleware.js +15 -0
- package/dist/middleware.js.map +1 -0
- package/dist/providers/ChainConnection.d.ts +22 -0
- package/dist/providers/ChainConnection.d.ts.map +1 -0
- package/dist/providers/ChainConnection.js +66 -0
- package/dist/providers/ChainConnection.js.map +1 -0
- package/dist/providers/MultiProvider.d.ts +56 -0
- package/dist/providers/MultiProvider.d.ts.map +1 -0
- package/dist/providers/MultiProvider.js +111 -0
- package/dist/providers/MultiProvider.js.map +1 -0
- package/dist/providers/RetryProvider.d.ts +18 -0
- package/dist/providers/RetryProvider.d.ts.map +1 -0
- package/dist/providers/RetryProvider.js +49 -0
- package/dist/providers/RetryProvider.js.map +1 -0
- package/dist/proxy.d.ts +21 -0
- package/dist/proxy.d.ts.map +1 -0
- package/dist/proxy.js +30 -0
- package/dist/proxy.js.map +1 -0
- package/dist/router.d.ts +20 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +3 -0
- package/dist/router.js.map +1 -0
- package/dist/test/envSubsetDeployer/app.d.ts +36 -0
- package/dist/test/envSubsetDeployer/app.d.ts.map +1 -0
- package/dist/test/envSubsetDeployer/app.js +77 -0
- package/dist/test/envSubsetDeployer/app.js.map +1 -0
- package/dist/test/envSubsetDeployer/check-single-chain.d.ts +2 -0
- package/dist/test/envSubsetDeployer/check-single-chain.d.ts.map +1 -0
- package/dist/test/envSubsetDeployer/check-single-chain.js +49 -0
- package/dist/test/envSubsetDeployer/check-single-chain.js.map +1 -0
- package/dist/test/envSubsetDeployer/deploy-single-chain.d.ts +2 -0
- package/dist/test/envSubsetDeployer/deploy-single-chain.d.ts.map +1 -0
- package/dist/test/envSubsetDeployer/deploy-single-chain.js +42 -0
- package/dist/test/envSubsetDeployer/deploy-single-chain.js.map +1 -0
- package/dist/test/envSubsetDeployer/deploy.hardhat-test.d.ts +2 -0
- package/dist/test/envSubsetDeployer/deploy.hardhat-test.d.ts.map +1 -0
- package/dist/test/envSubsetDeployer/deploy.hardhat-test.js +83 -0
- package/dist/test/envSubsetDeployer/deploy.hardhat-test.js.map +1 -0
- package/dist/test/envSubsetDeployer/utils.d.ts +7 -0
- package/dist/test/envSubsetDeployer/utils.d.ts.map +1 -0
- package/dist/test/envSubsetDeployer/utils.js +25 -0
- package/dist/test/envSubsetDeployer/utils.js.map +1 -0
- package/dist/test/testUtils.d.ts +31 -0
- package/dist/test/testUtils.d.ts.map +1 -0
- package/dist/test/testUtils.js +106 -0
- package/dist/test/testUtils.js.map +1 -0
- package/dist/types.d.ts +21 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/MultiGeneric.d.ts +27 -0
- package/dist/utils/MultiGeneric.d.ts.map +1 -0
- package/dist/utils/MultiGeneric.js +70 -0
- package/dist/utils/MultiGeneric.js.map +1 -0
- package/dist/utils/ids.d.ts +20 -0
- package/dist/utils/ids.d.ts.map +1 -0
- package/dist/utils/ids.js +47 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/utils/number.d.ts +32 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/number.js +59 -0
- package/dist/utils/number.js.map +1 -0
- package/dist/utils/objects.d.ts +7 -0
- package/dist/utils/objects.d.ts.map +1 -0
- package/dist/utils/objects.js +29 -0
- package/dist/utils/objects.js.map +1 -0
- package/dist/utils/time.d.ts +8 -0
- package/dist/utils/time.d.ts.map +1 -0
- package/dist/utils/time.js +15 -0
- package/dist/utils/time.js.map +1 -0
- package/dist/utils/utils.test.d.ts +2 -0
- package/dist/utils/utils.test.d.ts.map +1 -0
- package/dist/utils/utils.test.js +41 -0
- package/dist/utils/utils.test.js.map +1 -0
- package/logos/black/arbitrum.svg +1 -0
- package/logos/black/avalanche.svg +1 -0
- package/logos/black/bsc.svg +1 -0
- package/logos/black/celo.svg +1 -0
- package/logos/black/ethereum.svg +8 -0
- package/logos/black/hyperlane.svg +1 -0
- package/logos/black/moonbeam.svg +3 -0
- package/logos/black/near.svg +1 -0
- package/logos/black/optimism.svg +1 -0
- package/logos/black/polygon.svg +1 -0
- package/logos/color/arbitrum.svg +1 -0
- package/logos/color/avalanche.svg +1 -0
- package/logos/color/bsc.svg +1 -0
- package/logos/color/celo.svg +1 -0
- package/logos/color/ethereum.svg +1 -0
- package/logos/color/hyperlane.svg +1 -0
- package/logos/color/moonbeam.svg +1 -0
- package/logos/color/optimism.svg +1 -0
- package/logos/color/polygon.svg +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alfajores": {
|
|
3
|
+
"proxyAdmin": "0x15e07BD101dfB4e8C2D0B368AbFeE3524e541277",
|
|
4
|
+
"multisigIsm": "0xc41169650335Ad274157Ea5116Cdf227430A68a3",
|
|
5
|
+
"interchainGasPaymaster": {
|
|
6
|
+
"kind": "Transparent",
|
|
7
|
+
"proxy": "0x1Fb165396FB26AC4178ca4240b3724039F75EED7",
|
|
8
|
+
"implementation": "0x67fA6577A7558a55BFDA87118dDBbeFB34521758"
|
|
9
|
+
},
|
|
10
|
+
"mailbox": {
|
|
11
|
+
"kind": "Transparent",
|
|
12
|
+
"proxy": "0x5C7D9B5f38022dB78416D6C0132bf8c404deDe27",
|
|
13
|
+
"implementation": "0x9095fDae1977A5fa61877FD44f307f7aDcBF9A0d"
|
|
14
|
+
},
|
|
15
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
16
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
17
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
18
|
+
},
|
|
19
|
+
"fuji": {
|
|
20
|
+
"proxyAdmin": "0x97Bbc6bBaFa5Ce3b2FA966c121Af63bD09e940f8",
|
|
21
|
+
"multisigIsm": "0x33AbaF6708be03Bdf0595DA0745A7111b01dB8c7",
|
|
22
|
+
"interchainGasPaymaster": {
|
|
23
|
+
"kind": "Transparent",
|
|
24
|
+
"proxy": "0x4834a491f78BBF48e983F9Ce0E20D1E4DbE013D8",
|
|
25
|
+
"implementation": "0x5309959109F031B8459deD683d958aE3393A1786"
|
|
26
|
+
},
|
|
27
|
+
"mailbox": {
|
|
28
|
+
"kind": "Transparent",
|
|
29
|
+
"proxy": "0xc507A7c848b59469cC44A3653F8a582aa8BeC71E",
|
|
30
|
+
"implementation": "0x71B1BF7C99BEef0545eAFf441372cb6413d9367c"
|
|
31
|
+
},
|
|
32
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
33
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
34
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
35
|
+
},
|
|
36
|
+
"mumbai": {
|
|
37
|
+
"proxyAdmin": "0xC81e6D1070aFA48DA4e4f35E744CC1aE43532a10",
|
|
38
|
+
"multisigIsm": "0xb636B2c65A75d41F0dBe98fB33eb563d245a241a",
|
|
39
|
+
"interchainGasPaymaster": {
|
|
40
|
+
"kind": "Transparent",
|
|
41
|
+
"proxy": "0x9A27744C249A11f68B3B56f09D280599585DFBb8",
|
|
42
|
+
"implementation": "0xc67b416734FDfa1c37760858aB30a18af6101383"
|
|
43
|
+
},
|
|
44
|
+
"mailbox": {
|
|
45
|
+
"kind": "Transparent",
|
|
46
|
+
"proxy": "0xe17c37212d785760E8331D4A4395B17b34Ba8cDF",
|
|
47
|
+
"implementation": "0x5310F977D29ae0Cf14eC000b5dbDF9734499Be4E"
|
|
48
|
+
},
|
|
49
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
50
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
51
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
52
|
+
},
|
|
53
|
+
"bsctestnet": {
|
|
54
|
+
"proxyAdmin": "0x638A831b4d11Be6a72AcB97d1aE79DA05Ae9B1D3",
|
|
55
|
+
"multisigIsm": "0xe403E16db1f5997bC62Dc611A8d42836364A7f01",
|
|
56
|
+
"interchainGasPaymaster": {
|
|
57
|
+
"kind": "Transparent",
|
|
58
|
+
"proxy": "0x155b1F1801030Ea4dF038107d3cc1b4bA496916e",
|
|
59
|
+
"implementation": "0x407eB16cdC073bB9cb0Da779aeb0a9246940D3B8"
|
|
60
|
+
},
|
|
61
|
+
"mailbox": {
|
|
62
|
+
"kind": "Transparent",
|
|
63
|
+
"proxy": "0xE023239c8dfc172FF008D8087E7442d3eBEd9350",
|
|
64
|
+
"implementation": "0x7740342863717e26E3d5B828639834ADfce8a061"
|
|
65
|
+
},
|
|
66
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
67
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
68
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
69
|
+
},
|
|
70
|
+
"arbitrumgoerli": {
|
|
71
|
+
"proxyAdmin": "0x275aCcCa81cAD931dC6fB6E49ED233Bc99Bed4A7",
|
|
72
|
+
"multisigIsm": "0x01812D60958798695391dacF092BAc4a715B1718",
|
|
73
|
+
"interchainGasPaymaster": {
|
|
74
|
+
"kind": "Transparent",
|
|
75
|
+
"proxy": "0x44b764045BfDC68517e10e783E69B376cef196B2",
|
|
76
|
+
"implementation": "0xeb6f11189197223c656807a83B0DD374f9A6dF44"
|
|
77
|
+
},
|
|
78
|
+
"mailbox": {
|
|
79
|
+
"kind": "Transparent",
|
|
80
|
+
"proxy": "0xDDcFEcF17586D08A5740B7D91735fcCE3dfe3eeD",
|
|
81
|
+
"implementation": "0x54148470292C24345fb828B003461a9444414517"
|
|
82
|
+
},
|
|
83
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
84
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
85
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
86
|
+
},
|
|
87
|
+
"optimismgoerli": {
|
|
88
|
+
"proxyAdmin": "0x275aCcCa81cAD931dC6fB6E49ED233Bc99Bed4A7",
|
|
89
|
+
"multisigIsm": "0x01812D60958798695391dacF092BAc4a715B1718",
|
|
90
|
+
"interchainGasPaymaster": {
|
|
91
|
+
"kind": "Transparent",
|
|
92
|
+
"proxy": "0x44b764045BfDC68517e10e783E69B376cef196B2",
|
|
93
|
+
"implementation": "0xeb6f11189197223c656807a83B0DD374f9A6dF44"
|
|
94
|
+
},
|
|
95
|
+
"mailbox": {
|
|
96
|
+
"kind": "Transparent",
|
|
97
|
+
"proxy": "0xDDcFEcF17586D08A5740B7D91735fcCE3dfe3eeD",
|
|
98
|
+
"implementation": "0x54148470292C24345fb828B003461a9444414517"
|
|
99
|
+
},
|
|
100
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
101
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
102
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
103
|
+
},
|
|
104
|
+
"goerli": {
|
|
105
|
+
"proxyAdmin": "0x275aCcCa81cAD931dC6fB6E49ED233Bc99Bed4A7",
|
|
106
|
+
"multisigIsm": "0x01812D60958798695391dacF092BAc4a715B1718",
|
|
107
|
+
"interchainGasPaymaster": {
|
|
108
|
+
"kind": "Transparent",
|
|
109
|
+
"proxy": "0x44b764045BfDC68517e10e783E69B376cef196B2",
|
|
110
|
+
"implementation": "0xeb6f11189197223c656807a83B0DD374f9A6dF44"
|
|
111
|
+
},
|
|
112
|
+
"mailbox": {
|
|
113
|
+
"kind": "Transparent",
|
|
114
|
+
"proxy": "0xDDcFEcF17586D08A5740B7D91735fcCE3dfe3eeD",
|
|
115
|
+
"implementation": "0x54148470292C24345fb828B003461a9444414517"
|
|
116
|
+
},
|
|
117
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
118
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
119
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
120
|
+
},
|
|
121
|
+
"moonbasealpha": {
|
|
122
|
+
"proxyAdmin": "0x6E7b29CB2A7617405B4d30C6f84bBD51b4Bb4be8",
|
|
123
|
+
"multisigIsm": "0xD356C996277eFb7f75Ee8bd61b31cC781A12F54f",
|
|
124
|
+
"interchainGasPaymaster": {
|
|
125
|
+
"kind": "Transparent",
|
|
126
|
+
"proxy": "0xeb6f11189197223c656807a83B0DD374f9A6dF44",
|
|
127
|
+
"implementation": "0xfc6e546510dC9d76057F1f76633FCFfC188CB213"
|
|
128
|
+
},
|
|
129
|
+
"mailbox": {
|
|
130
|
+
"kind": "Transparent",
|
|
131
|
+
"proxy": "0x54148470292C24345fb828B003461a9444414517",
|
|
132
|
+
"implementation": "0xC2E36cd6e32e194EE11f15D9273B64461A4D49A2"
|
|
133
|
+
},
|
|
134
|
+
"interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
|
|
135
|
+
"interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
|
|
136
|
+
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alfajores": {
|
|
3
|
+
"proxyAdmin": "0xB650Ef24b1396AD770C6B8Abf1118DE2A683a5Fc",
|
|
4
|
+
"interchainGasPaymaster": {
|
|
5
|
+
"kind": "Transparent",
|
|
6
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
7
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
8
|
+
},
|
|
9
|
+
"mailbox": {
|
|
10
|
+
"kind": "Transparent",
|
|
11
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
12
|
+
"implementation": "0x8D336802d1CE5D1724D879664Bb29ee271b25a21"
|
|
13
|
+
},
|
|
14
|
+
"multisigIsm": "0x34dD0ab937c3A7280FeB86C8F9ba9EBa79463c1e"
|
|
15
|
+
},
|
|
16
|
+
"fuji": {
|
|
17
|
+
"proxyAdmin": "0x16dB2339A9b5bDA759c0D606072c6eB07029E97f",
|
|
18
|
+
"interchainGasPaymaster": {
|
|
19
|
+
"kind": "Transparent",
|
|
20
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
21
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
22
|
+
},
|
|
23
|
+
"mailbox": {
|
|
24
|
+
"kind": "Transparent",
|
|
25
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
26
|
+
"implementation": "0x329f96E333b28cB88F1673c19F450f5762764857"
|
|
27
|
+
},
|
|
28
|
+
"multisigIsm": "0x4bCe8b585057EFC347026F9f0F4f89885468D7d3"
|
|
29
|
+
},
|
|
30
|
+
"mumbai": {
|
|
31
|
+
"proxyAdmin": "0xFf158d8651177D3e9f388fbB6af1822D46aACa3A",
|
|
32
|
+
"interchainGasPaymaster": {
|
|
33
|
+
"kind": "Transparent",
|
|
34
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
35
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
36
|
+
},
|
|
37
|
+
"mailbox": {
|
|
38
|
+
"kind": "Transparent",
|
|
39
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
40
|
+
"implementation": "0xFCC87E5396D77264956c98a328bEE48ea887309c"
|
|
41
|
+
},
|
|
42
|
+
"multisigIsm": "0x824ed1F5c1769261eDD7022700FA675Fd22C0C1F"
|
|
43
|
+
},
|
|
44
|
+
"bsctestnet": {
|
|
45
|
+
"proxyAdmin": "0x721303693eF8bdA1a871b2dF850600edcDDa4c04",
|
|
46
|
+
"interchainGasPaymaster": {
|
|
47
|
+
"kind": "Transparent",
|
|
48
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
49
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
50
|
+
},
|
|
51
|
+
"mailbox": {
|
|
52
|
+
"kind": "Transparent",
|
|
53
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
54
|
+
"implementation": "0xa62B7DbBdd79325dE35A6c1dd7954D52a4B86171"
|
|
55
|
+
},
|
|
56
|
+
"multisigIsm": "0x8b3131De3DD5d89C81b9AEaE2adFEA0EB7f4E4eB"
|
|
57
|
+
},
|
|
58
|
+
"goerli": {
|
|
59
|
+
"proxyAdmin": "0xcb8a27917112A58fC12E62A6717e747797A47024",
|
|
60
|
+
"interchainGasPaymaster": {
|
|
61
|
+
"kind": "Transparent",
|
|
62
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
63
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
64
|
+
},
|
|
65
|
+
"mailbox": {
|
|
66
|
+
"kind": "Transparent",
|
|
67
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
68
|
+
"implementation": "0xF0b6b89033C37C24c12C560a881932C99822b7dF"
|
|
69
|
+
},
|
|
70
|
+
"multisigIsm": "0x916B3999505656965A596A7710CEf27d2fEB4878"
|
|
71
|
+
},
|
|
72
|
+
"optimismgoerli": {
|
|
73
|
+
"proxyAdmin": "0x772926Ffc5FE8B3ae9a85cB085700748606aE283",
|
|
74
|
+
"interchainGasPaymaster": {
|
|
75
|
+
"kind": "Transparent",
|
|
76
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
77
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
78
|
+
},
|
|
79
|
+
"mailbox": {
|
|
80
|
+
"kind": "Transparent",
|
|
81
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
82
|
+
"implementation": "0xC6784877606d2ce0fE8b284006279b42d5aA04d0"
|
|
83
|
+
},
|
|
84
|
+
"multisigIsm": "0x99A42d6Bf191127667f55297Af0259708bd8c59e"
|
|
85
|
+
},
|
|
86
|
+
"arbitrumgoerli": {
|
|
87
|
+
"proxyAdmin": "0x1b0d4c88288258D57998F0bdb30489007A42B834",
|
|
88
|
+
"interchainGasPaymaster": {
|
|
89
|
+
"kind": "Transparent",
|
|
90
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
91
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
92
|
+
},
|
|
93
|
+
"mailbox": {
|
|
94
|
+
"kind": "Transparent",
|
|
95
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
96
|
+
"implementation": "0x648CDd491DA5B5036E6011e2aF9a54427b9dd424"
|
|
97
|
+
},
|
|
98
|
+
"multisigIsm": "0x772926Ffc5FE8B3ae9a85cB085700748606aE283"
|
|
99
|
+
},
|
|
100
|
+
"moonbasealpha": {
|
|
101
|
+
"proxyAdmin": "0xc0403D2880dD291C59456c3b70504E8e7101e06F",
|
|
102
|
+
"interchainGasPaymaster": {
|
|
103
|
+
"kind": "Transparent",
|
|
104
|
+
"proxy": "0xa45Fc9C331E91985e3d1e5c4F6Ab1Da9EA4b043D",
|
|
105
|
+
"implementation": "0x6Ce5d8e67020d25e03431976B9DE6d6656D31Ae1"
|
|
106
|
+
},
|
|
107
|
+
"mailbox": {
|
|
108
|
+
"kind": "Transparent",
|
|
109
|
+
"proxy": "0xa6fD89630eAa6A404633e2D87A863277b1D19Fc6",
|
|
110
|
+
"implementation": "0xDb18e073eC01d91b1Bbd5ee348804aFCa66A0ea7"
|
|
111
|
+
},
|
|
112
|
+
"multisigIsm": "0xaA3022A7e114D4eaF9BBcA552B850346C55E5550"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
import type { types } from '@hyperlane-xyz/utils';
|
|
3
|
+
import { ProxiedContract, ProxyAddresses } from './proxy';
|
|
4
|
+
import { Connection } from './types';
|
|
5
|
+
export declare type HyperlaneFactories = {
|
|
6
|
+
[key: string]: ethers.ContractFactory;
|
|
7
|
+
};
|
|
8
|
+
export declare type HyperlaneContract = ethers.Contract | ProxiedContract<any, any> | HyperlaneContracts;
|
|
9
|
+
export declare type HyperlaneContracts = {
|
|
10
|
+
[key: Exclude<string, 'address'>]: HyperlaneContract;
|
|
11
|
+
};
|
|
12
|
+
export declare type HyperlaneAddresses = {
|
|
13
|
+
[key: string]: types.Address | ProxyAddresses<any> | HyperlaneAddresses;
|
|
14
|
+
};
|
|
15
|
+
export declare function serializeContracts(contractOrObject: HyperlaneContracts, max_depth?: number): HyperlaneAddresses;
|
|
16
|
+
export declare function buildContracts(addressOrObject: HyperlaneAddresses, factories: HyperlaneFactories, max_depth?: number): HyperlaneContracts;
|
|
17
|
+
export declare function connectContracts<Contracts extends HyperlaneContracts>(contractOrObject: Contracts, connection: Connection, max_depth?: number): Contracts;
|
|
18
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAoB,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,oBAAY,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC;CACvC,CAAC;AAEF,oBAAY,iBAAiB,GACzB,MAAM,CAAC,QAAQ,GACf,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,kBAAkB,CAAC;AAEvB,oBAAY,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,iBAAiB,CAAC;CACtD,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC;CACzE,CAAC;AAEF,wBAAgB,kBAAkB,CAChC,gBAAgB,EAAE,kBAAkB,EACpC,SAAS,SAAI,GACZ,kBAAkB,CAgBpB;AAYD,wBAAgB,cAAc,CAC5B,eAAe,EAAE,kBAAkB,EACnC,SAAS,EAAE,kBAAkB,EAC7B,SAAS,SAAI,GACZ,kBAAkB,CAkBpB;AAED,wBAAgB,gBAAgB,CAAC,SAAS,SAAS,kBAAkB,EACnE,gBAAgB,EAAE,SAAS,EAC3B,UAAU,EAAE,UAAU,EACtB,SAAS,SAAI,GACZ,SAAS,CAWX"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connectContracts = exports.buildContracts = exports.serializeContracts = void 0;
|
|
4
|
+
const proxy_1 = require("./proxy");
|
|
5
|
+
const objects_1 = require("./utils/objects");
|
|
6
|
+
function serializeContracts(contractOrObject, max_depth = 5) {
|
|
7
|
+
if (max_depth === 0) {
|
|
8
|
+
throw new Error('serializeContracts tried to go too deep');
|
|
9
|
+
}
|
|
10
|
+
return (0, objects_1.objMap)(contractOrObject, (_, contract) => {
|
|
11
|
+
if (contract instanceof proxy_1.ProxiedContract) {
|
|
12
|
+
return contract.addresses;
|
|
13
|
+
}
|
|
14
|
+
else if (contract.address) {
|
|
15
|
+
return contract.address;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return serializeContracts(contract, max_depth - 1);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.serializeContracts = serializeContracts;
|
|
23
|
+
function getFactory(key, factories) {
|
|
24
|
+
if (!(key in factories)) {
|
|
25
|
+
throw new Error(`Factories entry missing for ${key}`);
|
|
26
|
+
}
|
|
27
|
+
return factories[key];
|
|
28
|
+
}
|
|
29
|
+
function buildContracts(addressOrObject, factories, max_depth = 5) {
|
|
30
|
+
if (max_depth === 0) {
|
|
31
|
+
throw new Error('buildContracts tried to go too deep');
|
|
32
|
+
}
|
|
33
|
+
return (0, objects_1.objMap)(addressOrObject, (key, address) => {
|
|
34
|
+
if ((0, proxy_1.isProxyAddresses)(address)) {
|
|
35
|
+
const contract = getFactory(key, factories).attach(address.proxy);
|
|
36
|
+
return new proxy_1.ProxiedContract(contract, address);
|
|
37
|
+
}
|
|
38
|
+
else if (typeof address === 'string') {
|
|
39
|
+
return getFactory(key, factories).attach(address);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
return buildContracts(address, factories, max_depth - 1);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
exports.buildContracts = buildContracts;
|
|
47
|
+
function connectContracts(contractOrObject, connection, max_depth = 5) {
|
|
48
|
+
if (max_depth === 0) {
|
|
49
|
+
throw new Error('connectContracts tried to go too deep');
|
|
50
|
+
}
|
|
51
|
+
return (0, objects_1.objMap)(contractOrObject, (_, contract) => {
|
|
52
|
+
if (contract.connect) {
|
|
53
|
+
return contract.connect(connection);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return connectContracts(contract, connection, max_depth - 1);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
exports.connectContracts = connectContracts;
|
|
61
|
+
//# sourceMappingURL=contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":";;;AAIA,mCAA4E;AAE5E,6CAAyC;AAmBzC,SAAgB,kBAAkB,CAChC,gBAAoC,EACpC,SAAS,GAAG,CAAC;IAEb,IAAI,SAAS,KAAK,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;KAC5D;IACD,OAAO,IAAA,gBAAM,EACX,gBAAgB,EAChB,CAAC,CAAC,EAAE,QAAa,EAAqD,EAAE;QACtE,IAAI,QAAQ,YAAY,uBAAe,EAAE;YACvC,OAAO,QAAQ,CAAC,SAAS,CAAC;SAC3B;aAAM,IAAI,QAAQ,CAAC,OAAO,EAAE;YAC3B,OAAO,QAAQ,CAAC,OAAO,CAAC;SACzB;aAAM;YACL,OAAO,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;SACpD;IACH,CAAC,CACF,CAAC;AACJ,CAAC;AAnBD,gDAmBC;AAED,SAAS,UAAU,CACjB,GAAW,EACX,SAA6B;IAE7B,IAAI,CAAC,CAAC,GAAG,IAAI,SAAS,CAAC,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,+BAA+B,GAAG,EAAE,CAAC,CAAC;KACvD;IACD,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC;AAED,SAAgB,cAAc,CAC5B,eAAmC,EACnC,SAA6B,EAC7B,SAAS,GAAG,CAAC;IAEb,IAAI,SAAS,KAAK,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KACxD;IACD,OAAO,IAAA,gBAAM,EAAC,eAAe,EAAE,CAAC,GAAG,EAAE,OAAY,EAAE,EAAE;QACnD,IAAI,IAAA,wBAAgB,EAAC,OAAO,CAAC,EAAE;YAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAClE,OAAO,IAAI,uBAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;SAC/C;aAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YACtC,OAAO,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SACnD;aAAM;YACL,OAAO,cAAc,CACnB,OAA6B,EAC7B,SAAS,EACT,SAAS,GAAG,CAAC,CACd,CAAC;SACH;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,wCAsBC;AAED,SAAgB,gBAAgB,CAC9B,gBAA2B,EAC3B,UAAsB,EACtB,SAAS,GAAG,CAAC;IAEb,IAAI,SAAS,KAAK,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;KAC1D;IACD,OAAO,IAAA,gBAAM,EAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,QAAa,EAAE,EAAE;QACnD,IAAI,QAAQ,CAAC,OAAO,EAAE;YACpB,OAAO,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SACrC;aAAM;YACL,OAAO,gBAAgB,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;SAC9D;IACH,CAAC,CAAc,CAAC;AAClB,CAAC;AAfD,4CAeC"}
|