@hyperlane-xyz/cli 3.1.10 → 3.2.0-alpha
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 +6 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +27 -4
- package/dist/cli.js.map +1 -1
- package/dist/env.d.ts +2 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +14 -0
- package/dist/env.js.map +1 -0
- package/dist/src/avs/config.d.ts +11 -0
- package/dist/src/avs/config.d.ts.map +1 -0
- package/dist/src/avs/config.js +10 -0
- package/dist/src/avs/config.js.map +1 -0
- package/dist/src/avs/stakeRegistry.d.ts +19 -0
- package/dist/src/avs/stakeRegistry.d.ts.map +1 -0
- package/dist/src/avs/stakeRegistry.js +94 -0
- package/dist/src/avs/stakeRegistry.js.map +1 -0
- package/dist/src/commands/avs.d.ts +12 -0
- package/dist/src/commands/avs.d.ts.map +1 -0
- package/dist/src/commands/avs.js +58 -0
- package/dist/src/commands/avs.js.map +1 -0
- package/dist/src/commands/chains.d.ts.map +1 -1
- package/dist/src/commands/chains.js +46 -27
- package/dist/src/commands/chains.js.map +1 -1
- package/dist/src/commands/config.js +74 -85
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/deploy.d.ts.map +1 -1
- package/dist/src/commands/deploy.js +58 -91
- package/dist/src/commands/deploy.js.map +1 -1
- package/dist/src/commands/hook.d.ts +12 -0
- package/dist/src/commands/hook.d.ts.map +1 -0
- package/dist/src/commands/hook.js +34 -0
- package/dist/src/commands/hook.js.map +1 -0
- package/dist/src/commands/ism.d.ts +12 -0
- package/dist/src/commands/ism.d.ts.map +1 -0
- package/dist/src/commands/ism.js +36 -0
- package/dist/src/commands/ism.js.map +1 -0
- package/dist/src/commands/options.d.ts +19 -7
- package/dist/src/commands/options.d.ts.map +1 -1
- package/dist/src/commands/options.js +90 -27
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/send.d.ts +14 -1
- package/dist/src/commands/send.d.ts.map +1 -1
- package/dist/src/commands/send.js +32 -55
- package/dist/src/commands/send.js.map +1 -1
- package/dist/src/commands/signCommands.d.ts +3 -0
- package/dist/src/commands/signCommands.d.ts.map +1 -0
- package/dist/src/commands/signCommands.js +11 -0
- package/dist/src/commands/signCommands.js.map +1 -0
- package/dist/src/commands/status.d.ts +5 -2
- package/dist/src/commands/status.d.ts.map +1 -1
- package/dist/src/commands/status.js +9 -19
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/config/chain.d.ts +5 -7
- package/dist/src/config/chain.d.ts.map +1 -1
- package/dist/src/config/chain.js +94 -68
- package/dist/src/config/chain.js.map +1 -1
- package/dist/src/config/chain.test.js +1 -5
- package/dist/src/config/chain.test.js.map +1 -1
- package/dist/src/config/hooks.d.ts +91 -214
- package/dist/src/config/hooks.d.ts.map +1 -1
- package/dist/src/config/hooks.js +218 -122
- package/dist/src/config/hooks.js.map +1 -1
- package/dist/src/config/ism.d.ts +74 -0
- package/dist/src/config/ism.d.ts.map +1 -0
- package/dist/src/config/ism.js +223 -0
- package/dist/src/config/ism.js.map +1 -0
- package/dist/src/config/multisig.d.ts +4 -14
- package/dist/src/config/multisig.d.ts.map +1 -1
- package/dist/src/config/multisig.js +35 -29
- package/dist/src/config/multisig.js.map +1 -1
- package/dist/src/config/warp.d.ts +7 -180
- package/dist/src/config/warp.d.ts.map +1 -1
- package/dist/src/config/warp.js +55 -62
- package/dist/src/config/warp.js.map +1 -1
- package/dist/src/consts.d.ts +1 -0
- package/dist/src/consts.d.ts.map +1 -1
- package/dist/src/consts.js +1 -0
- package/dist/src/consts.js.map +1 -1
- package/dist/src/context/context.d.ts +14 -0
- package/dist/src/context/context.d.ts.map +1 -0
- package/dist/src/context/context.js +108 -0
- package/dist/src/context/context.js.map +1 -0
- package/dist/src/context/types.d.ts +33 -0
- package/dist/src/context/types.d.ts.map +1 -0
- package/dist/src/context/types.js.map +1 -0
- package/dist/src/deploy/agent.d.ts +6 -4
- package/dist/src/deploy/agent.d.ts.map +1 -1
- package/dist/src/deploy/agent.js +10 -24
- package/dist/src/deploy/agent.js.map +1 -1
- package/dist/src/deploy/core.d.ts +10 -7
- package/dist/src/deploy/core.d.ts.map +1 -1
- package/dist/src/deploy/core.js +156 -160
- package/dist/src/deploy/core.js.map +1 -1
- package/dist/src/deploy/dry-run.d.ts +19 -0
- package/dist/src/deploy/dry-run.d.ts.map +1 -0
- package/dist/src/deploy/dry-run.js +45 -0
- package/dist/src/deploy/dry-run.js.map +1 -0
- package/dist/src/deploy/utils.d.ts +15 -8
- package/dist/src/deploy/utils.d.ts.map +1 -1
- package/dist/src/deploy/utils.js +60 -11
- package/dist/src/deploy/utils.js.map +1 -1
- package/dist/src/deploy/warp.d.ts +4 -7
- package/dist/src/deploy/warp.d.ts.map +1 -1
- package/dist/src/deploy/warp.js +129 -169
- package/dist/src/deploy/warp.js.map +1 -1
- package/dist/src/hook/read.d.ts +13 -0
- package/dist/src/hook/read.d.ts.map +1 -0
- package/dist/src/hook/read.js +25 -0
- package/dist/src/hook/read.js.map +1 -0
- package/dist/src/ism/read.d.ts +13 -0
- package/dist/src/ism/read.d.ts.map +1 -0
- package/dist/src/ism/read.js +25 -0
- package/dist/src/ism/read.js.map +1 -0
- package/dist/src/logger.d.ts +17 -0
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +32 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/registry/MergedRegistry.d.ts +35 -0
- package/dist/src/registry/MergedRegistry.d.ts.map +1 -0
- package/dist/src/registry/MergedRegistry.js +83 -0
- package/dist/src/registry/MergedRegistry.js.map +1 -0
- package/dist/src/send/message.d.ts +7 -6
- package/dist/src/send/message.d.ts.map +1 -1
- package/dist/src/send/message.js +40 -22
- package/dist/src/send/message.js.map +1 -1
- package/dist/src/send/transfer.d.ts +8 -10
- package/dist/src/send/transfer.d.ts.map +1 -1
- package/dist/src/send/transfer.js +68 -70
- package/dist/src/send/transfer.js.map +1 -1
- package/dist/src/status/message.d.ts +7 -5
- package/dist/src/status/message.d.ts.map +1 -1
- package/dist/src/status/message.js +25 -12
- package/dist/src/status/message.js.map +1 -1
- package/dist/src/submit/submit.d.ts +5 -0
- package/dist/src/submit/submit.d.ts.map +1 -0
- package/dist/src/submit/submit.js +30 -0
- package/dist/src/submit/submit.js.map +1 -0
- package/dist/src/submit/types.d.ts +18 -0
- package/dist/src/submit/types.d.ts.map +1 -0
- package/dist/src/submit/types.js +2 -0
- package/dist/src/{deploy → submit}/types.js.map +1 -1
- package/dist/src/tests/deployTestErc20.d.ts +2 -0
- package/dist/src/tests/deployTestErc20.d.ts.map +1 -0
- package/dist/src/tests/deployTestErc20.js +26 -0
- package/dist/src/tests/deployTestErc20.js.map +1 -0
- package/dist/src/tests/hooks.test.d.ts +2 -0
- package/dist/src/tests/hooks.test.d.ts.map +1 -0
- package/dist/src/tests/hooks.test.js +83 -0
- package/dist/src/tests/hooks.test.js.map +1 -0
- package/dist/src/tests/ism.test.d.ts +2 -0
- package/dist/src/tests/ism.test.d.ts.map +1 -0
- package/dist/src/tests/ism.test.js +76 -0
- package/dist/src/tests/ism.test.js.map +1 -0
- package/dist/src/tests/multisig.test.d.ts +2 -0
- package/dist/src/tests/multisig.test.d.ts.map +1 -0
- package/dist/src/tests/multisig.test.js +34 -0
- package/dist/src/tests/multisig.test.js.map +1 -0
- package/dist/src/utils/balances.d.ts +2 -4
- package/dist/src/utils/balances.d.ts.map +1 -1
- package/dist/src/utils/balances.js +8 -12
- package/dist/src/utils/balances.js.map +1 -1
- package/dist/src/utils/chains.d.ts +3 -2
- package/dist/src/utils/chains.d.ts.map +1 -1
- package/dist/src/utils/chains.js +33 -18
- package/dist/src/utils/chains.js.map +1 -1
- package/dist/src/utils/env.d.ts +6 -0
- package/dist/src/utils/env.d.ts.map +1 -0
- package/dist/src/utils/env.js +9 -0
- package/dist/src/utils/env.js.map +1 -0
- package/dist/src/utils/files.d.ts +6 -4
- package/dist/src/utils/files.d.ts.map +1 -1
- package/dist/src/utils/files.js +37 -25
- package/dist/src/utils/files.js.map +1 -1
- package/dist/src/utils/keys.d.ts +28 -1
- package/dist/src/utils/keys.d.ts.map +1 -1
- package/dist/src/utils/keys.js +65 -6
- package/dist/src/utils/keys.js.map +1 -1
- package/dist/src/utils/tokens.d.ts +3 -0
- package/dist/src/utils/tokens.d.ts.map +1 -0
- package/dist/src/utils/tokens.js +14 -0
- package/dist/src/utils/tokens.js.map +1 -0
- package/dist/src/utils/version-check.d.ts +2 -0
- package/dist/src/utils/version-check.d.ts.map +1 -0
- package/dist/src/utils/version-check.js +15 -0
- package/dist/src/utils/version-check.js.map +1 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +2 -0
- package/dist/src/version.js.map +1 -0
- package/examples/chain-config.yaml +38 -46
- package/examples/contract-artifacts.yaml +4 -4
- package/examples/hooks.yaml +66 -0
- package/examples/ism-advanced.yaml +33 -0
- package/examples/{multisig-ism.yaml → ism.yaml} +0 -8
- package/examples/warp-route-deployment.yaml +32 -0
- package/package.json +20 -13
- package/dist/logger.d.ts +0 -14
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -45
- package/dist/logger.js.map +0 -1
- package/dist/src/config/artifacts.d.ts +0 -3
- package/dist/src/config/artifacts.d.ts.map +0 -1
- package/dist/src/config/artifacts.js +0 -18
- package/dist/src/config/artifacts.js.map +0 -1
- package/dist/src/context.d.ts +0 -388
- package/dist/src/context.d.ts.map +0 -1
- package/dist/src/context.js +0 -30
- package/dist/src/context.js.map +0 -1
- package/dist/src/deploy/TestRecipientDeployer.d.ts +0 -20
- package/dist/src/deploy/TestRecipientDeployer.d.ts.map +0 -1
- package/dist/src/deploy/TestRecipientDeployer.js +0 -36
- package/dist/src/deploy/TestRecipientDeployer.js.map +0 -1
- package/dist/src/deploy/types.d.ts +0 -21
- package/dist/src/deploy/types.d.ts.map +0 -1
- package/examples/anvil-chains.yaml +0 -22
- package/examples/hook-config.yaml +0 -18
- package/examples/warp-tokens.yaml +0 -26
- /package/dist/src/{deploy → context}/types.js +0 -0
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
# A config for a multisig Interchain Security Module (ISM)
|
|
2
2
|
# Schema: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/ism/types.ts
|
|
3
3
|
#
|
|
4
|
-
# Valid module types:
|
|
5
|
-
# routing
|
|
6
|
-
# aggregation
|
|
7
|
-
# merkleRootMultisig
|
|
8
|
-
# messageIdMultisigIsm
|
|
9
4
|
|
|
10
|
-
# ism type don't work currently (sets to messageIdMultisigIsm for all)
|
|
11
5
|
---
|
|
12
6
|
anvil1:
|
|
13
|
-
type: 'messageIdMultisigIsm'
|
|
14
7
|
threshold: 1 # Number: Signatures required to approve a message
|
|
15
8
|
validators: # Array: List of validator addresses
|
|
16
9
|
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720'
|
|
17
10
|
anvil2:
|
|
18
|
-
type: 'messageIdMultisigIsm'
|
|
19
11
|
threshold: 1
|
|
20
12
|
validators:
|
|
21
13
|
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# A config for a Warp Route deployment
|
|
2
|
+
# Typically used with the 'hyperlane deploy warp' command
|
|
3
|
+
#
|
|
4
|
+
# Token Types:
|
|
5
|
+
# native
|
|
6
|
+
# collateral
|
|
7
|
+
# synthetic
|
|
8
|
+
#
|
|
9
|
+
# see comprehensive [list](https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/token/config.ts#L8)
|
|
10
|
+
---
|
|
11
|
+
anvil1:
|
|
12
|
+
type: native
|
|
13
|
+
# token: "0x123" # Collateral/vault address. Required for collateral types
|
|
14
|
+
# owner: "0x123" # Optional owner address for synthetic token
|
|
15
|
+
# mailbox: "0x123" # mailbox address route
|
|
16
|
+
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
|
|
17
|
+
# isNft: true # If the token is an NFT (ERC721), set to true
|
|
18
|
+
# You can optionally set the token metadata
|
|
19
|
+
# name: "MyCollateralToken"
|
|
20
|
+
# symbol: "MCT"
|
|
21
|
+
# totalSupply: 10000000
|
|
22
|
+
|
|
23
|
+
anvil2:
|
|
24
|
+
type: synthetic
|
|
25
|
+
# token: "0x123" # Collateral/vault address. Required for collateral types
|
|
26
|
+
# owner: "0x123" # Optional owner address for synthetic token
|
|
27
|
+
# mailbox: "0x123" # mailbox address route
|
|
28
|
+
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
|
|
29
|
+
# You can optionally set the token metadata
|
|
30
|
+
# name: "MySyntheticToken"
|
|
31
|
+
# symbol: "MST"
|
|
32
|
+
# totalSupply: 10000000
|
package/package.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperlane-xyz/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-alpha",
|
|
4
4
|
"description": "A command-line utility for common Hyperlane operations",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@hyperlane-xyz/
|
|
7
|
-
"@hyperlane-xyz/
|
|
6
|
+
"@hyperlane-xyz/registry": "^1.2.0",
|
|
7
|
+
"@hyperlane-xyz/sdk": "3.12.2",
|
|
8
|
+
"@hyperlane-xyz/utils": "3.12.2",
|
|
8
9
|
"@inquirer/prompts": "^3.0.0",
|
|
9
10
|
"bignumber.js": "^9.1.1",
|
|
10
11
|
"chalk": "^5.3.0",
|
|
11
12
|
"ethers": "^5.7.2",
|
|
13
|
+
"latest-version": "^8.0.0",
|
|
12
14
|
"terminal-link": "^3.0.0",
|
|
13
|
-
"
|
|
15
|
+
"tsx": "^4.7.1",
|
|
16
|
+
"yaml": "^2.4.1",
|
|
14
17
|
"yargs": "^17.7.2",
|
|
15
18
|
"zod": "^3.21.2"
|
|
16
19
|
},
|
|
@@ -18,23 +21,25 @@
|
|
|
18
21
|
"@types/mocha": "^10.0.1",
|
|
19
22
|
"@types/node": "^18.14.5",
|
|
20
23
|
"@types/yargs": "^17.0.24",
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
22
|
-
"@typescript-eslint/parser": "^
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
25
|
+
"@typescript-eslint/parser": "^7.4.0",
|
|
23
26
|
"chai": "^4.3.6",
|
|
24
|
-
"eslint": "^8.
|
|
25
|
-
"eslint-config-prettier": "^
|
|
27
|
+
"eslint": "^8.57.0",
|
|
28
|
+
"eslint-config-prettier": "^9.1.0",
|
|
26
29
|
"mocha": "^10.2.0",
|
|
27
30
|
"prettier": "^2.8.8",
|
|
28
31
|
"typescript": "^5.1.6"
|
|
29
32
|
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"hyperlane": "node ./dist/cli.js",
|
|
32
|
-
"build": "tsc",
|
|
35
|
+
"build": "yarn version:update && tsc",
|
|
36
|
+
"dev": "yarn version:update && tsc --watch",
|
|
33
37
|
"clean": "rm -rf ./dist",
|
|
34
|
-
"dev": "tsc --watch",
|
|
35
38
|
"lint": "eslint . --ext .ts",
|
|
36
39
|
"prettier": "prettier --write ./src ./examples",
|
|
37
|
-
"test": "mocha --config .mocharc.json"
|
|
40
|
+
"test": "mocha --config .mocharc.json",
|
|
41
|
+
"test:ci": "yarn test",
|
|
42
|
+
"version:update": "echo \"export const VERSION = '$npm_package_version';\" > src/version.ts"
|
|
38
43
|
},
|
|
39
44
|
"files": [
|
|
40
45
|
"./dist",
|
|
@@ -44,6 +49,9 @@
|
|
|
44
49
|
"main": "./dist/index.js",
|
|
45
50
|
"types": "./dist/index.d.ts",
|
|
46
51
|
"type": "module",
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=16"
|
|
54
|
+
},
|
|
47
55
|
"bin": {
|
|
48
56
|
"hyperlane": "./dist/cli.js"
|
|
49
57
|
},
|
|
@@ -59,6 +67,5 @@
|
|
|
59
67
|
"Permissionless",
|
|
60
68
|
"Deployment",
|
|
61
69
|
"Typescript"
|
|
62
|
-
]
|
|
63
|
-
"packageManager": "yarn@4.0.1"
|
|
70
|
+
]
|
|
64
71
|
}
|
package/dist/logger.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import debug from 'debug';
|
|
2
|
-
export declare const logger: debug.Debugger;
|
|
3
|
-
export declare const error: debug.Debugger;
|
|
4
|
-
export declare function createLogger(namespace: string, isError?: boolean): debug.Debugger;
|
|
5
|
-
export declare const logBlue: (...args: any) => void;
|
|
6
|
-
export declare const logPink: (...args: any) => void;
|
|
7
|
-
export declare const logGray: (...args: any) => void;
|
|
8
|
-
export declare const logGreen: (...args: any) => void;
|
|
9
|
-
export declare const logRed: (...args: any) => void;
|
|
10
|
-
export declare const logTip: (...args: any) => void;
|
|
11
|
-
export declare const errorRed: (...args: any) => void;
|
|
12
|
-
export declare const log: (...args: any) => void;
|
|
13
|
-
export declare const logTable: (...args: any) => void;
|
|
14
|
-
//# sourceMappingURL=logger.d.ts.map
|
package/dist/logger.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../logger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,eAAO,MAAM,MAAM,gBAAsB,CAAC;AAC1C,eAAO,MAAM,KAAK,gBAAiC,CAAC;AAEpD,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,UAAQ,kBAE9D;AAoBD,eAAO,MAAM,OAAO,YAAa,GAAG,SAAqC,CAAC;AAC1E,eAAO,MAAM,OAAO,YAAa,GAAG,SACO,CAAC;AAC5C,eAAO,MAAM,OAAO,YAAa,GAAG,SAAqC,CAAC;AAC1E,eAAO,MAAM,QAAQ,YAAa,GAAG,SAAsC,CAAC;AAC5E,eAAO,MAAM,MAAM,YAAa,GAAG,SAAoC,CAAC;AACxE,eAAO,MAAM,MAAM,YAAa,GAAG,SAAyC,CAAC;AAC7E,eAAO,MAAM,QAAQ,YAAa,GAAG,SAAsC,CAAC;AAC5E,eAAO,MAAM,GAAG,YAAa,GAAG,SAAyB,CAAC;AAC1D,eAAO,MAAM,QAAQ,YAAa,GAAG,SAA2B,CAAC"}
|
package/dist/logger.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// This file isn't in the src dir so it it's imported before others after import sort
|
|
2
|
-
// See bigint hack below and https://github.com/trivago/prettier-plugin-sort-imports/issues/112
|
|
3
|
-
import chalk from 'chalk';
|
|
4
|
-
import debug from 'debug';
|
|
5
|
-
// Workaround for bug in bigint-buffer which solana-web3.js depends on
|
|
6
|
-
// https://github.com/no2chem/bigint-buffer/issues/31#issuecomment-1752134062
|
|
7
|
-
const defaultWarn = console.warn;
|
|
8
|
-
console.warn = (...args) => {
|
|
9
|
-
if (args &&
|
|
10
|
-
typeof args[0] === 'string' &&
|
|
11
|
-
args[0]?.includes('bigint: Failed to load bindings'))
|
|
12
|
-
return;
|
|
13
|
-
defaultWarn(...args);
|
|
14
|
-
};
|
|
15
|
-
const HYPERLANE_NS = 'hyperlane';
|
|
16
|
-
// Default root logger for use in utils/scripts
|
|
17
|
-
export const logger = debug(HYPERLANE_NS);
|
|
18
|
-
export const error = debug(`${HYPERLANE_NS}:ERROR`);
|
|
19
|
-
export function createLogger(namespace, isError = false) {
|
|
20
|
-
return isError ? error.extend(namespace) : logger.extend(namespace);
|
|
21
|
-
}
|
|
22
|
-
// Ensure hyperlane logging is enabled by forcing inclusion of hyperlane namespace
|
|
23
|
-
const activeNamespaces = debug.disable();
|
|
24
|
-
const otherNamespaces = activeNamespaces
|
|
25
|
-
.split(',')
|
|
26
|
-
.filter((ns) => ns.includes(HYPERLANE_NS));
|
|
27
|
-
const hypNamespaces = `${HYPERLANE_NS},${HYPERLANE_NS}:*`;
|
|
28
|
-
debug.enable(otherNamespaces ? `${otherNamespaces},${hypNamespaces}` : `${hypNamespaces}`);
|
|
29
|
-
// Change Debug's output format to remove prefixes + postfixes
|
|
30
|
-
function formatArgs(args) {
|
|
31
|
-
args.push(debug.humanize(this.diff));
|
|
32
|
-
args.pop();
|
|
33
|
-
}
|
|
34
|
-
debug.formatArgs = formatArgs;
|
|
35
|
-
// Colored logs directly to console
|
|
36
|
-
export const logBlue = (...args) => console.log(chalk.blue(...args));
|
|
37
|
-
export const logPink = (...args) => console.log(chalk.magentaBright(...args));
|
|
38
|
-
export const logGray = (...args) => console.log(chalk.gray(...args));
|
|
39
|
-
export const logGreen = (...args) => console.log(chalk.green(...args));
|
|
40
|
-
export const logRed = (...args) => console.log(chalk.red(...args));
|
|
41
|
-
export const logTip = (...args) => console.log(chalk.bgYellow(...args));
|
|
42
|
-
export const errorRed = (...args) => console.error(chalk.red(...args));
|
|
43
|
-
export const log = (...args) => console.log(...args);
|
|
44
|
-
export const logTable = (...args) => console.table(...args);
|
|
45
|
-
//# sourceMappingURL=logger.js.map
|
package/dist/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../logger.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,+FAA+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,sEAAsE;AACtE,6EAA6E;AAC7E,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;AACjC,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,IAAS,EAAE,EAAE;IAC9B,IACE,IAAI;QACJ,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,iCAAiC,CAAC;QAEpD,OAAO;IACT,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,WAAW,CAAC;AAEjC,+CAA+C;AAC/C,MAAM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,oBAAoB,CAAC;AAW3D,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,8BAmBvD"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { logBlue } from '../../logger.js';
|
|
3
|
-
import { readYamlOrJson } from '../utils/files.js';
|
|
4
|
-
const RecursiveObjectSchema = z.lazy(() => z.object({}).catchall(z.union([z.string(), RecursiveObjectSchema])));
|
|
5
|
-
const DeploymentArtifactsSchema = z.object({}).catchall(RecursiveObjectSchema);
|
|
6
|
-
export function readDeploymentArtifacts(filePath) {
|
|
7
|
-
const artifacts = readYamlOrJson(filePath);
|
|
8
|
-
if (!artifacts)
|
|
9
|
-
throw new Error(`No artifacts found at ${filePath}`);
|
|
10
|
-
const result = DeploymentArtifactsSchema.safeParse(artifacts);
|
|
11
|
-
if (!result.success) {
|
|
12
|
-
const firstIssue = result.error.issues[0];
|
|
13
|
-
logBlue(`Read deployment artifacts from ${JSON.stringify(result.error.issues, null, 4)}`);
|
|
14
|
-
throw new Error(`Invalid artifacts: ${firstIssue.path} => ${firstIssue.message}`);
|
|
15
|
-
}
|
|
16
|
-
return artifacts;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=artifacts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/config/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,CAAC,EAAE,MAAM,KAAK,CAAC;AAIpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,qBAAqB,GAAe,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACpD,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,CACpE,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAE/E,MAAM,UAAU,uBAAuB,CAAC,QAAgB;IACtD,MAAM,SAAS,GAAG,cAAc,CAA6B,QAAQ,CAAC,CAAC;IAEvE,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAC;IACrE,MAAM,MAAM,GAAG,yBAAyB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;QACnB,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC1C,OAAO,CACL,kCAAkC,IAAI,CAAC,SAAS,CAC9C,MAAM,CAAC,KAAK,CAAC,MAAM,EACnB,IAAI,EACJ,CAAC,CACF,EAAE,CACJ,CAAC;QACF,MAAM,IAAI,KAAK,CACb,sBAAsB,UAAU,CAAC,IAAI,OAAO,UAAU,CAAC,OAAO,EAAE,CACjE,CAAC;KACH;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/dist/src/context.d.ts
DELETED
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { ChainMap, ChainMetadata, HyperlaneContractsMap, MultiProvider } from '@hyperlane-xyz/sdk';
|
|
3
|
-
export declare const sdkContractAddressesMap: {
|
|
4
|
-
polygon: {
|
|
5
|
-
storageGasOracle: string;
|
|
6
|
-
proxyAdmin: string;
|
|
7
|
-
merkleRootMultisigIsmFactory: string;
|
|
8
|
-
messageIdMultisigIsmFactory: string;
|
|
9
|
-
aggregationIsmFactory: string;
|
|
10
|
-
aggregationHookFactory: string;
|
|
11
|
-
routingIsmFactory: string;
|
|
12
|
-
mailbox: string;
|
|
13
|
-
merkleTreeHook: string;
|
|
14
|
-
interchainGasPaymaster: string;
|
|
15
|
-
aggregationHook: string;
|
|
16
|
-
protocolFee: string;
|
|
17
|
-
validatorAnnounce: string;
|
|
18
|
-
};
|
|
19
|
-
bsc: {
|
|
20
|
-
storageGasOracle: string;
|
|
21
|
-
proxyAdmin: string;
|
|
22
|
-
merkleRootMultisigIsmFactory: string;
|
|
23
|
-
messageIdMultisigIsmFactory: string;
|
|
24
|
-
aggregationIsmFactory: string;
|
|
25
|
-
aggregationHookFactory: string;
|
|
26
|
-
routingIsmFactory: string;
|
|
27
|
-
mailbox: string;
|
|
28
|
-
merkleTreeHook: string;
|
|
29
|
-
interchainGasPaymaster: string;
|
|
30
|
-
aggregationHook: string;
|
|
31
|
-
protocolFee: string;
|
|
32
|
-
validatorAnnounce: string;
|
|
33
|
-
};
|
|
34
|
-
arbitrum: {
|
|
35
|
-
storageGasOracle: string;
|
|
36
|
-
proxyAdmin: string;
|
|
37
|
-
merkleRootMultisigIsmFactory: string;
|
|
38
|
-
messageIdMultisigIsmFactory: string;
|
|
39
|
-
aggregationIsmFactory: string;
|
|
40
|
-
aggregationHookFactory: string;
|
|
41
|
-
routingIsmFactory: string;
|
|
42
|
-
merkleTreeHook: string;
|
|
43
|
-
interchainGasPaymaster: string;
|
|
44
|
-
aggregationHook: string;
|
|
45
|
-
protocolFee: string;
|
|
46
|
-
mailbox: string;
|
|
47
|
-
validatorAnnounce: string;
|
|
48
|
-
};
|
|
49
|
-
optimism: {
|
|
50
|
-
storageGasOracle: string;
|
|
51
|
-
proxyAdmin: string;
|
|
52
|
-
merkleRootMultisigIsmFactory: string;
|
|
53
|
-
messageIdMultisigIsmFactory: string;
|
|
54
|
-
aggregationIsmFactory: string;
|
|
55
|
-
aggregationHookFactory: string;
|
|
56
|
-
routingIsmFactory: string;
|
|
57
|
-
merkleTreeHook: string;
|
|
58
|
-
interchainGasPaymaster: string;
|
|
59
|
-
aggregationHook: string;
|
|
60
|
-
protocolFee: string;
|
|
61
|
-
mailbox: string;
|
|
62
|
-
validatorAnnounce: string;
|
|
63
|
-
};
|
|
64
|
-
moonbeam: {
|
|
65
|
-
storageGasOracle: string;
|
|
66
|
-
proxyAdmin: string;
|
|
67
|
-
merkleRootMultisigIsmFactory: string;
|
|
68
|
-
messageIdMultisigIsmFactory: string;
|
|
69
|
-
aggregationIsmFactory: string;
|
|
70
|
-
aggregationHookFactory: string;
|
|
71
|
-
routingIsmFactory: string;
|
|
72
|
-
mailbox: string;
|
|
73
|
-
merkleTreeHook: string;
|
|
74
|
-
interchainGasPaymaster: string;
|
|
75
|
-
aggregationHook: string;
|
|
76
|
-
protocolFee: string;
|
|
77
|
-
validatorAnnounce: string;
|
|
78
|
-
};
|
|
79
|
-
gnosis: {
|
|
80
|
-
storageGasOracle: string;
|
|
81
|
-
proxyAdmin: string;
|
|
82
|
-
merkleRootMultisigIsmFactory: string;
|
|
83
|
-
messageIdMultisigIsmFactory: string;
|
|
84
|
-
aggregationIsmFactory: string;
|
|
85
|
-
aggregationHookFactory: string;
|
|
86
|
-
mailbox: string;
|
|
87
|
-
routingIsmFactory: string;
|
|
88
|
-
merkleTreeHook: string;
|
|
89
|
-
interchainGasPaymaster: string;
|
|
90
|
-
aggregationHook: string;
|
|
91
|
-
protocolFee: string;
|
|
92
|
-
validatorAnnounce: string;
|
|
93
|
-
};
|
|
94
|
-
base: {
|
|
95
|
-
merkleRootMultisigIsmFactory: string;
|
|
96
|
-
messageIdMultisigIsmFactory: string;
|
|
97
|
-
aggregationIsmFactory: string;
|
|
98
|
-
aggregationHookFactory: string;
|
|
99
|
-
routingIsmFactory: string;
|
|
100
|
-
proxyAdmin: string;
|
|
101
|
-
mailbox: string;
|
|
102
|
-
merkleTreeHook: string;
|
|
103
|
-
storageGasOracle: string;
|
|
104
|
-
interchainGasPaymaster: string;
|
|
105
|
-
aggregationHook: string;
|
|
106
|
-
protocolFee: string;
|
|
107
|
-
validatorAnnounce: string;
|
|
108
|
-
};
|
|
109
|
-
scroll: {
|
|
110
|
-
merkleRootMultisigIsmFactory: string;
|
|
111
|
-
messageIdMultisigIsmFactory: string;
|
|
112
|
-
aggregationIsmFactory: string;
|
|
113
|
-
aggregationHookFactory: string;
|
|
114
|
-
routingIsmFactory: string;
|
|
115
|
-
merkleTreeHook: string;
|
|
116
|
-
proxyAdmin: string;
|
|
117
|
-
storageGasOracle: string;
|
|
118
|
-
interchainGasPaymaster: string;
|
|
119
|
-
aggregationHook: string;
|
|
120
|
-
protocolFee: string;
|
|
121
|
-
mailbox: string;
|
|
122
|
-
validatorAnnounce: string;
|
|
123
|
-
};
|
|
124
|
-
polygonzkevm: {
|
|
125
|
-
merkleRootMultisigIsmFactory: string;
|
|
126
|
-
messageIdMultisigIsmFactory: string;
|
|
127
|
-
aggregationIsmFactory: string;
|
|
128
|
-
aggregationHookFactory: string;
|
|
129
|
-
routingIsmFactory: string;
|
|
130
|
-
merkleTreeHook: string;
|
|
131
|
-
proxyAdmin: string;
|
|
132
|
-
storageGasOracle: string;
|
|
133
|
-
interchainGasPaymaster: string;
|
|
134
|
-
aggregationHook: string;
|
|
135
|
-
protocolFee: string;
|
|
136
|
-
mailbox: string;
|
|
137
|
-
validatorAnnounce: string;
|
|
138
|
-
};
|
|
139
|
-
celo: {
|
|
140
|
-
storageGasOracle: string;
|
|
141
|
-
proxyAdmin: string;
|
|
142
|
-
merkleRootMultisigIsmFactory: string;
|
|
143
|
-
messageIdMultisigIsmFactory: string;
|
|
144
|
-
aggregationIsmFactory: string;
|
|
145
|
-
aggregationHookFactory: string;
|
|
146
|
-
routingIsmFactory: string;
|
|
147
|
-
merkleTreeHook: string;
|
|
148
|
-
interchainGasPaymaster: string;
|
|
149
|
-
aggregationHook: string;
|
|
150
|
-
protocolFee: string;
|
|
151
|
-
mailbox: string;
|
|
152
|
-
validatorAnnounce: string;
|
|
153
|
-
};
|
|
154
|
-
ethereum: {
|
|
155
|
-
storageGasOracle: string;
|
|
156
|
-
proxyAdmin: string;
|
|
157
|
-
merkleRootMultisigIsmFactory: string;
|
|
158
|
-
messageIdMultisigIsmFactory: string;
|
|
159
|
-
aggregationIsmFactory: string;
|
|
160
|
-
aggregationHookFactory: string;
|
|
161
|
-
routingIsmFactory: string;
|
|
162
|
-
merkleTreeHook: string;
|
|
163
|
-
interchainGasPaymaster: string;
|
|
164
|
-
aggregationHook: string;
|
|
165
|
-
protocolFee: string;
|
|
166
|
-
mailbox: string;
|
|
167
|
-
validatorAnnounce: string;
|
|
168
|
-
};
|
|
169
|
-
avalanche: {
|
|
170
|
-
storageGasOracle: string;
|
|
171
|
-
proxyAdmin: string;
|
|
172
|
-
merkleRootMultisigIsmFactory: string;
|
|
173
|
-
messageIdMultisigIsmFactory: string;
|
|
174
|
-
aggregationIsmFactory: string;
|
|
175
|
-
aggregationHookFactory: string;
|
|
176
|
-
routingIsmFactory: string;
|
|
177
|
-
merkleTreeHook: string;
|
|
178
|
-
interchainGasPaymaster: string;
|
|
179
|
-
aggregationHook: string;
|
|
180
|
-
protocolFee: string;
|
|
181
|
-
mailbox: string;
|
|
182
|
-
validatorAnnounce: string;
|
|
183
|
-
};
|
|
184
|
-
basegoerli: {
|
|
185
|
-
merkleRootMultisigIsmFactory: string;
|
|
186
|
-
messageIdMultisigIsmFactory: string;
|
|
187
|
-
aggregationIsmFactory: string;
|
|
188
|
-
aggregationHookFactory: string;
|
|
189
|
-
routingIsmFactory: string;
|
|
190
|
-
proxyAdmin: string;
|
|
191
|
-
mailbox: string;
|
|
192
|
-
validatorAnnounce: string;
|
|
193
|
-
merkleTreeHook: string;
|
|
194
|
-
storageGasOracle: string;
|
|
195
|
-
interchainGasPaymaster: string;
|
|
196
|
-
aggregationHook: string;
|
|
197
|
-
protocolFee: string;
|
|
198
|
-
fallbackRoutingHook: string;
|
|
199
|
-
};
|
|
200
|
-
arbitrumgoerli: {
|
|
201
|
-
merkleRootMultisigIsmFactory: string;
|
|
202
|
-
messageIdMultisigIsmFactory: string;
|
|
203
|
-
aggregationIsmFactory: string;
|
|
204
|
-
aggregationHookFactory: string;
|
|
205
|
-
routingIsmFactory: string;
|
|
206
|
-
proxyAdmin: string;
|
|
207
|
-
mailbox: string;
|
|
208
|
-
validatorAnnounce: string;
|
|
209
|
-
merkleTreeHook: string;
|
|
210
|
-
storageGasOracle: string;
|
|
211
|
-
interchainGasPaymaster: string;
|
|
212
|
-
aggregationHook: string;
|
|
213
|
-
protocolFee: string;
|
|
214
|
-
fallbackRoutingHook: string;
|
|
215
|
-
};
|
|
216
|
-
optimismgoerli: {
|
|
217
|
-
merkleRootMultisigIsmFactory: string;
|
|
218
|
-
messageIdMultisigIsmFactory: string;
|
|
219
|
-
aggregationIsmFactory: string;
|
|
220
|
-
aggregationHookFactory: string;
|
|
221
|
-
routingIsmFactory: string;
|
|
222
|
-
proxyAdmin: string;
|
|
223
|
-
mailbox: string;
|
|
224
|
-
validatorAnnounce: string;
|
|
225
|
-
merkleTreeHook: string;
|
|
226
|
-
storageGasOracle: string;
|
|
227
|
-
interchainGasPaymaster: string;
|
|
228
|
-
aggregationHook: string;
|
|
229
|
-
protocolFee: string;
|
|
230
|
-
fallbackRoutingHook: string;
|
|
231
|
-
};
|
|
232
|
-
scrollsepolia: {
|
|
233
|
-
merkleRootMultisigIsmFactory: string;
|
|
234
|
-
messageIdMultisigIsmFactory: string;
|
|
235
|
-
aggregationIsmFactory: string;
|
|
236
|
-
aggregationHookFactory: string;
|
|
237
|
-
routingIsmFactory: string;
|
|
238
|
-
proxyAdmin: string;
|
|
239
|
-
mailbox: string;
|
|
240
|
-
validatorAnnounce: string;
|
|
241
|
-
merkleTreeHook: string;
|
|
242
|
-
storageGasOracle: string;
|
|
243
|
-
interchainGasPaymaster: string;
|
|
244
|
-
aggregationHook: string;
|
|
245
|
-
protocolFee: string;
|
|
246
|
-
fallbackRoutingHook: string;
|
|
247
|
-
};
|
|
248
|
-
alfajores: {
|
|
249
|
-
merkleRootMultisigIsmFactory: string;
|
|
250
|
-
messageIdMultisigIsmFactory: string;
|
|
251
|
-
aggregationIsmFactory: string;
|
|
252
|
-
aggregationHookFactory: string;
|
|
253
|
-
routingIsmFactory: string;
|
|
254
|
-
proxyAdmin: string;
|
|
255
|
-
mailbox: string;
|
|
256
|
-
validatorAnnounce: string;
|
|
257
|
-
merkleTreeHook: string;
|
|
258
|
-
storageGasOracle: string;
|
|
259
|
-
interchainGasPaymaster: string;
|
|
260
|
-
aggregationHook: string;
|
|
261
|
-
protocolFee: string;
|
|
262
|
-
fallbackRoutingHook: string;
|
|
263
|
-
};
|
|
264
|
-
polygonzkevmtestnet: {
|
|
265
|
-
merkleRootMultisigIsmFactory: string;
|
|
266
|
-
messageIdMultisigIsmFactory: string;
|
|
267
|
-
aggregationIsmFactory: string;
|
|
268
|
-
aggregationHookFactory: string;
|
|
269
|
-
routingIsmFactory: string;
|
|
270
|
-
proxyAdmin: string;
|
|
271
|
-
mailbox: string;
|
|
272
|
-
validatorAnnounce: string;
|
|
273
|
-
merkleTreeHook: string;
|
|
274
|
-
storageGasOracle: string;
|
|
275
|
-
interchainGasPaymaster: string;
|
|
276
|
-
aggregationHook: string;
|
|
277
|
-
protocolFee: string;
|
|
278
|
-
fallbackRoutingHook: string;
|
|
279
|
-
};
|
|
280
|
-
sepolia: {
|
|
281
|
-
merkleRootMultisigIsmFactory: string;
|
|
282
|
-
messageIdMultisigIsmFactory: string;
|
|
283
|
-
aggregationIsmFactory: string;
|
|
284
|
-
aggregationHookFactory: string;
|
|
285
|
-
routingIsmFactory: string;
|
|
286
|
-
proxyAdmin: string;
|
|
287
|
-
storageGasOracle: string;
|
|
288
|
-
interchainGasPaymaster: string;
|
|
289
|
-
aggregationHook: string;
|
|
290
|
-
protocolFee: string;
|
|
291
|
-
mailbox: string;
|
|
292
|
-
merkleTreeHook: string;
|
|
293
|
-
validatorAnnounce: string;
|
|
294
|
-
fallbackRoutingHook: string;
|
|
295
|
-
};
|
|
296
|
-
fuji: {
|
|
297
|
-
merkleRootMultisigIsmFactory: string;
|
|
298
|
-
messageIdMultisigIsmFactory: string;
|
|
299
|
-
aggregationIsmFactory: string;
|
|
300
|
-
aggregationHookFactory: string;
|
|
301
|
-
routingIsmFactory: string;
|
|
302
|
-
proxyAdmin: string;
|
|
303
|
-
mailbox: string;
|
|
304
|
-
validatorAnnounce: string;
|
|
305
|
-
merkleTreeHook: string;
|
|
306
|
-
storageGasOracle: string;
|
|
307
|
-
interchainGasPaymaster: string;
|
|
308
|
-
aggregationHook: string;
|
|
309
|
-
protocolFee: string;
|
|
310
|
-
fallbackRoutingHook: string;
|
|
311
|
-
};
|
|
312
|
-
bsctestnet: {
|
|
313
|
-
merkleRootMultisigIsmFactory: string;
|
|
314
|
-
messageIdMultisigIsmFactory: string;
|
|
315
|
-
aggregationIsmFactory: string;
|
|
316
|
-
aggregationHookFactory: string;
|
|
317
|
-
routingIsmFactory: string;
|
|
318
|
-
proxyAdmin: string;
|
|
319
|
-
storageGasOracle: string;
|
|
320
|
-
interchainGasPaymaster: string;
|
|
321
|
-
aggregationHook: string;
|
|
322
|
-
protocolFee: string;
|
|
323
|
-
mailbox: string;
|
|
324
|
-
merkleTreeHook: string;
|
|
325
|
-
validatorAnnounce: string;
|
|
326
|
-
fallbackRoutingHook: string;
|
|
327
|
-
};
|
|
328
|
-
goerli: {
|
|
329
|
-
merkleRootMultisigIsmFactory: string;
|
|
330
|
-
messageIdMultisigIsmFactory: string;
|
|
331
|
-
aggregationIsmFactory: string;
|
|
332
|
-
aggregationHookFactory: string;
|
|
333
|
-
routingIsmFactory: string;
|
|
334
|
-
proxyAdmin: string;
|
|
335
|
-
storageGasOracle: string;
|
|
336
|
-
interchainGasPaymaster: string;
|
|
337
|
-
aggregationHook: string;
|
|
338
|
-
protocolFee: string;
|
|
339
|
-
merkleTreeHook: string;
|
|
340
|
-
mailbox: string;
|
|
341
|
-
validatorAnnounce: string;
|
|
342
|
-
fallbackRoutingHook: string;
|
|
343
|
-
};
|
|
344
|
-
moonbasealpha: {
|
|
345
|
-
merkleRootMultisigIsmFactory: string;
|
|
346
|
-
messageIdMultisigIsmFactory: string;
|
|
347
|
-
aggregationIsmFactory: string;
|
|
348
|
-
aggregationHookFactory: string;
|
|
349
|
-
routingIsmFactory: string;
|
|
350
|
-
proxyAdmin: string;
|
|
351
|
-
mailbox: string;
|
|
352
|
-
merkleTreeHook: string;
|
|
353
|
-
storageGasOracle: string;
|
|
354
|
-
interchainGasPaymaster: string;
|
|
355
|
-
aggregationHook: string;
|
|
356
|
-
protocolFee: string;
|
|
357
|
-
validatorAnnounce: string;
|
|
358
|
-
fallbackRoutingHook: string;
|
|
359
|
-
};
|
|
360
|
-
mumbai: {
|
|
361
|
-
merkleRootMultisigIsmFactory: string;
|
|
362
|
-
messageIdMultisigIsmFactory: string;
|
|
363
|
-
aggregationIsmFactory: string;
|
|
364
|
-
aggregationHookFactory: string;
|
|
365
|
-
routingIsmFactory: string;
|
|
366
|
-
merkleTreeHook: string;
|
|
367
|
-
proxyAdmin: string;
|
|
368
|
-
storageGasOracle: string;
|
|
369
|
-
interchainGasPaymaster: string;
|
|
370
|
-
aggregationHook: string;
|
|
371
|
-
protocolFee: string;
|
|
372
|
-
mailbox: string;
|
|
373
|
-
validatorAnnounce: string;
|
|
374
|
-
fallbackRoutingHook: string;
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
export declare function getMergedContractAddresses(artifacts?: HyperlaneContractsMap<any>): HyperlaneContractsMap<any>;
|
|
378
|
-
export declare function getContext(chainConfigPath: string): {
|
|
379
|
-
customChains: ChainMap<ChainMetadata>;
|
|
380
|
-
multiProvider: MultiProvider<object>;
|
|
381
|
-
};
|
|
382
|
-
export declare function getContextWithSigner(key: string, chainConfigPath: string): {
|
|
383
|
-
signer: ethers.Wallet;
|
|
384
|
-
customChains: ChainMap<ChainMetadata>;
|
|
385
|
-
multiProvider: MultiProvider<object>;
|
|
386
|
-
};
|
|
387
|
-
export declare function getMultiProvider(customChains: ChainMap<ChainMetadata>, signer?: ethers.Signer): MultiProvider<object>;
|
|
388
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnC,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,8BAMvC;AAED,wBAAgB,UAAU,CAAC,eAAe,EAAE,MAAM;;;EAIjD;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;;;;EAKxE;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,QAAQ,CAAC,aAAa,CAAC,EACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,yBAMvB"}
|
package/dist/src/context.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { MultiProvider, chainMetadata, hyperlaneEnvironments, } from '@hyperlane-xyz/sdk';
|
|
2
|
-
import { objMerge } from '@hyperlane-xyz/utils';
|
|
3
|
-
import { readChainConfigsIfExists } from './config/chain.js';
|
|
4
|
-
import { keyToSigner } from './utils/keys.js';
|
|
5
|
-
export const sdkContractAddressesMap = {
|
|
6
|
-
...hyperlaneEnvironments.testnet,
|
|
7
|
-
...hyperlaneEnvironments.mainnet,
|
|
8
|
-
};
|
|
9
|
-
export function getMergedContractAddresses(artifacts) {
|
|
10
|
-
return objMerge(sdkContractAddressesMap, artifacts || {});
|
|
11
|
-
}
|
|
12
|
-
export function getContext(chainConfigPath) {
|
|
13
|
-
const customChains = readChainConfigsIfExists(chainConfigPath);
|
|
14
|
-
const multiProvider = getMultiProvider(customChains);
|
|
15
|
-
return { customChains, multiProvider };
|
|
16
|
-
}
|
|
17
|
-
export function getContextWithSigner(key, chainConfigPath) {
|
|
18
|
-
const signer = keyToSigner(key);
|
|
19
|
-
const customChains = readChainConfigsIfExists(chainConfigPath);
|
|
20
|
-
const multiProvider = getMultiProvider(customChains, signer);
|
|
21
|
-
return { signer, customChains, multiProvider };
|
|
22
|
-
}
|
|
23
|
-
export function getMultiProvider(customChains, signer) {
|
|
24
|
-
const chainConfigs = { ...chainMetadata, ...customChains };
|
|
25
|
-
const mp = new MultiProvider(chainConfigs);
|
|
26
|
-
if (signer)
|
|
27
|
-
mp.setSharedSigner(signer);
|
|
28
|
-
return mp;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=context.js.map
|
package/dist/src/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,aAAa,EACb,aAAa,EACb,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAA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