@hyperlane-xyz/sdk 35.2.0 → 36.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 (193) hide show
  1. package/dist/block-explorer/utils.d.ts +8 -0
  2. package/dist/block-explorer/utils.d.ts.map +1 -1
  3. package/dist/block-explorer/utils.js +16 -3
  4. package/dist/block-explorer/utils.js.map +1 -1
  5. package/dist/consts/multisigIsm.d.ts.map +1 -1
  6. package/dist/consts/multisigIsm.js +24 -5
  7. package/dist/consts/multisigIsm.js.map +1 -1
  8. package/dist/contracts/contracts.d.ts.map +1 -1
  9. package/dist/contracts/contracts.js +6 -1
  10. package/dist/contracts/contracts.js.map +1 -1
  11. package/dist/core/CoreDeployer.hardhat-test.js +9 -0
  12. package/dist/core/CoreDeployer.hardhat-test.js.map +1 -1
  13. package/dist/core/HyperlaneCoreDeployer.d.ts.map +1 -1
  14. package/dist/core/HyperlaneCoreDeployer.js +26 -8
  15. package/dist/core/HyperlaneCoreDeployer.js.map +1 -1
  16. package/dist/core/types.d.ts +608 -552
  17. package/dist/core/types.d.ts.map +1 -1
  18. package/dist/deploy/HyperlaneDeployer.d.ts +1 -0
  19. package/dist/deploy/HyperlaneDeployer.d.ts.map +1 -1
  20. package/dist/deploy/HyperlaneDeployer.js +17 -8
  21. package/dist/deploy/HyperlaneDeployer.js.map +1 -1
  22. package/dist/deploy/proxy.d.ts.map +1 -1
  23. package/dist/deploy/proxy.js +9 -5
  24. package/dist/deploy/proxy.js.map +1 -1
  25. package/dist/deploy/warp.d.ts.map +1 -1
  26. package/dist/deploy/warp.js +5 -0
  27. package/dist/deploy/warp.js.map +1 -1
  28. package/dist/fee/EvmTokenFeeReader.d.ts.map +1 -1
  29. package/dist/fee/EvmTokenFeeReader.js +3 -13
  30. package/dist/fee/EvmTokenFeeReader.js.map +1 -1
  31. package/dist/fee/feeConfigMapping.d.ts +9 -0
  32. package/dist/fee/feeConfigMapping.d.ts.map +1 -0
  33. package/dist/fee/feeConfigMapping.js +86 -0
  34. package/dist/fee/feeConfigMapping.js.map +1 -0
  35. package/dist/fee/feeConfigMapping.test.d.ts +2 -0
  36. package/dist/fee/feeConfigMapping.test.d.ts.map +1 -0
  37. package/dist/fee/feeConfigMapping.test.js +204 -0
  38. package/dist/fee/feeConfigMapping.test.js.map +1 -0
  39. package/dist/fee/types.d.ts +185 -113
  40. package/dist/fee/types.d.ts.map +1 -1
  41. package/dist/fee/types.js +13 -11
  42. package/dist/fee/types.js.map +1 -1
  43. package/dist/fee/utils.d.ts +1 -32
  44. package/dist/fee/utils.d.ts.map +1 -1
  45. package/dist/fee/utils.js +1 -47
  46. package/dist/fee/utils.js.map +1 -1
  47. package/dist/gas/HyperlaneIgpChecker.d.ts +1 -0
  48. package/dist/gas/HyperlaneIgpChecker.d.ts.map +1 -1
  49. package/dist/gas/HyperlaneIgpChecker.js +43 -1
  50. package/dist/gas/HyperlaneIgpChecker.js.map +1 -1
  51. package/dist/gas/HyperlaneIgpDeployer.d.ts.map +1 -1
  52. package/dist/gas/HyperlaneIgpDeployer.js +10 -8
  53. package/dist/gas/HyperlaneIgpDeployer.js.map +1 -1
  54. package/dist/gas/types.d.ts +9 -1
  55. package/dist/gas/types.d.ts.map +1 -1
  56. package/dist/gas/types.js +1 -0
  57. package/dist/gas/types.js.map +1 -1
  58. package/dist/hook/EvmHookModule.d.ts.map +1 -1
  59. package/dist/hook/EvmHookModule.js +13 -4
  60. package/dist/hook/EvmHookModule.js.map +1 -1
  61. package/dist/hook/EvmHookReader.d.ts +4 -4
  62. package/dist/hook/EvmHookReader.d.ts.map +1 -1
  63. package/dist/hook/EvmHookReader.js +50 -9
  64. package/dist/hook/EvmHookReader.js.map +1 -1
  65. package/dist/hook/EvmHookReader.test.js +106 -1
  66. package/dist/hook/EvmHookReader.test.js.map +1 -1
  67. package/dist/hook/types.d.ts +23 -306
  68. package/dist/hook/types.d.ts.map +1 -1
  69. package/dist/hook/types.js +2 -2
  70. package/dist/hook/types.js.map +1 -1
  71. package/dist/hook/types.test.js +169 -22
  72. package/dist/hook/types.test.js.map +1 -1
  73. package/dist/ica/types.d.ts +280 -194
  74. package/dist/ica/types.d.ts.map +1 -1
  75. package/dist/index.d.ts +4 -3
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +2 -1
  78. package/dist/index.js.map +1 -1
  79. package/dist/ism/EvmIsmModule.d.ts +7 -1
  80. package/dist/ism/EvmIsmModule.d.ts.map +1 -1
  81. package/dist/ism/EvmIsmModule.js +144 -2
  82. package/dist/ism/EvmIsmModule.js.map +1 -1
  83. package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -1
  84. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +17 -0
  85. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -1
  86. package/dist/ism/HyperlaneIsmFactory.js +35 -7
  87. package/dist/ism/HyperlaneIsmFactory.js.map +1 -1
  88. package/dist/ism/types.d.ts +88 -3
  89. package/dist/ism/types.d.ts.map +1 -1
  90. package/dist/ism/types.js +4 -0
  91. package/dist/ism/types.js.map +1 -1
  92. package/dist/metadata/ChainMetadataManager.d.ts.map +1 -1
  93. package/dist/metadata/ChainMetadataManager.js +2 -2
  94. package/dist/metadata/ChainMetadataManager.js.map +1 -1
  95. package/dist/metadata/ChainMetadataManager.test.js +71 -0
  96. package/dist/metadata/ChainMetadataManager.test.js.map +1 -1
  97. package/dist/metadata/agentConfig.d.ts +221 -4
  98. package/dist/metadata/agentConfig.d.ts.map +1 -1
  99. package/dist/metadata/agentConfig.js +19 -0
  100. package/dist/metadata/agentConfig.js.map +1 -1
  101. package/dist/middleware/account/InterchainAccount.d.ts.map +1 -1
  102. package/dist/middleware/account/InterchainAccount.js +10 -0
  103. package/dist/middleware/account/InterchainAccount.js.map +1 -1
  104. package/dist/middleware/account/InterchainAccount.test.js +26 -0
  105. package/dist/middleware/account/InterchainAccount.test.js.map +1 -1
  106. package/dist/providers/SmartProvider/SmartProvider.d.ts.map +1 -1
  107. package/dist/providers/SmartProvider/SmartProvider.js +69 -23
  108. package/dist/providers/SmartProvider/SmartProvider.js.map +1 -1
  109. package/dist/providers/SmartProvider/SmartProvider.test.js +34 -5
  110. package/dist/providers/SmartProvider/SmartProvider.test.js.map +1 -1
  111. package/dist/providers/transactions/submitter/IcaTxSubmitter.d.ts.map +1 -1
  112. package/dist/providers/transactions/submitter/IcaTxSubmitter.js +23 -8
  113. package/dist/providers/transactions/submitter/IcaTxSubmitter.js.map +1 -1
  114. package/dist/providers/transactions/submitter/IcaTxSubmitter.test.js +45 -0
  115. package/dist/providers/transactions/submitter/IcaTxSubmitter.test.js.map +1 -1
  116. package/dist/providers/transactions/submitter/ethersV5/types.d.ts +6 -0
  117. package/dist/providers/transactions/submitter/ethersV5/types.d.ts.map +1 -1
  118. package/dist/providers/transactions/submitter/ethersV5/types.js +26 -5
  119. package/dist/providers/transactions/submitter/ethersV5/types.js.map +1 -1
  120. package/dist/providers/transactions/submitter/submitterBuilderGetter.d.ts.map +1 -1
  121. package/dist/providers/transactions/submitter/submitterBuilderGetter.js +11 -1
  122. package/dist/providers/transactions/submitter/submitterBuilderGetter.js.map +1 -1
  123. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.d.ts +2 -0
  124. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.d.ts.map +1 -0
  125. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.js +38 -0
  126. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.js.map +1 -0
  127. package/dist/router/types.d.ts +331 -245
  128. package/dist/router/types.d.ts.map +1 -1
  129. package/dist/router/types.js +1 -0
  130. package/dist/router/types.js.map +1 -1
  131. package/dist/router/types.test.d.ts +2 -0
  132. package/dist/router/types.test.d.ts.map +1 -0
  133. package/dist/router/types.test.js +32 -0
  134. package/dist/router/types.test.js.map +1 -0
  135. package/dist/token/EvmWarpModule.d.ts +1 -0
  136. package/dist/token/EvmWarpModule.d.ts.map +1 -1
  137. package/dist/token/EvmWarpModule.hardhat-test.js +30 -0
  138. package/dist/token/EvmWarpModule.hardhat-test.js.map +1 -1
  139. package/dist/token/EvmWarpModule.js +27 -1
  140. package/dist/token/EvmWarpModule.js.map +1 -1
  141. package/dist/token/EvmWarpModule.test.d.ts +2 -0
  142. package/dist/token/EvmWarpModule.test.d.ts.map +1 -0
  143. package/dist/token/EvmWarpModule.test.js +77 -0
  144. package/dist/token/EvmWarpModule.test.js.map +1 -0
  145. package/dist/token/EvmWarpRouteReader.d.ts +1 -0
  146. package/dist/token/EvmWarpRouteReader.d.ts.map +1 -1
  147. package/dist/token/EvmWarpRouteReader.js +17 -0
  148. package/dist/token/EvmWarpRouteReader.js.map +1 -1
  149. package/dist/token/EvmXERC20Module.d.ts +31 -26
  150. package/dist/token/EvmXERC20Module.d.ts.map +1 -1
  151. package/dist/token/EvmXERC20Module.js +46 -3
  152. package/dist/token/EvmXERC20Module.js.map +1 -1
  153. package/dist/token/EvmXERC20Module.test.js +162 -1
  154. package/dist/token/EvmXERC20Module.test.js.map +1 -1
  155. package/dist/token/EvmXERC20Reader.d.ts +17 -0
  156. package/dist/token/EvmXERC20Reader.d.ts.map +1 -1
  157. package/dist/token/EvmXERC20Reader.js +37 -1
  158. package/dist/token/EvmXERC20Reader.js.map +1 -1
  159. package/dist/token/adapters/EvmHypSyntheticAdapter.test.d.ts +2 -0
  160. package/dist/token/adapters/EvmHypSyntheticAdapter.test.d.ts.map +1 -0
  161. package/dist/token/adapters/EvmHypSyntheticAdapter.test.js +96 -0
  162. package/dist/token/adapters/EvmHypSyntheticAdapter.test.js.map +1 -0
  163. package/dist/token/adapters/EvmTokenAdapter.d.ts.map +1 -1
  164. package/dist/token/adapters/EvmTokenAdapter.js +25 -12
  165. package/dist/token/adapters/EvmTokenAdapter.js.map +1 -1
  166. package/dist/token/configUtils.test.js.map +1 -1
  167. package/dist/token/deploy.d.ts +1 -0
  168. package/dist/token/deploy.d.ts.map +1 -1
  169. package/dist/token/deploy.js +13 -0
  170. package/dist/token/deploy.js.map +1 -1
  171. package/dist/token/types.d.ts +991 -642
  172. package/dist/token/types.d.ts.map +1 -1
  173. package/dist/token/types.test.js +11 -0
  174. package/dist/token/types.test.js.map +1 -1
  175. package/dist/token/xerc20.d.ts.map +1 -1
  176. package/dist/token/xerc20.js +10 -2
  177. package/dist/token/xerc20.js.map +1 -1
  178. package/dist/token/xerc20.test.d.ts +2 -0
  179. package/dist/token/xerc20.test.d.ts.map +1 -0
  180. package/dist/token/xerc20.test.js +143 -0
  181. package/dist/token/xerc20.test.js.map +1 -0
  182. package/dist/utils/contract.d.ts +4 -0
  183. package/dist/utils/contract.d.ts.map +1 -1
  184. package/dist/utils/contract.js +4 -0
  185. package/dist/utils/contract.js.map +1 -1
  186. package/dist/utils/gas.d.ts +1 -0
  187. package/dist/utils/gas.d.ts.map +1 -1
  188. package/dist/utils/gas.js +1 -0
  189. package/dist/utils/gas.js.map +1 -1
  190. package/dist/warp/WarpCore.d.ts.map +1 -1
  191. package/dist/warp/WarpCore.js +4 -3
  192. package/dist/warp/WarpCore.js.map +1 -1
  193. package/package.json +10 -10
@@ -111,15 +111,15 @@ export declare const ProtocolFeeSchema: z.ZodObject<{
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  type: "protocolFee";
113
113
  owner: string;
114
- protocolFee: string;
115
114
  beneficiary: string;
115
+ protocolFee: string;
116
116
  maxProtocolFee: string;
117
117
  ownerOverrides?: Record<string, string> | undefined;
118
118
  }, {
119
119
  type: "protocolFee";
120
120
  owner: string;
121
- protocolFee: string;
122
121
  beneficiary: string;
122
+ protocolFee: string;
123
123
  maxProtocolFee: string;
124
124
  ownerOverrides?: Record<string, string> | undefined;
125
125
  }>;
@@ -241,38 +241,14 @@ export declare const IgpSchema: z.ZodObject<{
241
241
  tokenExchangeRate: z.ZodString;
242
242
  } & {
243
243
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
244
- } & {
245
- typicalCost: z.ZodOptional<z.ZodObject<{
246
- handleGasAmount: z.ZodNumber;
247
- totalGasAmount: z.ZodNumber;
248
- totalUsdCost: z.ZodNumber;
249
- }, "strip", z.ZodTypeAny, {
250
- handleGasAmount: number;
251
- totalGasAmount: number;
252
- totalUsdCost: number;
253
- }, {
254
- handleGasAmount: number;
255
- totalGasAmount: number;
256
- totalUsdCost: number;
257
- }>>;
258
244
  }, "strip", z.ZodTypeAny, {
259
245
  gasPrice: string;
260
246
  tokenExchangeRate: string;
261
247
  tokenDecimals?: number | undefined;
262
- typicalCost?: {
263
- handleGasAmount: number;
264
- totalGasAmount: number;
265
- totalUsdCost: number;
266
- } | undefined;
267
248
  }, {
268
249
  gasPrice: string;
269
250
  tokenExchangeRate: string;
270
251
  tokenDecimals?: number | undefined;
271
- typicalCost?: {
272
- handleGasAmount: number;
273
- totalGasAmount: number;
274
- totalUsdCost: number;
275
- } | undefined;
276
252
  }>>>>;
277
253
  }, "strip", z.ZodTypeAny, {
278
254
  type: "interchainGasPaymaster";
@@ -298,11 +274,6 @@ export declare const IgpSchema: z.ZodObject<{
298
274
  gasPrice: string;
299
275
  tokenExchangeRate: string;
300
276
  tokenDecimals?: number | undefined;
301
- typicalCost?: {
302
- handleGasAmount: number;
303
- totalGasAmount: number;
304
- totalUsdCost: number;
305
- } | undefined;
306
277
  }>> | undefined;
307
278
  }, {
308
279
  type: "interchainGasPaymaster";
@@ -328,11 +299,6 @@ export declare const IgpSchema: z.ZodObject<{
328
299
  gasPrice: string;
329
300
  tokenExchangeRate: string;
330
301
  tokenDecimals?: number | undefined;
331
- typicalCost?: {
332
- handleGasAmount: number;
333
- totalGasAmount: number;
334
- totalUsdCost: number;
335
- } | undefined;
336
302
  }>> | undefined;
337
303
  }>;
338
304
  export declare const DomainRoutingHookConfigSchema: z.ZodSchema<DomainRoutingHookConfig>;
@@ -425,15 +391,15 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
425
391
  }, "strip", z.ZodTypeAny, {
426
392
  type: "protocolFee";
427
393
  owner: string;
428
- protocolFee: string;
429
394
  beneficiary: string;
395
+ protocolFee: string;
430
396
  maxProtocolFee: string;
431
397
  ownerOverrides?: Record<string, string> | undefined;
432
398
  }, {
433
399
  type: "protocolFee";
434
400
  owner: string;
435
- protocolFee: string;
436
401
  beneficiary: string;
402
+ protocolFee: string;
437
403
  maxProtocolFee: string;
438
404
  ownerOverrides?: Record<string, string> | undefined;
439
405
  }>, z.ZodObject<{
@@ -532,38 +498,14 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
532
498
  tokenExchangeRate: z.ZodString;
533
499
  } & {
534
500
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
535
- } & {
536
- typicalCost: z.ZodOptional<z.ZodObject<{
537
- handleGasAmount: z.ZodNumber;
538
- totalGasAmount: z.ZodNumber;
539
- totalUsdCost: z.ZodNumber;
540
- }, "strip", z.ZodTypeAny, {
541
- handleGasAmount: number;
542
- totalGasAmount: number;
543
- totalUsdCost: number;
544
- }, {
545
- handleGasAmount: number;
546
- totalGasAmount: number;
547
- totalUsdCost: number;
548
- }>>;
549
501
  }, "strip", z.ZodTypeAny, {
550
502
  gasPrice: string;
551
503
  tokenExchangeRate: string;
552
504
  tokenDecimals?: number | undefined;
553
- typicalCost?: {
554
- handleGasAmount: number;
555
- totalGasAmount: number;
556
- totalUsdCost: number;
557
- } | undefined;
558
505
  }, {
559
506
  gasPrice: string;
560
507
  tokenExchangeRate: string;
561
508
  tokenDecimals?: number | undefined;
562
- typicalCost?: {
563
- handleGasAmount: number;
564
- totalGasAmount: number;
565
- totalUsdCost: number;
566
- } | undefined;
567
509
  }>>>>;
568
510
  }, "strip", z.ZodTypeAny, {
569
511
  type: "interchainGasPaymaster";
@@ -589,11 +531,6 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
589
531
  gasPrice: string;
590
532
  tokenExchangeRate: string;
591
533
  tokenDecimals?: number | undefined;
592
- typicalCost?: {
593
- handleGasAmount: number;
594
- totalGasAmount: number;
595
- totalUsdCost: number;
596
- } | undefined;
597
534
  }>> | undefined;
598
535
  }, {
599
536
  type: "interchainGasPaymaster";
@@ -619,11 +556,6 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
619
556
  gasPrice: string;
620
557
  tokenExchangeRate: string;
621
558
  tokenDecimals?: number | undefined;
622
- typicalCost?: {
623
- handleGasAmount: number;
624
- totalGasAmount: number;
625
- totalUsdCost: number;
626
- } | undefined;
627
559
  }>> | undefined;
628
560
  }>, 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.ZodType<ArbL2ToL1HookConfig, z.ZodTypeDef, ArbL2ToL1HookConfig>, z.ZodObject<{
629
561
  type: z.ZodLiteral<"defaultHook">;
@@ -717,15 +649,15 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
717
649
  }, "strip", z.ZodTypeAny, {
718
650
  type: "protocolFee";
719
651
  owner: string;
720
- protocolFee: string;
721
652
  beneficiary: string;
653
+ protocolFee: string;
722
654
  maxProtocolFee: string;
723
655
  ownerOverrides?: Record<string, string> | undefined;
724
656
  }, {
725
657
  type: "protocolFee";
726
658
  owner: string;
727
- protocolFee: string;
728
659
  beneficiary: string;
660
+ protocolFee: string;
729
661
  maxProtocolFee: string;
730
662
  ownerOverrides?: Record<string, string> | undefined;
731
663
  }>, z.ZodObject<{
@@ -824,38 +756,14 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
824
756
  tokenExchangeRate: z.ZodString;
825
757
  } & {
826
758
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
827
- } & {
828
- typicalCost: z.ZodOptional<z.ZodObject<{
829
- handleGasAmount: z.ZodNumber;
830
- totalGasAmount: z.ZodNumber;
831
- totalUsdCost: z.ZodNumber;
832
- }, "strip", z.ZodTypeAny, {
833
- handleGasAmount: number;
834
- totalGasAmount: number;
835
- totalUsdCost: number;
836
- }, {
837
- handleGasAmount: number;
838
- totalGasAmount: number;
839
- totalUsdCost: number;
840
- }>>;
841
759
  }, "strip", z.ZodTypeAny, {
842
760
  gasPrice: string;
843
761
  tokenExchangeRate: string;
844
762
  tokenDecimals?: number | undefined;
845
- typicalCost?: {
846
- handleGasAmount: number;
847
- totalGasAmount: number;
848
- totalUsdCost: number;
849
- } | undefined;
850
763
  }, {
851
764
  gasPrice: string;
852
765
  tokenExchangeRate: string;
853
766
  tokenDecimals?: number | undefined;
854
- typicalCost?: {
855
- handleGasAmount: number;
856
- totalGasAmount: number;
857
- totalUsdCost: number;
858
- } | undefined;
859
767
  }>>>>;
860
768
  }, "strip", z.ZodTypeAny, {
861
769
  type: "interchainGasPaymaster";
@@ -881,11 +789,6 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
881
789
  gasPrice: string;
882
790
  tokenExchangeRate: string;
883
791
  tokenDecimals?: number | undefined;
884
- typicalCost?: {
885
- handleGasAmount: number;
886
- totalGasAmount: number;
887
- totalUsdCost: number;
888
- } | undefined;
889
792
  }>> | undefined;
890
793
  }, {
891
794
  type: "interchainGasPaymaster";
@@ -911,11 +814,6 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
911
814
  gasPrice: string;
912
815
  tokenExchangeRate: string;
913
816
  tokenDecimals?: number | undefined;
914
- typicalCost?: {
915
- handleGasAmount: number;
916
- totalGasAmount: number;
917
- totalUsdCost: number;
918
- } | undefined;
919
817
  }>> | undefined;
920
818
  }>, 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.ZodType<ArbL2ToL1HookConfig, z.ZodTypeDef, ArbL2ToL1HookConfig>, z.ZodObject<{
921
819
  type: z.ZodLiteral<"defaultHook">;
@@ -1018,17 +916,12 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
1018
916
  gasPrice: string;
1019
917
  tokenExchangeRate: string;
1020
918
  tokenDecimals?: number | undefined;
1021
- typicalCost?: {
1022
- handleGasAmount: number;
1023
- totalGasAmount: number;
1024
- totalUsdCost: number;
1025
- } | undefined;
1026
919
  }>> | undefined;
1027
920
  } | {
1028
921
  type: "protocolFee";
1029
922
  owner: string;
1030
- protocolFee: string;
1031
923
  beneficiary: string;
924
+ protocolFee: string;
1032
925
  maxProtocolFee: string;
1033
926
  ownerOverrides?: Record<string, string> | undefined;
1034
927
  } | {
@@ -1073,15 +966,15 @@ export declare const HooksConfigSchema: z.ZodObject<{
1073
966
  }, "strip", z.ZodTypeAny, {
1074
967
  type: "protocolFee";
1075
968
  owner: string;
1076
- protocolFee: string;
1077
969
  beneficiary: string;
970
+ protocolFee: string;
1078
971
  maxProtocolFee: string;
1079
972
  ownerOverrides?: Record<string, string> | undefined;
1080
973
  }, {
1081
974
  type: "protocolFee";
1082
975
  owner: string;
1083
- protocolFee: string;
1084
976
  beneficiary: string;
977
+ protocolFee: string;
1085
978
  maxProtocolFee: string;
1086
979
  ownerOverrides?: Record<string, string> | undefined;
1087
980
  }>, z.ZodObject<{
@@ -1180,38 +1073,14 @@ export declare const HooksConfigSchema: z.ZodObject<{
1180
1073
  tokenExchangeRate: z.ZodString;
1181
1074
  } & {
1182
1075
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
1183
- } & {
1184
- typicalCost: z.ZodOptional<z.ZodObject<{
1185
- handleGasAmount: z.ZodNumber;
1186
- totalGasAmount: z.ZodNumber;
1187
- totalUsdCost: z.ZodNumber;
1188
- }, "strip", z.ZodTypeAny, {
1189
- handleGasAmount: number;
1190
- totalGasAmount: number;
1191
- totalUsdCost: number;
1192
- }, {
1193
- handleGasAmount: number;
1194
- totalGasAmount: number;
1195
- totalUsdCost: number;
1196
- }>>;
1197
1076
  }, "strip", z.ZodTypeAny, {
1198
1077
  gasPrice: string;
1199
1078
  tokenExchangeRate: string;
1200
1079
  tokenDecimals?: number | undefined;
1201
- typicalCost?: {
1202
- handleGasAmount: number;
1203
- totalGasAmount: number;
1204
- totalUsdCost: number;
1205
- } | undefined;
1206
1080
  }, {
1207
1081
  gasPrice: string;
1208
1082
  tokenExchangeRate: string;
1209
1083
  tokenDecimals?: number | undefined;
1210
- typicalCost?: {
1211
- handleGasAmount: number;
1212
- totalGasAmount: number;
1213
- totalUsdCost: number;
1214
- } | undefined;
1215
1084
  }>>>>;
1216
1085
  }, "strip", z.ZodTypeAny, {
1217
1086
  type: "interchainGasPaymaster";
@@ -1237,11 +1106,6 @@ export declare const HooksConfigSchema: z.ZodObject<{
1237
1106
  gasPrice: string;
1238
1107
  tokenExchangeRate: string;
1239
1108
  tokenDecimals?: number | undefined;
1240
- typicalCost?: {
1241
- handleGasAmount: number;
1242
- totalGasAmount: number;
1243
- totalUsdCost: number;
1244
- } | undefined;
1245
1109
  }>> | undefined;
1246
1110
  }, {
1247
1111
  type: "interchainGasPaymaster";
@@ -1267,11 +1131,6 @@ export declare const HooksConfigSchema: z.ZodObject<{
1267
1131
  gasPrice: string;
1268
1132
  tokenExchangeRate: string;
1269
1133
  tokenDecimals?: number | undefined;
1270
- typicalCost?: {
1271
- handleGasAmount: number;
1272
- totalGasAmount: number;
1273
- totalUsdCost: number;
1274
- } | undefined;
1275
1134
  }>> | undefined;
1276
1135
  }>, 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.ZodType<ArbL2ToL1HookConfig, z.ZodTypeDef, ArbL2ToL1HookConfig>, z.ZodObject<{
1277
1136
  type: z.ZodLiteral<"defaultHook">;
@@ -1360,15 +1219,15 @@ export declare const HooksConfigSchema: z.ZodObject<{
1360
1219
  }, "strip", z.ZodTypeAny, {
1361
1220
  type: "protocolFee";
1362
1221
  owner: string;
1363
- protocolFee: string;
1364
1222
  beneficiary: string;
1223
+ protocolFee: string;
1365
1224
  maxProtocolFee: string;
1366
1225
  ownerOverrides?: Record<string, string> | undefined;
1367
1226
  }, {
1368
1227
  type: "protocolFee";
1369
1228
  owner: string;
1370
- protocolFee: string;
1371
1229
  beneficiary: string;
1230
+ protocolFee: string;
1372
1231
  maxProtocolFee: string;
1373
1232
  ownerOverrides?: Record<string, string> | undefined;
1374
1233
  }>, z.ZodObject<{
@@ -1467,38 +1326,14 @@ export declare const HooksConfigSchema: z.ZodObject<{
1467
1326
  tokenExchangeRate: z.ZodString;
1468
1327
  } & {
1469
1328
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
1470
- } & {
1471
- typicalCost: z.ZodOptional<z.ZodObject<{
1472
- handleGasAmount: z.ZodNumber;
1473
- totalGasAmount: z.ZodNumber;
1474
- totalUsdCost: z.ZodNumber;
1475
- }, "strip", z.ZodTypeAny, {
1476
- handleGasAmount: number;
1477
- totalGasAmount: number;
1478
- totalUsdCost: number;
1479
- }, {
1480
- handleGasAmount: number;
1481
- totalGasAmount: number;
1482
- totalUsdCost: number;
1483
- }>>;
1484
1329
  }, "strip", z.ZodTypeAny, {
1485
1330
  gasPrice: string;
1486
1331
  tokenExchangeRate: string;
1487
1332
  tokenDecimals?: number | undefined;
1488
- typicalCost?: {
1489
- handleGasAmount: number;
1490
- totalGasAmount: number;
1491
- totalUsdCost: number;
1492
- } | undefined;
1493
1333
  }, {
1494
1334
  gasPrice: string;
1495
1335
  tokenExchangeRate: string;
1496
1336
  tokenDecimals?: number | undefined;
1497
- typicalCost?: {
1498
- handleGasAmount: number;
1499
- totalGasAmount: number;
1500
- totalUsdCost: number;
1501
- } | undefined;
1502
1337
  }>>>>;
1503
1338
  }, "strip", z.ZodTypeAny, {
1504
1339
  type: "interchainGasPaymaster";
@@ -1524,11 +1359,6 @@ export declare const HooksConfigSchema: z.ZodObject<{
1524
1359
  gasPrice: string;
1525
1360
  tokenExchangeRate: string;
1526
1361
  tokenDecimals?: number | undefined;
1527
- typicalCost?: {
1528
- handleGasAmount: number;
1529
- totalGasAmount: number;
1530
- totalUsdCost: number;
1531
- } | undefined;
1532
1362
  }>> | undefined;
1533
1363
  }, {
1534
1364
  type: "interchainGasPaymaster";
@@ -1554,11 +1384,6 @@ export declare const HooksConfigSchema: z.ZodObject<{
1554
1384
  gasPrice: string;
1555
1385
  tokenExchangeRate: string;
1556
1386
  tokenDecimals?: number | undefined;
1557
- typicalCost?: {
1558
- handleGasAmount: number;
1559
- totalGasAmount: number;
1560
- totalUsdCost: number;
1561
- } | undefined;
1562
1387
  }>> | undefined;
1563
1388
  }>, 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.ZodType<ArbL2ToL1HookConfig, z.ZodTypeDef, ArbL2ToL1HookConfig>, z.ZodObject<{
1564
1389
  type: z.ZodLiteral<"defaultHook">;
@@ -1663,17 +1488,12 @@ export declare const HooksConfigSchema: z.ZodObject<{
1663
1488
  gasPrice: string;
1664
1489
  tokenExchangeRate: string;
1665
1490
  tokenDecimals?: number | undefined;
1666
- typicalCost?: {
1667
- handleGasAmount: number;
1668
- totalGasAmount: number;
1669
- totalUsdCost: number;
1670
- } | undefined;
1671
1491
  }>> | undefined;
1672
1492
  } | {
1673
1493
  type: "protocolFee";
1674
1494
  owner: string;
1675
- protocolFee: string;
1676
1495
  beneficiary: string;
1496
+ protocolFee: string;
1677
1497
  maxProtocolFee: string;
1678
1498
  ownerOverrides?: Record<string, string> | undefined;
1679
1499
  } | {
@@ -1732,17 +1552,12 @@ export declare const HooksConfigSchema: z.ZodObject<{
1732
1552
  gasPrice: string;
1733
1553
  tokenExchangeRate: string;
1734
1554
  tokenDecimals?: number | undefined;
1735
- typicalCost?: {
1736
- handleGasAmount: number;
1737
- totalGasAmount: number;
1738
- totalUsdCost: number;
1739
- } | undefined;
1740
1555
  }>> | undefined;
1741
1556
  } | {
1742
1557
  type: "protocolFee";
1743
1558
  owner: string;
1744
- protocolFee: string;
1745
1559
  beneficiary: string;
1560
+ protocolFee: string;
1746
1561
  maxProtocolFee: string;
1747
1562
  ownerOverrides?: Record<string, string> | undefined;
1748
1563
  } | {
@@ -1802,17 +1617,12 @@ export declare const HooksConfigSchema: z.ZodObject<{
1802
1617
  gasPrice: string;
1803
1618
  tokenExchangeRate: string;
1804
1619
  tokenDecimals?: number | undefined;
1805
- typicalCost?: {
1806
- handleGasAmount: number;
1807
- totalGasAmount: number;
1808
- totalUsdCost: number;
1809
- } | undefined;
1810
1620
  }>> | undefined;
1811
1621
  } | {
1812
1622
  type: "protocolFee";
1813
1623
  owner: string;
1814
- protocolFee: string;
1815
1624
  beneficiary: string;
1625
+ protocolFee: string;
1816
1626
  maxProtocolFee: string;
1817
1627
  ownerOverrides?: Record<string, string> | undefined;
1818
1628
  } | {
@@ -1871,17 +1681,12 @@ export declare const HooksConfigSchema: z.ZodObject<{
1871
1681
  gasPrice: string;
1872
1682
  tokenExchangeRate: string;
1873
1683
  tokenDecimals?: number | undefined;
1874
- typicalCost?: {
1875
- handleGasAmount: number;
1876
- totalGasAmount: number;
1877
- totalUsdCost: number;
1878
- } | undefined;
1879
1684
  }>> | undefined;
1880
1685
  } | {
1881
1686
  type: "protocolFee";
1882
1687
  owner: string;
1883
- protocolFee: string;
1884
1688
  beneficiary: string;
1689
+ protocolFee: string;
1885
1690
  maxProtocolFee: string;
1886
1691
  ownerOverrides?: Record<string, string> | undefined;
1887
1692
  } | {
@@ -1928,15 +1733,15 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
1928
1733
  }, "strip", z.ZodTypeAny, {
1929
1734
  type: "protocolFee";
1930
1735
  owner: string;
1931
- protocolFee: string;
1932
1736
  beneficiary: string;
1737
+ protocolFee: string;
1933
1738
  maxProtocolFee: string;
1934
1739
  ownerOverrides?: Record<string, string> | undefined;
1935
1740
  }, {
1936
1741
  type: "protocolFee";
1937
1742
  owner: string;
1938
- protocolFee: string;
1939
1743
  beneficiary: string;
1744
+ protocolFee: string;
1940
1745
  maxProtocolFee: string;
1941
1746
  ownerOverrides?: Record<string, string> | undefined;
1942
1747
  }>, z.ZodObject<{
@@ -2035,38 +1840,14 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2035
1840
  tokenExchangeRate: z.ZodString;
2036
1841
  } & {
2037
1842
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
2038
- } & {
2039
- typicalCost: z.ZodOptional<z.ZodObject<{
2040
- handleGasAmount: z.ZodNumber;
2041
- totalGasAmount: z.ZodNumber;
2042
- totalUsdCost: z.ZodNumber;
2043
- }, "strip", z.ZodTypeAny, {
2044
- handleGasAmount: number;
2045
- totalGasAmount: number;
2046
- totalUsdCost: number;
2047
- }, {
2048
- handleGasAmount: number;
2049
- totalGasAmount: number;
2050
- totalUsdCost: number;
2051
- }>>;
2052
1843
  }, "strip", z.ZodTypeAny, {
2053
1844
  gasPrice: string;
2054
1845
  tokenExchangeRate: string;
2055
1846
  tokenDecimals?: number | undefined;
2056
- typicalCost?: {
2057
- handleGasAmount: number;
2058
- totalGasAmount: number;
2059
- totalUsdCost: number;
2060
- } | undefined;
2061
1847
  }, {
2062
1848
  gasPrice: string;
2063
1849
  tokenExchangeRate: string;
2064
1850
  tokenDecimals?: number | undefined;
2065
- typicalCost?: {
2066
- handleGasAmount: number;
2067
- totalGasAmount: number;
2068
- totalUsdCost: number;
2069
- } | undefined;
2070
1851
  }>>>>;
2071
1852
  }, "strip", z.ZodTypeAny, {
2072
1853
  type: "interchainGasPaymaster";
@@ -2092,11 +1873,6 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2092
1873
  gasPrice: string;
2093
1874
  tokenExchangeRate: string;
2094
1875
  tokenDecimals?: number | undefined;
2095
- typicalCost?: {
2096
- handleGasAmount: number;
2097
- totalGasAmount: number;
2098
- totalUsdCost: number;
2099
- } | undefined;
2100
1876
  }>> | undefined;
2101
1877
  }, {
2102
1878
  type: "interchainGasPaymaster";
@@ -2122,11 +1898,6 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2122
1898
  gasPrice: string;
2123
1899
  tokenExchangeRate: string;
2124
1900
  tokenDecimals?: number | undefined;
2125
- typicalCost?: {
2126
- handleGasAmount: number;
2127
- totalGasAmount: number;
2128
- totalUsdCost: number;
2129
- } | undefined;
2130
1901
  }>> | undefined;
2131
1902
  }>, 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.ZodType<ArbL2ToL1HookConfig, z.ZodTypeDef, ArbL2ToL1HookConfig>, z.ZodObject<{
2132
1903
  type: z.ZodLiteral<"defaultHook">;
@@ -2215,15 +1986,15 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2215
1986
  }, "strip", z.ZodTypeAny, {
2216
1987
  type: "protocolFee";
2217
1988
  owner: string;
2218
- protocolFee: string;
2219
1989
  beneficiary: string;
1990
+ protocolFee: string;
2220
1991
  maxProtocolFee: string;
2221
1992
  ownerOverrides?: Record<string, string> | undefined;
2222
1993
  }, {
2223
1994
  type: "protocolFee";
2224
1995
  owner: string;
2225
- protocolFee: string;
2226
1996
  beneficiary: string;
1997
+ protocolFee: string;
2227
1998
  maxProtocolFee: string;
2228
1999
  ownerOverrides?: Record<string, string> | undefined;
2229
2000
  }>, z.ZodObject<{
@@ -2322,38 +2093,14 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2322
2093
  tokenExchangeRate: z.ZodString;
2323
2094
  } & {
2324
2095
  tokenDecimals: z.ZodOptional<z.ZodNumber>;
2325
- } & {
2326
- typicalCost: z.ZodOptional<z.ZodObject<{
2327
- handleGasAmount: z.ZodNumber;
2328
- totalGasAmount: z.ZodNumber;
2329
- totalUsdCost: z.ZodNumber;
2330
- }, "strip", z.ZodTypeAny, {
2331
- handleGasAmount: number;
2332
- totalGasAmount: number;
2333
- totalUsdCost: number;
2334
- }, {
2335
- handleGasAmount: number;
2336
- totalGasAmount: number;
2337
- totalUsdCost: number;
2338
- }>>;
2339
2096
  }, "strip", z.ZodTypeAny, {
2340
2097
  gasPrice: string;
2341
2098
  tokenExchangeRate: string;
2342
2099
  tokenDecimals?: number | undefined;
2343
- typicalCost?: {
2344
- handleGasAmount: number;
2345
- totalGasAmount: number;
2346
- totalUsdCost: number;
2347
- } | undefined;
2348
2100
  }, {
2349
2101
  gasPrice: string;
2350
2102
  tokenExchangeRate: string;
2351
2103
  tokenDecimals?: number | undefined;
2352
- typicalCost?: {
2353
- handleGasAmount: number;
2354
- totalGasAmount: number;
2355
- totalUsdCost: number;
2356
- } | undefined;
2357
2104
  }>>>>;
2358
2105
  }, "strip", z.ZodTypeAny, {
2359
2106
  type: "interchainGasPaymaster";
@@ -2379,11 +2126,6 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2379
2126
  gasPrice: string;
2380
2127
  tokenExchangeRate: string;
2381
2128
  tokenDecimals?: number | undefined;
2382
- typicalCost?: {
2383
- handleGasAmount: number;
2384
- totalGasAmount: number;
2385
- totalUsdCost: number;
2386
- } | undefined;
2387
2129
  }>> | undefined;
2388
2130
  }, {
2389
2131
  type: "interchainGasPaymaster";
@@ -2409,11 +2151,6 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2409
2151
  gasPrice: string;
2410
2152
  tokenExchangeRate: string;
2411
2153
  tokenDecimals?: number | undefined;
2412
- typicalCost?: {
2413
- handleGasAmount: number;
2414
- totalGasAmount: number;
2415
- totalUsdCost: number;
2416
- } | undefined;
2417
2154
  }>> | undefined;
2418
2155
  }>, 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.ZodType<ArbL2ToL1HookConfig, z.ZodTypeDef, ArbL2ToL1HookConfig>, z.ZodObject<{
2419
2156
  type: z.ZodLiteral<"defaultHook">;
@@ -2518,17 +2255,12 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2518
2255
  gasPrice: string;
2519
2256
  tokenExchangeRate: string;
2520
2257
  tokenDecimals?: number | undefined;
2521
- typicalCost?: {
2522
- handleGasAmount: number;
2523
- totalGasAmount: number;
2524
- totalUsdCost: number;
2525
- } | undefined;
2526
2258
  }>> | undefined;
2527
2259
  } | {
2528
2260
  type: "protocolFee";
2529
2261
  owner: string;
2530
- protocolFee: string;
2531
2262
  beneficiary: string;
2263
+ protocolFee: string;
2532
2264
  maxProtocolFee: string;
2533
2265
  ownerOverrides?: Record<string, string> | undefined;
2534
2266
  } | {
@@ -2587,17 +2319,12 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2587
2319
  gasPrice: string;
2588
2320
  tokenExchangeRate: string;
2589
2321
  tokenDecimals?: number | undefined;
2590
- typicalCost?: {
2591
- handleGasAmount: number;
2592
- totalGasAmount: number;
2593
- totalUsdCost: number;
2594
- } | undefined;
2595
2322
  }>> | undefined;
2596
2323
  } | {
2597
2324
  type: "protocolFee";
2598
2325
  owner: string;
2599
- protocolFee: string;
2600
2326
  beneficiary: string;
2327
+ protocolFee: string;
2601
2328
  maxProtocolFee: string;
2602
2329
  ownerOverrides?: Record<string, string> | undefined;
2603
2330
  } | {
@@ -2657,17 +2384,12 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2657
2384
  gasPrice: string;
2658
2385
  tokenExchangeRate: string;
2659
2386
  tokenDecimals?: number | undefined;
2660
- typicalCost?: {
2661
- handleGasAmount: number;
2662
- totalGasAmount: number;
2663
- totalUsdCost: number;
2664
- } | undefined;
2665
2387
  }>> | undefined;
2666
2388
  } | {
2667
2389
  type: "protocolFee";
2668
2390
  owner: string;
2669
- protocolFee: string;
2670
2391
  beneficiary: string;
2392
+ protocolFee: string;
2671
2393
  maxProtocolFee: string;
2672
2394
  ownerOverrides?: Record<string, string> | undefined;
2673
2395
  } | {
@@ -2726,17 +2448,12 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
2726
2448
  gasPrice: string;
2727
2449
  tokenExchangeRate: string;
2728
2450
  tokenDecimals?: number | undefined;
2729
- typicalCost?: {
2730
- handleGasAmount: number;
2731
- totalGasAmount: number;
2732
- totalUsdCost: number;
2733
- } | undefined;
2734
2451
  }>> | undefined;
2735
2452
  } | {
2736
2453
  type: "protocolFee";
2737
2454
  owner: string;
2738
- protocolFee: string;
2739
2455
  beneficiary: string;
2456
+ protocolFee: string;
2740
2457
  maxProtocolFee: string;
2741
2458
  ownerOverrides?: Record<string, string> | undefined;
2742
2459
  } | {