@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
@@ -70,348 +70,13 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
70
70
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
71
71
  } & {
72
72
  mailbox: z.ZodString;
73
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
74
- owner: z.ZodString;
75
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
76
- } & {
77
- type: z.ZodLiteral<"protocolFee">;
78
- beneficiary: z.ZodString;
79
- maxProtocolFee: z.ZodString;
80
- protocolFee: z.ZodString;
81
- }, "strip", z.ZodTypeAny, {
82
- owner: string;
83
- ownerOverrides?: Record<string, string> | undefined;
84
- type: "protocolFee";
85
- beneficiary: string;
86
- maxProtocolFee: string;
87
- protocolFee: string;
88
- }, {
89
- owner: string;
90
- ownerOverrides?: Record<string, string> | undefined;
91
- type: "protocolFee";
92
- beneficiary: string;
93
- maxProtocolFee: string;
94
- protocolFee: string;
95
- }>, z.ZodObject<{
96
- owner: z.ZodString;
97
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
98
- } & {
99
- paused: z.ZodBoolean;
100
- } & {
101
- type: z.ZodLiteral<"pausableHook">;
102
- }, "strip", z.ZodTypeAny, {
103
- owner: string;
104
- ownerOverrides?: Record<string, string> | undefined;
105
- paused: boolean;
106
- type: "pausableHook";
107
- }, {
108
- owner: string;
109
- ownerOverrides?: Record<string, string> | undefined;
110
- paused: boolean;
111
- type: "pausableHook";
112
- }>, z.ZodObject<{
113
- owner: z.ZodString;
114
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
115
- } & {
116
- type: z.ZodLiteral<"opStackHook">;
117
- nativeBridge: z.ZodString;
118
- destinationChain: z.ZodString;
119
- }, "strip", z.ZodTypeAny, {
120
- owner: string;
121
- ownerOverrides?: Record<string, string> | undefined;
122
- type: "opStackHook";
123
- nativeBridge: string;
124
- destinationChain: string;
125
- }, {
126
- owner: string;
127
- ownerOverrides?: Record<string, string> | undefined;
128
- type: "opStackHook";
129
- nativeBridge: string;
130
- destinationChain: string;
131
- }>, z.ZodObject<{
132
- type: z.ZodLiteral<"merkleTreeHook">;
133
- }, "strip", z.ZodTypeAny, {
134
- type: "merkleTreeHook";
135
- }, {
136
- type: "merkleTreeHook";
137
- }>, z.ZodObject<{
138
- owner: z.ZodString;
139
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
140
- } & {
141
- type: z.ZodLiteral<"interchainGasPaymaster">;
142
- beneficiary: z.ZodString;
143
- oracleKey: z.ZodString;
144
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
145
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
146
- gasPrice: z.ZodString;
147
- tokenExchangeRate: z.ZodString;
148
- } & {
149
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
150
- } & {
151
- typicalCost: z.ZodOptional<z.ZodObject<{
152
- handleGasAmount: z.ZodNumber;
153
- totalGasAmount: z.ZodNumber;
154
- totalUsdCost: z.ZodNumber;
155
- }, "strip", z.ZodTypeAny, {
156
- handleGasAmount: number;
157
- totalGasAmount: number;
158
- totalUsdCost: number;
159
- }, {
160
- handleGasAmount: number;
161
- totalGasAmount: number;
162
- totalUsdCost: number;
163
- }>>;
164
- }, "strip", z.ZodTypeAny, {
165
- gasPrice: string;
166
- tokenExchangeRate: string;
167
- tokenDecimals?: number | undefined;
168
- typicalCost?: {
169
- handleGasAmount: number;
170
- totalGasAmount: number;
171
- totalUsdCost: number;
172
- } | undefined;
173
- }, {
174
- gasPrice: string;
175
- tokenExchangeRate: string;
176
- tokenDecimals?: number | undefined;
177
- typicalCost?: {
178
- handleGasAmount: number;
179
- totalGasAmount: number;
180
- totalUsdCost: number;
181
- } | undefined;
182
- }>>;
183
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
184
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
185
- contractVersion: z.ZodOptional<z.ZodString>;
186
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
187
- gasPrice: z.ZodString;
188
- tokenExchangeRate: z.ZodString;
189
- } & {
190
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
191
- }, "strip", z.ZodTypeAny, {
192
- gasPrice: string;
193
- tokenExchangeRate: string;
194
- tokenDecimals?: number | undefined;
195
- }, {
196
- gasPrice: string;
197
- tokenExchangeRate: string;
198
- tokenDecimals?: number | undefined;
199
- }>>>>;
200
- }, "strip", z.ZodTypeAny, {
201
- owner: string;
202
- ownerOverrides?: Record<string, string> | undefined;
203
- type: "interchainGasPaymaster";
204
- beneficiary: string;
205
- oracleKey: string;
206
- overhead: Record<string, number>;
207
- oracleConfig: Record<string, {
208
- gasPrice: string;
209
- tokenExchangeRate: string;
210
- tokenDecimals?: number | undefined;
211
- typicalCost?: {
212
- handleGasAmount: number;
213
- totalGasAmount: number;
214
- totalUsdCost: number;
215
- } | undefined;
216
- }>;
217
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
218
- quoteSigners?: string[] | undefined;
219
- contractVersion?: string | undefined;
220
- tokenOracleConfig?: Record<string, Record<string, {
221
- gasPrice: string;
222
- tokenExchangeRate: string;
223
- tokenDecimals?: number | undefined;
224
- }>> | undefined;
225
- }, {
226
- owner: string;
227
- ownerOverrides?: Record<string, string> | undefined;
228
- type: "interchainGasPaymaster";
229
- beneficiary: string;
230
- oracleKey: string;
231
- overhead: Record<string, number>;
232
- oracleConfig: Record<string, {
233
- gasPrice: string;
234
- tokenExchangeRate: string;
235
- tokenDecimals?: number | undefined;
236
- typicalCost?: {
237
- handleGasAmount: number;
238
- totalGasAmount: number;
239
- totalUsdCost: number;
240
- } | undefined;
241
- }>;
242
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
243
- quoteSigners?: string[] | undefined;
244
- contractVersion?: string | undefined;
245
- tokenOracleConfig?: Record<string, Record<string, {
246
- gasPrice: string;
247
- tokenExchangeRate: string;
248
- tokenDecimals?: number | undefined;
249
- }>> | undefined;
250
- }>, z.ZodType<import("../hook/types.js").DomainRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").FallbackRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AggregationHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").ArbL2ToL1HookConfig, z.ZodTypeDef, unknown>, z.ZodObject<{
251
- type: z.ZodLiteral<"defaultHook">;
252
- }, "strip", z.ZodTypeAny, {
253
- type: "defaultHook";
254
- }, {
255
- type: "defaultHook";
256
- }>, z.ZodObject<{
257
- type: z.ZodLiteral<"ccipHook">;
258
- destinationChain: z.ZodString;
259
- }, "strip", z.ZodTypeAny, {
260
- type: "ccipHook";
261
- destinationChain: string;
262
- }, {
263
- type: "ccipHook";
264
- destinationChain: string;
265
- }>, z.ZodObject<{
266
- type: z.ZodLiteral<"cctpHook">;
267
- address: z.ZodString;
268
- }, "strip", z.ZodTypeAny, {
269
- type: "cctpHook";
270
- address: string;
271
- }, {
272
- type: "cctpHook";
273
- address: string;
274
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
275
- owner: z.ZodString;
276
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
277
- } & {
278
- type: z.ZodLiteral<"rateLimitedHook">;
279
- maxCapacity: z.ZodString;
280
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
281
- }, "strip", z.ZodTypeAny, {
282
- owner: string;
283
- ownerOverrides?: Record<string, string> | undefined;
284
- type: "rateLimitedHook";
285
- maxCapacity: string;
286
- duration: bigint;
287
- }, {
288
- owner: string;
289
- ownerOverrides?: Record<string, string> | undefined;
290
- type: "rateLimitedHook";
291
- maxCapacity: string;
292
- duration?: string | number | bigint | undefined;
293
- }>, {
294
- owner: string;
295
- ownerOverrides?: Record<string, string> | undefined;
296
- type: "rateLimitedHook";
297
- maxCapacity: string;
298
- duration: bigint;
299
- }, {
300
- owner: string;
301
- ownerOverrides?: Record<string, string> | undefined;
302
- type: "rateLimitedHook";
303
- maxCapacity: string;
304
- duration?: string | number | bigint | undefined;
305
- }>, {
306
- owner: string;
307
- ownerOverrides?: Record<string, string> | undefined;
308
- type: "rateLimitedHook";
309
- maxCapacity: string;
310
- duration: bigint;
311
- }, {
312
- owner: string;
313
- ownerOverrides?: Record<string, string> | undefined;
314
- type: "rateLimitedHook";
315
- maxCapacity: string;
316
- duration?: string | number | bigint | undefined;
317
- }>, {
318
- owner: string;
319
- ownerOverrides?: Record<string, string> | undefined;
320
- type: "rateLimitedHook";
321
- maxCapacity: string;
322
- duration: bigint;
323
- }, {
324
- owner: string;
325
- ownerOverrides?: Record<string, string> | undefined;
326
- type: "rateLimitedHook";
327
- maxCapacity: string;
328
- duration?: string | number | bigint | undefined;
329
- }>, z.ZodObject<{
330
- type: z.ZodLiteral<"unknownHook">;
331
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
332
- type: z.ZodLiteral<"unknownHook">;
333
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
334
- type: z.ZodLiteral<"unknownHook">;
335
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
336
- type: z.ZodLiteral<"predicateHook">;
337
- address: z.ZodString;
338
- }, "strip", z.ZodTypeAny, {
339
- type: "predicateHook";
340
- address: string;
341
- }, {
342
- type: "predicateHook";
343
- address: string;
344
- }>]>>;
73
+ hook: z.ZodOptional<z.ZodType<import("../hook/types.js").HookConfig, z.ZodTypeDef, unknown>>;
345
74
  interchainSecurityModule: z.ZodOptional<z.ZodType<import("../ism/types.js").IsmConfig, z.ZodTypeDef, unknown>>;
346
75
  }, "strip", z.ZodTypeAny, {
347
76
  owner: string;
348
77
  ownerOverrides?: Record<string, string> | undefined;
349
78
  mailbox: string;
350
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
351
- owner: string;
352
- ownerOverrides?: Record<string, string> | undefined;
353
- type: "protocolFee";
354
- beneficiary: string;
355
- maxProtocolFee: string;
356
- protocolFee: string;
357
- } | {
358
- owner: string;
359
- ownerOverrides?: Record<string, string> | undefined;
360
- paused: boolean;
361
- type: "pausableHook";
362
- } | {
363
- owner: string;
364
- ownerOverrides?: Record<string, string> | undefined;
365
- type: "opStackHook";
366
- nativeBridge: string;
367
- destinationChain: string;
368
- } | {
369
- type: "merkleTreeHook";
370
- } | {
371
- owner: string;
372
- ownerOverrides?: Record<string, string> | undefined;
373
- type: "interchainGasPaymaster";
374
- beneficiary: string;
375
- oracleKey: string;
376
- overhead: Record<string, number>;
377
- oracleConfig: Record<string, {
378
- gasPrice: string;
379
- tokenExchangeRate: string;
380
- tokenDecimals?: number | undefined;
381
- typicalCost?: {
382
- handleGasAmount: number;
383
- totalGasAmount: number;
384
- totalUsdCost: number;
385
- } | undefined;
386
- }>;
387
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
388
- quoteSigners?: string[] | undefined;
389
- contractVersion?: string | undefined;
390
- tokenOracleConfig?: Record<string, Record<string, {
391
- gasPrice: string;
392
- tokenExchangeRate: string;
393
- tokenDecimals?: number | undefined;
394
- }>> | undefined;
395
- } | {
396
- type: "defaultHook";
397
- } | {
398
- type: "ccipHook";
399
- destinationChain: string;
400
- } | {
401
- type: "cctpHook";
402
- address: string;
403
- } | {
404
- owner: string;
405
- ownerOverrides?: Record<string, string> | undefined;
406
- type: "rateLimitedHook";
407
- maxCapacity: string;
408
- duration: bigint;
409
- } | {
410
- type: "predicateHook";
411
- address: string;
412
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
413
- type: z.ZodLiteral<"unknownHook">;
414
- }, z.ZodTypeAny, "passthrough"> | undefined;
79
+ hook?: import("../hook/types.js").HookConfig | undefined;
415
80
  interchainSecurityModule?: import("../ism/types.js").IsmConfig | undefined;
416
81
  }, {
417
82
  owner: string;
@@ -449,278 +114,7 @@ export declare const RouterConfigSchema: z.ZodObject<{
449
114
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
450
115
  } & {
451
116
  mailbox: z.ZodString;
452
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
453
- owner: z.ZodString;
454
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
455
- } & {
456
- type: z.ZodLiteral<"protocolFee">;
457
- beneficiary: z.ZodString;
458
- maxProtocolFee: z.ZodString;
459
- protocolFee: z.ZodString;
460
- }, "strip", z.ZodTypeAny, {
461
- owner: string;
462
- ownerOverrides?: Record<string, string> | undefined;
463
- type: "protocolFee";
464
- beneficiary: string;
465
- maxProtocolFee: string;
466
- protocolFee: string;
467
- }, {
468
- owner: string;
469
- ownerOverrides?: Record<string, string> | undefined;
470
- type: "protocolFee";
471
- beneficiary: string;
472
- maxProtocolFee: string;
473
- protocolFee: string;
474
- }>, z.ZodObject<{
475
- owner: z.ZodString;
476
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
477
- } & {
478
- paused: z.ZodBoolean;
479
- } & {
480
- type: z.ZodLiteral<"pausableHook">;
481
- }, "strip", z.ZodTypeAny, {
482
- owner: string;
483
- ownerOverrides?: Record<string, string> | undefined;
484
- paused: boolean;
485
- type: "pausableHook";
486
- }, {
487
- owner: string;
488
- ownerOverrides?: Record<string, string> | undefined;
489
- paused: boolean;
490
- type: "pausableHook";
491
- }>, z.ZodObject<{
492
- owner: z.ZodString;
493
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
494
- } & {
495
- type: z.ZodLiteral<"opStackHook">;
496
- nativeBridge: z.ZodString;
497
- destinationChain: z.ZodString;
498
- }, "strip", z.ZodTypeAny, {
499
- owner: string;
500
- ownerOverrides?: Record<string, string> | undefined;
501
- type: "opStackHook";
502
- nativeBridge: string;
503
- destinationChain: string;
504
- }, {
505
- owner: string;
506
- ownerOverrides?: Record<string, string> | undefined;
507
- type: "opStackHook";
508
- nativeBridge: string;
509
- destinationChain: string;
510
- }>, z.ZodObject<{
511
- type: z.ZodLiteral<"merkleTreeHook">;
512
- }, "strip", z.ZodTypeAny, {
513
- type: "merkleTreeHook";
514
- }, {
515
- type: "merkleTreeHook";
516
- }>, z.ZodObject<{
517
- owner: z.ZodString;
518
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
519
- } & {
520
- type: z.ZodLiteral<"interchainGasPaymaster">;
521
- beneficiary: z.ZodString;
522
- oracleKey: z.ZodString;
523
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
524
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
525
- gasPrice: z.ZodString;
526
- tokenExchangeRate: z.ZodString;
527
- } & {
528
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
529
- } & {
530
- typicalCost: z.ZodOptional<z.ZodObject<{
531
- handleGasAmount: z.ZodNumber;
532
- totalGasAmount: z.ZodNumber;
533
- totalUsdCost: z.ZodNumber;
534
- }, "strip", z.ZodTypeAny, {
535
- handleGasAmount: number;
536
- totalGasAmount: number;
537
- totalUsdCost: number;
538
- }, {
539
- handleGasAmount: number;
540
- totalGasAmount: number;
541
- totalUsdCost: number;
542
- }>>;
543
- }, "strip", z.ZodTypeAny, {
544
- gasPrice: string;
545
- tokenExchangeRate: string;
546
- tokenDecimals?: number | undefined;
547
- typicalCost?: {
548
- handleGasAmount: number;
549
- totalGasAmount: number;
550
- totalUsdCost: number;
551
- } | undefined;
552
- }, {
553
- gasPrice: string;
554
- tokenExchangeRate: string;
555
- tokenDecimals?: number | undefined;
556
- typicalCost?: {
557
- handleGasAmount: number;
558
- totalGasAmount: number;
559
- totalUsdCost: number;
560
- } | undefined;
561
- }>>;
562
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
563
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
564
- contractVersion: z.ZodOptional<z.ZodString>;
565
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
566
- gasPrice: z.ZodString;
567
- tokenExchangeRate: z.ZodString;
568
- } & {
569
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
570
- }, "strip", z.ZodTypeAny, {
571
- gasPrice: string;
572
- tokenExchangeRate: string;
573
- tokenDecimals?: number | undefined;
574
- }, {
575
- gasPrice: string;
576
- tokenExchangeRate: string;
577
- tokenDecimals?: number | undefined;
578
- }>>>>;
579
- }, "strip", z.ZodTypeAny, {
580
- owner: string;
581
- ownerOverrides?: Record<string, string> | undefined;
582
- type: "interchainGasPaymaster";
583
- beneficiary: string;
584
- oracleKey: string;
585
- overhead: Record<string, number>;
586
- oracleConfig: Record<string, {
587
- gasPrice: string;
588
- tokenExchangeRate: string;
589
- tokenDecimals?: number | undefined;
590
- typicalCost?: {
591
- handleGasAmount: number;
592
- totalGasAmount: number;
593
- totalUsdCost: number;
594
- } | undefined;
595
- }>;
596
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
597
- quoteSigners?: string[] | undefined;
598
- contractVersion?: string | undefined;
599
- tokenOracleConfig?: Record<string, Record<string, {
600
- gasPrice: string;
601
- tokenExchangeRate: string;
602
- tokenDecimals?: number | undefined;
603
- }>> | undefined;
604
- }, {
605
- owner: string;
606
- ownerOverrides?: Record<string, string> | undefined;
607
- type: "interchainGasPaymaster";
608
- beneficiary: string;
609
- oracleKey: string;
610
- overhead: Record<string, number>;
611
- oracleConfig: Record<string, {
612
- gasPrice: string;
613
- tokenExchangeRate: string;
614
- tokenDecimals?: number | undefined;
615
- typicalCost?: {
616
- handleGasAmount: number;
617
- totalGasAmount: number;
618
- totalUsdCost: number;
619
- } | undefined;
620
- }>;
621
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
622
- quoteSigners?: string[] | undefined;
623
- contractVersion?: string | undefined;
624
- tokenOracleConfig?: Record<string, Record<string, {
625
- gasPrice: string;
626
- tokenExchangeRate: string;
627
- tokenDecimals?: number | undefined;
628
- }>> | undefined;
629
- }>, z.ZodType<import("../hook/types.js").DomainRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").FallbackRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AggregationHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").ArbL2ToL1HookConfig, z.ZodTypeDef, unknown>, z.ZodObject<{
630
- type: z.ZodLiteral<"defaultHook">;
631
- }, "strip", z.ZodTypeAny, {
632
- type: "defaultHook";
633
- }, {
634
- type: "defaultHook";
635
- }>, z.ZodObject<{
636
- type: z.ZodLiteral<"ccipHook">;
637
- destinationChain: z.ZodString;
638
- }, "strip", z.ZodTypeAny, {
639
- type: "ccipHook";
640
- destinationChain: string;
641
- }, {
642
- type: "ccipHook";
643
- destinationChain: string;
644
- }>, z.ZodObject<{
645
- type: z.ZodLiteral<"cctpHook">;
646
- address: z.ZodString;
647
- }, "strip", z.ZodTypeAny, {
648
- type: "cctpHook";
649
- address: string;
650
- }, {
651
- type: "cctpHook";
652
- address: string;
653
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
654
- owner: z.ZodString;
655
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
656
- } & {
657
- type: z.ZodLiteral<"rateLimitedHook">;
658
- maxCapacity: z.ZodString;
659
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
660
- }, "strip", z.ZodTypeAny, {
661
- owner: string;
662
- ownerOverrides?: Record<string, string> | undefined;
663
- type: "rateLimitedHook";
664
- maxCapacity: string;
665
- duration: bigint;
666
- }, {
667
- owner: string;
668
- ownerOverrides?: Record<string, string> | undefined;
669
- type: "rateLimitedHook";
670
- maxCapacity: string;
671
- duration?: string | number | bigint | undefined;
672
- }>, {
673
- owner: string;
674
- ownerOverrides?: Record<string, string> | undefined;
675
- type: "rateLimitedHook";
676
- maxCapacity: string;
677
- duration: bigint;
678
- }, {
679
- owner: string;
680
- ownerOverrides?: Record<string, string> | undefined;
681
- type: "rateLimitedHook";
682
- maxCapacity: string;
683
- duration?: string | number | bigint | undefined;
684
- }>, {
685
- owner: string;
686
- ownerOverrides?: Record<string, string> | undefined;
687
- type: "rateLimitedHook";
688
- maxCapacity: string;
689
- duration: bigint;
690
- }, {
691
- owner: string;
692
- ownerOverrides?: Record<string, string> | undefined;
693
- type: "rateLimitedHook";
694
- maxCapacity: string;
695
- duration?: string | number | bigint | undefined;
696
- }>, {
697
- owner: string;
698
- ownerOverrides?: Record<string, string> | undefined;
699
- type: "rateLimitedHook";
700
- maxCapacity: string;
701
- duration: bigint;
702
- }, {
703
- owner: string;
704
- ownerOverrides?: Record<string, string> | undefined;
705
- type: "rateLimitedHook";
706
- maxCapacity: string;
707
- duration?: string | number | bigint | undefined;
708
- }>, z.ZodObject<{
709
- type: z.ZodLiteral<"unknownHook">;
710
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
711
- type: z.ZodLiteral<"unknownHook">;
712
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
713
- type: z.ZodLiteral<"unknownHook">;
714
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
715
- type: z.ZodLiteral<"predicateHook">;
716
- address: z.ZodString;
717
- }, "strip", z.ZodTypeAny, {
718
- type: "predicateHook";
719
- address: string;
720
- }, {
721
- type: "predicateHook";
722
- address: string;
723
- }>]>>;
117
+ hook: z.ZodOptional<z.ZodType<import("../hook/types.js").HookConfig, z.ZodTypeDef, unknown>>;
724
118
  interchainSecurityModule: z.ZodOptional<z.ZodType<import("../ism/types.js").IsmConfig, z.ZodTypeDef, unknown>>;
725
119
  } & {
726
120
  foreignDeployment: z.ZodOptional<z.ZodString>;
@@ -1006,71 +400,7 @@ export declare const RouterConfigSchema: z.ZodObject<{
1006
400
  };
1007
401
  } | undefined;
1008
402
  mailbox: string;
1009
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1010
- owner: string;
1011
- ownerOverrides?: Record<string, string> | undefined;
1012
- type: "protocolFee";
1013
- beneficiary: string;
1014
- maxProtocolFee: string;
1015
- protocolFee: string;
1016
- } | {
1017
- owner: string;
1018
- ownerOverrides?: Record<string, string> | undefined;
1019
- paused: boolean;
1020
- type: "pausableHook";
1021
- } | {
1022
- owner: string;
1023
- ownerOverrides?: Record<string, string> | undefined;
1024
- type: "opStackHook";
1025
- nativeBridge: string;
1026
- destinationChain: string;
1027
- } | {
1028
- type: "merkleTreeHook";
1029
- } | {
1030
- owner: string;
1031
- ownerOverrides?: Record<string, string> | undefined;
1032
- type: "interchainGasPaymaster";
1033
- beneficiary: string;
1034
- oracleKey: string;
1035
- overhead: Record<string, number>;
1036
- oracleConfig: Record<string, {
1037
- gasPrice: string;
1038
- tokenExchangeRate: string;
1039
- tokenDecimals?: number | undefined;
1040
- typicalCost?: {
1041
- handleGasAmount: number;
1042
- totalGasAmount: number;
1043
- totalUsdCost: number;
1044
- } | undefined;
1045
- }>;
1046
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1047
- quoteSigners?: string[] | undefined;
1048
- contractVersion?: string | undefined;
1049
- tokenOracleConfig?: Record<string, Record<string, {
1050
- gasPrice: string;
1051
- tokenExchangeRate: string;
1052
- tokenDecimals?: number | undefined;
1053
- }>> | undefined;
1054
- } | {
1055
- type: "defaultHook";
1056
- } | {
1057
- type: "ccipHook";
1058
- destinationChain: string;
1059
- } | {
1060
- type: "cctpHook";
1061
- address: string;
1062
- } | {
1063
- owner: string;
1064
- ownerOverrides?: Record<string, string> | undefined;
1065
- type: "rateLimitedHook";
1066
- maxCapacity: string;
1067
- duration: bigint;
1068
- } | {
1069
- type: "predicateHook";
1070
- address: string;
1071
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1072
- type: z.ZodLiteral<"unknownHook">;
1073
- }, z.ZodTypeAny, "passthrough"> | undefined;
403
+ hook?: import("../hook/types.js").HookConfig | undefined;
1074
404
  interchainSecurityModule?: import("../ism/types.js").IsmConfig | undefined;
1075
405
  foreignDeployment?: string | undefined;
1076
406
  remoteRouters?: Record<string | number, {
@@ -1186,278 +516,7 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
1186
516
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1187
517
  } & {
1188
518
  mailbox: z.ZodString;
1189
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1190
- owner: z.ZodString;
1191
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1192
- } & {
1193
- type: z.ZodLiteral<"protocolFee">;
1194
- beneficiary: z.ZodString;
1195
- maxProtocolFee: z.ZodString;
1196
- protocolFee: z.ZodString;
1197
- }, "strip", z.ZodTypeAny, {
1198
- owner: string;
1199
- ownerOverrides?: Record<string, string> | undefined;
1200
- type: "protocolFee";
1201
- beneficiary: string;
1202
- maxProtocolFee: string;
1203
- protocolFee: string;
1204
- }, {
1205
- owner: string;
1206
- ownerOverrides?: Record<string, string> | undefined;
1207
- type: "protocolFee";
1208
- beneficiary: string;
1209
- maxProtocolFee: string;
1210
- protocolFee: string;
1211
- }>, z.ZodObject<{
1212
- owner: z.ZodString;
1213
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1214
- } & {
1215
- paused: z.ZodBoolean;
1216
- } & {
1217
- type: z.ZodLiteral<"pausableHook">;
1218
- }, "strip", z.ZodTypeAny, {
1219
- owner: string;
1220
- ownerOverrides?: Record<string, string> | undefined;
1221
- paused: boolean;
1222
- type: "pausableHook";
1223
- }, {
1224
- owner: string;
1225
- ownerOverrides?: Record<string, string> | undefined;
1226
- paused: boolean;
1227
- type: "pausableHook";
1228
- }>, z.ZodObject<{
1229
- owner: z.ZodString;
1230
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1231
- } & {
1232
- type: z.ZodLiteral<"opStackHook">;
1233
- nativeBridge: z.ZodString;
1234
- destinationChain: z.ZodString;
1235
- }, "strip", z.ZodTypeAny, {
1236
- owner: string;
1237
- ownerOverrides?: Record<string, string> | undefined;
1238
- type: "opStackHook";
1239
- nativeBridge: string;
1240
- destinationChain: string;
1241
- }, {
1242
- owner: string;
1243
- ownerOverrides?: Record<string, string> | undefined;
1244
- type: "opStackHook";
1245
- nativeBridge: string;
1246
- destinationChain: string;
1247
- }>, z.ZodObject<{
1248
- type: z.ZodLiteral<"merkleTreeHook">;
1249
- }, "strip", z.ZodTypeAny, {
1250
- type: "merkleTreeHook";
1251
- }, {
1252
- type: "merkleTreeHook";
1253
- }>, z.ZodObject<{
1254
- owner: z.ZodString;
1255
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1256
- } & {
1257
- type: z.ZodLiteral<"interchainGasPaymaster">;
1258
- beneficiary: z.ZodString;
1259
- oracleKey: z.ZodString;
1260
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
1261
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
1262
- gasPrice: z.ZodString;
1263
- tokenExchangeRate: z.ZodString;
1264
- } & {
1265
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
1266
- } & {
1267
- typicalCost: z.ZodOptional<z.ZodObject<{
1268
- handleGasAmount: z.ZodNumber;
1269
- totalGasAmount: z.ZodNumber;
1270
- totalUsdCost: z.ZodNumber;
1271
- }, "strip", z.ZodTypeAny, {
1272
- handleGasAmount: number;
1273
- totalGasAmount: number;
1274
- totalUsdCost: number;
1275
- }, {
1276
- handleGasAmount: number;
1277
- totalGasAmount: number;
1278
- totalUsdCost: number;
1279
- }>>;
1280
- }, "strip", z.ZodTypeAny, {
1281
- gasPrice: string;
1282
- tokenExchangeRate: string;
1283
- tokenDecimals?: number | undefined;
1284
- typicalCost?: {
1285
- handleGasAmount: number;
1286
- totalGasAmount: number;
1287
- totalUsdCost: number;
1288
- } | undefined;
1289
- }, {
1290
- gasPrice: string;
1291
- tokenExchangeRate: string;
1292
- tokenDecimals?: number | undefined;
1293
- typicalCost?: {
1294
- handleGasAmount: number;
1295
- totalGasAmount: number;
1296
- totalUsdCost: number;
1297
- } | undefined;
1298
- }>>;
1299
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
1300
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
- contractVersion: z.ZodOptional<z.ZodString>;
1302
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
1303
- gasPrice: z.ZodString;
1304
- tokenExchangeRate: z.ZodString;
1305
- } & {
1306
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
1307
- }, "strip", z.ZodTypeAny, {
1308
- gasPrice: string;
1309
- tokenExchangeRate: string;
1310
- tokenDecimals?: number | undefined;
1311
- }, {
1312
- gasPrice: string;
1313
- tokenExchangeRate: string;
1314
- tokenDecimals?: number | undefined;
1315
- }>>>>;
1316
- }, "strip", z.ZodTypeAny, {
1317
- owner: string;
1318
- ownerOverrides?: Record<string, string> | undefined;
1319
- type: "interchainGasPaymaster";
1320
- beneficiary: string;
1321
- oracleKey: string;
1322
- overhead: Record<string, number>;
1323
- oracleConfig: Record<string, {
1324
- gasPrice: string;
1325
- tokenExchangeRate: string;
1326
- tokenDecimals?: number | undefined;
1327
- typicalCost?: {
1328
- handleGasAmount: number;
1329
- totalGasAmount: number;
1330
- totalUsdCost: number;
1331
- } | undefined;
1332
- }>;
1333
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1334
- quoteSigners?: string[] | undefined;
1335
- contractVersion?: string | undefined;
1336
- tokenOracleConfig?: Record<string, Record<string, {
1337
- gasPrice: string;
1338
- tokenExchangeRate: string;
1339
- tokenDecimals?: number | undefined;
1340
- }>> | undefined;
1341
- }, {
1342
- owner: string;
1343
- ownerOverrides?: Record<string, string> | undefined;
1344
- type: "interchainGasPaymaster";
1345
- beneficiary: string;
1346
- oracleKey: string;
1347
- overhead: Record<string, number>;
1348
- oracleConfig: Record<string, {
1349
- gasPrice: string;
1350
- tokenExchangeRate: string;
1351
- tokenDecimals?: number | undefined;
1352
- typicalCost?: {
1353
- handleGasAmount: number;
1354
- totalGasAmount: number;
1355
- totalUsdCost: number;
1356
- } | undefined;
1357
- }>;
1358
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1359
- quoteSigners?: string[] | undefined;
1360
- contractVersion?: string | undefined;
1361
- tokenOracleConfig?: Record<string, Record<string, {
1362
- gasPrice: string;
1363
- tokenExchangeRate: string;
1364
- tokenDecimals?: number | undefined;
1365
- }>> | undefined;
1366
- }>, z.ZodType<import("../hook/types.js").DomainRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").FallbackRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").AggregationHookConfig, z.ZodTypeDef, unknown>, z.ZodType<import("../hook/types.js").ArbL2ToL1HookConfig, z.ZodTypeDef, unknown>, z.ZodObject<{
1367
- type: z.ZodLiteral<"defaultHook">;
1368
- }, "strip", z.ZodTypeAny, {
1369
- type: "defaultHook";
1370
- }, {
1371
- type: "defaultHook";
1372
- }>, z.ZodObject<{
1373
- type: z.ZodLiteral<"ccipHook">;
1374
- destinationChain: z.ZodString;
1375
- }, "strip", z.ZodTypeAny, {
1376
- type: "ccipHook";
1377
- destinationChain: string;
1378
- }, {
1379
- type: "ccipHook";
1380
- destinationChain: string;
1381
- }>, z.ZodObject<{
1382
- type: z.ZodLiteral<"cctpHook">;
1383
- address: z.ZodString;
1384
- }, "strip", z.ZodTypeAny, {
1385
- type: "cctpHook";
1386
- address: string;
1387
- }, {
1388
- type: "cctpHook";
1389
- address: string;
1390
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1391
- owner: z.ZodString;
1392
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1393
- } & {
1394
- type: z.ZodLiteral<"rateLimitedHook">;
1395
- maxCapacity: z.ZodString;
1396
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
1397
- }, "strip", z.ZodTypeAny, {
1398
- owner: string;
1399
- ownerOverrides?: Record<string, string> | undefined;
1400
- type: "rateLimitedHook";
1401
- maxCapacity: string;
1402
- duration: bigint;
1403
- }, {
1404
- owner: string;
1405
- ownerOverrides?: Record<string, string> | undefined;
1406
- type: "rateLimitedHook";
1407
- maxCapacity: string;
1408
- duration?: string | number | bigint | undefined;
1409
- }>, {
1410
- owner: string;
1411
- ownerOverrides?: Record<string, string> | undefined;
1412
- type: "rateLimitedHook";
1413
- maxCapacity: string;
1414
- duration: bigint;
1415
- }, {
1416
- owner: string;
1417
- ownerOverrides?: Record<string, string> | undefined;
1418
- type: "rateLimitedHook";
1419
- maxCapacity: string;
1420
- duration?: string | number | bigint | undefined;
1421
- }>, {
1422
- owner: string;
1423
- ownerOverrides?: Record<string, string> | undefined;
1424
- type: "rateLimitedHook";
1425
- maxCapacity: string;
1426
- duration: bigint;
1427
- }, {
1428
- owner: string;
1429
- ownerOverrides?: Record<string, string> | undefined;
1430
- type: "rateLimitedHook";
1431
- maxCapacity: string;
1432
- duration?: string | number | bigint | undefined;
1433
- }>, {
1434
- owner: string;
1435
- ownerOverrides?: Record<string, string> | undefined;
1436
- type: "rateLimitedHook";
1437
- maxCapacity: string;
1438
- duration: bigint;
1439
- }, {
1440
- owner: string;
1441
- ownerOverrides?: Record<string, string> | undefined;
1442
- type: "rateLimitedHook";
1443
- maxCapacity: string;
1444
- duration?: string | number | bigint | undefined;
1445
- }>, z.ZodObject<{
1446
- type: z.ZodLiteral<"unknownHook">;
1447
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1448
- type: z.ZodLiteral<"unknownHook">;
1449
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1450
- type: z.ZodLiteral<"unknownHook">;
1451
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1452
- type: z.ZodLiteral<"predicateHook">;
1453
- address: z.ZodString;
1454
- }, "strip", z.ZodTypeAny, {
1455
- type: "predicateHook";
1456
- address: string;
1457
- }, {
1458
- type: "predicateHook";
1459
- address: string;
1460
- }>]>>;
519
+ hook: z.ZodOptional<z.ZodType<import("../hook/types.js").HookConfig, z.ZodTypeDef, unknown>>;
1461
520
  interchainSecurityModule: z.ZodOptional<z.ZodType<import("../ism/types.js").IsmConfig, z.ZodTypeDef, unknown>>;
1462
521
  } & {
1463
522
  foreignDeployment: z.ZodOptional<z.ZodString>;
@@ -1747,71 +806,7 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
1747
806
  };
1748
807
  } | undefined;
1749
808
  mailbox: string;
1750
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1751
- owner: string;
1752
- ownerOverrides?: Record<string, string> | undefined;
1753
- type: "protocolFee";
1754
- beneficiary: string;
1755
- maxProtocolFee: string;
1756
- protocolFee: string;
1757
- } | {
1758
- owner: string;
1759
- ownerOverrides?: Record<string, string> | undefined;
1760
- paused: boolean;
1761
- type: "pausableHook";
1762
- } | {
1763
- owner: string;
1764
- ownerOverrides?: Record<string, string> | undefined;
1765
- type: "opStackHook";
1766
- nativeBridge: string;
1767
- destinationChain: string;
1768
- } | {
1769
- type: "merkleTreeHook";
1770
- } | {
1771
- owner: string;
1772
- ownerOverrides?: Record<string, string> | undefined;
1773
- type: "interchainGasPaymaster";
1774
- beneficiary: string;
1775
- oracleKey: string;
1776
- overhead: Record<string, number>;
1777
- oracleConfig: Record<string, {
1778
- gasPrice: string;
1779
- tokenExchangeRate: string;
1780
- tokenDecimals?: number | undefined;
1781
- typicalCost?: {
1782
- handleGasAmount: number;
1783
- totalGasAmount: number;
1784
- totalUsdCost: number;
1785
- } | undefined;
1786
- }>;
1787
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1788
- quoteSigners?: string[] | undefined;
1789
- contractVersion?: string | undefined;
1790
- tokenOracleConfig?: Record<string, Record<string, {
1791
- gasPrice: string;
1792
- tokenExchangeRate: string;
1793
- tokenDecimals?: number | undefined;
1794
- }>> | undefined;
1795
- } | {
1796
- type: "defaultHook";
1797
- } | {
1798
- type: "ccipHook";
1799
- destinationChain: string;
1800
- } | {
1801
- type: "cctpHook";
1802
- address: string;
1803
- } | {
1804
- owner: string;
1805
- ownerOverrides?: Record<string, string> | undefined;
1806
- type: "rateLimitedHook";
1807
- maxCapacity: string;
1808
- duration: bigint;
1809
- } | {
1810
- type: "predicateHook";
1811
- address: string;
1812
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1813
- type: z.ZodLiteral<"unknownHook">;
1814
- }, z.ZodTypeAny, "passthrough"> | undefined;
809
+ hook?: import("../hook/types.js").HookConfig | undefined;
1815
810
  interchainSecurityModule?: import("../ism/types.js").IsmConfig | undefined;
1816
811
  foreignDeployment?: string | undefined;
1817
812
  remoteRouters?: Record<string | number, {