@hyperlane-xyz/cli 3.1.9 → 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.
Files changed (228) hide show
  1. package/README.md +6 -1
  2. package/dist/cli.d.ts +1 -1
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +27 -3
  5. package/dist/cli.js.map +1 -1
  6. package/dist/env.d.ts +2 -0
  7. package/dist/env.d.ts.map +1 -0
  8. package/dist/env.js +14 -0
  9. package/dist/env.js.map +1 -0
  10. package/dist/src/avs/config.d.ts +11 -0
  11. package/dist/src/avs/config.d.ts.map +1 -0
  12. package/dist/src/avs/config.js +10 -0
  13. package/dist/src/avs/config.js.map +1 -0
  14. package/dist/src/avs/stakeRegistry.d.ts +19 -0
  15. package/dist/src/avs/stakeRegistry.d.ts.map +1 -0
  16. package/dist/src/avs/stakeRegistry.js +94 -0
  17. package/dist/src/avs/stakeRegistry.js.map +1 -0
  18. package/dist/src/commands/avs.d.ts +12 -0
  19. package/dist/src/commands/avs.d.ts.map +1 -0
  20. package/dist/src/commands/avs.js +58 -0
  21. package/dist/src/commands/avs.js.map +1 -0
  22. package/dist/src/commands/chains.d.ts.map +1 -1
  23. package/dist/src/commands/chains.js +46 -27
  24. package/dist/src/commands/chains.js.map +1 -1
  25. package/dist/src/commands/config.js +74 -85
  26. package/dist/src/commands/config.js.map +1 -1
  27. package/dist/src/commands/deploy.d.ts.map +1 -1
  28. package/dist/src/commands/deploy.js +58 -91
  29. package/dist/src/commands/deploy.js.map +1 -1
  30. package/dist/src/commands/hook.d.ts +12 -0
  31. package/dist/src/commands/hook.d.ts.map +1 -0
  32. package/dist/src/commands/hook.js +34 -0
  33. package/dist/src/commands/hook.js.map +1 -0
  34. package/dist/src/commands/ism.d.ts +12 -0
  35. package/dist/src/commands/ism.d.ts.map +1 -0
  36. package/dist/src/commands/ism.js +36 -0
  37. package/dist/src/commands/ism.js.map +1 -0
  38. package/dist/src/commands/options.d.ts +19 -7
  39. package/dist/src/commands/options.d.ts.map +1 -1
  40. package/dist/src/commands/options.js +90 -27
  41. package/dist/src/commands/options.js.map +1 -1
  42. package/dist/src/commands/send.d.ts +14 -1
  43. package/dist/src/commands/send.d.ts.map +1 -1
  44. package/dist/src/commands/send.js +32 -55
  45. package/dist/src/commands/send.js.map +1 -1
  46. package/dist/src/commands/signCommands.d.ts +3 -0
  47. package/dist/src/commands/signCommands.d.ts.map +1 -0
  48. package/dist/src/commands/signCommands.js +11 -0
  49. package/dist/src/commands/signCommands.js.map +1 -0
  50. package/dist/src/commands/status.d.ts +5 -2
  51. package/dist/src/commands/status.d.ts.map +1 -1
  52. package/dist/src/commands/status.js +9 -19
  53. package/dist/src/commands/status.js.map +1 -1
  54. package/dist/src/config/chain.d.ts +5 -7
  55. package/dist/src/config/chain.d.ts.map +1 -1
  56. package/dist/src/config/chain.js +94 -64
  57. package/dist/src/config/chain.js.map +1 -1
  58. package/dist/src/config/chain.test.d.ts +2 -0
  59. package/dist/src/config/chain.test.d.ts.map +1 -0
  60. package/dist/src/config/chain.test.js +9 -0
  61. package/dist/src/config/chain.test.js.map +1 -0
  62. package/dist/src/config/hooks.d.ts +91 -214
  63. package/dist/src/config/hooks.d.ts.map +1 -1
  64. package/dist/src/config/hooks.js +218 -122
  65. package/dist/src/config/hooks.js.map +1 -1
  66. package/dist/src/config/ism.d.ts +74 -0
  67. package/dist/src/config/ism.d.ts.map +1 -0
  68. package/dist/src/config/ism.js +223 -0
  69. package/dist/src/config/ism.js.map +1 -0
  70. package/dist/src/config/multisig.d.ts +4 -14
  71. package/dist/src/config/multisig.d.ts.map +1 -1
  72. package/dist/src/config/multisig.js +35 -29
  73. package/dist/src/config/multisig.js.map +1 -1
  74. package/dist/src/config/warp.d.ts +7 -180
  75. package/dist/src/config/warp.d.ts.map +1 -1
  76. package/dist/src/config/warp.js +55 -62
  77. package/dist/src/config/warp.js.map +1 -1
  78. package/dist/src/consts.d.ts +1 -0
  79. package/dist/src/consts.d.ts.map +1 -1
  80. package/dist/src/consts.js +1 -0
  81. package/dist/src/consts.js.map +1 -1
  82. package/dist/src/context/context.d.ts +14 -0
  83. package/dist/src/context/context.d.ts.map +1 -0
  84. package/dist/src/context/context.js +108 -0
  85. package/dist/src/context/context.js.map +1 -0
  86. package/dist/src/context/types.d.ts +33 -0
  87. package/dist/src/context/types.d.ts.map +1 -0
  88. package/dist/src/context/types.js.map +1 -0
  89. package/dist/src/deploy/agent.d.ts +6 -4
  90. package/dist/src/deploy/agent.d.ts.map +1 -1
  91. package/dist/src/deploy/agent.js +10 -24
  92. package/dist/src/deploy/agent.js.map +1 -1
  93. package/dist/src/deploy/core.d.ts +10 -7
  94. package/dist/src/deploy/core.d.ts.map +1 -1
  95. package/dist/src/deploy/core.js +156 -160
  96. package/dist/src/deploy/core.js.map +1 -1
  97. package/dist/src/deploy/dry-run.d.ts +19 -0
  98. package/dist/src/deploy/dry-run.d.ts.map +1 -0
  99. package/dist/src/deploy/dry-run.js +45 -0
  100. package/dist/src/deploy/dry-run.js.map +1 -0
  101. package/dist/src/deploy/utils.d.ts +15 -8
  102. package/dist/src/deploy/utils.d.ts.map +1 -1
  103. package/dist/src/deploy/utils.js +60 -11
  104. package/dist/src/deploy/utils.js.map +1 -1
  105. package/dist/src/deploy/warp.d.ts +4 -7
  106. package/dist/src/deploy/warp.d.ts.map +1 -1
  107. package/dist/src/deploy/warp.js +131 -169
  108. package/dist/src/deploy/warp.js.map +1 -1
  109. package/dist/src/hook/read.d.ts +13 -0
  110. package/dist/src/hook/read.d.ts.map +1 -0
  111. package/dist/src/hook/read.js +25 -0
  112. package/dist/src/hook/read.js.map +1 -0
  113. package/dist/src/ism/read.d.ts +13 -0
  114. package/dist/src/ism/read.d.ts.map +1 -0
  115. package/dist/src/ism/read.js +25 -0
  116. package/dist/src/ism/read.js.map +1 -0
  117. package/dist/src/logger.d.ts +17 -0
  118. package/dist/src/logger.d.ts.map +1 -0
  119. package/dist/src/logger.js +32 -0
  120. package/dist/src/logger.js.map +1 -0
  121. package/dist/src/registry/MergedRegistry.d.ts +35 -0
  122. package/dist/src/registry/MergedRegistry.d.ts.map +1 -0
  123. package/dist/src/registry/MergedRegistry.js +83 -0
  124. package/dist/src/registry/MergedRegistry.js.map +1 -0
  125. package/dist/src/send/message.d.ts +7 -6
  126. package/dist/src/send/message.d.ts.map +1 -1
  127. package/dist/src/send/message.js +40 -22
  128. package/dist/src/send/message.js.map +1 -1
  129. package/dist/src/send/transfer.d.ts +8 -10
  130. package/dist/src/send/transfer.d.ts.map +1 -1
  131. package/dist/src/send/transfer.js +68 -70
  132. package/dist/src/send/transfer.js.map +1 -1
  133. package/dist/src/status/message.d.ts +7 -5
  134. package/dist/src/status/message.d.ts.map +1 -1
  135. package/dist/src/status/message.js +25 -12
  136. package/dist/src/status/message.js.map +1 -1
  137. package/dist/src/submit/submit.d.ts +5 -0
  138. package/dist/src/submit/submit.d.ts.map +1 -0
  139. package/dist/src/submit/submit.js +30 -0
  140. package/dist/src/submit/submit.js.map +1 -0
  141. package/dist/src/submit/types.d.ts +18 -0
  142. package/dist/src/submit/types.d.ts.map +1 -0
  143. package/dist/src/submit/types.js +2 -0
  144. package/dist/src/{deploy → submit}/types.js.map +1 -1
  145. package/dist/src/tests/deployTestErc20.d.ts +2 -0
  146. package/dist/src/tests/deployTestErc20.d.ts.map +1 -0
  147. package/dist/src/tests/deployTestErc20.js +26 -0
  148. package/dist/src/tests/deployTestErc20.js.map +1 -0
  149. package/dist/src/tests/hooks.test.d.ts +2 -0
  150. package/dist/src/tests/hooks.test.d.ts.map +1 -0
  151. package/dist/src/tests/hooks.test.js +83 -0
  152. package/dist/src/tests/hooks.test.js.map +1 -0
  153. package/dist/src/tests/ism.test.d.ts +2 -0
  154. package/dist/src/tests/ism.test.d.ts.map +1 -0
  155. package/dist/src/tests/ism.test.js +76 -0
  156. package/dist/src/tests/ism.test.js.map +1 -0
  157. package/dist/src/tests/multisig.test.d.ts +2 -0
  158. package/dist/src/tests/multisig.test.d.ts.map +1 -0
  159. package/dist/src/tests/multisig.test.js +34 -0
  160. package/dist/src/tests/multisig.test.js.map +1 -0
  161. package/dist/src/utils/balances.d.ts +2 -4
  162. package/dist/src/utils/balances.d.ts.map +1 -1
  163. package/dist/src/utils/balances.js +8 -12
  164. package/dist/src/utils/balances.js.map +1 -1
  165. package/dist/src/utils/chains.d.ts +3 -2
  166. package/dist/src/utils/chains.d.ts.map +1 -1
  167. package/dist/src/utils/chains.js +42 -23
  168. package/dist/src/utils/chains.js.map +1 -1
  169. package/dist/src/utils/env.d.ts +6 -0
  170. package/dist/src/utils/env.d.ts.map +1 -0
  171. package/dist/src/utils/env.js +9 -0
  172. package/dist/src/utils/env.js.map +1 -0
  173. package/dist/src/utils/files.d.ts +7 -4
  174. package/dist/src/utils/files.d.ts.map +1 -1
  175. package/dist/src/utils/files.js +52 -29
  176. package/dist/src/utils/files.js.map +1 -1
  177. package/dist/src/utils/keys.d.ts +28 -1
  178. package/dist/src/utils/keys.d.ts.map +1 -1
  179. package/dist/src/utils/keys.js +65 -6
  180. package/dist/src/utils/keys.js.map +1 -1
  181. package/dist/src/utils/time.d.ts.map +1 -1
  182. package/dist/src/utils/time.js +8 -1
  183. package/dist/src/utils/time.js.map +1 -1
  184. package/dist/src/utils/time.test.d.ts +2 -0
  185. package/dist/src/utils/time.test.d.ts.map +1 -0
  186. package/dist/src/utils/time.test.js +9 -0
  187. package/dist/src/utils/time.test.js.map +1 -0
  188. package/dist/src/utils/tokens.d.ts +3 -0
  189. package/dist/src/utils/tokens.d.ts.map +1 -0
  190. package/dist/src/utils/tokens.js +14 -0
  191. package/dist/src/utils/tokens.js.map +1 -0
  192. package/dist/src/utils/version-check.d.ts +2 -0
  193. package/dist/src/utils/version-check.d.ts.map +1 -0
  194. package/dist/src/utils/version-check.js +15 -0
  195. package/dist/src/utils/version-check.js.map +1 -0
  196. package/dist/src/version.d.ts +2 -0
  197. package/dist/src/version.d.ts.map +1 -0
  198. package/dist/src/version.js +2 -0
  199. package/dist/src/version.js.map +1 -0
  200. package/examples/chain-config.yaml +38 -40
  201. package/examples/contract-artifacts.yaml +4 -4
  202. package/examples/hooks.yaml +66 -0
  203. package/examples/ism-advanced.yaml +33 -0
  204. package/examples/{multisig-ism.yaml → ism.yaml} +0 -8
  205. package/examples/warp-route-deployment.yaml +32 -0
  206. package/package.json +27 -14
  207. package/dist/logger.d.ts +0 -13
  208. package/dist/logger.d.ts.map +0 -1
  209. package/dist/logger.js +0 -44
  210. package/dist/logger.js.map +0 -1
  211. package/dist/src/config/artifacts.d.ts +0 -3
  212. package/dist/src/config/artifacts.d.ts.map +0 -1
  213. package/dist/src/config/artifacts.js +0 -18
  214. package/dist/src/config/artifacts.js.map +0 -1
  215. package/dist/src/context.d.ts +0 -388
  216. package/dist/src/context.d.ts.map +0 -1
  217. package/dist/src/context.js +0 -30
  218. package/dist/src/context.js.map +0 -1
  219. package/dist/src/deploy/TestRecipientDeployer.d.ts +0 -20
  220. package/dist/src/deploy/TestRecipientDeployer.d.ts.map +0 -1
  221. package/dist/src/deploy/TestRecipientDeployer.js +0 -36
  222. package/dist/src/deploy/TestRecipientDeployer.js.map +0 -1
  223. package/dist/src/deploy/types.d.ts +0 -21
  224. package/dist/src/deploy/types.d.ts.map +0 -1
  225. package/examples/anvil-chains.yaml +0 -22
  226. package/examples/hook-config.yaml +0 -18
  227. package/examples/warp-tokens.yaml +0 -26
  228. /package/dist/src/{deploy → context}/types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAGL,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,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oB,EAAE,MAAM,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;iBACrE,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC;oBAC3B,OAAO,EAAE,6BAA6B;iBACvC,CAAC,CAAC;gBACH,QAAQ,CAAC,oBAAoB,GAAG;oBAC9B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;iBAC7C,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IACD,MAAM,WAAW,GAAG,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5D,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACxB,QAAQ,CAAC,4CAA4C,CAAC,CAAC;QACvD,MAAM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,4JAA4J,CAC7J,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chain.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.test.d.ts","sourceRoot":"","sources":["../../../src/config/chain.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { expect } from 'chai';
2
+ import { readChainConfigs } from './chain.js';
3
+ describe('readChainConfigs', () => {
4
+ const chainToMetadata = readChainConfigs('./examples/chain-config.yaml');
5
+ it('parses and validates correctly', () => {
6
+ expect(chainToMetadata.chainId).to.equal(1234567890);
7
+ });
8
+ });
9
+ //# sourceMappingURL=chain.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.test.js","sourceRoot":"","sources":["../../../src/config/chain.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,MAAM,eAAe,GAAG,gBAAgB,CAAC,8BAA8B,CAAC,CAAC;IAEzE,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,55 @@
1
1
  import { z } from 'zod';
2
- import { ChainMap, ChainName, HookConfig, HookType, IgpHookConfig, MerkleTreeHookConfig, MultisigIsmConfig, ProtocolFeeHookConfig } from '@hyperlane-xyz/sdk';
2
+ import { ChainMap, ChainName, GasOracleContractType, HookType, HooksConfig } from '@hyperlane-xyz/sdk';
3
3
  import { Address } from '@hyperlane-xyz/utils';
4
- import { FileFormat } from '../utils/files.js';
5
- declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
4
+ import { CommandContext } from '../context/types.js';
5
+ declare const HookConfigSchema: z.ZodUnion<[z.ZodObject<{
6
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
7
+ owner: z.ZodString;
8
+ beneficiary: z.ZodString;
9
+ maxProtocolFee: z.ZodString;
10
+ protocolFee: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: HookType.PROTOCOL_FEE;
13
+ owner: string;
14
+ beneficiary: string;
15
+ maxProtocolFee: string;
16
+ protocolFee: string;
17
+ }, {
18
+ type: HookType.PROTOCOL_FEE;
19
+ owner: string;
20
+ beneficiary: string;
21
+ maxProtocolFee: string;
22
+ protocolFee: string;
23
+ }>, z.ZodObject<{
24
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: HookType.MERKLE_TREE;
27
+ }, {
28
+ type: HookType.MERKLE_TREE;
29
+ }>, z.ZodObject<{
30
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
31
+ owner: z.ZodString;
32
+ beneficiary: z.ZodString;
33
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
34
+ gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
35
+ oracleKey: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
38
+ owner: string;
39
+ beneficiary: string;
40
+ overhead: Record<string, number>;
41
+ gasOracleType: Record<string, GasOracleContractType>;
42
+ oracleKey: string;
43
+ }, {
44
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
45
+ owner: string;
46
+ beneficiary: string;
47
+ overhead: Record<string, number>;
48
+ gasOracleType: Record<string, GasOracleContractType>;
49
+ oracleKey: string;
50
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
51
+ export type HookConfig = z.infer<typeof HookConfigSchema>;
52
+ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
6
53
  required: z.ZodUnion<[z.ZodObject<{
7
54
  type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
8
55
  owner: z.ZodString;
@@ -27,96 +74,28 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
27
74
  type: HookType.MERKLE_TREE;
28
75
  }, {
29
76
  type: HookType.MERKLE_TREE;
30
- }>]>;
31
- default: z.ZodUnion<[z.ZodObject<{
32
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
33
- owner: z.ZodString;
34
- beneficiary: z.ZodString;
35
- maxProtocolFee: z.ZodString;
36
- protocolFee: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- type: HookType.PROTOCOL_FEE;
39
- owner: string;
40
- beneficiary: string;
41
- maxProtocolFee: string;
42
- protocolFee: string;
43
- }, {
44
- type: HookType.PROTOCOL_FEE;
45
- owner: string;
46
- beneficiary: string;
47
- maxProtocolFee: string;
48
- protocolFee: string;
49
77
  }>, z.ZodObject<{
50
- type: z.ZodLiteral<HookType.MERKLE_TREE>;
51
- }, "strip", z.ZodTypeAny, {
52
- type: HookType.MERKLE_TREE;
53
- }, {
54
- type: HookType.MERKLE_TREE;
55
- }>]>;
56
- }, "strip", z.ZodTypeAny, {
57
- required: {
58
- type: HookType.PROTOCOL_FEE;
59
- owner: string;
60
- beneficiary: string;
61
- maxProtocolFee: string;
62
- protocolFee: string;
63
- } | {
64
- type: HookType.MERKLE_TREE;
65
- };
66
- default: {
67
- type: HookType.PROTOCOL_FEE;
68
- owner: string;
69
- beneficiary: string;
70
- maxProtocolFee: string;
71
- protocolFee: string;
72
- } | {
73
- type: HookType.MERKLE_TREE;
74
- };
75
- }, {
76
- required: {
77
- type: HookType.PROTOCOL_FEE;
78
- owner: string;
79
- beneficiary: string;
80
- maxProtocolFee: string;
81
- protocolFee: string;
82
- } | {
83
- type: HookType.MERKLE_TREE;
84
- };
85
- default: {
86
- type: HookType.PROTOCOL_FEE;
87
- owner: string;
88
- beneficiary: string;
89
- maxProtocolFee: string;
90
- protocolFee: string;
91
- } | {
92
- type: HookType.MERKLE_TREE;
93
- };
94
- }>, z.objectOutputType<{}, z.ZodObject<{
95
- required: z.ZodUnion<[z.ZodObject<{
96
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
78
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
97
79
  owner: z.ZodString;
98
80
  beneficiary: z.ZodString;
99
- maxProtocolFee: z.ZodString;
100
- protocolFee: z.ZodString;
81
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
82
+ gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
83
+ oracleKey: z.ZodString;
101
84
  }, "strip", z.ZodTypeAny, {
102
- type: HookType.PROTOCOL_FEE;
85
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
103
86
  owner: string;
104
87
  beneficiary: string;
105
- maxProtocolFee: string;
106
- protocolFee: string;
88
+ overhead: Record<string, number>;
89
+ gasOracleType: Record<string, GasOracleContractType>;
90
+ oracleKey: string;
107
91
  }, {
108
- type: HookType.PROTOCOL_FEE;
92
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
109
93
  owner: string;
110
94
  beneficiary: string;
111
- maxProtocolFee: string;
112
- protocolFee: string;
113
- }>, z.ZodObject<{
114
- type: z.ZodLiteral<HookType.MERKLE_TREE>;
115
- }, "strip", z.ZodTypeAny, {
116
- type: HookType.MERKLE_TREE;
117
- }, {
118
- type: HookType.MERKLE_TREE;
119
- }>]>;
95
+ overhead: Record<string, number>;
96
+ gasOracleType: Record<string, GasOracleContractType>;
97
+ oracleKey: string;
98
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
120
99
  default: z.ZodUnion<[z.ZodObject<{
121
100
  type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
122
101
  owner: z.ZodString;
@@ -141,149 +120,47 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
141
120
  type: HookType.MERKLE_TREE;
142
121
  }, {
143
122
  type: HookType.MERKLE_TREE;
144
- }>]>;
145
- }, "strip", z.ZodTypeAny, {
146
- required: {
147
- type: HookType.PROTOCOL_FEE;
148
- owner: string;
149
- beneficiary: string;
150
- maxProtocolFee: string;
151
- protocolFee: string;
152
- } | {
153
- type: HookType.MERKLE_TREE;
154
- };
155
- default: {
156
- type: HookType.PROTOCOL_FEE;
157
- owner: string;
158
- beneficiary: string;
159
- maxProtocolFee: string;
160
- protocolFee: string;
161
- } | {
162
- type: HookType.MERKLE_TREE;
163
- };
164
- }, {
165
- required: {
166
- type: HookType.PROTOCOL_FEE;
167
- owner: string;
168
- beneficiary: string;
169
- maxProtocolFee: string;
170
- protocolFee: string;
171
- } | {
172
- type: HookType.MERKLE_TREE;
173
- };
174
- default: {
175
- type: HookType.PROTOCOL_FEE;
176
- owner: string;
177
- beneficiary: string;
178
- maxProtocolFee: string;
179
- protocolFee: string;
180
- } | {
181
- type: HookType.MERKLE_TREE;
182
- };
183
- }>, "strip">, z.objectInputType<{}, z.ZodObject<{
184
- required: z.ZodUnion<[z.ZodObject<{
185
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
186
- owner: z.ZodString;
187
- beneficiary: z.ZodString;
188
- maxProtocolFee: z.ZodString;
189
- protocolFee: z.ZodString;
190
- }, "strip", z.ZodTypeAny, {
191
- type: HookType.PROTOCOL_FEE;
192
- owner: string;
193
- beneficiary: string;
194
- maxProtocolFee: string;
195
- protocolFee: string;
196
- }, {
197
- type: HookType.PROTOCOL_FEE;
198
- owner: string;
199
- beneficiary: string;
200
- maxProtocolFee: string;
201
- protocolFee: string;
202
123
  }>, z.ZodObject<{
203
- type: z.ZodLiteral<HookType.MERKLE_TREE>;
204
- }, "strip", z.ZodTypeAny, {
205
- type: HookType.MERKLE_TREE;
206
- }, {
207
- type: HookType.MERKLE_TREE;
208
- }>]>;
209
- default: z.ZodUnion<[z.ZodObject<{
210
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
124
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
211
125
  owner: z.ZodString;
212
126
  beneficiary: z.ZodString;
213
- maxProtocolFee: z.ZodString;
214
- protocolFee: z.ZodString;
127
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
128
+ gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
129
+ oracleKey: z.ZodString;
215
130
  }, "strip", z.ZodTypeAny, {
216
- type: HookType.PROTOCOL_FEE;
131
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
217
132
  owner: string;
218
133
  beneficiary: string;
219
- maxProtocolFee: string;
220
- protocolFee: string;
134
+ overhead: Record<string, number>;
135
+ gasOracleType: Record<string, GasOracleContractType>;
136
+ oracleKey: string;
221
137
  }, {
222
- type: HookType.PROTOCOL_FEE;
138
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
223
139
  owner: string;
224
140
  beneficiary: string;
225
- maxProtocolFee: string;
226
- protocolFee: string;
227
- }>, z.ZodObject<{
228
- type: z.ZodLiteral<HookType.MERKLE_TREE>;
229
- }, "strip", z.ZodTypeAny, {
230
- type: HookType.MERKLE_TREE;
231
- }, {
232
- type: HookType.MERKLE_TREE;
233
- }>]>;
141
+ overhead: Record<string, number>;
142
+ gasOracleType: Record<string, GasOracleContractType>;
143
+ oracleKey: string;
144
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
234
145
  }, "strip", z.ZodTypeAny, {
235
- required: {
236
- type: HookType.PROTOCOL_FEE;
237
- owner: string;
238
- beneficiary: string;
239
- maxProtocolFee: string;
240
- protocolFee: string;
241
- } | {
242
- type: HookType.MERKLE_TREE;
243
- };
244
- default: {
245
- type: HookType.PROTOCOL_FEE;
246
- owner: string;
247
- beneficiary: string;
248
- maxProtocolFee: string;
249
- protocolFee: string;
250
- } | {
251
- type: HookType.MERKLE_TREE;
252
- };
146
+ required?: any;
147
+ default?: any;
253
148
  }, {
254
- required: {
255
- type: HookType.PROTOCOL_FEE;
256
- owner: string;
257
- beneficiary: string;
258
- maxProtocolFee: string;
259
- protocolFee: string;
260
- } | {
261
- type: HookType.MERKLE_TREE;
262
- };
263
- default: {
264
- type: HookType.PROTOCOL_FEE;
265
- owner: string;
266
- beneficiary: string;
267
- maxProtocolFee: string;
268
- protocolFee: string;
269
- } | {
270
- type: HookType.MERKLE_TREE;
271
- };
272
- }>, "strip">>;
273
- export type HookConfigMap = z.infer<typeof HookConfigMapSchema>;
149
+ required?: any;
150
+ default?: any;
151
+ }>>;
152
+ export type HooksConfigMap = z.infer<typeof HooksConfigMapSchema>;
274
153
  export declare function isValidHookConfigMap(config: any): boolean;
275
- export declare function presetHookConfigs(owner: Address, local: ChainName, destinationChains: ChainName[], ismConfig?: MultisigIsmConfig): {
276
- required: ProtocolFeeHookConfig;
277
- default: {
278
- type: HookType;
279
- hooks: (MerkleTreeHookConfig | IgpHookConfig)[];
280
- };
281
- };
282
- export declare function readHookConfig(filePath: string): ChainMap<HookConfig> | undefined;
283
- export declare function createHookConfig({ format, outPath, chainConfigPath, }: {
284
- format: FileFormat;
154
+ export declare function presetHookConfigs(owner: Address): HooksConfig;
155
+ export declare function readHooksConfigMap(filePath: string): ChainMap<HooksConfig> | undefined;
156
+ export declare function createHooksConfigMap({ context, outPath, }: {
157
+ context: CommandContext;
285
158
  outPath: string;
286
- chainConfigPath: string;
287
159
  }): Promise<void>;
160
+ export declare function createHookConfig(context: CommandContext, chain: ChainName, remotes: ChainName[]): Promise<HookConfig>;
161
+ export declare function createProtocolFeeConfig(context: CommandContext, chain: ChainName): Promise<HookConfig>;
162
+ export declare function createIGPConfig(remotes: ChainName[]): Promise<HookConfig>;
163
+ export declare function createAggregationConfig(context: CommandContext, chain: ChainName, remotes: ChainName[]): Promise<HookConfig>;
164
+ export declare function createRoutingConfig(context: CommandContext, origin: ChainName, remotes: ChainName[]): Promise<HookConfig>;
288
165
  export {};
289
166
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
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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