@hyperlane-xyz/sdk 35.1.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/ccip/consts.d.ts.map +1 -1
- package/dist/ccip/consts.js +0 -40
- package/dist/ccip/consts.js.map +1 -1
- package/dist/consts/multisigIsm.d.ts.map +1 -1
- package/dist/consts/multisigIsm.js +39 -241
- 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/EvmCoreModule.d.ts.map +1 -1
- package/dist/core/EvmCoreModule.hardhat-test.js +23 -0
- package/dist/core/EvmCoreModule.hardhat-test.js.map +1 -1
- package/dist/core/EvmCoreModule.js +8 -5
- package/dist/core/EvmCoreModule.js.map +1 -1
- package/dist/core/EvmCoreReader.d.ts.map +1 -1
- package/dist/core/EvmCoreReader.js +34 -15
- package/dist/core/EvmCoreReader.js.map +1 -1
- package/dist/core/HyperlaneCoreDeployer.d.ts.map +1 -1
- package/dist/core/HyperlaneCoreDeployer.js +34 -13
- package/dist/core/HyperlaneCoreDeployer.js.map +1 -1
- package/dist/core/TestCoreApp.d.ts +1 -1
- package/dist/core/contracts.d.ts +5 -2
- package/dist/core/contracts.d.ts.map +1 -1
- package/dist/core/contracts.js +4 -1
- package/dist/core/contracts.js.map +1 -1
- package/dist/core/types.d.ts +1092 -627
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +30 -2
- package/dist/core/types.js.map +1 -1
- package/dist/core/types.test.d.ts +2 -0
- package/dist/core/types.test.d.ts.map +1 -0
- package/dist/core/types.test.js +50 -0
- package/dist/core/types.test.js.map +1 -0
- 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/EvmTokenFeeDeployer.d.ts +1 -0
- package/dist/fee/EvmTokenFeeDeployer.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js +40 -0
- package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js.map +1 -1
- package/dist/fee/EvmTokenFeeDeployer.js +8 -0
- package/dist/fee/EvmTokenFeeDeployer.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 +17 -0
- package/dist/gas/HyperlaneIgpDeployer.d.ts.map +1 -1
- package/dist/gas/HyperlaneIgpDeployer.js +124 -4
- package/dist/gas/HyperlaneIgpDeployer.js.map +1 -1
- package/dist/gas/oracle/configure-gas-oracles.hardhat-test.js +33 -2
- package/dist/gas/oracle/configure-gas-oracles.hardhat-test.js.map +1 -1
- package/dist/gas/types.d.ts +17 -3
- package/dist/gas/types.d.ts.map +1 -1
- package/dist/gas/types.js +19 -0
- package/dist/gas/types.js.map +1 -1
- package/dist/gas/utils.d.ts +5 -1
- package/dist/gas/utils.d.ts.map +1 -1
- package/dist/gas/utils.js +92 -31
- package/dist/gas/utils.js.map +1 -1
- package/dist/gas/utils.test.d.ts +2 -0
- package/dist/gas/utils.test.d.ts.map +1 -0
- package/dist/gas/utils.test.js +132 -0
- package/dist/gas/utils.test.js.map +1 -0
- package/dist/hook/EvmHookModule.d.ts +21 -1
- package/dist/hook/EvmHookModule.d.ts.map +1 -1
- package/dist/hook/EvmHookModule.hardhat-test.js +125 -2
- package/dist/hook/EvmHookModule.hardhat-test.js.map +1 -1
- package/dist/hook/EvmHookModule.js +191 -17
- 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 +67 -16
- package/dist/hook/EvmHookReader.js.map +1 -1
- package/dist/hook/EvmHookReader.test.js +128 -2
- package/dist/hook/EvmHookReader.test.js.map +1 -1
- package/dist/hook/HyperlaneHookDeployer.d.ts +10 -5
- package/dist/hook/HyperlaneHookDeployer.d.ts.map +1 -1
- package/dist/hook/types.d.ts +338 -264
- package/dist/hook/types.d.ts.map +1 -1
- package/dist/hook/types.js +30 -6
- package/dist/hook/types.js.map +1 -1
- package/dist/hook/types.test.d.ts +2 -0
- package/dist/hook/types.test.d.ts.map +1 -0
- package/dist/hook/types.test.js +184 -0
- package/dist/hook/types.test.js.map +1 -0
- package/dist/hook/utils.d.ts +1 -0
- package/dist/hook/utils.d.ts.map +1 -1
- package/dist/hook/utils.js +16 -10
- package/dist/hook/utils.js.map +1 -1
- package/dist/ica/types.d.ts +380 -188
- package/dist/ica/types.d.ts.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- 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.hardhat-test.js +4 -0
- package/dist/ism/EvmIsmModule.hardhat-test.js.map +1 -1
- package/dist/ism/EvmIsmModule.js +152 -4
- package/dist/ism/EvmIsmModule.js.map +1 -1
- package/dist/ism/EvmIsmReader.d.ts.map +1 -1
- package/dist/ism/EvmIsmReader.js +1 -2
- package/dist/ism/EvmIsmReader.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 -9
- 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 +937 -168
- package/dist/metadata/agentConfig.d.ts.map +1 -1
- package/dist/metadata/agentConfig.js +68 -1
- package/dist/metadata/agentConfig.js.map +1 -1
- package/dist/metadata/agentConfig.test.js +67 -1
- package/dist/metadata/agentConfig.test.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/MultiProvider.d.ts +6 -0
- package/dist/providers/MultiProvider.d.ts.map +1 -1
- package/dist/providers/MultiProvider.js +28 -2
- package/dist/providers/MultiProvider.js.map +1 -1
- package/dist/providers/SeismicSigner.d.ts +54 -0
- package/dist/providers/SeismicSigner.d.ts.map +1 -0
- package/dist/providers/SeismicSigner.js +89 -0
- package/dist/providers/SeismicSigner.js.map +1 -0
- package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.d.ts.map +1 -1
- package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.js +8 -0
- package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.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/builders/starknet.d.ts.map +1 -1
- package/dist/providers/builders/starknet.js +6 -1
- package/dist/providers/builders/starknet.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/EV5GnosisSafeTxBuilder.d.ts +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.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 +481 -236
- 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/test/testUtils.d.ts.map +1 -1
- package/dist/test/testUtils.js +3 -0
- package/dist/test/testUtils.js.map +1 -1
- package/dist/token/EvmWarpModule.d.ts +18 -1
- 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 +67 -5
- 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/tokenMetadataUtils.d.ts.map +1 -1
- package/dist/token/tokenMetadataUtils.js +1 -0
- package/dist/token/tokenMetadataUtils.js.map +1 -1
- package/dist/token/types.d.ts +1373 -699
- 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 +6 -0
- package/dist/utils/contract.d.ts.map +1 -1
- package/dist/utils/contract.js +11 -0
- package/dist/utils/contract.js.map +1 -1
- package/dist/utils/contract.test.js +2 -1
- package/dist/utils/contract.test.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/utils/gnosisSafe.d.ts +4 -1
- package/dist/utils/gnosisSafe.d.ts.map +1 -1
- package/dist/utils/gnosisSafe.js +20 -7
- package/dist/utils/gnosisSafe.js.map +1 -1
- package/dist/utils/gnosisSafe.test.js +44 -1
- package/dist/utils/gnosisSafe.test.js.map +1 -1
- package/dist/utils/ism.d.ts.map +1 -1
- package/dist/utils/ism.js +4 -2
- package/dist/utils/ism.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 +14 -14
package/dist/hook/types.d.ts
CHANGED
|
@@ -62,7 +62,13 @@ export type IgpHookConfig = z.infer<typeof IgpSchema>;
|
|
|
62
62
|
export type ProtocolFeeHookConfig = z.infer<typeof ProtocolFeeSchema>;
|
|
63
63
|
export type PausableHookConfig = z.infer<typeof PausableHookSchema>;
|
|
64
64
|
export type OpStackHookConfig = z.infer<typeof OpStackHookSchema>;
|
|
65
|
-
export type ArbL2ToL1HookConfig =
|
|
65
|
+
export type ArbL2ToL1HookConfig = {
|
|
66
|
+
type: typeof HookType.ARB_L2_TO_L1;
|
|
67
|
+
arbSys: string;
|
|
68
|
+
bridge?: string;
|
|
69
|
+
destinationChain: string;
|
|
70
|
+
childHook: HookConfig;
|
|
71
|
+
};
|
|
66
72
|
export type MailboxDefaultHookConfig = z.infer<typeof MailboxDefaultHookSchema>;
|
|
67
73
|
export type RateLimitedHookConfig = z.infer<typeof RateLimitedHookSchema>;
|
|
68
74
|
export type CCIPHookConfig = z.infer<typeof CCIPHookSchema>;
|
|
@@ -88,6 +94,11 @@ export type AmountRoutingHookConfig = {
|
|
|
88
94
|
};
|
|
89
95
|
export type HookConfig = z.infer<typeof HookConfigSchema>;
|
|
90
96
|
export type DerivedHookConfig = WithAddress<Exclude<HookConfig, Address>>;
|
|
97
|
+
export declare enum IgpVersion {
|
|
98
|
+
Legacy = "legacy",
|
|
99
|
+
Latest = "latest"
|
|
100
|
+
}
|
|
101
|
+
export declare const OFFCHAIN_QUOTED_IGP_VERSION = "11.3.0";
|
|
91
102
|
export declare const MUTABLE_HOOK_TYPE: HookType[];
|
|
92
103
|
export declare const ProtocolFeeSchema: z.ZodObject<{
|
|
93
104
|
owner: z.ZodString;
|
|
@@ -100,15 +111,15 @@ export declare const ProtocolFeeSchema: z.ZodObject<{
|
|
|
100
111
|
}, "strip", z.ZodTypeAny, {
|
|
101
112
|
type: "protocolFee";
|
|
102
113
|
owner: string;
|
|
103
|
-
protocolFee: string;
|
|
104
114
|
beneficiary: string;
|
|
115
|
+
protocolFee: string;
|
|
105
116
|
maxProtocolFee: string;
|
|
106
117
|
ownerOverrides?: Record<string, string> | undefined;
|
|
107
118
|
}, {
|
|
108
119
|
type: "protocolFee";
|
|
109
120
|
owner: string;
|
|
110
|
-
protocolFee: string;
|
|
111
121
|
beneficiary: string;
|
|
122
|
+
protocolFee: string;
|
|
112
123
|
maxProtocolFee: string;
|
|
113
124
|
ownerOverrides?: Record<string, string> | undefined;
|
|
114
125
|
}>;
|
|
@@ -175,25 +186,7 @@ export declare const OpStackHookSchema: z.ZodObject<{
|
|
|
175
186
|
destinationChain: string;
|
|
176
187
|
ownerOverrides?: Record<string, string> | undefined;
|
|
177
188
|
}>;
|
|
178
|
-
export declare const ArbL2ToL1HookSchema: z.
|
|
179
|
-
type: z.ZodLiteral<"arbL2ToL1Hook">;
|
|
180
|
-
arbSys: z.ZodString;
|
|
181
|
-
bridge: z.ZodOptional<z.ZodString>;
|
|
182
|
-
destinationChain: z.ZodString;
|
|
183
|
-
childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
184
|
-
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
type: "arbL2ToL1Hook";
|
|
186
|
-
destinationChain: string;
|
|
187
|
-
arbSys: string;
|
|
188
|
-
bridge?: string | undefined;
|
|
189
|
-
childHook?: any;
|
|
190
|
-
}, {
|
|
191
|
-
type: "arbL2ToL1Hook";
|
|
192
|
-
destinationChain: string;
|
|
193
|
-
arbSys: string;
|
|
194
|
-
bridge?: string | undefined;
|
|
195
|
-
childHook?: any;
|
|
196
|
-
}>;
|
|
189
|
+
export declare const ArbL2ToL1HookSchema: z.ZodSchema<ArbL2ToL1HookConfig>;
|
|
197
190
|
export declare const IgpSchema: z.ZodObject<{
|
|
198
191
|
owner: z.ZodString;
|
|
199
192
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -240,8 +233,23 @@ export declare const IgpSchema: z.ZodObject<{
|
|
|
240
233
|
totalUsdCost: number;
|
|
241
234
|
} | undefined;
|
|
242
235
|
}>>;
|
|
236
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
243
237
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
244
238
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
239
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
240
|
+
gasPrice: z.ZodString;
|
|
241
|
+
tokenExchangeRate: z.ZodString;
|
|
242
|
+
} & {
|
|
243
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
gasPrice: string;
|
|
246
|
+
tokenExchangeRate: string;
|
|
247
|
+
tokenDecimals?: number | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
gasPrice: string;
|
|
250
|
+
tokenExchangeRate: string;
|
|
251
|
+
tokenDecimals?: number | undefined;
|
|
252
|
+
}>>>>;
|
|
245
253
|
}, "strip", z.ZodTypeAny, {
|
|
246
254
|
type: "interchainGasPaymaster";
|
|
247
255
|
owner: string;
|
|
@@ -260,7 +268,13 @@ export declare const IgpSchema: z.ZodObject<{
|
|
|
260
268
|
}>;
|
|
261
269
|
ownerOverrides?: Record<string, string> | undefined;
|
|
262
270
|
quoteSigners?: string[] | undefined;
|
|
271
|
+
igpVersion?: IgpVersion | undefined;
|
|
263
272
|
contractVersion?: string | undefined;
|
|
273
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
274
|
+
gasPrice: string;
|
|
275
|
+
tokenExchangeRate: string;
|
|
276
|
+
tokenDecimals?: number | undefined;
|
|
277
|
+
}>> | undefined;
|
|
264
278
|
}, {
|
|
265
279
|
type: "interchainGasPaymaster";
|
|
266
280
|
owner: string;
|
|
@@ -279,7 +293,13 @@ export declare const IgpSchema: z.ZodObject<{
|
|
|
279
293
|
}>;
|
|
280
294
|
ownerOverrides?: Record<string, string> | undefined;
|
|
281
295
|
quoteSigners?: string[] | undefined;
|
|
296
|
+
igpVersion?: IgpVersion | undefined;
|
|
282
297
|
contractVersion?: string | undefined;
|
|
298
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
299
|
+
gasPrice: string;
|
|
300
|
+
tokenExchangeRate: string;
|
|
301
|
+
tokenDecimals?: number | undefined;
|
|
302
|
+
}>> | undefined;
|
|
283
303
|
}>;
|
|
284
304
|
export declare const DomainRoutingHookConfigSchema: z.ZodSchema<DomainRoutingHookConfig>;
|
|
285
305
|
export declare const FallbackRoutingHookConfigSchema: z.ZodSchema<FallbackRoutingHookConfig>;
|
|
@@ -371,15 +391,15 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
371
391
|
}, "strip", z.ZodTypeAny, {
|
|
372
392
|
type: "protocolFee";
|
|
373
393
|
owner: string;
|
|
374
|
-
protocolFee: string;
|
|
375
394
|
beneficiary: string;
|
|
395
|
+
protocolFee: string;
|
|
376
396
|
maxProtocolFee: string;
|
|
377
397
|
ownerOverrides?: Record<string, string> | undefined;
|
|
378
398
|
}, {
|
|
379
399
|
type: "protocolFee";
|
|
380
400
|
owner: string;
|
|
381
|
-
protocolFee: string;
|
|
382
401
|
beneficiary: string;
|
|
402
|
+
protocolFee: string;
|
|
383
403
|
maxProtocolFee: string;
|
|
384
404
|
ownerOverrides?: Record<string, string> | undefined;
|
|
385
405
|
}>, z.ZodObject<{
|
|
@@ -470,8 +490,23 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
470
490
|
totalUsdCost: number;
|
|
471
491
|
} | undefined;
|
|
472
492
|
}>>;
|
|
493
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
473
494
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
474
495
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
496
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
497
|
+
gasPrice: z.ZodString;
|
|
498
|
+
tokenExchangeRate: z.ZodString;
|
|
499
|
+
} & {
|
|
500
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
501
|
+
}, "strip", z.ZodTypeAny, {
|
|
502
|
+
gasPrice: string;
|
|
503
|
+
tokenExchangeRate: string;
|
|
504
|
+
tokenDecimals?: number | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
gasPrice: string;
|
|
507
|
+
tokenExchangeRate: string;
|
|
508
|
+
tokenDecimals?: number | undefined;
|
|
509
|
+
}>>>>;
|
|
475
510
|
}, "strip", z.ZodTypeAny, {
|
|
476
511
|
type: "interchainGasPaymaster";
|
|
477
512
|
owner: string;
|
|
@@ -490,7 +525,13 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
490
525
|
}>;
|
|
491
526
|
ownerOverrides?: Record<string, string> | undefined;
|
|
492
527
|
quoteSigners?: string[] | undefined;
|
|
528
|
+
igpVersion?: IgpVersion | undefined;
|
|
493
529
|
contractVersion?: string | undefined;
|
|
530
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
531
|
+
gasPrice: string;
|
|
532
|
+
tokenExchangeRate: string;
|
|
533
|
+
tokenDecimals?: number | undefined;
|
|
534
|
+
}>> | undefined;
|
|
494
535
|
}, {
|
|
495
536
|
type: "interchainGasPaymaster";
|
|
496
537
|
owner: string;
|
|
@@ -509,26 +550,14 @@ export declare const HookConfigSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
509
550
|
}>;
|
|
510
551
|
ownerOverrides?: Record<string, string> | undefined;
|
|
511
552
|
quoteSigners?: string[] | undefined;
|
|
553
|
+
igpVersion?: IgpVersion | undefined;
|
|
512
554
|
contractVersion?: string | undefined;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
}, "strip", z.ZodTypeAny, {
|
|
520
|
-
type: "arbL2ToL1Hook";
|
|
521
|
-
destinationChain: string;
|
|
522
|
-
arbSys: string;
|
|
523
|
-
bridge?: string | undefined;
|
|
524
|
-
childHook?: any;
|
|
525
|
-
}, {
|
|
526
|
-
type: "arbL2ToL1Hook";
|
|
527
|
-
destinationChain: string;
|
|
528
|
-
arbSys: string;
|
|
529
|
-
bridge?: string | undefined;
|
|
530
|
-
childHook?: any;
|
|
531
|
-
}>, z.ZodObject<{
|
|
555
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
556
|
+
gasPrice: string;
|
|
557
|
+
tokenExchangeRate: string;
|
|
558
|
+
tokenDecimals?: number | undefined;
|
|
559
|
+
}>> | undefined;
|
|
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<{
|
|
532
561
|
type: z.ZodLiteral<"defaultHook">;
|
|
533
562
|
}, "strip", z.ZodTypeAny, {
|
|
534
563
|
type: "defaultHook";
|
|
@@ -620,15 +649,15 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
|
|
|
620
649
|
}, "strip", z.ZodTypeAny, {
|
|
621
650
|
type: "protocolFee";
|
|
622
651
|
owner: string;
|
|
623
|
-
protocolFee: string;
|
|
624
652
|
beneficiary: string;
|
|
653
|
+
protocolFee: string;
|
|
625
654
|
maxProtocolFee: string;
|
|
626
655
|
ownerOverrides?: Record<string, string> | undefined;
|
|
627
656
|
}, {
|
|
628
657
|
type: "protocolFee";
|
|
629
658
|
owner: string;
|
|
630
|
-
protocolFee: string;
|
|
631
659
|
beneficiary: string;
|
|
660
|
+
protocolFee: string;
|
|
632
661
|
maxProtocolFee: string;
|
|
633
662
|
ownerOverrides?: Record<string, string> | undefined;
|
|
634
663
|
}>, z.ZodObject<{
|
|
@@ -719,8 +748,23 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
|
|
|
719
748
|
totalUsdCost: number;
|
|
720
749
|
} | undefined;
|
|
721
750
|
}>>;
|
|
751
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
722
752
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
723
753
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
754
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
755
|
+
gasPrice: z.ZodString;
|
|
756
|
+
tokenExchangeRate: z.ZodString;
|
|
757
|
+
} & {
|
|
758
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
759
|
+
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
gasPrice: string;
|
|
761
|
+
tokenExchangeRate: string;
|
|
762
|
+
tokenDecimals?: number | undefined;
|
|
763
|
+
}, {
|
|
764
|
+
gasPrice: string;
|
|
765
|
+
tokenExchangeRate: string;
|
|
766
|
+
tokenDecimals?: number | undefined;
|
|
767
|
+
}>>>>;
|
|
724
768
|
}, "strip", z.ZodTypeAny, {
|
|
725
769
|
type: "interchainGasPaymaster";
|
|
726
770
|
owner: string;
|
|
@@ -739,7 +783,13 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
|
|
|
739
783
|
}>;
|
|
740
784
|
ownerOverrides?: Record<string, string> | undefined;
|
|
741
785
|
quoteSigners?: string[] | undefined;
|
|
786
|
+
igpVersion?: IgpVersion | undefined;
|
|
742
787
|
contractVersion?: string | undefined;
|
|
788
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
789
|
+
gasPrice: string;
|
|
790
|
+
tokenExchangeRate: string;
|
|
791
|
+
tokenDecimals?: number | undefined;
|
|
792
|
+
}>> | undefined;
|
|
743
793
|
}, {
|
|
744
794
|
type: "interchainGasPaymaster";
|
|
745
795
|
owner: string;
|
|
@@ -758,26 +808,14 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
|
|
|
758
808
|
}>;
|
|
759
809
|
ownerOverrides?: Record<string, string> | undefined;
|
|
760
810
|
quoteSigners?: string[] | undefined;
|
|
811
|
+
igpVersion?: IgpVersion | undefined;
|
|
761
812
|
contractVersion?: string | undefined;
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
}, "strip", z.ZodTypeAny, {
|
|
769
|
-
type: "arbL2ToL1Hook";
|
|
770
|
-
destinationChain: string;
|
|
771
|
-
arbSys: string;
|
|
772
|
-
bridge?: string | undefined;
|
|
773
|
-
childHook?: any;
|
|
774
|
-
}, {
|
|
775
|
-
type: "arbL2ToL1Hook";
|
|
776
|
-
destinationChain: string;
|
|
777
|
-
arbSys: string;
|
|
778
|
-
bridge?: string | undefined;
|
|
779
|
-
childHook?: any;
|
|
780
|
-
}>, z.ZodObject<{
|
|
813
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
814
|
+
gasPrice: string;
|
|
815
|
+
tokenExchangeRate: string;
|
|
816
|
+
tokenDecimals?: number | undefined;
|
|
817
|
+
}>> | undefined;
|
|
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<{
|
|
781
819
|
type: z.ZodLiteral<"defaultHook">;
|
|
782
820
|
}, "strip", z.ZodTypeAny, {
|
|
783
821
|
type: "defaultHook";
|
|
@@ -872,12 +910,18 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
|
|
|
872
910
|
}>;
|
|
873
911
|
ownerOverrides?: Record<string, string> | undefined;
|
|
874
912
|
quoteSigners?: string[] | undefined;
|
|
913
|
+
igpVersion?: IgpVersion | undefined;
|
|
875
914
|
contractVersion?: string | undefined;
|
|
915
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
916
|
+
gasPrice: string;
|
|
917
|
+
tokenExchangeRate: string;
|
|
918
|
+
tokenDecimals?: number | undefined;
|
|
919
|
+
}>> | undefined;
|
|
876
920
|
} | {
|
|
877
921
|
type: "protocolFee";
|
|
878
922
|
owner: string;
|
|
879
|
-
protocolFee: string;
|
|
880
923
|
beneficiary: string;
|
|
924
|
+
protocolFee: string;
|
|
881
925
|
maxProtocolFee: string;
|
|
882
926
|
ownerOverrides?: Record<string, string> | undefined;
|
|
883
927
|
} | {
|
|
@@ -891,25 +935,19 @@ export declare const SafeParseHookConfigSchema: z.ZodEffects<z.ZodUnion<[z.ZodSt
|
|
|
891
935
|
nativeBridge: string;
|
|
892
936
|
destinationChain: string;
|
|
893
937
|
ownerOverrides?: Record<string, string> | undefined;
|
|
938
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
939
|
+
type: "defaultHook";
|
|
894
940
|
} | {
|
|
895
|
-
type: "
|
|
941
|
+
type: "ccipHook";
|
|
896
942
|
destinationChain: string;
|
|
897
|
-
arbSys: string;
|
|
898
|
-
bridge?: string | undefined;
|
|
899
|
-
childHook?: any;
|
|
900
943
|
} | {
|
|
901
|
-
type: "
|
|
944
|
+
type: "cctpHook";
|
|
945
|
+
address: string;
|
|
902
946
|
} | {
|
|
903
947
|
type: "rateLimitedHook";
|
|
904
948
|
owner: string;
|
|
905
949
|
maxCapacity: string;
|
|
906
950
|
ownerOverrides?: Record<string, string> | undefined;
|
|
907
|
-
} | {
|
|
908
|
-
type: "ccipHook";
|
|
909
|
-
destinationChain: string;
|
|
910
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
911
|
-
type: "cctpHook";
|
|
912
|
-
address: string;
|
|
913
951
|
} | z.objectOutputType<{
|
|
914
952
|
type: z.ZodLiteral<"unknownHook">;
|
|
915
953
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
@@ -928,15 +966,15 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
928
966
|
}, "strip", z.ZodTypeAny, {
|
|
929
967
|
type: "protocolFee";
|
|
930
968
|
owner: string;
|
|
931
|
-
protocolFee: string;
|
|
932
969
|
beneficiary: string;
|
|
970
|
+
protocolFee: string;
|
|
933
971
|
maxProtocolFee: string;
|
|
934
972
|
ownerOverrides?: Record<string, string> | undefined;
|
|
935
973
|
}, {
|
|
936
974
|
type: "protocolFee";
|
|
937
975
|
owner: string;
|
|
938
|
-
protocolFee: string;
|
|
939
976
|
beneficiary: string;
|
|
977
|
+
protocolFee: string;
|
|
940
978
|
maxProtocolFee: string;
|
|
941
979
|
ownerOverrides?: Record<string, string> | undefined;
|
|
942
980
|
}>, z.ZodObject<{
|
|
@@ -1027,8 +1065,23 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1027
1065
|
totalUsdCost: number;
|
|
1028
1066
|
} | undefined;
|
|
1029
1067
|
}>>;
|
|
1068
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
1030
1069
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1031
1070
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1072
|
+
gasPrice: z.ZodString;
|
|
1073
|
+
tokenExchangeRate: z.ZodString;
|
|
1074
|
+
} & {
|
|
1075
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
}, "strip", z.ZodTypeAny, {
|
|
1077
|
+
gasPrice: string;
|
|
1078
|
+
tokenExchangeRate: string;
|
|
1079
|
+
tokenDecimals?: number | undefined;
|
|
1080
|
+
}, {
|
|
1081
|
+
gasPrice: string;
|
|
1082
|
+
tokenExchangeRate: string;
|
|
1083
|
+
tokenDecimals?: number | undefined;
|
|
1084
|
+
}>>>>;
|
|
1032
1085
|
}, "strip", z.ZodTypeAny, {
|
|
1033
1086
|
type: "interchainGasPaymaster";
|
|
1034
1087
|
owner: string;
|
|
@@ -1047,7 +1100,13 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1047
1100
|
}>;
|
|
1048
1101
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1049
1102
|
quoteSigners?: string[] | undefined;
|
|
1103
|
+
igpVersion?: IgpVersion | undefined;
|
|
1050
1104
|
contractVersion?: string | undefined;
|
|
1105
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1106
|
+
gasPrice: string;
|
|
1107
|
+
tokenExchangeRate: string;
|
|
1108
|
+
tokenDecimals?: number | undefined;
|
|
1109
|
+
}>> | undefined;
|
|
1051
1110
|
}, {
|
|
1052
1111
|
type: "interchainGasPaymaster";
|
|
1053
1112
|
owner: string;
|
|
@@ -1066,26 +1125,14 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1066
1125
|
}>;
|
|
1067
1126
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1068
1127
|
quoteSigners?: string[] | undefined;
|
|
1128
|
+
igpVersion?: IgpVersion | undefined;
|
|
1069
1129
|
contractVersion?: string | undefined;
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
}, "strip", z.ZodTypeAny, {
|
|
1077
|
-
type: "arbL2ToL1Hook";
|
|
1078
|
-
destinationChain: string;
|
|
1079
|
-
arbSys: string;
|
|
1080
|
-
bridge?: string | undefined;
|
|
1081
|
-
childHook?: any;
|
|
1082
|
-
}, {
|
|
1083
|
-
type: "arbL2ToL1Hook";
|
|
1084
|
-
destinationChain: string;
|
|
1085
|
-
arbSys: string;
|
|
1086
|
-
bridge?: string | undefined;
|
|
1087
|
-
childHook?: any;
|
|
1088
|
-
}>, z.ZodObject<{
|
|
1130
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1131
|
+
gasPrice: string;
|
|
1132
|
+
tokenExchangeRate: string;
|
|
1133
|
+
tokenDecimals?: number | undefined;
|
|
1134
|
+
}>> | undefined;
|
|
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<{
|
|
1089
1136
|
type: z.ZodLiteral<"defaultHook">;
|
|
1090
1137
|
}, "strip", z.ZodTypeAny, {
|
|
1091
1138
|
type: "defaultHook";
|
|
@@ -1172,15 +1219,15 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1172
1219
|
}, "strip", z.ZodTypeAny, {
|
|
1173
1220
|
type: "protocolFee";
|
|
1174
1221
|
owner: string;
|
|
1175
|
-
protocolFee: string;
|
|
1176
1222
|
beneficiary: string;
|
|
1223
|
+
protocolFee: string;
|
|
1177
1224
|
maxProtocolFee: string;
|
|
1178
1225
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1179
1226
|
}, {
|
|
1180
1227
|
type: "protocolFee";
|
|
1181
1228
|
owner: string;
|
|
1182
|
-
protocolFee: string;
|
|
1183
1229
|
beneficiary: string;
|
|
1230
|
+
protocolFee: string;
|
|
1184
1231
|
maxProtocolFee: string;
|
|
1185
1232
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1186
1233
|
}>, z.ZodObject<{
|
|
@@ -1271,8 +1318,23 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1271
1318
|
totalUsdCost: number;
|
|
1272
1319
|
} | undefined;
|
|
1273
1320
|
}>>;
|
|
1321
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
1274
1322
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1275
1323
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1325
|
+
gasPrice: z.ZodString;
|
|
1326
|
+
tokenExchangeRate: z.ZodString;
|
|
1327
|
+
} & {
|
|
1328
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
1329
|
+
}, "strip", z.ZodTypeAny, {
|
|
1330
|
+
gasPrice: string;
|
|
1331
|
+
tokenExchangeRate: string;
|
|
1332
|
+
tokenDecimals?: number | undefined;
|
|
1333
|
+
}, {
|
|
1334
|
+
gasPrice: string;
|
|
1335
|
+
tokenExchangeRate: string;
|
|
1336
|
+
tokenDecimals?: number | undefined;
|
|
1337
|
+
}>>>>;
|
|
1276
1338
|
}, "strip", z.ZodTypeAny, {
|
|
1277
1339
|
type: "interchainGasPaymaster";
|
|
1278
1340
|
owner: string;
|
|
@@ -1291,7 +1353,13 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1291
1353
|
}>;
|
|
1292
1354
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1293
1355
|
quoteSigners?: string[] | undefined;
|
|
1356
|
+
igpVersion?: IgpVersion | undefined;
|
|
1294
1357
|
contractVersion?: string | undefined;
|
|
1358
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1359
|
+
gasPrice: string;
|
|
1360
|
+
tokenExchangeRate: string;
|
|
1361
|
+
tokenDecimals?: number | undefined;
|
|
1362
|
+
}>> | undefined;
|
|
1295
1363
|
}, {
|
|
1296
1364
|
type: "interchainGasPaymaster";
|
|
1297
1365
|
owner: string;
|
|
@@ -1310,26 +1378,14 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1310
1378
|
}>;
|
|
1311
1379
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1312
1380
|
quoteSigners?: string[] | undefined;
|
|
1381
|
+
igpVersion?: IgpVersion | undefined;
|
|
1313
1382
|
contractVersion?: string | undefined;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}, "strip", z.ZodTypeAny, {
|
|
1321
|
-
type: "arbL2ToL1Hook";
|
|
1322
|
-
destinationChain: string;
|
|
1323
|
-
arbSys: string;
|
|
1324
|
-
bridge?: string | undefined;
|
|
1325
|
-
childHook?: any;
|
|
1326
|
-
}, {
|
|
1327
|
-
type: "arbL2ToL1Hook";
|
|
1328
|
-
destinationChain: string;
|
|
1329
|
-
arbSys: string;
|
|
1330
|
-
bridge?: string | undefined;
|
|
1331
|
-
childHook?: any;
|
|
1332
|
-
}>, z.ZodObject<{
|
|
1383
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1384
|
+
gasPrice: string;
|
|
1385
|
+
tokenExchangeRate: string;
|
|
1386
|
+
tokenDecimals?: number | undefined;
|
|
1387
|
+
}>> | undefined;
|
|
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<{
|
|
1333
1389
|
type: z.ZodLiteral<"defaultHook">;
|
|
1334
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1335
1391
|
type: "defaultHook";
|
|
@@ -1406,7 +1462,7 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1406
1462
|
address: string;
|
|
1407
1463
|
}>]>;
|
|
1408
1464
|
}, "strip", z.ZodTypeAny, {
|
|
1409
|
-
|
|
1465
|
+
required: string | {
|
|
1410
1466
|
type: "merkleTreeHook";
|
|
1411
1467
|
} | {
|
|
1412
1468
|
type: "interchainGasPaymaster";
|
|
@@ -1426,12 +1482,18 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1426
1482
|
}>;
|
|
1427
1483
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1428
1484
|
quoteSigners?: string[] | undefined;
|
|
1485
|
+
igpVersion?: IgpVersion | undefined;
|
|
1429
1486
|
contractVersion?: string | undefined;
|
|
1487
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1488
|
+
gasPrice: string;
|
|
1489
|
+
tokenExchangeRate: string;
|
|
1490
|
+
tokenDecimals?: number | undefined;
|
|
1491
|
+
}>> | undefined;
|
|
1430
1492
|
} | {
|
|
1431
1493
|
type: "protocolFee";
|
|
1432
1494
|
owner: string;
|
|
1433
|
-
protocolFee: string;
|
|
1434
1495
|
beneficiary: string;
|
|
1496
|
+
protocolFee: string;
|
|
1435
1497
|
maxProtocolFee: string;
|
|
1436
1498
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1437
1499
|
} | {
|
|
@@ -1445,32 +1507,26 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1445
1507
|
nativeBridge: string;
|
|
1446
1508
|
destinationChain: string;
|
|
1447
1509
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1510
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
1511
|
+
type: "defaultHook";
|
|
1448
1512
|
} | {
|
|
1449
|
-
type: "
|
|
1513
|
+
type: "ccipHook";
|
|
1450
1514
|
destinationChain: string;
|
|
1451
|
-
arbSys: string;
|
|
1452
|
-
bridge?: string | undefined;
|
|
1453
|
-
childHook?: any;
|
|
1454
1515
|
} | {
|
|
1455
|
-
type: "
|
|
1516
|
+
type: "cctpHook";
|
|
1517
|
+
address: string;
|
|
1456
1518
|
} | {
|
|
1457
1519
|
type: "rateLimitedHook";
|
|
1458
1520
|
owner: string;
|
|
1459
1521
|
maxCapacity: string;
|
|
1460
1522
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1461
|
-
} | {
|
|
1462
|
-
type: "ccipHook";
|
|
1463
|
-
destinationChain: string;
|
|
1464
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
1465
|
-
type: "cctpHook";
|
|
1466
|
-
address: string;
|
|
1467
1523
|
} | z.objectOutputType<{
|
|
1468
1524
|
type: z.ZodLiteral<"unknownHook">;
|
|
1469
1525
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
1470
1526
|
type: "predicateHook";
|
|
1471
1527
|
address: string;
|
|
1472
1528
|
};
|
|
1473
|
-
|
|
1529
|
+
default: string | {
|
|
1474
1530
|
type: "merkleTreeHook";
|
|
1475
1531
|
} | {
|
|
1476
1532
|
type: "interchainGasPaymaster";
|
|
@@ -1490,12 +1546,18 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1490
1546
|
}>;
|
|
1491
1547
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1492
1548
|
quoteSigners?: string[] | undefined;
|
|
1549
|
+
igpVersion?: IgpVersion | undefined;
|
|
1493
1550
|
contractVersion?: string | undefined;
|
|
1551
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1552
|
+
gasPrice: string;
|
|
1553
|
+
tokenExchangeRate: string;
|
|
1554
|
+
tokenDecimals?: number | undefined;
|
|
1555
|
+
}>> | undefined;
|
|
1494
1556
|
} | {
|
|
1495
1557
|
type: "protocolFee";
|
|
1496
1558
|
owner: string;
|
|
1497
|
-
protocolFee: string;
|
|
1498
1559
|
beneficiary: string;
|
|
1560
|
+
protocolFee: string;
|
|
1499
1561
|
maxProtocolFee: string;
|
|
1500
1562
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1501
1563
|
} | {
|
|
@@ -1509,25 +1571,19 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1509
1571
|
nativeBridge: string;
|
|
1510
1572
|
destinationChain: string;
|
|
1511
1573
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1574
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
1575
|
+
type: "defaultHook";
|
|
1512
1576
|
} | {
|
|
1513
|
-
type: "
|
|
1577
|
+
type: "ccipHook";
|
|
1514
1578
|
destinationChain: string;
|
|
1515
|
-
arbSys: string;
|
|
1516
|
-
bridge?: string | undefined;
|
|
1517
|
-
childHook?: any;
|
|
1518
1579
|
} | {
|
|
1519
|
-
type: "
|
|
1580
|
+
type: "cctpHook";
|
|
1581
|
+
address: string;
|
|
1520
1582
|
} | {
|
|
1521
1583
|
type: "rateLimitedHook";
|
|
1522
1584
|
owner: string;
|
|
1523
1585
|
maxCapacity: string;
|
|
1524
1586
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1525
|
-
} | {
|
|
1526
|
-
type: "ccipHook";
|
|
1527
|
-
destinationChain: string;
|
|
1528
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
1529
|
-
type: "cctpHook";
|
|
1530
|
-
address: string;
|
|
1531
1587
|
} | z.objectOutputType<{
|
|
1532
1588
|
type: z.ZodLiteral<"unknownHook">;
|
|
1533
1589
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
@@ -1535,7 +1591,7 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1535
1591
|
address: string;
|
|
1536
1592
|
};
|
|
1537
1593
|
}, {
|
|
1538
|
-
|
|
1594
|
+
required: string | {
|
|
1539
1595
|
type: "merkleTreeHook";
|
|
1540
1596
|
} | {
|
|
1541
1597
|
type: "interchainGasPaymaster";
|
|
@@ -1555,12 +1611,18 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1555
1611
|
}>;
|
|
1556
1612
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1557
1613
|
quoteSigners?: string[] | undefined;
|
|
1614
|
+
igpVersion?: IgpVersion | undefined;
|
|
1558
1615
|
contractVersion?: string | undefined;
|
|
1616
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1617
|
+
gasPrice: string;
|
|
1618
|
+
tokenExchangeRate: string;
|
|
1619
|
+
tokenDecimals?: number | undefined;
|
|
1620
|
+
}>> | undefined;
|
|
1559
1621
|
} | {
|
|
1560
1622
|
type: "protocolFee";
|
|
1561
1623
|
owner: string;
|
|
1562
|
-
protocolFee: string;
|
|
1563
1624
|
beneficiary: string;
|
|
1625
|
+
protocolFee: string;
|
|
1564
1626
|
maxProtocolFee: string;
|
|
1565
1627
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1566
1628
|
} | {
|
|
@@ -1574,32 +1636,26 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1574
1636
|
nativeBridge: string;
|
|
1575
1637
|
destinationChain: string;
|
|
1576
1638
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1639
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
1640
|
+
type: "defaultHook";
|
|
1577
1641
|
} | {
|
|
1578
|
-
type: "
|
|
1642
|
+
type: "ccipHook";
|
|
1579
1643
|
destinationChain: string;
|
|
1580
|
-
arbSys: string;
|
|
1581
|
-
bridge?: string | undefined;
|
|
1582
|
-
childHook?: any;
|
|
1583
1644
|
} | {
|
|
1584
|
-
type: "
|
|
1645
|
+
type: "cctpHook";
|
|
1646
|
+
address: string;
|
|
1585
1647
|
} | {
|
|
1586
1648
|
type: "rateLimitedHook";
|
|
1587
1649
|
owner: string;
|
|
1588
1650
|
maxCapacity: string;
|
|
1589
1651
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1590
|
-
} | {
|
|
1591
|
-
type: "ccipHook";
|
|
1592
|
-
destinationChain: string;
|
|
1593
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
1594
|
-
type: "cctpHook";
|
|
1595
|
-
address: string;
|
|
1596
1652
|
} | z.objectInputType<{
|
|
1597
1653
|
type: z.ZodLiteral<"unknownHook">;
|
|
1598
1654
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
1599
1655
|
type: "predicateHook";
|
|
1600
1656
|
address: string;
|
|
1601
1657
|
};
|
|
1602
|
-
|
|
1658
|
+
default: string | {
|
|
1603
1659
|
type: "merkleTreeHook";
|
|
1604
1660
|
} | {
|
|
1605
1661
|
type: "interchainGasPaymaster";
|
|
@@ -1619,12 +1675,18 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1619
1675
|
}>;
|
|
1620
1676
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1621
1677
|
quoteSigners?: string[] | undefined;
|
|
1678
|
+
igpVersion?: IgpVersion | undefined;
|
|
1622
1679
|
contractVersion?: string | undefined;
|
|
1680
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1681
|
+
gasPrice: string;
|
|
1682
|
+
tokenExchangeRate: string;
|
|
1683
|
+
tokenDecimals?: number | undefined;
|
|
1684
|
+
}>> | undefined;
|
|
1623
1685
|
} | {
|
|
1624
1686
|
type: "protocolFee";
|
|
1625
1687
|
owner: string;
|
|
1626
|
-
protocolFee: string;
|
|
1627
1688
|
beneficiary: string;
|
|
1689
|
+
protocolFee: string;
|
|
1628
1690
|
maxProtocolFee: string;
|
|
1629
1691
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1630
1692
|
} | {
|
|
@@ -1638,25 +1700,19 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
1638
1700
|
nativeBridge: string;
|
|
1639
1701
|
destinationChain: string;
|
|
1640
1702
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1703
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
1704
|
+
type: "defaultHook";
|
|
1641
1705
|
} | {
|
|
1642
|
-
type: "
|
|
1706
|
+
type: "ccipHook";
|
|
1643
1707
|
destinationChain: string;
|
|
1644
|
-
arbSys: string;
|
|
1645
|
-
bridge?: string | undefined;
|
|
1646
|
-
childHook?: any;
|
|
1647
1708
|
} | {
|
|
1648
|
-
type: "
|
|
1709
|
+
type: "cctpHook";
|
|
1710
|
+
address: string;
|
|
1649
1711
|
} | {
|
|
1650
1712
|
type: "rateLimitedHook";
|
|
1651
1713
|
owner: string;
|
|
1652
1714
|
maxCapacity: string;
|
|
1653
1715
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1654
|
-
} | {
|
|
1655
|
-
type: "ccipHook";
|
|
1656
|
-
destinationChain: string;
|
|
1657
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
1658
|
-
type: "cctpHook";
|
|
1659
|
-
address: string;
|
|
1660
1716
|
} | z.objectInputType<{
|
|
1661
1717
|
type: z.ZodLiteral<"unknownHook">;
|
|
1662
1718
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
@@ -1677,15 +1733,15 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
1677
1733
|
}, "strip", z.ZodTypeAny, {
|
|
1678
1734
|
type: "protocolFee";
|
|
1679
1735
|
owner: string;
|
|
1680
|
-
protocolFee: string;
|
|
1681
1736
|
beneficiary: string;
|
|
1737
|
+
protocolFee: string;
|
|
1682
1738
|
maxProtocolFee: string;
|
|
1683
1739
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1684
1740
|
}, {
|
|
1685
1741
|
type: "protocolFee";
|
|
1686
1742
|
owner: string;
|
|
1687
|
-
protocolFee: string;
|
|
1688
1743
|
beneficiary: string;
|
|
1744
|
+
protocolFee: string;
|
|
1689
1745
|
maxProtocolFee: string;
|
|
1690
1746
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1691
1747
|
}>, z.ZodObject<{
|
|
@@ -1776,8 +1832,23 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
1776
1832
|
totalUsdCost: number;
|
|
1777
1833
|
} | undefined;
|
|
1778
1834
|
}>>;
|
|
1835
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
1779
1836
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1780
1837
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1839
|
+
gasPrice: z.ZodString;
|
|
1840
|
+
tokenExchangeRate: z.ZodString;
|
|
1841
|
+
} & {
|
|
1842
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
1843
|
+
}, "strip", z.ZodTypeAny, {
|
|
1844
|
+
gasPrice: string;
|
|
1845
|
+
tokenExchangeRate: string;
|
|
1846
|
+
tokenDecimals?: number | undefined;
|
|
1847
|
+
}, {
|
|
1848
|
+
gasPrice: string;
|
|
1849
|
+
tokenExchangeRate: string;
|
|
1850
|
+
tokenDecimals?: number | undefined;
|
|
1851
|
+
}>>>>;
|
|
1781
1852
|
}, "strip", z.ZodTypeAny, {
|
|
1782
1853
|
type: "interchainGasPaymaster";
|
|
1783
1854
|
owner: string;
|
|
@@ -1796,7 +1867,13 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
1796
1867
|
}>;
|
|
1797
1868
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1798
1869
|
quoteSigners?: string[] | undefined;
|
|
1870
|
+
igpVersion?: IgpVersion | undefined;
|
|
1799
1871
|
contractVersion?: string | undefined;
|
|
1872
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1873
|
+
gasPrice: string;
|
|
1874
|
+
tokenExchangeRate: string;
|
|
1875
|
+
tokenDecimals?: number | undefined;
|
|
1876
|
+
}>> | undefined;
|
|
1800
1877
|
}, {
|
|
1801
1878
|
type: "interchainGasPaymaster";
|
|
1802
1879
|
owner: string;
|
|
@@ -1815,26 +1892,14 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
1815
1892
|
}>;
|
|
1816
1893
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1817
1894
|
quoteSigners?: string[] | undefined;
|
|
1895
|
+
igpVersion?: IgpVersion | undefined;
|
|
1818
1896
|
contractVersion?: string | undefined;
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
}, "strip", z.ZodTypeAny, {
|
|
1826
|
-
type: "arbL2ToL1Hook";
|
|
1827
|
-
destinationChain: string;
|
|
1828
|
-
arbSys: string;
|
|
1829
|
-
bridge?: string | undefined;
|
|
1830
|
-
childHook?: any;
|
|
1831
|
-
}, {
|
|
1832
|
-
type: "arbL2ToL1Hook";
|
|
1833
|
-
destinationChain: string;
|
|
1834
|
-
arbSys: string;
|
|
1835
|
-
bridge?: string | undefined;
|
|
1836
|
-
childHook?: any;
|
|
1837
|
-
}>, z.ZodObject<{
|
|
1897
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
1898
|
+
gasPrice: string;
|
|
1899
|
+
tokenExchangeRate: string;
|
|
1900
|
+
tokenDecimals?: number | undefined;
|
|
1901
|
+
}>> | undefined;
|
|
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<{
|
|
1838
1903
|
type: z.ZodLiteral<"defaultHook">;
|
|
1839
1904
|
}, "strip", z.ZodTypeAny, {
|
|
1840
1905
|
type: "defaultHook";
|
|
@@ -1921,15 +1986,15 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
1921
1986
|
}, "strip", z.ZodTypeAny, {
|
|
1922
1987
|
type: "protocolFee";
|
|
1923
1988
|
owner: string;
|
|
1924
|
-
protocolFee: string;
|
|
1925
1989
|
beneficiary: string;
|
|
1990
|
+
protocolFee: string;
|
|
1926
1991
|
maxProtocolFee: string;
|
|
1927
1992
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1928
1993
|
}, {
|
|
1929
1994
|
type: "protocolFee";
|
|
1930
1995
|
owner: string;
|
|
1931
|
-
protocolFee: string;
|
|
1932
1996
|
beneficiary: string;
|
|
1997
|
+
protocolFee: string;
|
|
1933
1998
|
maxProtocolFee: string;
|
|
1934
1999
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1935
2000
|
}>, z.ZodObject<{
|
|
@@ -2020,8 +2085,23 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2020
2085
|
totalUsdCost: number;
|
|
2021
2086
|
} | undefined;
|
|
2022
2087
|
}>>;
|
|
2088
|
+
igpVersion: z.ZodOptional<z.ZodNativeEnum<typeof IgpVersion>>;
|
|
2023
2089
|
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2024
2090
|
contractVersion: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
tokenOracleConfig: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2092
|
+
gasPrice: z.ZodString;
|
|
2093
|
+
tokenExchangeRate: z.ZodString;
|
|
2094
|
+
} & {
|
|
2095
|
+
tokenDecimals: z.ZodOptional<z.ZodNumber>;
|
|
2096
|
+
}, "strip", z.ZodTypeAny, {
|
|
2097
|
+
gasPrice: string;
|
|
2098
|
+
tokenExchangeRate: string;
|
|
2099
|
+
tokenDecimals?: number | undefined;
|
|
2100
|
+
}, {
|
|
2101
|
+
gasPrice: string;
|
|
2102
|
+
tokenExchangeRate: string;
|
|
2103
|
+
tokenDecimals?: number | undefined;
|
|
2104
|
+
}>>>>;
|
|
2025
2105
|
}, "strip", z.ZodTypeAny, {
|
|
2026
2106
|
type: "interchainGasPaymaster";
|
|
2027
2107
|
owner: string;
|
|
@@ -2040,7 +2120,13 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2040
2120
|
}>;
|
|
2041
2121
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2042
2122
|
quoteSigners?: string[] | undefined;
|
|
2123
|
+
igpVersion?: IgpVersion | undefined;
|
|
2043
2124
|
contractVersion?: string | undefined;
|
|
2125
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
2126
|
+
gasPrice: string;
|
|
2127
|
+
tokenExchangeRate: string;
|
|
2128
|
+
tokenDecimals?: number | undefined;
|
|
2129
|
+
}>> | undefined;
|
|
2044
2130
|
}, {
|
|
2045
2131
|
type: "interchainGasPaymaster";
|
|
2046
2132
|
owner: string;
|
|
@@ -2059,26 +2145,14 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2059
2145
|
}>;
|
|
2060
2146
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2061
2147
|
quoteSigners?: string[] | undefined;
|
|
2148
|
+
igpVersion?: IgpVersion | undefined;
|
|
2062
2149
|
contractVersion?: string | undefined;
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
}, "strip", z.ZodTypeAny, {
|
|
2070
|
-
type: "arbL2ToL1Hook";
|
|
2071
|
-
destinationChain: string;
|
|
2072
|
-
arbSys: string;
|
|
2073
|
-
bridge?: string | undefined;
|
|
2074
|
-
childHook?: any;
|
|
2075
|
-
}, {
|
|
2076
|
-
type: "arbL2ToL1Hook";
|
|
2077
|
-
destinationChain: string;
|
|
2078
|
-
arbSys: string;
|
|
2079
|
-
bridge?: string | undefined;
|
|
2080
|
-
childHook?: any;
|
|
2081
|
-
}>, z.ZodObject<{
|
|
2150
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
2151
|
+
gasPrice: string;
|
|
2152
|
+
tokenExchangeRate: string;
|
|
2153
|
+
tokenDecimals?: number | undefined;
|
|
2154
|
+
}>> | undefined;
|
|
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<{
|
|
2082
2156
|
type: z.ZodLiteral<"defaultHook">;
|
|
2083
2157
|
}, "strip", z.ZodTypeAny, {
|
|
2084
2158
|
type: "defaultHook";
|
|
@@ -2155,7 +2229,7 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2155
2229
|
address: string;
|
|
2156
2230
|
}>]>;
|
|
2157
2231
|
}, "strip", z.ZodTypeAny, {
|
|
2158
|
-
|
|
2232
|
+
required: string | {
|
|
2159
2233
|
type: "merkleTreeHook";
|
|
2160
2234
|
} | {
|
|
2161
2235
|
type: "interchainGasPaymaster";
|
|
@@ -2175,12 +2249,18 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2175
2249
|
}>;
|
|
2176
2250
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2177
2251
|
quoteSigners?: string[] | undefined;
|
|
2252
|
+
igpVersion?: IgpVersion | undefined;
|
|
2178
2253
|
contractVersion?: string | undefined;
|
|
2254
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
2255
|
+
gasPrice: string;
|
|
2256
|
+
tokenExchangeRate: string;
|
|
2257
|
+
tokenDecimals?: number | undefined;
|
|
2258
|
+
}>> | undefined;
|
|
2179
2259
|
} | {
|
|
2180
2260
|
type: "protocolFee";
|
|
2181
2261
|
owner: string;
|
|
2182
|
-
protocolFee: string;
|
|
2183
2262
|
beneficiary: string;
|
|
2263
|
+
protocolFee: string;
|
|
2184
2264
|
maxProtocolFee: string;
|
|
2185
2265
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2186
2266
|
} | {
|
|
@@ -2194,32 +2274,26 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2194
2274
|
nativeBridge: string;
|
|
2195
2275
|
destinationChain: string;
|
|
2196
2276
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2277
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
2278
|
+
type: "defaultHook";
|
|
2197
2279
|
} | {
|
|
2198
|
-
type: "
|
|
2280
|
+
type: "ccipHook";
|
|
2199
2281
|
destinationChain: string;
|
|
2200
|
-
arbSys: string;
|
|
2201
|
-
bridge?: string | undefined;
|
|
2202
|
-
childHook?: any;
|
|
2203
2282
|
} | {
|
|
2204
|
-
type: "
|
|
2283
|
+
type: "cctpHook";
|
|
2284
|
+
address: string;
|
|
2205
2285
|
} | {
|
|
2206
2286
|
type: "rateLimitedHook";
|
|
2207
2287
|
owner: string;
|
|
2208
2288
|
maxCapacity: string;
|
|
2209
2289
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2210
|
-
} | {
|
|
2211
|
-
type: "ccipHook";
|
|
2212
|
-
destinationChain: string;
|
|
2213
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
2214
|
-
type: "cctpHook";
|
|
2215
|
-
address: string;
|
|
2216
2290
|
} | z.objectOutputType<{
|
|
2217
2291
|
type: z.ZodLiteral<"unknownHook">;
|
|
2218
2292
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
2219
2293
|
type: "predicateHook";
|
|
2220
2294
|
address: string;
|
|
2221
2295
|
};
|
|
2222
|
-
|
|
2296
|
+
default: string | {
|
|
2223
2297
|
type: "merkleTreeHook";
|
|
2224
2298
|
} | {
|
|
2225
2299
|
type: "interchainGasPaymaster";
|
|
@@ -2239,12 +2313,18 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2239
2313
|
}>;
|
|
2240
2314
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2241
2315
|
quoteSigners?: string[] | undefined;
|
|
2316
|
+
igpVersion?: IgpVersion | undefined;
|
|
2242
2317
|
contractVersion?: string | undefined;
|
|
2318
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
2319
|
+
gasPrice: string;
|
|
2320
|
+
tokenExchangeRate: string;
|
|
2321
|
+
tokenDecimals?: number | undefined;
|
|
2322
|
+
}>> | undefined;
|
|
2243
2323
|
} | {
|
|
2244
2324
|
type: "protocolFee";
|
|
2245
2325
|
owner: string;
|
|
2246
|
-
protocolFee: string;
|
|
2247
2326
|
beneficiary: string;
|
|
2327
|
+
protocolFee: string;
|
|
2248
2328
|
maxProtocolFee: string;
|
|
2249
2329
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2250
2330
|
} | {
|
|
@@ -2258,25 +2338,19 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2258
2338
|
nativeBridge: string;
|
|
2259
2339
|
destinationChain: string;
|
|
2260
2340
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2341
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
2342
|
+
type: "defaultHook";
|
|
2261
2343
|
} | {
|
|
2262
|
-
type: "
|
|
2344
|
+
type: "ccipHook";
|
|
2263
2345
|
destinationChain: string;
|
|
2264
|
-
arbSys: string;
|
|
2265
|
-
bridge?: string | undefined;
|
|
2266
|
-
childHook?: any;
|
|
2267
2346
|
} | {
|
|
2268
|
-
type: "
|
|
2347
|
+
type: "cctpHook";
|
|
2348
|
+
address: string;
|
|
2269
2349
|
} | {
|
|
2270
2350
|
type: "rateLimitedHook";
|
|
2271
2351
|
owner: string;
|
|
2272
2352
|
maxCapacity: string;
|
|
2273
2353
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2274
|
-
} | {
|
|
2275
|
-
type: "ccipHook";
|
|
2276
|
-
destinationChain: string;
|
|
2277
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
2278
|
-
type: "cctpHook";
|
|
2279
|
-
address: string;
|
|
2280
2354
|
} | z.objectOutputType<{
|
|
2281
2355
|
type: z.ZodLiteral<"unknownHook">;
|
|
2282
2356
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
@@ -2284,7 +2358,7 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2284
2358
|
address: string;
|
|
2285
2359
|
};
|
|
2286
2360
|
}, {
|
|
2287
|
-
|
|
2361
|
+
required: string | {
|
|
2288
2362
|
type: "merkleTreeHook";
|
|
2289
2363
|
} | {
|
|
2290
2364
|
type: "interchainGasPaymaster";
|
|
@@ -2304,12 +2378,18 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2304
2378
|
}>;
|
|
2305
2379
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2306
2380
|
quoteSigners?: string[] | undefined;
|
|
2381
|
+
igpVersion?: IgpVersion | undefined;
|
|
2307
2382
|
contractVersion?: string | undefined;
|
|
2383
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
2384
|
+
gasPrice: string;
|
|
2385
|
+
tokenExchangeRate: string;
|
|
2386
|
+
tokenDecimals?: number | undefined;
|
|
2387
|
+
}>> | undefined;
|
|
2308
2388
|
} | {
|
|
2309
2389
|
type: "protocolFee";
|
|
2310
2390
|
owner: string;
|
|
2311
|
-
protocolFee: string;
|
|
2312
2391
|
beneficiary: string;
|
|
2392
|
+
protocolFee: string;
|
|
2313
2393
|
maxProtocolFee: string;
|
|
2314
2394
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2315
2395
|
} | {
|
|
@@ -2323,32 +2403,26 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2323
2403
|
nativeBridge: string;
|
|
2324
2404
|
destinationChain: string;
|
|
2325
2405
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2406
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
2407
|
+
type: "defaultHook";
|
|
2326
2408
|
} | {
|
|
2327
|
-
type: "
|
|
2409
|
+
type: "ccipHook";
|
|
2328
2410
|
destinationChain: string;
|
|
2329
|
-
arbSys: string;
|
|
2330
|
-
bridge?: string | undefined;
|
|
2331
|
-
childHook?: any;
|
|
2332
2411
|
} | {
|
|
2333
|
-
type: "
|
|
2412
|
+
type: "cctpHook";
|
|
2413
|
+
address: string;
|
|
2334
2414
|
} | {
|
|
2335
2415
|
type: "rateLimitedHook";
|
|
2336
2416
|
owner: string;
|
|
2337
2417
|
maxCapacity: string;
|
|
2338
2418
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2339
|
-
} | {
|
|
2340
|
-
type: "ccipHook";
|
|
2341
|
-
destinationChain: string;
|
|
2342
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
2343
|
-
type: "cctpHook";
|
|
2344
|
-
address: string;
|
|
2345
2419
|
} | z.objectInputType<{
|
|
2346
2420
|
type: z.ZodLiteral<"unknownHook">;
|
|
2347
2421
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
2348
2422
|
type: "predicateHook";
|
|
2349
2423
|
address: string;
|
|
2350
2424
|
};
|
|
2351
|
-
|
|
2425
|
+
default: string | {
|
|
2352
2426
|
type: "merkleTreeHook";
|
|
2353
2427
|
} | {
|
|
2354
2428
|
type: "interchainGasPaymaster";
|
|
@@ -2368,12 +2442,18 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2368
2442
|
}>;
|
|
2369
2443
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2370
2444
|
quoteSigners?: string[] | undefined;
|
|
2445
|
+
igpVersion?: IgpVersion | undefined;
|
|
2371
2446
|
contractVersion?: string | undefined;
|
|
2447
|
+
tokenOracleConfig?: Record<string, Record<string, {
|
|
2448
|
+
gasPrice: string;
|
|
2449
|
+
tokenExchangeRate: string;
|
|
2450
|
+
tokenDecimals?: number | undefined;
|
|
2451
|
+
}>> | undefined;
|
|
2372
2452
|
} | {
|
|
2373
2453
|
type: "protocolFee";
|
|
2374
2454
|
owner: string;
|
|
2375
|
-
protocolFee: string;
|
|
2376
2455
|
beneficiary: string;
|
|
2456
|
+
protocolFee: string;
|
|
2377
2457
|
maxProtocolFee: string;
|
|
2378
2458
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2379
2459
|
} | {
|
|
@@ -2387,25 +2467,19 @@ export declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
2387
2467
|
nativeBridge: string;
|
|
2388
2468
|
destinationChain: string;
|
|
2389
2469
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2470
|
+
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | ArbL2ToL1HookConfig | {
|
|
2471
|
+
type: "defaultHook";
|
|
2390
2472
|
} | {
|
|
2391
|
-
type: "
|
|
2473
|
+
type: "ccipHook";
|
|
2392
2474
|
destinationChain: string;
|
|
2393
|
-
arbSys: string;
|
|
2394
|
-
bridge?: string | undefined;
|
|
2395
|
-
childHook?: any;
|
|
2396
2475
|
} | {
|
|
2397
|
-
type: "
|
|
2476
|
+
type: "cctpHook";
|
|
2477
|
+
address: string;
|
|
2398
2478
|
} | {
|
|
2399
2479
|
type: "rateLimitedHook";
|
|
2400
2480
|
owner: string;
|
|
2401
2481
|
maxCapacity: string;
|
|
2402
2482
|
ownerOverrides?: Record<string, string> | undefined;
|
|
2403
|
-
} | {
|
|
2404
|
-
type: "ccipHook";
|
|
2405
|
-
destinationChain: string;
|
|
2406
|
-
} | DomainRoutingHookConfig | FallbackRoutingHookConfig | AmountRoutingHookConfig | AggregationHookConfig | {
|
|
2407
|
-
type: "cctpHook";
|
|
2408
|
-
address: string;
|
|
2409
2483
|
} | z.objectInputType<{
|
|
2410
2484
|
type: z.ZodLiteral<"unknownHook">;
|
|
2411
2485
|
}, z.ZodTypeAny, "passthrough"> | {
|