@hyperlane-xyz/sdk 8.8.1 → 8.9.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 (143) hide show
  1. package/dist/block-explorer/etherscan.d.ts +41 -0
  2. package/dist/block-explorer/etherscan.d.ts.map +1 -0
  3. package/dist/block-explorer/etherscan.js +53 -0
  4. package/dist/block-explorer/etherscan.js.map +1 -0
  5. package/dist/ccip/HyperlaneCCIPDeployer.d.ts +18 -0
  6. package/dist/ccip/HyperlaneCCIPDeployer.d.ts.map +1 -0
  7. package/dist/ccip/HyperlaneCCIPDeployer.js +122 -0
  8. package/dist/ccip/HyperlaneCCIPDeployer.js.map +1 -0
  9. package/dist/ccip/consts.d.ts +24 -0
  10. package/dist/ccip/consts.d.ts.map +1 -0
  11. package/dist/ccip/consts.js +691 -0
  12. package/dist/ccip/consts.js.map +1 -0
  13. package/dist/ccip/utils.d.ts +46 -0
  14. package/dist/ccip/utils.d.ts.map +1 -0
  15. package/dist/ccip/utils.js +95 -0
  16. package/dist/ccip/utils.js.map +1 -0
  17. package/dist/consts/multisigIsm.d.ts.map +1 -1
  18. package/dist/consts/multisigIsm.js +27 -9
  19. package/dist/consts/multisigIsm.js.map +1 -1
  20. package/dist/contracts/contracts.d.ts +2 -2
  21. package/dist/contracts/contracts.d.ts.map +1 -1
  22. package/dist/contracts/contracts.js +4 -13
  23. package/dist/contracts/contracts.js.map +1 -1
  24. package/dist/core/HyperlaneRelayer.d.ts +43 -3
  25. package/dist/core/HyperlaneRelayer.d.ts.map +1 -1
  26. package/dist/core/types.d.ts +3558 -2040
  27. package/dist/core/types.d.ts.map +1 -1
  28. package/dist/deploy/proxy.d.ts.map +1 -1
  29. package/dist/deploy/proxy.js +4 -0
  30. package/dist/deploy/proxy.js.map +1 -1
  31. package/dist/deploy/verify/utils.d.ts.map +1 -1
  32. package/dist/deploy/verify/utils.js +3 -9
  33. package/dist/deploy/verify/utils.js.map +1 -1
  34. package/dist/hook/EvmHookModule.d.ts +12 -4
  35. package/dist/hook/EvmHookModule.d.ts.map +1 -1
  36. package/dist/hook/EvmHookModule.hardhat-test.js +2 -106
  37. package/dist/hook/EvmHookModule.hardhat-test.js.map +1 -1
  38. package/dist/hook/EvmHookModule.js +38 -10
  39. package/dist/hook/EvmHookModule.js.map +1 -1
  40. package/dist/hook/EvmHookReader.d.ts +7 -1
  41. package/dist/hook/EvmHookReader.d.ts.map +1 -1
  42. package/dist/hook/EvmHookReader.js +69 -4
  43. package/dist/hook/EvmHookReader.js.map +1 -1
  44. package/dist/hook/EvmHookReader.test.js +50 -1
  45. package/dist/hook/EvmHookReader.test.js.map +1 -1
  46. package/dist/hook/HyperlaneHookDeployer.d.ts +4 -2
  47. package/dist/hook/HyperlaneHookDeployer.d.ts.map +1 -1
  48. package/dist/hook/HyperlaneHookDeployer.js +34 -5
  49. package/dist/hook/HyperlaneHookDeployer.js.map +1 -1
  50. package/dist/hook/contracts.d.ts +4 -1
  51. package/dist/hook/contracts.d.ts.map +1 -1
  52. package/dist/hook/contracts.js +4 -1
  53. package/dist/hook/contracts.js.map +1 -1
  54. package/dist/hook/types.d.ts +2012 -3
  55. package/dist/hook/types.d.ts.map +1 -1
  56. package/dist/hook/types.js +28 -0
  57. package/dist/hook/types.js.map +1 -1
  58. package/dist/index.d.ts +11 -5
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +10 -4
  61. package/dist/index.js.map +1 -1
  62. package/dist/ism/EvmIsmModule.d.ts +4 -2
  63. package/dist/ism/EvmIsmModule.d.ts.map +1 -1
  64. package/dist/ism/EvmIsmModule.hardhat-test.js +10 -71
  65. package/dist/ism/EvmIsmModule.hardhat-test.js.map +1 -1
  66. package/dist/ism/EvmIsmModule.js +4 -4
  67. package/dist/ism/EvmIsmModule.js.map +1 -1
  68. package/dist/ism/EvmIsmReader.d.ts +1 -0
  69. package/dist/ism/EvmIsmReader.d.ts.map +1 -1
  70. package/dist/ism/EvmIsmReader.js +45 -7
  71. package/dist/ism/EvmIsmReader.js.map +1 -1
  72. package/dist/ism/EvmIsmReader.test.js +4 -1
  73. package/dist/ism/EvmIsmReader.test.js.map +1 -1
  74. package/dist/ism/HyperlaneIsmFactory.d.ts +9 -4
  75. package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -1
  76. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +15 -0
  77. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -1
  78. package/dist/ism/HyperlaneIsmFactory.js +43 -4
  79. package/dist/ism/HyperlaneIsmFactory.js.map +1 -1
  80. package/dist/ism/metadata/builder.d.ts.map +1 -1
  81. package/dist/ism/metadata/builder.js +1 -0
  82. package/dist/ism/metadata/builder.js.map +1 -1
  83. package/dist/ism/metadata/routing.d.ts.map +1 -1
  84. package/dist/ism/metadata/routing.js +8 -2
  85. package/dist/ism/metadata/routing.js.map +1 -1
  86. package/dist/ism/types.d.ts +34 -5
  87. package/dist/ism/types.d.ts.map +1 -1
  88. package/dist/ism/types.js +15 -0
  89. package/dist/ism/types.js.map +1 -1
  90. package/dist/ism/utils.d.ts.map +1 -1
  91. package/dist/ism/utils.js +30 -2
  92. package/dist/ism/utils.js.map +1 -1
  93. package/dist/metadata/agentConfig.d.ts +276 -276
  94. package/dist/metadata/deploymentArtifacts.d.ts +2 -2
  95. package/dist/router/types.d.ts +129 -9
  96. package/dist/router/types.d.ts.map +1 -1
  97. package/dist/test/testUtils.d.ts +8 -0
  98. package/dist/test/testUtils.d.ts.map +1 -1
  99. package/dist/test/testUtils.js +191 -1
  100. package/dist/test/testUtils.js.map +1 -1
  101. package/dist/token/EvmERC20WarpModule.d.ts +4 -1
  102. package/dist/token/EvmERC20WarpModule.d.ts.map +1 -1
  103. package/dist/token/EvmERC20WarpModule.js +12 -8
  104. package/dist/token/EvmERC20WarpModule.js.map +1 -1
  105. package/dist/token/EvmERC20WarpRouteReader.d.ts +4 -3
  106. package/dist/token/EvmERC20WarpRouteReader.d.ts.map +1 -1
  107. package/dist/token/EvmERC20WarpRouteReader.hardhat-test.js +72 -3
  108. package/dist/token/EvmERC20WarpRouteReader.hardhat-test.js.map +1 -1
  109. package/dist/token/EvmERC20WarpRouteReader.js +84 -15
  110. package/dist/token/EvmERC20WarpRouteReader.js.map +1 -1
  111. package/dist/token/adapters/EvmTokenAdapter.d.ts +49 -15
  112. package/dist/token/adapters/EvmTokenAdapter.d.ts.map +1 -1
  113. package/dist/token/adapters/EvmTokenAdapter.js +152 -42
  114. package/dist/token/adapters/EvmTokenAdapter.js.map +1 -1
  115. package/dist/token/adapters/ITokenAdapter.d.ts +19 -0
  116. package/dist/token/adapters/ITokenAdapter.d.ts.map +1 -1
  117. package/dist/token/checker.d.ts +4 -1
  118. package/dist/token/checker.d.ts.map +1 -1
  119. package/dist/token/checker.js +33 -5
  120. package/dist/token/checker.js.map +1 -1
  121. package/dist/token/config.d.ts +1 -0
  122. package/dist/token/config.d.ts.map +1 -1
  123. package/dist/token/config.js +1 -0
  124. package/dist/token/config.js.map +1 -1
  125. package/dist/token/configUtils.d.ts +10 -0
  126. package/dist/token/configUtils.d.ts.map +1 -0
  127. package/dist/token/configUtils.js +48 -0
  128. package/dist/token/configUtils.js.map +1 -0
  129. package/dist/token/deploy.d.ts.map +1 -1
  130. package/dist/token/deploy.hardhat-test.js +69 -6
  131. package/dist/token/deploy.hardhat-test.js.map +1 -1
  132. package/dist/token/deploy.js +6 -4
  133. package/dist/token/deploy.js.map +1 -1
  134. package/dist/token/types.d.ts +1333 -220
  135. package/dist/token/types.d.ts.map +1 -1
  136. package/dist/token/types.js +117 -2
  137. package/dist/token/types.js.map +1 -1
  138. package/dist/token/xerc20.d.ts +13 -0
  139. package/dist/token/xerc20.d.ts.map +1 -0
  140. package/dist/token/xerc20.js +174 -0
  141. package/dist/token/xerc20.js.map +1 -0
  142. package/dist/warp/types.d.ts +14 -14
  143. package/package.json +3 -3
@@ -12,7 +12,10 @@ export declare enum OnchainHookType {
12
12
  PROTOCOL_FEE = 8,
13
13
  LAYER_ZERO_V1 = 9,
14
14
  RATE_LIMITED = 10,
15
- ARB_L2_TO_L1 = 11
15
+ ARB_L2_TO_L1 = 11,
16
+ OP_L2_TO_L1 = 12,
17
+ MAILBOX_DEFAULT_HOOK = 13,
18
+ AMOUNT_ROUTING = 14
16
19
  }
17
20
  export declare enum HookType {
18
21
  CUSTOM = "custom",
@@ -23,8 +26,11 @@ export declare enum HookType {
23
26
  OP_STACK = "opStackHook",
24
27
  ROUTING = "domainRoutingHook",
25
28
  FALLBACK_ROUTING = "fallbackRoutingHook",
29
+ AMOUNT_ROUTING = "amountRoutingHook",
26
30
  PAUSABLE = "pausableHook",
27
- ARB_L2_TO_L1 = "arbL2ToL1Hook"
31
+ ARB_L2_TO_L1 = "arbL2ToL1Hook",
32
+ MAILBOX_DEFAULT = "defaultHook",
33
+ CCIP = "ccipHook"
28
34
  }
29
35
  export type MerkleTreeHookConfig = z.infer<typeof MerkleTreeSchema>;
30
36
  export type IgpHookConfig = z.infer<typeof IgpSchema>;
@@ -32,6 +38,8 @@ export type ProtocolFeeHookConfig = z.infer<typeof ProtocolFeeSchema>;
32
38
  export type PausableHookConfig = z.infer<typeof PausableHookSchema>;
33
39
  export type OpStackHookConfig = z.infer<typeof OpStackHookSchema>;
34
40
  export type ArbL2ToL1HookConfig = z.infer<typeof ArbL2ToL1HookSchema>;
41
+ export type MailboxDefaultHookConfig = z.infer<typeof MailboxDefaultHookSchema>;
42
+ export type CCIPHookConfig = z.infer<typeof CCIPHookSchema>;
35
43
  export type AggregationHookConfig = {
36
44
  type: HookType.AGGREGATION;
37
45
  hooks: Array<HookConfig>;
@@ -46,6 +54,12 @@ export type FallbackRoutingHookConfig = RoutingHookConfig & {
46
54
  type: HookType.FALLBACK_ROUTING;
47
55
  fallback: HookConfig;
48
56
  };
57
+ export type AmountRoutingHookConfig = {
58
+ type: HookType.AMOUNT_ROUTING;
59
+ threshold: number;
60
+ lowerHook: HookConfig;
61
+ upperHook: HookConfig;
62
+ };
49
63
  export type HookConfig = z.infer<typeof HookConfigSchema>;
50
64
  export declare const MUTABLE_HOOK_TYPE: HookType[];
51
65
  export declare const ProtocolFeeSchema: z.ZodObject<{
@@ -93,6 +107,13 @@ export declare const PausableHookSchema: z.ZodObject<{
93
107
  paused: boolean;
94
108
  ownerOverrides?: Record<string, string> | undefined;
95
109
  }>;
110
+ export declare const MailboxDefaultHookSchema: z.ZodObject<{
111
+ type: z.ZodLiteral<HookType.MAILBOX_DEFAULT>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ type: HookType.MAILBOX_DEFAULT;
114
+ }, {
115
+ type: HookType.MAILBOX_DEFAULT;
116
+ }>;
96
117
  export declare const OpStackHookSchema: z.ZodObject<{
97
118
  owner: z.ZodString;
98
119
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -178,7 +199,18 @@ export declare const IgpSchema: z.ZodObject<{
178
199
  }>;
179
200
  export declare const DomainRoutingHookConfigSchema: z.ZodSchema<DomainRoutingHookConfig>;
180
201
  export declare const FallbackRoutingHookConfigSchema: z.ZodSchema<FallbackRoutingHookConfig>;
202
+ export declare const AmountRoutingHookConfigSchema: z.ZodSchema<AmountRoutingHookConfig>;
181
203
  export declare const AggregationHookConfigSchema: z.ZodSchema<AggregationHookConfig>;
204
+ export declare const CCIPHookSchema: z.ZodObject<{
205
+ type: z.ZodLiteral<HookType.CCIP>;
206
+ destinationChain: z.ZodString;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: HookType.CCIP;
209
+ destinationChain: string;
210
+ }, {
211
+ type: HookType.CCIP;
212
+ destinationChain: string;
213
+ }>;
182
214
  export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
183
215
  owner: z.ZodString;
184
216
  ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -283,7 +315,7 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
283
315
  tokenDecimals?: number | undefined;
284
316
  }>;
285
317
  ownerOverrides?: Record<string, string> | undefined;
286
- }>, z.ZodType<DomainRoutingHookConfig, z.ZodTypeDef, DomainRoutingHookConfig>, z.ZodType<FallbackRoutingHookConfig, z.ZodTypeDef, FallbackRoutingHookConfig>, z.ZodType<AggregationHookConfig, z.ZodTypeDef, AggregationHookConfig>, z.ZodObject<{
318
+ }>, z.ZodType<DomainRoutingHookConfig, z.ZodTypeDef, DomainRoutingHookConfig>, z.ZodType<FallbackRoutingHookConfig, z.ZodTypeDef, FallbackRoutingHookConfig>, z.ZodType<AmountRoutingHookConfig, z.ZodTypeDef, AmountRoutingHookConfig>, z.ZodType<AggregationHookConfig, z.ZodTypeDef, AggregationHookConfig>, z.ZodObject<{
287
319
  type: z.ZodLiteral<HookType.ARB_L2_TO_L1>;
288
320
  arbSys: z.ZodString;
289
321
  bridge: z.ZodOptional<z.ZodString>;
@@ -301,5 +333,1982 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
301
333
  arbSys: string;
302
334
  bridge?: string | undefined;
303
335
  childHook?: any;
336
+ }>, z.ZodObject<{
337
+ type: z.ZodLiteral<HookType.MAILBOX_DEFAULT>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: HookType.MAILBOX_DEFAULT;
340
+ }, {
341
+ type: HookType.MAILBOX_DEFAULT;
342
+ }>, z.ZodObject<{
343
+ type: z.ZodLiteral<HookType.CCIP>;
344
+ destinationChain: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ type: HookType.CCIP;
347
+ destinationChain: string;
348
+ }, {
349
+ type: HookType.CCIP;
350
+ destinationChain: string;
304
351
  }>]>;
352
+ export declare const HooksConfigSchema: z.ZodObject<{
353
+ default: z.ZodUnion<[z.ZodString, z.ZodObject<{
354
+ owner: z.ZodString;
355
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
356
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
357
+ beneficiary: z.ZodString;
358
+ maxProtocolFee: z.ZodString;
359
+ protocolFee: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: HookType.PROTOCOL_FEE;
362
+ owner: string;
363
+ protocolFee: string;
364
+ beneficiary: string;
365
+ maxProtocolFee: string;
366
+ ownerOverrides?: Record<string, string> | undefined;
367
+ }, {
368
+ type: HookType.PROTOCOL_FEE;
369
+ owner: string;
370
+ protocolFee: string;
371
+ beneficiary: string;
372
+ maxProtocolFee: string;
373
+ ownerOverrides?: Record<string, string> | undefined;
374
+ }>, z.ZodObject<{
375
+ owner: z.ZodString;
376
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
377
+ paused: z.ZodBoolean;
378
+ type: z.ZodLiteral<HookType.PAUSABLE>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ type: HookType.PAUSABLE;
381
+ owner: string;
382
+ paused: boolean;
383
+ ownerOverrides?: Record<string, string> | undefined;
384
+ }, {
385
+ type: HookType.PAUSABLE;
386
+ owner: string;
387
+ paused: boolean;
388
+ ownerOverrides?: Record<string, string> | undefined;
389
+ }>, z.ZodObject<{
390
+ owner: z.ZodString;
391
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
392
+ type: z.ZodLiteral<HookType.OP_STACK>;
393
+ nativeBridge: z.ZodString;
394
+ destinationChain: z.ZodString;
395
+ }, "strip", z.ZodTypeAny, {
396
+ type: HookType.OP_STACK;
397
+ owner: string;
398
+ nativeBridge: string;
399
+ destinationChain: string;
400
+ ownerOverrides?: Record<string, string> | undefined;
401
+ }, {
402
+ type: HookType.OP_STACK;
403
+ owner: string;
404
+ nativeBridge: string;
405
+ destinationChain: string;
406
+ ownerOverrides?: Record<string, string> | undefined;
407
+ }>, z.ZodObject<{
408
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ type: HookType.MERKLE_TREE;
411
+ }, {
412
+ type: HookType.MERKLE_TREE;
413
+ }>, z.ZodObject<{
414
+ owner: z.ZodString;
415
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
416
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
417
+ beneficiary: z.ZodString;
418
+ oracleKey: z.ZodString;
419
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
420
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
421
+ gasPrice: z.ZodString;
422
+ tokenExchangeRate: z.ZodString;
423
+ tokenDecimals: z.ZodOptional<z.ZodNumber>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ gasPrice: string;
426
+ tokenExchangeRate: string;
427
+ tokenDecimals?: number | undefined;
428
+ }, {
429
+ gasPrice: string;
430
+ tokenExchangeRate: string;
431
+ tokenDecimals?: number | undefined;
432
+ }>>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
435
+ owner: string;
436
+ beneficiary: string;
437
+ oracleKey: string;
438
+ overhead: Record<string, number>;
439
+ oracleConfig: Record<string, {
440
+ gasPrice: string;
441
+ tokenExchangeRate: string;
442
+ tokenDecimals?: number | undefined;
443
+ }>;
444
+ ownerOverrides?: Record<string, string> | undefined;
445
+ }, {
446
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
447
+ owner: string;
448
+ beneficiary: string;
449
+ oracleKey: string;
450
+ overhead: Record<string, number>;
451
+ oracleConfig: Record<string, {
452
+ gasPrice: string;
453
+ tokenExchangeRate: string;
454
+ tokenDecimals?: number | undefined;
455
+ }>;
456
+ ownerOverrides?: Record<string, string> | undefined;
457
+ }>, z.ZodType<DomainRoutingHookConfig, z.ZodTypeDef, DomainRoutingHookConfig>, z.ZodType<FallbackRoutingHookConfig, z.ZodTypeDef, FallbackRoutingHookConfig>, z.ZodType<AmountRoutingHookConfig, z.ZodTypeDef, AmountRoutingHookConfig>, z.ZodType<AggregationHookConfig, z.ZodTypeDef, AggregationHookConfig>, z.ZodObject<{
458
+ type: z.ZodLiteral<HookType.ARB_L2_TO_L1>;
459
+ arbSys: z.ZodString;
460
+ bridge: z.ZodOptional<z.ZodString>;
461
+ destinationChain: z.ZodString;
462
+ childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ type: HookType.ARB_L2_TO_L1;
465
+ destinationChain: string;
466
+ arbSys: string;
467
+ bridge?: string | undefined;
468
+ childHook?: any;
469
+ }, {
470
+ type: HookType.ARB_L2_TO_L1;
471
+ destinationChain: string;
472
+ arbSys: string;
473
+ bridge?: string | undefined;
474
+ childHook?: any;
475
+ }>, z.ZodObject<{
476
+ type: z.ZodLiteral<HookType.MAILBOX_DEFAULT>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ type: HookType.MAILBOX_DEFAULT;
479
+ }, {
480
+ type: HookType.MAILBOX_DEFAULT;
481
+ }>, z.ZodObject<{
482
+ type: z.ZodLiteral<HookType.CCIP>;
483
+ destinationChain: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ type: HookType.CCIP;
486
+ destinationChain: string;
487
+ }, {
488
+ type: HookType.CCIP;
489
+ destinationChain: string;
490
+ }>]>;
491
+ required: z.ZodUnion<[z.ZodString, z.ZodObject<{
492
+ owner: z.ZodString;
493
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
494
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
495
+ beneficiary: z.ZodString;
496
+ maxProtocolFee: z.ZodString;
497
+ protocolFee: z.ZodString;
498
+ }, "strip", z.ZodTypeAny, {
499
+ type: HookType.PROTOCOL_FEE;
500
+ owner: string;
501
+ protocolFee: string;
502
+ beneficiary: string;
503
+ maxProtocolFee: string;
504
+ ownerOverrides?: Record<string, string> | undefined;
505
+ }, {
506
+ type: HookType.PROTOCOL_FEE;
507
+ owner: string;
508
+ protocolFee: string;
509
+ beneficiary: string;
510
+ maxProtocolFee: string;
511
+ ownerOverrides?: Record<string, string> | undefined;
512
+ }>, z.ZodObject<{
513
+ owner: z.ZodString;
514
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
515
+ paused: z.ZodBoolean;
516
+ type: z.ZodLiteral<HookType.PAUSABLE>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: HookType.PAUSABLE;
519
+ owner: string;
520
+ paused: boolean;
521
+ ownerOverrides?: Record<string, string> | undefined;
522
+ }, {
523
+ type: HookType.PAUSABLE;
524
+ owner: string;
525
+ paused: boolean;
526
+ ownerOverrides?: Record<string, string> | undefined;
527
+ }>, z.ZodObject<{
528
+ owner: z.ZodString;
529
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
530
+ type: z.ZodLiteral<HookType.OP_STACK>;
531
+ nativeBridge: z.ZodString;
532
+ destinationChain: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ type: HookType.OP_STACK;
535
+ owner: string;
536
+ nativeBridge: string;
537
+ destinationChain: string;
538
+ ownerOverrides?: Record<string, string> | undefined;
539
+ }, {
540
+ type: HookType.OP_STACK;
541
+ owner: string;
542
+ nativeBridge: string;
543
+ destinationChain: string;
544
+ ownerOverrides?: Record<string, string> | undefined;
545
+ }>, z.ZodObject<{
546
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ type: HookType.MERKLE_TREE;
549
+ }, {
550
+ type: HookType.MERKLE_TREE;
551
+ }>, z.ZodObject<{
552
+ owner: z.ZodString;
553
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
554
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
555
+ beneficiary: z.ZodString;
556
+ oracleKey: z.ZodString;
557
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
558
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
559
+ gasPrice: z.ZodString;
560
+ tokenExchangeRate: z.ZodString;
561
+ tokenDecimals: z.ZodOptional<z.ZodNumber>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ gasPrice: string;
564
+ tokenExchangeRate: string;
565
+ tokenDecimals?: number | undefined;
566
+ }, {
567
+ gasPrice: string;
568
+ tokenExchangeRate: string;
569
+ tokenDecimals?: number | undefined;
570
+ }>>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
573
+ owner: string;
574
+ beneficiary: string;
575
+ oracleKey: string;
576
+ overhead: Record<string, number>;
577
+ oracleConfig: Record<string, {
578
+ gasPrice: string;
579
+ tokenExchangeRate: string;
580
+ tokenDecimals?: number | undefined;
581
+ }>;
582
+ ownerOverrides?: Record<string, string> | undefined;
583
+ }, {
584
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
585
+ owner: string;
586
+ beneficiary: string;
587
+ oracleKey: string;
588
+ overhead: Record<string, number>;
589
+ oracleConfig: Record<string, {
590
+ gasPrice: string;
591
+ tokenExchangeRate: string;
592
+ tokenDecimals?: number | undefined;
593
+ }>;
594
+ ownerOverrides?: Record<string, string> | undefined;
595
+ }>, z.ZodType<DomainRoutingHookConfig, z.ZodTypeDef, DomainRoutingHookConfig>, z.ZodType<FallbackRoutingHookConfig, z.ZodTypeDef, FallbackRoutingHookConfig>, z.ZodType<AmountRoutingHookConfig, z.ZodTypeDef, AmountRoutingHookConfig>, z.ZodType<AggregationHookConfig, z.ZodTypeDef, AggregationHookConfig>, z.ZodObject<{
596
+ type: z.ZodLiteral<HookType.ARB_L2_TO_L1>;
597
+ arbSys: z.ZodString;
598
+ bridge: z.ZodOptional<z.ZodString>;
599
+ destinationChain: z.ZodString;
600
+ childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: HookType.ARB_L2_TO_L1;
603
+ destinationChain: string;
604
+ arbSys: string;
605
+ bridge?: string | undefined;
606
+ childHook?: any;
607
+ }, {
608
+ type: HookType.ARB_L2_TO_L1;
609
+ destinationChain: string;
610
+ arbSys: string;
611
+ bridge?: string | undefined;
612
+ childHook?: any;
613
+ }>, z.ZodObject<{
614
+ type: z.ZodLiteral<HookType.MAILBOX_DEFAULT>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ type: HookType.MAILBOX_DEFAULT;
617
+ }, {
618
+ type: HookType.MAILBOX_DEFAULT;
619
+ }>, z.ZodObject<{
620
+ type: z.ZodLiteral<HookType.CCIP>;
621
+ destinationChain: z.ZodString;
622
+ }, "strip", z.ZodTypeAny, {
623
+ type: HookType.CCIP;
624
+ destinationChain: string;
625
+ }, {
626
+ type: HookType.CCIP;
627
+ destinationChain: string;
628
+ }>]>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ default: string | {
631
+ type: HookType.MERKLE_TREE;
632
+ } | {
633
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
634
+ owner: string;
635
+ beneficiary: string;
636
+ oracleKey: string;
637
+ overhead: Record<string, number>;
638
+ oracleConfig: Record<string, {
639
+ gasPrice: string;
640
+ tokenExchangeRate: string;
641
+ tokenDecimals?: number | undefined;
642
+ }>;
643
+ ownerOverrides?: Record<string, string> | undefined;
644
+ } | {
645
+ type: HookType.PROTOCOL_FEE;
646
+ owner: string;
647
+ protocolFee: string;
648
+ beneficiary: string;
649
+ maxProtocolFee: string;
650
+ ownerOverrides?: Record<string, string> | undefined;
651
+ } | {
652
+ type: HookType.PAUSABLE;
653
+ owner: string;
654
+ paused: boolean;
655
+ ownerOverrides?: Record<string, string> | undefined;
656
+ } | {
657
+ type: HookType.OP_STACK;
658
+ owner: string;
659
+ nativeBridge: string;
660
+ destinationChain: string;
661
+ ownerOverrides?: Record<string, string> | undefined;
662
+ } | {
663
+ type: HookType.ARB_L2_TO_L1;
664
+ destinationChain: string;
665
+ arbSys: string;
666
+ bridge?: string | undefined;
667
+ childHook?: any;
668
+ } | {
669
+ type: HookType.MAILBOX_DEFAULT;
670
+ } | {
671
+ type: HookType.CCIP;
672
+ destinationChain: string;
673
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
674
+ type: HookType.MERKLE_TREE;
675
+ }) | (string & {
676
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
677
+ owner: string;
678
+ beneficiary: string;
679
+ oracleKey: string;
680
+ overhead: Record<string, number>;
681
+ oracleConfig: Record<string, {
682
+ gasPrice: string;
683
+ tokenExchangeRate: string;
684
+ tokenDecimals?: number | undefined;
685
+ }>;
686
+ ownerOverrides?: Record<string, string> | undefined;
687
+ }) | (string & {
688
+ type: HookType.PROTOCOL_FEE;
689
+ owner: string;
690
+ protocolFee: string;
691
+ beneficiary: string;
692
+ maxProtocolFee: string;
693
+ ownerOverrides?: Record<string, string> | undefined;
694
+ }) | (string & {
695
+ type: HookType.PAUSABLE;
696
+ owner: string;
697
+ paused: boolean;
698
+ ownerOverrides?: Record<string, string> | undefined;
699
+ }) | (string & {
700
+ type: HookType.OP_STACK;
701
+ owner: string;
702
+ nativeBridge: string;
703
+ destinationChain: string;
704
+ ownerOverrides?: Record<string, string> | undefined;
705
+ }) | (string & {
706
+ type: HookType.ARB_L2_TO_L1;
707
+ destinationChain: string;
708
+ arbSys: string;
709
+ bridge?: string | undefined;
710
+ childHook?: any;
711
+ }) | (string & {
712
+ type: HookType.MAILBOX_DEFAULT;
713
+ }) | (string & {
714
+ type: HookType.CCIP;
715
+ destinationChain: string;
716
+ }) | (string & {
717
+ owner: string;
718
+ ownerOverrides?: Record<string, string> | undefined;
719
+ } & {
720
+ domains: ChainMap<HookConfig>;
721
+ } & {
722
+ type: HookType.ROUTING;
723
+ }) | (string & {
724
+ owner: string;
725
+ ownerOverrides?: Record<string, string> | undefined;
726
+ } & {
727
+ domains: ChainMap<HookConfig>;
728
+ } & {
729
+ type: HookType.FALLBACK_ROUTING;
730
+ fallback: HookConfig;
731
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
732
+ type: HookType.MERKLE_TREE;
733
+ } & string) | ({
734
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
735
+ owner: string;
736
+ beneficiary: string;
737
+ oracleKey: string;
738
+ overhead: Record<string, number>;
739
+ oracleConfig: Record<string, {
740
+ gasPrice: string;
741
+ tokenExchangeRate: string;
742
+ tokenDecimals?: number | undefined;
743
+ }>;
744
+ ownerOverrides?: Record<string, string> | undefined;
745
+ } & string) | ({
746
+ type: HookType.PROTOCOL_FEE;
747
+ owner: string;
748
+ protocolFee: string;
749
+ beneficiary: string;
750
+ maxProtocolFee: string;
751
+ ownerOverrides?: Record<string, string> | undefined;
752
+ } & string) | ({
753
+ type: HookType.PAUSABLE;
754
+ owner: string;
755
+ paused: boolean;
756
+ ownerOverrides?: Record<string, string> | undefined;
757
+ } & string) | ({
758
+ type: HookType.OP_STACK;
759
+ owner: string;
760
+ nativeBridge: string;
761
+ destinationChain: string;
762
+ ownerOverrides?: Record<string, string> | undefined;
763
+ } & string) | ({
764
+ type: HookType.ARB_L2_TO_L1;
765
+ destinationChain: string;
766
+ arbSys: string;
767
+ bridge?: string | undefined;
768
+ childHook?: any;
769
+ } & string) | ({
770
+ type: HookType.MAILBOX_DEFAULT;
771
+ } & string) | ({
772
+ type: HookType.CCIP;
773
+ destinationChain: string;
774
+ } & string) | ({
775
+ owner: string;
776
+ ownerOverrides?: Record<string, string> | undefined;
777
+ } & {
778
+ domains: ChainMap<HookConfig>;
779
+ } & {
780
+ type: HookType.ROUTING;
781
+ } & string) | ({
782
+ owner: string;
783
+ ownerOverrides?: Record<string, string> | undefined;
784
+ } & {
785
+ domains: ChainMap<HookConfig>;
786
+ } & {
787
+ type: HookType.ROUTING;
788
+ }) | ({
789
+ owner: string;
790
+ ownerOverrides?: Record<string, string> | undefined;
791
+ } & {
792
+ domains: ChainMap<HookConfig>;
793
+ } & {
794
+ type: HookType.FALLBACK_ROUTING;
795
+ fallback: HookConfig;
796
+ } & string) | ({
797
+ owner: string;
798
+ ownerOverrides?: Record<string, string> | undefined;
799
+ } & {
800
+ domains: ChainMap<HookConfig>;
801
+ } & {
802
+ type: HookType.FALLBACK_ROUTING;
803
+ fallback: HookConfig;
804
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string);
805
+ required: string | {
806
+ type: HookType.MERKLE_TREE;
807
+ } | {
808
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
809
+ owner: string;
810
+ beneficiary: string;
811
+ oracleKey: string;
812
+ overhead: Record<string, number>;
813
+ oracleConfig: Record<string, {
814
+ gasPrice: string;
815
+ tokenExchangeRate: string;
816
+ tokenDecimals?: number | undefined;
817
+ }>;
818
+ ownerOverrides?: Record<string, string> | undefined;
819
+ } | {
820
+ type: HookType.PROTOCOL_FEE;
821
+ owner: string;
822
+ protocolFee: string;
823
+ beneficiary: string;
824
+ maxProtocolFee: string;
825
+ ownerOverrides?: Record<string, string> | undefined;
826
+ } | {
827
+ type: HookType.PAUSABLE;
828
+ owner: string;
829
+ paused: boolean;
830
+ ownerOverrides?: Record<string, string> | undefined;
831
+ } | {
832
+ type: HookType.OP_STACK;
833
+ owner: string;
834
+ nativeBridge: string;
835
+ destinationChain: string;
836
+ ownerOverrides?: Record<string, string> | undefined;
837
+ } | {
838
+ type: HookType.ARB_L2_TO_L1;
839
+ destinationChain: string;
840
+ arbSys: string;
841
+ bridge?: string | undefined;
842
+ childHook?: any;
843
+ } | {
844
+ type: HookType.MAILBOX_DEFAULT;
845
+ } | {
846
+ type: HookType.CCIP;
847
+ destinationChain: string;
848
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
849
+ type: HookType.MERKLE_TREE;
850
+ }) | (string & {
851
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
852
+ owner: string;
853
+ beneficiary: string;
854
+ oracleKey: string;
855
+ overhead: Record<string, number>;
856
+ oracleConfig: Record<string, {
857
+ gasPrice: string;
858
+ tokenExchangeRate: string;
859
+ tokenDecimals?: number | undefined;
860
+ }>;
861
+ ownerOverrides?: Record<string, string> | undefined;
862
+ }) | (string & {
863
+ type: HookType.PROTOCOL_FEE;
864
+ owner: string;
865
+ protocolFee: string;
866
+ beneficiary: string;
867
+ maxProtocolFee: string;
868
+ ownerOverrides?: Record<string, string> | undefined;
869
+ }) | (string & {
870
+ type: HookType.PAUSABLE;
871
+ owner: string;
872
+ paused: boolean;
873
+ ownerOverrides?: Record<string, string> | undefined;
874
+ }) | (string & {
875
+ type: HookType.OP_STACK;
876
+ owner: string;
877
+ nativeBridge: string;
878
+ destinationChain: string;
879
+ ownerOverrides?: Record<string, string> | undefined;
880
+ }) | (string & {
881
+ type: HookType.ARB_L2_TO_L1;
882
+ destinationChain: string;
883
+ arbSys: string;
884
+ bridge?: string | undefined;
885
+ childHook?: any;
886
+ }) | (string & {
887
+ type: HookType.MAILBOX_DEFAULT;
888
+ }) | (string & {
889
+ type: HookType.CCIP;
890
+ destinationChain: string;
891
+ }) | (string & {
892
+ owner: string;
893
+ ownerOverrides?: Record<string, string> | undefined;
894
+ } & {
895
+ domains: ChainMap<HookConfig>;
896
+ } & {
897
+ type: HookType.ROUTING;
898
+ }) | (string & {
899
+ owner: string;
900
+ ownerOverrides?: Record<string, string> | undefined;
901
+ } & {
902
+ domains: ChainMap<HookConfig>;
903
+ } & {
904
+ type: HookType.FALLBACK_ROUTING;
905
+ fallback: HookConfig;
906
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
907
+ type: HookType.MERKLE_TREE;
908
+ } & string) | ({
909
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
910
+ owner: string;
911
+ beneficiary: string;
912
+ oracleKey: string;
913
+ overhead: Record<string, number>;
914
+ oracleConfig: Record<string, {
915
+ gasPrice: string;
916
+ tokenExchangeRate: string;
917
+ tokenDecimals?: number | undefined;
918
+ }>;
919
+ ownerOverrides?: Record<string, string> | undefined;
920
+ } & string) | ({
921
+ type: HookType.PROTOCOL_FEE;
922
+ owner: string;
923
+ protocolFee: string;
924
+ beneficiary: string;
925
+ maxProtocolFee: string;
926
+ ownerOverrides?: Record<string, string> | undefined;
927
+ } & string) | ({
928
+ type: HookType.PAUSABLE;
929
+ owner: string;
930
+ paused: boolean;
931
+ ownerOverrides?: Record<string, string> | undefined;
932
+ } & string) | ({
933
+ type: HookType.OP_STACK;
934
+ owner: string;
935
+ nativeBridge: string;
936
+ destinationChain: string;
937
+ ownerOverrides?: Record<string, string> | undefined;
938
+ } & string) | ({
939
+ type: HookType.ARB_L2_TO_L1;
940
+ destinationChain: string;
941
+ arbSys: string;
942
+ bridge?: string | undefined;
943
+ childHook?: any;
944
+ } & string) | ({
945
+ type: HookType.MAILBOX_DEFAULT;
946
+ } & string) | ({
947
+ type: HookType.CCIP;
948
+ destinationChain: string;
949
+ } & string) | ({
950
+ owner: string;
951
+ ownerOverrides?: Record<string, string> | undefined;
952
+ } & {
953
+ domains: ChainMap<HookConfig>;
954
+ } & {
955
+ type: HookType.ROUTING;
956
+ } & string) | ({
957
+ owner: string;
958
+ ownerOverrides?: Record<string, string> | undefined;
959
+ } & {
960
+ domains: ChainMap<HookConfig>;
961
+ } & {
962
+ type: HookType.ROUTING;
963
+ }) | ({
964
+ owner: string;
965
+ ownerOverrides?: Record<string, string> | undefined;
966
+ } & {
967
+ domains: ChainMap<HookConfig>;
968
+ } & {
969
+ type: HookType.FALLBACK_ROUTING;
970
+ fallback: HookConfig;
971
+ } & string) | ({
972
+ owner: string;
973
+ ownerOverrides?: Record<string, string> | undefined;
974
+ } & {
975
+ domains: ChainMap<HookConfig>;
976
+ } & {
977
+ type: HookType.FALLBACK_ROUTING;
978
+ fallback: HookConfig;
979
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string);
980
+ }, {
981
+ default: string | {
982
+ type: HookType.MERKLE_TREE;
983
+ } | {
984
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
985
+ owner: string;
986
+ beneficiary: string;
987
+ oracleKey: string;
988
+ overhead: Record<string, number>;
989
+ oracleConfig: Record<string, {
990
+ gasPrice: string;
991
+ tokenExchangeRate: string;
992
+ tokenDecimals?: number | undefined;
993
+ }>;
994
+ ownerOverrides?: Record<string, string> | undefined;
995
+ } | {
996
+ type: HookType.PROTOCOL_FEE;
997
+ owner: string;
998
+ protocolFee: string;
999
+ beneficiary: string;
1000
+ maxProtocolFee: string;
1001
+ ownerOverrides?: Record<string, string> | undefined;
1002
+ } | {
1003
+ type: HookType.PAUSABLE;
1004
+ owner: string;
1005
+ paused: boolean;
1006
+ ownerOverrides?: Record<string, string> | undefined;
1007
+ } | {
1008
+ type: HookType.OP_STACK;
1009
+ owner: string;
1010
+ nativeBridge: string;
1011
+ destinationChain: string;
1012
+ ownerOverrides?: Record<string, string> | undefined;
1013
+ } | {
1014
+ type: HookType.ARB_L2_TO_L1;
1015
+ destinationChain: string;
1016
+ arbSys: string;
1017
+ bridge?: string | undefined;
1018
+ childHook?: any;
1019
+ } | {
1020
+ type: HookType.MAILBOX_DEFAULT;
1021
+ } | {
1022
+ type: HookType.CCIP;
1023
+ destinationChain: string;
1024
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
1025
+ owner: string;
1026
+ ownerOverrides?: Record<string, string> | undefined;
1027
+ } & {
1028
+ domains: ChainMap<HookConfig>;
1029
+ } & {
1030
+ type: HookType.ROUTING;
1031
+ }) | (string & {
1032
+ owner: string;
1033
+ ownerOverrides?: Record<string, string> | undefined;
1034
+ } & {
1035
+ domains: ChainMap<HookConfig>;
1036
+ } & {
1037
+ type: HookType.FALLBACK_ROUTING;
1038
+ fallback: HookConfig;
1039
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
1040
+ owner: string;
1041
+ ownerOverrides?: Record<string, string> | undefined;
1042
+ } & {
1043
+ domains: ChainMap<HookConfig>;
1044
+ } & {
1045
+ type: HookType.ROUTING;
1046
+ } & string) | ({
1047
+ owner: string;
1048
+ ownerOverrides?: Record<string, string> | undefined;
1049
+ } & {
1050
+ domains: ChainMap<HookConfig>;
1051
+ } & {
1052
+ type: HookType.ROUTING;
1053
+ }) | ({
1054
+ owner: string;
1055
+ ownerOverrides?: Record<string, string> | undefined;
1056
+ } & {
1057
+ domains: ChainMap<HookConfig>;
1058
+ } & {
1059
+ type: HookType.FALLBACK_ROUTING;
1060
+ fallback: HookConfig;
1061
+ } & string) | ({
1062
+ owner: string;
1063
+ ownerOverrides?: Record<string, string> | undefined;
1064
+ } & {
1065
+ domains: ChainMap<HookConfig>;
1066
+ } & {
1067
+ type: HookType.FALLBACK_ROUTING;
1068
+ fallback: HookConfig;
1069
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string) | (string & {
1070
+ type: HookType.MERKLE_TREE;
1071
+ }) | (string & {
1072
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1073
+ owner: string;
1074
+ beneficiary: string;
1075
+ oracleKey: string;
1076
+ overhead: Record<string, number>;
1077
+ oracleConfig: Record<string, {
1078
+ gasPrice: string;
1079
+ tokenExchangeRate: string;
1080
+ tokenDecimals?: number | undefined;
1081
+ }>;
1082
+ ownerOverrides?: Record<string, string> | undefined;
1083
+ }) | (string & {
1084
+ type: HookType.PROTOCOL_FEE;
1085
+ owner: string;
1086
+ protocolFee: string;
1087
+ beneficiary: string;
1088
+ maxProtocolFee: string;
1089
+ ownerOverrides?: Record<string, string> | undefined;
1090
+ }) | (string & {
1091
+ type: HookType.PAUSABLE;
1092
+ owner: string;
1093
+ paused: boolean;
1094
+ ownerOverrides?: Record<string, string> | undefined;
1095
+ }) | (string & {
1096
+ type: HookType.OP_STACK;
1097
+ owner: string;
1098
+ nativeBridge: string;
1099
+ destinationChain: string;
1100
+ ownerOverrides?: Record<string, string> | undefined;
1101
+ }) | (string & {
1102
+ type: HookType.ARB_L2_TO_L1;
1103
+ destinationChain: string;
1104
+ arbSys: string;
1105
+ bridge?: string | undefined;
1106
+ childHook?: any;
1107
+ }) | (string & {
1108
+ type: HookType.MAILBOX_DEFAULT;
1109
+ }) | (string & {
1110
+ type: HookType.CCIP;
1111
+ destinationChain: string;
1112
+ }) | ({
1113
+ type: HookType.MERKLE_TREE;
1114
+ } & string) | ({
1115
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1116
+ owner: string;
1117
+ beneficiary: string;
1118
+ oracleKey: string;
1119
+ overhead: Record<string, number>;
1120
+ oracleConfig: Record<string, {
1121
+ gasPrice: string;
1122
+ tokenExchangeRate: string;
1123
+ tokenDecimals?: number | undefined;
1124
+ }>;
1125
+ ownerOverrides?: Record<string, string> | undefined;
1126
+ } & string) | ({
1127
+ type: HookType.PROTOCOL_FEE;
1128
+ owner: string;
1129
+ protocolFee: string;
1130
+ beneficiary: string;
1131
+ maxProtocolFee: string;
1132
+ ownerOverrides?: Record<string, string> | undefined;
1133
+ } & string) | ({
1134
+ type: HookType.PAUSABLE;
1135
+ owner: string;
1136
+ paused: boolean;
1137
+ ownerOverrides?: Record<string, string> | undefined;
1138
+ } & string) | ({
1139
+ type: HookType.OP_STACK;
1140
+ owner: string;
1141
+ nativeBridge: string;
1142
+ destinationChain: string;
1143
+ ownerOverrides?: Record<string, string> | undefined;
1144
+ } & string) | ({
1145
+ type: HookType.ARB_L2_TO_L1;
1146
+ destinationChain: string;
1147
+ arbSys: string;
1148
+ bridge?: string | undefined;
1149
+ childHook?: any;
1150
+ } & string) | ({
1151
+ type: HookType.MAILBOX_DEFAULT;
1152
+ } & string) | ({
1153
+ type: HookType.CCIP;
1154
+ destinationChain: string;
1155
+ } & string);
1156
+ required: string | {
1157
+ type: HookType.MERKLE_TREE;
1158
+ } | {
1159
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1160
+ owner: string;
1161
+ beneficiary: string;
1162
+ oracleKey: string;
1163
+ overhead: Record<string, number>;
1164
+ oracleConfig: Record<string, {
1165
+ gasPrice: string;
1166
+ tokenExchangeRate: string;
1167
+ tokenDecimals?: number | undefined;
1168
+ }>;
1169
+ ownerOverrides?: Record<string, string> | undefined;
1170
+ } | {
1171
+ type: HookType.PROTOCOL_FEE;
1172
+ owner: string;
1173
+ protocolFee: string;
1174
+ beneficiary: string;
1175
+ maxProtocolFee: string;
1176
+ ownerOverrides?: Record<string, string> | undefined;
1177
+ } | {
1178
+ type: HookType.PAUSABLE;
1179
+ owner: string;
1180
+ paused: boolean;
1181
+ ownerOverrides?: Record<string, string> | undefined;
1182
+ } | {
1183
+ type: HookType.OP_STACK;
1184
+ owner: string;
1185
+ nativeBridge: string;
1186
+ destinationChain: string;
1187
+ ownerOverrides?: Record<string, string> | undefined;
1188
+ } | {
1189
+ type: HookType.ARB_L2_TO_L1;
1190
+ destinationChain: string;
1191
+ arbSys: string;
1192
+ bridge?: string | undefined;
1193
+ childHook?: any;
1194
+ } | {
1195
+ type: HookType.MAILBOX_DEFAULT;
1196
+ } | {
1197
+ type: HookType.CCIP;
1198
+ destinationChain: string;
1199
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
1200
+ owner: string;
1201
+ ownerOverrides?: Record<string, string> | undefined;
1202
+ } & {
1203
+ domains: ChainMap<HookConfig>;
1204
+ } & {
1205
+ type: HookType.ROUTING;
1206
+ }) | (string & {
1207
+ owner: string;
1208
+ ownerOverrides?: Record<string, string> | undefined;
1209
+ } & {
1210
+ domains: ChainMap<HookConfig>;
1211
+ } & {
1212
+ type: HookType.FALLBACK_ROUTING;
1213
+ fallback: HookConfig;
1214
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
1215
+ owner: string;
1216
+ ownerOverrides?: Record<string, string> | undefined;
1217
+ } & {
1218
+ domains: ChainMap<HookConfig>;
1219
+ } & {
1220
+ type: HookType.ROUTING;
1221
+ } & string) | ({
1222
+ owner: string;
1223
+ ownerOverrides?: Record<string, string> | undefined;
1224
+ } & {
1225
+ domains: ChainMap<HookConfig>;
1226
+ } & {
1227
+ type: HookType.ROUTING;
1228
+ }) | ({
1229
+ owner: string;
1230
+ ownerOverrides?: Record<string, string> | undefined;
1231
+ } & {
1232
+ domains: ChainMap<HookConfig>;
1233
+ } & {
1234
+ type: HookType.FALLBACK_ROUTING;
1235
+ fallback: HookConfig;
1236
+ } & string) | ({
1237
+ owner: string;
1238
+ ownerOverrides?: Record<string, string> | undefined;
1239
+ } & {
1240
+ domains: ChainMap<HookConfig>;
1241
+ } & {
1242
+ type: HookType.FALLBACK_ROUTING;
1243
+ fallback: HookConfig;
1244
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string) | (string & {
1245
+ type: HookType.MERKLE_TREE;
1246
+ }) | (string & {
1247
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1248
+ owner: string;
1249
+ beneficiary: string;
1250
+ oracleKey: string;
1251
+ overhead: Record<string, number>;
1252
+ oracleConfig: Record<string, {
1253
+ gasPrice: string;
1254
+ tokenExchangeRate: string;
1255
+ tokenDecimals?: number | undefined;
1256
+ }>;
1257
+ ownerOverrides?: Record<string, string> | undefined;
1258
+ }) | (string & {
1259
+ type: HookType.PROTOCOL_FEE;
1260
+ owner: string;
1261
+ protocolFee: string;
1262
+ beneficiary: string;
1263
+ maxProtocolFee: string;
1264
+ ownerOverrides?: Record<string, string> | undefined;
1265
+ }) | (string & {
1266
+ type: HookType.PAUSABLE;
1267
+ owner: string;
1268
+ paused: boolean;
1269
+ ownerOverrides?: Record<string, string> | undefined;
1270
+ }) | (string & {
1271
+ type: HookType.OP_STACK;
1272
+ owner: string;
1273
+ nativeBridge: string;
1274
+ destinationChain: string;
1275
+ ownerOverrides?: Record<string, string> | undefined;
1276
+ }) | (string & {
1277
+ type: HookType.ARB_L2_TO_L1;
1278
+ destinationChain: string;
1279
+ arbSys: string;
1280
+ bridge?: string | undefined;
1281
+ childHook?: any;
1282
+ }) | (string & {
1283
+ type: HookType.MAILBOX_DEFAULT;
1284
+ }) | (string & {
1285
+ type: HookType.CCIP;
1286
+ destinationChain: string;
1287
+ }) | ({
1288
+ type: HookType.MERKLE_TREE;
1289
+ } & string) | ({
1290
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1291
+ owner: string;
1292
+ beneficiary: string;
1293
+ oracleKey: string;
1294
+ overhead: Record<string, number>;
1295
+ oracleConfig: Record<string, {
1296
+ gasPrice: string;
1297
+ tokenExchangeRate: string;
1298
+ tokenDecimals?: number | undefined;
1299
+ }>;
1300
+ ownerOverrides?: Record<string, string> | undefined;
1301
+ } & string) | ({
1302
+ type: HookType.PROTOCOL_FEE;
1303
+ owner: string;
1304
+ protocolFee: string;
1305
+ beneficiary: string;
1306
+ maxProtocolFee: string;
1307
+ ownerOverrides?: Record<string, string> | undefined;
1308
+ } & string) | ({
1309
+ type: HookType.PAUSABLE;
1310
+ owner: string;
1311
+ paused: boolean;
1312
+ ownerOverrides?: Record<string, string> | undefined;
1313
+ } & string) | ({
1314
+ type: HookType.OP_STACK;
1315
+ owner: string;
1316
+ nativeBridge: string;
1317
+ destinationChain: string;
1318
+ ownerOverrides?: Record<string, string> | undefined;
1319
+ } & string) | ({
1320
+ type: HookType.ARB_L2_TO_L1;
1321
+ destinationChain: string;
1322
+ arbSys: string;
1323
+ bridge?: string | undefined;
1324
+ childHook?: any;
1325
+ } & string) | ({
1326
+ type: HookType.MAILBOX_DEFAULT;
1327
+ } & string) | ({
1328
+ type: HookType.CCIP;
1329
+ destinationChain: string;
1330
+ } & string);
1331
+ }>;
1332
+ export type HooksConfig = z.infer<typeof HooksConfigSchema>;
1333
+ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1334
+ default: z.ZodUnion<[z.ZodString, z.ZodObject<{
1335
+ owner: z.ZodString;
1336
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1337
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
1338
+ beneficiary: z.ZodString;
1339
+ maxProtocolFee: z.ZodString;
1340
+ protocolFee: z.ZodString;
1341
+ }, "strip", z.ZodTypeAny, {
1342
+ type: HookType.PROTOCOL_FEE;
1343
+ owner: string;
1344
+ protocolFee: string;
1345
+ beneficiary: string;
1346
+ maxProtocolFee: string;
1347
+ ownerOverrides?: Record<string, string> | undefined;
1348
+ }, {
1349
+ type: HookType.PROTOCOL_FEE;
1350
+ owner: string;
1351
+ protocolFee: string;
1352
+ beneficiary: string;
1353
+ maxProtocolFee: string;
1354
+ ownerOverrides?: Record<string, string> | undefined;
1355
+ }>, z.ZodObject<{
1356
+ owner: z.ZodString;
1357
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1358
+ paused: z.ZodBoolean;
1359
+ type: z.ZodLiteral<HookType.PAUSABLE>;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ type: HookType.PAUSABLE;
1362
+ owner: string;
1363
+ paused: boolean;
1364
+ ownerOverrides?: Record<string, string> | undefined;
1365
+ }, {
1366
+ type: HookType.PAUSABLE;
1367
+ owner: string;
1368
+ paused: boolean;
1369
+ ownerOverrides?: Record<string, string> | undefined;
1370
+ }>, z.ZodObject<{
1371
+ owner: z.ZodString;
1372
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1373
+ type: z.ZodLiteral<HookType.OP_STACK>;
1374
+ nativeBridge: z.ZodString;
1375
+ destinationChain: z.ZodString;
1376
+ }, "strip", z.ZodTypeAny, {
1377
+ type: HookType.OP_STACK;
1378
+ owner: string;
1379
+ nativeBridge: string;
1380
+ destinationChain: string;
1381
+ ownerOverrides?: Record<string, string> | undefined;
1382
+ }, {
1383
+ type: HookType.OP_STACK;
1384
+ owner: string;
1385
+ nativeBridge: string;
1386
+ destinationChain: string;
1387
+ ownerOverrides?: Record<string, string> | undefined;
1388
+ }>, z.ZodObject<{
1389
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ type: HookType.MERKLE_TREE;
1392
+ }, {
1393
+ type: HookType.MERKLE_TREE;
1394
+ }>, z.ZodObject<{
1395
+ owner: z.ZodString;
1396
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1397
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
1398
+ beneficiary: z.ZodString;
1399
+ oracleKey: z.ZodString;
1400
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
1401
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
1402
+ gasPrice: z.ZodString;
1403
+ tokenExchangeRate: z.ZodString;
1404
+ tokenDecimals: z.ZodOptional<z.ZodNumber>;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ gasPrice: string;
1407
+ tokenExchangeRate: string;
1408
+ tokenDecimals?: number | undefined;
1409
+ }, {
1410
+ gasPrice: string;
1411
+ tokenExchangeRate: string;
1412
+ tokenDecimals?: number | undefined;
1413
+ }>>;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1416
+ owner: string;
1417
+ beneficiary: string;
1418
+ oracleKey: string;
1419
+ overhead: Record<string, number>;
1420
+ oracleConfig: Record<string, {
1421
+ gasPrice: string;
1422
+ tokenExchangeRate: string;
1423
+ tokenDecimals?: number | undefined;
1424
+ }>;
1425
+ ownerOverrides?: Record<string, string> | undefined;
1426
+ }, {
1427
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1428
+ owner: string;
1429
+ beneficiary: string;
1430
+ oracleKey: string;
1431
+ overhead: Record<string, number>;
1432
+ oracleConfig: Record<string, {
1433
+ gasPrice: string;
1434
+ tokenExchangeRate: string;
1435
+ tokenDecimals?: number | undefined;
1436
+ }>;
1437
+ ownerOverrides?: Record<string, string> | undefined;
1438
+ }>, z.ZodType<DomainRoutingHookConfig, z.ZodTypeDef, DomainRoutingHookConfig>, z.ZodType<FallbackRoutingHookConfig, z.ZodTypeDef, FallbackRoutingHookConfig>, z.ZodType<AmountRoutingHookConfig, z.ZodTypeDef, AmountRoutingHookConfig>, z.ZodType<AggregationHookConfig, z.ZodTypeDef, AggregationHookConfig>, z.ZodObject<{
1439
+ type: z.ZodLiteral<HookType.ARB_L2_TO_L1>;
1440
+ arbSys: z.ZodString;
1441
+ bridge: z.ZodOptional<z.ZodString>;
1442
+ destinationChain: z.ZodString;
1443
+ childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
1444
+ }, "strip", z.ZodTypeAny, {
1445
+ type: HookType.ARB_L2_TO_L1;
1446
+ destinationChain: string;
1447
+ arbSys: string;
1448
+ bridge?: string | undefined;
1449
+ childHook?: any;
1450
+ }, {
1451
+ type: HookType.ARB_L2_TO_L1;
1452
+ destinationChain: string;
1453
+ arbSys: string;
1454
+ bridge?: string | undefined;
1455
+ childHook?: any;
1456
+ }>, z.ZodObject<{
1457
+ type: z.ZodLiteral<HookType.MAILBOX_DEFAULT>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ type: HookType.MAILBOX_DEFAULT;
1460
+ }, {
1461
+ type: HookType.MAILBOX_DEFAULT;
1462
+ }>, z.ZodObject<{
1463
+ type: z.ZodLiteral<HookType.CCIP>;
1464
+ destinationChain: z.ZodString;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ type: HookType.CCIP;
1467
+ destinationChain: string;
1468
+ }, {
1469
+ type: HookType.CCIP;
1470
+ destinationChain: string;
1471
+ }>]>;
1472
+ required: z.ZodUnion<[z.ZodString, z.ZodObject<{
1473
+ owner: z.ZodString;
1474
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1475
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
1476
+ beneficiary: z.ZodString;
1477
+ maxProtocolFee: z.ZodString;
1478
+ protocolFee: z.ZodString;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ type: HookType.PROTOCOL_FEE;
1481
+ owner: string;
1482
+ protocolFee: string;
1483
+ beneficiary: string;
1484
+ maxProtocolFee: string;
1485
+ ownerOverrides?: Record<string, string> | undefined;
1486
+ }, {
1487
+ type: HookType.PROTOCOL_FEE;
1488
+ owner: string;
1489
+ protocolFee: string;
1490
+ beneficiary: string;
1491
+ maxProtocolFee: string;
1492
+ ownerOverrides?: Record<string, string> | undefined;
1493
+ }>, z.ZodObject<{
1494
+ owner: z.ZodString;
1495
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1496
+ paused: z.ZodBoolean;
1497
+ type: z.ZodLiteral<HookType.PAUSABLE>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ type: HookType.PAUSABLE;
1500
+ owner: string;
1501
+ paused: boolean;
1502
+ ownerOverrides?: Record<string, string> | undefined;
1503
+ }, {
1504
+ type: HookType.PAUSABLE;
1505
+ owner: string;
1506
+ paused: boolean;
1507
+ ownerOverrides?: Record<string, string> | undefined;
1508
+ }>, z.ZodObject<{
1509
+ owner: z.ZodString;
1510
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1511
+ type: z.ZodLiteral<HookType.OP_STACK>;
1512
+ nativeBridge: z.ZodString;
1513
+ destinationChain: z.ZodString;
1514
+ }, "strip", z.ZodTypeAny, {
1515
+ type: HookType.OP_STACK;
1516
+ owner: string;
1517
+ nativeBridge: string;
1518
+ destinationChain: string;
1519
+ ownerOverrides?: Record<string, string> | undefined;
1520
+ }, {
1521
+ type: HookType.OP_STACK;
1522
+ owner: string;
1523
+ nativeBridge: string;
1524
+ destinationChain: string;
1525
+ ownerOverrides?: Record<string, string> | undefined;
1526
+ }>, z.ZodObject<{
1527
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ type: HookType.MERKLE_TREE;
1530
+ }, {
1531
+ type: HookType.MERKLE_TREE;
1532
+ }>, z.ZodObject<{
1533
+ owner: z.ZodString;
1534
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1535
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
1536
+ beneficiary: z.ZodString;
1537
+ oracleKey: z.ZodString;
1538
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
1539
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
1540
+ gasPrice: z.ZodString;
1541
+ tokenExchangeRate: z.ZodString;
1542
+ tokenDecimals: z.ZodOptional<z.ZodNumber>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ gasPrice: string;
1545
+ tokenExchangeRate: string;
1546
+ tokenDecimals?: number | undefined;
1547
+ }, {
1548
+ gasPrice: string;
1549
+ tokenExchangeRate: string;
1550
+ tokenDecimals?: number | undefined;
1551
+ }>>;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1554
+ owner: string;
1555
+ beneficiary: string;
1556
+ oracleKey: string;
1557
+ overhead: Record<string, number>;
1558
+ oracleConfig: Record<string, {
1559
+ gasPrice: string;
1560
+ tokenExchangeRate: string;
1561
+ tokenDecimals?: number | undefined;
1562
+ }>;
1563
+ ownerOverrides?: Record<string, string> | undefined;
1564
+ }, {
1565
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1566
+ owner: string;
1567
+ beneficiary: string;
1568
+ oracleKey: string;
1569
+ overhead: Record<string, number>;
1570
+ oracleConfig: Record<string, {
1571
+ gasPrice: string;
1572
+ tokenExchangeRate: string;
1573
+ tokenDecimals?: number | undefined;
1574
+ }>;
1575
+ ownerOverrides?: Record<string, string> | undefined;
1576
+ }>, z.ZodType<DomainRoutingHookConfig, z.ZodTypeDef, DomainRoutingHookConfig>, z.ZodType<FallbackRoutingHookConfig, z.ZodTypeDef, FallbackRoutingHookConfig>, z.ZodType<AmountRoutingHookConfig, z.ZodTypeDef, AmountRoutingHookConfig>, z.ZodType<AggregationHookConfig, z.ZodTypeDef, AggregationHookConfig>, z.ZodObject<{
1577
+ type: z.ZodLiteral<HookType.ARB_L2_TO_L1>;
1578
+ arbSys: z.ZodString;
1579
+ bridge: z.ZodOptional<z.ZodString>;
1580
+ destinationChain: z.ZodString;
1581
+ childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ type: HookType.ARB_L2_TO_L1;
1584
+ destinationChain: string;
1585
+ arbSys: string;
1586
+ bridge?: string | undefined;
1587
+ childHook?: any;
1588
+ }, {
1589
+ type: HookType.ARB_L2_TO_L1;
1590
+ destinationChain: string;
1591
+ arbSys: string;
1592
+ bridge?: string | undefined;
1593
+ childHook?: any;
1594
+ }>, z.ZodObject<{
1595
+ type: z.ZodLiteral<HookType.MAILBOX_DEFAULT>;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ type: HookType.MAILBOX_DEFAULT;
1598
+ }, {
1599
+ type: HookType.MAILBOX_DEFAULT;
1600
+ }>, z.ZodObject<{
1601
+ type: z.ZodLiteral<HookType.CCIP>;
1602
+ destinationChain: z.ZodString;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ type: HookType.CCIP;
1605
+ destinationChain: string;
1606
+ }, {
1607
+ type: HookType.CCIP;
1608
+ destinationChain: string;
1609
+ }>]>;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ default: string | {
1612
+ type: HookType.MERKLE_TREE;
1613
+ } | {
1614
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1615
+ owner: string;
1616
+ beneficiary: string;
1617
+ oracleKey: string;
1618
+ overhead: Record<string, number>;
1619
+ oracleConfig: Record<string, {
1620
+ gasPrice: string;
1621
+ tokenExchangeRate: string;
1622
+ tokenDecimals?: number | undefined;
1623
+ }>;
1624
+ ownerOverrides?: Record<string, string> | undefined;
1625
+ } | {
1626
+ type: HookType.PROTOCOL_FEE;
1627
+ owner: string;
1628
+ protocolFee: string;
1629
+ beneficiary: string;
1630
+ maxProtocolFee: string;
1631
+ ownerOverrides?: Record<string, string> | undefined;
1632
+ } | {
1633
+ type: HookType.PAUSABLE;
1634
+ owner: string;
1635
+ paused: boolean;
1636
+ ownerOverrides?: Record<string, string> | undefined;
1637
+ } | {
1638
+ type: HookType.OP_STACK;
1639
+ owner: string;
1640
+ nativeBridge: string;
1641
+ destinationChain: string;
1642
+ ownerOverrides?: Record<string, string> | undefined;
1643
+ } | {
1644
+ type: HookType.ARB_L2_TO_L1;
1645
+ destinationChain: string;
1646
+ arbSys: string;
1647
+ bridge?: string | undefined;
1648
+ childHook?: any;
1649
+ } | {
1650
+ type: HookType.MAILBOX_DEFAULT;
1651
+ } | {
1652
+ type: HookType.CCIP;
1653
+ destinationChain: string;
1654
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
1655
+ type: HookType.MERKLE_TREE;
1656
+ }) | (string & {
1657
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1658
+ owner: string;
1659
+ beneficiary: string;
1660
+ oracleKey: string;
1661
+ overhead: Record<string, number>;
1662
+ oracleConfig: Record<string, {
1663
+ gasPrice: string;
1664
+ tokenExchangeRate: string;
1665
+ tokenDecimals?: number | undefined;
1666
+ }>;
1667
+ ownerOverrides?: Record<string, string> | undefined;
1668
+ }) | (string & {
1669
+ type: HookType.PROTOCOL_FEE;
1670
+ owner: string;
1671
+ protocolFee: string;
1672
+ beneficiary: string;
1673
+ maxProtocolFee: string;
1674
+ ownerOverrides?: Record<string, string> | undefined;
1675
+ }) | (string & {
1676
+ type: HookType.PAUSABLE;
1677
+ owner: string;
1678
+ paused: boolean;
1679
+ ownerOverrides?: Record<string, string> | undefined;
1680
+ }) | (string & {
1681
+ type: HookType.OP_STACK;
1682
+ owner: string;
1683
+ nativeBridge: string;
1684
+ destinationChain: string;
1685
+ ownerOverrides?: Record<string, string> | undefined;
1686
+ }) | (string & {
1687
+ type: HookType.ARB_L2_TO_L1;
1688
+ destinationChain: string;
1689
+ arbSys: string;
1690
+ bridge?: string | undefined;
1691
+ childHook?: any;
1692
+ }) | (string & {
1693
+ type: HookType.MAILBOX_DEFAULT;
1694
+ }) | (string & {
1695
+ type: HookType.CCIP;
1696
+ destinationChain: string;
1697
+ }) | (string & {
1698
+ owner: string;
1699
+ ownerOverrides?: Record<string, string> | undefined;
1700
+ } & {
1701
+ domains: ChainMap<HookConfig>;
1702
+ } & {
1703
+ type: HookType.ROUTING;
1704
+ }) | (string & {
1705
+ owner: string;
1706
+ ownerOverrides?: Record<string, string> | undefined;
1707
+ } & {
1708
+ domains: ChainMap<HookConfig>;
1709
+ } & {
1710
+ type: HookType.FALLBACK_ROUTING;
1711
+ fallback: HookConfig;
1712
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
1713
+ type: HookType.MERKLE_TREE;
1714
+ } & string) | ({
1715
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1716
+ owner: string;
1717
+ beneficiary: string;
1718
+ oracleKey: string;
1719
+ overhead: Record<string, number>;
1720
+ oracleConfig: Record<string, {
1721
+ gasPrice: string;
1722
+ tokenExchangeRate: string;
1723
+ tokenDecimals?: number | undefined;
1724
+ }>;
1725
+ ownerOverrides?: Record<string, string> | undefined;
1726
+ } & string) | ({
1727
+ type: HookType.PROTOCOL_FEE;
1728
+ owner: string;
1729
+ protocolFee: string;
1730
+ beneficiary: string;
1731
+ maxProtocolFee: string;
1732
+ ownerOverrides?: Record<string, string> | undefined;
1733
+ } & string) | ({
1734
+ type: HookType.PAUSABLE;
1735
+ owner: string;
1736
+ paused: boolean;
1737
+ ownerOverrides?: Record<string, string> | undefined;
1738
+ } & string) | ({
1739
+ type: HookType.OP_STACK;
1740
+ owner: string;
1741
+ nativeBridge: string;
1742
+ destinationChain: string;
1743
+ ownerOverrides?: Record<string, string> | undefined;
1744
+ } & string) | ({
1745
+ type: HookType.ARB_L2_TO_L1;
1746
+ destinationChain: string;
1747
+ arbSys: string;
1748
+ bridge?: string | undefined;
1749
+ childHook?: any;
1750
+ } & string) | ({
1751
+ type: HookType.MAILBOX_DEFAULT;
1752
+ } & string) | ({
1753
+ type: HookType.CCIP;
1754
+ destinationChain: string;
1755
+ } & string) | ({
1756
+ owner: string;
1757
+ ownerOverrides?: Record<string, string> | undefined;
1758
+ } & {
1759
+ domains: ChainMap<HookConfig>;
1760
+ } & {
1761
+ type: HookType.ROUTING;
1762
+ } & string) | ({
1763
+ owner: string;
1764
+ ownerOverrides?: Record<string, string> | undefined;
1765
+ } & {
1766
+ domains: ChainMap<HookConfig>;
1767
+ } & {
1768
+ type: HookType.ROUTING;
1769
+ }) | ({
1770
+ owner: string;
1771
+ ownerOverrides?: Record<string, string> | undefined;
1772
+ } & {
1773
+ domains: ChainMap<HookConfig>;
1774
+ } & {
1775
+ type: HookType.FALLBACK_ROUTING;
1776
+ fallback: HookConfig;
1777
+ } & string) | ({
1778
+ owner: string;
1779
+ ownerOverrides?: Record<string, string> | undefined;
1780
+ } & {
1781
+ domains: ChainMap<HookConfig>;
1782
+ } & {
1783
+ type: HookType.FALLBACK_ROUTING;
1784
+ fallback: HookConfig;
1785
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string);
1786
+ required: string | {
1787
+ type: HookType.MERKLE_TREE;
1788
+ } | {
1789
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1790
+ owner: string;
1791
+ beneficiary: string;
1792
+ oracleKey: string;
1793
+ overhead: Record<string, number>;
1794
+ oracleConfig: Record<string, {
1795
+ gasPrice: string;
1796
+ tokenExchangeRate: string;
1797
+ tokenDecimals?: number | undefined;
1798
+ }>;
1799
+ ownerOverrides?: Record<string, string> | undefined;
1800
+ } | {
1801
+ type: HookType.PROTOCOL_FEE;
1802
+ owner: string;
1803
+ protocolFee: string;
1804
+ beneficiary: string;
1805
+ maxProtocolFee: string;
1806
+ ownerOverrides?: Record<string, string> | undefined;
1807
+ } | {
1808
+ type: HookType.PAUSABLE;
1809
+ owner: string;
1810
+ paused: boolean;
1811
+ ownerOverrides?: Record<string, string> | undefined;
1812
+ } | {
1813
+ type: HookType.OP_STACK;
1814
+ owner: string;
1815
+ nativeBridge: string;
1816
+ destinationChain: string;
1817
+ ownerOverrides?: Record<string, string> | undefined;
1818
+ } | {
1819
+ type: HookType.ARB_L2_TO_L1;
1820
+ destinationChain: string;
1821
+ arbSys: string;
1822
+ bridge?: string | undefined;
1823
+ childHook?: any;
1824
+ } | {
1825
+ type: HookType.MAILBOX_DEFAULT;
1826
+ } | {
1827
+ type: HookType.CCIP;
1828
+ destinationChain: string;
1829
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
1830
+ type: HookType.MERKLE_TREE;
1831
+ }) | (string & {
1832
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1833
+ owner: string;
1834
+ beneficiary: string;
1835
+ oracleKey: string;
1836
+ overhead: Record<string, number>;
1837
+ oracleConfig: Record<string, {
1838
+ gasPrice: string;
1839
+ tokenExchangeRate: string;
1840
+ tokenDecimals?: number | undefined;
1841
+ }>;
1842
+ ownerOverrides?: Record<string, string> | undefined;
1843
+ }) | (string & {
1844
+ type: HookType.PROTOCOL_FEE;
1845
+ owner: string;
1846
+ protocolFee: string;
1847
+ beneficiary: string;
1848
+ maxProtocolFee: string;
1849
+ ownerOverrides?: Record<string, string> | undefined;
1850
+ }) | (string & {
1851
+ type: HookType.PAUSABLE;
1852
+ owner: string;
1853
+ paused: boolean;
1854
+ ownerOverrides?: Record<string, string> | undefined;
1855
+ }) | (string & {
1856
+ type: HookType.OP_STACK;
1857
+ owner: string;
1858
+ nativeBridge: string;
1859
+ destinationChain: string;
1860
+ ownerOverrides?: Record<string, string> | undefined;
1861
+ }) | (string & {
1862
+ type: HookType.ARB_L2_TO_L1;
1863
+ destinationChain: string;
1864
+ arbSys: string;
1865
+ bridge?: string | undefined;
1866
+ childHook?: any;
1867
+ }) | (string & {
1868
+ type: HookType.MAILBOX_DEFAULT;
1869
+ }) | (string & {
1870
+ type: HookType.CCIP;
1871
+ destinationChain: string;
1872
+ }) | (string & {
1873
+ owner: string;
1874
+ ownerOverrides?: Record<string, string> | undefined;
1875
+ } & {
1876
+ domains: ChainMap<HookConfig>;
1877
+ } & {
1878
+ type: HookType.ROUTING;
1879
+ }) | (string & {
1880
+ owner: string;
1881
+ ownerOverrides?: Record<string, string> | undefined;
1882
+ } & {
1883
+ domains: ChainMap<HookConfig>;
1884
+ } & {
1885
+ type: HookType.FALLBACK_ROUTING;
1886
+ fallback: HookConfig;
1887
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
1888
+ type: HookType.MERKLE_TREE;
1889
+ } & string) | ({
1890
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1891
+ owner: string;
1892
+ beneficiary: string;
1893
+ oracleKey: string;
1894
+ overhead: Record<string, number>;
1895
+ oracleConfig: Record<string, {
1896
+ gasPrice: string;
1897
+ tokenExchangeRate: string;
1898
+ tokenDecimals?: number | undefined;
1899
+ }>;
1900
+ ownerOverrides?: Record<string, string> | undefined;
1901
+ } & string) | ({
1902
+ type: HookType.PROTOCOL_FEE;
1903
+ owner: string;
1904
+ protocolFee: string;
1905
+ beneficiary: string;
1906
+ maxProtocolFee: string;
1907
+ ownerOverrides?: Record<string, string> | undefined;
1908
+ } & string) | ({
1909
+ type: HookType.PAUSABLE;
1910
+ owner: string;
1911
+ paused: boolean;
1912
+ ownerOverrides?: Record<string, string> | undefined;
1913
+ } & string) | ({
1914
+ type: HookType.OP_STACK;
1915
+ owner: string;
1916
+ nativeBridge: string;
1917
+ destinationChain: string;
1918
+ ownerOverrides?: Record<string, string> | undefined;
1919
+ } & string) | ({
1920
+ type: HookType.ARB_L2_TO_L1;
1921
+ destinationChain: string;
1922
+ arbSys: string;
1923
+ bridge?: string | undefined;
1924
+ childHook?: any;
1925
+ } & string) | ({
1926
+ type: HookType.MAILBOX_DEFAULT;
1927
+ } & string) | ({
1928
+ type: HookType.CCIP;
1929
+ destinationChain: string;
1930
+ } & string) | ({
1931
+ owner: string;
1932
+ ownerOverrides?: Record<string, string> | undefined;
1933
+ } & {
1934
+ domains: ChainMap<HookConfig>;
1935
+ } & {
1936
+ type: HookType.ROUTING;
1937
+ } & string) | ({
1938
+ owner: string;
1939
+ ownerOverrides?: Record<string, string> | undefined;
1940
+ } & {
1941
+ domains: ChainMap<HookConfig>;
1942
+ } & {
1943
+ type: HookType.ROUTING;
1944
+ }) | ({
1945
+ owner: string;
1946
+ ownerOverrides?: Record<string, string> | undefined;
1947
+ } & {
1948
+ domains: ChainMap<HookConfig>;
1949
+ } & {
1950
+ type: HookType.FALLBACK_ROUTING;
1951
+ fallback: HookConfig;
1952
+ } & string) | ({
1953
+ owner: string;
1954
+ ownerOverrides?: Record<string, string> | undefined;
1955
+ } & {
1956
+ domains: ChainMap<HookConfig>;
1957
+ } & {
1958
+ type: HookType.FALLBACK_ROUTING;
1959
+ fallback: HookConfig;
1960
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string);
1961
+ }, {
1962
+ default: string | {
1963
+ type: HookType.MERKLE_TREE;
1964
+ } | {
1965
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1966
+ owner: string;
1967
+ beneficiary: string;
1968
+ oracleKey: string;
1969
+ overhead: Record<string, number>;
1970
+ oracleConfig: Record<string, {
1971
+ gasPrice: string;
1972
+ tokenExchangeRate: string;
1973
+ tokenDecimals?: number | undefined;
1974
+ }>;
1975
+ ownerOverrides?: Record<string, string> | undefined;
1976
+ } | {
1977
+ type: HookType.PROTOCOL_FEE;
1978
+ owner: string;
1979
+ protocolFee: string;
1980
+ beneficiary: string;
1981
+ maxProtocolFee: string;
1982
+ ownerOverrides?: Record<string, string> | undefined;
1983
+ } | {
1984
+ type: HookType.PAUSABLE;
1985
+ owner: string;
1986
+ paused: boolean;
1987
+ ownerOverrides?: Record<string, string> | undefined;
1988
+ } | {
1989
+ type: HookType.OP_STACK;
1990
+ owner: string;
1991
+ nativeBridge: string;
1992
+ destinationChain: string;
1993
+ ownerOverrides?: Record<string, string> | undefined;
1994
+ } | {
1995
+ type: HookType.ARB_L2_TO_L1;
1996
+ destinationChain: string;
1997
+ arbSys: string;
1998
+ bridge?: string | undefined;
1999
+ childHook?: any;
2000
+ } | {
2001
+ type: HookType.MAILBOX_DEFAULT;
2002
+ } | {
2003
+ type: HookType.CCIP;
2004
+ destinationChain: string;
2005
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
2006
+ owner: string;
2007
+ ownerOverrides?: Record<string, string> | undefined;
2008
+ } & {
2009
+ domains: ChainMap<HookConfig>;
2010
+ } & {
2011
+ type: HookType.ROUTING;
2012
+ }) | (string & {
2013
+ owner: string;
2014
+ ownerOverrides?: Record<string, string> | undefined;
2015
+ } & {
2016
+ domains: ChainMap<HookConfig>;
2017
+ } & {
2018
+ type: HookType.FALLBACK_ROUTING;
2019
+ fallback: HookConfig;
2020
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
2021
+ owner: string;
2022
+ ownerOverrides?: Record<string, string> | undefined;
2023
+ } & {
2024
+ domains: ChainMap<HookConfig>;
2025
+ } & {
2026
+ type: HookType.ROUTING;
2027
+ } & string) | ({
2028
+ owner: string;
2029
+ ownerOverrides?: Record<string, string> | undefined;
2030
+ } & {
2031
+ domains: ChainMap<HookConfig>;
2032
+ } & {
2033
+ type: HookType.ROUTING;
2034
+ }) | ({
2035
+ owner: string;
2036
+ ownerOverrides?: Record<string, string> | undefined;
2037
+ } & {
2038
+ domains: ChainMap<HookConfig>;
2039
+ } & {
2040
+ type: HookType.FALLBACK_ROUTING;
2041
+ fallback: HookConfig;
2042
+ } & string) | ({
2043
+ owner: string;
2044
+ ownerOverrides?: Record<string, string> | undefined;
2045
+ } & {
2046
+ domains: ChainMap<HookConfig>;
2047
+ } & {
2048
+ type: HookType.FALLBACK_ROUTING;
2049
+ fallback: HookConfig;
2050
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string) | (string & {
2051
+ type: HookType.MERKLE_TREE;
2052
+ }) | (string & {
2053
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2054
+ owner: string;
2055
+ beneficiary: string;
2056
+ oracleKey: string;
2057
+ overhead: Record<string, number>;
2058
+ oracleConfig: Record<string, {
2059
+ gasPrice: string;
2060
+ tokenExchangeRate: string;
2061
+ tokenDecimals?: number | undefined;
2062
+ }>;
2063
+ ownerOverrides?: Record<string, string> | undefined;
2064
+ }) | (string & {
2065
+ type: HookType.PROTOCOL_FEE;
2066
+ owner: string;
2067
+ protocolFee: string;
2068
+ beneficiary: string;
2069
+ maxProtocolFee: string;
2070
+ ownerOverrides?: Record<string, string> | undefined;
2071
+ }) | (string & {
2072
+ type: HookType.PAUSABLE;
2073
+ owner: string;
2074
+ paused: boolean;
2075
+ ownerOverrides?: Record<string, string> | undefined;
2076
+ }) | (string & {
2077
+ type: HookType.OP_STACK;
2078
+ owner: string;
2079
+ nativeBridge: string;
2080
+ destinationChain: string;
2081
+ ownerOverrides?: Record<string, string> | undefined;
2082
+ }) | (string & {
2083
+ type: HookType.ARB_L2_TO_L1;
2084
+ destinationChain: string;
2085
+ arbSys: string;
2086
+ bridge?: string | undefined;
2087
+ childHook?: any;
2088
+ }) | (string & {
2089
+ type: HookType.MAILBOX_DEFAULT;
2090
+ }) | (string & {
2091
+ type: HookType.CCIP;
2092
+ destinationChain: string;
2093
+ }) | ({
2094
+ type: HookType.MERKLE_TREE;
2095
+ } & string) | ({
2096
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2097
+ owner: string;
2098
+ beneficiary: string;
2099
+ oracleKey: string;
2100
+ overhead: Record<string, number>;
2101
+ oracleConfig: Record<string, {
2102
+ gasPrice: string;
2103
+ tokenExchangeRate: string;
2104
+ tokenDecimals?: number | undefined;
2105
+ }>;
2106
+ ownerOverrides?: Record<string, string> | undefined;
2107
+ } & string) | ({
2108
+ type: HookType.PROTOCOL_FEE;
2109
+ owner: string;
2110
+ protocolFee: string;
2111
+ beneficiary: string;
2112
+ maxProtocolFee: string;
2113
+ ownerOverrides?: Record<string, string> | undefined;
2114
+ } & string) | ({
2115
+ type: HookType.PAUSABLE;
2116
+ owner: string;
2117
+ paused: boolean;
2118
+ ownerOverrides?: Record<string, string> | undefined;
2119
+ } & string) | ({
2120
+ type: HookType.OP_STACK;
2121
+ owner: string;
2122
+ nativeBridge: string;
2123
+ destinationChain: string;
2124
+ ownerOverrides?: Record<string, string> | undefined;
2125
+ } & string) | ({
2126
+ type: HookType.ARB_L2_TO_L1;
2127
+ destinationChain: string;
2128
+ arbSys: string;
2129
+ bridge?: string | undefined;
2130
+ childHook?: any;
2131
+ } & string) | ({
2132
+ type: HookType.MAILBOX_DEFAULT;
2133
+ } & string) | ({
2134
+ type: HookType.CCIP;
2135
+ destinationChain: string;
2136
+ } & string);
2137
+ required: string | {
2138
+ type: HookType.MERKLE_TREE;
2139
+ } | {
2140
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2141
+ owner: string;
2142
+ beneficiary: string;
2143
+ oracleKey: string;
2144
+ overhead: Record<string, number>;
2145
+ oracleConfig: Record<string, {
2146
+ gasPrice: string;
2147
+ tokenExchangeRate: string;
2148
+ tokenDecimals?: number | undefined;
2149
+ }>;
2150
+ ownerOverrides?: Record<string, string> | undefined;
2151
+ } | {
2152
+ type: HookType.PROTOCOL_FEE;
2153
+ owner: string;
2154
+ protocolFee: string;
2155
+ beneficiary: string;
2156
+ maxProtocolFee: string;
2157
+ ownerOverrides?: Record<string, string> | undefined;
2158
+ } | {
2159
+ type: HookType.PAUSABLE;
2160
+ owner: string;
2161
+ paused: boolean;
2162
+ ownerOverrides?: Record<string, string> | undefined;
2163
+ } | {
2164
+ type: HookType.OP_STACK;
2165
+ owner: string;
2166
+ nativeBridge: string;
2167
+ destinationChain: string;
2168
+ ownerOverrides?: Record<string, string> | undefined;
2169
+ } | {
2170
+ type: HookType.ARB_L2_TO_L1;
2171
+ destinationChain: string;
2172
+ arbSys: string;
2173
+ bridge?: string | undefined;
2174
+ childHook?: any;
2175
+ } | {
2176
+ type: HookType.MAILBOX_DEFAULT;
2177
+ } | {
2178
+ type: HookType.CCIP;
2179
+ destinationChain: string;
2180
+ } | AmountRoutingHookConfig | AggregationHookConfig | (string & {
2181
+ owner: string;
2182
+ ownerOverrides?: Record<string, string> | undefined;
2183
+ } & {
2184
+ domains: ChainMap<HookConfig>;
2185
+ } & {
2186
+ type: HookType.ROUTING;
2187
+ }) | (string & {
2188
+ owner: string;
2189
+ ownerOverrides?: Record<string, string> | undefined;
2190
+ } & {
2191
+ domains: ChainMap<HookConfig>;
2192
+ } & {
2193
+ type: HookType.FALLBACK_ROUTING;
2194
+ fallback: HookConfig;
2195
+ }) | (string & AmountRoutingHookConfig) | (string & AggregationHookConfig) | ({
2196
+ owner: string;
2197
+ ownerOverrides?: Record<string, string> | undefined;
2198
+ } & {
2199
+ domains: ChainMap<HookConfig>;
2200
+ } & {
2201
+ type: HookType.ROUTING;
2202
+ } & string) | ({
2203
+ owner: string;
2204
+ ownerOverrides?: Record<string, string> | undefined;
2205
+ } & {
2206
+ domains: ChainMap<HookConfig>;
2207
+ } & {
2208
+ type: HookType.ROUTING;
2209
+ }) | ({
2210
+ owner: string;
2211
+ ownerOverrides?: Record<string, string> | undefined;
2212
+ } & {
2213
+ domains: ChainMap<HookConfig>;
2214
+ } & {
2215
+ type: HookType.FALLBACK_ROUTING;
2216
+ fallback: HookConfig;
2217
+ } & string) | ({
2218
+ owner: string;
2219
+ ownerOverrides?: Record<string, string> | undefined;
2220
+ } & {
2221
+ domains: ChainMap<HookConfig>;
2222
+ } & {
2223
+ type: HookType.FALLBACK_ROUTING;
2224
+ fallback: HookConfig;
2225
+ }) | (AmountRoutingHookConfig & string) | (AggregationHookConfig & string) | (string & {
2226
+ type: HookType.MERKLE_TREE;
2227
+ }) | (string & {
2228
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2229
+ owner: string;
2230
+ beneficiary: string;
2231
+ oracleKey: string;
2232
+ overhead: Record<string, number>;
2233
+ oracleConfig: Record<string, {
2234
+ gasPrice: string;
2235
+ tokenExchangeRate: string;
2236
+ tokenDecimals?: number | undefined;
2237
+ }>;
2238
+ ownerOverrides?: Record<string, string> | undefined;
2239
+ }) | (string & {
2240
+ type: HookType.PROTOCOL_FEE;
2241
+ owner: string;
2242
+ protocolFee: string;
2243
+ beneficiary: string;
2244
+ maxProtocolFee: string;
2245
+ ownerOverrides?: Record<string, string> | undefined;
2246
+ }) | (string & {
2247
+ type: HookType.PAUSABLE;
2248
+ owner: string;
2249
+ paused: boolean;
2250
+ ownerOverrides?: Record<string, string> | undefined;
2251
+ }) | (string & {
2252
+ type: HookType.OP_STACK;
2253
+ owner: string;
2254
+ nativeBridge: string;
2255
+ destinationChain: string;
2256
+ ownerOverrides?: Record<string, string> | undefined;
2257
+ }) | (string & {
2258
+ type: HookType.ARB_L2_TO_L1;
2259
+ destinationChain: string;
2260
+ arbSys: string;
2261
+ bridge?: string | undefined;
2262
+ childHook?: any;
2263
+ }) | (string & {
2264
+ type: HookType.MAILBOX_DEFAULT;
2265
+ }) | (string & {
2266
+ type: HookType.CCIP;
2267
+ destinationChain: string;
2268
+ }) | ({
2269
+ type: HookType.MERKLE_TREE;
2270
+ } & string) | ({
2271
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2272
+ owner: string;
2273
+ beneficiary: string;
2274
+ oracleKey: string;
2275
+ overhead: Record<string, number>;
2276
+ oracleConfig: Record<string, {
2277
+ gasPrice: string;
2278
+ tokenExchangeRate: string;
2279
+ tokenDecimals?: number | undefined;
2280
+ }>;
2281
+ ownerOverrides?: Record<string, string> | undefined;
2282
+ } & string) | ({
2283
+ type: HookType.PROTOCOL_FEE;
2284
+ owner: string;
2285
+ protocolFee: string;
2286
+ beneficiary: string;
2287
+ maxProtocolFee: string;
2288
+ ownerOverrides?: Record<string, string> | undefined;
2289
+ } & string) | ({
2290
+ type: HookType.PAUSABLE;
2291
+ owner: string;
2292
+ paused: boolean;
2293
+ ownerOverrides?: Record<string, string> | undefined;
2294
+ } & string) | ({
2295
+ type: HookType.OP_STACK;
2296
+ owner: string;
2297
+ nativeBridge: string;
2298
+ destinationChain: string;
2299
+ ownerOverrides?: Record<string, string> | undefined;
2300
+ } & string) | ({
2301
+ type: HookType.ARB_L2_TO_L1;
2302
+ destinationChain: string;
2303
+ arbSys: string;
2304
+ bridge?: string | undefined;
2305
+ childHook?: any;
2306
+ } & string) | ({
2307
+ type: HookType.MAILBOX_DEFAULT;
2308
+ } & string) | ({
2309
+ type: HookType.CCIP;
2310
+ destinationChain: string;
2311
+ } & string);
2312
+ }>>;
2313
+ export type HooksConfigMap = z.infer<typeof HooksConfigMapSchema>;
305
2314
  //# sourceMappingURL=types.d.ts.map