@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.
- package/dist/block-explorer/utils.d.ts +8 -0
- package/dist/block-explorer/utils.d.ts.map +1 -1
- package/dist/block-explorer/utils.js +16 -3
- package/dist/block-explorer/utils.js.map +1 -1
- package/dist/consts/multisigIsm.d.ts.map +1 -1
- package/dist/consts/multisigIsm.js +24 -5
- package/dist/consts/multisigIsm.js.map +1 -1
- package/dist/contracts/contracts.d.ts.map +1 -1
- package/dist/contracts/contracts.js +6 -1
- package/dist/contracts/contracts.js.map +1 -1
- package/dist/core/CoreDeployer.hardhat-test.js +9 -0
- package/dist/core/CoreDeployer.hardhat-test.js.map +1 -1
- package/dist/core/HyperlaneCoreDeployer.d.ts.map +1 -1
- package/dist/core/HyperlaneCoreDeployer.js +26 -8
- package/dist/core/HyperlaneCoreDeployer.js.map +1 -1
- package/dist/core/types.d.ts +608 -552
- package/dist/core/types.d.ts.map +1 -1
- package/dist/deploy/HyperlaneDeployer.d.ts +1 -0
- package/dist/deploy/HyperlaneDeployer.d.ts.map +1 -1
- package/dist/deploy/HyperlaneDeployer.js +17 -8
- package/dist/deploy/HyperlaneDeployer.js.map +1 -1
- package/dist/deploy/proxy.d.ts.map +1 -1
- package/dist/deploy/proxy.js +9 -5
- package/dist/deploy/proxy.js.map +1 -1
- package/dist/deploy/warp.d.ts.map +1 -1
- package/dist/deploy/warp.js +5 -0
- package/dist/deploy/warp.js.map +1 -1
- package/dist/fee/EvmTokenFeeReader.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeReader.js +3 -13
- package/dist/fee/EvmTokenFeeReader.js.map +1 -1
- package/dist/fee/feeConfigMapping.d.ts +9 -0
- package/dist/fee/feeConfigMapping.d.ts.map +1 -0
- package/dist/fee/feeConfigMapping.js +86 -0
- package/dist/fee/feeConfigMapping.js.map +1 -0
- package/dist/fee/feeConfigMapping.test.d.ts +2 -0
- package/dist/fee/feeConfigMapping.test.d.ts.map +1 -0
- package/dist/fee/feeConfigMapping.test.js +204 -0
- package/dist/fee/feeConfigMapping.test.js.map +1 -0
- package/dist/fee/types.d.ts +185 -113
- package/dist/fee/types.d.ts.map +1 -1
- package/dist/fee/types.js +13 -11
- package/dist/fee/types.js.map +1 -1
- package/dist/fee/utils.d.ts +1 -32
- package/dist/fee/utils.d.ts.map +1 -1
- package/dist/fee/utils.js +1 -47
- package/dist/fee/utils.js.map +1 -1
- package/dist/gas/HyperlaneIgpChecker.d.ts +1 -0
- package/dist/gas/HyperlaneIgpChecker.d.ts.map +1 -1
- package/dist/gas/HyperlaneIgpChecker.js +43 -1
- package/dist/gas/HyperlaneIgpChecker.js.map +1 -1
- package/dist/gas/HyperlaneIgpDeployer.d.ts.map +1 -1
- package/dist/gas/HyperlaneIgpDeployer.js +10 -8
- package/dist/gas/HyperlaneIgpDeployer.js.map +1 -1
- package/dist/gas/types.d.ts +9 -1
- package/dist/gas/types.d.ts.map +1 -1
- package/dist/gas/types.js +1 -0
- package/dist/gas/types.js.map +1 -1
- package/dist/hook/EvmHookModule.d.ts.map +1 -1
- package/dist/hook/EvmHookModule.js +13 -4
- package/dist/hook/EvmHookModule.js.map +1 -1
- package/dist/hook/EvmHookReader.d.ts +4 -4
- package/dist/hook/EvmHookReader.d.ts.map +1 -1
- package/dist/hook/EvmHookReader.js +50 -9
- package/dist/hook/EvmHookReader.js.map +1 -1
- package/dist/hook/EvmHookReader.test.js +106 -1
- package/dist/hook/EvmHookReader.test.js.map +1 -1
- package/dist/hook/types.d.ts +23 -306
- package/dist/hook/types.d.ts.map +1 -1
- package/dist/hook/types.js +2 -2
- package/dist/hook/types.js.map +1 -1
- package/dist/hook/types.test.js +169 -22
- package/dist/hook/types.test.js.map +1 -1
- package/dist/ica/types.d.ts +280 -194
- package/dist/ica/types.d.ts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/ism/EvmIsmModule.d.ts +7 -1
- package/dist/ism/EvmIsmModule.d.ts.map +1 -1
- package/dist/ism/EvmIsmModule.js +144 -2
- package/dist/ism/EvmIsmModule.js.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +17 -0
- package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.js +35 -7
- package/dist/ism/HyperlaneIsmFactory.js.map +1 -1
- package/dist/ism/types.d.ts +88 -3
- package/dist/ism/types.d.ts.map +1 -1
- package/dist/ism/types.js +4 -0
- package/dist/ism/types.js.map +1 -1
- package/dist/metadata/ChainMetadataManager.d.ts.map +1 -1
- package/dist/metadata/ChainMetadataManager.js +2 -2
- package/dist/metadata/ChainMetadataManager.js.map +1 -1
- package/dist/metadata/ChainMetadataManager.test.js +71 -0
- package/dist/metadata/ChainMetadataManager.test.js.map +1 -1
- package/dist/metadata/agentConfig.d.ts +221 -4
- package/dist/metadata/agentConfig.d.ts.map +1 -1
- package/dist/metadata/agentConfig.js +19 -0
- package/dist/metadata/agentConfig.js.map +1 -1
- package/dist/middleware/account/InterchainAccount.d.ts.map +1 -1
- package/dist/middleware/account/InterchainAccount.js +10 -0
- package/dist/middleware/account/InterchainAccount.js.map +1 -1
- package/dist/middleware/account/InterchainAccount.test.js +26 -0
- package/dist/middleware/account/InterchainAccount.test.js.map +1 -1
- package/dist/providers/SmartProvider/SmartProvider.d.ts.map +1 -1
- package/dist/providers/SmartProvider/SmartProvider.js +69 -23
- package/dist/providers/SmartProvider/SmartProvider.js.map +1 -1
- package/dist/providers/SmartProvider/SmartProvider.test.js +34 -5
- package/dist/providers/SmartProvider/SmartProvider.test.js.map +1 -1
- package/dist/providers/transactions/submitter/IcaTxSubmitter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/IcaTxSubmitter.js +23 -8
- package/dist/providers/transactions/submitter/IcaTxSubmitter.js.map +1 -1
- package/dist/providers/transactions/submitter/IcaTxSubmitter.test.js +45 -0
- package/dist/providers/transactions/submitter/IcaTxSubmitter.test.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts +6 -0
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.js +26 -5
- package/dist/providers/transactions/submitter/ethersV5/types.js.map +1 -1
- package/dist/providers/transactions/submitter/submitterBuilderGetter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/submitterBuilderGetter.js +11 -1
- package/dist/providers/transactions/submitter/submitterBuilderGetter.js.map +1 -1
- package/dist/providers/transactions/submitter/submitterBuilderGetter.test.d.ts +2 -0
- package/dist/providers/transactions/submitter/submitterBuilderGetter.test.d.ts.map +1 -0
- package/dist/providers/transactions/submitter/submitterBuilderGetter.test.js +38 -0
- package/dist/providers/transactions/submitter/submitterBuilderGetter.test.js.map +1 -0
- package/dist/router/types.d.ts +331 -245
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/types.js +1 -0
- package/dist/router/types.js.map +1 -1
- package/dist/router/types.test.d.ts +2 -0
- package/dist/router/types.test.d.ts.map +1 -0
- package/dist/router/types.test.js +32 -0
- package/dist/router/types.test.js.map +1 -0
- package/dist/token/EvmWarpModule.d.ts +1 -0
- package/dist/token/EvmWarpModule.d.ts.map +1 -1
- package/dist/token/EvmWarpModule.hardhat-test.js +30 -0
- package/dist/token/EvmWarpModule.hardhat-test.js.map +1 -1
- package/dist/token/EvmWarpModule.js +27 -1
- package/dist/token/EvmWarpModule.js.map +1 -1
- package/dist/token/EvmWarpModule.test.d.ts +2 -0
- package/dist/token/EvmWarpModule.test.d.ts.map +1 -0
- package/dist/token/EvmWarpModule.test.js +77 -0
- package/dist/token/EvmWarpModule.test.js.map +1 -0
- package/dist/token/EvmWarpRouteReader.d.ts +1 -0
- package/dist/token/EvmWarpRouteReader.d.ts.map +1 -1
- package/dist/token/EvmWarpRouteReader.js +17 -0
- package/dist/token/EvmWarpRouteReader.js.map +1 -1
- package/dist/token/EvmXERC20Module.d.ts +31 -26
- package/dist/token/EvmXERC20Module.d.ts.map +1 -1
- package/dist/token/EvmXERC20Module.js +46 -3
- package/dist/token/EvmXERC20Module.js.map +1 -1
- package/dist/token/EvmXERC20Module.test.js +162 -1
- package/dist/token/EvmXERC20Module.test.js.map +1 -1
- package/dist/token/EvmXERC20Reader.d.ts +17 -0
- package/dist/token/EvmXERC20Reader.d.ts.map +1 -1
- package/dist/token/EvmXERC20Reader.js +37 -1
- package/dist/token/EvmXERC20Reader.js.map +1 -1
- package/dist/token/adapters/EvmHypSyntheticAdapter.test.d.ts +2 -0
- package/dist/token/adapters/EvmHypSyntheticAdapter.test.d.ts.map +1 -0
- package/dist/token/adapters/EvmHypSyntheticAdapter.test.js +96 -0
- package/dist/token/adapters/EvmHypSyntheticAdapter.test.js.map +1 -0
- package/dist/token/adapters/EvmTokenAdapter.d.ts.map +1 -1
- package/dist/token/adapters/EvmTokenAdapter.js +25 -12
- package/dist/token/adapters/EvmTokenAdapter.js.map +1 -1
- package/dist/token/configUtils.test.js.map +1 -1
- package/dist/token/deploy.d.ts +1 -0
- package/dist/token/deploy.d.ts.map +1 -1
- package/dist/token/deploy.js +13 -0
- package/dist/token/deploy.js.map +1 -1
- package/dist/token/types.d.ts +991 -642
- package/dist/token/types.d.ts.map +1 -1
- package/dist/token/types.test.js +11 -0
- package/dist/token/types.test.js.map +1 -1
- package/dist/token/xerc20.d.ts.map +1 -1
- package/dist/token/xerc20.js +10 -2
- package/dist/token/xerc20.js.map +1 -1
- package/dist/token/xerc20.test.d.ts +2 -0
- package/dist/token/xerc20.test.d.ts.map +1 -0
- package/dist/token/xerc20.test.js +143 -0
- package/dist/token/xerc20.test.js.map +1 -0
- package/dist/utils/contract.d.ts +4 -0
- package/dist/utils/contract.d.ts.map +1 -1
- package/dist/utils/contract.js +4 -0
- package/dist/utils/contract.js.map +1 -1
- package/dist/utils/gas.d.ts +1 -0
- package/dist/utils/gas.d.ts.map +1 -1
- package/dist/utils/gas.js +1 -0
- package/dist/utils/gas.js.map +1 -1
- package/dist/warp/WarpCore.d.ts.map +1 -1
- package/dist/warp/WarpCore.js +4 -3
- package/dist/warp/WarpCore.js.map +1 -1
- package/package.json +10 -10
package/dist/router/types.d.ts
CHANGED
|
@@ -81,15 +81,15 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
type: "protocolFee";
|
|
83
83
|
owner: string;
|
|
84
|
-
protocolFee: string;
|
|
85
84
|
beneficiary: string;
|
|
85
|
+
protocolFee: string;
|
|
86
86
|
maxProtocolFee: string;
|
|
87
87
|
ownerOverrides?: Record<string, string> | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
type: "protocolFee";
|
|
90
90
|
owner: string;
|
|
91
|
-
protocolFee: string;
|
|
92
91
|
beneficiary: string;
|
|
92
|
+
protocolFee: string;
|
|
93
93
|
maxProtocolFee: string;
|
|
94
94
|
ownerOverrides?: Record<string, string> | undefined;
|
|
95
95
|
}>, z.ZodObject<{
|
|
@@ -188,38 +188,14 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
188
188
|
tokenExchangeRate: z.ZodString;
|
|
189
189
|
} & {
|
|
190
190
|
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
191
|
-
} & {
|
|
192
|
-
typicalCost: z.ZodOptional<z.ZodObject<{
|
|
193
|
-
handleGasAmount: z.ZodNumber;
|
|
194
|
-
totalGasAmount: z.ZodNumber;
|
|
195
|
-
totalUsdCost: z.ZodNumber;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
handleGasAmount: number;
|
|
198
|
-
totalGasAmount: number;
|
|
199
|
-
totalUsdCost: number;
|
|
200
|
-
}, {
|
|
201
|
-
handleGasAmount: number;
|
|
202
|
-
totalGasAmount: number;
|
|
203
|
-
totalUsdCost: number;
|
|
204
|
-
}>>;
|
|
205
191
|
}, "strip", z.ZodTypeAny, {
|
|
206
192
|
gasPrice: string;
|
|
207
193
|
tokenExchangeRate: string;
|
|
208
194
|
tokenDecimals?: number | undefined;
|
|
209
|
-
typicalCost?: {
|
|
210
|
-
handleGasAmount: number;
|
|
211
|
-
totalGasAmount: number;
|
|
212
|
-
totalUsdCost: number;
|
|
213
|
-
} | undefined;
|
|
214
195
|
}, {
|
|
215
196
|
gasPrice: string;
|
|
216
197
|
tokenExchangeRate: string;
|
|
217
198
|
tokenDecimals?: number | undefined;
|
|
218
|
-
typicalCost?: {
|
|
219
|
-
handleGasAmount: number;
|
|
220
|
-
totalGasAmount: number;
|
|
221
|
-
totalUsdCost: number;
|
|
222
|
-
} | undefined;
|
|
223
199
|
}>>>>;
|
|
224
200
|
}, "strip", z.ZodTypeAny, {
|
|
225
201
|
type: "interchainGasPaymaster";
|
|
@@ -245,11 +221,6 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
245
221
|
gasPrice: string;
|
|
246
222
|
tokenExchangeRate: string;
|
|
247
223
|
tokenDecimals?: number | undefined;
|
|
248
|
-
typicalCost?: {
|
|
249
|
-
handleGasAmount: number;
|
|
250
|
-
totalGasAmount: number;
|
|
251
|
-
totalUsdCost: number;
|
|
252
|
-
} | undefined;
|
|
253
224
|
}>> | undefined;
|
|
254
225
|
}, {
|
|
255
226
|
type: "interchainGasPaymaster";
|
|
@@ -275,11 +246,6 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
275
246
|
gasPrice: string;
|
|
276
247
|
tokenExchangeRate: string;
|
|
277
248
|
tokenDecimals?: number | undefined;
|
|
278
|
-
typicalCost?: {
|
|
279
|
-
handleGasAmount: number;
|
|
280
|
-
totalGasAmount: number;
|
|
281
|
-
totalUsdCost: number;
|
|
282
|
-
} | undefined;
|
|
283
249
|
}>> | undefined;
|
|
284
250
|
}>, z.ZodType<import("../hook/types.js").DomainRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").DomainRoutingHookConfig>, z.ZodType<import("../hook/types.js").FallbackRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").FallbackRoutingHookConfig>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").AmountRoutingHookConfig>, z.ZodType<import("../hook/types.js").AggregationHookConfig, z.ZodTypeDef, import("../hook/types.js").AggregationHookConfig>, z.ZodType<import("../hook/types.js").ArbL2ToL1HookConfig, z.ZodTypeDef, import("../hook/types.js").ArbL2ToL1HookConfig>, z.ZodObject<{
|
|
285
251
|
type: z.ZodLiteral<"defaultHook">;
|
|
@@ -375,7 +341,32 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
375
341
|
type: "opStackIsm";
|
|
376
342
|
origin: string;
|
|
377
343
|
nativeBridge: string;
|
|
378
|
-
}>, z.ZodIntersection<z.ZodObject<{
|
|
344
|
+
}>, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
345
|
+
owner: z.ZodString;
|
|
346
|
+
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
347
|
+
} & {
|
|
348
|
+
paused: z.ZodBoolean;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
owner: string;
|
|
351
|
+
paused: boolean;
|
|
352
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
353
|
+
}, {
|
|
354
|
+
owner: string;
|
|
355
|
+
paused: boolean;
|
|
356
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
357
|
+
}>, z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"pausableIsm">;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
type: "pausableIsm";
|
|
361
|
+
}, {
|
|
362
|
+
type: "pausableIsm";
|
|
363
|
+
}>>, z.ZodObject<{
|
|
364
|
+
address: z.ZodString;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
address: string;
|
|
367
|
+
}, {
|
|
368
|
+
address: string;
|
|
369
|
+
}>>, z.ZodIntersection<z.ZodObject<{
|
|
379
370
|
owner: z.ZodString;
|
|
380
371
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
381
372
|
} & {
|
|
@@ -570,17 +561,12 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
570
561
|
gasPrice: string;
|
|
571
562
|
tokenExchangeRate: string;
|
|
572
563
|
tokenDecimals?: number | undefined;
|
|
573
|
-
typicalCost?: {
|
|
574
|
-
handleGasAmount: number;
|
|
575
|
-
totalGasAmount: number;
|
|
576
|
-
totalUsdCost: number;
|
|
577
|
-
} | undefined;
|
|
578
564
|
}>> | undefined;
|
|
579
565
|
} | {
|
|
580
566
|
type: "protocolFee";
|
|
581
567
|
owner: string;
|
|
582
|
-
protocolFee: string;
|
|
583
568
|
beneficiary: string;
|
|
569
|
+
protocolFee: string;
|
|
584
570
|
maxProtocolFee: string;
|
|
585
571
|
ownerOverrides?: Record<string, string> | undefined;
|
|
586
572
|
} | {
|
|
@@ -657,7 +643,15 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
657
643
|
owner: string;
|
|
658
644
|
urls: string[];
|
|
659
645
|
ownerOverrides?: Record<string, string> | undefined;
|
|
660
|
-
} |
|
|
646
|
+
} | ({
|
|
647
|
+
owner: string;
|
|
648
|
+
paused: boolean;
|
|
649
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
650
|
+
} & {
|
|
651
|
+
type: "pausableIsm";
|
|
652
|
+
} & {
|
|
653
|
+
address: string;
|
|
654
|
+
}) | import("../ism/types.js").RoutingIsmConfig | import("../ism/types.js").AggregationIsmConfig | z.objectOutputType<{
|
|
661
655
|
type: z.ZodLiteral<"unknownIsm">;
|
|
662
656
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
663
657
|
}, {
|
|
@@ -690,17 +684,12 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
690
684
|
gasPrice: string;
|
|
691
685
|
tokenExchangeRate: string;
|
|
692
686
|
tokenDecimals?: number | undefined;
|
|
693
|
-
typicalCost?: {
|
|
694
|
-
handleGasAmount: number;
|
|
695
|
-
totalGasAmount: number;
|
|
696
|
-
totalUsdCost: number;
|
|
697
|
-
} | undefined;
|
|
698
687
|
}>> | undefined;
|
|
699
688
|
} | {
|
|
700
689
|
type: "protocolFee";
|
|
701
690
|
owner: string;
|
|
702
|
-
protocolFee: string;
|
|
703
691
|
beneficiary: string;
|
|
692
|
+
protocolFee: string;
|
|
704
693
|
maxProtocolFee: string;
|
|
705
694
|
ownerOverrides?: Record<string, string> | undefined;
|
|
706
695
|
} | {
|
|
@@ -777,7 +766,15 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
777
766
|
owner: string;
|
|
778
767
|
urls: string[];
|
|
779
768
|
ownerOverrides?: Record<string, string> | undefined;
|
|
780
|
-
} | {
|
|
769
|
+
} | ({
|
|
770
|
+
owner: string;
|
|
771
|
+
paused: boolean;
|
|
772
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
773
|
+
} & {
|
|
774
|
+
type: "pausableIsm";
|
|
775
|
+
} & {
|
|
776
|
+
address: string;
|
|
777
|
+
}) | {
|
|
781
778
|
type: "interchainAccountRouting";
|
|
782
779
|
owner: string;
|
|
783
780
|
isms: Record<string, string>;
|
|
@@ -826,15 +823,15 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
826
823
|
}, "strip", z.ZodTypeAny, {
|
|
827
824
|
type: "protocolFee";
|
|
828
825
|
owner: string;
|
|
829
|
-
protocolFee: string;
|
|
830
826
|
beneficiary: string;
|
|
827
|
+
protocolFee: string;
|
|
831
828
|
maxProtocolFee: string;
|
|
832
829
|
ownerOverrides?: Record<string, string> | undefined;
|
|
833
830
|
}, {
|
|
834
831
|
type: "protocolFee";
|
|
835
832
|
owner: string;
|
|
836
|
-
protocolFee: string;
|
|
837
833
|
beneficiary: string;
|
|
834
|
+
protocolFee: string;
|
|
838
835
|
maxProtocolFee: string;
|
|
839
836
|
ownerOverrides?: Record<string, string> | undefined;
|
|
840
837
|
}>, z.ZodObject<{
|
|
@@ -933,38 +930,14 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
933
930
|
tokenExchangeRate: z.ZodString;
|
|
934
931
|
} & {
|
|
935
932
|
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
936
|
-
} & {
|
|
937
|
-
typicalCost: z.ZodOptional<z.ZodObject<{
|
|
938
|
-
handleGasAmount: z.ZodNumber;
|
|
939
|
-
totalGasAmount: z.ZodNumber;
|
|
940
|
-
totalUsdCost: z.ZodNumber;
|
|
941
|
-
}, "strip", z.ZodTypeAny, {
|
|
942
|
-
handleGasAmount: number;
|
|
943
|
-
totalGasAmount: number;
|
|
944
|
-
totalUsdCost: number;
|
|
945
|
-
}, {
|
|
946
|
-
handleGasAmount: number;
|
|
947
|
-
totalGasAmount: number;
|
|
948
|
-
totalUsdCost: number;
|
|
949
|
-
}>>;
|
|
950
933
|
}, "strip", z.ZodTypeAny, {
|
|
951
934
|
gasPrice: string;
|
|
952
935
|
tokenExchangeRate: string;
|
|
953
936
|
tokenDecimals?: number | undefined;
|
|
954
|
-
typicalCost?: {
|
|
955
|
-
handleGasAmount: number;
|
|
956
|
-
totalGasAmount: number;
|
|
957
|
-
totalUsdCost: number;
|
|
958
|
-
} | undefined;
|
|
959
937
|
}, {
|
|
960
938
|
gasPrice: string;
|
|
961
939
|
tokenExchangeRate: string;
|
|
962
940
|
tokenDecimals?: number | undefined;
|
|
963
|
-
typicalCost?: {
|
|
964
|
-
handleGasAmount: number;
|
|
965
|
-
totalGasAmount: number;
|
|
966
|
-
totalUsdCost: number;
|
|
967
|
-
} | undefined;
|
|
968
941
|
}>>>>;
|
|
969
942
|
}, "strip", z.ZodTypeAny, {
|
|
970
943
|
type: "interchainGasPaymaster";
|
|
@@ -990,11 +963,6 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
990
963
|
gasPrice: string;
|
|
991
964
|
tokenExchangeRate: string;
|
|
992
965
|
tokenDecimals?: number | undefined;
|
|
993
|
-
typicalCost?: {
|
|
994
|
-
handleGasAmount: number;
|
|
995
|
-
totalGasAmount: number;
|
|
996
|
-
totalUsdCost: number;
|
|
997
|
-
} | undefined;
|
|
998
966
|
}>> | undefined;
|
|
999
967
|
}, {
|
|
1000
968
|
type: "interchainGasPaymaster";
|
|
@@ -1020,11 +988,6 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1020
988
|
gasPrice: string;
|
|
1021
989
|
tokenExchangeRate: string;
|
|
1022
990
|
tokenDecimals?: number | undefined;
|
|
1023
|
-
typicalCost?: {
|
|
1024
|
-
handleGasAmount: number;
|
|
1025
|
-
totalGasAmount: number;
|
|
1026
|
-
totalUsdCost: number;
|
|
1027
|
-
} | undefined;
|
|
1028
991
|
}>> | undefined;
|
|
1029
992
|
}>, z.ZodType<import("../hook/types.js").DomainRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").DomainRoutingHookConfig>, z.ZodType<import("../hook/types.js").FallbackRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").FallbackRoutingHookConfig>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").AmountRoutingHookConfig>, z.ZodType<import("../hook/types.js").AggregationHookConfig, z.ZodTypeDef, import("../hook/types.js").AggregationHookConfig>, z.ZodType<import("../hook/types.js").ArbL2ToL1HookConfig, z.ZodTypeDef, import("../hook/types.js").ArbL2ToL1HookConfig>, z.ZodObject<{
|
|
1030
993
|
type: z.ZodLiteral<"defaultHook">;
|
|
@@ -1120,7 +1083,32 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1120
1083
|
type: "opStackIsm";
|
|
1121
1084
|
origin: string;
|
|
1122
1085
|
nativeBridge: string;
|
|
1123
|
-
}>, z.ZodIntersection<z.ZodObject<{
|
|
1086
|
+
}>, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
1087
|
+
owner: z.ZodString;
|
|
1088
|
+
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1089
|
+
} & {
|
|
1090
|
+
paused: z.ZodBoolean;
|
|
1091
|
+
}, "strip", z.ZodTypeAny, {
|
|
1092
|
+
owner: string;
|
|
1093
|
+
paused: boolean;
|
|
1094
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1095
|
+
}, {
|
|
1096
|
+
owner: string;
|
|
1097
|
+
paused: boolean;
|
|
1098
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1099
|
+
}>, z.ZodObject<{
|
|
1100
|
+
type: z.ZodLiteral<"pausableIsm">;
|
|
1101
|
+
}, "strip", z.ZodTypeAny, {
|
|
1102
|
+
type: "pausableIsm";
|
|
1103
|
+
}, {
|
|
1104
|
+
type: "pausableIsm";
|
|
1105
|
+
}>>, z.ZodObject<{
|
|
1106
|
+
address: z.ZodString;
|
|
1107
|
+
}, "strip", z.ZodTypeAny, {
|
|
1108
|
+
address: string;
|
|
1109
|
+
}, {
|
|
1110
|
+
address: string;
|
|
1111
|
+
}>>, z.ZodIntersection<z.ZodObject<{
|
|
1124
1112
|
owner: z.ZodString;
|
|
1125
1113
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1126
1114
|
} & {
|
|
@@ -1311,192 +1299,226 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1311
1299
|
}>>;
|
|
1312
1300
|
tokenFee: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1313
1301
|
owner: z.ZodString;
|
|
1302
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
1314
1303
|
} & {
|
|
1315
1304
|
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
1316
1305
|
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
1317
|
-
type: z.ZodLiteral<
|
|
1306
|
+
type: z.ZodLiteral<"LinearFee">;
|
|
1318
1307
|
bps: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>>;
|
|
1319
1308
|
}, "strip", z.ZodTypeAny, {
|
|
1320
|
-
type:
|
|
1309
|
+
type: "LinearFee";
|
|
1321
1310
|
owner: string;
|
|
1311
|
+
beneficiary?: string | undefined;
|
|
1322
1312
|
maxFee?: bigint | undefined;
|
|
1323
1313
|
halfAmount?: bigint | undefined;
|
|
1324
1314
|
bps?: number | undefined;
|
|
1325
1315
|
}, {
|
|
1326
|
-
type:
|
|
1316
|
+
type: "LinearFee";
|
|
1327
1317
|
owner: string;
|
|
1318
|
+
beneficiary?: string | undefined;
|
|
1328
1319
|
maxFee?: string | number | bigint | undefined;
|
|
1329
1320
|
halfAmount?: string | number | bigint | undefined;
|
|
1330
1321
|
bps?: string | number | undefined;
|
|
1331
1322
|
}>, {
|
|
1332
|
-
type:
|
|
1323
|
+
type: "LinearFee";
|
|
1333
1324
|
owner: string;
|
|
1325
|
+
beneficiary?: string | undefined;
|
|
1334
1326
|
maxFee?: bigint | undefined;
|
|
1335
1327
|
halfAmount?: bigint | undefined;
|
|
1336
1328
|
bps?: number | undefined;
|
|
1337
1329
|
}, {
|
|
1338
|
-
type:
|
|
1330
|
+
type: "LinearFee";
|
|
1339
1331
|
owner: string;
|
|
1332
|
+
beneficiary?: string | undefined;
|
|
1340
1333
|
maxFee?: string | number | bigint | undefined;
|
|
1341
1334
|
halfAmount?: string | number | bigint | undefined;
|
|
1342
1335
|
bps?: string | number | undefined;
|
|
1343
1336
|
}>, {
|
|
1344
1337
|
bps: number;
|
|
1345
|
-
type:
|
|
1338
|
+
type: "LinearFee";
|
|
1346
1339
|
owner: string;
|
|
1340
|
+
beneficiary?: string | undefined;
|
|
1347
1341
|
maxFee?: bigint | undefined;
|
|
1348
1342
|
halfAmount?: bigint | undefined;
|
|
1349
1343
|
}, {
|
|
1350
|
-
type:
|
|
1344
|
+
type: "LinearFee";
|
|
1351
1345
|
owner: string;
|
|
1346
|
+
beneficiary?: string | undefined;
|
|
1352
1347
|
maxFee?: string | number | bigint | undefined;
|
|
1353
1348
|
halfAmount?: string | number | bigint | undefined;
|
|
1354
1349
|
bps?: string | number | undefined;
|
|
1355
1350
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1356
1351
|
owner: z.ZodString;
|
|
1352
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
1357
1353
|
} & {
|
|
1358
1354
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1359
1355
|
} & {
|
|
1360
1356
|
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
1361
1357
|
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
1362
|
-
type: z.ZodLiteral<
|
|
1358
|
+
type: z.ZodLiteral<"OffchainQuotedLinearFee">;
|
|
1363
1359
|
bps: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>>;
|
|
1364
1360
|
}, "strip", z.ZodTypeAny, {
|
|
1365
|
-
type:
|
|
1361
|
+
type: "OffchainQuotedLinearFee";
|
|
1366
1362
|
owner: string;
|
|
1363
|
+
beneficiary?: string | undefined;
|
|
1367
1364
|
maxFee?: bigint | undefined;
|
|
1368
1365
|
halfAmount?: bigint | undefined;
|
|
1369
1366
|
bps?: number | undefined;
|
|
1370
1367
|
quoteSigners?: string[] | undefined;
|
|
1371
1368
|
}, {
|
|
1372
|
-
type:
|
|
1369
|
+
type: "OffchainQuotedLinearFee";
|
|
1373
1370
|
owner: string;
|
|
1371
|
+
beneficiary?: string | undefined;
|
|
1374
1372
|
maxFee?: string | number | bigint | undefined;
|
|
1375
1373
|
halfAmount?: string | number | bigint | undefined;
|
|
1376
1374
|
bps?: string | number | undefined;
|
|
1377
1375
|
quoteSigners?: string[] | undefined;
|
|
1378
1376
|
}>, {
|
|
1379
|
-
type:
|
|
1377
|
+
type: "OffchainQuotedLinearFee";
|
|
1380
1378
|
owner: string;
|
|
1379
|
+
beneficiary?: string | undefined;
|
|
1381
1380
|
maxFee?: bigint | undefined;
|
|
1382
1381
|
halfAmount?: bigint | undefined;
|
|
1383
1382
|
bps?: number | undefined;
|
|
1384
1383
|
quoteSigners?: string[] | undefined;
|
|
1385
1384
|
}, {
|
|
1386
|
-
type:
|
|
1385
|
+
type: "OffchainQuotedLinearFee";
|
|
1387
1386
|
owner: string;
|
|
1387
|
+
beneficiary?: string | undefined;
|
|
1388
1388
|
maxFee?: string | number | bigint | undefined;
|
|
1389
1389
|
halfAmount?: string | number | bigint | undefined;
|
|
1390
1390
|
bps?: string | number | undefined;
|
|
1391
1391
|
quoteSigners?: string[] | undefined;
|
|
1392
1392
|
}>, {
|
|
1393
1393
|
bps: number;
|
|
1394
|
-
type:
|
|
1394
|
+
type: "OffchainQuotedLinearFee";
|
|
1395
1395
|
owner: string;
|
|
1396
|
+
beneficiary?: string | undefined;
|
|
1396
1397
|
maxFee?: bigint | undefined;
|
|
1397
1398
|
halfAmount?: bigint | undefined;
|
|
1398
1399
|
quoteSigners?: string[] | undefined;
|
|
1399
1400
|
}, {
|
|
1400
|
-
type:
|
|
1401
|
+
type: "OffchainQuotedLinearFee";
|
|
1401
1402
|
owner: string;
|
|
1403
|
+
beneficiary?: string | undefined;
|
|
1402
1404
|
maxFee?: string | number | bigint | undefined;
|
|
1403
1405
|
halfAmount?: string | number | bigint | undefined;
|
|
1404
1406
|
bps?: string | number | undefined;
|
|
1405
1407
|
quoteSigners?: string[] | undefined;
|
|
1406
1408
|
}>, z.ZodEffects<z.ZodObject<{
|
|
1407
1409
|
owner: z.ZodString;
|
|
1410
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
1408
1411
|
} & {
|
|
1409
|
-
type: z.ZodLiteral<
|
|
1412
|
+
type: z.ZodLiteral<"ProgressiveFee">;
|
|
1410
1413
|
maxFee: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
1411
1414
|
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
1412
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1413
|
-
type:
|
|
1416
|
+
type: "ProgressiveFee";
|
|
1414
1417
|
owner: string;
|
|
1415
1418
|
maxFee: bigint;
|
|
1416
1419
|
halfAmount: bigint;
|
|
1420
|
+
beneficiary?: string | undefined;
|
|
1417
1421
|
}, {
|
|
1418
|
-
type:
|
|
1422
|
+
type: "ProgressiveFee";
|
|
1419
1423
|
owner: string;
|
|
1420
1424
|
maxFee: string | number | bigint;
|
|
1421
1425
|
halfAmount: string | number | bigint;
|
|
1426
|
+
beneficiary?: string | undefined;
|
|
1422
1427
|
}>, {
|
|
1423
|
-
type:
|
|
1428
|
+
type: "ProgressiveFee";
|
|
1424
1429
|
owner: string;
|
|
1425
1430
|
maxFee: bigint;
|
|
1426
1431
|
halfAmount: bigint;
|
|
1432
|
+
beneficiary?: string | undefined;
|
|
1427
1433
|
}, {
|
|
1428
|
-
type:
|
|
1434
|
+
type: "ProgressiveFee";
|
|
1429
1435
|
owner: string;
|
|
1430
1436
|
maxFee: string | number | bigint;
|
|
1431
1437
|
halfAmount: string | number | bigint;
|
|
1438
|
+
beneficiary?: string | undefined;
|
|
1432
1439
|
}>, z.ZodEffects<z.ZodObject<{
|
|
1433
1440
|
owner: z.ZodString;
|
|
1441
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
1434
1442
|
} & {
|
|
1435
|
-
type: z.ZodLiteral<
|
|
1443
|
+
type: z.ZodLiteral<"RegressiveFee">;
|
|
1436
1444
|
maxFee: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
1437
1445
|
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
1438
1446
|
}, "strip", z.ZodTypeAny, {
|
|
1439
|
-
type:
|
|
1447
|
+
type: "RegressiveFee";
|
|
1440
1448
|
owner: string;
|
|
1441
1449
|
maxFee: bigint;
|
|
1442
1450
|
halfAmount: bigint;
|
|
1451
|
+
beneficiary?: string | undefined;
|
|
1443
1452
|
}, {
|
|
1444
|
-
type:
|
|
1453
|
+
type: "RegressiveFee";
|
|
1445
1454
|
owner: string;
|
|
1446
1455
|
maxFee: string | number | bigint;
|
|
1447
1456
|
halfAmount: string | number | bigint;
|
|
1457
|
+
beneficiary?: string | undefined;
|
|
1448
1458
|
}>, {
|
|
1449
|
-
type:
|
|
1459
|
+
type: "RegressiveFee";
|
|
1450
1460
|
owner: string;
|
|
1451
1461
|
maxFee: bigint;
|
|
1452
1462
|
halfAmount: bigint;
|
|
1463
|
+
beneficiary?: string | undefined;
|
|
1453
1464
|
}, {
|
|
1454
|
-
type:
|
|
1465
|
+
type: "RegressiveFee";
|
|
1455
1466
|
owner: string;
|
|
1456
1467
|
maxFee: string | number | bigint;
|
|
1457
1468
|
halfAmount: string | number | bigint;
|
|
1469
|
+
beneficiary?: string | undefined;
|
|
1458
1470
|
}>, z.ZodEffects<z.ZodObject<{
|
|
1459
1471
|
owner: z.ZodString;
|
|
1472
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
1460
1473
|
} & {
|
|
1461
|
-
type: z.ZodLiteral<
|
|
1474
|
+
type: z.ZodLiteral<"RoutingFee">;
|
|
1462
1475
|
feeContracts: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
1463
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1464
|
-
type:
|
|
1477
|
+
type: "RoutingFee";
|
|
1465
1478
|
owner: string;
|
|
1466
1479
|
feeContracts: Record<string, any>;
|
|
1480
|
+
beneficiary?: string | undefined;
|
|
1467
1481
|
}, {
|
|
1468
|
-
type:
|
|
1482
|
+
type: "RoutingFee";
|
|
1469
1483
|
owner: string;
|
|
1470
1484
|
feeContracts: Record<string, any>;
|
|
1485
|
+
beneficiary?: string | undefined;
|
|
1471
1486
|
}>, {
|
|
1472
|
-
type:
|
|
1487
|
+
type: "RoutingFee";
|
|
1473
1488
|
owner: string;
|
|
1474
1489
|
feeContracts: Record<string, any>;
|
|
1490
|
+
beneficiary?: string | undefined;
|
|
1475
1491
|
}, {
|
|
1476
|
-
type:
|
|
1492
|
+
type: "RoutingFee";
|
|
1477
1493
|
owner: string;
|
|
1478
1494
|
feeContracts: Record<string, any>;
|
|
1495
|
+
beneficiary?: string | undefined;
|
|
1479
1496
|
}>, z.ZodEffects<z.ZodObject<{
|
|
1480
1497
|
owner: z.ZodString;
|
|
1498
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
1481
1499
|
} & {
|
|
1482
|
-
type: z.ZodLiteral<
|
|
1500
|
+
type: z.ZodLiteral<"CrossCollateralRoutingFee">;
|
|
1483
1501
|
feeContracts: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, any>, Record<string, any>>>;
|
|
1484
1502
|
}, "strip", z.ZodTypeAny, {
|
|
1485
|
-
type:
|
|
1503
|
+
type: "CrossCollateralRoutingFee";
|
|
1486
1504
|
owner: string;
|
|
1487
1505
|
feeContracts: Record<string, Record<string, any>>;
|
|
1506
|
+
beneficiary?: string | undefined;
|
|
1488
1507
|
}, {
|
|
1489
|
-
type:
|
|
1508
|
+
type: "CrossCollateralRoutingFee";
|
|
1490
1509
|
owner: string;
|
|
1491
1510
|
feeContracts: Record<string, Record<string, any>>;
|
|
1511
|
+
beneficiary?: string | undefined;
|
|
1492
1512
|
}>, {
|
|
1493
|
-
type:
|
|
1513
|
+
type: "CrossCollateralRoutingFee";
|
|
1494
1514
|
owner: string;
|
|
1495
1515
|
feeContracts: Record<string, Record<string, any>>;
|
|
1516
|
+
beneficiary?: string | undefined;
|
|
1496
1517
|
}, {
|
|
1497
|
-
type:
|
|
1518
|
+
type: "CrossCollateralRoutingFee";
|
|
1498
1519
|
owner: string;
|
|
1499
1520
|
feeContracts: Record<string, Record<string, any>>;
|
|
1521
|
+
beneficiary?: string | undefined;
|
|
1500
1522
|
}>]>>;
|
|
1501
1523
|
}, "strip", z.ZodTypeAny, {
|
|
1502
1524
|
owner: string;
|
|
@@ -1533,17 +1555,12 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1533
1555
|
gasPrice: string;
|
|
1534
1556
|
tokenExchangeRate: string;
|
|
1535
1557
|
tokenDecimals?: number | undefined;
|
|
1536
|
-
typicalCost?: {
|
|
1537
|
-
handleGasAmount: number;
|
|
1538
|
-
totalGasAmount: number;
|
|
1539
|
-
totalUsdCost: number;
|
|
1540
|
-
} | undefined;
|
|
1541
1558
|
}>> | undefined;
|
|
1542
1559
|
} | {
|
|
1543
1560
|
type: "protocolFee";
|
|
1544
1561
|
owner: string;
|
|
1545
|
-
protocolFee: string;
|
|
1546
1562
|
beneficiary: string;
|
|
1563
|
+
protocolFee: string;
|
|
1547
1564
|
maxProtocolFee: string;
|
|
1548
1565
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1549
1566
|
} | {
|
|
@@ -1620,7 +1637,15 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1620
1637
|
owner: string;
|
|
1621
1638
|
urls: string[];
|
|
1622
1639
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1623
|
-
} |
|
|
1640
|
+
} | ({
|
|
1641
|
+
owner: string;
|
|
1642
|
+
paused: boolean;
|
|
1643
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1644
|
+
} & {
|
|
1645
|
+
type: "pausableIsm";
|
|
1646
|
+
} & {
|
|
1647
|
+
address: string;
|
|
1648
|
+
}) | import("../ism/types.js").RoutingIsmConfig | import("../ism/types.js").AggregationIsmConfig | z.objectOutputType<{
|
|
1624
1649
|
type: z.ZodLiteral<"unknownIsm">;
|
|
1625
1650
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1626
1651
|
foreignDeployment?: string | undefined;
|
|
@@ -1629,35 +1654,41 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1629
1654
|
}> | undefined;
|
|
1630
1655
|
tokenFee?: {
|
|
1631
1656
|
bps: number;
|
|
1632
|
-
type:
|
|
1657
|
+
type: "LinearFee";
|
|
1633
1658
|
owner: string;
|
|
1659
|
+
beneficiary?: string | undefined;
|
|
1634
1660
|
maxFee?: bigint | undefined;
|
|
1635
1661
|
halfAmount?: bigint | undefined;
|
|
1636
1662
|
} | {
|
|
1637
1663
|
bps: number;
|
|
1638
|
-
type:
|
|
1664
|
+
type: "OffchainQuotedLinearFee";
|
|
1639
1665
|
owner: string;
|
|
1666
|
+
beneficiary?: string | undefined;
|
|
1640
1667
|
maxFee?: bigint | undefined;
|
|
1641
1668
|
halfAmount?: bigint | undefined;
|
|
1642
1669
|
quoteSigners?: string[] | undefined;
|
|
1643
1670
|
} | {
|
|
1644
|
-
type:
|
|
1671
|
+
type: "ProgressiveFee";
|
|
1645
1672
|
owner: string;
|
|
1646
1673
|
maxFee: bigint;
|
|
1647
1674
|
halfAmount: bigint;
|
|
1675
|
+
beneficiary?: string | undefined;
|
|
1648
1676
|
} | {
|
|
1649
|
-
type:
|
|
1677
|
+
type: "RegressiveFee";
|
|
1650
1678
|
owner: string;
|
|
1651
1679
|
maxFee: bigint;
|
|
1652
1680
|
halfAmount: bigint;
|
|
1681
|
+
beneficiary?: string | undefined;
|
|
1653
1682
|
} | {
|
|
1654
|
-
type:
|
|
1683
|
+
type: "RoutingFee";
|
|
1655
1684
|
owner: string;
|
|
1656
1685
|
feeContracts: Record<string, any>;
|
|
1686
|
+
beneficiary?: string | undefined;
|
|
1657
1687
|
} | {
|
|
1658
|
-
type:
|
|
1688
|
+
type: "CrossCollateralRoutingFee";
|
|
1659
1689
|
owner: string;
|
|
1660
1690
|
feeContracts: Record<string, Record<string, any>>;
|
|
1691
|
+
beneficiary?: string | undefined;
|
|
1661
1692
|
} | undefined;
|
|
1662
1693
|
}, {
|
|
1663
1694
|
owner: string;
|
|
@@ -1694,17 +1725,12 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1694
1725
|
gasPrice: string;
|
|
1695
1726
|
tokenExchangeRate: string;
|
|
1696
1727
|
tokenDecimals?: number | undefined;
|
|
1697
|
-
typicalCost?: {
|
|
1698
|
-
handleGasAmount: number;
|
|
1699
|
-
totalGasAmount: number;
|
|
1700
|
-
totalUsdCost: number;
|
|
1701
|
-
} | undefined;
|
|
1702
1728
|
}>> | undefined;
|
|
1703
1729
|
} | {
|
|
1704
1730
|
type: "protocolFee";
|
|
1705
1731
|
owner: string;
|
|
1706
|
-
protocolFee: string;
|
|
1707
1732
|
beneficiary: string;
|
|
1733
|
+
protocolFee: string;
|
|
1708
1734
|
maxProtocolFee: string;
|
|
1709
1735
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1710
1736
|
} | {
|
|
@@ -1781,7 +1807,15 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1781
1807
|
owner: string;
|
|
1782
1808
|
urls: string[];
|
|
1783
1809
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1784
|
-
} | {
|
|
1810
|
+
} | ({
|
|
1811
|
+
owner: string;
|
|
1812
|
+
paused: boolean;
|
|
1813
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1814
|
+
} & {
|
|
1815
|
+
type: "pausableIsm";
|
|
1816
|
+
} & {
|
|
1817
|
+
address: string;
|
|
1818
|
+
}) | {
|
|
1785
1819
|
type: "interchainAccountRouting";
|
|
1786
1820
|
owner: string;
|
|
1787
1821
|
isms: Record<string, string>;
|
|
@@ -1794,36 +1828,42 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
1794
1828
|
address: string;
|
|
1795
1829
|
}> | undefined;
|
|
1796
1830
|
tokenFee?: {
|
|
1797
|
-
type:
|
|
1831
|
+
type: "LinearFee";
|
|
1798
1832
|
owner: string;
|
|
1833
|
+
beneficiary?: string | undefined;
|
|
1799
1834
|
maxFee?: string | number | bigint | undefined;
|
|
1800
1835
|
halfAmount?: string | number | bigint | undefined;
|
|
1801
1836
|
bps?: string | number | undefined;
|
|
1802
1837
|
} | {
|
|
1803
|
-
type:
|
|
1838
|
+
type: "OffchainQuotedLinearFee";
|
|
1804
1839
|
owner: string;
|
|
1840
|
+
beneficiary?: string | undefined;
|
|
1805
1841
|
maxFee?: string | number | bigint | undefined;
|
|
1806
1842
|
halfAmount?: string | number | bigint | undefined;
|
|
1807
1843
|
bps?: string | number | undefined;
|
|
1808
1844
|
quoteSigners?: string[] | undefined;
|
|
1809
1845
|
} | {
|
|
1810
|
-
type:
|
|
1846
|
+
type: "ProgressiveFee";
|
|
1811
1847
|
owner: string;
|
|
1812
1848
|
maxFee: string | number | bigint;
|
|
1813
1849
|
halfAmount: string | number | bigint;
|
|
1850
|
+
beneficiary?: string | undefined;
|
|
1814
1851
|
} | {
|
|
1815
|
-
type:
|
|
1852
|
+
type: "RegressiveFee";
|
|
1816
1853
|
owner: string;
|
|
1817
1854
|
maxFee: string | number | bigint;
|
|
1818
1855
|
halfAmount: string | number | bigint;
|
|
1856
|
+
beneficiary?: string | undefined;
|
|
1819
1857
|
} | {
|
|
1820
|
-
type:
|
|
1858
|
+
type: "RoutingFee";
|
|
1821
1859
|
owner: string;
|
|
1822
1860
|
feeContracts: Record<string, any>;
|
|
1861
|
+
beneficiary?: string | undefined;
|
|
1823
1862
|
} | {
|
|
1824
|
-
type:
|
|
1863
|
+
type: "CrossCollateralRoutingFee";
|
|
1825
1864
|
owner: string;
|
|
1826
1865
|
feeContracts: Record<string, Record<string, any>>;
|
|
1866
|
+
beneficiary?: string | undefined;
|
|
1827
1867
|
} | undefined;
|
|
1828
1868
|
}>;
|
|
1829
1869
|
export declare const DestinationGasSchema: z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodString>;
|
|
@@ -1843,15 +1883,15 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1843
1883
|
}, "strip", z.ZodTypeAny, {
|
|
1844
1884
|
type: "protocolFee";
|
|
1845
1885
|
owner: string;
|
|
1846
|
-
protocolFee: string;
|
|
1847
1886
|
beneficiary: string;
|
|
1887
|
+
protocolFee: string;
|
|
1848
1888
|
maxProtocolFee: string;
|
|
1849
1889
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1850
1890
|
}, {
|
|
1851
1891
|
type: "protocolFee";
|
|
1852
1892
|
owner: string;
|
|
1853
|
-
protocolFee: string;
|
|
1854
1893
|
beneficiary: string;
|
|
1894
|
+
protocolFee: string;
|
|
1855
1895
|
maxProtocolFee: string;
|
|
1856
1896
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1857
1897
|
}>, z.ZodObject<{
|
|
@@ -1950,38 +1990,14 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1950
1990
|
tokenExchangeRate: z.ZodString;
|
|
1951
1991
|
} & {
|
|
1952
1992
|
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
1953
|
-
} & {
|
|
1954
|
-
typicalCost: z.ZodOptional<z.ZodObject<{
|
|
1955
|
-
handleGasAmount: z.ZodNumber;
|
|
1956
|
-
totalGasAmount: z.ZodNumber;
|
|
1957
|
-
totalUsdCost: z.ZodNumber;
|
|
1958
|
-
}, "strip", z.ZodTypeAny, {
|
|
1959
|
-
handleGasAmount: number;
|
|
1960
|
-
totalGasAmount: number;
|
|
1961
|
-
totalUsdCost: number;
|
|
1962
|
-
}, {
|
|
1963
|
-
handleGasAmount: number;
|
|
1964
|
-
totalGasAmount: number;
|
|
1965
|
-
totalUsdCost: number;
|
|
1966
|
-
}>>;
|
|
1967
1993
|
}, "strip", z.ZodTypeAny, {
|
|
1968
1994
|
gasPrice: string;
|
|
1969
1995
|
tokenExchangeRate: string;
|
|
1970
1996
|
tokenDecimals?: number | undefined;
|
|
1971
|
-
typicalCost?: {
|
|
1972
|
-
handleGasAmount: number;
|
|
1973
|
-
totalGasAmount: number;
|
|
1974
|
-
totalUsdCost: number;
|
|
1975
|
-
} | undefined;
|
|
1976
1997
|
}, {
|
|
1977
1998
|
gasPrice: string;
|
|
1978
1999
|
tokenExchangeRate: string;
|
|
1979
2000
|
tokenDecimals?: number | undefined;
|
|
1980
|
-
typicalCost?: {
|
|
1981
|
-
handleGasAmount: number;
|
|
1982
|
-
totalGasAmount: number;
|
|
1983
|
-
totalUsdCost: number;
|
|
1984
|
-
} | undefined;
|
|
1985
2001
|
}>>>>;
|
|
1986
2002
|
}, "strip", z.ZodTypeAny, {
|
|
1987
2003
|
type: "interchainGasPaymaster";
|
|
@@ -2007,11 +2023,6 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2007
2023
|
gasPrice: string;
|
|
2008
2024
|
tokenExchangeRate: string;
|
|
2009
2025
|
tokenDecimals?: number | undefined;
|
|
2010
|
-
typicalCost?: {
|
|
2011
|
-
handleGasAmount: number;
|
|
2012
|
-
totalGasAmount: number;
|
|
2013
|
-
totalUsdCost: number;
|
|
2014
|
-
} | undefined;
|
|
2015
2026
|
}>> | undefined;
|
|
2016
2027
|
}, {
|
|
2017
2028
|
type: "interchainGasPaymaster";
|
|
@@ -2037,11 +2048,6 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2037
2048
|
gasPrice: string;
|
|
2038
2049
|
tokenExchangeRate: string;
|
|
2039
2050
|
tokenDecimals?: number | undefined;
|
|
2040
|
-
typicalCost?: {
|
|
2041
|
-
handleGasAmount: number;
|
|
2042
|
-
totalGasAmount: number;
|
|
2043
|
-
totalUsdCost: number;
|
|
2044
|
-
} | undefined;
|
|
2045
2051
|
}>> | undefined;
|
|
2046
2052
|
}>, z.ZodType<import("../hook/types.js").DomainRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").DomainRoutingHookConfig>, z.ZodType<import("../hook/types.js").FallbackRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").FallbackRoutingHookConfig>, z.ZodType<import("../hook/types.js").AmountRoutingHookConfig, z.ZodTypeDef, import("../hook/types.js").AmountRoutingHookConfig>, z.ZodType<import("../hook/types.js").AggregationHookConfig, z.ZodTypeDef, import("../hook/types.js").AggregationHookConfig>, z.ZodType<import("../hook/types.js").ArbL2ToL1HookConfig, z.ZodTypeDef, import("../hook/types.js").ArbL2ToL1HookConfig>, z.ZodObject<{
|
|
2047
2053
|
type: z.ZodLiteral<"defaultHook">;
|
|
@@ -2137,7 +2143,32 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2137
2143
|
type: "opStackIsm";
|
|
2138
2144
|
origin: string;
|
|
2139
2145
|
nativeBridge: string;
|
|
2140
|
-
}>, z.ZodIntersection<z.ZodObject<{
|
|
2146
|
+
}>, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
2147
|
+
owner: z.ZodString;
|
|
2148
|
+
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2149
|
+
} & {
|
|
2150
|
+
paused: z.ZodBoolean;
|
|
2151
|
+
}, "strip", z.ZodTypeAny, {
|
|
2152
|
+
owner: string;
|
|
2153
|
+
paused: boolean;
|
|
2154
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
2155
|
+
}, {
|
|
2156
|
+
owner: string;
|
|
2157
|
+
paused: boolean;
|
|
2158
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
2159
|
+
}>, z.ZodObject<{
|
|
2160
|
+
type: z.ZodLiteral<"pausableIsm">;
|
|
2161
|
+
}, "strip", z.ZodTypeAny, {
|
|
2162
|
+
type: "pausableIsm";
|
|
2163
|
+
}, {
|
|
2164
|
+
type: "pausableIsm";
|
|
2165
|
+
}>>, z.ZodObject<{
|
|
2166
|
+
address: z.ZodString;
|
|
2167
|
+
}, "strip", z.ZodTypeAny, {
|
|
2168
|
+
address: string;
|
|
2169
|
+
}, {
|
|
2170
|
+
address: string;
|
|
2171
|
+
}>>, z.ZodIntersection<z.ZodObject<{
|
|
2141
2172
|
owner: z.ZodString;
|
|
2142
2173
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2143
2174
|
} & {
|
|
@@ -2328,196 +2359,231 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2328
2359
|
}>>;
|
|
2329
2360
|
tokenFee: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2330
2361
|
owner: z.ZodString;
|
|
2362
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
2331
2363
|
} & {
|
|
2332
2364
|
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
2333
2365
|
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
2334
|
-
type: z.ZodLiteral<
|
|
2366
|
+
type: z.ZodLiteral<"LinearFee">;
|
|
2335
2367
|
bps: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>>;
|
|
2336
2368
|
}, "strip", z.ZodTypeAny, {
|
|
2337
|
-
type:
|
|
2369
|
+
type: "LinearFee";
|
|
2338
2370
|
owner: string;
|
|
2371
|
+
beneficiary?: string | undefined;
|
|
2339
2372
|
maxFee?: bigint | undefined;
|
|
2340
2373
|
halfAmount?: bigint | undefined;
|
|
2341
2374
|
bps?: number | undefined;
|
|
2342
2375
|
}, {
|
|
2343
|
-
type:
|
|
2376
|
+
type: "LinearFee";
|
|
2344
2377
|
owner: string;
|
|
2378
|
+
beneficiary?: string | undefined;
|
|
2345
2379
|
maxFee?: string | number | bigint | undefined;
|
|
2346
2380
|
halfAmount?: string | number | bigint | undefined;
|
|
2347
2381
|
bps?: string | number | undefined;
|
|
2348
2382
|
}>, {
|
|
2349
|
-
type:
|
|
2383
|
+
type: "LinearFee";
|
|
2350
2384
|
owner: string;
|
|
2385
|
+
beneficiary?: string | undefined;
|
|
2351
2386
|
maxFee?: bigint | undefined;
|
|
2352
2387
|
halfAmount?: bigint | undefined;
|
|
2353
2388
|
bps?: number | undefined;
|
|
2354
2389
|
}, {
|
|
2355
|
-
type:
|
|
2390
|
+
type: "LinearFee";
|
|
2356
2391
|
owner: string;
|
|
2392
|
+
beneficiary?: string | undefined;
|
|
2357
2393
|
maxFee?: string | number | bigint | undefined;
|
|
2358
2394
|
halfAmount?: string | number | bigint | undefined;
|
|
2359
2395
|
bps?: string | number | undefined;
|
|
2360
2396
|
}>, {
|
|
2361
2397
|
bps: number;
|
|
2362
|
-
type:
|
|
2398
|
+
type: "LinearFee";
|
|
2363
2399
|
owner: string;
|
|
2400
|
+
beneficiary?: string | undefined;
|
|
2364
2401
|
maxFee?: bigint | undefined;
|
|
2365
2402
|
halfAmount?: bigint | undefined;
|
|
2366
2403
|
}, {
|
|
2367
|
-
type:
|
|
2404
|
+
type: "LinearFee";
|
|
2368
2405
|
owner: string;
|
|
2406
|
+
beneficiary?: string | undefined;
|
|
2369
2407
|
maxFee?: string | number | bigint | undefined;
|
|
2370
2408
|
halfAmount?: string | number | bigint | undefined;
|
|
2371
2409
|
bps?: string | number | undefined;
|
|
2372
2410
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2373
2411
|
owner: z.ZodString;
|
|
2412
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
2374
2413
|
} & {
|
|
2375
2414
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2376
2415
|
} & {
|
|
2377
2416
|
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
2378
2417
|
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
2379
|
-
type: z.ZodLiteral<
|
|
2418
|
+
type: z.ZodLiteral<"OffchainQuotedLinearFee">;
|
|
2380
2419
|
bps: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>>;
|
|
2381
2420
|
}, "strip", z.ZodTypeAny, {
|
|
2382
|
-
type:
|
|
2421
|
+
type: "OffchainQuotedLinearFee";
|
|
2383
2422
|
owner: string;
|
|
2423
|
+
beneficiary?: string | undefined;
|
|
2384
2424
|
maxFee?: bigint | undefined;
|
|
2385
2425
|
halfAmount?: bigint | undefined;
|
|
2386
2426
|
bps?: number | undefined;
|
|
2387
2427
|
quoteSigners?: string[] | undefined;
|
|
2388
2428
|
}, {
|
|
2389
|
-
type:
|
|
2429
|
+
type: "OffchainQuotedLinearFee";
|
|
2390
2430
|
owner: string;
|
|
2431
|
+
beneficiary?: string | undefined;
|
|
2391
2432
|
maxFee?: string | number | bigint | undefined;
|
|
2392
2433
|
halfAmount?: string | number | bigint | undefined;
|
|
2393
2434
|
bps?: string | number | undefined;
|
|
2394
2435
|
quoteSigners?: string[] | undefined;
|
|
2395
2436
|
}>, {
|
|
2396
|
-
type:
|
|
2437
|
+
type: "OffchainQuotedLinearFee";
|
|
2397
2438
|
owner: string;
|
|
2439
|
+
beneficiary?: string | undefined;
|
|
2398
2440
|
maxFee?: bigint | undefined;
|
|
2399
2441
|
halfAmount?: bigint | undefined;
|
|
2400
2442
|
bps?: number | undefined;
|
|
2401
2443
|
quoteSigners?: string[] | undefined;
|
|
2402
2444
|
}, {
|
|
2403
|
-
type:
|
|
2445
|
+
type: "OffchainQuotedLinearFee";
|
|
2404
2446
|
owner: string;
|
|
2447
|
+
beneficiary?: string | undefined;
|
|
2405
2448
|
maxFee?: string | number | bigint | undefined;
|
|
2406
2449
|
halfAmount?: string | number | bigint | undefined;
|
|
2407
2450
|
bps?: string | number | undefined;
|
|
2408
2451
|
quoteSigners?: string[] | undefined;
|
|
2409
2452
|
}>, {
|
|
2410
2453
|
bps: number;
|
|
2411
|
-
type:
|
|
2454
|
+
type: "OffchainQuotedLinearFee";
|
|
2412
2455
|
owner: string;
|
|
2456
|
+
beneficiary?: string | undefined;
|
|
2413
2457
|
maxFee?: bigint | undefined;
|
|
2414
2458
|
halfAmount?: bigint | undefined;
|
|
2415
2459
|
quoteSigners?: string[] | undefined;
|
|
2416
2460
|
}, {
|
|
2417
|
-
type:
|
|
2461
|
+
type: "OffchainQuotedLinearFee";
|
|
2418
2462
|
owner: string;
|
|
2463
|
+
beneficiary?: string | undefined;
|
|
2419
2464
|
maxFee?: string | number | bigint | undefined;
|
|
2420
2465
|
halfAmount?: string | number | bigint | undefined;
|
|
2421
2466
|
bps?: string | number | undefined;
|
|
2422
2467
|
quoteSigners?: string[] | undefined;
|
|
2423
2468
|
}>, z.ZodEffects<z.ZodObject<{
|
|
2424
2469
|
owner: z.ZodString;
|
|
2470
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
2425
2471
|
} & {
|
|
2426
|
-
type: z.ZodLiteral<
|
|
2472
|
+
type: z.ZodLiteral<"ProgressiveFee">;
|
|
2427
2473
|
maxFee: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
2428
2474
|
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
2429
2475
|
}, "strip", z.ZodTypeAny, {
|
|
2430
|
-
type:
|
|
2476
|
+
type: "ProgressiveFee";
|
|
2431
2477
|
owner: string;
|
|
2432
2478
|
maxFee: bigint;
|
|
2433
2479
|
halfAmount: bigint;
|
|
2480
|
+
beneficiary?: string | undefined;
|
|
2434
2481
|
}, {
|
|
2435
|
-
type:
|
|
2482
|
+
type: "ProgressiveFee";
|
|
2436
2483
|
owner: string;
|
|
2437
2484
|
maxFee: string | number | bigint;
|
|
2438
2485
|
halfAmount: string | number | bigint;
|
|
2486
|
+
beneficiary?: string | undefined;
|
|
2439
2487
|
}>, {
|
|
2440
|
-
type:
|
|
2488
|
+
type: "ProgressiveFee";
|
|
2441
2489
|
owner: string;
|
|
2442
2490
|
maxFee: bigint;
|
|
2443
2491
|
halfAmount: bigint;
|
|
2492
|
+
beneficiary?: string | undefined;
|
|
2444
2493
|
}, {
|
|
2445
|
-
type:
|
|
2494
|
+
type: "ProgressiveFee";
|
|
2446
2495
|
owner: string;
|
|
2447
2496
|
maxFee: string | number | bigint;
|
|
2448
2497
|
halfAmount: string | number | bigint;
|
|
2498
|
+
beneficiary?: string | undefined;
|
|
2449
2499
|
}>, z.ZodEffects<z.ZodObject<{
|
|
2450
2500
|
owner: z.ZodString;
|
|
2501
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
2451
2502
|
} & {
|
|
2452
|
-
type: z.ZodLiteral<
|
|
2503
|
+
type: z.ZodLiteral<"RegressiveFee">;
|
|
2453
2504
|
maxFee: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
2454
2505
|
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
2455
2506
|
}, "strip", z.ZodTypeAny, {
|
|
2456
|
-
type:
|
|
2507
|
+
type: "RegressiveFee";
|
|
2457
2508
|
owner: string;
|
|
2458
2509
|
maxFee: bigint;
|
|
2459
2510
|
halfAmount: bigint;
|
|
2511
|
+
beneficiary?: string | undefined;
|
|
2460
2512
|
}, {
|
|
2461
|
-
type:
|
|
2513
|
+
type: "RegressiveFee";
|
|
2462
2514
|
owner: string;
|
|
2463
2515
|
maxFee: string | number | bigint;
|
|
2464
2516
|
halfAmount: string | number | bigint;
|
|
2517
|
+
beneficiary?: string | undefined;
|
|
2465
2518
|
}>, {
|
|
2466
|
-
type:
|
|
2519
|
+
type: "RegressiveFee";
|
|
2467
2520
|
owner: string;
|
|
2468
2521
|
maxFee: bigint;
|
|
2469
2522
|
halfAmount: bigint;
|
|
2523
|
+
beneficiary?: string | undefined;
|
|
2470
2524
|
}, {
|
|
2471
|
-
type:
|
|
2525
|
+
type: "RegressiveFee";
|
|
2472
2526
|
owner: string;
|
|
2473
2527
|
maxFee: string | number | bigint;
|
|
2474
2528
|
halfAmount: string | number | bigint;
|
|
2529
|
+
beneficiary?: string | undefined;
|
|
2475
2530
|
}>, z.ZodEffects<z.ZodObject<{
|
|
2476
2531
|
owner: z.ZodString;
|
|
2532
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
2477
2533
|
} & {
|
|
2478
|
-
type: z.ZodLiteral<
|
|
2534
|
+
type: z.ZodLiteral<"RoutingFee">;
|
|
2479
2535
|
feeContracts: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
2480
2536
|
}, "strip", z.ZodTypeAny, {
|
|
2481
|
-
type:
|
|
2537
|
+
type: "RoutingFee";
|
|
2482
2538
|
owner: string;
|
|
2483
2539
|
feeContracts: Record<string, any>;
|
|
2540
|
+
beneficiary?: string | undefined;
|
|
2484
2541
|
}, {
|
|
2485
|
-
type:
|
|
2542
|
+
type: "RoutingFee";
|
|
2486
2543
|
owner: string;
|
|
2487
2544
|
feeContracts: Record<string, any>;
|
|
2545
|
+
beneficiary?: string | undefined;
|
|
2488
2546
|
}>, {
|
|
2489
|
-
type:
|
|
2547
|
+
type: "RoutingFee";
|
|
2490
2548
|
owner: string;
|
|
2491
2549
|
feeContracts: Record<string, any>;
|
|
2550
|
+
beneficiary?: string | undefined;
|
|
2492
2551
|
}, {
|
|
2493
|
-
type:
|
|
2552
|
+
type: "RoutingFee";
|
|
2494
2553
|
owner: string;
|
|
2495
2554
|
feeContracts: Record<string, any>;
|
|
2555
|
+
beneficiary?: string | undefined;
|
|
2496
2556
|
}>, z.ZodEffects<z.ZodObject<{
|
|
2497
2557
|
owner: z.ZodString;
|
|
2558
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
2498
2559
|
} & {
|
|
2499
|
-
type: z.ZodLiteral<
|
|
2560
|
+
type: z.ZodLiteral<"CrossCollateralRoutingFee">;
|
|
2500
2561
|
feeContracts: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, any>, Record<string, any>>>;
|
|
2501
2562
|
}, "strip", z.ZodTypeAny, {
|
|
2502
|
-
type:
|
|
2563
|
+
type: "CrossCollateralRoutingFee";
|
|
2503
2564
|
owner: string;
|
|
2504
2565
|
feeContracts: Record<string, Record<string, any>>;
|
|
2566
|
+
beneficiary?: string | undefined;
|
|
2505
2567
|
}, {
|
|
2506
|
-
type:
|
|
2568
|
+
type: "CrossCollateralRoutingFee";
|
|
2507
2569
|
owner: string;
|
|
2508
2570
|
feeContracts: Record<string, Record<string, any>>;
|
|
2571
|
+
beneficiary?: string | undefined;
|
|
2509
2572
|
}>, {
|
|
2510
|
-
type:
|
|
2573
|
+
type: "CrossCollateralRoutingFee";
|
|
2511
2574
|
owner: string;
|
|
2512
2575
|
feeContracts: Record<string, Record<string, any>>;
|
|
2576
|
+
beneficiary?: string | undefined;
|
|
2513
2577
|
}, {
|
|
2514
|
-
type:
|
|
2578
|
+
type: "CrossCollateralRoutingFee";
|
|
2515
2579
|
owner: string;
|
|
2516
2580
|
feeContracts: Record<string, Record<string, any>>;
|
|
2581
|
+
beneficiary?: string | undefined;
|
|
2517
2582
|
}>]>>;
|
|
2518
2583
|
} & {
|
|
2519
2584
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
2520
2585
|
destinationGas: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodString>>;
|
|
2586
|
+
feeHook: z.ZodOptional<z.ZodString>;
|
|
2521
2587
|
}, "strip", z.ZodTypeAny, {
|
|
2522
2588
|
owner: string;
|
|
2523
2589
|
mailbox: string;
|
|
@@ -2554,17 +2620,12 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2554
2620
|
gasPrice: string;
|
|
2555
2621
|
tokenExchangeRate: string;
|
|
2556
2622
|
tokenDecimals?: number | undefined;
|
|
2557
|
-
typicalCost?: {
|
|
2558
|
-
handleGasAmount: number;
|
|
2559
|
-
totalGasAmount: number;
|
|
2560
|
-
totalUsdCost: number;
|
|
2561
|
-
} | undefined;
|
|
2562
2623
|
}>> | undefined;
|
|
2563
2624
|
} | {
|
|
2564
2625
|
type: "protocolFee";
|
|
2565
2626
|
owner: string;
|
|
2566
|
-
protocolFee: string;
|
|
2567
2627
|
beneficiary: string;
|
|
2628
|
+
protocolFee: string;
|
|
2568
2629
|
maxProtocolFee: string;
|
|
2569
2630
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2570
2631
|
} | {
|
|
@@ -2641,7 +2702,15 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2641
2702
|
owner: string;
|
|
2642
2703
|
urls: string[];
|
|
2643
2704
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2644
|
-
} |
|
|
2705
|
+
} | ({
|
|
2706
|
+
owner: string;
|
|
2707
|
+
paused: boolean;
|
|
2708
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
2709
|
+
} & {
|
|
2710
|
+
type: "pausableIsm";
|
|
2711
|
+
} & {
|
|
2712
|
+
address: string;
|
|
2713
|
+
}) | import("../ism/types.js").RoutingIsmConfig | import("../ism/types.js").AggregationIsmConfig | z.objectOutputType<{
|
|
2645
2714
|
type: z.ZodLiteral<"unknownIsm">;
|
|
2646
2715
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2647
2716
|
foreignDeployment?: string | undefined;
|
|
@@ -2650,37 +2719,44 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2650
2719
|
}> | undefined;
|
|
2651
2720
|
tokenFee?: {
|
|
2652
2721
|
bps: number;
|
|
2653
|
-
type:
|
|
2722
|
+
type: "LinearFee";
|
|
2654
2723
|
owner: string;
|
|
2724
|
+
beneficiary?: string | undefined;
|
|
2655
2725
|
maxFee?: bigint | undefined;
|
|
2656
2726
|
halfAmount?: bigint | undefined;
|
|
2657
2727
|
} | {
|
|
2658
2728
|
bps: number;
|
|
2659
|
-
type:
|
|
2729
|
+
type: "OffchainQuotedLinearFee";
|
|
2660
2730
|
owner: string;
|
|
2731
|
+
beneficiary?: string | undefined;
|
|
2661
2732
|
maxFee?: bigint | undefined;
|
|
2662
2733
|
halfAmount?: bigint | undefined;
|
|
2663
2734
|
quoteSigners?: string[] | undefined;
|
|
2664
2735
|
} | {
|
|
2665
|
-
type:
|
|
2736
|
+
type: "ProgressiveFee";
|
|
2666
2737
|
owner: string;
|
|
2667
2738
|
maxFee: bigint;
|
|
2668
2739
|
halfAmount: bigint;
|
|
2740
|
+
beneficiary?: string | undefined;
|
|
2669
2741
|
} | {
|
|
2670
|
-
type:
|
|
2742
|
+
type: "RegressiveFee";
|
|
2671
2743
|
owner: string;
|
|
2672
2744
|
maxFee: bigint;
|
|
2673
2745
|
halfAmount: bigint;
|
|
2746
|
+
beneficiary?: string | undefined;
|
|
2674
2747
|
} | {
|
|
2675
|
-
type:
|
|
2748
|
+
type: "RoutingFee";
|
|
2676
2749
|
owner: string;
|
|
2677
2750
|
feeContracts: Record<string, any>;
|
|
2751
|
+
beneficiary?: string | undefined;
|
|
2678
2752
|
} | {
|
|
2679
|
-
type:
|
|
2753
|
+
type: "CrossCollateralRoutingFee";
|
|
2680
2754
|
owner: string;
|
|
2681
2755
|
feeContracts: Record<string, Record<string, any>>;
|
|
2756
|
+
beneficiary?: string | undefined;
|
|
2682
2757
|
} | undefined;
|
|
2683
2758
|
destinationGas?: Record<string | number, string> | undefined;
|
|
2759
|
+
feeHook?: string | undefined;
|
|
2684
2760
|
}, {
|
|
2685
2761
|
owner: string;
|
|
2686
2762
|
mailbox: string;
|
|
@@ -2717,17 +2793,12 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2717
2793
|
gasPrice: string;
|
|
2718
2794
|
tokenExchangeRate: string;
|
|
2719
2795
|
tokenDecimals?: number | undefined;
|
|
2720
|
-
typicalCost?: {
|
|
2721
|
-
handleGasAmount: number;
|
|
2722
|
-
totalGasAmount: number;
|
|
2723
|
-
totalUsdCost: number;
|
|
2724
|
-
} | undefined;
|
|
2725
2796
|
}>> | undefined;
|
|
2726
2797
|
} | {
|
|
2727
2798
|
type: "protocolFee";
|
|
2728
2799
|
owner: string;
|
|
2729
|
-
protocolFee: string;
|
|
2730
2800
|
beneficiary: string;
|
|
2801
|
+
protocolFee: string;
|
|
2731
2802
|
maxProtocolFee: string;
|
|
2732
2803
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2733
2804
|
} | {
|
|
@@ -2804,7 +2875,15 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2804
2875
|
owner: string;
|
|
2805
2876
|
urls: string[];
|
|
2806
2877
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2807
|
-
} | {
|
|
2878
|
+
} | ({
|
|
2879
|
+
owner: string;
|
|
2880
|
+
paused: boolean;
|
|
2881
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
2882
|
+
} & {
|
|
2883
|
+
type: "pausableIsm";
|
|
2884
|
+
} & {
|
|
2885
|
+
address: string;
|
|
2886
|
+
}) | {
|
|
2808
2887
|
type: "interchainAccountRouting";
|
|
2809
2888
|
owner: string;
|
|
2810
2889
|
isms: Record<string, string>;
|
|
@@ -2817,37 +2896,44 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
2817
2896
|
address: string;
|
|
2818
2897
|
}> | undefined;
|
|
2819
2898
|
tokenFee?: {
|
|
2820
|
-
type:
|
|
2899
|
+
type: "LinearFee";
|
|
2821
2900
|
owner: string;
|
|
2901
|
+
beneficiary?: string | undefined;
|
|
2822
2902
|
maxFee?: string | number | bigint | undefined;
|
|
2823
2903
|
halfAmount?: string | number | bigint | undefined;
|
|
2824
2904
|
bps?: string | number | undefined;
|
|
2825
2905
|
} | {
|
|
2826
|
-
type:
|
|
2906
|
+
type: "OffchainQuotedLinearFee";
|
|
2827
2907
|
owner: string;
|
|
2908
|
+
beneficiary?: string | undefined;
|
|
2828
2909
|
maxFee?: string | number | bigint | undefined;
|
|
2829
2910
|
halfAmount?: string | number | bigint | undefined;
|
|
2830
2911
|
bps?: string | number | undefined;
|
|
2831
2912
|
quoteSigners?: string[] | undefined;
|
|
2832
2913
|
} | {
|
|
2833
|
-
type:
|
|
2914
|
+
type: "ProgressiveFee";
|
|
2834
2915
|
owner: string;
|
|
2835
2916
|
maxFee: string | number | bigint;
|
|
2836
2917
|
halfAmount: string | number | bigint;
|
|
2918
|
+
beneficiary?: string | undefined;
|
|
2837
2919
|
} | {
|
|
2838
|
-
type:
|
|
2920
|
+
type: "RegressiveFee";
|
|
2839
2921
|
owner: string;
|
|
2840
2922
|
maxFee: string | number | bigint;
|
|
2841
2923
|
halfAmount: string | number | bigint;
|
|
2924
|
+
beneficiary?: string | undefined;
|
|
2842
2925
|
} | {
|
|
2843
|
-
type:
|
|
2926
|
+
type: "RoutingFee";
|
|
2844
2927
|
owner: string;
|
|
2845
2928
|
feeContracts: Record<string, any>;
|
|
2929
|
+
beneficiary?: string | undefined;
|
|
2846
2930
|
} | {
|
|
2847
|
-
type:
|
|
2931
|
+
type: "CrossCollateralRoutingFee";
|
|
2848
2932
|
owner: string;
|
|
2849
2933
|
feeContracts: Record<string, Record<string, any>>;
|
|
2934
|
+
beneficiary?: string | undefined;
|
|
2850
2935
|
} | undefined;
|
|
2851
2936
|
destinationGas?: Record<string | number, string> | undefined;
|
|
2937
|
+
feeHook?: string | undefined;
|
|
2852
2938
|
}>;
|
|
2853
2939
|
//# sourceMappingURL=types.d.ts.map
|