@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
@@ -3,7 +3,7 @@ import type { Mailbox } from '@hyperlane-xyz/core';
3
3
  import type { Address, ParsedMessage } from '@hyperlane-xyz/utils';
4
4
  import type { UpgradeConfig } from '../deploy/proxy.js';
5
5
  import type { CheckerViolation } from '../deploy/types.js';
6
- import type { DerivedHookConfig } from '../hook/types.js';
6
+ import type { DerivedHookConfig, HookConfig } from '../hook/types.js';
7
7
  import type { DerivedIsmConfig, IsmConfig } from '../ism/types.js';
8
8
  import type { ChainName } from '../types.js';
9
9
  export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
@@ -11,550 +11,8 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
11
11
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12
12
  } & {
13
13
  defaultIsm: z.ZodType<IsmConfig, z.ZodTypeDef, unknown>;
14
- defaultHook: z.ZodUnion<[z.ZodString, z.ZodObject<{
15
- owner: z.ZodString;
16
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
17
- } & {
18
- type: z.ZodLiteral<"protocolFee">;
19
- beneficiary: z.ZodString;
20
- maxProtocolFee: z.ZodString;
21
- protocolFee: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- owner: string;
24
- ownerOverrides?: Record<string, string> | undefined;
25
- type: "protocolFee";
26
- beneficiary: string;
27
- maxProtocolFee: string;
28
- protocolFee: string;
29
- }, {
30
- owner: string;
31
- ownerOverrides?: Record<string, string> | undefined;
32
- type: "protocolFee";
33
- beneficiary: string;
34
- maxProtocolFee: string;
35
- protocolFee: string;
36
- }>, z.ZodObject<{
37
- owner: z.ZodString;
38
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39
- } & {
40
- paused: z.ZodBoolean;
41
- } & {
42
- type: z.ZodLiteral<"pausableHook">;
43
- }, "strip", z.ZodTypeAny, {
44
- owner: string;
45
- ownerOverrides?: Record<string, string> | undefined;
46
- paused: boolean;
47
- type: "pausableHook";
48
- }, {
49
- owner: string;
50
- ownerOverrides?: Record<string, string> | undefined;
51
- paused: boolean;
52
- type: "pausableHook";
53
- }>, z.ZodObject<{
54
- owner: z.ZodString;
55
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
56
- } & {
57
- type: z.ZodLiteral<"opStackHook">;
58
- nativeBridge: z.ZodString;
59
- destinationChain: z.ZodString;
60
- }, "strip", z.ZodTypeAny, {
61
- owner: string;
62
- ownerOverrides?: Record<string, string> | undefined;
63
- type: "opStackHook";
64
- nativeBridge: string;
65
- destinationChain: string;
66
- }, {
67
- owner: string;
68
- ownerOverrides?: Record<string, string> | undefined;
69
- type: "opStackHook";
70
- nativeBridge: string;
71
- destinationChain: string;
72
- }>, z.ZodObject<{
73
- type: z.ZodLiteral<"merkleTreeHook">;
74
- }, "strip", z.ZodTypeAny, {
75
- type: "merkleTreeHook";
76
- }, {
77
- type: "merkleTreeHook";
78
- }>, z.ZodObject<{
79
- owner: z.ZodString;
80
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
- } & {
82
- type: z.ZodLiteral<"interchainGasPaymaster">;
83
- beneficiary: z.ZodString;
84
- oracleKey: z.ZodString;
85
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
86
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
87
- gasPrice: z.ZodString;
88
- tokenExchangeRate: z.ZodString;
89
- } & {
90
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
91
- } & {
92
- typicalCost: z.ZodOptional<z.ZodObject<{
93
- handleGasAmount: z.ZodNumber;
94
- totalGasAmount: z.ZodNumber;
95
- totalUsdCost: z.ZodNumber;
96
- }, "strip", z.ZodTypeAny, {
97
- handleGasAmount: number;
98
- totalGasAmount: number;
99
- totalUsdCost: number;
100
- }, {
101
- handleGasAmount: number;
102
- totalGasAmount: number;
103
- totalUsdCost: number;
104
- }>>;
105
- }, "strip", z.ZodTypeAny, {
106
- gasPrice: string;
107
- tokenExchangeRate: string;
108
- tokenDecimals?: number | undefined;
109
- typicalCost?: {
110
- handleGasAmount: number;
111
- totalGasAmount: number;
112
- totalUsdCost: number;
113
- } | undefined;
114
- }, {
115
- gasPrice: string;
116
- tokenExchangeRate: string;
117
- tokenDecimals?: number | undefined;
118
- typicalCost?: {
119
- handleGasAmount: number;
120
- totalGasAmount: number;
121
- totalUsdCost: number;
122
- } | undefined;
123
- }>>;
124
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
125
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
- contractVersion: z.ZodOptional<z.ZodString>;
127
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
128
- gasPrice: z.ZodString;
129
- tokenExchangeRate: z.ZodString;
130
- } & {
131
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
132
- }, "strip", z.ZodTypeAny, {
133
- gasPrice: string;
134
- tokenExchangeRate: string;
135
- tokenDecimals?: number | undefined;
136
- }, {
137
- gasPrice: string;
138
- tokenExchangeRate: string;
139
- tokenDecimals?: number | undefined;
140
- }>>>>;
141
- }, "strip", z.ZodTypeAny, {
142
- owner: string;
143
- ownerOverrides?: Record<string, string> | undefined;
144
- type: "interchainGasPaymaster";
145
- beneficiary: string;
146
- oracleKey: string;
147
- overhead: Record<string, number>;
148
- oracleConfig: Record<string, {
149
- gasPrice: string;
150
- tokenExchangeRate: string;
151
- tokenDecimals?: number | undefined;
152
- typicalCost?: {
153
- handleGasAmount: number;
154
- totalGasAmount: number;
155
- totalUsdCost: number;
156
- } | undefined;
157
- }>;
158
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
159
- quoteSigners?: string[] | undefined;
160
- contractVersion?: string | undefined;
161
- tokenOracleConfig?: Record<string, Record<string, {
162
- gasPrice: string;
163
- tokenExchangeRate: string;
164
- tokenDecimals?: number | undefined;
165
- }>> | undefined;
166
- }, {
167
- owner: string;
168
- ownerOverrides?: Record<string, string> | undefined;
169
- type: "interchainGasPaymaster";
170
- beneficiary: string;
171
- oracleKey: string;
172
- overhead: Record<string, number>;
173
- oracleConfig: Record<string, {
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?: import("../hook/types.js").IgpVersion | undefined;
184
- quoteSigners?: string[] | undefined;
185
- contractVersion?: string | undefined;
186
- tokenOracleConfig?: Record<string, Record<string, {
187
- gasPrice: string;
188
- tokenExchangeRate: string;
189
- tokenDecimals?: number | undefined;
190
- }>> | undefined;
191
- }>, 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<{
192
- type: z.ZodLiteral<"defaultHook">;
193
- }, "strip", z.ZodTypeAny, {
194
- type: "defaultHook";
195
- }, {
196
- type: "defaultHook";
197
- }>, z.ZodObject<{
198
- type: z.ZodLiteral<"ccipHook">;
199
- destinationChain: z.ZodString;
200
- }, "strip", z.ZodTypeAny, {
201
- type: "ccipHook";
202
- destinationChain: string;
203
- }, {
204
- type: "ccipHook";
205
- destinationChain: string;
206
- }>, z.ZodObject<{
207
- type: z.ZodLiteral<"cctpHook">;
208
- address: z.ZodString;
209
- }, "strip", z.ZodTypeAny, {
210
- type: "cctpHook";
211
- address: string;
212
- }, {
213
- type: "cctpHook";
214
- address: string;
215
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
216
- owner: z.ZodString;
217
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
218
- } & {
219
- type: z.ZodLiteral<"rateLimitedHook">;
220
- maxCapacity: z.ZodString;
221
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
222
- }, "strip", z.ZodTypeAny, {
223
- owner: string;
224
- ownerOverrides?: Record<string, string> | undefined;
225
- type: "rateLimitedHook";
226
- maxCapacity: string;
227
- duration: bigint;
228
- }, {
229
- owner: string;
230
- ownerOverrides?: Record<string, string> | undefined;
231
- type: "rateLimitedHook";
232
- maxCapacity: string;
233
- duration?: string | number | bigint | undefined;
234
- }>, {
235
- owner: string;
236
- ownerOverrides?: Record<string, string> | undefined;
237
- type: "rateLimitedHook";
238
- maxCapacity: string;
239
- duration: bigint;
240
- }, {
241
- owner: string;
242
- ownerOverrides?: Record<string, string> | undefined;
243
- type: "rateLimitedHook";
244
- maxCapacity: string;
245
- duration?: string | number | bigint | undefined;
246
- }>, {
247
- owner: string;
248
- ownerOverrides?: Record<string, string> | undefined;
249
- type: "rateLimitedHook";
250
- maxCapacity: string;
251
- duration: bigint;
252
- }, {
253
- owner: string;
254
- ownerOverrides?: Record<string, string> | undefined;
255
- type: "rateLimitedHook";
256
- maxCapacity: string;
257
- duration?: string | number | bigint | undefined;
258
- }>, {
259
- owner: string;
260
- ownerOverrides?: Record<string, string> | undefined;
261
- type: "rateLimitedHook";
262
- maxCapacity: string;
263
- duration: bigint;
264
- }, {
265
- owner: string;
266
- ownerOverrides?: Record<string, string> | undefined;
267
- type: "rateLimitedHook";
268
- maxCapacity: string;
269
- duration?: string | number | bigint | undefined;
270
- }>, z.ZodObject<{
271
- type: z.ZodLiteral<"unknownHook">;
272
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
273
- type: z.ZodLiteral<"unknownHook">;
274
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
275
- type: z.ZodLiteral<"unknownHook">;
276
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
277
- type: z.ZodLiteral<"predicateHook">;
278
- address: z.ZodString;
279
- }, "strip", z.ZodTypeAny, {
280
- type: "predicateHook";
281
- address: string;
282
- }, {
283
- type: "predicateHook";
284
- address: string;
285
- }>]>;
286
- requiredHook: z.ZodUnion<[z.ZodString, z.ZodObject<{
287
- owner: z.ZodString;
288
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
- } & {
290
- type: z.ZodLiteral<"protocolFee">;
291
- beneficiary: z.ZodString;
292
- maxProtocolFee: z.ZodString;
293
- protocolFee: z.ZodString;
294
- }, "strip", z.ZodTypeAny, {
295
- owner: string;
296
- ownerOverrides?: Record<string, string> | undefined;
297
- type: "protocolFee";
298
- beneficiary: string;
299
- maxProtocolFee: string;
300
- protocolFee: string;
301
- }, {
302
- owner: string;
303
- ownerOverrides?: Record<string, string> | undefined;
304
- type: "protocolFee";
305
- beneficiary: string;
306
- maxProtocolFee: string;
307
- protocolFee: string;
308
- }>, z.ZodObject<{
309
- owner: z.ZodString;
310
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
311
- } & {
312
- paused: z.ZodBoolean;
313
- } & {
314
- type: z.ZodLiteral<"pausableHook">;
315
- }, "strip", z.ZodTypeAny, {
316
- owner: string;
317
- ownerOverrides?: Record<string, string> | undefined;
318
- paused: boolean;
319
- type: "pausableHook";
320
- }, {
321
- owner: string;
322
- ownerOverrides?: Record<string, string> | undefined;
323
- paused: boolean;
324
- type: "pausableHook";
325
- }>, z.ZodObject<{
326
- owner: z.ZodString;
327
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
328
- } & {
329
- type: z.ZodLiteral<"opStackHook">;
330
- nativeBridge: z.ZodString;
331
- destinationChain: z.ZodString;
332
- }, "strip", z.ZodTypeAny, {
333
- owner: string;
334
- ownerOverrides?: Record<string, string> | undefined;
335
- type: "opStackHook";
336
- nativeBridge: string;
337
- destinationChain: string;
338
- }, {
339
- owner: string;
340
- ownerOverrides?: Record<string, string> | undefined;
341
- type: "opStackHook";
342
- nativeBridge: string;
343
- destinationChain: string;
344
- }>, z.ZodObject<{
345
- type: z.ZodLiteral<"merkleTreeHook">;
346
- }, "strip", z.ZodTypeAny, {
347
- type: "merkleTreeHook";
348
- }, {
349
- type: "merkleTreeHook";
350
- }>, z.ZodObject<{
351
- owner: z.ZodString;
352
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
353
- } & {
354
- type: z.ZodLiteral<"interchainGasPaymaster">;
355
- beneficiary: z.ZodString;
356
- oracleKey: z.ZodString;
357
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
358
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
359
- gasPrice: z.ZodString;
360
- tokenExchangeRate: z.ZodString;
361
- } & {
362
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
363
- } & {
364
- typicalCost: z.ZodOptional<z.ZodObject<{
365
- handleGasAmount: z.ZodNumber;
366
- totalGasAmount: z.ZodNumber;
367
- totalUsdCost: z.ZodNumber;
368
- }, "strip", z.ZodTypeAny, {
369
- handleGasAmount: number;
370
- totalGasAmount: number;
371
- totalUsdCost: number;
372
- }, {
373
- handleGasAmount: number;
374
- totalGasAmount: number;
375
- totalUsdCost: number;
376
- }>>;
377
- }, "strip", z.ZodTypeAny, {
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
- gasPrice: string;
388
- tokenExchangeRate: string;
389
- tokenDecimals?: number | undefined;
390
- typicalCost?: {
391
- handleGasAmount: number;
392
- totalGasAmount: number;
393
- totalUsdCost: number;
394
- } | undefined;
395
- }>>;
396
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
397
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
- contractVersion: z.ZodOptional<z.ZodString>;
399
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
400
- gasPrice: z.ZodString;
401
- tokenExchangeRate: z.ZodString;
402
- } & {
403
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
404
- }, "strip", z.ZodTypeAny, {
405
- gasPrice: string;
406
- tokenExchangeRate: string;
407
- tokenDecimals?: number | undefined;
408
- }, {
409
- gasPrice: string;
410
- tokenExchangeRate: string;
411
- tokenDecimals?: number | undefined;
412
- }>>>>;
413
- }, "strip", z.ZodTypeAny, {
414
- owner: string;
415
- ownerOverrides?: Record<string, string> | undefined;
416
- type: "interchainGasPaymaster";
417
- beneficiary: string;
418
- oracleKey: string;
419
- overhead: Record<string, number>;
420
- oracleConfig: Record<string, {
421
- gasPrice: string;
422
- tokenExchangeRate: string;
423
- tokenDecimals?: number | undefined;
424
- typicalCost?: {
425
- handleGasAmount: number;
426
- totalGasAmount: number;
427
- totalUsdCost: number;
428
- } | undefined;
429
- }>;
430
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
431
- quoteSigners?: string[] | undefined;
432
- contractVersion?: string | undefined;
433
- tokenOracleConfig?: Record<string, Record<string, {
434
- gasPrice: string;
435
- tokenExchangeRate: string;
436
- tokenDecimals?: number | undefined;
437
- }>> | undefined;
438
- }, {
439
- owner: string;
440
- ownerOverrides?: Record<string, string> | undefined;
441
- type: "interchainGasPaymaster";
442
- beneficiary: string;
443
- oracleKey: string;
444
- overhead: Record<string, number>;
445
- oracleConfig: Record<string, {
446
- gasPrice: string;
447
- tokenExchangeRate: string;
448
- tokenDecimals?: number | undefined;
449
- typicalCost?: {
450
- handleGasAmount: number;
451
- totalGasAmount: number;
452
- totalUsdCost: number;
453
- } | undefined;
454
- }>;
455
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
456
- quoteSigners?: string[] | undefined;
457
- contractVersion?: string | undefined;
458
- tokenOracleConfig?: Record<string, Record<string, {
459
- gasPrice: string;
460
- tokenExchangeRate: string;
461
- tokenDecimals?: number | undefined;
462
- }>> | undefined;
463
- }>, 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<{
464
- type: z.ZodLiteral<"defaultHook">;
465
- }, "strip", z.ZodTypeAny, {
466
- type: "defaultHook";
467
- }, {
468
- type: "defaultHook";
469
- }>, z.ZodObject<{
470
- type: z.ZodLiteral<"ccipHook">;
471
- destinationChain: z.ZodString;
472
- }, "strip", z.ZodTypeAny, {
473
- type: "ccipHook";
474
- destinationChain: string;
475
- }, {
476
- type: "ccipHook";
477
- destinationChain: string;
478
- }>, z.ZodObject<{
479
- type: z.ZodLiteral<"cctpHook">;
480
- address: z.ZodString;
481
- }, "strip", z.ZodTypeAny, {
482
- type: "cctpHook";
483
- address: string;
484
- }, {
485
- type: "cctpHook";
486
- address: string;
487
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
488
- owner: z.ZodString;
489
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
490
- } & {
491
- type: z.ZodLiteral<"rateLimitedHook">;
492
- maxCapacity: z.ZodString;
493
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
494
- }, "strip", z.ZodTypeAny, {
495
- owner: string;
496
- ownerOverrides?: Record<string, string> | undefined;
497
- type: "rateLimitedHook";
498
- maxCapacity: string;
499
- duration: bigint;
500
- }, {
501
- owner: string;
502
- ownerOverrides?: Record<string, string> | undefined;
503
- type: "rateLimitedHook";
504
- maxCapacity: string;
505
- duration?: string | number | bigint | undefined;
506
- }>, {
507
- owner: string;
508
- ownerOverrides?: Record<string, string> | undefined;
509
- type: "rateLimitedHook";
510
- maxCapacity: string;
511
- duration: bigint;
512
- }, {
513
- owner: string;
514
- ownerOverrides?: Record<string, string> | undefined;
515
- type: "rateLimitedHook";
516
- maxCapacity: string;
517
- duration?: string | number | bigint | undefined;
518
- }>, {
519
- owner: string;
520
- ownerOverrides?: Record<string, string> | undefined;
521
- type: "rateLimitedHook";
522
- maxCapacity: string;
523
- duration: bigint;
524
- }, {
525
- owner: string;
526
- ownerOverrides?: Record<string, string> | undefined;
527
- type: "rateLimitedHook";
528
- maxCapacity: string;
529
- duration?: string | number | bigint | undefined;
530
- }>, {
531
- owner: string;
532
- ownerOverrides?: Record<string, string> | undefined;
533
- type: "rateLimitedHook";
534
- maxCapacity: string;
535
- duration: bigint;
536
- }, {
537
- owner: string;
538
- ownerOverrides?: Record<string, string> | undefined;
539
- type: "rateLimitedHook";
540
- maxCapacity: string;
541
- duration?: string | number | bigint | undefined;
542
- }>, z.ZodObject<{
543
- type: z.ZodLiteral<"unknownHook">;
544
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
545
- type: z.ZodLiteral<"unknownHook">;
546
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
547
- type: z.ZodLiteral<"unknownHook">;
548
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
549
- type: z.ZodLiteral<"predicateHook">;
550
- address: z.ZodString;
551
- }, "strip", z.ZodTypeAny, {
552
- type: "predicateHook";
553
- address: string;
554
- }, {
555
- type: "predicateHook";
556
- address: string;
557
- }>]>;
14
+ defaultHook: z.ZodType<HookConfig, z.ZodTypeDef, unknown>;
15
+ requiredHook: z.ZodType<HookConfig, z.ZodTypeDef, unknown>;
558
16
  proxyAdmin: z.ZodOptional<z.ZodObject<{
559
17
  owner: z.ZodString;
560
18
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -574,278 +32,7 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
574
32
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
575
33
  } & {
576
34
  mailbox: z.ZodString;
577
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
578
- owner: z.ZodString;
579
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
580
- } & {
581
- type: z.ZodLiteral<"protocolFee">;
582
- beneficiary: z.ZodString;
583
- maxProtocolFee: z.ZodString;
584
- protocolFee: z.ZodString;
585
- }, "strip", z.ZodTypeAny, {
586
- owner: string;
587
- ownerOverrides?: Record<string, string> | undefined;
588
- type: "protocolFee";
589
- beneficiary: string;
590
- maxProtocolFee: string;
591
- protocolFee: string;
592
- }, {
593
- owner: string;
594
- ownerOverrides?: Record<string, string> | undefined;
595
- type: "protocolFee";
596
- beneficiary: string;
597
- maxProtocolFee: string;
598
- protocolFee: string;
599
- }>, z.ZodObject<{
600
- owner: z.ZodString;
601
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
602
- } & {
603
- paused: z.ZodBoolean;
604
- } & {
605
- type: z.ZodLiteral<"pausableHook">;
606
- }, "strip", z.ZodTypeAny, {
607
- owner: string;
608
- ownerOverrides?: Record<string, string> | undefined;
609
- paused: boolean;
610
- type: "pausableHook";
611
- }, {
612
- owner: string;
613
- ownerOverrides?: Record<string, string> | undefined;
614
- paused: boolean;
615
- type: "pausableHook";
616
- }>, z.ZodObject<{
617
- owner: z.ZodString;
618
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
619
- } & {
620
- type: z.ZodLiteral<"opStackHook">;
621
- nativeBridge: z.ZodString;
622
- destinationChain: z.ZodString;
623
- }, "strip", z.ZodTypeAny, {
624
- owner: string;
625
- ownerOverrides?: Record<string, string> | undefined;
626
- type: "opStackHook";
627
- nativeBridge: string;
628
- destinationChain: string;
629
- }, {
630
- owner: string;
631
- ownerOverrides?: Record<string, string> | undefined;
632
- type: "opStackHook";
633
- nativeBridge: string;
634
- destinationChain: string;
635
- }>, z.ZodObject<{
636
- type: z.ZodLiteral<"merkleTreeHook">;
637
- }, "strip", z.ZodTypeAny, {
638
- type: "merkleTreeHook";
639
- }, {
640
- type: "merkleTreeHook";
641
- }>, z.ZodObject<{
642
- owner: z.ZodString;
643
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
644
- } & {
645
- type: z.ZodLiteral<"interchainGasPaymaster">;
646
- beneficiary: z.ZodString;
647
- oracleKey: z.ZodString;
648
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
649
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
650
- gasPrice: z.ZodString;
651
- tokenExchangeRate: z.ZodString;
652
- } & {
653
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
654
- } & {
655
- typicalCost: z.ZodOptional<z.ZodObject<{
656
- handleGasAmount: z.ZodNumber;
657
- totalGasAmount: z.ZodNumber;
658
- totalUsdCost: z.ZodNumber;
659
- }, "strip", z.ZodTypeAny, {
660
- handleGasAmount: number;
661
- totalGasAmount: number;
662
- totalUsdCost: number;
663
- }, {
664
- handleGasAmount: number;
665
- totalGasAmount: number;
666
- totalUsdCost: number;
667
- }>>;
668
- }, "strip", z.ZodTypeAny, {
669
- gasPrice: string;
670
- tokenExchangeRate: string;
671
- tokenDecimals?: number | undefined;
672
- typicalCost?: {
673
- handleGasAmount: number;
674
- totalGasAmount: number;
675
- totalUsdCost: number;
676
- } | undefined;
677
- }, {
678
- gasPrice: string;
679
- tokenExchangeRate: string;
680
- tokenDecimals?: number | undefined;
681
- typicalCost?: {
682
- handleGasAmount: number;
683
- totalGasAmount: number;
684
- totalUsdCost: number;
685
- } | undefined;
686
- }>>;
687
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
688
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
689
- contractVersion: z.ZodOptional<z.ZodString>;
690
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
691
- gasPrice: z.ZodString;
692
- tokenExchangeRate: z.ZodString;
693
- } & {
694
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
695
- }, "strip", z.ZodTypeAny, {
696
- gasPrice: string;
697
- tokenExchangeRate: string;
698
- tokenDecimals?: number | undefined;
699
- }, {
700
- gasPrice: string;
701
- tokenExchangeRate: string;
702
- tokenDecimals?: number | undefined;
703
- }>>>>;
704
- }, "strip", z.ZodTypeAny, {
705
- owner: string;
706
- ownerOverrides?: Record<string, string> | undefined;
707
- type: "interchainGasPaymaster";
708
- beneficiary: string;
709
- oracleKey: string;
710
- overhead: Record<string, number>;
711
- oracleConfig: Record<string, {
712
- gasPrice: string;
713
- tokenExchangeRate: string;
714
- tokenDecimals?: number | undefined;
715
- typicalCost?: {
716
- handleGasAmount: number;
717
- totalGasAmount: number;
718
- totalUsdCost: number;
719
- } | undefined;
720
- }>;
721
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
722
- quoteSigners?: string[] | undefined;
723
- contractVersion?: string | undefined;
724
- tokenOracleConfig?: Record<string, Record<string, {
725
- gasPrice: string;
726
- tokenExchangeRate: string;
727
- tokenDecimals?: number | undefined;
728
- }>> | undefined;
729
- }, {
730
- owner: string;
731
- ownerOverrides?: Record<string, string> | undefined;
732
- type: "interchainGasPaymaster";
733
- beneficiary: string;
734
- oracleKey: string;
735
- overhead: Record<string, number>;
736
- oracleConfig: Record<string, {
737
- gasPrice: string;
738
- tokenExchangeRate: string;
739
- tokenDecimals?: number | undefined;
740
- typicalCost?: {
741
- handleGasAmount: number;
742
- totalGasAmount: number;
743
- totalUsdCost: number;
744
- } | undefined;
745
- }>;
746
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
747
- quoteSigners?: string[] | undefined;
748
- contractVersion?: string | undefined;
749
- tokenOracleConfig?: Record<string, Record<string, {
750
- gasPrice: string;
751
- tokenExchangeRate: string;
752
- tokenDecimals?: number | undefined;
753
- }>> | undefined;
754
- }>, 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<{
755
- type: z.ZodLiteral<"defaultHook">;
756
- }, "strip", z.ZodTypeAny, {
757
- type: "defaultHook";
758
- }, {
759
- type: "defaultHook";
760
- }>, z.ZodObject<{
761
- type: z.ZodLiteral<"ccipHook">;
762
- destinationChain: z.ZodString;
763
- }, "strip", z.ZodTypeAny, {
764
- type: "ccipHook";
765
- destinationChain: string;
766
- }, {
767
- type: "ccipHook";
768
- destinationChain: string;
769
- }>, z.ZodObject<{
770
- type: z.ZodLiteral<"cctpHook">;
771
- address: z.ZodString;
772
- }, "strip", z.ZodTypeAny, {
773
- type: "cctpHook";
774
- address: string;
775
- }, {
776
- type: "cctpHook";
777
- address: string;
778
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
779
- owner: z.ZodString;
780
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
781
- } & {
782
- type: z.ZodLiteral<"rateLimitedHook">;
783
- maxCapacity: z.ZodString;
784
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
785
- }, "strip", z.ZodTypeAny, {
786
- owner: string;
787
- ownerOverrides?: Record<string, string> | undefined;
788
- type: "rateLimitedHook";
789
- maxCapacity: string;
790
- duration: bigint;
791
- }, {
792
- owner: string;
793
- ownerOverrides?: Record<string, string> | undefined;
794
- type: "rateLimitedHook";
795
- maxCapacity: string;
796
- duration?: string | number | bigint | undefined;
797
- }>, {
798
- owner: string;
799
- ownerOverrides?: Record<string, string> | undefined;
800
- type: "rateLimitedHook";
801
- maxCapacity: string;
802
- duration: bigint;
803
- }, {
804
- owner: string;
805
- ownerOverrides?: Record<string, string> | undefined;
806
- type: "rateLimitedHook";
807
- maxCapacity: string;
808
- duration?: string | number | bigint | undefined;
809
- }>, {
810
- owner: string;
811
- ownerOverrides?: Record<string, string> | undefined;
812
- type: "rateLimitedHook";
813
- maxCapacity: string;
814
- duration: bigint;
815
- }, {
816
- owner: string;
817
- ownerOverrides?: Record<string, string> | undefined;
818
- type: "rateLimitedHook";
819
- maxCapacity: string;
820
- duration?: string | number | bigint | undefined;
821
- }>, {
822
- owner: string;
823
- ownerOverrides?: Record<string, string> | undefined;
824
- type: "rateLimitedHook";
825
- maxCapacity: string;
826
- duration: bigint;
827
- }, {
828
- owner: string;
829
- ownerOverrides?: Record<string, string> | undefined;
830
- type: "rateLimitedHook";
831
- maxCapacity: string;
832
- duration?: string | number | bigint | undefined;
833
- }>, z.ZodObject<{
834
- type: z.ZodLiteral<"unknownHook">;
835
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
836
- type: z.ZodLiteral<"unknownHook">;
837
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
838
- type: z.ZodLiteral<"unknownHook">;
839
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
840
- type: z.ZodLiteral<"predicateHook">;
841
- address: z.ZodString;
842
- }, "strip", z.ZodTypeAny, {
843
- type: "predicateHook";
844
- address: string;
845
- }, {
846
- type: "predicateHook";
847
- address: string;
848
- }>]>>;
35
+ hook: z.ZodOptional<z.ZodType<HookConfig, z.ZodTypeDef, unknown>>;
849
36
  interchainSecurityModule: z.ZodOptional<z.ZodType<IsmConfig, z.ZodTypeDef, unknown>>;
850
37
  } & {
851
38
  foreignDeployment: z.ZodOptional<z.ZodString>;
@@ -1160,71 +347,7 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
1160
347
  };
1161
348
  } | undefined;
1162
349
  mailbox: string;
1163
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1164
- owner: string;
1165
- ownerOverrides?: Record<string, string> | undefined;
1166
- type: "protocolFee";
1167
- beneficiary: string;
1168
- maxProtocolFee: string;
1169
- protocolFee: string;
1170
- } | {
1171
- owner: string;
1172
- ownerOverrides?: Record<string, string> | undefined;
1173
- paused: boolean;
1174
- type: "pausableHook";
1175
- } | {
1176
- owner: string;
1177
- ownerOverrides?: Record<string, string> | undefined;
1178
- type: "opStackHook";
1179
- nativeBridge: string;
1180
- destinationChain: string;
1181
- } | {
1182
- type: "merkleTreeHook";
1183
- } | {
1184
- owner: string;
1185
- ownerOverrides?: Record<string, string> | undefined;
1186
- type: "interchainGasPaymaster";
1187
- beneficiary: string;
1188
- oracleKey: string;
1189
- overhead: Record<string, number>;
1190
- oracleConfig: Record<string, {
1191
- gasPrice: string;
1192
- tokenExchangeRate: string;
1193
- tokenDecimals?: number | undefined;
1194
- typicalCost?: {
1195
- handleGasAmount: number;
1196
- totalGasAmount: number;
1197
- totalUsdCost: number;
1198
- } | undefined;
1199
- }>;
1200
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1201
- quoteSigners?: string[] | undefined;
1202
- contractVersion?: string | undefined;
1203
- tokenOracleConfig?: Record<string, Record<string, {
1204
- gasPrice: string;
1205
- tokenExchangeRate: string;
1206
- tokenDecimals?: number | undefined;
1207
- }>> | undefined;
1208
- } | {
1209
- type: "defaultHook";
1210
- } | {
1211
- type: "ccipHook";
1212
- destinationChain: string;
1213
- } | {
1214
- type: "cctpHook";
1215
- address: string;
1216
- } | {
1217
- owner: string;
1218
- ownerOverrides?: Record<string, string> | undefined;
1219
- type: "rateLimitedHook";
1220
- maxCapacity: string;
1221
- duration: bigint;
1222
- } | {
1223
- type: "predicateHook";
1224
- address: string;
1225
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1226
- type: z.ZodLiteral<"unknownHook">;
1227
- }, z.ZodTypeAny, "passthrough"> | undefined;
350
+ hook?: HookConfig | undefined;
1228
351
  interchainSecurityModule?: IsmConfig | undefined;
1229
352
  foreignDeployment?: string | undefined;
1230
353
  remoteRouters?: Record<string | number, {
@@ -1363,136 +486,8 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
1363
486
  owner: string;
1364
487
  ownerOverrides?: Record<string, string> | undefined;
1365
488
  defaultIsm: IsmConfig;
1366
- defaultHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1367
- owner: string;
1368
- ownerOverrides?: Record<string, string> | undefined;
1369
- type: "protocolFee";
1370
- beneficiary: string;
1371
- maxProtocolFee: string;
1372
- protocolFee: string;
1373
- } | {
1374
- owner: string;
1375
- ownerOverrides?: Record<string, string> | undefined;
1376
- paused: boolean;
1377
- type: "pausableHook";
1378
- } | {
1379
- owner: string;
1380
- ownerOverrides?: Record<string, string> | undefined;
1381
- type: "opStackHook";
1382
- nativeBridge: string;
1383
- destinationChain: string;
1384
- } | {
1385
- type: "merkleTreeHook";
1386
- } | {
1387
- owner: string;
1388
- ownerOverrides?: Record<string, string> | undefined;
1389
- type: "interchainGasPaymaster";
1390
- beneficiary: string;
1391
- oracleKey: string;
1392
- overhead: Record<string, number>;
1393
- oracleConfig: Record<string, {
1394
- gasPrice: string;
1395
- tokenExchangeRate: string;
1396
- tokenDecimals?: number | undefined;
1397
- typicalCost?: {
1398
- handleGasAmount: number;
1399
- totalGasAmount: number;
1400
- totalUsdCost: number;
1401
- } | undefined;
1402
- }>;
1403
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1404
- quoteSigners?: string[] | undefined;
1405
- contractVersion?: string | undefined;
1406
- tokenOracleConfig?: Record<string, Record<string, {
1407
- gasPrice: string;
1408
- tokenExchangeRate: string;
1409
- tokenDecimals?: number | undefined;
1410
- }>> | undefined;
1411
- } | {
1412
- type: "defaultHook";
1413
- } | {
1414
- type: "ccipHook";
1415
- destinationChain: string;
1416
- } | {
1417
- type: "cctpHook";
1418
- address: string;
1419
- } | {
1420
- owner: string;
1421
- ownerOverrides?: Record<string, string> | undefined;
1422
- type: "rateLimitedHook";
1423
- maxCapacity: string;
1424
- duration: bigint;
1425
- } | {
1426
- type: "predicateHook";
1427
- address: string;
1428
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1429
- type: z.ZodLiteral<"unknownHook">;
1430
- }, z.ZodTypeAny, "passthrough">;
1431
- requiredHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1432
- owner: string;
1433
- ownerOverrides?: Record<string, string> | undefined;
1434
- type: "protocolFee";
1435
- beneficiary: string;
1436
- maxProtocolFee: string;
1437
- protocolFee: string;
1438
- } | {
1439
- owner: string;
1440
- ownerOverrides?: Record<string, string> | undefined;
1441
- paused: boolean;
1442
- type: "pausableHook";
1443
- } | {
1444
- owner: string;
1445
- ownerOverrides?: Record<string, string> | undefined;
1446
- type: "opStackHook";
1447
- nativeBridge: string;
1448
- destinationChain: string;
1449
- } | {
1450
- type: "merkleTreeHook";
1451
- } | {
1452
- owner: string;
1453
- ownerOverrides?: Record<string, string> | undefined;
1454
- type: "interchainGasPaymaster";
1455
- beneficiary: string;
1456
- oracleKey: string;
1457
- overhead: Record<string, number>;
1458
- oracleConfig: Record<string, {
1459
- gasPrice: string;
1460
- tokenExchangeRate: string;
1461
- tokenDecimals?: number | undefined;
1462
- typicalCost?: {
1463
- handleGasAmount: number;
1464
- totalGasAmount: number;
1465
- totalUsdCost: number;
1466
- } | undefined;
1467
- }>;
1468
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1469
- quoteSigners?: string[] | undefined;
1470
- contractVersion?: string | undefined;
1471
- tokenOracleConfig?: Record<string, Record<string, {
1472
- gasPrice: string;
1473
- tokenExchangeRate: string;
1474
- tokenDecimals?: number | undefined;
1475
- }>> | undefined;
1476
- } | {
1477
- type: "defaultHook";
1478
- } | {
1479
- type: "ccipHook";
1480
- destinationChain: string;
1481
- } | {
1482
- type: "cctpHook";
1483
- address: string;
1484
- } | {
1485
- owner: string;
1486
- ownerOverrides?: Record<string, string> | undefined;
1487
- type: "rateLimitedHook";
1488
- maxCapacity: string;
1489
- duration: bigint;
1490
- } | {
1491
- type: "predicateHook";
1492
- address: string;
1493
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1494
- type: z.ZodLiteral<"unknownHook">;
1495
- }, z.ZodTypeAny, "passthrough">;
489
+ defaultHook: HookConfig;
490
+ requiredHook: HookConfig;
1496
491
  proxyAdmin?: {
1497
492
  owner: string;
1498
493
  ownerOverrides?: Record<string, string> | undefined;
@@ -1509,71 +504,7 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
1509
504
  };
1510
505
  } | undefined;
1511
506
  mailbox: string;
1512
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1513
- owner: string;
1514
- ownerOverrides?: Record<string, string> | undefined;
1515
- type: "protocolFee";
1516
- beneficiary: string;
1517
- maxProtocolFee: string;
1518
- protocolFee: string;
1519
- } | {
1520
- owner: string;
1521
- ownerOverrides?: Record<string, string> | undefined;
1522
- paused: boolean;
1523
- type: "pausableHook";
1524
- } | {
1525
- owner: string;
1526
- ownerOverrides?: Record<string, string> | undefined;
1527
- type: "opStackHook";
1528
- nativeBridge: string;
1529
- destinationChain: string;
1530
- } | {
1531
- type: "merkleTreeHook";
1532
- } | {
1533
- owner: string;
1534
- ownerOverrides?: Record<string, string> | undefined;
1535
- type: "interchainGasPaymaster";
1536
- beneficiary: string;
1537
- oracleKey: string;
1538
- overhead: Record<string, number>;
1539
- oracleConfig: Record<string, {
1540
- gasPrice: string;
1541
- tokenExchangeRate: string;
1542
- tokenDecimals?: number | undefined;
1543
- typicalCost?: {
1544
- handleGasAmount: number;
1545
- totalGasAmount: number;
1546
- totalUsdCost: number;
1547
- } | undefined;
1548
- }>;
1549
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1550
- quoteSigners?: string[] | undefined;
1551
- contractVersion?: string | undefined;
1552
- tokenOracleConfig?: Record<string, Record<string, {
1553
- gasPrice: string;
1554
- tokenExchangeRate: string;
1555
- tokenDecimals?: number | undefined;
1556
- }>> | undefined;
1557
- } | {
1558
- type: "defaultHook";
1559
- } | {
1560
- type: "ccipHook";
1561
- destinationChain: string;
1562
- } | {
1563
- type: "cctpHook";
1564
- address: string;
1565
- } | {
1566
- owner: string;
1567
- ownerOverrides?: Record<string, string> | undefined;
1568
- type: "rateLimitedHook";
1569
- maxCapacity: string;
1570
- duration: bigint;
1571
- } | {
1572
- type: "predicateHook";
1573
- address: string;
1574
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1575
- type: z.ZodLiteral<"unknownHook">;
1576
- }, z.ZodTypeAny, "passthrough"> | undefined;
507
+ hook?: HookConfig | undefined;
1577
508
  interchainSecurityModule?: IsmConfig | undefined;
1578
509
  foreignDeployment?: string | undefined;
1579
510
  remoteRouters?: Record<string | number, {
@@ -1717,146 +648,18 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
1717
648
  } | undefined;
1718
649
  feeTokenApprovals?: {
1719
650
  feeToken: string;
1720
- hook: string;
1721
- }[] | undefined;
1722
- } | undefined;
1723
- permit2?: string | undefined;
1724
- deployQuotedCalls?: boolean | undefined;
1725
- contractVersion?: string | undefined;
1726
- }>, {
1727
- owner: string;
1728
- ownerOverrides?: Record<string, string> | undefined;
1729
- defaultIsm: IsmConfig;
1730
- defaultHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1731
- owner: string;
1732
- ownerOverrides?: Record<string, string> | undefined;
1733
- type: "protocolFee";
1734
- beneficiary: string;
1735
- maxProtocolFee: string;
1736
- protocolFee: string;
1737
- } | {
1738
- owner: string;
1739
- ownerOverrides?: Record<string, string> | undefined;
1740
- paused: boolean;
1741
- type: "pausableHook";
1742
- } | {
1743
- owner: string;
1744
- ownerOverrides?: Record<string, string> | undefined;
1745
- type: "opStackHook";
1746
- nativeBridge: string;
1747
- destinationChain: string;
1748
- } | {
1749
- type: "merkleTreeHook";
1750
- } | {
1751
- owner: string;
1752
- ownerOverrides?: Record<string, string> | undefined;
1753
- type: "interchainGasPaymaster";
1754
- beneficiary: string;
1755
- oracleKey: string;
1756
- overhead: Record<string, number>;
1757
- oracleConfig: Record<string, {
1758
- gasPrice: string;
1759
- tokenExchangeRate: string;
1760
- tokenDecimals?: number | undefined;
1761
- typicalCost?: {
1762
- handleGasAmount: number;
1763
- totalGasAmount: number;
1764
- totalUsdCost: number;
1765
- } | undefined;
1766
- }>;
1767
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1768
- quoteSigners?: string[] | undefined;
1769
- contractVersion?: string | undefined;
1770
- tokenOracleConfig?: Record<string, Record<string, {
1771
- gasPrice: string;
1772
- tokenExchangeRate: string;
1773
- tokenDecimals?: number | undefined;
1774
- }>> | undefined;
1775
- } | {
1776
- type: "defaultHook";
1777
- } | {
1778
- type: "ccipHook";
1779
- destinationChain: string;
1780
- } | {
1781
- type: "cctpHook";
1782
- address: string;
1783
- } | {
1784
- owner: string;
1785
- ownerOverrides?: Record<string, string> | undefined;
1786
- type: "rateLimitedHook";
1787
- maxCapacity: string;
1788
- duration: bigint;
1789
- } | {
1790
- type: "predicateHook";
1791
- address: string;
1792
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1793
- type: z.ZodLiteral<"unknownHook">;
1794
- }, z.ZodTypeAny, "passthrough">;
1795
- requiredHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1796
- owner: string;
1797
- ownerOverrides?: Record<string, string> | undefined;
1798
- type: "protocolFee";
1799
- beneficiary: string;
1800
- maxProtocolFee: string;
1801
- protocolFee: string;
1802
- } | {
1803
- owner: string;
1804
- ownerOverrides?: Record<string, string> | undefined;
1805
- paused: boolean;
1806
- type: "pausableHook";
1807
- } | {
1808
- owner: string;
1809
- ownerOverrides?: Record<string, string> | undefined;
1810
- type: "opStackHook";
1811
- nativeBridge: string;
1812
- destinationChain: string;
1813
- } | {
1814
- type: "merkleTreeHook";
1815
- } | {
1816
- owner: string;
1817
- ownerOverrides?: Record<string, string> | undefined;
1818
- type: "interchainGasPaymaster";
1819
- beneficiary: string;
1820
- oracleKey: string;
1821
- overhead: Record<string, number>;
1822
- oracleConfig: Record<string, {
1823
- gasPrice: string;
1824
- tokenExchangeRate: string;
1825
- tokenDecimals?: number | undefined;
1826
- typicalCost?: {
1827
- handleGasAmount: number;
1828
- totalGasAmount: number;
1829
- totalUsdCost: number;
1830
- } | undefined;
1831
- }>;
1832
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1833
- quoteSigners?: string[] | undefined;
1834
- contractVersion?: string | undefined;
1835
- tokenOracleConfig?: Record<string, Record<string, {
1836
- gasPrice: string;
1837
- tokenExchangeRate: string;
1838
- tokenDecimals?: number | undefined;
1839
- }>> | undefined;
1840
- } | {
1841
- type: "defaultHook";
1842
- } | {
1843
- type: "ccipHook";
1844
- destinationChain: string;
1845
- } | {
1846
- type: "cctpHook";
1847
- address: string;
1848
- } | {
1849
- owner: string;
1850
- ownerOverrides?: Record<string, string> | undefined;
1851
- type: "rateLimitedHook";
1852
- maxCapacity: string;
1853
- duration: bigint;
1854
- } | {
1855
- type: "predicateHook";
1856
- address: string;
1857
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1858
- type: z.ZodLiteral<"unknownHook">;
1859
- }, z.ZodTypeAny, "passthrough">;
651
+ hook: string;
652
+ }[] | undefined;
653
+ } | undefined;
654
+ permit2?: string | undefined;
655
+ deployQuotedCalls?: boolean | undefined;
656
+ contractVersion?: string | undefined;
657
+ }>, {
658
+ owner: string;
659
+ ownerOverrides?: Record<string, string> | undefined;
660
+ defaultIsm: IsmConfig;
661
+ defaultHook: HookConfig;
662
+ requiredHook: HookConfig;
1860
663
  proxyAdmin?: {
1861
664
  owner: string;
1862
665
  ownerOverrides?: Record<string, string> | undefined;
@@ -1873,71 +676,7 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
1873
676
  };
1874
677
  } | undefined;
1875
678
  mailbox: string;
1876
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
1877
- owner: string;
1878
- ownerOverrides?: Record<string, string> | undefined;
1879
- type: "protocolFee";
1880
- beneficiary: string;
1881
- maxProtocolFee: string;
1882
- protocolFee: string;
1883
- } | {
1884
- owner: string;
1885
- ownerOverrides?: Record<string, string> | undefined;
1886
- paused: boolean;
1887
- type: "pausableHook";
1888
- } | {
1889
- owner: string;
1890
- ownerOverrides?: Record<string, string> | undefined;
1891
- type: "opStackHook";
1892
- nativeBridge: string;
1893
- destinationChain: string;
1894
- } | {
1895
- type: "merkleTreeHook";
1896
- } | {
1897
- owner: string;
1898
- ownerOverrides?: Record<string, string> | undefined;
1899
- type: "interchainGasPaymaster";
1900
- beneficiary: string;
1901
- oracleKey: string;
1902
- overhead: Record<string, number>;
1903
- oracleConfig: Record<string, {
1904
- gasPrice: string;
1905
- tokenExchangeRate: string;
1906
- tokenDecimals?: number | undefined;
1907
- typicalCost?: {
1908
- handleGasAmount: number;
1909
- totalGasAmount: number;
1910
- totalUsdCost: number;
1911
- } | undefined;
1912
- }>;
1913
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
1914
- quoteSigners?: string[] | undefined;
1915
- contractVersion?: string | undefined;
1916
- tokenOracleConfig?: Record<string, Record<string, {
1917
- gasPrice: string;
1918
- tokenExchangeRate: string;
1919
- tokenDecimals?: number | undefined;
1920
- }>> | undefined;
1921
- } | {
1922
- type: "defaultHook";
1923
- } | {
1924
- type: "ccipHook";
1925
- destinationChain: string;
1926
- } | {
1927
- type: "cctpHook";
1928
- address: string;
1929
- } | {
1930
- owner: string;
1931
- ownerOverrides?: Record<string, string> | undefined;
1932
- type: "rateLimitedHook";
1933
- maxCapacity: string;
1934
- duration: bigint;
1935
- } | {
1936
- type: "predicateHook";
1937
- address: string;
1938
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
1939
- type: z.ZodLiteral<"unknownHook">;
1940
- }, z.ZodTypeAny, "passthrough"> | undefined;
679
+ hook?: HookConfig | undefined;
1941
680
  interchainSecurityModule?: IsmConfig | undefined;
1942
681
  foreignDeployment?: string | undefined;
1943
682
  remoteRouters?: Record<string | number, {
@@ -2043,599 +782,57 @@ export declare const CoreConfigSchema: z.ZodEffects<z.ZodObject<{
2043
782
  bps?: string | number | undefined;
2044
783
  } | {
2045
784
  owner: string;
2046
- beneficiary?: string | undefined;
2047
- maxFee?: string | number | bigint | undefined;
2048
- halfAmount?: string | number | bigint | undefined;
2049
- quoteSigners?: string[] | undefined;
2050
- type: "OffchainQuotedLinearFee";
2051
- bps?: string | number | undefined;
2052
- } | {
2053
- owner: string;
2054
- beneficiary?: string | undefined;
2055
- type: "ProgressiveFee";
2056
- maxFee: string | number | bigint;
2057
- halfAmount: string | number | bigint;
2058
- } | {
2059
- owner: string;
2060
- beneficiary?: string | undefined;
2061
- type: "RegressiveFee";
2062
- maxFee: string | number | bigint;
2063
- halfAmount: string | number | bigint;
2064
- } | {
2065
- owner: string;
2066
- beneficiary?: string | undefined;
2067
- type: "RoutingFee";
2068
- feeContracts: Record<string, any>;
2069
- } | {
2070
- owner: string;
2071
- beneficiary?: string | undefined;
2072
- type: "CrossCollateralRoutingFee";
2073
- feeContracts: Record<string, Record<string, any>>;
2074
- } | undefined;
2075
- routerType?: import("../ica/types.js").IcaRouterType | undefined;
2076
- commitmentIsm?: {
2077
- owner: string;
2078
- ownerOverrides?: Record<string, string> | undefined;
2079
- type: "offchainLookupIsm";
2080
- urls: string[];
2081
- } | undefined;
2082
- feeTokenApprovals?: {
2083
- feeToken: string;
2084
- hook: string;
2085
- }[] | undefined;
2086
- } | undefined;
2087
- permit2?: string | undefined;
2088
- deployQuotedCalls?: boolean | undefined;
2089
- contractVersion?: string | undefined;
2090
- }>;
2091
- export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
2092
- owner: z.ZodString;
2093
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2094
- defaultIsm: z.ZodType<IsmConfig, z.ZodTypeDef, unknown>;
2095
- defaultHook: z.ZodUnion<[z.ZodString, z.ZodObject<{
2096
- owner: z.ZodString;
2097
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2098
- } & {
2099
- type: z.ZodLiteral<"protocolFee">;
2100
- beneficiary: z.ZodString;
2101
- maxProtocolFee: z.ZodString;
2102
- protocolFee: z.ZodString;
2103
- }, "strip", z.ZodTypeAny, {
2104
- owner: string;
2105
- ownerOverrides?: Record<string, string> | undefined;
2106
- type: "protocolFee";
2107
- beneficiary: string;
2108
- maxProtocolFee: string;
2109
- protocolFee: string;
2110
- }, {
2111
- owner: string;
2112
- ownerOverrides?: Record<string, string> | undefined;
2113
- type: "protocolFee";
2114
- beneficiary: string;
2115
- maxProtocolFee: string;
2116
- protocolFee: string;
2117
- }>, z.ZodObject<{
2118
- owner: z.ZodString;
2119
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2120
- } & {
2121
- paused: z.ZodBoolean;
2122
- } & {
2123
- type: z.ZodLiteral<"pausableHook">;
2124
- }, "strip", z.ZodTypeAny, {
2125
- owner: string;
2126
- ownerOverrides?: Record<string, string> | undefined;
2127
- paused: boolean;
2128
- type: "pausableHook";
2129
- }, {
2130
- owner: string;
2131
- ownerOverrides?: Record<string, string> | undefined;
2132
- paused: boolean;
2133
- type: "pausableHook";
2134
- }>, z.ZodObject<{
2135
- owner: z.ZodString;
2136
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2137
- } & {
2138
- type: z.ZodLiteral<"opStackHook">;
2139
- nativeBridge: z.ZodString;
2140
- destinationChain: z.ZodString;
2141
- }, "strip", z.ZodTypeAny, {
2142
- owner: string;
2143
- ownerOverrides?: Record<string, string> | undefined;
2144
- type: "opStackHook";
2145
- nativeBridge: string;
2146
- destinationChain: string;
2147
- }, {
2148
- owner: string;
2149
- ownerOverrides?: Record<string, string> | undefined;
2150
- type: "opStackHook";
2151
- nativeBridge: string;
2152
- destinationChain: string;
2153
- }>, z.ZodObject<{
2154
- type: z.ZodLiteral<"merkleTreeHook">;
2155
- }, "strip", z.ZodTypeAny, {
2156
- type: "merkleTreeHook";
2157
- }, {
2158
- type: "merkleTreeHook";
2159
- }>, z.ZodObject<{
2160
- owner: z.ZodString;
2161
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2162
- } & {
2163
- type: z.ZodLiteral<"interchainGasPaymaster">;
2164
- beneficiary: z.ZodString;
2165
- oracleKey: z.ZodString;
2166
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
2167
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
2168
- gasPrice: z.ZodString;
2169
- tokenExchangeRate: z.ZodString;
2170
- } & {
2171
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
2172
- } & {
2173
- typicalCost: z.ZodOptional<z.ZodObject<{
2174
- handleGasAmount: z.ZodNumber;
2175
- totalGasAmount: z.ZodNumber;
2176
- totalUsdCost: z.ZodNumber;
2177
- }, "strip", z.ZodTypeAny, {
2178
- handleGasAmount: number;
2179
- totalGasAmount: number;
2180
- totalUsdCost: number;
2181
- }, {
2182
- handleGasAmount: number;
2183
- totalGasAmount: number;
2184
- totalUsdCost: number;
2185
- }>>;
2186
- }, "strip", z.ZodTypeAny, {
2187
- gasPrice: string;
2188
- tokenExchangeRate: string;
2189
- tokenDecimals?: number | undefined;
2190
- typicalCost?: {
2191
- handleGasAmount: number;
2192
- totalGasAmount: number;
2193
- totalUsdCost: number;
2194
- } | undefined;
2195
- }, {
2196
- gasPrice: string;
2197
- tokenExchangeRate: string;
2198
- tokenDecimals?: number | undefined;
2199
- typicalCost?: {
2200
- handleGasAmount: number;
2201
- totalGasAmount: number;
2202
- totalUsdCost: number;
2203
- } | undefined;
2204
- }>>;
2205
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
2206
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2207
- contractVersion: z.ZodOptional<z.ZodString>;
2208
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
2209
- gasPrice: z.ZodString;
2210
- tokenExchangeRate: z.ZodString;
2211
- } & {
2212
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
2213
- }, "strip", z.ZodTypeAny, {
2214
- gasPrice: string;
2215
- tokenExchangeRate: string;
2216
- tokenDecimals?: number | undefined;
2217
- }, {
2218
- gasPrice: string;
2219
- tokenExchangeRate: string;
2220
- tokenDecimals?: number | undefined;
2221
- }>>>>;
2222
- }, "strip", z.ZodTypeAny, {
2223
- owner: string;
2224
- ownerOverrides?: Record<string, string> | undefined;
2225
- type: "interchainGasPaymaster";
2226
- beneficiary: string;
2227
- oracleKey: string;
2228
- overhead: Record<string, number>;
2229
- oracleConfig: Record<string, {
2230
- gasPrice: string;
2231
- tokenExchangeRate: string;
2232
- tokenDecimals?: number | undefined;
2233
- typicalCost?: {
2234
- handleGasAmount: number;
2235
- totalGasAmount: number;
2236
- totalUsdCost: number;
2237
- } | undefined;
2238
- }>;
2239
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
2240
- quoteSigners?: string[] | undefined;
2241
- contractVersion?: string | undefined;
2242
- tokenOracleConfig?: Record<string, Record<string, {
2243
- gasPrice: string;
2244
- tokenExchangeRate: string;
2245
- tokenDecimals?: number | undefined;
2246
- }>> | undefined;
2247
- }, {
2248
- owner: string;
2249
- ownerOverrides?: Record<string, string> | undefined;
2250
- type: "interchainGasPaymaster";
2251
- beneficiary: string;
2252
- oracleKey: string;
2253
- overhead: Record<string, number>;
2254
- oracleConfig: Record<string, {
2255
- gasPrice: string;
2256
- tokenExchangeRate: string;
2257
- tokenDecimals?: number | undefined;
2258
- typicalCost?: {
2259
- handleGasAmount: number;
2260
- totalGasAmount: number;
2261
- totalUsdCost: number;
2262
- } | undefined;
2263
- }>;
2264
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
2265
- quoteSigners?: string[] | undefined;
2266
- contractVersion?: string | undefined;
2267
- tokenOracleConfig?: Record<string, Record<string, {
2268
- gasPrice: string;
2269
- tokenExchangeRate: string;
2270
- tokenDecimals?: number | undefined;
2271
- }>> | undefined;
2272
- }>, 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<{
2273
- type: z.ZodLiteral<"defaultHook">;
2274
- }, "strip", z.ZodTypeAny, {
2275
- type: "defaultHook";
2276
- }, {
2277
- type: "defaultHook";
2278
- }>, z.ZodObject<{
2279
- type: z.ZodLiteral<"ccipHook">;
2280
- destinationChain: z.ZodString;
2281
- }, "strip", z.ZodTypeAny, {
2282
- type: "ccipHook";
2283
- destinationChain: string;
2284
- }, {
2285
- type: "ccipHook";
2286
- destinationChain: string;
2287
- }>, z.ZodObject<{
2288
- type: z.ZodLiteral<"cctpHook">;
2289
- address: z.ZodString;
2290
- }, "strip", z.ZodTypeAny, {
2291
- type: "cctpHook";
2292
- address: string;
2293
- }, {
2294
- type: "cctpHook";
2295
- address: string;
2296
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2297
- owner: z.ZodString;
2298
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2299
- } & {
2300
- type: z.ZodLiteral<"rateLimitedHook">;
2301
- maxCapacity: z.ZodString;
2302
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
2303
- }, "strip", z.ZodTypeAny, {
2304
- owner: string;
2305
- ownerOverrides?: Record<string, string> | undefined;
2306
- type: "rateLimitedHook";
2307
- maxCapacity: string;
2308
- duration: bigint;
2309
- }, {
2310
- owner: string;
2311
- ownerOverrides?: Record<string, string> | undefined;
2312
- type: "rateLimitedHook";
2313
- maxCapacity: string;
2314
- duration?: string | number | bigint | undefined;
2315
- }>, {
2316
- owner: string;
2317
- ownerOverrides?: Record<string, string> | undefined;
2318
- type: "rateLimitedHook";
2319
- maxCapacity: string;
2320
- duration: bigint;
2321
- }, {
2322
- owner: string;
2323
- ownerOverrides?: Record<string, string> | undefined;
2324
- type: "rateLimitedHook";
2325
- maxCapacity: string;
2326
- duration?: string | number | bigint | undefined;
2327
- }>, {
2328
- owner: string;
2329
- ownerOverrides?: Record<string, string> | undefined;
2330
- type: "rateLimitedHook";
2331
- maxCapacity: string;
2332
- duration: bigint;
2333
- }, {
2334
- owner: string;
2335
- ownerOverrides?: Record<string, string> | undefined;
2336
- type: "rateLimitedHook";
2337
- maxCapacity: string;
2338
- duration?: string | number | bigint | undefined;
2339
- }>, {
2340
- owner: string;
2341
- ownerOverrides?: Record<string, string> | undefined;
2342
- type: "rateLimitedHook";
2343
- maxCapacity: string;
2344
- duration: bigint;
2345
- }, {
2346
- owner: string;
2347
- ownerOverrides?: Record<string, string> | undefined;
2348
- type: "rateLimitedHook";
2349
- maxCapacity: string;
2350
- duration?: string | number | bigint | undefined;
2351
- }>, z.ZodObject<{
2352
- type: z.ZodLiteral<"unknownHook">;
2353
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2354
- type: z.ZodLiteral<"unknownHook">;
2355
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2356
- type: z.ZodLiteral<"unknownHook">;
2357
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2358
- type: z.ZodLiteral<"predicateHook">;
2359
- address: z.ZodString;
2360
- }, "strip", z.ZodTypeAny, {
2361
- type: "predicateHook";
2362
- address: string;
2363
- }, {
2364
- type: "predicateHook";
2365
- address: string;
2366
- }>]>;
2367
- requiredHook: z.ZodUnion<[z.ZodString, z.ZodObject<{
2368
- owner: z.ZodString;
2369
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2370
- } & {
2371
- type: z.ZodLiteral<"protocolFee">;
2372
- beneficiary: z.ZodString;
2373
- maxProtocolFee: z.ZodString;
2374
- protocolFee: z.ZodString;
2375
- }, "strip", z.ZodTypeAny, {
2376
- owner: string;
2377
- ownerOverrides?: Record<string, string> | undefined;
2378
- type: "protocolFee";
2379
- beneficiary: string;
2380
- maxProtocolFee: string;
2381
- protocolFee: string;
2382
- }, {
2383
- owner: string;
2384
- ownerOverrides?: Record<string, string> | undefined;
2385
- type: "protocolFee";
2386
- beneficiary: string;
2387
- maxProtocolFee: string;
2388
- protocolFee: string;
2389
- }>, z.ZodObject<{
2390
- owner: z.ZodString;
2391
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2392
- } & {
2393
- paused: z.ZodBoolean;
2394
- } & {
2395
- type: z.ZodLiteral<"pausableHook">;
2396
- }, "strip", z.ZodTypeAny, {
2397
- owner: string;
2398
- ownerOverrides?: Record<string, string> | undefined;
2399
- paused: boolean;
2400
- type: "pausableHook";
2401
- }, {
2402
- owner: string;
2403
- ownerOverrides?: Record<string, string> | undefined;
2404
- paused: boolean;
2405
- type: "pausableHook";
2406
- }>, z.ZodObject<{
2407
- owner: z.ZodString;
2408
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2409
- } & {
2410
- type: z.ZodLiteral<"opStackHook">;
2411
- nativeBridge: z.ZodString;
2412
- destinationChain: z.ZodString;
2413
- }, "strip", z.ZodTypeAny, {
2414
- owner: string;
2415
- ownerOverrides?: Record<string, string> | undefined;
2416
- type: "opStackHook";
2417
- nativeBridge: string;
2418
- destinationChain: string;
2419
- }, {
2420
- owner: string;
2421
- ownerOverrides?: Record<string, string> | undefined;
2422
- type: "opStackHook";
2423
- nativeBridge: string;
2424
- destinationChain: string;
2425
- }>, z.ZodObject<{
2426
- type: z.ZodLiteral<"merkleTreeHook">;
2427
- }, "strip", z.ZodTypeAny, {
2428
- type: "merkleTreeHook";
2429
- }, {
2430
- type: "merkleTreeHook";
2431
- }>, z.ZodObject<{
2432
- owner: z.ZodString;
2433
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2434
- } & {
2435
- type: z.ZodLiteral<"interchainGasPaymaster">;
2436
- beneficiary: z.ZodString;
2437
- oracleKey: z.ZodString;
2438
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
2439
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
2440
- gasPrice: z.ZodString;
2441
- tokenExchangeRate: z.ZodString;
2442
- } & {
2443
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
2444
- } & {
2445
- typicalCost: z.ZodOptional<z.ZodObject<{
2446
- handleGasAmount: z.ZodNumber;
2447
- totalGasAmount: z.ZodNumber;
2448
- totalUsdCost: z.ZodNumber;
2449
- }, "strip", z.ZodTypeAny, {
2450
- handleGasAmount: number;
2451
- totalGasAmount: number;
2452
- totalUsdCost: number;
2453
- }, {
2454
- handleGasAmount: number;
2455
- totalGasAmount: number;
2456
- totalUsdCost: number;
2457
- }>>;
2458
- }, "strip", z.ZodTypeAny, {
2459
- gasPrice: string;
2460
- tokenExchangeRate: string;
2461
- tokenDecimals?: number | undefined;
2462
- typicalCost?: {
2463
- handleGasAmount: number;
2464
- totalGasAmount: number;
2465
- totalUsdCost: number;
2466
- } | undefined;
2467
- }, {
2468
- gasPrice: string;
2469
- tokenExchangeRate: string;
2470
- tokenDecimals?: number | undefined;
2471
- typicalCost?: {
2472
- handleGasAmount: number;
2473
- totalGasAmount: number;
2474
- totalUsdCost: number;
2475
- } | undefined;
2476
- }>>;
2477
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
2478
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2479
- contractVersion: z.ZodOptional<z.ZodString>;
2480
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
2481
- gasPrice: z.ZodString;
2482
- tokenExchangeRate: z.ZodString;
2483
- } & {
2484
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
2485
- }, "strip", z.ZodTypeAny, {
2486
- gasPrice: string;
2487
- tokenExchangeRate: string;
2488
- tokenDecimals?: number | undefined;
2489
- }, {
2490
- gasPrice: string;
2491
- tokenExchangeRate: string;
2492
- tokenDecimals?: number | undefined;
2493
- }>>>>;
2494
- }, "strip", z.ZodTypeAny, {
2495
- owner: string;
2496
- ownerOverrides?: Record<string, string> | undefined;
2497
- type: "interchainGasPaymaster";
2498
- beneficiary: string;
2499
- oracleKey: string;
2500
- overhead: Record<string, number>;
2501
- oracleConfig: Record<string, {
2502
- gasPrice: string;
2503
- tokenExchangeRate: string;
2504
- tokenDecimals?: number | undefined;
2505
- typicalCost?: {
2506
- handleGasAmount: number;
2507
- totalGasAmount: number;
2508
- totalUsdCost: number;
2509
- } | undefined;
2510
- }>;
2511
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
2512
- quoteSigners?: string[] | undefined;
2513
- contractVersion?: string | undefined;
2514
- tokenOracleConfig?: Record<string, Record<string, {
2515
- gasPrice: string;
2516
- tokenExchangeRate: string;
2517
- tokenDecimals?: number | undefined;
2518
- }>> | undefined;
2519
- }, {
2520
- owner: string;
2521
- ownerOverrides?: Record<string, string> | undefined;
2522
- type: "interchainGasPaymaster";
2523
- beneficiary: string;
2524
- oracleKey: string;
2525
- overhead: Record<string, number>;
2526
- oracleConfig: Record<string, {
2527
- gasPrice: string;
2528
- tokenExchangeRate: string;
2529
- tokenDecimals?: number | undefined;
2530
- typicalCost?: {
2531
- handleGasAmount: number;
2532
- totalGasAmount: number;
2533
- totalUsdCost: number;
2534
- } | undefined;
2535
- }>;
2536
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
2537
- quoteSigners?: string[] | undefined;
2538
- contractVersion?: string | undefined;
2539
- tokenOracleConfig?: Record<string, Record<string, {
2540
- gasPrice: string;
2541
- tokenExchangeRate: string;
2542
- tokenDecimals?: number | undefined;
2543
- }>> | undefined;
2544
- }>, 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<{
2545
- type: z.ZodLiteral<"defaultHook">;
2546
- }, "strip", z.ZodTypeAny, {
2547
- type: "defaultHook";
2548
- }, {
2549
- type: "defaultHook";
2550
- }>, z.ZodObject<{
2551
- type: z.ZodLiteral<"ccipHook">;
2552
- destinationChain: z.ZodString;
2553
- }, "strip", z.ZodTypeAny, {
2554
- type: "ccipHook";
2555
- destinationChain: string;
2556
- }, {
2557
- type: "ccipHook";
2558
- destinationChain: string;
2559
- }>, z.ZodObject<{
2560
- type: z.ZodLiteral<"cctpHook">;
2561
- address: z.ZodString;
2562
- }, "strip", z.ZodTypeAny, {
2563
- type: "cctpHook";
2564
- address: string;
2565
- }, {
2566
- type: "cctpHook";
2567
- address: string;
2568
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2569
- owner: z.ZodString;
2570
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2571
- } & {
2572
- type: z.ZodLiteral<"rateLimitedHook">;
2573
- maxCapacity: z.ZodString;
2574
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
2575
- }, "strip", z.ZodTypeAny, {
2576
- owner: string;
2577
- ownerOverrides?: Record<string, string> | undefined;
2578
- type: "rateLimitedHook";
2579
- maxCapacity: string;
2580
- duration: bigint;
2581
- }, {
2582
- owner: string;
2583
- ownerOverrides?: Record<string, string> | undefined;
2584
- type: "rateLimitedHook";
2585
- maxCapacity: string;
2586
- duration?: string | number | bigint | undefined;
2587
- }>, {
2588
- owner: string;
2589
- ownerOverrides?: Record<string, string> | undefined;
2590
- type: "rateLimitedHook";
2591
- maxCapacity: string;
2592
- duration: bigint;
2593
- }, {
2594
- owner: string;
2595
- ownerOverrides?: Record<string, string> | undefined;
2596
- type: "rateLimitedHook";
2597
- maxCapacity: string;
2598
- duration?: string | number | bigint | undefined;
2599
- }>, {
2600
- owner: string;
2601
- ownerOverrides?: Record<string, string> | undefined;
2602
- type: "rateLimitedHook";
2603
- maxCapacity: string;
2604
- duration: bigint;
2605
- }, {
2606
- owner: string;
2607
- ownerOverrides?: Record<string, string> | undefined;
2608
- type: "rateLimitedHook";
2609
- maxCapacity: string;
2610
- duration?: string | number | bigint | undefined;
2611
- }>, {
2612
- owner: string;
2613
- ownerOverrides?: Record<string, string> | undefined;
2614
- type: "rateLimitedHook";
2615
- maxCapacity: string;
2616
- duration: bigint;
2617
- }, {
2618
- owner: string;
2619
- ownerOverrides?: Record<string, string> | undefined;
2620
- type: "rateLimitedHook";
2621
- maxCapacity: string;
2622
- duration?: string | number | bigint | undefined;
2623
- }>, z.ZodObject<{
2624
- type: z.ZodLiteral<"unknownHook">;
2625
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2626
- type: z.ZodLiteral<"unknownHook">;
2627
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2628
- type: z.ZodLiteral<"unknownHook">;
2629
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2630
- type: z.ZodLiteral<"predicateHook">;
2631
- address: z.ZodString;
2632
- }, "strip", z.ZodTypeAny, {
2633
- type: "predicateHook";
2634
- address: string;
2635
- }, {
2636
- type: "predicateHook";
2637
- address: string;
2638
- }>]>;
785
+ beneficiary?: string | undefined;
786
+ maxFee?: string | number | bigint | undefined;
787
+ halfAmount?: string | number | bigint | undefined;
788
+ quoteSigners?: string[] | undefined;
789
+ type: "OffchainQuotedLinearFee";
790
+ bps?: string | number | undefined;
791
+ } | {
792
+ owner: string;
793
+ beneficiary?: string | undefined;
794
+ type: "ProgressiveFee";
795
+ maxFee: string | number | bigint;
796
+ halfAmount: string | number | bigint;
797
+ } | {
798
+ owner: string;
799
+ beneficiary?: string | undefined;
800
+ type: "RegressiveFee";
801
+ maxFee: string | number | bigint;
802
+ halfAmount: string | number | bigint;
803
+ } | {
804
+ owner: string;
805
+ beneficiary?: string | undefined;
806
+ type: "RoutingFee";
807
+ feeContracts: Record<string, any>;
808
+ } | {
809
+ owner: string;
810
+ beneficiary?: string | undefined;
811
+ type: "CrossCollateralRoutingFee";
812
+ feeContracts: Record<string, Record<string, any>>;
813
+ } | undefined;
814
+ routerType?: import("../ica/types.js").IcaRouterType | undefined;
815
+ commitmentIsm?: {
816
+ owner: string;
817
+ ownerOverrides?: Record<string, string> | undefined;
818
+ type: "offchainLookupIsm";
819
+ urls: string[];
820
+ } | undefined;
821
+ feeTokenApprovals?: {
822
+ feeToken: string;
823
+ hook: string;
824
+ }[] | undefined;
825
+ } | undefined;
826
+ permit2?: string | undefined;
827
+ deployQuotedCalls?: boolean | undefined;
828
+ contractVersion?: string | undefined;
829
+ }>;
830
+ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
831
+ owner: z.ZodString;
832
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
833
+ defaultIsm: z.ZodType<IsmConfig, z.ZodTypeDef, unknown>;
834
+ defaultHook: z.ZodType<HookConfig, z.ZodTypeDef, unknown>;
835
+ requiredHook: z.ZodType<HookConfig, z.ZodTypeDef, unknown>;
2639
836
  proxyAdmin: z.ZodOptional<z.ZodObject<{
2640
837
  owner: z.ZodString;
2641
838
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2659,278 +856,7 @@ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
2659
856
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2660
857
  } & {
2661
858
  mailbox: z.ZodString;
2662
- hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2663
- owner: z.ZodString;
2664
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2665
- } & {
2666
- type: z.ZodLiteral<"protocolFee">;
2667
- beneficiary: z.ZodString;
2668
- maxProtocolFee: z.ZodString;
2669
- protocolFee: z.ZodString;
2670
- }, "strip", z.ZodTypeAny, {
2671
- owner: string;
2672
- ownerOverrides?: Record<string, string> | undefined;
2673
- type: "protocolFee";
2674
- beneficiary: string;
2675
- maxProtocolFee: string;
2676
- protocolFee: string;
2677
- }, {
2678
- owner: string;
2679
- ownerOverrides?: Record<string, string> | undefined;
2680
- type: "protocolFee";
2681
- beneficiary: string;
2682
- maxProtocolFee: string;
2683
- protocolFee: string;
2684
- }>, z.ZodObject<{
2685
- owner: z.ZodString;
2686
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2687
- } & {
2688
- paused: z.ZodBoolean;
2689
- } & {
2690
- type: z.ZodLiteral<"pausableHook">;
2691
- }, "strip", z.ZodTypeAny, {
2692
- owner: string;
2693
- ownerOverrides?: Record<string, string> | undefined;
2694
- paused: boolean;
2695
- type: "pausableHook";
2696
- }, {
2697
- owner: string;
2698
- ownerOverrides?: Record<string, string> | undefined;
2699
- paused: boolean;
2700
- type: "pausableHook";
2701
- }>, z.ZodObject<{
2702
- owner: z.ZodString;
2703
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2704
- } & {
2705
- type: z.ZodLiteral<"opStackHook">;
2706
- nativeBridge: z.ZodString;
2707
- destinationChain: z.ZodString;
2708
- }, "strip", z.ZodTypeAny, {
2709
- owner: string;
2710
- ownerOverrides?: Record<string, string> | undefined;
2711
- type: "opStackHook";
2712
- nativeBridge: string;
2713
- destinationChain: string;
2714
- }, {
2715
- owner: string;
2716
- ownerOverrides?: Record<string, string> | undefined;
2717
- type: "opStackHook";
2718
- nativeBridge: string;
2719
- destinationChain: string;
2720
- }>, z.ZodObject<{
2721
- type: z.ZodLiteral<"merkleTreeHook">;
2722
- }, "strip", z.ZodTypeAny, {
2723
- type: "merkleTreeHook";
2724
- }, {
2725
- type: "merkleTreeHook";
2726
- }>, z.ZodObject<{
2727
- owner: z.ZodString;
2728
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2729
- } & {
2730
- type: z.ZodLiteral<"interchainGasPaymaster">;
2731
- beneficiary: z.ZodString;
2732
- oracleKey: z.ZodString;
2733
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
2734
- oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
2735
- gasPrice: z.ZodString;
2736
- tokenExchangeRate: z.ZodString;
2737
- } & {
2738
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
2739
- } & {
2740
- typicalCost: z.ZodOptional<z.ZodObject<{
2741
- handleGasAmount: z.ZodNumber;
2742
- totalGasAmount: z.ZodNumber;
2743
- totalUsdCost: z.ZodNumber;
2744
- }, "strip", z.ZodTypeAny, {
2745
- handleGasAmount: number;
2746
- totalGasAmount: number;
2747
- totalUsdCost: number;
2748
- }, {
2749
- handleGasAmount: number;
2750
- totalGasAmount: number;
2751
- totalUsdCost: number;
2752
- }>>;
2753
- }, "strip", z.ZodTypeAny, {
2754
- gasPrice: string;
2755
- tokenExchangeRate: string;
2756
- tokenDecimals?: number | undefined;
2757
- typicalCost?: {
2758
- handleGasAmount: number;
2759
- totalGasAmount: number;
2760
- totalUsdCost: number;
2761
- } | undefined;
2762
- }, {
2763
- gasPrice: string;
2764
- tokenExchangeRate: string;
2765
- tokenDecimals?: number | undefined;
2766
- typicalCost?: {
2767
- handleGasAmount: number;
2768
- totalGasAmount: number;
2769
- totalUsdCost: number;
2770
- } | undefined;
2771
- }>>;
2772
- igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof import("../hook/types.js").IgpVersion>>;
2773
- quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2774
- contractVersion: z.ZodOptional<z.ZodString>;
2775
- tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
2776
- gasPrice: z.ZodString;
2777
- tokenExchangeRate: z.ZodString;
2778
- } & {
2779
- tokenDecimals: z.ZodOptional<z.ZodNumber>;
2780
- }, "strip", z.ZodTypeAny, {
2781
- gasPrice: string;
2782
- tokenExchangeRate: string;
2783
- tokenDecimals?: number | undefined;
2784
- }, {
2785
- gasPrice: string;
2786
- tokenExchangeRate: string;
2787
- tokenDecimals?: number | undefined;
2788
- }>>>>;
2789
- }, "strip", z.ZodTypeAny, {
2790
- owner: string;
2791
- ownerOverrides?: Record<string, string> | undefined;
2792
- type: "interchainGasPaymaster";
2793
- beneficiary: string;
2794
- oracleKey: string;
2795
- overhead: Record<string, number>;
2796
- oracleConfig: Record<string, {
2797
- gasPrice: string;
2798
- tokenExchangeRate: string;
2799
- tokenDecimals?: number | undefined;
2800
- typicalCost?: {
2801
- handleGasAmount: number;
2802
- totalGasAmount: number;
2803
- totalUsdCost: number;
2804
- } | undefined;
2805
- }>;
2806
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
2807
- quoteSigners?: string[] | undefined;
2808
- contractVersion?: string | undefined;
2809
- tokenOracleConfig?: Record<string, Record<string, {
2810
- gasPrice: string;
2811
- tokenExchangeRate: string;
2812
- tokenDecimals?: number | undefined;
2813
- }>> | undefined;
2814
- }, {
2815
- owner: string;
2816
- ownerOverrides?: Record<string, string> | undefined;
2817
- type: "interchainGasPaymaster";
2818
- beneficiary: string;
2819
- oracleKey: string;
2820
- overhead: Record<string, number>;
2821
- oracleConfig: Record<string, {
2822
- gasPrice: string;
2823
- tokenExchangeRate: string;
2824
- tokenDecimals?: number | undefined;
2825
- typicalCost?: {
2826
- handleGasAmount: number;
2827
- totalGasAmount: number;
2828
- totalUsdCost: number;
2829
- } | undefined;
2830
- }>;
2831
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
2832
- quoteSigners?: string[] | undefined;
2833
- contractVersion?: string | undefined;
2834
- tokenOracleConfig?: Record<string, Record<string, {
2835
- gasPrice: string;
2836
- tokenExchangeRate: string;
2837
- tokenDecimals?: number | undefined;
2838
- }>> | undefined;
2839
- }>, 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<{
2840
- type: z.ZodLiteral<"defaultHook">;
2841
- }, "strip", z.ZodTypeAny, {
2842
- type: "defaultHook";
2843
- }, {
2844
- type: "defaultHook";
2845
- }>, z.ZodObject<{
2846
- type: z.ZodLiteral<"ccipHook">;
2847
- destinationChain: z.ZodString;
2848
- }, "strip", z.ZodTypeAny, {
2849
- type: "ccipHook";
2850
- destinationChain: string;
2851
- }, {
2852
- type: "ccipHook";
2853
- destinationChain: string;
2854
- }>, z.ZodObject<{
2855
- type: z.ZodLiteral<"cctpHook">;
2856
- address: z.ZodString;
2857
- }, "strip", z.ZodTypeAny, {
2858
- type: "cctpHook";
2859
- address: string;
2860
- }, {
2861
- type: "cctpHook";
2862
- address: string;
2863
- }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2864
- owner: z.ZodString;
2865
- ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2866
- } & {
2867
- type: z.ZodLiteral<"rateLimitedHook">;
2868
- maxCapacity: z.ZodString;
2869
- duration: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
2870
- }, "strip", z.ZodTypeAny, {
2871
- owner: string;
2872
- ownerOverrides?: Record<string, string> | undefined;
2873
- type: "rateLimitedHook";
2874
- maxCapacity: string;
2875
- duration: bigint;
2876
- }, {
2877
- owner: string;
2878
- ownerOverrides?: Record<string, string> | undefined;
2879
- type: "rateLimitedHook";
2880
- maxCapacity: string;
2881
- duration?: string | number | bigint | undefined;
2882
- }>, {
2883
- owner: string;
2884
- ownerOverrides?: Record<string, string> | undefined;
2885
- type: "rateLimitedHook";
2886
- maxCapacity: string;
2887
- duration: bigint;
2888
- }, {
2889
- owner: string;
2890
- ownerOverrides?: Record<string, string> | undefined;
2891
- type: "rateLimitedHook";
2892
- maxCapacity: string;
2893
- duration?: string | number | bigint | undefined;
2894
- }>, {
2895
- owner: string;
2896
- ownerOverrides?: Record<string, string> | undefined;
2897
- type: "rateLimitedHook";
2898
- maxCapacity: string;
2899
- duration: bigint;
2900
- }, {
2901
- owner: string;
2902
- ownerOverrides?: Record<string, string> | undefined;
2903
- type: "rateLimitedHook";
2904
- maxCapacity: string;
2905
- duration?: string | number | bigint | undefined;
2906
- }>, {
2907
- owner: string;
2908
- ownerOverrides?: Record<string, string> | undefined;
2909
- type: "rateLimitedHook";
2910
- maxCapacity: string;
2911
- duration: bigint;
2912
- }, {
2913
- owner: string;
2914
- ownerOverrides?: Record<string, string> | undefined;
2915
- type: "rateLimitedHook";
2916
- maxCapacity: string;
2917
- duration?: string | number | bigint | undefined;
2918
- }>, z.ZodObject<{
2919
- type: z.ZodLiteral<"unknownHook">;
2920
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2921
- type: z.ZodLiteral<"unknownHook">;
2922
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2923
- type: z.ZodLiteral<"unknownHook">;
2924
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2925
- type: z.ZodLiteral<"predicateHook">;
2926
- address: z.ZodString;
2927
- }, "strip", z.ZodTypeAny, {
2928
- type: "predicateHook";
2929
- address: string;
2930
- }, {
2931
- type: "predicateHook";
2932
- address: string;
2933
- }>]>>;
859
+ hook: z.ZodOptional<z.ZodType<HookConfig, z.ZodTypeDef, unknown>>;
2934
860
  interchainSecurityModule: z.ZodOptional<z.ZodType<IsmConfig, z.ZodTypeDef, unknown>>;
2935
861
  } & {
2936
862
  foreignDeployment: z.ZodOptional<z.ZodString>;
@@ -3247,71 +1173,7 @@ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
3247
1173
  };
3248
1174
  } | undefined;
3249
1175
  mailbox: string;
3250
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3251
- owner: string;
3252
- ownerOverrides?: Record<string, string> | undefined;
3253
- type: "protocolFee";
3254
- beneficiary: string;
3255
- maxProtocolFee: string;
3256
- protocolFee: string;
3257
- } | {
3258
- owner: string;
3259
- ownerOverrides?: Record<string, string> | undefined;
3260
- paused: boolean;
3261
- type: "pausableHook";
3262
- } | {
3263
- owner: string;
3264
- ownerOverrides?: Record<string, string> | undefined;
3265
- type: "opStackHook";
3266
- nativeBridge: string;
3267
- destinationChain: string;
3268
- } | {
3269
- type: "merkleTreeHook";
3270
- } | {
3271
- owner: string;
3272
- ownerOverrides?: Record<string, string> | undefined;
3273
- type: "interchainGasPaymaster";
3274
- beneficiary: string;
3275
- oracleKey: string;
3276
- overhead: Record<string, number>;
3277
- oracleConfig: Record<string, {
3278
- gasPrice: string;
3279
- tokenExchangeRate: string;
3280
- tokenDecimals?: number | undefined;
3281
- typicalCost?: {
3282
- handleGasAmount: number;
3283
- totalGasAmount: number;
3284
- totalUsdCost: number;
3285
- } | undefined;
3286
- }>;
3287
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
3288
- quoteSigners?: string[] | undefined;
3289
- contractVersion?: string | undefined;
3290
- tokenOracleConfig?: Record<string, Record<string, {
3291
- gasPrice: string;
3292
- tokenExchangeRate: string;
3293
- tokenDecimals?: number | undefined;
3294
- }>> | undefined;
3295
- } | {
3296
- type: "defaultHook";
3297
- } | {
3298
- type: "ccipHook";
3299
- destinationChain: string;
3300
- } | {
3301
- type: "cctpHook";
3302
- address: string;
3303
- } | {
3304
- owner: string;
3305
- ownerOverrides?: Record<string, string> | undefined;
3306
- type: "rateLimitedHook";
3307
- maxCapacity: string;
3308
- duration: bigint;
3309
- } | {
3310
- type: "predicateHook";
3311
- address: string;
3312
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
3313
- type: z.ZodLiteral<"unknownHook">;
3314
- }, z.ZodTypeAny, "passthrough"> | undefined;
1176
+ hook?: HookConfig | undefined;
3315
1177
  interchainSecurityModule?: IsmConfig | undefined;
3316
1178
  foreignDeployment?: string | undefined;
3317
1179
  remoteRouters?: Record<string | number, {
@@ -3449,136 +1311,8 @@ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
3449
1311
  owner: string;
3450
1312
  ownerOverrides?: Record<string, string> | undefined;
3451
1313
  defaultIsm: IsmConfig;
3452
- defaultHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3453
- owner: string;
3454
- ownerOverrides?: Record<string, string> | undefined;
3455
- type: "protocolFee";
3456
- beneficiary: string;
3457
- maxProtocolFee: string;
3458
- protocolFee: string;
3459
- } | {
3460
- owner: string;
3461
- ownerOverrides?: Record<string, string> | undefined;
3462
- paused: boolean;
3463
- type: "pausableHook";
3464
- } | {
3465
- owner: string;
3466
- ownerOverrides?: Record<string, string> | undefined;
3467
- type: "opStackHook";
3468
- nativeBridge: string;
3469
- destinationChain: string;
3470
- } | {
3471
- type: "merkleTreeHook";
3472
- } | {
3473
- owner: string;
3474
- ownerOverrides?: Record<string, string> | undefined;
3475
- type: "interchainGasPaymaster";
3476
- beneficiary: string;
3477
- oracleKey: string;
3478
- overhead: Record<string, number>;
3479
- oracleConfig: Record<string, {
3480
- gasPrice: string;
3481
- tokenExchangeRate: string;
3482
- tokenDecimals?: number | undefined;
3483
- typicalCost?: {
3484
- handleGasAmount: number;
3485
- totalGasAmount: number;
3486
- totalUsdCost: number;
3487
- } | undefined;
3488
- }>;
3489
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
3490
- quoteSigners?: string[] | undefined;
3491
- contractVersion?: string | undefined;
3492
- tokenOracleConfig?: Record<string, Record<string, {
3493
- gasPrice: string;
3494
- tokenExchangeRate: string;
3495
- tokenDecimals?: number | undefined;
3496
- }>> | undefined;
3497
- } | {
3498
- type: "defaultHook";
3499
- } | {
3500
- type: "ccipHook";
3501
- destinationChain: string;
3502
- } | {
3503
- type: "cctpHook";
3504
- address: string;
3505
- } | {
3506
- owner: string;
3507
- ownerOverrides?: Record<string, string> | undefined;
3508
- type: "rateLimitedHook";
3509
- maxCapacity: string;
3510
- duration: bigint;
3511
- } | {
3512
- type: "predicateHook";
3513
- address: string;
3514
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
3515
- type: z.ZodLiteral<"unknownHook">;
3516
- }, z.ZodTypeAny, "passthrough">;
3517
- requiredHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3518
- owner: string;
3519
- ownerOverrides?: Record<string, string> | undefined;
3520
- type: "protocolFee";
3521
- beneficiary: string;
3522
- maxProtocolFee: string;
3523
- protocolFee: string;
3524
- } | {
3525
- owner: string;
3526
- ownerOverrides?: Record<string, string> | undefined;
3527
- paused: boolean;
3528
- type: "pausableHook";
3529
- } | {
3530
- owner: string;
3531
- ownerOverrides?: Record<string, string> | undefined;
3532
- type: "opStackHook";
3533
- nativeBridge: string;
3534
- destinationChain: string;
3535
- } | {
3536
- type: "merkleTreeHook";
3537
- } | {
3538
- owner: string;
3539
- ownerOverrides?: Record<string, string> | undefined;
3540
- type: "interchainGasPaymaster";
3541
- beneficiary: string;
3542
- oracleKey: string;
3543
- overhead: Record<string, number>;
3544
- oracleConfig: Record<string, {
3545
- gasPrice: string;
3546
- tokenExchangeRate: string;
3547
- tokenDecimals?: number | undefined;
3548
- typicalCost?: {
3549
- handleGasAmount: number;
3550
- totalGasAmount: number;
3551
- totalUsdCost: number;
3552
- } | undefined;
3553
- }>;
3554
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
3555
- quoteSigners?: string[] | undefined;
3556
- contractVersion?: string | undefined;
3557
- tokenOracleConfig?: Record<string, Record<string, {
3558
- gasPrice: string;
3559
- tokenExchangeRate: string;
3560
- tokenDecimals?: number | undefined;
3561
- }>> | undefined;
3562
- } | {
3563
- type: "defaultHook";
3564
- } | {
3565
- type: "ccipHook";
3566
- destinationChain: string;
3567
- } | {
3568
- type: "cctpHook";
3569
- address: string;
3570
- } | {
3571
- owner: string;
3572
- ownerOverrides?: Record<string, string> | undefined;
3573
- type: "rateLimitedHook";
3574
- maxCapacity: string;
3575
- duration: bigint;
3576
- } | {
3577
- type: "predicateHook";
3578
- address: string;
3579
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
3580
- type: z.ZodLiteral<"unknownHook">;
3581
- }, z.ZodTypeAny, "passthrough">;
1314
+ defaultHook: HookConfig;
1315
+ requiredHook: HookConfig;
3582
1316
  proxyAdmin?: {
3583
1317
  owner: string;
3584
1318
  ownerOverrides?: Record<string, string> | undefined;
@@ -3598,71 +1332,7 @@ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
3598
1332
  };
3599
1333
  } | undefined;
3600
1334
  mailbox: string;
3601
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3602
- owner: string;
3603
- ownerOverrides?: Record<string, string> | undefined;
3604
- type: "protocolFee";
3605
- beneficiary: string;
3606
- maxProtocolFee: string;
3607
- protocolFee: string;
3608
- } | {
3609
- owner: string;
3610
- ownerOverrides?: Record<string, string> | undefined;
3611
- paused: boolean;
3612
- type: "pausableHook";
3613
- } | {
3614
- owner: string;
3615
- ownerOverrides?: Record<string, string> | undefined;
3616
- type: "opStackHook";
3617
- nativeBridge: string;
3618
- destinationChain: string;
3619
- } | {
3620
- type: "merkleTreeHook";
3621
- } | {
3622
- owner: string;
3623
- ownerOverrides?: Record<string, string> | undefined;
3624
- type: "interchainGasPaymaster";
3625
- beneficiary: string;
3626
- oracleKey: string;
3627
- overhead: Record<string, number>;
3628
- oracleConfig: Record<string, {
3629
- gasPrice: string;
3630
- tokenExchangeRate: string;
3631
- tokenDecimals?: number | undefined;
3632
- typicalCost?: {
3633
- handleGasAmount: number;
3634
- totalGasAmount: number;
3635
- totalUsdCost: number;
3636
- } | undefined;
3637
- }>;
3638
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
3639
- quoteSigners?: string[] | undefined;
3640
- contractVersion?: string | undefined;
3641
- tokenOracleConfig?: Record<string, Record<string, {
3642
- gasPrice: string;
3643
- tokenExchangeRate: string;
3644
- tokenDecimals?: number | undefined;
3645
- }>> | undefined;
3646
- } | {
3647
- type: "defaultHook";
3648
- } | {
3649
- type: "ccipHook";
3650
- destinationChain: string;
3651
- } | {
3652
- type: "cctpHook";
3653
- address: string;
3654
- } | {
3655
- owner: string;
3656
- ownerOverrides?: Record<string, string> | undefined;
3657
- type: "rateLimitedHook";
3658
- maxCapacity: string;
3659
- duration: bigint;
3660
- } | {
3661
- type: "predicateHook";
3662
- address: string;
3663
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
3664
- type: z.ZodLiteral<"unknownHook">;
3665
- }, z.ZodTypeAny, "passthrough"> | undefined;
1335
+ hook?: HookConfig | undefined;
3666
1336
  interchainSecurityModule?: IsmConfig | undefined;
3667
1337
  foreignDeployment?: string | undefined;
3668
1338
  remoteRouters?: Record<string | number, {
@@ -3815,136 +1485,8 @@ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
3815
1485
  owner: string;
3816
1486
  ownerOverrides?: Record<string, string> | undefined;
3817
1487
  defaultIsm: IsmConfig;
3818
- defaultHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3819
- owner: string;
3820
- ownerOverrides?: Record<string, string> | undefined;
3821
- type: "protocolFee";
3822
- beneficiary: string;
3823
- maxProtocolFee: string;
3824
- protocolFee: string;
3825
- } | {
3826
- owner: string;
3827
- ownerOverrides?: Record<string, string> | undefined;
3828
- paused: boolean;
3829
- type: "pausableHook";
3830
- } | {
3831
- owner: string;
3832
- ownerOverrides?: Record<string, string> | undefined;
3833
- type: "opStackHook";
3834
- nativeBridge: string;
3835
- destinationChain: string;
3836
- } | {
3837
- type: "merkleTreeHook";
3838
- } | {
3839
- owner: string;
3840
- ownerOverrides?: Record<string, string> | undefined;
3841
- type: "interchainGasPaymaster";
3842
- beneficiary: string;
3843
- oracleKey: string;
3844
- overhead: Record<string, number>;
3845
- oracleConfig: Record<string, {
3846
- gasPrice: string;
3847
- tokenExchangeRate: string;
3848
- tokenDecimals?: number | undefined;
3849
- typicalCost?: {
3850
- handleGasAmount: number;
3851
- totalGasAmount: number;
3852
- totalUsdCost: number;
3853
- } | undefined;
3854
- }>;
3855
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
3856
- quoteSigners?: string[] | undefined;
3857
- contractVersion?: string | undefined;
3858
- tokenOracleConfig?: Record<string, Record<string, {
3859
- gasPrice: string;
3860
- tokenExchangeRate: string;
3861
- tokenDecimals?: number | undefined;
3862
- }>> | undefined;
3863
- } | {
3864
- type: "defaultHook";
3865
- } | {
3866
- type: "ccipHook";
3867
- destinationChain: string;
3868
- } | {
3869
- type: "cctpHook";
3870
- address: string;
3871
- } | {
3872
- owner: string;
3873
- ownerOverrides?: Record<string, string> | undefined;
3874
- type: "rateLimitedHook";
3875
- maxCapacity: string;
3876
- duration: bigint;
3877
- } | {
3878
- type: "predicateHook";
3879
- address: string;
3880
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
3881
- type: z.ZodLiteral<"unknownHook">;
3882
- }, z.ZodTypeAny, "passthrough">;
3883
- requiredHook: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3884
- owner: string;
3885
- ownerOverrides?: Record<string, string> | undefined;
3886
- type: "protocolFee";
3887
- beneficiary: string;
3888
- maxProtocolFee: string;
3889
- protocolFee: string;
3890
- } | {
3891
- owner: string;
3892
- ownerOverrides?: Record<string, string> | undefined;
3893
- paused: boolean;
3894
- type: "pausableHook";
3895
- } | {
3896
- owner: string;
3897
- ownerOverrides?: Record<string, string> | undefined;
3898
- type: "opStackHook";
3899
- nativeBridge: string;
3900
- destinationChain: string;
3901
- } | {
3902
- type: "merkleTreeHook";
3903
- } | {
3904
- owner: string;
3905
- ownerOverrides?: Record<string, string> | undefined;
3906
- type: "interchainGasPaymaster";
3907
- beneficiary: string;
3908
- oracleKey: string;
3909
- overhead: Record<string, number>;
3910
- oracleConfig: Record<string, {
3911
- gasPrice: string;
3912
- tokenExchangeRate: string;
3913
- tokenDecimals?: number | undefined;
3914
- typicalCost?: {
3915
- handleGasAmount: number;
3916
- totalGasAmount: number;
3917
- totalUsdCost: number;
3918
- } | undefined;
3919
- }>;
3920
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
3921
- quoteSigners?: string[] | undefined;
3922
- contractVersion?: string | undefined;
3923
- tokenOracleConfig?: Record<string, Record<string, {
3924
- gasPrice: string;
3925
- tokenExchangeRate: string;
3926
- tokenDecimals?: number | undefined;
3927
- }>> | undefined;
3928
- } | {
3929
- type: "defaultHook";
3930
- } | {
3931
- type: "ccipHook";
3932
- destinationChain: string;
3933
- } | {
3934
- type: "cctpHook";
3935
- address: string;
3936
- } | {
3937
- owner: string;
3938
- ownerOverrides?: Record<string, string> | undefined;
3939
- type: "rateLimitedHook";
3940
- maxCapacity: string;
3941
- duration: bigint;
3942
- } | {
3943
- type: "predicateHook";
3944
- address: string;
3945
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
3946
- type: z.ZodLiteral<"unknownHook">;
3947
- }, z.ZodTypeAny, "passthrough">;
1488
+ defaultHook: HookConfig;
1489
+ requiredHook: HookConfig;
3948
1490
  proxyAdmin?: {
3949
1491
  owner: string;
3950
1492
  ownerOverrides?: Record<string, string> | undefined;
@@ -3964,71 +1506,7 @@ export declare const DerivedCoreConfigSchema: z.ZodEffects<z.ZodObject<{
3964
1506
  };
3965
1507
  } | undefined;
3966
1508
  mailbox: string;
3967
- hook?: string | import("../hook/types.js").AggregationHookConfig | import("../hook/types.js").AmountRoutingHookConfig | import("../hook/types.js").ArbL2ToL1HookConfig | {
3968
- owner: string;
3969
- ownerOverrides?: Record<string, string> | undefined;
3970
- type: "protocolFee";
3971
- beneficiary: string;
3972
- maxProtocolFee: string;
3973
- protocolFee: string;
3974
- } | {
3975
- owner: string;
3976
- ownerOverrides?: Record<string, string> | undefined;
3977
- paused: boolean;
3978
- type: "pausableHook";
3979
- } | {
3980
- owner: string;
3981
- ownerOverrides?: Record<string, string> | undefined;
3982
- type: "opStackHook";
3983
- nativeBridge: string;
3984
- destinationChain: string;
3985
- } | {
3986
- type: "merkleTreeHook";
3987
- } | {
3988
- owner: string;
3989
- ownerOverrides?: Record<string, string> | undefined;
3990
- type: "interchainGasPaymaster";
3991
- beneficiary: string;
3992
- oracleKey: string;
3993
- overhead: Record<string, number>;
3994
- oracleConfig: Record<string, {
3995
- gasPrice: string;
3996
- tokenExchangeRate: string;
3997
- tokenDecimals?: number | undefined;
3998
- typicalCost?: {
3999
- handleGasAmount: number;
4000
- totalGasAmount: number;
4001
- totalUsdCost: number;
4002
- } | undefined;
4003
- }>;
4004
- igpVersion?: import("../hook/types.js").IgpVersion | undefined;
4005
- quoteSigners?: string[] | undefined;
4006
- contractVersion?: string | undefined;
4007
- tokenOracleConfig?: Record<string, Record<string, {
4008
- gasPrice: string;
4009
- tokenExchangeRate: string;
4010
- tokenDecimals?: number | undefined;
4011
- }>> | undefined;
4012
- } | {
4013
- type: "defaultHook";
4014
- } | {
4015
- type: "ccipHook";
4016
- destinationChain: string;
4017
- } | {
4018
- type: "cctpHook";
4019
- address: string;
4020
- } | {
4021
- owner: string;
4022
- ownerOverrides?: Record<string, string> | undefined;
4023
- type: "rateLimitedHook";
4024
- maxCapacity: string;
4025
- duration: bigint;
4026
- } | {
4027
- type: "predicateHook";
4028
- address: string;
4029
- } | import("../hook/types.js").DomainRoutingHookConfig | import("../hook/types.js").FallbackRoutingHookConfig | z.objectOutputType<{
4030
- type: z.ZodLiteral<"unknownHook">;
4031
- }, z.ZodTypeAny, "passthrough"> | undefined;
1509
+ hook?: HookConfig | undefined;
4032
1510
  interchainSecurityModule?: IsmConfig | undefined;
4033
1511
  foreignDeployment?: string | undefined;
4034
1512
  remoteRouters?: Record<string | number, {