@hyperlane-xyz/sdk 41.3.1 → 42.0.0

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 (166) hide show
  1. package/dist/ccip/consts.d.ts.map +1 -1
  2. package/dist/ccip/consts.js +20 -0
  3. package/dist/ccip/consts.js.map +1 -1
  4. package/dist/consts/multisigIsm.d.ts.map +1 -1
  5. package/dist/consts/multisigIsm.js +20 -0
  6. package/dist/consts/multisigIsm.js.map +1 -1
  7. package/dist/contracts/contracts.d.ts.map +1 -1
  8. package/dist/contracts/contracts.js +15 -0
  9. package/dist/contracts/contracts.js.map +1 -1
  10. package/dist/contracts/contracts.test.d.ts +2 -0
  11. package/dist/contracts/contracts.test.d.ts.map +1 -0
  12. package/dist/contracts/contracts.test.js +88 -0
  13. package/dist/contracts/contracts.test.js.map +1 -0
  14. package/dist/core/types.d.ts +80 -2602
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/types.js +19 -1
  17. package/dist/core/types.js.map +1 -1
  18. package/dist/core/types.test.js +58 -0
  19. package/dist/core/types.test.js.map +1 -1
  20. package/dist/deploy/warp.d.ts +119 -3
  21. package/dist/deploy/warp.d.ts.map +1 -1
  22. package/dist/deploy/warp.js +696 -33
  23. package/dist/deploy/warp.js.map +1 -1
  24. package/dist/deploy/warp.test.d.ts +2 -0
  25. package/dist/deploy/warp.test.d.ts.map +1 -0
  26. package/dist/deploy/warp.test.js +358 -0
  27. package/dist/deploy/warp.test.js.map +1 -0
  28. package/dist/deploy/warpHybridPlan.d.ts +104 -0
  29. package/dist/deploy/warpHybridPlan.d.ts.map +1 -0
  30. package/dist/deploy/warpHybridPlan.js +178 -0
  31. package/dist/deploy/warpHybridPlan.js.map +1 -0
  32. package/dist/deploy/warpHybridPlan.test.d.ts +2 -0
  33. package/dist/deploy/warpHybridPlan.test.d.ts.map +1 -0
  34. package/dist/deploy/warpHybridPlan.test.js +141 -0
  35. package/dist/deploy/warpHybridPlan.test.js.map +1 -0
  36. package/dist/hook/EvmHookModule.d.ts +1 -1
  37. package/dist/hook/EvmHookModule.d.ts.map +1 -1
  38. package/dist/hook/EvmHookModule.js +16 -3
  39. package/dist/hook/EvmHookModule.js.map +1 -1
  40. package/dist/hook/EvmHookReader.d.ts +10 -0
  41. package/dist/hook/EvmHookReader.d.ts.map +1 -1
  42. package/dist/hook/EvmHookReader.js +92 -11
  43. package/dist/hook/EvmHookReader.js.map +1 -1
  44. package/dist/hook/EvmHookReader.test.js +155 -1
  45. package/dist/hook/EvmHookReader.test.js.map +1 -1
  46. package/dist/hook/types.d.ts +107 -1983
  47. package/dist/hook/types.d.ts.map +1 -1
  48. package/dist/hook/types.js +49 -0
  49. package/dist/hook/types.js.map +1 -1
  50. package/dist/hook/types.test.js +21 -1
  51. package/dist/hook/types.test.js.map +1 -1
  52. package/dist/hook/updates.d.ts +1 -0
  53. package/dist/hook/updates.d.ts.map +1 -1
  54. package/dist/hook/updates.js +2 -2
  55. package/dist/hook/updates.js.map +1 -1
  56. package/dist/hook/utils.d.ts +28 -1
  57. package/dist/hook/utils.d.ts.map +1 -1
  58. package/dist/hook/utils.js +89 -0
  59. package/dist/hook/utils.js.map +1 -1
  60. package/dist/ica/types.d.ts +4 -674
  61. package/dist/ica/types.d.ts.map +1 -1
  62. package/dist/index.d.ts +6 -5
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +6 -5
  65. package/dist/index.js.map +1 -1
  66. package/dist/ism/EvmIsmModule.d.ts +28 -2
  67. package/dist/ism/EvmIsmModule.d.ts.map +1 -1
  68. package/dist/ism/EvmIsmModule.hardhat-test.js +478 -3
  69. package/dist/ism/EvmIsmModule.hardhat-test.js.map +1 -1
  70. package/dist/ism/EvmIsmModule.js +224 -10
  71. package/dist/ism/EvmIsmModule.js.map +1 -1
  72. package/dist/ism/EvmIsmReader.d.ts.map +1 -1
  73. package/dist/ism/EvmIsmReader.js +77 -1
  74. package/dist/ism/EvmIsmReader.js.map +1 -1
  75. package/dist/ism/EvmIsmReader.test.js +245 -4
  76. package/dist/ism/EvmIsmReader.test.js.map +1 -1
  77. package/dist/ism/HyperlaneIsmFactory.d.ts +14 -4
  78. package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -1
  79. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +372 -3
  80. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -1
  81. package/dist/ism/HyperlaneIsmFactory.js +80 -6
  82. package/dist/ism/HyperlaneIsmFactory.js.map +1 -1
  83. package/dist/ism/delayedFlow.d.ts +31 -0
  84. package/dist/ism/delayedFlow.d.ts.map +1 -0
  85. package/dist/ism/delayedFlow.js +33 -0
  86. package/dist/ism/delayedFlow.js.map +1 -0
  87. package/dist/ism/types.d.ts +135 -4
  88. package/dist/ism/types.d.ts.map +1 -1
  89. package/dist/ism/types.js +263 -11
  90. package/dist/ism/types.js.map +1 -1
  91. package/dist/ism/types.test.js +433 -1
  92. package/dist/ism/types.test.js.map +1 -1
  93. package/dist/ism/utils.d.ts.map +1 -1
  94. package/dist/ism/utils.js +113 -3
  95. package/dist/ism/utils.js.map +1 -1
  96. package/dist/ism/utils.test.js +44 -0
  97. package/dist/ism/utils.test.js.map +1 -1
  98. package/dist/providers/MultiProviderAdapter.d.ts +3 -3
  99. package/dist/providers/MultiProviderAdapter.d.ts.map +1 -1
  100. package/dist/providers/MultiProviderAdapter.js +2 -1
  101. package/dist/providers/MultiProviderAdapter.js.map +1 -1
  102. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.d.ts.map +1 -1
  103. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.js +4 -0
  104. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.js.map +1 -1
  105. package/dist/providers/transactionFeeEstimators.d.ts +16 -9
  106. package/dist/providers/transactionFeeEstimators.d.ts.map +1 -1
  107. package/dist/providers/transactionFeeEstimators.js +66 -17
  108. package/dist/providers/transactionFeeEstimators.js.map +1 -1
  109. package/dist/providers/transactionFeeEstimators.test.js +153 -1
  110. package/dist/providers/transactionFeeEstimators.test.js.map +1 -1
  111. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.d.ts +14 -1
  112. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.d.ts.map +1 -1
  113. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.js +46 -5
  114. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.js.map +1 -1
  115. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.d.ts +2 -0
  116. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.d.ts.map +1 -0
  117. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.js +125 -0
  118. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.js.map +1 -0
  119. package/dist/router/HyperlaneRouterDeployer.d.ts +3 -1
  120. package/dist/router/HyperlaneRouterDeployer.d.ts.map +1 -1
  121. package/dist/router/HyperlaneRouterDeployer.js +4 -2
  122. package/dist/router/HyperlaneRouterDeployer.js.map +1 -1
  123. package/dist/router/types.d.ts +6 -1011
  124. package/dist/router/types.d.ts.map +1 -1
  125. package/dist/test/testUtils.d.ts +1 -1
  126. package/dist/test/testUtils.d.ts.map +1 -1
  127. package/dist/test/testUtils.js +17 -0
  128. package/dist/test/testUtils.js.map +1 -1
  129. package/dist/test/testUtils.test.d.ts +2 -0
  130. package/dist/test/testUtils.test.d.ts.map +1 -0
  131. package/dist/test/testUtils.test.js +28 -0
  132. package/dist/test/testUtils.test.js.map +1 -0
  133. package/dist/token/EvmWarpModule.d.ts +44 -8
  134. package/dist/token/EvmWarpModule.d.ts.map +1 -1
  135. package/dist/token/EvmWarpModule.hardhat-test.js +574 -4
  136. package/dist/token/EvmWarpModule.hardhat-test.js.map +1 -1
  137. package/dist/token/EvmWarpModule.js +237 -25
  138. package/dist/token/EvmWarpModule.js.map +1 -1
  139. package/dist/token/configUtils.d.ts +17 -7
  140. package/dist/token/configUtils.d.ts.map +1 -1
  141. package/dist/token/configUtils.js +108 -0
  142. package/dist/token/configUtils.js.map +1 -1
  143. package/dist/token/configUtils.test.js +155 -1
  144. package/dist/token/configUtils.test.js.map +1 -1
  145. package/dist/token/deploy.d.ts +3 -1
  146. package/dist/token/deploy.d.ts.map +1 -1
  147. package/dist/token/deploy.hardhat-test.js +454 -3
  148. package/dist/token/deploy.hardhat-test.js.map +1 -1
  149. package/dist/token/deploy.js +25 -6
  150. package/dist/token/deploy.js.map +1 -1
  151. package/dist/token/types.d.ts +169 -2931
  152. package/dist/token/types.d.ts.map +1 -1
  153. package/dist/token/types.test.js +48 -0
  154. package/dist/token/types.test.js.map +1 -1
  155. package/dist/token/warpCheck.d.ts.map +1 -1
  156. package/dist/token/warpCheck.js +36 -1
  157. package/dist/token/warpCheck.js.map +1 -1
  158. package/dist/utils/ism.d.ts +167 -1
  159. package/dist/utils/ism.d.ts.map +1 -1
  160. package/dist/utils/ism.js +412 -2
  161. package/dist/utils/ism.js.map +1 -1
  162. package/dist/utils/ism.test.d.ts +2 -0
  163. package/dist/utils/ism.test.d.ts.map +1 -0
  164. package/dist/utils/ism.test.js +372 -0
  165. package/dist/utils/ism.test.js.map +1 -0
  166. package/package.json +10 -10
@@ -25,278 +25,7 @@ export declare const IcaRouterConfigSchema: z.ZodObject<{
25
25
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26
26
  } & {
27
27
  mailbox: z.ZodString;
28
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
29
- owner: z.ZodString;
30
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31
- } & {
32
- type: z.ZodLiteral<"protocolFee">;
33
- beneficiary: z.ZodString;
34
- maxProtocolFee: z.ZodString;
35
- protocolFee: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- owner: string;
38
- ownerOverrides?: Record<string, string> | undefined;
39
- type: "protocolFee";
40
- beneficiary: string;
41
- maxProtocolFee: string;
42
- protocolFee: string;
43
- }, {
44
- owner: string;
45
- ownerOverrides?: Record<string, string> | undefined;
46
- type: "protocolFee";
47
- beneficiary: string;
48
- maxProtocolFee: string;
49
- protocolFee: string;
50
- }>, z.ZodObject<{
51
- owner: z.ZodString;
52
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
53
- } & {
54
- paused: z.ZodBoolean;
55
- } & {
56
- type: z.ZodLiteral<"pausableHook">;
57
- }, "strip", z.ZodTypeAny, {
58
- owner: string;
59
- ownerOverrides?: Record<string, string> | undefined;
60
- paused: boolean;
61
- type: "pausableHook";
62
- }, {
63
- owner: string;
64
- ownerOverrides?: Record<string, string> | undefined;
65
- paused: boolean;
66
- type: "pausableHook";
67
- }>, z.ZodObject<{
68
- owner: z.ZodString;
69
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
- } & {
71
- type: z.ZodLiteral<"opStackHook">;
72
- nativeBridge: z.ZodString;
73
- destinationChain: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- owner: string;
76
- ownerOverrides?: Record<string, string> | undefined;
77
- type: "opStackHook";
78
- nativeBridge: string;
79
- destinationChain: string;
80
- }, {
81
- owner: string;
82
- ownerOverrides?: Record<string, string> | undefined;
83
- type: "opStackHook";
84
- nativeBridge: string;
85
- destinationChain: string;
86
- }>, z.ZodObject<{
87
- type: z.ZodLiteral<"merkleTreeHook">;
88
- }, "strip", z.ZodTypeAny, {
89
- type: "merkleTreeHook";
90
- }, {
91
- type: "merkleTreeHook";
92
- }>, z.ZodObject<{
93
- owner: z.ZodString;
94
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
95
- } & {
96
- type: z.ZodLiteral<"interchainGasPaymaster">;
97
- beneficiary: z.ZodString;
98
- oracleKey: z.ZodString;
99
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
100
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
101
- gasPrice: z.ZodString;
102
- tokenExchangeRate: z.ZodString;
103
- } & {
104
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
105
- } & {
106
- typicalCost: z.ZodOptional<z.ZodObject<{
107
- handleGasAmount: z.ZodNumber;
108
- totalGasAmount: z.ZodNumber;
109
- totalUsdCost: z.ZodNumber;
110
- }, "strip", z.ZodTypeAny, {
111
- handleGasAmount: number;
112
- totalGasAmount: number;
113
- totalUsdCost: number;
114
- }, {
115
- handleGasAmount: number;
116
- totalGasAmount: number;
117
- totalUsdCost: number;
118
- }>>;
119
- }, "strip", z.ZodTypeAny, {
120
- gasPrice: string;
121
- tokenExchangeRate: string;
122
- tokenDecimals?: number | undefined;
123
- typicalCost?: {
124
- handleGasAmount: number;
125
- totalGasAmount: number;
126
- totalUsdCost: number;
127
- } | undefined;
128
- }, {
129
- gasPrice: string;
130
- tokenExchangeRate: string;
131
- tokenDecimals?: number | undefined;
132
- typicalCost?: {
133
- handleGasAmount: number;
134
- totalGasAmount: number;
135
- totalUsdCost: number;
136
- } | undefined;
137
- }>>;
138
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../index.js").IgpVersion>>;
139
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
140
- contractVersion: z.ZodOptional<z.ZodString>;
141
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
142
- gasPrice: z.ZodString;
143
- tokenExchangeRate: z.ZodString;
144
- } & {
145
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
146
- }, "strip", z.ZodTypeAny, {
147
- gasPrice: string;
148
- tokenExchangeRate: string;
149
- tokenDecimals?: number | undefined;
150
- }, {
151
- gasPrice: string;
152
- tokenExchangeRate: string;
153
- tokenDecimals?: number | undefined;
154
- }>>>>;
155
- }, "strip", z.ZodTypeAny, {
156
- owner: string;
157
- ownerOverrides?: Record<string, string> | undefined;
158
- type: "interchainGasPaymaster";
159
- beneficiary: string;
160
- oracleKey: string;
161
- overhead: Record<string, number>;
162
- oracleConfig: Record<string, {
163
- gasPrice: string;
164
- tokenExchangeRate: string;
165
- tokenDecimals?: number | undefined;
166
- typicalCost?: {
167
- handleGasAmount: number;
168
- totalGasAmount: number;
169
- totalUsdCost: number;
170
- } | undefined;
171
- }>;
172
- igpVersion?: import("../index.js").IgpVersion | undefined;
173
- quoteSigners?: string[] | undefined;
174
- contractVersion?: string | undefined;
175
- tokenOracleConfig?: Record<string, Record<string, {
176
- gasPrice: string;
177
- tokenExchangeRate: string;
178
- tokenDecimals?: number | undefined;
179
- }>> | undefined;
180
- }, {
181
- owner: string;
182
- ownerOverrides?: Record<string, string> | undefined;
183
- type: "interchainGasPaymaster";
184
- beneficiary: string;
185
- oracleKey: string;
186
- overhead: Record<string, number>;
187
- oracleConfig: Record<string, {
188
- gasPrice: string;
189
- tokenExchangeRate: string;
190
- tokenDecimals?: number | undefined;
191
- typicalCost?: {
192
- handleGasAmount: number;
193
- totalGasAmount: number;
194
- totalUsdCost: number;
195
- } | undefined;
196
- }>;
197
- igpVersion?: import("../index.js").IgpVersion | undefined;
198
- quoteSigners?: string[] | undefined;
199
- contractVersion?: string | undefined;
200
- tokenOracleConfig?: Record<string, Record<string, {
201
- gasPrice: string;
202
- tokenExchangeRate: string;
203
- tokenDecimals?: number | undefined;
204
- }>> | undefined;
205
- }>, z.ZodType<import("../index.js").DomainRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../index.js").FallbackRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../index.js").AggregationHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../index.js").ArbL2ToL1HookConfig, z.ZodTypeDef, unknown>, z.ZodObject<{
206
- type: z.ZodLiteral<"defaultHook">;
207
- }, "strip", z.ZodTypeAny, {
208
- type: "defaultHook";
209
- }, {
210
- type: "defaultHook";
211
- }>, z.ZodObject<{
212
- type: z.ZodLiteral<"ccipHook">;
213
- destinationChain: z.ZodString;
214
- }, "strip", z.ZodTypeAny, {
215
- type: "ccipHook";
216
- destinationChain: string;
217
- }, {
218
- type: "ccipHook";
219
- destinationChain: string;
220
- }>, z.ZodObject<{
221
- type: z.ZodLiteral<"cctpHook">;
222
- address: z.ZodString;
223
- }, "strip", z.ZodTypeAny, {
224
- type: "cctpHook";
225
- address: string;
226
- }, {
227
- type: "cctpHook";
228
- address: string;
229
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
230
- owner: z.ZodString;
231
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
232
- } & {
233
- type: z.ZodLiteral<"rateLimitedHook">;
234
- maxCapacity: z.ZodString;
235
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
236
- }, "strip", z.ZodTypeAny, {
237
- owner: string;
238
- ownerOverrides?: Record<string, string> | undefined;
239
- type: "rateLimitedHook";
240
- maxCapacity: string;
241
- duration: bigint;
242
- }, {
243
- owner: string;
244
- ownerOverrides?: Record<string, string> | undefined;
245
- type: "rateLimitedHook";
246
- maxCapacity: string;
247
- duration?: string | number | bigint | undefined;
248
- }>, {
249
- owner: string;
250
- ownerOverrides?: Record<string, string> | undefined;
251
- type: "rateLimitedHook";
252
- maxCapacity: string;
253
- duration: bigint;
254
- }, {
255
- owner: string;
256
- ownerOverrides?: Record<string, string> | undefined;
257
- type: "rateLimitedHook";
258
- maxCapacity: string;
259
- duration?: string | number | bigint | undefined;
260
- }>, {
261
- owner: string;
262
- ownerOverrides?: Record<string, string> | undefined;
263
- type: "rateLimitedHook";
264
- maxCapacity: string;
265
- duration: bigint;
266
- }, {
267
- owner: string;
268
- ownerOverrides?: Record<string, string> | undefined;
269
- type: "rateLimitedHook";
270
- maxCapacity: string;
271
- duration?: string | number | bigint | undefined;
272
- }>, {
273
- owner: string;
274
- ownerOverrides?: Record<string, string> | undefined;
275
- type: "rateLimitedHook";
276
- maxCapacity: string;
277
- duration: bigint;
278
- }, {
279
- owner: string;
280
- ownerOverrides?: Record<string, string> | undefined;
281
- type: "rateLimitedHook";
282
- maxCapacity: string;
283
- duration?: string | number | bigint | undefined;
284
- }>, z.ZodObject<{
285
- type: z.ZodLiteral<"unknownHook">;
286
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
287
- type: z.ZodLiteral<"unknownHook">;
288
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
289
- type: z.ZodLiteral<"unknownHook">;
290
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
291
- type: z.ZodLiteral<"predicateHook">;
292
- address: z.ZodString;
293
- }, "strip", z.ZodTypeAny, {
294
- type: "predicateHook";
295
- address: string;
296
- }, {
297
- type: "predicateHook";
298
- address: string;
299
- }>]>>;
28
+ hook: z.ZodOptional<z.ZodType<import("../index.js").HookConfig, z.ZodTypeDef, unknown>>;
300
29
  interchainSecurityModule: z.ZodOptional<z.ZodType<import("../ism/types.js").IsmConfig, z.ZodTypeDef, unknown>>;
301
30
  } & {
302
31
  foreignDeployment: z.ZodOptional<z.ZodString>;
@@ -621,71 +350,7 @@ export declare const IcaRouterConfigSchema: z.ZodObject<{
621
350
  };
622
351
  } | undefined;
623
352
  mailbox: string;
624
- hook?: string | import("../index.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../index.js").ArbL2ToL1HookConfig | {
625
- owner: string;
626
- ownerOverrides?: Record<string, string> | undefined;
627
- type: "protocolFee";
628
- beneficiary: string;
629
- maxProtocolFee: string;
630
- protocolFee: string;
631
- } | {
632
- owner: string;
633
- ownerOverrides?: Record<string, string> | undefined;
634
- paused: boolean;
635
- type: "pausableHook";
636
- } | {
637
- owner: string;
638
- ownerOverrides?: Record<string, string> | undefined;
639
- type: "opStackHook";
640
- nativeBridge: string;
641
- destinationChain: string;
642
- } | {
643
- type: "merkleTreeHook";
644
- } | {
645
- owner: string;
646
- ownerOverrides?: Record<string, string> | undefined;
647
- type: "interchainGasPaymaster";
648
- beneficiary: string;
649
- oracleKey: string;
650
- overhead: Record<string, number>;
651
- oracleConfig: Record<string, {
652
- gasPrice: string;
653
- tokenExchangeRate: string;
654
- tokenDecimals?: number | undefined;
655
- typicalCost?: {
656
- handleGasAmount: number;
657
- totalGasAmount: number;
658
- totalUsdCost: number;
659
- } | undefined;
660
- }>;
661
- igpVersion?: import("../index.js").IgpVersion | undefined;
662
- quoteSigners?: string[] | undefined;
663
- contractVersion?: string | undefined;
664
- tokenOracleConfig?: Record<string, Record<string, {
665
- gasPrice: string;
666
- tokenExchangeRate: string;
667
- tokenDecimals?: number | undefined;
668
- }>> | undefined;
669
- } | {
670
- type: "defaultHook";
671
- } | {
672
- type: "ccipHook";
673
- destinationChain: string;
674
- } | {
675
- type: "cctpHook";
676
- address: string;
677
- } | {
678
- owner: string;
679
- ownerOverrides?: Record<string, string> | undefined;
680
- type: "rateLimitedHook";
681
- maxCapacity: string;
682
- duration: bigint;
683
- } | {
684
- type: "predicateHook";
685
- address: string;
686
- } | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | z.objectOutputType<{
687
- type: z.ZodLiteral<"unknownHook">;
688
- }, z.ZodTypeAny, "passthrough"> | undefined;
353
+ hook?: import("../index.js").HookConfig | undefined;
689
354
  interchainSecurityModule?: import("../ism/types.js").IsmConfig | undefined;
690
355
  foreignDeployment?: string | undefined;
691
356
  remoteRouters?: Record<string | number, {
@@ -823,278 +488,7 @@ export declare const DerivedIcaRouterConfigSchema: z.ZodObject<{
823
488
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
824
489
  } & {
825
490
  mailbox: z.ZodString;
826
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
827
- owner: z.ZodString;
828
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
829
- } & {
830
- type: z.ZodLiteral<"protocolFee">;
831
- beneficiary: z.ZodString;
832
- maxProtocolFee: z.ZodString;
833
- protocolFee: z.ZodString;
834
- }, "strip", z.ZodTypeAny, {
835
- owner: string;
836
- ownerOverrides?: Record<string, string> | undefined;
837
- type: "protocolFee";
838
- beneficiary: string;
839
- maxProtocolFee: string;
840
- protocolFee: string;
841
- }, {
842
- owner: string;
843
- ownerOverrides?: Record<string, string> | undefined;
844
- type: "protocolFee";
845
- beneficiary: string;
846
- maxProtocolFee: string;
847
- protocolFee: string;
848
- }>, z.ZodObject<{
849
- owner: z.ZodString;
850
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
851
- } & {
852
- paused: z.ZodBoolean;
853
- } & {
854
- type: z.ZodLiteral<"pausableHook">;
855
- }, "strip", z.ZodTypeAny, {
856
- owner: string;
857
- ownerOverrides?: Record<string, string> | undefined;
858
- paused: boolean;
859
- type: "pausableHook";
860
- }, {
861
- owner: string;
862
- ownerOverrides?: Record<string, string> | undefined;
863
- paused: boolean;
864
- type: "pausableHook";
865
- }>, z.ZodObject<{
866
- owner: z.ZodString;
867
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
868
- } & {
869
- type: z.ZodLiteral<"opStackHook">;
870
- nativeBridge: z.ZodString;
871
- destinationChain: z.ZodString;
872
- }, "strip", z.ZodTypeAny, {
873
- owner: string;
874
- ownerOverrides?: Record<string, string> | undefined;
875
- type: "opStackHook";
876
- nativeBridge: string;
877
- destinationChain: string;
878
- }, {
879
- owner: string;
880
- ownerOverrides?: Record<string, string> | undefined;
881
- type: "opStackHook";
882
- nativeBridge: string;
883
- destinationChain: string;
884
- }>, z.ZodObject<{
885
- type: z.ZodLiteral<"merkleTreeHook">;
886
- }, "strip", z.ZodTypeAny, {
887
- type: "merkleTreeHook";
888
- }, {
889
- type: "merkleTreeHook";
890
- }>, z.ZodObject<{
891
- owner: z.ZodString;
892
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
893
- } & {
894
- type: z.ZodLiteral<"interchainGasPaymaster">;
895
- beneficiary: z.ZodString;
896
- oracleKey: z.ZodString;
897
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
898
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
899
- gasPrice: z.ZodString;
900
- tokenExchangeRate: z.ZodString;
901
- } & {
902
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
903
- } & {
904
- typicalCost: z.ZodOptional<z.ZodObject<{
905
- handleGasAmount: z.ZodNumber;
906
- totalGasAmount: z.ZodNumber;
907
- totalUsdCost: z.ZodNumber;
908
- }, "strip", z.ZodTypeAny, {
909
- handleGasAmount: number;
910
- totalGasAmount: number;
911
- totalUsdCost: number;
912
- }, {
913
- handleGasAmount: number;
914
- totalGasAmount: number;
915
- totalUsdCost: number;
916
- }>>;
917
- }, "strip", z.ZodTypeAny, {
918
- gasPrice: string;
919
- tokenExchangeRate: string;
920
- tokenDecimals?: number | undefined;
921
- typicalCost?: {
922
- handleGasAmount: number;
923
- totalGasAmount: number;
924
- totalUsdCost: number;
925
- } | undefined;
926
- }, {
927
- gasPrice: string;
928
- tokenExchangeRate: string;
929
- tokenDecimals?: number | undefined;
930
- typicalCost?: {
931
- handleGasAmount: number;
932
- totalGasAmount: number;
933
- totalUsdCost: number;
934
- } | undefined;
935
- }>>;
936
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../index.js").IgpVersion>>;
937
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
938
- contractVersion: z.ZodOptional<z.ZodString>;
939
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
940
- gasPrice: z.ZodString;
941
- tokenExchangeRate: z.ZodString;
942
- } & {
943
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
944
- }, "strip", z.ZodTypeAny, {
945
- gasPrice: string;
946
- tokenExchangeRate: string;
947
- tokenDecimals?: number | undefined;
948
- }, {
949
- gasPrice: string;
950
- tokenExchangeRate: string;
951
- tokenDecimals?: number | undefined;
952
- }>>>>;
953
- }, "strip", z.ZodTypeAny, {
954
- owner: string;
955
- ownerOverrides?: Record<string, string> | undefined;
956
- type: "interchainGasPaymaster";
957
- beneficiary: string;
958
- oracleKey: string;
959
- overhead: Record<string, number>;
960
- oracleConfig: Record<string, {
961
- gasPrice: string;
962
- tokenExchangeRate: string;
963
- tokenDecimals?: number | undefined;
964
- typicalCost?: {
965
- handleGasAmount: number;
966
- totalGasAmount: number;
967
- totalUsdCost: number;
968
- } | undefined;
969
- }>;
970
- igpVersion?: import("../index.js").IgpVersion | undefined;
971
- quoteSigners?: string[] | undefined;
972
- contractVersion?: string | undefined;
973
- tokenOracleConfig?: Record<string, Record<string, {
974
- gasPrice: string;
975
- tokenExchangeRate: string;
976
- tokenDecimals?: number | undefined;
977
- }>> | undefined;
978
- }, {
979
- owner: string;
980
- ownerOverrides?: Record<string, string> | undefined;
981
- type: "interchainGasPaymaster";
982
- beneficiary: string;
983
- oracleKey: string;
984
- overhead: Record<string, number>;
985
- oracleConfig: Record<string, {
986
- gasPrice: string;
987
- tokenExchangeRate: string;
988
- tokenDecimals?: number | undefined;
989
- typicalCost?: {
990
- handleGasAmount: number;
991
- totalGasAmount: number;
992
- totalUsdCost: number;
993
- } | undefined;
994
- }>;
995
- igpVersion?: import("../index.js").IgpVersion | undefined;
996
- quoteSigners?: string[] | undefined;
997
- contractVersion?: string | undefined;
998
- tokenOracleConfig?: Record<string, Record<string, {
999
- gasPrice: string;
1000
- tokenExchangeRate: string;
1001
- tokenDecimals?: number | undefined;
1002
- }>> | undefined;
1003
- }>, z.ZodType<import("../index.js").DomainRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../index.js").FallbackRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../index.js").AggregationHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../index.js").ArbL2ToL1HookConfig, z.ZodTypeDef, unknown>, z.ZodObject<{
1004
- type: z.ZodLiteral<"defaultHook">;
1005
- }, "strip", z.ZodTypeAny, {
1006
- type: "defaultHook";
1007
- }, {
1008
- type: "defaultHook";
1009
- }>, z.ZodObject<{
1010
- type: z.ZodLiteral<"ccipHook">;
1011
- destinationChain: z.ZodString;
1012
- }, "strip", z.ZodTypeAny, {
1013
- type: "ccipHook";
1014
- destinationChain: string;
1015
- }, {
1016
- type: "ccipHook";
1017
- destinationChain: string;
1018
- }>, z.ZodObject<{
1019
- type: z.ZodLiteral<"cctpHook">;
1020
- address: z.ZodString;
1021
- }, "strip", z.ZodTypeAny, {
1022
- type: "cctpHook";
1023
- address: string;
1024
- }, {
1025
- type: "cctpHook";
1026
- address: string;
1027
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1028
- owner: z.ZodString;
1029
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1030
- } & {
1031
- type: z.ZodLiteral<"rateLimitedHook">;
1032
- maxCapacity: z.ZodString;
1033
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
1034
- }, "strip", z.ZodTypeAny, {
1035
- owner: string;
1036
- ownerOverrides?: Record<string, string> | undefined;
1037
- type: "rateLimitedHook";
1038
- maxCapacity: string;
1039
- duration: bigint;
1040
- }, {
1041
- owner: string;
1042
- ownerOverrides?: Record<string, string> | undefined;
1043
- type: "rateLimitedHook";
1044
- maxCapacity: string;
1045
- duration?: string | number | bigint | undefined;
1046
- }>, {
1047
- owner: string;
1048
- ownerOverrides?: Record<string, string> | undefined;
1049
- type: "rateLimitedHook";
1050
- maxCapacity: string;
1051
- duration: bigint;
1052
- }, {
1053
- owner: string;
1054
- ownerOverrides?: Record<string, string> | undefined;
1055
- type: "rateLimitedHook";
1056
- maxCapacity: string;
1057
- duration?: string | number | bigint | undefined;
1058
- }>, {
1059
- owner: string;
1060
- ownerOverrides?: Record<string, string> | undefined;
1061
- type: "rateLimitedHook";
1062
- maxCapacity: string;
1063
- duration: bigint;
1064
- }, {
1065
- owner: string;
1066
- ownerOverrides?: Record<string, string> | undefined;
1067
- type: "rateLimitedHook";
1068
- maxCapacity: string;
1069
- duration?: string | number | bigint | undefined;
1070
- }>, {
1071
- owner: string;
1072
- ownerOverrides?: Record<string, string> | undefined;
1073
- type: "rateLimitedHook";
1074
- maxCapacity: string;
1075
- duration: bigint;
1076
- }, {
1077
- owner: string;
1078
- ownerOverrides?: Record<string, string> | undefined;
1079
- type: "rateLimitedHook";
1080
- maxCapacity: string;
1081
- duration?: string | number | bigint | undefined;
1082
- }>, z.ZodObject<{
1083
- type: z.ZodLiteral<"unknownHook">;
1084
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1085
- type: z.ZodLiteral<"unknownHook">;
1086
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1087
- type: z.ZodLiteral<"unknownHook">;
1088
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1089
- type: z.ZodLiteral<"predicateHook">;
1090
- address: z.ZodString;
1091
- }, "strip", z.ZodTypeAny, {
1092
- type: "predicateHook";
1093
- address: string;
1094
- }, {
1095
- type: "predicateHook";
1096
- address: string;
1097
- }>]>>;
491
+ hook: z.ZodOptional<z.ZodType<import("../index.js").HookConfig, z.ZodTypeDef, unknown>>;
1098
492
  interchainSecurityModule: z.ZodOptional<z.ZodType<import("../ism/types.js").IsmConfig, z.ZodTypeDef, unknown>>;
1099
493
  } & {
1100
494
  foreignDeployment: z.ZodOptional<z.ZodString>;
@@ -1421,71 +815,7 @@ export declare const DerivedIcaRouterConfigSchema: z.ZodObject<{
1421
815
  };
1422
816
  } | undefined;
1423
817
  mailbox: string;
1424
- hook?: string | import("../index.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../index.js").ArbL2ToL1HookConfig | {
1425
- owner: string;
1426
- ownerOverrides?: Record<string, string> | undefined;
1427
- type: "protocolFee";
1428
- beneficiary: string;
1429
- maxProtocolFee: string;
1430
- protocolFee: string;
1431
- } | {
1432
- owner: string;
1433
- ownerOverrides?: Record<string, string> | undefined;
1434
- paused: boolean;
1435
- type: "pausableHook";
1436
- } | {
1437
- owner: string;
1438
- ownerOverrides?: Record<string, string> | undefined;
1439
- type: "opStackHook";
1440
- nativeBridge: string;
1441
- destinationChain: string;
1442
- } | {
1443
- type: "merkleTreeHook";
1444
- } | {
1445
- owner: string;
1446
- ownerOverrides?: Record<string, string> | undefined;
1447
- type: "interchainGasPaymaster";
1448
- beneficiary: string;
1449
- oracleKey: string;
1450
- overhead: Record<string, number>;
1451
- oracleConfig: Record<string, {
1452
- gasPrice: string;
1453
- tokenExchangeRate: string;
1454
- tokenDecimals?: number | undefined;
1455
- typicalCost?: {
1456
- handleGasAmount: number;
1457
- totalGasAmount: number;
1458
- totalUsdCost: number;
1459
- } | undefined;
1460
- }>;
1461
- igpVersion?: import("../index.js").IgpVersion | undefined;
1462
- quoteSigners?: string[] | undefined;
1463
- contractVersion?: string | undefined;
1464
- tokenOracleConfig?: Record<string, Record<string, {
1465
- gasPrice: string;
1466
- tokenExchangeRate: string;
1467
- tokenDecimals?: number | undefined;
1468
- }>> | undefined;
1469
- } | {
1470
- type: "defaultHook";
1471
- } | {
1472
- type: "ccipHook";
1473
- destinationChain: string;
1474
- } | {
1475
- type: "cctpHook";
1476
- address: string;
1477
- } | {
1478
- owner: string;
1479
- ownerOverrides?: Record<string, string> | undefined;
1480
- type: "rateLimitedHook";
1481
- maxCapacity: string;
1482
- duration: bigint;
1483
- } | {
1484
- type: "predicateHook";
1485
- address: string;
1486
- } | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | z.objectOutputType<{
1487
- type: z.ZodLiteral<"unknownHook">;
1488
- }, z.ZodTypeAny, "passthrough"> | undefined;
818
+ hook?: import("../index.js").HookConfig | undefined;
1489
819
  interchainSecurityModule?: import("../ism/types.js").IsmConfig | undefined;
1490
820
  foreignDeployment?: string | undefined;
1491
821
  remoteRouters?: Record<string | number, {