@hyperlane-xyz/cli 3.1.2 → 3.1.4
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/dist/cli.js +0 -0
- package/dist/src/commands/config.js +10 -10
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/deploy.js +11 -10
- package/dist/src/commands/deploy.js.map +1 -1
- package/dist/src/commands/options.js +2 -2
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/send.js +2 -2
- package/dist/src/commands/send.js.map +1 -1
- package/dist/src/commands/status.js +2 -2
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/config/chain.d.ts +2 -2
- package/dist/src/config/chain.d.ts.map +1 -1
- package/dist/src/config/chain.js +3 -3
- package/dist/src/config/chain.js.map +1 -1
- package/dist/src/config/hooks.d.ts +25 -25
- package/dist/src/config/hooks.d.ts.map +1 -1
- package/dist/src/config/hooks.js +57 -54
- package/dist/src/config/hooks.js.map +1 -1
- package/dist/src/config/multisig.d.ts +2 -2
- package/dist/src/config/multisig.d.ts.map +1 -1
- package/dist/src/config/multisig.js +8 -9
- package/dist/src/config/multisig.js.map +1 -1
- package/dist/src/config/warp.js +2 -2
- package/dist/src/config/warp.js.map +1 -1
- package/dist/src/consts.d.ts +3 -3
- package/dist/src/consts.d.ts.map +1 -1
- package/dist/src/consts.js +3 -4
- package/dist/src/consts.js.map +1 -1
- package/dist/src/context.js +3 -3
- package/dist/src/context.js.map +1 -1
- package/dist/src/deploy/core.d.ts.map +1 -1
- package/dist/src/deploy/core.js +27 -31
- package/dist/src/deploy/core.js.map +1 -1
- package/dist/src/deploy/utils.d.ts +4 -4
- package/dist/src/deploy/utils.d.ts.map +1 -1
- package/dist/src/deploy/utils.js +5 -5
- package/dist/src/deploy/utils.js.map +1 -1
- package/dist/src/deploy/warp.js +2 -2
- package/dist/src/deploy/warp.js.map +1 -1
- package/dist/src/send/message.js +2 -2
- package/dist/src/send/message.js.map +1 -1
- package/dist/src/send/transfer.js +2 -2
- package/dist/src/send/transfer.js.map +1 -1
- package/dist/src/utils/balances.d.ts +1 -0
- package/dist/src/utils/balances.d.ts.map +1 -1
- package/dist/src/utils/balances.js +19 -3
- package/dist/src/utils/balances.js.map +1 -1
- package/examples/multisig-ism.yaml +5 -4
- package/package.json +5 -4
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { log, logGreen } from '../../logger.js';
|
|
2
|
-
import { createChainConfig,
|
|
2
|
+
import { createChainConfig, readChainConfigs } from '../config/chain.js';
|
|
3
3
|
import { createHookConfig } from '../config/hooks.js';
|
|
4
4
|
import { createMultisigConfig, readMultisigConfig, } from '../config/multisig.js';
|
|
5
5
|
import { createWarpConfig, readWarpRouteConfig } from '../config/warp.js';
|
|
@@ -24,19 +24,19 @@ const createCommand = {
|
|
|
24
24
|
command: 'create',
|
|
25
25
|
describe: 'Create a new Hyperlane config',
|
|
26
26
|
builder: (yargs) => yargs
|
|
27
|
-
.command(
|
|
28
|
-
.command(
|
|
27
|
+
.command(createChainConfigCommand)
|
|
28
|
+
.command(createMultisigConfigCommand)
|
|
29
29
|
.command(createHookConfigCommand)
|
|
30
|
-
.command(
|
|
30
|
+
.command(createWarpConfigCommand)
|
|
31
31
|
.version(false)
|
|
32
32
|
.demandCommand(),
|
|
33
33
|
handler: () => log('Command required'),
|
|
34
34
|
};
|
|
35
|
-
const
|
|
35
|
+
const createChainConfigCommand = {
|
|
36
36
|
command: 'chain',
|
|
37
37
|
describe: 'Create a new, minimal Hyperlane chain config (aka chain metadata)',
|
|
38
38
|
builder: (yargs) => yargs.options({
|
|
39
|
-
output: outputFileOption('./configs/
|
|
39
|
+
output: outputFileOption('./configs/chains.yaml'),
|
|
40
40
|
format: fileFormatOption,
|
|
41
41
|
}),
|
|
42
42
|
handler: async (argv) => {
|
|
@@ -46,7 +46,7 @@ const createChainCommand = {
|
|
|
46
46
|
process.exit(0);
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const createMultisigConfigCommand = {
|
|
50
50
|
command: 'multisig',
|
|
51
51
|
describe: 'Create a new Multisig ISM config',
|
|
52
52
|
builder: (yargs) => yargs.options({
|
|
@@ -66,7 +66,7 @@ const createHookConfigCommand = {
|
|
|
66
66
|
command: 'hook',
|
|
67
67
|
describe: 'Create a new Hook config',
|
|
68
68
|
builder: (yargs) => yargs.options({
|
|
69
|
-
output: outputFileOption('./configs/
|
|
69
|
+
output: outputFileOption('./configs/hooks.yaml'),
|
|
70
70
|
format: fileFormatOption,
|
|
71
71
|
chains: chainsCommandOption,
|
|
72
72
|
}),
|
|
@@ -78,7 +78,7 @@ const createHookConfigCommand = {
|
|
|
78
78
|
process.exit(0);
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
|
-
const
|
|
81
|
+
const createWarpConfigCommand = {
|
|
82
82
|
command: 'warp',
|
|
83
83
|
describe: 'Create a new Warp Route tokens config',
|
|
84
84
|
builder: (yargs) => yargs.options({
|
|
@@ -120,7 +120,7 @@ const validateChainCommand = {
|
|
|
120
120
|
}),
|
|
121
121
|
handler: async (argv) => {
|
|
122
122
|
const path = argv.path;
|
|
123
|
-
|
|
123
|
+
readChainConfigs(path);
|
|
124
124
|
process.exit(0);
|
|
125
125
|
},
|
|
126
126
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/commands/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/commands/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,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,EAAE,IAAI;SACnB;KACF,CAAC;IACJ,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAc,CAAC;QACjC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC1B,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAC5B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
|
|
@@ -22,13 +22,11 @@ const coreCommand = {
|
|
|
22
22
|
command: 'core',
|
|
23
23
|
describe: 'Deploy core Hyperlane contracts',
|
|
24
24
|
builder: (yargs) => yargs.options({
|
|
25
|
-
|
|
26
|
-
'chain-configs': chainsCommandOption,
|
|
27
|
-
chains: {
|
|
25
|
+
targets: {
|
|
28
26
|
type: 'string',
|
|
29
27
|
description: 'Comma separated list of chain names to which contracts will be deployed',
|
|
30
28
|
},
|
|
31
|
-
|
|
29
|
+
chains: chainsCommandOption,
|
|
32
30
|
artifacts: coreArtifactsOption,
|
|
33
31
|
ism: {
|
|
34
32
|
type: 'string',
|
|
@@ -38,15 +36,17 @@ const coreCommand = {
|
|
|
38
36
|
type: 'string',
|
|
39
37
|
description: 'A path to a JSON or YAML file with Hook configs (for every chain)',
|
|
40
38
|
},
|
|
39
|
+
out: outDirCommandOption,
|
|
40
|
+
key: keyCommandOption,
|
|
41
41
|
yes: skipConfirmationOption,
|
|
42
42
|
}),
|
|
43
43
|
handler: async (argv) => {
|
|
44
44
|
logGray('Hyperlane permissionless core deployment');
|
|
45
45
|
logGray('----------------------------------------');
|
|
46
46
|
const key = argv.key || process.env.HYP_KEY;
|
|
47
|
-
const chainConfigPath = argv
|
|
47
|
+
const chainConfigPath = argv.chains;
|
|
48
48
|
const outPath = argv.out;
|
|
49
|
-
const chains = argv.
|
|
49
|
+
const chains = argv.targets
|
|
50
50
|
?.split(',')
|
|
51
51
|
.map((r) => r.trim());
|
|
52
52
|
const artifactsPath = argv.artifacts;
|
|
@@ -73,14 +73,15 @@ const warpCommand = {
|
|
|
73
73
|
command: 'warp',
|
|
74
74
|
describe: 'Deploy Warp Route contracts',
|
|
75
75
|
builder: (yargs) => yargs.options({
|
|
76
|
-
key: keyCommandOption,
|
|
77
|
-
chains: chainsCommandOption,
|
|
78
|
-
out: outDirCommandOption,
|
|
79
|
-
core: coreArtifactsOption,
|
|
80
76
|
config: {
|
|
81
77
|
type: 'string',
|
|
82
78
|
description: 'A path to a JSON or YAML file with a warp config.',
|
|
79
|
+
default: './configs/warp-tokens.yaml',
|
|
83
80
|
},
|
|
81
|
+
core: coreArtifactsOption,
|
|
82
|
+
chains: chainsCommandOption,
|
|
83
|
+
out: outDirCommandOption,
|
|
84
|
+
key: keyCommandOption,
|
|
84
85
|
yes: skipConfirmationOption,
|
|
85
86
|
}),
|
|
86
87
|
handler: async (argv) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/commands/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,6DAA6D;IACvE,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK;SACF,OAAO,CAAC,WAAW,CAAC;SACpB,OAAO,CAAC,WAAW,CAAC;SACpB,OAAO,CAAC,KAAK,CAAC;SACd,aAAa,EAAE;IACpB,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC;CAC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;YACd,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,4BAA4B;SACtC;QACD,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,mBAAmB;QAC3B,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,gBAAgB;QACrB,GAAG,EAAE,sBAAsB;KAC5B,CAAC;IACJ,OAAO,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;QAC3B,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;QACpD,MAAM,eAAe,GAAW,IAAI,CAAC,MAAM,CAAC;QAC5C,MAAM,cAAc,GAAuB,IAAI,CAAC,MAAM,CAAC;QACvD,MAAM,iBAAiB,GAAuB,IAAI,CAAC,IAAI,CAAC;QACxD,MAAM,OAAO,GAAW,IAAI,CAAC,GAAG,CAAC;QACjC,MAAM,gBAAgB,GAAY,IAAI,CAAC,GAAG,CAAC;QAC3C,MAAM,aAAa,CAAC;YAClB,GAAG;YACH,eAAe;YACf,cAAc;YACd,iBAAiB;YACjB,OAAO;YACP,gBAAgB;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
|
|
@@ -6,8 +6,8 @@ export const keyCommandOption = {
|
|
|
6
6
|
export const chainsCommandOption = {
|
|
7
7
|
type: 'string',
|
|
8
8
|
description: 'A path to a JSON or YAML file with chain configs',
|
|
9
|
-
default: './configs/
|
|
10
|
-
alias: '
|
|
9
|
+
default: './configs/chains.yaml',
|
|
10
|
+
alias: 'c',
|
|
11
11
|
};
|
|
12
12
|
export const outDirCommandOption = {
|
|
13
13
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,gBAAgB,GAAY;IACvC,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,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IACf,WAAW,EAAE,2BAA2B;IACxC,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,GAAG;CACX,CAAC"}
|
|
@@ -21,8 +21,6 @@ export const sendCommand = {
|
|
|
21
21
|
*/
|
|
22
22
|
const messageOptions = {
|
|
23
23
|
key: keyCommandOption,
|
|
24
|
-
chains: chainsCommandOption,
|
|
25
|
-
core: coreArtifactsOption,
|
|
26
24
|
origin: {
|
|
27
25
|
type: 'string',
|
|
28
26
|
description: 'Origin chain to send message from',
|
|
@@ -33,6 +31,8 @@ const messageOptions = {
|
|
|
33
31
|
description: 'Destination chain to send message to',
|
|
34
32
|
demandOption: true,
|
|
35
33
|
},
|
|
34
|
+
core: coreArtifactsOption,
|
|
35
|
+
chains: chainsCommandOption,
|
|
36
36
|
timeout: {
|
|
37
37
|
type: 'number',
|
|
38
38
|
description: 'Timeout in seconds',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/commands/send.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,iCAAiC;IAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK;SACF,OAAO,CAAC,cAAc,CAAC;SACvB,OAAO,CAAC,eAAe,CAAC;SACxB,OAAO,CAAC,KAAK,CAAC;SACd,aAAa,EAAE;IACpB,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,k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
describe: 'Check status of a message',
|
|
6
6
|
builder: (yargs) => yargs.options({
|
|
7
|
-
chains: chainsCommandOption,
|
|
8
|
-
core: coreArtifactsOption,
|
|
9
7
|
id: {
|
|
10
8
|
type: 'string',
|
|
11
9
|
description: 'Message ID',
|
|
@@ -16,6 +14,8 @@ export const statusCommand = {
|
|
|
16
14
|
description: 'Destination chain name',
|
|
17
15
|
demandOption: true,
|
|
18
16
|
},
|
|
17
|
+
chains: chainsCommandOption,
|
|
18
|
+
core: coreArtifactsOption,
|
|
19
19
|
}),
|
|
20
20
|
handler: async (argv) => {
|
|
21
21
|
const chainConfigPath = argv.chains;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/commands/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK,CAAC,OAAO,CAAC;QACZ,
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/commands/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK,CAAC,OAAO,CAAC;QACZ,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,YAAY,EAAE,IAAI;SACnB;QACD,MAAM,EAAE,mBAAmB;QAC3B,IAAI,EAAE,mBAAmB;KAC1B,CAAC;IACJ,OAAO,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;QAC3B,MAAM,eAAe,GAAW,IAAI,CAAC,MAAM,CAAC;QAC5C,MAAM,iBAAiB,GAAW,IAAI,CAAC,IAAI,CAAC;QAC5C,MAAM,SAAS,GAAW,IAAI,CAAC,EAAE,CAAC;QAClC,MAAM,WAAW,GAAW,IAAI,CAAC,WAAW,CAAC;QAC7C,MAAM,kBAAkB,CAAC;YACvB,eAAe;YACf,iBAAiB;YACjB,SAAS;YACT,WAAW;SACZ,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';
|
|
2
2
|
import { FileFormat } from '../utils/files.js';
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function readChainConfigs(filePath: string): ChainMap<ChainMetadata>;
|
|
4
|
+
export declare function readChainConfigsIfExists(filePath: string): ChainMap<ChainMetadata>;
|
|
5
5
|
export declare function createChainConfig({ format, outPath, }: {
|
|
6
6
|
format: FileFormat;
|
|
7
7
|
outPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,aAAa,EAEd,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAE,UAAU,EAAmC,MAAM,mBAAmB,CAAC;AAEhF,wBAAgB,
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,aAAa,EAEd,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAE,UAAU,EAAmC,MAAM,mBAAmB,CAAC;AAEhF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,2BAiChD;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,2BAOxD;AAED,wBAAsB,iBAAiB,CAAC,EACtC,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,iBA2CA"}
|
package/dist/src/config/chain.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ProtocolType } from '@hyperlane-xyz/utils';
|
|
|
5
5
|
import { errorRed, log, logBlue, logGreen } from '../../logger.js';
|
|
6
6
|
import { getMultiProvider } from '../context.js';
|
|
7
7
|
import { mergeYamlOrJson, readYamlOrJson } from '../utils/files.js';
|
|
8
|
-
export function
|
|
8
|
+
export function readChainConfigs(filePath) {
|
|
9
9
|
log(`Reading file configs in ${filePath}`);
|
|
10
10
|
const chainToMetadata = readYamlOrJson(filePath);
|
|
11
11
|
if (!chainToMetadata ||
|
|
@@ -31,13 +31,13 @@ export function readChainConfig(filePath) {
|
|
|
31
31
|
logGreen(`All chain configs in ${filePath} are valid`);
|
|
32
32
|
return chainToMetadata;
|
|
33
33
|
}
|
|
34
|
-
export function
|
|
34
|
+
export function readChainConfigsIfExists(filePath) {
|
|
35
35
|
if (!fs.existsSync(filePath)) {
|
|
36
36
|
log('No chain config file provided');
|
|
37
37
|
return {};
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
return
|
|
40
|
+
return readChainConfigs(filePath);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
export async function createChainConfig({ format, outPath, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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ACF,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ChainMap, ChainName, HookConfig, HookType, IgpHookConfig, MerkleTreeHookConfig, MultisigIsmConfig, ProtocolFeeHookConfig } from '@hyperlane-xyz/sdk';
|
|
3
|
-
import
|
|
3
|
+
import { Address } from '@hyperlane-xyz/utils';
|
|
4
4
|
import { FileFormat } from '../utils/files.js';
|
|
5
5
|
declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
6
6
|
required: z.ZodUnion<[z.ZodObject<{
|
|
@@ -13,14 +13,14 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
13
13
|
type: HookType.PROTOCOL_FEE;
|
|
14
14
|
owner: string;
|
|
15
15
|
beneficiary: string;
|
|
16
|
-
protocolFee: string;
|
|
17
16
|
maxProtocolFee: string;
|
|
17
|
+
protocolFee: string;
|
|
18
18
|
}, {
|
|
19
19
|
type: HookType.PROTOCOL_FEE;
|
|
20
20
|
owner: string;
|
|
21
21
|
beneficiary: string;
|
|
22
|
-
protocolFee: string;
|
|
23
22
|
maxProtocolFee: string;
|
|
23
|
+
protocolFee: string;
|
|
24
24
|
}>, z.ZodObject<{
|
|
25
25
|
type: z.ZodLiteral<HookType.MERKLE_TREE>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -38,14 +38,14 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
38
38
|
type: HookType.PROTOCOL_FEE;
|
|
39
39
|
owner: string;
|
|
40
40
|
beneficiary: string;
|
|
41
|
-
protocolFee: string;
|
|
42
41
|
maxProtocolFee: string;
|
|
42
|
+
protocolFee: string;
|
|
43
43
|
}, {
|
|
44
44
|
type: HookType.PROTOCOL_FEE;
|
|
45
45
|
owner: string;
|
|
46
46
|
beneficiary: string;
|
|
47
|
-
protocolFee: string;
|
|
48
47
|
maxProtocolFee: string;
|
|
48
|
+
protocolFee: string;
|
|
49
49
|
}>, z.ZodObject<{
|
|
50
50
|
type: z.ZodLiteral<HookType.MERKLE_TREE>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -58,8 +58,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
58
58
|
type: HookType.PROTOCOL_FEE;
|
|
59
59
|
owner: string;
|
|
60
60
|
beneficiary: string;
|
|
61
|
-
protocolFee: string;
|
|
62
61
|
maxProtocolFee: string;
|
|
62
|
+
protocolFee: string;
|
|
63
63
|
} | {
|
|
64
64
|
type: HookType.MERKLE_TREE;
|
|
65
65
|
};
|
|
@@ -67,8 +67,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
67
67
|
type: HookType.PROTOCOL_FEE;
|
|
68
68
|
owner: string;
|
|
69
69
|
beneficiary: string;
|
|
70
|
-
protocolFee: string;
|
|
71
70
|
maxProtocolFee: string;
|
|
71
|
+
protocolFee: string;
|
|
72
72
|
} | {
|
|
73
73
|
type: HookType.MERKLE_TREE;
|
|
74
74
|
};
|
|
@@ -77,8 +77,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
77
77
|
type: HookType.PROTOCOL_FEE;
|
|
78
78
|
owner: string;
|
|
79
79
|
beneficiary: string;
|
|
80
|
-
protocolFee: string;
|
|
81
80
|
maxProtocolFee: string;
|
|
81
|
+
protocolFee: string;
|
|
82
82
|
} | {
|
|
83
83
|
type: HookType.MERKLE_TREE;
|
|
84
84
|
};
|
|
@@ -86,8 +86,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
86
86
|
type: HookType.PROTOCOL_FEE;
|
|
87
87
|
owner: string;
|
|
88
88
|
beneficiary: string;
|
|
89
|
-
protocolFee: string;
|
|
90
89
|
maxProtocolFee: string;
|
|
90
|
+
protocolFee: string;
|
|
91
91
|
} | {
|
|
92
92
|
type: HookType.MERKLE_TREE;
|
|
93
93
|
};
|
|
@@ -102,14 +102,14 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
102
102
|
type: HookType.PROTOCOL_FEE;
|
|
103
103
|
owner: string;
|
|
104
104
|
beneficiary: string;
|
|
105
|
-
protocolFee: string;
|
|
106
105
|
maxProtocolFee: string;
|
|
106
|
+
protocolFee: string;
|
|
107
107
|
}, {
|
|
108
108
|
type: HookType.PROTOCOL_FEE;
|
|
109
109
|
owner: string;
|
|
110
110
|
beneficiary: string;
|
|
111
|
-
protocolFee: string;
|
|
112
111
|
maxProtocolFee: string;
|
|
112
|
+
protocolFee: string;
|
|
113
113
|
}>, z.ZodObject<{
|
|
114
114
|
type: z.ZodLiteral<HookType.MERKLE_TREE>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -127,14 +127,14 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
127
127
|
type: HookType.PROTOCOL_FEE;
|
|
128
128
|
owner: string;
|
|
129
129
|
beneficiary: string;
|
|
130
|
-
protocolFee: string;
|
|
131
130
|
maxProtocolFee: string;
|
|
131
|
+
protocolFee: string;
|
|
132
132
|
}, {
|
|
133
133
|
type: HookType.PROTOCOL_FEE;
|
|
134
134
|
owner: string;
|
|
135
135
|
beneficiary: string;
|
|
136
|
-
protocolFee: string;
|
|
137
136
|
maxProtocolFee: string;
|
|
137
|
+
protocolFee: string;
|
|
138
138
|
}>, z.ZodObject<{
|
|
139
139
|
type: z.ZodLiteral<HookType.MERKLE_TREE>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -147,8 +147,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
147
147
|
type: HookType.PROTOCOL_FEE;
|
|
148
148
|
owner: string;
|
|
149
149
|
beneficiary: string;
|
|
150
|
-
protocolFee: string;
|
|
151
150
|
maxProtocolFee: string;
|
|
151
|
+
protocolFee: string;
|
|
152
152
|
} | {
|
|
153
153
|
type: HookType.MERKLE_TREE;
|
|
154
154
|
};
|
|
@@ -156,8 +156,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
156
156
|
type: HookType.PROTOCOL_FEE;
|
|
157
157
|
owner: string;
|
|
158
158
|
beneficiary: string;
|
|
159
|
-
protocolFee: string;
|
|
160
159
|
maxProtocolFee: string;
|
|
160
|
+
protocolFee: string;
|
|
161
161
|
} | {
|
|
162
162
|
type: HookType.MERKLE_TREE;
|
|
163
163
|
};
|
|
@@ -166,8 +166,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
166
166
|
type: HookType.PROTOCOL_FEE;
|
|
167
167
|
owner: string;
|
|
168
168
|
beneficiary: string;
|
|
169
|
-
protocolFee: string;
|
|
170
169
|
maxProtocolFee: string;
|
|
170
|
+
protocolFee: string;
|
|
171
171
|
} | {
|
|
172
172
|
type: HookType.MERKLE_TREE;
|
|
173
173
|
};
|
|
@@ -175,8 +175,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
175
175
|
type: HookType.PROTOCOL_FEE;
|
|
176
176
|
owner: string;
|
|
177
177
|
beneficiary: string;
|
|
178
|
-
protocolFee: string;
|
|
179
178
|
maxProtocolFee: string;
|
|
179
|
+
protocolFee: string;
|
|
180
180
|
} | {
|
|
181
181
|
type: HookType.MERKLE_TREE;
|
|
182
182
|
};
|
|
@@ -191,14 +191,14 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
191
191
|
type: HookType.PROTOCOL_FEE;
|
|
192
192
|
owner: string;
|
|
193
193
|
beneficiary: string;
|
|
194
|
-
protocolFee: string;
|
|
195
194
|
maxProtocolFee: string;
|
|
195
|
+
protocolFee: string;
|
|
196
196
|
}, {
|
|
197
197
|
type: HookType.PROTOCOL_FEE;
|
|
198
198
|
owner: string;
|
|
199
199
|
beneficiary: string;
|
|
200
|
-
protocolFee: string;
|
|
201
200
|
maxProtocolFee: string;
|
|
201
|
+
protocolFee: string;
|
|
202
202
|
}>, z.ZodObject<{
|
|
203
203
|
type: z.ZodLiteral<HookType.MERKLE_TREE>;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -216,14 +216,14 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
216
216
|
type: HookType.PROTOCOL_FEE;
|
|
217
217
|
owner: string;
|
|
218
218
|
beneficiary: string;
|
|
219
|
-
protocolFee: string;
|
|
220
219
|
maxProtocolFee: string;
|
|
220
|
+
protocolFee: string;
|
|
221
221
|
}, {
|
|
222
222
|
type: HookType.PROTOCOL_FEE;
|
|
223
223
|
owner: string;
|
|
224
224
|
beneficiary: string;
|
|
225
|
-
protocolFee: string;
|
|
226
225
|
maxProtocolFee: string;
|
|
226
|
+
protocolFee: string;
|
|
227
227
|
}>, z.ZodObject<{
|
|
228
228
|
type: z.ZodLiteral<HookType.MERKLE_TREE>;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -236,8 +236,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
236
236
|
type: HookType.PROTOCOL_FEE;
|
|
237
237
|
owner: string;
|
|
238
238
|
beneficiary: string;
|
|
239
|
-
protocolFee: string;
|
|
240
239
|
maxProtocolFee: string;
|
|
240
|
+
protocolFee: string;
|
|
241
241
|
} | {
|
|
242
242
|
type: HookType.MERKLE_TREE;
|
|
243
243
|
};
|
|
@@ -245,8 +245,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
245
245
|
type: HookType.PROTOCOL_FEE;
|
|
246
246
|
owner: string;
|
|
247
247
|
beneficiary: string;
|
|
248
|
-
protocolFee: string;
|
|
249
248
|
maxProtocolFee: string;
|
|
249
|
+
protocolFee: string;
|
|
250
250
|
} | {
|
|
251
251
|
type: HookType.MERKLE_TREE;
|
|
252
252
|
};
|
|
@@ -255,8 +255,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
255
255
|
type: HookType.PROTOCOL_FEE;
|
|
256
256
|
owner: string;
|
|
257
257
|
beneficiary: string;
|
|
258
|
-
protocolFee: string;
|
|
259
258
|
maxProtocolFee: string;
|
|
259
|
+
protocolFee: string;
|
|
260
260
|
} | {
|
|
261
261
|
type: HookType.MERKLE_TREE;
|
|
262
262
|
};
|
|
@@ -264,8 +264,8 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
264
264
|
type: HookType.PROTOCOL_FEE;
|
|
265
265
|
owner: string;
|
|
266
266
|
beneficiary: string;
|
|
267
|
-
protocolFee: string;
|
|
268
267
|
maxProtocolFee: string;
|
|
268
|
+
protocolFee: string;
|
|
269
269
|
} | {
|
|
270
270
|
type: HookType.MERKLE_TREE;
|
|
271
271
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/config/hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/config/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,QAAQ,EACR,SAAS,EAET,UAAU,EACV,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EAGtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,OAAO,EAIR,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,UAAU,EAAmC,MAAM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