@hyperlane-xyz/cli 3.10.1-beta1 → 3.20.0-beta1

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.
Files changed (155) hide show
  1. package/dist/cli.js +13 -5
  2. package/dist/cli.js.map +1 -1
  3. package/dist/src/commands/chains.d.ts.map +1 -1
  4. package/dist/src/commands/chains.js +40 -34
  5. package/dist/src/commands/chains.js.map +1 -1
  6. package/dist/src/commands/config.d.ts.map +1 -1
  7. package/dist/src/commands/config.js +41 -82
  8. package/dist/src/commands/config.js.map +1 -1
  9. package/dist/src/commands/deploy.d.ts +0 -6
  10. package/dist/src/commands/deploy.d.ts.map +1 -1
  11. package/dist/src/commands/deploy.js +27 -74
  12. package/dist/src/commands/deploy.js.map +1 -1
  13. package/dist/src/commands/hook.d.ts +6 -1
  14. package/dist/src/commands/hook.d.ts.map +1 -1
  15. package/dist/src/commands/hook.js +6 -14
  16. package/dist/src/commands/hook.js.map +1 -1
  17. package/dist/src/commands/ism.d.ts +6 -1
  18. package/dist/src/commands/ism.d.ts.map +1 -1
  19. package/dist/src/commands/ism.js +5 -13
  20. package/dist/src/commands/ism.js.map +1 -1
  21. package/dist/src/commands/options.d.ts +6 -33
  22. package/dist/src/commands/options.d.ts.map +1 -1
  23. package/dist/src/commands/options.js +40 -41
  24. package/dist/src/commands/options.js.map +1 -1
  25. package/dist/src/commands/send.d.ts +7 -1
  26. package/dist/src/commands/send.d.ts.map +1 -1
  27. package/dist/src/commands/send.js +23 -58
  28. package/dist/src/commands/send.js.map +1 -1
  29. package/dist/src/commands/signCommands.d.ts +3 -0
  30. package/dist/src/commands/signCommands.d.ts.map +1 -0
  31. package/dist/src/commands/signCommands.js +9 -0
  32. package/dist/src/commands/signCommands.js.map +1 -0
  33. package/dist/src/commands/status.d.ts +5 -2
  34. package/dist/src/commands/status.d.ts.map +1 -1
  35. package/dist/src/commands/status.js +6 -15
  36. package/dist/src/commands/status.js.map +1 -1
  37. package/dist/src/config/chain.d.ts +5 -7
  38. package/dist/src/config/chain.d.ts.map +1 -1
  39. package/dist/src/config/chain.js +16 -39
  40. package/dist/src/config/chain.js.map +1 -1
  41. package/dist/src/config/chain.test.js +1 -5
  42. package/dist/src/config/chain.test.js.map +1 -1
  43. package/dist/src/config/hooks.d.ts +7 -8
  44. package/dist/src/config/hooks.d.ts.map +1 -1
  45. package/dist/src/config/hooks.js +18 -20
  46. package/dist/src/config/hooks.js.map +1 -1
  47. package/dist/src/config/ism.d.ts +3 -4
  48. package/dist/src/config/ism.d.ts.map +1 -1
  49. package/dist/src/config/ism.js +3 -5
  50. package/dist/src/config/ism.js.map +1 -1
  51. package/dist/src/config/multisig.d.ts +3 -4
  52. package/dist/src/config/multisig.d.ts.map +1 -1
  53. package/dist/src/config/multisig.js +5 -7
  54. package/dist/src/config/multisig.js.map +1 -1
  55. package/dist/src/config/warp.d.ts +6 -36
  56. package/dist/src/config/warp.d.ts.map +1 -1
  57. package/dist/src/config/warp.js +14 -13
  58. package/dist/src/config/warp.js.map +1 -1
  59. package/dist/src/context/context.d.ts +14 -0
  60. package/dist/src/context/context.d.ts.map +1 -0
  61. package/dist/src/context/context.js +100 -0
  62. package/dist/src/context/context.js.map +1 -0
  63. package/dist/src/context/types.d.ts +32 -0
  64. package/dist/src/context/types.d.ts.map +1 -0
  65. package/dist/src/context/types.js +2 -0
  66. package/dist/src/context/types.js.map +1 -0
  67. package/dist/src/deploy/agent.d.ts +6 -5
  68. package/dist/src/deploy/agent.d.ts.map +1 -1
  69. package/dist/src/deploy/agent.js +4 -6
  70. package/dist/src/deploy/agent.js.map +1 -1
  71. package/dist/src/deploy/core.d.ts +4 -7
  72. package/dist/src/deploy/core.d.ts.map +1 -1
  73. package/dist/src/deploy/core.js +61 -73
  74. package/dist/src/deploy/core.js.map +1 -1
  75. package/dist/src/deploy/dry-run.d.ts +2 -3
  76. package/dist/src/deploy/dry-run.d.ts.map +1 -1
  77. package/dist/src/deploy/dry-run.js.map +1 -1
  78. package/dist/src/deploy/utils.d.ts +9 -11
  79. package/dist/src/deploy/utils.d.ts.map +1 -1
  80. package/dist/src/deploy/utils.js +13 -11
  81. package/dist/src/deploy/utils.js.map +1 -1
  82. package/dist/src/deploy/warp.d.ts +3 -7
  83. package/dist/src/deploy/warp.d.ts.map +1 -1
  84. package/dist/src/deploy/warp.js +26 -63
  85. package/dist/src/deploy/warp.js.map +1 -1
  86. package/dist/src/hook/read.d.ts +4 -5
  87. package/dist/src/hook/read.d.ts.map +1 -1
  88. package/dist/src/hook/read.js +8 -12
  89. package/dist/src/hook/read.js.map +1 -1
  90. package/dist/src/ism/read.d.ts +4 -5
  91. package/dist/src/ism/read.d.ts.map +1 -1
  92. package/dist/src/ism/read.js +8 -12
  93. package/dist/src/ism/read.js.map +1 -1
  94. package/dist/src/registry/MergedRegistry.d.ts +35 -0
  95. package/dist/src/registry/MergedRegistry.d.ts.map +1 -0
  96. package/dist/src/registry/MergedRegistry.js +83 -0
  97. package/dist/src/registry/MergedRegistry.js.map +1 -0
  98. package/dist/src/send/message.d.ts +3 -4
  99. package/dist/src/send/message.d.ts.map +1 -1
  100. package/dist/src/send/message.js +14 -19
  101. package/dist/src/send/message.js.map +1 -1
  102. package/dist/src/send/transfer.d.ts +3 -6
  103. package/dist/src/send/transfer.d.ts.map +1 -1
  104. package/dist/src/send/transfer.js +25 -40
  105. package/dist/src/send/transfer.js.map +1 -1
  106. package/dist/src/status/message.d.ts +3 -4
  107. package/dist/src/status/message.d.ts.map +1 -1
  108. package/dist/src/status/message.js +5 -12
  109. package/dist/src/status/message.js.map +1 -1
  110. package/dist/src/utils/chains.d.ts +2 -2
  111. package/dist/src/utils/chains.d.ts.map +1 -1
  112. package/dist/src/utils/chains.js +11 -12
  113. package/dist/src/utils/chains.js.map +1 -1
  114. package/dist/src/utils/files.d.ts +0 -7
  115. package/dist/src/utils/files.d.ts.map +1 -1
  116. package/dist/src/utils/files.js +2 -27
  117. package/dist/src/utils/files.js.map +1 -1
  118. package/dist/src/utils/keys.d.ts +15 -4
  119. package/dist/src/utils/keys.d.ts.map +1 -1
  120. package/dist/src/utils/keys.js +11 -16
  121. package/dist/src/utils/keys.js.map +1 -1
  122. package/dist/src/utils/tokens.d.ts +3 -0
  123. package/dist/src/utils/tokens.d.ts.map +1 -0
  124. package/dist/src/utils/tokens.js +14 -0
  125. package/dist/src/utils/tokens.js.map +1 -0
  126. package/dist/src/utils/version-check.d.ts.map +1 -1
  127. package/dist/src/utils/version-check.js +5 -0
  128. package/dist/src/utils/version-check.js.map +1 -1
  129. package/dist/src/version.d.ts +1 -1
  130. package/dist/src/version.js +1 -1
  131. package/examples/chain-config.yaml +38 -46
  132. package/package.json +5 -4
  133. package/dist/src/config/artifacts.d.ts +0 -16
  134. package/dist/src/config/artifacts.d.ts.map +0 -1
  135. package/dist/src/config/artifacts.js +0 -48
  136. package/dist/src/config/artifacts.js.map +0 -1
  137. package/dist/src/context.d.ts +0 -64
  138. package/dist/src/context.d.ts.map +0 -1
  139. package/dist/src/context.js +0 -113
  140. package/dist/src/context.js.map +0 -1
  141. package/dist/src/context.test.d.ts +0 -2
  142. package/dist/src/context.test.d.ts.map +0 -1
  143. package/dist/src/context.test.js +0 -21
  144. package/dist/src/context.test.js.map +0 -1
  145. package/dist/src/utils/fork.d.ts +0 -37
  146. package/dist/src/utils/fork.d.ts.map +0 -1
  147. package/dist/src/utils/fork.js +0 -91
  148. package/dist/src/utils/fork.js.map +0 -1
  149. package/examples/anvil-chains.yaml +0 -22
  150. package/examples/dry-run/anvil-chains.yaml +0 -17
  151. package/examples/dry-run/ism.yaml +0 -8
  152. package/examples/dry-run/warp-route-deployment.yaml +0 -4
  153. package/examples/fork/anvil-chains.yaml +0 -21
  154. package/examples/fork/ism.yaml +0 -9
  155. package/examples/fork/warp-route-deployment.yaml +0 -34
@@ -1,6 +1,6 @@
1
1
  import { readHookConfig } from '../hook/read.js';
2
2
  import { log } from '../logger.js';
3
- import { addressCommandOption, chainCommandOption, chainsCommandOption, fileFormatOption, outputFileOption, } from './options.js';
3
+ import { addressCommandOption, chainCommandOption, outputFileOption, } from './options.js';
4
4
  /**
5
5
  * Parent command
6
6
  */
@@ -18,24 +18,16 @@ export const hookCommand = {
18
18
  export const read = {
19
19
  command: 'read',
20
20
  describe: 'Reads onchain Hook configuration for a given address',
21
- builder: (yargs) => yargs.options({
22
- chains: chainsCommandOption,
21
+ builder: {
23
22
  chain: {
24
23
  ...chainCommandOption,
25
24
  demandOption: true,
26
25
  },
27
26
  address: addressCommandOption('Address of the Hook to read.', true),
28
- format: fileFormatOption,
29
- output: outputFileOption(),
30
- }),
31
- handler: async (argv) => {
32
- await readHookConfig({
33
- chain: argv.chain,
34
- address: argv.address,
35
- chainConfigPath: argv.chains,
36
- format: argv.format,
37
- output: argv.output,
38
- });
27
+ out: outputFileOption(),
28
+ },
29
+ handler: async (args) => {
30
+ await readHookConfig(args);
39
31
  process.exit(0);
40
32
  },
41
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/commands/hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,8BAA8B;IACxC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE;IACtE,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC;CACvC,CAAC;AAEF,wBAAwB;AACxB,kDAAkD;AAClD,+FAA+F;A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Aa,EAAE;IACtE,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC;CACvC,CAAC;AAEF,wBAAwB;AACxB,kDAAkD;AAClD,+FAA+F;AAC/F,mCAAmC;AACnC,6FAA6F;AAC7F,MAAM,CAAC,MAAM,IAAI,GAIZ;IACH,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,sDAAsD;IAChE,OAAO,EAAE;QACP,KAAK,EAAE;YACL,GAAG,kBAAkB;YACrB,YAAY,EAAE,IAAI;SACnB;QACD,OAAO,EAAE,oBAAoB,CAAC,8BAA8B,EAAE,IAAI,CAAC;QACnE,GAAG,EAAE,gBAAgB,EAAE;KACxB;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
@@ -1,7 +1,12 @@
1
1
  import { CommandModule } from 'yargs';
2
+ import { CommandModuleWithContext } from '../context/types.js';
2
3
  /**
3
4
  * Parent command
4
5
  */
5
6
  export declare const ismCommand: CommandModule;
6
- export declare const read: CommandModule;
7
+ export declare const read: CommandModuleWithContext<{
8
+ chain: string;
9
+ address: string;
10
+ out: string;
11
+ }>;
7
12
  //# sourceMappingURL=ism.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ism.d.ts","sourceRoot":"","sources":["../../../src/commands/ism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAatC;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,aAKxB,CAAC;AASF,eAAO,MAAM,IAAI,EAAE,aA2BlB,CAAC"}
1
+ {"version":3,"file":"ism.d.ts","sourceRoot":"","sources":["../../../src/commands/ism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAU/D;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,aAKxB,CAAC;AASF,eAAO,MAAM,IAAI,EAAE,wBAAwB,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAkBA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { readIsmConfig } from '../ism/read.js';
2
2
  import { log } from '../logger.js';
3
- import { addressCommandOption, chainCommandOption, chainsCommandOption, fileFormatOption, outputFileOption, } from './options.js';
3
+ import { addressCommandOption, chainCommandOption, outputFileOption, } from './options.js';
4
4
  /**
5
5
  * Parent command
6
6
  */
@@ -20,24 +20,16 @@ export const ismCommand = {
20
20
  export const read = {
21
21
  command: 'read',
22
22
  describe: 'Reads onchain ISM configuration for a given address',
23
- builder: (yargs) => yargs.options({
24
- chains: chainsCommandOption,
23
+ builder: {
25
24
  chain: {
26
25
  ...chainCommandOption,
27
26
  demandOption: true,
28
27
  },
29
28
  address: addressCommandOption('Address of the Interchain Security Module to read.', true),
30
- format: fileFormatOption,
31
- output: outputFileOption(),
32
- }),
29
+ out: outputFileOption(),
30
+ },
33
31
  handler: async (argv) => {
34
- await readIsmConfig({
35
- chain: argv.chain,
36
- address: argv.address,
37
- chainConfigPath: argv.chains,
38
- format: argv.format,
39
- output: argv.output,
40
- });
32
+ await readIsmConfig(argv);
41
33
  process.exit(0);
42
34
  },
43
35
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ism.js","sourceRoot":"","sources":["../../../src/commands/ism.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB;;GAEG;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,gBAAgB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAkB;IACvC,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE;IACtE,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC;CACvC,CAAC;AAEF,wBAAwB;AACxB,mDAAmD;AACnD,2FAA2F;AAC3F,wDAAwD;AACxD,4FAA4F;AAC5F,gCAAgC;AAChC,gGAAgG;AAChG,MAAM,CAAC,MAAM,IAAI,GAIZ;IACH,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,qDAAqD;IAC/D,OAAO,EAAE;QACP,KAAK,EAAE;YACL,GAAG,kBAAkB;YACrB,YAAY,EAAE,IAAI;SACnB;QACD,OAAO,EAAE,oBAAoB,CAC3B,oDAAoD,EACpD,IAAI,CACL;QACD,GAAG,EAAE,gBAAgB,EAAE;KACxB;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
@@ -1,47 +1,20 @@
1
1
  import { Options } from 'yargs';
2
2
  export declare const logFormatCommandOption: Options;
3
3
  export declare const logLevelCommandOption: Options;
4
- export type CommandOptions = {
5
- chains: Options;
6
- };
7
- export type AgentCommandOptions = CommandOptions & {
8
- origin: Options;
9
- targets: Options;
10
- config: Options;
11
- };
12
- export type CoreCommandOptions = CommandOptions & {
13
- targets: Options;
14
- artifacts: Options;
15
- ism: Options;
16
- hook: Options;
17
- out: Options;
18
- key: Options;
19
- yes: Options;
20
- 'dry-run': Options;
21
- };
22
- export type WarpCommandOptions = CommandOptions & {
23
- config: Options;
24
- core: Options;
25
- out: Options;
26
- key: Options;
27
- yes: Options;
28
- 'dry-run': Options;
29
- };
4
+ export declare const registryUriCommandOption: Options;
5
+ export declare const overrideRegistryUriCommandOption: Options;
6
+ export declare const skipConfirmationOption: Options;
7
+ export declare const keyCommandOption: Options;
30
8
  export declare const coreTargetsCommandOption: Options;
31
9
  export declare const agentTargetsCommandOption: Options;
32
10
  export declare const originCommandOption: Options;
33
11
  export declare const ismCommandOption: Options;
34
12
  export declare const hookCommandOption: Options;
35
13
  export declare const warpConfigCommandOption: Options;
36
- export declare const keyCommandOption: Options;
37
- export declare const chainsCommandOption: Options;
38
- export declare const outDirCommandOption: Options;
39
- export declare const coreArtifactsOption: Options;
40
14
  export declare const warpConfigOption: Options;
41
- export declare const agentConfigCommandOption: Options;
42
- export declare const fileFormatOption: Options;
15
+ export declare const agentConfigCommandOption: (isIn: boolean, defaultPath?: string) => Options;
43
16
  export declare const outputFileOption: (defaultPath?: string) => Options;
44
- export declare const skipConfirmationOption: Options;
17
+ export declare const inputFileOption: Options;
45
18
  export declare const dryRunOption: Options;
46
19
  export declare const chainCommandOption: Options;
47
20
  export declare const addressCommandOption: (description: string, demandOption?: boolean) => Options;
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAMhC,eAAO,MAAM,sBAAsB,EAAE,OAIpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,OAInC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IACjD,MAAM,EAAE,O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,6BAElB,OAID,CAAC"}
@@ -1,5 +1,7 @@
1
+ import { DEFAULT_GITHUB_REGISTRY } from '@hyperlane-xyz/registry';
1
2
  import { LogFormat, LogLevel } from '@hyperlane-xyz/utils';
2
3
  import { ENV } from '../utils/env.js';
4
+ /* Global options */
3
5
  export const logFormatCommandOption = {
4
6
  type: 'string',
5
7
  description: 'Log output format',
@@ -10,6 +12,31 @@ export const logLevelCommandOption = {
10
12
  description: 'Log verbosity level',
11
13
  choices: Object.values(LogLevel),
12
14
  };
15
+ export const registryUriCommandOption = {
16
+ type: 'string',
17
+ description: 'Registry URI, such as a Github repo URL or a local file path',
18
+ alias: 'r',
19
+ default: DEFAULT_GITHUB_REGISTRY,
20
+ };
21
+ export const overrideRegistryUriCommandOption = {
22
+ type: 'string',
23
+ description: 'Path to a local registry to override the default registry',
24
+ default: './',
25
+ };
26
+ export const skipConfirmationOption = {
27
+ type: 'boolean',
28
+ description: 'Skip confirmation prompts',
29
+ default: false,
30
+ alias: 'y',
31
+ };
32
+ export const keyCommandOption = {
33
+ type: 'string',
34
+ description: `A hex private key or seed phrase for transaction signing, or use the HYP_KEY env var.
35
+ Dry-run: An address to simulate transaction signing on a forked network`,
36
+ alias: 'k',
37
+ default: ENV.HYP_KEY,
38
+ };
39
+ /* Command-specific options */
13
40
  export const coreTargetsCommandOption = {
14
41
  type: 'string',
15
42
  description: 'Comma separated list of chain names to which contracts will be deployed',
@@ -36,62 +63,34 @@ export const warpConfigCommandOption = {
36
63
  default: './configs/warp-route-deployment.yaml',
37
64
  alias: 'w',
38
65
  };
39
- export const keyCommandOption = {
40
- type: 'string',
41
- description: `Default: A hex private key or seed phrase for transaction signing, or use the HYP_KEY env var.
42
- Dry-run: An address to simulate transaction signing on a forked network, or use the HYP_KEY env var.`,
43
- alias: 'k',
44
- default: ENV.HYP_KEY,
45
- };
46
- export const chainsCommandOption = {
47
- type: 'string',
48
- description: 'A path to a JSON or YAML file with chain configs',
49
- default: './configs/chains.yaml',
50
- alias: 'c',
51
- };
52
- export const outDirCommandOption = {
53
- type: 'string',
54
- description: 'A folder name output artifacts into',
55
- default: './artifacts',
56
- alias: 'o',
57
- };
58
- export const coreArtifactsOption = {
59
- type: 'string',
60
- description: 'File path to core deployment output artifacts',
61
- alias: 'a',
62
- };
63
66
  export const warpConfigOption = {
64
67
  type: 'string',
65
- description: 'File path to Warp config',
68
+ description: 'File path to Warp Route config',
66
69
  alias: 'w',
70
+ // TODO make this optional and have the commands get it from the registry
71
+ demandOption: true,
67
72
  };
68
- export const agentConfigCommandOption = {
69
- type: 'string',
70
- description: 'File path to agent configuration artifacts',
71
- };
72
- export const fileFormatOption = {
73
+ export const agentConfigCommandOption = (isIn, defaultPath) => ({
73
74
  type: 'string',
74
- description: 'Output file format',
75
- choices: ['json', 'yaml'],
76
- default: 'yaml',
77
- alias: 'f',
78
- };
75
+ description: `${isIn ? 'Input' : 'Output'} file path for the agent configuration`,
76
+ default: defaultPath,
77
+ });
79
78
  export const outputFileOption = (defaultPath) => ({
80
79
  type: 'string',
81
80
  description: 'Output file path',
82
81
  default: defaultPath,
83
82
  alias: 'o',
84
83
  });
85
- export const skipConfirmationOption = {
86
- type: 'boolean',
87
- description: 'Skip confirmation prompts',
88
- default: false,
89
- alias: 'y',
84
+ export const inputFileOption = {
85
+ type: 'string',
86
+ description: 'Input file path',
87
+ alias: 'i',
88
+ demandOption: true,
90
89
  };
91
90
  export const dryRunOption = {
92
91
  type: 'string',
93
92
  description: 'Chain name to fork and simulate deployment. Please ensure an anvil node instance is running during execution via `anvil`.',
94
- alias: ['d', 'dr'],
93
+ alias: ['d'],
95
94
  };
96
95
  export const chainCommandOption = {
97
96
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAA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O,EAAE,WAAW;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAAoB,EAAW,EAAE,CAAC,CAAC;IAClE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kBAAkB;IAC/B,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,GAAG;CACX,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAY;IACtC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iBAAiB;IAC9B,KAAK,EAAE,GAAG;IACV,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAY;IACnC,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,2HAA2H;IAC7H,KAAK,EAAE,CAAC,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAY;IACzC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,gDAAgD;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,WAAmB,EACnB,YAAY,GAAG,KAAK,EACX,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,QAAQ;IACd,WAAW;IACX,YAAY;CACb,CAAC,CAAC"}
@@ -3,11 +3,17 @@ import { CommandModule, Options } from 'yargs';
3
3
  * Parent command
4
4
  */
5
5
  export declare const sendCommand: CommandModule;
6
- export declare const selfrelay: Options;
7
6
  /**
8
7
  * Message command
9
8
  */
10
9
  export declare const messageOptions: {
11
10
  [k: string]: Options;
12
11
  };
12
+ export interface MessageOptionsArgTypes {
13
+ origin?: string;
14
+ destination?: string;
15
+ timeout: number;
16
+ quick: boolean;
17
+ relay: boolean;
18
+ }
13
19
  //# sourceMappingURL=send.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/commands/send.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAa/C;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,aAUzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,OAKvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAuBlD,CAAC"}
1
+ {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/commands/send.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAS/C;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,aAUzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAwBlD,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB"}
@@ -2,7 +2,7 @@ import { ethers } from 'ethers';
2
2
  import { log } from '../logger.js';
3
3
  import { sendTestMessage } from '../send/message.js';
4
4
  import { sendTestTransfer } from '../send/transfer.js';
5
- import { chainsCommandOption, coreArtifactsOption, keyCommandOption, warpConfigOption, } from './options.js';
5
+ import { warpConfigOption } from './options.js';
6
6
  /**
7
7
  * Parent command
8
8
  */
@@ -16,17 +16,10 @@ export const sendCommand = {
16
16
  .demandCommand(),
17
17
  handler: () => log('Command required'),
18
18
  };
19
- export const selfrelay = {
20
- type: 'boolean',
21
- description: 'Relay message on destination chain',
22
- default: false,
23
- alias: ['s', 'sr'],
24
- };
25
19
  /**
26
20
  * Message command
27
21
  */
28
22
  export const messageOptions = {
29
- key: keyCommandOption,
30
23
  origin: {
31
24
  type: 'string',
32
25
  description: 'Origin chain to send message from',
@@ -35,51 +28,42 @@ export const messageOptions = {
35
28
  type: 'string',
36
29
  description: 'Destination chain to send message to',
37
30
  },
38
- chains: chainsCommandOption,
39
- core: coreArtifactsOption,
40
31
  timeout: {
41
32
  type: 'number',
42
33
  description: 'Timeout in seconds',
43
34
  default: 5 * 60,
44
35
  },
45
- 'self-relay': selfrelay,
46
36
  quick: {
47
37
  type: 'boolean',
48
38
  description: 'Skip wait for message to be delivered',
49
39
  default: false,
50
40
  },
41
+ relay: {
42
+ type: 'boolean',
43
+ description: 'Handle self-relay of message on destination chain',
44
+ default: false,
45
+ },
51
46
  };
52
47
  const messageCommand = {
53
48
  command: 'message',
54
49
  describe: 'Send a test message to a remote chain',
55
- builder: (yargs) => yargs.options({
50
+ builder: {
56
51
  ...messageOptions,
57
- messageBody: {
52
+ body: {
58
53
  type: 'string',
59
54
  description: 'Optional Message body',
60
55
  default: 'Hello!',
61
56
  },
62
- }),
63
- handler: async (argv) => {
64
- const key = argv.key;
65
- const chainConfigPath = argv.chains;
66
- const coreArtifactsPath = argv.core;
67
- const origin = argv.origin;
68
- const destination = argv.destination;
69
- const timeoutSec = argv.timeout;
70
- const skipWaitForDelivery = argv.quick;
71
- const messageBody = argv.messageBody;
72
- const selfRelay = argv['selfrelay'];
57
+ },
58
+ handler: async ({ context, origin, destination, timeout, quick, relay, body, }) => {
73
59
  await sendTestMessage({
74
- key,
75
- chainConfigPath,
76
- coreArtifactsPath,
60
+ context,
77
61
  origin,
78
62
  destination,
79
- messageBody: ethers.utils.hexlify(ethers.utils.toUtf8Bytes(messageBody)),
80
- timeoutSec,
81
- skipWaitForDelivery,
82
- selfRelay,
63
+ messageBody: ethers.utils.hexlify(ethers.utils.toUtf8Bytes(body)),
64
+ timeoutSec: timeout,
65
+ skipWaitForDelivery: quick,
66
+ selfRelay: relay,
83
67
  });
84
68
  process.exit(0);
85
69
  },
@@ -90,13 +74,9 @@ const messageCommand = {
90
74
  const transferCommand = {
91
75
  command: 'transfer',
92
76
  describe: 'Send a test token transfer on a warp route',
93
- builder: (yargs) => yargs.options({
77
+ builder: {
94
78
  ...messageOptions,
95
79
  warp: warpConfigOption,
96
- router: {
97
- type: 'string',
98
- description: 'The address of the token router contract',
99
- },
100
80
  wei: {
101
81
  type: 'string',
102
82
  description: 'Amount in wei to send',
@@ -106,33 +86,18 @@ const transferCommand = {
106
86
  type: 'string',
107
87
  description: 'Token recipient address (defaults to sender)',
108
88
  },
109
- }),
110
- handler: async (argv) => {
111
- const key = argv.key;
112
- const chainConfigPath = argv.chains;
113
- const coreArtifactsPath = argv.core;
114
- const warpConfigPath = argv.warp;
115
- const origin = argv.origin;
116
- const destination = argv.destination;
117
- const timeoutSec = argv.timeout;
118
- const routerAddress = argv.router;
119
- const wei = argv.wei;
120
- const recipient = argv.recipient;
121
- const skipWaitForDelivery = argv.quick;
122
- const selfRelay = argv['self-relay'];
89
+ },
90
+ handler: async ({ context, origin, destination, timeout, quick, relay, warp, wei, recipient, }) => {
123
91
  await sendTestTransfer({
124
- key,
125
- chainConfigPath,
126
- coreArtifactsPath,
127
- warpConfigPath,
92
+ context,
93
+ warpConfigPath: warp,
128
94
  origin,
129
95
  destination,
130
- routerAddress,
131
96
  wei,
132
97
  recipient,
133
- timeoutSec,
134
- skipWaitForDelivery,
135
- selfRelay,
98
+ timeoutSec: timeout,
99
+ skipWaitForDelivery: quick,
100
+ selfRelay: relay,
136
101
  });
137
102
  process.exit(0);
138
103
  },
@@ -1 +1 @@
1
- {"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,MA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X,OAAO,EACP,KAAK,EACL,KAAK,EACL,IAAI,GACL,EAAE,EAAE;QACH,MAAM,eAAe,CAAC;YACpB,OAAO;YACP,MAAM;YACN,WAAW;YACX,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YACjE,UAAU,EAAE,OAAO;YACnB,mBAAmB,EAAE,KAAK;YAC1B,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,eAAe,GAOjB;IACF,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,4CAA4C;IACtD,OAAO,EAAE;QACP,GAAG,cAAc;QACjB,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uBAAuB;YACpC,OAAO,EAAE,CAAC;SACX;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8CAA8C;SAC5D;KACF;IACD,OAAO,EAAE,KAAK,EAAE,EACd,OAAO,EACP,MAAM,EACN,WAAW,EACX,OAAO,EACP,KAAK,EACL,KAAK,EACL,IAAI,EACJ,GAAG,EACH,SAAS,GACV,EAAE,EAAE;QACH,MAAM,gBAAgB,CAAC;YACrB,OAAO;YACP,cAAc,EAAE,IAAI;YACpB,MAAM;YACN,WAAW;YACX,GAAG;YACH,SAAS;YACT,UAAU,EAAE,OAAO;YACnB,mBAAmB,EAAE,KAAK;YAC1B,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const SIGN_COMMANDS: string[];
2
+ export declare function isSignCommand(argv: any): boolean;
3
+ //# sourceMappingURL=signCommands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signCommands.d.ts","sourceRoot":"","sources":["../../../src/commands/signCommands.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,UAAqB,CAAC;AAEhD,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAKhD"}
@@ -0,0 +1,9 @@
1
+ // Commands that send tx and require a key to sign.
2
+ // It's useful to have this listed here so the context
3
+ // middleware can request keys up front when required.
4
+ export const SIGN_COMMANDS = ['deploy', 'send'];
5
+ export function isSignCommand(argv) {
6
+ return (SIGN_COMMANDS.includes(argv._[0]) ||
7
+ (argv._.length > 1 && SIGN_COMMANDS.includes(argv._[1])));
8
+ }
9
+ //# sourceMappingURL=signCommands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signCommands.js","sourceRoot":"","sources":["../../../src/commands/signCommands.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,sDAAsD;AACtD,sDAAsD;AACtD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAEhD,MAAM,UAAU,aAAa,CAAC,IAAS;IACrC,OAAO,CACL,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACzD,CAAC;AACJ,CAAC"}
@@ -1,3 +1,6 @@
1
- import { CommandModule } from 'yargs';
2
- export declare const statusCommand: CommandModule;
1
+ import { CommandModuleWithContext } from '../context/types.js';
2
+ import { MessageOptionsArgTypes } from './send.js';
3
+ export declare const statusCommand: CommandModuleWithContext<MessageOptionsArgTypes & {
4
+ id?: string;
5
+ }>;
3
6
  //# sourceMappingURL=status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/commands/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAMtC,eAAO,MAAM,aAAa,EAAE,aA+B3B,CAAC"}
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/commands/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,sBAAsB,EAAkB,MAAM,WAAW,CAAC;AAEnE,eAAO,MAAM,aAAa,EAAE,wBAAwB,CAClD,sBAAsB,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAqBzC,CAAC"}
@@ -3,29 +3,20 @@ import { messageOptions } from './send.js';
3
3
  export const statusCommand = {
4
4
  command: 'status',
5
5
  describe: 'Check status of a message',
6
- builder: (yargs) => yargs.options({
6
+ builder: {
7
7
  ...messageOptions,
8
8
  id: {
9
9
  type: 'string',
10
10
  description: 'Message ID',
11
11
  },
12
- }),
13
- handler: async (argv) => {
14
- const chainConfigPath = argv.chains;
15
- const coreArtifactsPath = argv.core;
16
- const messageId = argv.id;
17
- const destination = argv.destination;
18
- const origin = argv.origin;
19
- const selfRelay = argv['self-relay'];
20
- const key = argv.key;
12
+ },
13
+ handler: async ({ context, origin, destination, id, relay }) => {
21
14
  await checkMessageStatus({
22
- chainConfigPath,
23
- coreArtifactsPath,
24
- messageId,
15
+ context,
16
+ messageId: id,
25
17
  destination,
26
18
  origin,
27
- selfRelay,
28
- key,
19
+ selfRelay: relay,
29
20
  });
30
21
  process.exit(0);
31
22
  },
@@ -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,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,OAAO,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AAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QAC7D,MAAM,kBAAkB,CAAC;YACvB,OAAO;YACP,SAAS,EAAE,EAAE;YACb,WAAW;YACX,MAAM;YACN,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF,CAAC"}
@@ -1,9 +1,7 @@
1
- import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';
2
- import { FileFormat } from '../utils/files.js';
3
- export declare function readChainConfigs(filePath: string): ChainMap<ChainMetadata>;
4
- export declare function readChainConfigsIfExists(filePath?: string): ChainMap<ChainMetadata>;
5
- export declare function createChainConfig({ format, outPath, }: {
6
- format: FileFormat;
7
- outPath: string;
1
+ import { ChainMetadata } from '@hyperlane-xyz/sdk';
2
+ import { CommandContext } from '../context/types.js';
3
+ export declare function readChainConfigs(filePath: string): ChainMetadata;
4
+ export declare function createChainConfig({ context, }: {
5
+ context: CommandContext;
8
6
  }): Promise<void>;
9
7
  //# sourceMappingURL=chain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EACL,UAAU,EAIX,MAAM,mBAAmB,CAAC;AAE3B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,2BAyChD;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,2BAOzD;AAED,wBAAsB,iBAAiB,CAAC,EACtC,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,iBAmFA"}
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,iBAuBhD;AAED,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,GACR,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;CACzB,iBAmFA"}