@hyperlane-xyz/sdk 42.0.0 → 43.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/consts/multisigIsm.d.ts.map +1 -1
- package/dist/consts/multisigIsm.js +12 -0
- package/dist/consts/multisigIsm.js.map +1 -1
- package/dist/core/types.d.ts +47 -1635
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +2 -2
- package/dist/core/types.js.map +1 -1
- package/dist/deploy/HyperlaneDeployer.js +1 -1
- package/dist/deploy/proxy.d.ts +8 -40
- package/dist/deploy/proxy.d.ts.map +1 -1
- package/dist/deploy/proxy.js +4 -4
- package/dist/deploy/proxy.js.map +1 -1
- package/dist/deploy/types.d.ts +1 -19
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeDeployer.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js +68 -0
- package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js.map +1 -1
- package/dist/fee/EvmTokenFeeDeployer.js +18 -10
- package/dist/fee/EvmTokenFeeDeployer.js.map +1 -1
- package/dist/fee/EvmTokenFeeModule.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeModule.hardhat-test.js +18 -8
- package/dist/fee/EvmTokenFeeModule.hardhat-test.js.map +1 -1
- package/dist/fee/EvmTokenFeeModule.js +8 -1
- package/dist/fee/EvmTokenFeeModule.js.map +1 -1
- package/dist/fee/EvmTokenFeeReader.d.ts +2 -2
- package/dist/fee/EvmTokenFeeReader.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeReader.js.map +1 -1
- package/dist/fee/feeConfigMapping.d.ts.map +1 -1
- package/dist/fee/feeConfigMapping.js +1 -0
- package/dist/fee/feeConfigMapping.js.map +1 -1
- package/dist/fee/types.d.ts +147 -646
- package/dist/fee/types.d.ts.map +1 -1
- package/dist/fee/types.js +26 -17
- package/dist/fee/types.js.map +1 -1
- package/dist/fork/types.d.ts +125 -1924
- package/dist/fork/types.d.ts.map +1 -1
- package/dist/fork/types.js +3 -3
- package/dist/fork/types.js.map +1 -1
- package/dist/gas/oracle/types.d.ts +5 -56
- package/dist/gas/oracle/types.d.ts.map +1 -1
- package/dist/hook/EvmHookModule.d.ts.map +1 -1
- package/dist/hook/EvmHookModule.hardhat-test.js +12 -1
- package/dist/hook/EvmHookModule.hardhat-test.js.map +1 -1
- package/dist/hook/EvmHookModule.js +3 -0
- package/dist/hook/EvmHookModule.js.map +1 -1
- package/dist/hook/HyperlaneHookDeployer.d.ts +12 -0
- package/dist/hook/HyperlaneHookDeployer.d.ts.map +1 -1
- package/dist/hook/HyperlaneHookDeployer.hardhat-test.d.ts +2 -0
- package/dist/hook/HyperlaneHookDeployer.hardhat-test.d.ts.map +1 -0
- package/dist/hook/HyperlaneHookDeployer.hardhat-test.js +322 -0
- package/dist/hook/HyperlaneHookDeployer.hardhat-test.js.map +1 -0
- package/dist/hook/HyperlaneHookDeployer.js +262 -5
- package/dist/hook/HyperlaneHookDeployer.js.map +1 -1
- package/dist/hook/types.d.ts +44 -319
- package/dist/hook/types.d.ts.map +1 -1
- package/dist/hook/types.js +18 -11
- package/dist/hook/types.js.map +1 -1
- package/dist/ica/types.d.ts +35 -900
- package/dist/ica/types.d.ts.map +1 -1
- package/dist/ica/types.js +1 -1
- package/dist/ica/types.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ism/EvmIsmModule.d.ts +1 -1
- package/dist/ism/EvmIsmModule.d.ts.map +1 -1
- package/dist/ism/EvmIsmModule.hardhat-test.js +35 -1
- package/dist/ism/EvmIsmModule.hardhat-test.js.map +1 -1
- package/dist/ism/EvmIsmModule.js +15 -11
- package/dist/ism/EvmIsmModule.js.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.d.ts +3 -1
- package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +61 -3
- package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.js +42 -6
- package/dist/ism/HyperlaneIsmFactory.js.map +1 -1
- package/dist/ism/types.d.ts +48 -330
- package/dist/ism/types.d.ts.map +1 -1
- package/dist/ism/types.js +8 -10
- package/dist/ism/types.js.map +1 -1
- package/dist/metadata/agentConfig.d.ts +537 -10384
- package/dist/metadata/agentConfig.d.ts.map +1 -1
- package/dist/metadata/agentConfig.js +14 -16
- package/dist/metadata/agentConfig.js.map +1 -1
- package/dist/metadata/chainMetadataTypes.d.ts +70 -4678
- package/dist/metadata/chainMetadataTypes.d.ts.map +1 -1
- package/dist/metadata/chainMetadataTypes.js +5 -5
- package/dist/metadata/chainMetadataTypes.js.map +1 -1
- package/dist/metadata/customZodTypes.d.ts +5 -5
- package/dist/metadata/customZodTypes.d.ts.map +1 -1
- package/dist/metadata/customZodTypes.js +4 -5
- package/dist/metadata/customZodTypes.js.map +1 -1
- package/dist/metadata/deploymentArtifacts.d.ts +1 -13
- package/dist/metadata/deploymentArtifacts.d.ts.map +1 -1
- package/dist/metadata/matchingList.d.ts +12 -40
- package/dist/metadata/matchingList.d.ts.map +1 -1
- package/dist/metadata/warpRouteConfig.d.ts +8 -114
- package/dist/metadata/warpRouteConfig.d.ts.map +1 -1
- package/dist/metadata/warpRouteConfig.js +3 -3
- package/dist/metadata/warpRouteConfig.js.map +1 -1
- package/dist/middleware/account/InterchainAccount.d.ts.map +1 -1
- package/dist/middleware/account/InterchainAccount.js +12 -8
- package/dist/middleware/account/InterchainAccount.js.map +1 -1
- package/dist/middleware/account/InterchainAccount.test.js +22 -3
- package/dist/middleware/account/InterchainAccount.test.js.map +1 -1
- package/dist/middleware/account/icaCalls.d.ts +13 -145
- package/dist/middleware/account/icaCalls.d.ts.map +1 -1
- package/dist/middleware/account/types.d.ts +11 -105
- package/dist/middleware/account/types.d.ts.map +1 -1
- package/dist/predicate/PredicateApiClient.d.ts +1 -11
- package/dist/predicate/PredicateApiClient.d.ts.map +1 -1
- package/dist/providers/MultiProvider.d.ts.map +1 -1
- package/dist/providers/MultiProvider.js +3 -2
- package/dist/providers/MultiProvider.js.map +1 -1
- package/dist/providers/transactions/submitter/builder/types.d.ts +13 -280
- package/dist/providers/transactions/submitter/builder/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/builder/types.js +2 -4
- package/dist/providers/transactions/submitter/builder/types.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts +2 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.js +15 -7
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.d.ts +2 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.d.ts.map +1 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.js +145 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.js.map +1 -0
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts +30 -102
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.js +3 -21
- package/dist/providers/transactions/submitter/ethersV5/types.js.map +1 -1
- package/dist/providers/transactions/submitter/types.d.ts +5 -51
- package/dist/providers/transactions/submitter/types.d.ts.map +1 -1
- package/dist/providers/transactions/types.d.ts +1 -9
- package/dist/providers/transactions/types.d.ts.map +1 -1
- package/dist/router/types.d.ts +33 -819
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/types.js +4 -4
- package/dist/router/types.js.map +1 -1
- package/dist/rpc/evm/EvmEventLogsReader.d.ts +19 -27
- package/dist/rpc/evm/EvmEventLogsReader.d.ts.map +1 -1
- package/dist/rpc/evm/EvmEventLogsReader.js +23 -0
- package/dist/rpc/evm/EvmEventLogsReader.js.map +1 -1
- package/dist/rpc/evm/EvmEventLogsReader.test.js +53 -1
- package/dist/rpc/evm/EvmEventLogsReader.test.js.map +1 -1
- package/dist/signers/turnkeyClient.d.ts +1 -15
- package/dist/signers/turnkeyClient.d.ts.map +1 -1
- package/dist/timelock/types.d.ts +8 -32
- package/dist/timelock/types.d.ts.map +1 -1
- package/dist/token/EvmWarpRouteReader.d.ts.map +1 -1
- package/dist/token/EvmWarpRouteReader.js +36 -19
- package/dist/token/EvmWarpRouteReader.js.map +1 -1
- package/dist/token/EvmWarpRouteReader.test.js +219 -2
- package/dist/token/EvmWarpRouteReader.test.js.map +1 -1
- package/dist/token/EvmXERC20Reader.d.ts +9 -21
- package/dist/token/EvmXERC20Reader.d.ts.map +1 -1
- package/dist/token/EvmXERC20Reader.js +24 -48
- package/dist/token/EvmXERC20Reader.js.map +1 -1
- package/dist/token/EvmXERC20Reader.test.js +97 -0
- package/dist/token/EvmXERC20Reader.test.js.map +1 -1
- package/dist/token/ITokenMetadata.d.ts +12 -130
- package/dist/token/ITokenMetadata.d.ts.map +1 -1
- package/dist/token/ITokenMetadata.js +2 -2
- package/dist/token/ITokenMetadata.js.map +1 -1
- package/dist/token/TokenConnection.d.ts +3 -35
- package/dist/token/TokenConnection.d.ts.map +1 -1
- package/dist/token/configUtils.d.ts.map +1 -1
- package/dist/token/configUtils.js +16 -0
- package/dist/token/configUtils.js.map +1 -1
- package/dist/token/configUtils.test.js +57 -10
- package/dist/token/configUtils.test.js.map +1 -1
- package/dist/token/deploy.hardhat-test.js +165 -5
- package/dist/token/deploy.hardhat-test.js.map +1 -1
- package/dist/token/types.d.ts +4012 -22806
- package/dist/token/types.d.ts.map +1 -1
- package/dist/token/types.js +10 -12
- package/dist/token/types.js.map +1 -1
- package/dist/token/xerc20-abi.d.ts +31 -0
- package/dist/token/xerc20-abi.d.ts.map +1 -1
- package/dist/token/xerc20-abi.js +40 -0
- package/dist/token/xerc20-abi.js.map +1 -1
- package/dist/token/xerc20-limits.d.ts +63 -0
- package/dist/token/xerc20-limits.d.ts.map +1 -0
- package/dist/token/xerc20-limits.js +80 -0
- package/dist/token/xerc20-limits.js.map +1 -0
- package/dist/token/xerc20.d.ts +30 -1
- package/dist/token/xerc20.d.ts.map +1 -1
- package/dist/token/xerc20.js +137 -54
- package/dist/token/xerc20.js.map +1 -1
- package/dist/token/xerc20.test.js +461 -169
- package/dist/token/xerc20.test.js.map +1 -1
- package/dist/types.d.ts +6 -36
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/cosmos.d.ts +113 -844
- package/dist/utils/cosmos.d.ts.map +1 -1
- package/dist/utils/cosmos.js +50 -91
- package/dist/utils/cosmos.js.map +1 -1
- package/dist/utils/schemas.d.ts +3 -3
- package/dist/utils/schemas.d.ts.map +1 -1
- package/dist/utils/schemas.js +2 -1
- package/dist/utils/schemas.js.map +1 -1
- package/dist/warp/types.d.ts +25 -367
- package/dist/warp/types.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/fee/types.d.ts
CHANGED
|
@@ -22,773 +22,274 @@ export declare const DEFAULT_ROUTER_KEY = "0x6e086cd647d6eb8b516856666e2c1465fb8
|
|
|
22
22
|
export declare const BaseFeeConfigSchema: z.ZodObject<{
|
|
23
23
|
token: z.ZodString;
|
|
24
24
|
owner: z.ZodString;
|
|
25
|
-
},
|
|
26
|
-
token: string;
|
|
27
|
-
owner: string;
|
|
28
|
-
}, {
|
|
29
|
-
token: string;
|
|
30
|
-
owner: string;
|
|
31
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
32
26
|
export type BaseTokenFeeConfig = z.infer<typeof BaseFeeConfigSchema>;
|
|
33
27
|
export declare const BaseFeeConfigInputSchema: z.ZodObject<{
|
|
34
|
-
owner: z.ZodString
|
|
28
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
35
29
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
36
|
-
},
|
|
37
|
-
owner: string;
|
|
38
|
-
beneficiary?: string | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
owner: string;
|
|
41
|
-
beneficiary?: string | undefined;
|
|
42
|
-
}>;
|
|
30
|
+
}, z.core.$strip>;
|
|
43
31
|
export declare const FeeParametersSchema: z.ZodObject<{
|
|
44
|
-
maxFee: z.
|
|
45
|
-
halfAmount: z.
|
|
46
|
-
},
|
|
47
|
-
maxFee: bigint;
|
|
48
|
-
halfAmount: bigint;
|
|
49
|
-
}, {
|
|
50
|
-
maxFee: string | number | bigint;
|
|
51
|
-
halfAmount: string | number | bigint;
|
|
52
|
-
}>;
|
|
32
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
33
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
53
35
|
export type FeeParameters = z.infer<typeof FeeParametersSchema>;
|
|
54
36
|
export declare const QuoteSignersSchema: z.ZodObject<{
|
|
55
|
-
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString
|
|
56
|
-
},
|
|
57
|
-
quoteSigners?: string[] | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
quoteSigners?: string[] | undefined;
|
|
60
|
-
}>;
|
|
37
|
+
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
61
39
|
export type QuoteSignersConfig = z.infer<typeof QuoteSignersSchema>;
|
|
62
40
|
export declare const LinearFeeConfigSchema: z.ZodObject<{
|
|
63
41
|
token: z.ZodString;
|
|
64
42
|
owner: z.ZodString;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
} & {
|
|
69
|
-
bps: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>;
|
|
70
|
-
} & {
|
|
43
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
44
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
45
|
+
bps: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>;
|
|
71
46
|
type: z.ZodLiteral<"LinearFee">;
|
|
72
|
-
},
|
|
73
|
-
token: string;
|
|
74
|
-
owner: string;
|
|
75
|
-
maxFee: bigint;
|
|
76
|
-
halfAmount: bigint;
|
|
77
|
-
bps: number;
|
|
78
|
-
type: "LinearFee";
|
|
79
|
-
}, {
|
|
80
|
-
token: string;
|
|
81
|
-
owner: string;
|
|
82
|
-
maxFee: string | number | bigint;
|
|
83
|
-
halfAmount: string | number | bigint;
|
|
84
|
-
bps: string | number;
|
|
85
|
-
type: "LinearFee";
|
|
86
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
87
48
|
export type LinearFeeConfig = z.infer<typeof LinearFeeConfigSchema>;
|
|
88
|
-
export declare const LinearFeeInputConfigSchema: z.
|
|
89
|
-
owner: z.ZodString
|
|
49
|
+
export declare const LinearFeeInputConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
50
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
90
51
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
52
|
+
maxFee: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
53
|
+
halfAmount: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
94
54
|
type: z.ZodLiteral<"LinearFee">;
|
|
95
|
-
bps: z.ZodOptional<z.
|
|
96
|
-
},
|
|
97
|
-
owner
|
|
55
|
+
bps: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
57
|
+
owner?: string | undefined;
|
|
98
58
|
beneficiary?: string | undefined;
|
|
99
59
|
maxFee?: bigint | undefined;
|
|
100
60
|
halfAmount?: bigint | undefined;
|
|
101
61
|
type: "LinearFee";
|
|
102
|
-
bps
|
|
62
|
+
bps: number;
|
|
103
63
|
}, {
|
|
104
|
-
owner
|
|
105
|
-
beneficiary?: string | undefined;
|
|
106
|
-
maxFee?: string | number | bigint | undefined;
|
|
107
|
-
halfAmount?: string | number | bigint | undefined;
|
|
108
|
-
type: "LinearFee";
|
|
109
|
-
bps?: string | number | undefined;
|
|
110
|
-
}>, {
|
|
111
|
-
owner: string;
|
|
64
|
+
owner?: string | undefined;
|
|
112
65
|
beneficiary?: string | undefined;
|
|
113
66
|
maxFee?: bigint | undefined;
|
|
114
67
|
halfAmount?: bigint | undefined;
|
|
115
68
|
type: "LinearFee";
|
|
116
69
|
bps?: number | undefined;
|
|
117
|
-
}
|
|
118
|
-
owner: string;
|
|
119
|
-
beneficiary?: string | undefined;
|
|
120
|
-
maxFee?: string | number | bigint | undefined;
|
|
121
|
-
halfAmount?: string | number | bigint | undefined;
|
|
122
|
-
type: "LinearFee";
|
|
123
|
-
bps?: string | number | undefined;
|
|
124
|
-
}>, {
|
|
125
|
-
owner: string;
|
|
126
|
-
beneficiary?: string | undefined;
|
|
127
|
-
maxFee?: bigint | undefined;
|
|
128
|
-
halfAmount?: bigint | undefined;
|
|
129
|
-
type: "LinearFee";
|
|
130
|
-
bps: number;
|
|
131
|
-
}, {
|
|
132
|
-
owner: string;
|
|
133
|
-
beneficiary?: string | undefined;
|
|
134
|
-
maxFee?: string | number | bigint | undefined;
|
|
135
|
-
halfAmount?: string | number | bigint | undefined;
|
|
136
|
-
type: "LinearFee";
|
|
137
|
-
bps?: string | number | undefined;
|
|
138
|
-
}>;
|
|
70
|
+
}>>;
|
|
139
71
|
export type LinearFeeInputConfig = z.infer<typeof LinearFeeInputConfigSchema>;
|
|
140
72
|
export declare const OffchainQuotedLinearFeeConfigSchema: z.ZodObject<{
|
|
141
73
|
token: z.ZodString;
|
|
142
74
|
owner: z.ZodString;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
bps: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>;
|
|
148
|
-
} & {
|
|
149
|
-
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
150
|
-
} & {
|
|
75
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
76
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
77
|
+
bps: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>;
|
|
78
|
+
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
151
79
|
type: z.ZodLiteral<"OffchainQuotedLinearFee">;
|
|
152
|
-
},
|
|
153
|
-
token: string;
|
|
154
|
-
owner: string;
|
|
155
|
-
maxFee: bigint;
|
|
156
|
-
halfAmount: bigint;
|
|
157
|
-
bps: number;
|
|
158
|
-
quoteSigners?: string[] | undefined;
|
|
159
|
-
type: "OffchainQuotedLinearFee";
|
|
160
|
-
}, {
|
|
161
|
-
token: string;
|
|
162
|
-
owner: string;
|
|
163
|
-
maxFee: string | number | bigint;
|
|
164
|
-
halfAmount: string | number | bigint;
|
|
165
|
-
bps: string | number;
|
|
166
|
-
quoteSigners?: string[] | undefined;
|
|
167
|
-
type: "OffchainQuotedLinearFee";
|
|
168
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
169
81
|
export type OffchainQuotedLinearFeeConfig = z.infer<typeof OffchainQuotedLinearFeeConfigSchema>;
|
|
170
|
-
export declare const OffchainQuotedLinearFeeInputConfigSchema: z.
|
|
171
|
-
owner: z.ZodString
|
|
82
|
+
export declare const OffchainQuotedLinearFeeInputConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
83
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
172
84
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
177
|
-
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
85
|
+
maxFee: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
86
|
+
halfAmount: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
87
|
+
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
88
|
type: z.ZodLiteral<"OffchainQuotedLinearFee">;
|
|
179
|
-
bps: z.ZodOptional<z.
|
|
180
|
-
},
|
|
181
|
-
owner
|
|
89
|
+
bps: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
90
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
91
|
+
owner?: string | undefined;
|
|
182
92
|
beneficiary?: string | undefined;
|
|
183
93
|
maxFee?: bigint | undefined;
|
|
184
94
|
halfAmount?: bigint | undefined;
|
|
185
95
|
quoteSigners?: string[] | undefined;
|
|
186
96
|
type: "OffchainQuotedLinearFee";
|
|
187
|
-
bps
|
|
97
|
+
bps: number;
|
|
188
98
|
}, {
|
|
189
|
-
owner
|
|
190
|
-
beneficiary?: string | undefined;
|
|
191
|
-
maxFee?: string | number | bigint | undefined;
|
|
192
|
-
halfAmount?: string | number | bigint | undefined;
|
|
193
|
-
quoteSigners?: string[] | undefined;
|
|
194
|
-
type: "OffchainQuotedLinearFee";
|
|
195
|
-
bps?: string | number | undefined;
|
|
196
|
-
}>, {
|
|
197
|
-
owner: string;
|
|
99
|
+
owner?: string | undefined;
|
|
198
100
|
beneficiary?: string | undefined;
|
|
199
101
|
maxFee?: bigint | undefined;
|
|
200
102
|
halfAmount?: bigint | undefined;
|
|
201
103
|
quoteSigners?: string[] | undefined;
|
|
202
104
|
type: "OffchainQuotedLinearFee";
|
|
203
105
|
bps?: number | undefined;
|
|
204
|
-
}
|
|
205
|
-
owner: string;
|
|
206
|
-
beneficiary?: string | undefined;
|
|
207
|
-
maxFee?: string | number | bigint | undefined;
|
|
208
|
-
halfAmount?: string | number | bigint | undefined;
|
|
209
|
-
quoteSigners?: string[] | undefined;
|
|
210
|
-
type: "OffchainQuotedLinearFee";
|
|
211
|
-
bps?: string | number | undefined;
|
|
212
|
-
}>, {
|
|
213
|
-
owner: string;
|
|
214
|
-
beneficiary?: string | undefined;
|
|
215
|
-
maxFee?: bigint | undefined;
|
|
216
|
-
halfAmount?: bigint | undefined;
|
|
217
|
-
quoteSigners?: string[] | undefined;
|
|
218
|
-
type: "OffchainQuotedLinearFee";
|
|
219
|
-
bps: number;
|
|
220
|
-
}, {
|
|
221
|
-
owner: string;
|
|
222
|
-
beneficiary?: string | undefined;
|
|
223
|
-
maxFee?: string | number | bigint | undefined;
|
|
224
|
-
halfAmount?: string | number | bigint | undefined;
|
|
225
|
-
quoteSigners?: string[] | undefined;
|
|
226
|
-
type: "OffchainQuotedLinearFee";
|
|
227
|
-
bps?: string | number | undefined;
|
|
228
|
-
}>;
|
|
106
|
+
}>>;
|
|
229
107
|
export type OffchainQuotedLinearFeeInputConfig = z.infer<typeof OffchainQuotedLinearFeeInputConfigSchema>;
|
|
230
108
|
export declare const ProgressiveFeeConfigSchema: z.ZodObject<{
|
|
231
109
|
token: z.ZodString;
|
|
232
110
|
owner: z.ZodString;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
236
|
-
} & {
|
|
111
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
112
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
237
113
|
type: z.ZodLiteral<"ProgressiveFee">;
|
|
238
|
-
},
|
|
239
|
-
token: string;
|
|
240
|
-
owner: string;
|
|
241
|
-
maxFee: bigint;
|
|
242
|
-
halfAmount: bigint;
|
|
243
|
-
type: "ProgressiveFee";
|
|
244
|
-
}, {
|
|
245
|
-
token: string;
|
|
246
|
-
owner: string;
|
|
247
|
-
maxFee: string | number | bigint;
|
|
248
|
-
halfAmount: string | number | bigint;
|
|
249
|
-
type: "ProgressiveFee";
|
|
250
|
-
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
251
115
|
export type ProgressiveFeeConfig = z.infer<typeof ProgressiveFeeConfigSchema>;
|
|
252
|
-
export declare const ProgressiveFeeInputConfigSchema: z.
|
|
253
|
-
owner: z.ZodString
|
|
116
|
+
export declare const ProgressiveFeeInputConfigSchema: z.ZodObject<{
|
|
117
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
254
118
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
255
|
-
} & {
|
|
256
119
|
type: z.ZodLiteral<"ProgressiveFee">;
|
|
257
|
-
maxFee: z.
|
|
258
|
-
halfAmount: z.
|
|
259
|
-
},
|
|
260
|
-
owner: string;
|
|
261
|
-
beneficiary?: string | undefined;
|
|
262
|
-
type: "ProgressiveFee";
|
|
263
|
-
maxFee: bigint;
|
|
264
|
-
halfAmount: bigint;
|
|
265
|
-
}, {
|
|
266
|
-
owner: string;
|
|
267
|
-
beneficiary?: string | undefined;
|
|
268
|
-
type: "ProgressiveFee";
|
|
269
|
-
maxFee: string | number | bigint;
|
|
270
|
-
halfAmount: string | number | bigint;
|
|
271
|
-
}>, {
|
|
272
|
-
owner: string;
|
|
273
|
-
beneficiary?: string | undefined;
|
|
274
|
-
type: "ProgressiveFee";
|
|
275
|
-
maxFee: bigint;
|
|
276
|
-
halfAmount: bigint;
|
|
277
|
-
}, {
|
|
278
|
-
owner: string;
|
|
279
|
-
beneficiary?: string | undefined;
|
|
280
|
-
type: "ProgressiveFee";
|
|
281
|
-
maxFee: string | number | bigint;
|
|
282
|
-
halfAmount: string | number | bigint;
|
|
283
|
-
}>;
|
|
120
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
121
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
284
123
|
export type ProgressiveFeeInputConfig = z.infer<typeof ProgressiveFeeInputConfigSchema>;
|
|
285
124
|
export declare const RegressiveFeeConfigSchema: z.ZodObject<{
|
|
286
125
|
token: z.ZodString;
|
|
287
126
|
owner: z.ZodString;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
291
|
-
} & {
|
|
127
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
128
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
292
129
|
type: z.ZodLiteral<"RegressiveFee">;
|
|
293
|
-
},
|
|
294
|
-
token: string;
|
|
295
|
-
owner: string;
|
|
296
|
-
maxFee: bigint;
|
|
297
|
-
halfAmount: bigint;
|
|
298
|
-
type: "RegressiveFee";
|
|
299
|
-
}, {
|
|
300
|
-
token: string;
|
|
301
|
-
owner: string;
|
|
302
|
-
maxFee: string | number | bigint;
|
|
303
|
-
halfAmount: string | number | bigint;
|
|
304
|
-
type: "RegressiveFee";
|
|
305
|
-
}>;
|
|
130
|
+
}, z.core.$strip>;
|
|
306
131
|
export type RegressiveFeeConfig = z.infer<typeof RegressiveFeeConfigSchema>;
|
|
307
|
-
export declare const RegressiveFeeInputConfigSchema: z.
|
|
308
|
-
owner: z.ZodString
|
|
132
|
+
export declare const RegressiveFeeInputConfigSchema: z.ZodObject<{
|
|
133
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
309
134
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
310
|
-
} & {
|
|
311
135
|
type: z.ZodLiteral<"RegressiveFee">;
|
|
312
|
-
maxFee: z.
|
|
313
|
-
halfAmount: z.
|
|
314
|
-
},
|
|
315
|
-
owner: string;
|
|
316
|
-
beneficiary?: string | undefined;
|
|
317
|
-
type: "RegressiveFee";
|
|
318
|
-
maxFee: bigint;
|
|
319
|
-
halfAmount: bigint;
|
|
320
|
-
}, {
|
|
321
|
-
owner: string;
|
|
322
|
-
beneficiary?: string | undefined;
|
|
323
|
-
type: "RegressiveFee";
|
|
324
|
-
maxFee: string | number | bigint;
|
|
325
|
-
halfAmount: string | number | bigint;
|
|
326
|
-
}>, {
|
|
327
|
-
owner: string;
|
|
328
|
-
beneficiary?: string | undefined;
|
|
329
|
-
type: "RegressiveFee";
|
|
330
|
-
maxFee: bigint;
|
|
331
|
-
halfAmount: bigint;
|
|
332
|
-
}, {
|
|
333
|
-
owner: string;
|
|
334
|
-
beneficiary?: string | undefined;
|
|
335
|
-
type: "RegressiveFee";
|
|
336
|
-
maxFee: string | number | bigint;
|
|
337
|
-
halfAmount: string | number | bigint;
|
|
338
|
-
}>;
|
|
136
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
137
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
339
139
|
export type RegressiveFeeInputConfig = z.infer<typeof RegressiveFeeInputConfigSchema>;
|
|
340
|
-
export declare const
|
|
341
|
-
token: z.ZodString;
|
|
342
|
-
owner: z.ZodString;
|
|
343
|
-
} & {
|
|
344
|
-
type: z.ZodLiteral<"RoutingFee">;
|
|
345
|
-
feeContracts: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
346
|
-
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
token: string;
|
|
348
|
-
owner: string;
|
|
349
|
-
type: "RoutingFee";
|
|
350
|
-
feeContracts: Record<string, any>;
|
|
351
|
-
}, {
|
|
352
|
-
token: string;
|
|
353
|
-
owner: string;
|
|
354
|
-
type: "RoutingFee";
|
|
355
|
-
feeContracts: Record<string, any>;
|
|
356
|
-
}>;
|
|
357
|
-
export type RoutingFeeConfig = z.infer<typeof RoutingFeeConfigSchema>;
|
|
358
|
-
export declare const CrossCollateralRoutingFeeConfigSchema: z.ZodObject<{
|
|
359
|
-
type: z.ZodLiteral<"CrossCollateralRoutingFee">;
|
|
360
|
-
owner: z.ZodString;
|
|
361
|
-
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>>>;
|
|
362
|
-
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "CrossCollateralRoutingFee";
|
|
364
|
-
owner: string;
|
|
365
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
366
|
-
}, {
|
|
367
|
-
type: "CrossCollateralRoutingFee";
|
|
368
|
-
owner: string;
|
|
369
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
370
|
-
}>;
|
|
371
|
-
export type CrossCollateralRoutingFeeConfig = z.infer<typeof CrossCollateralRoutingFeeConfigSchema>;
|
|
372
|
-
export declare const RoutingFeeInputConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
373
|
-
owner: z.ZodString;
|
|
374
|
-
beneficiary: z.ZodOptional<z.ZodString>;
|
|
375
|
-
} & {
|
|
376
|
-
type: z.ZodLiteral<"RoutingFee">;
|
|
377
|
-
feeContracts: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
378
|
-
}, "strip", z.ZodTypeAny, {
|
|
379
|
-
owner: string;
|
|
380
|
-
beneficiary?: string | undefined;
|
|
381
|
-
type: "RoutingFee";
|
|
382
|
-
feeContracts: Record<string, any>;
|
|
383
|
-
}, {
|
|
384
|
-
owner: string;
|
|
385
|
-
beneficiary?: string | undefined;
|
|
386
|
-
type: "RoutingFee";
|
|
387
|
-
feeContracts: Record<string, any>;
|
|
388
|
-
}>, {
|
|
389
|
-
owner: string;
|
|
390
|
-
beneficiary?: string | undefined;
|
|
391
|
-
type: "RoutingFee";
|
|
392
|
-
feeContracts: Record<string, any>;
|
|
393
|
-
}, {
|
|
394
|
-
owner: string;
|
|
395
|
-
beneficiary?: string | undefined;
|
|
396
|
-
type: "RoutingFee";
|
|
397
|
-
feeContracts: Record<string, any>;
|
|
398
|
-
}>;
|
|
399
|
-
export type RoutingFeeInputConfig = z.infer<typeof RoutingFeeInputConfigSchema>;
|
|
400
|
-
export declare const CrossCollateralRoutingFeeInputConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
401
|
-
owner: z.ZodString;
|
|
402
|
-
beneficiary: z.ZodOptional<z.ZodString>;
|
|
403
|
-
} & {
|
|
404
|
-
type: z.ZodLiteral<"CrossCollateralRoutingFee">;
|
|
405
|
-
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>>>;
|
|
406
|
-
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
owner: string;
|
|
408
|
-
beneficiary?: string | undefined;
|
|
409
|
-
type: "CrossCollateralRoutingFee";
|
|
410
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
411
|
-
}, {
|
|
412
|
-
owner: string;
|
|
413
|
-
beneficiary?: string | undefined;
|
|
414
|
-
type: "CrossCollateralRoutingFee";
|
|
415
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
416
|
-
}>, {
|
|
417
|
-
owner: string;
|
|
418
|
-
beneficiary?: string | undefined;
|
|
419
|
-
type: "CrossCollateralRoutingFee";
|
|
420
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
421
|
-
}, {
|
|
422
|
-
owner: string;
|
|
423
|
-
beneficiary?: string | undefined;
|
|
424
|
-
type: "CrossCollateralRoutingFee";
|
|
425
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
426
|
-
}>;
|
|
427
|
-
export type CrossCollateralRoutingFeeInputConfig = z.infer<typeof CrossCollateralRoutingFeeInputConfigSchema>;
|
|
428
|
-
export declare const TokenFeeConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
140
|
+
export declare const LeafTokenFeeConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
429
141
|
token: z.ZodString;
|
|
430
142
|
owner: z.ZodString;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
} & {
|
|
435
|
-
bps: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>;
|
|
436
|
-
} & {
|
|
143
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
144
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
145
|
+
bps: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>;
|
|
437
146
|
type: z.ZodLiteral<"LinearFee">;
|
|
438
|
-
},
|
|
439
|
-
token: string;
|
|
440
|
-
owner: string;
|
|
441
|
-
maxFee: bigint;
|
|
442
|
-
halfAmount: bigint;
|
|
443
|
-
bps: number;
|
|
444
|
-
type: "LinearFee";
|
|
445
|
-
}, {
|
|
446
|
-
token: string;
|
|
447
|
-
owner: string;
|
|
448
|
-
maxFee: string | number | bigint;
|
|
449
|
-
halfAmount: string | number | bigint;
|
|
450
|
-
bps: string | number;
|
|
451
|
-
type: "LinearFee";
|
|
452
|
-
}>, z.ZodObject<{
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
453
148
|
token: z.ZodString;
|
|
454
149
|
owner: z.ZodString;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
bps: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>;
|
|
460
|
-
} & {
|
|
461
|
-
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
462
|
-
} & {
|
|
150
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
151
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
152
|
+
bps: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>;
|
|
153
|
+
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
154
|
type: z.ZodLiteral<"OffchainQuotedLinearFee">;
|
|
464
|
-
},
|
|
465
|
-
token: string;
|
|
466
|
-
owner: string;
|
|
467
|
-
maxFee: bigint;
|
|
468
|
-
halfAmount: bigint;
|
|
469
|
-
bps: number;
|
|
470
|
-
quoteSigners?: string[] | undefined;
|
|
471
|
-
type: "OffchainQuotedLinearFee";
|
|
472
|
-
}, {
|
|
473
|
-
token: string;
|
|
474
|
-
owner: string;
|
|
475
|
-
maxFee: string | number | bigint;
|
|
476
|
-
halfAmount: string | number | bigint;
|
|
477
|
-
bps: string | number;
|
|
478
|
-
quoteSigners?: string[] | undefined;
|
|
479
|
-
type: "OffchainQuotedLinearFee";
|
|
480
|
-
}>, z.ZodObject<{
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
156
|
token: z.ZodString;
|
|
482
157
|
owner: z.ZodString;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
486
|
-
} & {
|
|
158
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
159
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
487
160
|
type: z.ZodLiteral<"ProgressiveFee">;
|
|
488
|
-
},
|
|
489
|
-
token: string;
|
|
490
|
-
owner: string;
|
|
491
|
-
maxFee: bigint;
|
|
492
|
-
halfAmount: bigint;
|
|
493
|
-
type: "ProgressiveFee";
|
|
494
|
-
}, {
|
|
495
|
-
token: string;
|
|
496
|
-
owner: string;
|
|
497
|
-
maxFee: string | number | bigint;
|
|
498
|
-
halfAmount: string | number | bigint;
|
|
499
|
-
type: "ProgressiveFee";
|
|
500
|
-
}>, z.ZodObject<{
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
501
162
|
token: z.ZodString;
|
|
502
163
|
owner: z.ZodString;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
halfAmount: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
506
|
-
} & {
|
|
164
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
165
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
507
166
|
type: z.ZodLiteral<"RegressiveFee">;
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
halfAmount: bigint;
|
|
513
|
-
type: "RegressiveFee";
|
|
514
|
-
}, {
|
|
515
|
-
token: string;
|
|
516
|
-
owner: string;
|
|
517
|
-
maxFee: string | number | bigint;
|
|
518
|
-
halfAmount: string | number | bigint;
|
|
519
|
-
type: "RegressiveFee";
|
|
520
|
-
}>, z.ZodObject<{
|
|
521
|
-
token: z.ZodString;
|
|
522
|
-
owner: z.ZodString;
|
|
523
|
-
} & {
|
|
524
|
-
type: z.ZodLiteral<"RoutingFee">;
|
|
525
|
-
feeContracts: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
526
|
-
}, "strip", z.ZodTypeAny, {
|
|
527
|
-
token: string;
|
|
528
|
-
owner: string;
|
|
529
|
-
type: "RoutingFee";
|
|
530
|
-
feeContracts: Record<string, any>;
|
|
531
|
-
}, {
|
|
532
|
-
token: string;
|
|
533
|
-
owner: string;
|
|
534
|
-
type: "RoutingFee";
|
|
535
|
-
feeContracts: Record<string, any>;
|
|
536
|
-
}>, z.ZodObject<{
|
|
537
|
-
type: z.ZodLiteral<"CrossCollateralRoutingFee">;
|
|
538
|
-
owner: z.ZodString;
|
|
539
|
-
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>>>;
|
|
540
|
-
}, "strip", z.ZodTypeAny, {
|
|
541
|
-
type: "CrossCollateralRoutingFee";
|
|
542
|
-
owner: string;
|
|
543
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
544
|
-
}, {
|
|
545
|
-
type: "CrossCollateralRoutingFee";
|
|
546
|
-
owner: string;
|
|
547
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
548
|
-
}>]>;
|
|
549
|
-
export type TokenFeeConfig = z.infer<typeof TokenFeeConfigSchema>;
|
|
550
|
-
export declare const TokenFeeConfigInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
551
|
-
owner: z.ZodString;
|
|
167
|
+
}, z.core.$strip>], "type">;
|
|
168
|
+
export type LeafTokenFeeConfig = z.infer<typeof LeafTokenFeeConfigSchema>;
|
|
169
|
+
export declare const LeafTokenFeeInputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
170
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
552
171
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
172
|
+
maxFee: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
173
|
+
halfAmount: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
556
174
|
type: z.ZodLiteral<"LinearFee">;
|
|
557
|
-
bps: z.ZodOptional<z.
|
|
558
|
-
},
|
|
559
|
-
owner
|
|
175
|
+
bps: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
176
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
177
|
+
owner?: string | undefined;
|
|
560
178
|
beneficiary?: string | undefined;
|
|
561
179
|
maxFee?: bigint | undefined;
|
|
562
180
|
halfAmount?: bigint | undefined;
|
|
563
181
|
type: "LinearFee";
|
|
564
|
-
bps
|
|
182
|
+
bps: number;
|
|
565
183
|
}, {
|
|
566
|
-
owner
|
|
567
|
-
beneficiary?: string | undefined;
|
|
568
|
-
maxFee?: string | number | bigint | undefined;
|
|
569
|
-
halfAmount?: string | number | bigint | undefined;
|
|
570
|
-
type: "LinearFee";
|
|
571
|
-
bps?: string | number | undefined;
|
|
572
|
-
}>, {
|
|
573
|
-
owner: string;
|
|
184
|
+
owner?: string | undefined;
|
|
574
185
|
beneficiary?: string | undefined;
|
|
575
186
|
maxFee?: bigint | undefined;
|
|
576
187
|
halfAmount?: bigint | undefined;
|
|
577
188
|
type: "LinearFee";
|
|
578
189
|
bps?: number | undefined;
|
|
579
|
-
}
|
|
580
|
-
owner:
|
|
581
|
-
beneficiary?: string | undefined;
|
|
582
|
-
maxFee?: string | number | bigint | undefined;
|
|
583
|
-
halfAmount?: string | number | bigint | undefined;
|
|
584
|
-
type: "LinearFee";
|
|
585
|
-
bps?: string | number | undefined;
|
|
586
|
-
}>, {
|
|
587
|
-
owner: string;
|
|
588
|
-
beneficiary?: string | undefined;
|
|
589
|
-
maxFee?: bigint | undefined;
|
|
590
|
-
halfAmount?: bigint | undefined;
|
|
591
|
-
type: "LinearFee";
|
|
592
|
-
bps: number;
|
|
593
|
-
}, {
|
|
594
|
-
owner: string;
|
|
595
|
-
beneficiary?: string | undefined;
|
|
596
|
-
maxFee?: string | number | bigint | undefined;
|
|
597
|
-
halfAmount?: string | number | bigint | undefined;
|
|
598
|
-
type: "LinearFee";
|
|
599
|
-
bps?: string | number | undefined;
|
|
600
|
-
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
601
|
-
owner: z.ZodString;
|
|
190
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
191
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
602
192
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
607
|
-
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
193
|
+
maxFee: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
194
|
+
halfAmount: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>>;
|
|
195
|
+
quoteSigners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
196
|
type: z.ZodLiteral<"OffchainQuotedLinearFee">;
|
|
609
|
-
bps: z.ZodOptional<z.
|
|
610
|
-
},
|
|
611
|
-
owner
|
|
197
|
+
bps: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>>;
|
|
198
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
199
|
+
owner?: string | undefined;
|
|
612
200
|
beneficiary?: string | undefined;
|
|
613
201
|
maxFee?: bigint | undefined;
|
|
614
202
|
halfAmount?: bigint | undefined;
|
|
615
203
|
quoteSigners?: string[] | undefined;
|
|
616
204
|
type: "OffchainQuotedLinearFee";
|
|
617
|
-
bps
|
|
205
|
+
bps: number;
|
|
618
206
|
}, {
|
|
619
|
-
owner
|
|
620
|
-
beneficiary?: string | undefined;
|
|
621
|
-
maxFee?: string | number | bigint | undefined;
|
|
622
|
-
halfAmount?: string | number | bigint | undefined;
|
|
623
|
-
quoteSigners?: string[] | undefined;
|
|
624
|
-
type: "OffchainQuotedLinearFee";
|
|
625
|
-
bps?: string | number | undefined;
|
|
626
|
-
}>, {
|
|
627
|
-
owner: string;
|
|
207
|
+
owner?: string | undefined;
|
|
628
208
|
beneficiary?: string | undefined;
|
|
629
209
|
maxFee?: bigint | undefined;
|
|
630
210
|
halfAmount?: bigint | undefined;
|
|
631
211
|
quoteSigners?: string[] | undefined;
|
|
632
212
|
type: "OffchainQuotedLinearFee";
|
|
633
213
|
bps?: number | undefined;
|
|
634
|
-
}
|
|
635
|
-
owner:
|
|
636
|
-
beneficiary?: string | undefined;
|
|
637
|
-
maxFee?: string | number | bigint | undefined;
|
|
638
|
-
halfAmount?: string | number | bigint | undefined;
|
|
639
|
-
quoteSigners?: string[] | undefined;
|
|
640
|
-
type: "OffchainQuotedLinearFee";
|
|
641
|
-
bps?: string | number | undefined;
|
|
642
|
-
}>, {
|
|
643
|
-
owner: string;
|
|
644
|
-
beneficiary?: string | undefined;
|
|
645
|
-
maxFee?: bigint | undefined;
|
|
646
|
-
halfAmount?: bigint | undefined;
|
|
647
|
-
quoteSigners?: string[] | undefined;
|
|
648
|
-
type: "OffchainQuotedLinearFee";
|
|
649
|
-
bps: number;
|
|
650
|
-
}, {
|
|
651
|
-
owner: string;
|
|
652
|
-
beneficiary?: string | undefined;
|
|
653
|
-
maxFee?: string | number | bigint | undefined;
|
|
654
|
-
halfAmount?: string | number | bigint | undefined;
|
|
655
|
-
quoteSigners?: string[] | undefined;
|
|
656
|
-
type: "OffchainQuotedLinearFee";
|
|
657
|
-
bps?: string | number | undefined;
|
|
658
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
659
|
-
owner: z.ZodString;
|
|
214
|
+
}>>, z.ZodObject<{
|
|
215
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
660
216
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
661
|
-
} & {
|
|
662
217
|
type: z.ZodLiteral<"ProgressiveFee">;
|
|
663
|
-
maxFee: z.
|
|
664
|
-
halfAmount: z.
|
|
665
|
-
},
|
|
666
|
-
owner:
|
|
667
|
-
beneficiary?: string | undefined;
|
|
668
|
-
type: "ProgressiveFee";
|
|
669
|
-
maxFee: bigint;
|
|
670
|
-
halfAmount: bigint;
|
|
671
|
-
}, {
|
|
672
|
-
owner: string;
|
|
673
|
-
beneficiary?: string | undefined;
|
|
674
|
-
type: "ProgressiveFee";
|
|
675
|
-
maxFee: string | number | bigint;
|
|
676
|
-
halfAmount: string | number | bigint;
|
|
677
|
-
}>, {
|
|
678
|
-
owner: string;
|
|
679
|
-
beneficiary?: string | undefined;
|
|
680
|
-
type: "ProgressiveFee";
|
|
681
|
-
maxFee: bigint;
|
|
682
|
-
halfAmount: bigint;
|
|
683
|
-
}, {
|
|
684
|
-
owner: string;
|
|
685
|
-
beneficiary?: string | undefined;
|
|
686
|
-
type: "ProgressiveFee";
|
|
687
|
-
maxFee: string | number | bigint;
|
|
688
|
-
halfAmount: string | number | bigint;
|
|
689
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
690
|
-
owner: z.ZodString;
|
|
218
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
219
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
691
222
|
beneficiary: z.ZodOptional<z.ZodString>;
|
|
692
|
-
} & {
|
|
693
223
|
type: z.ZodLiteral<"RegressiveFee">;
|
|
694
|
-
maxFee: z.
|
|
695
|
-
halfAmount: z.
|
|
696
|
-
},
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
type:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
beneficiary?: string | undefined;
|
|
705
|
-
type: "RegressiveFee";
|
|
706
|
-
maxFee: string | number | bigint;
|
|
707
|
-
halfAmount: string | number | bigint;
|
|
708
|
-
}>, {
|
|
709
|
-
owner: string;
|
|
710
|
-
beneficiary?: string | undefined;
|
|
711
|
-
type: "RegressiveFee";
|
|
712
|
-
maxFee: bigint;
|
|
713
|
-
halfAmount: bigint;
|
|
714
|
-
}, {
|
|
715
|
-
owner: string;
|
|
716
|
-
beneficiary?: string | undefined;
|
|
717
|
-
type: "RegressiveFee";
|
|
718
|
-
maxFee: string | number | bigint;
|
|
719
|
-
halfAmount: string | number | bigint;
|
|
720
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
721
|
-
owner: z.ZodString;
|
|
722
|
-
beneficiary: z.ZodOptional<z.ZodString>;
|
|
723
|
-
} & {
|
|
724
|
-
type: z.ZodLiteral<"RoutingFee">;
|
|
725
|
-
feeContracts: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
726
|
-
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
owner: string;
|
|
728
|
-
beneficiary?: string | undefined;
|
|
729
|
-
type: "RoutingFee";
|
|
730
|
-
feeContracts: Record<string, any>;
|
|
731
|
-
}, {
|
|
732
|
-
owner: string;
|
|
733
|
-
beneficiary?: string | undefined;
|
|
734
|
-
type: "RoutingFee";
|
|
735
|
-
feeContracts: Record<string, any>;
|
|
736
|
-
}>, {
|
|
737
|
-
owner: string;
|
|
738
|
-
beneficiary?: string | undefined;
|
|
739
|
-
type: "RoutingFee";
|
|
740
|
-
feeContracts: Record<string, any>;
|
|
741
|
-
}, {
|
|
742
|
-
owner: string;
|
|
743
|
-
beneficiary?: string | undefined;
|
|
744
|
-
type: "RoutingFee";
|
|
745
|
-
feeContracts: Record<string, any>;
|
|
746
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
747
|
-
owner: z.ZodString;
|
|
748
|
-
beneficiary: z.ZodOptional<z.ZodString>;
|
|
749
|
-
} & {
|
|
750
|
-
type: z.ZodLiteral<"CrossCollateralRoutingFee">;
|
|
751
|
-
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>>>;
|
|
752
|
-
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
owner: string;
|
|
754
|
-
beneficiary?: string | undefined;
|
|
755
|
-
type: "CrossCollateralRoutingFee";
|
|
756
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
757
|
-
}, {
|
|
758
|
-
owner: string;
|
|
759
|
-
beneficiary?: string | undefined;
|
|
760
|
-
type: "CrossCollateralRoutingFee";
|
|
761
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
762
|
-
}>, {
|
|
763
|
-
owner: string;
|
|
764
|
-
beneficiary?: string | undefined;
|
|
765
|
-
type: "CrossCollateralRoutingFee";
|
|
766
|
-
feeContracts: Record<string, Record<string, any>>;
|
|
767
|
-
}, {
|
|
224
|
+
maxFee: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
225
|
+
halfAmount: z.ZodPipe<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
|
|
226
|
+
}, z.core.$strip>], "type">;
|
|
227
|
+
export type LeafTokenFeeInputConfig = z.infer<typeof LeafTokenFeeInputConfigSchema>;
|
|
228
|
+
export interface RoutingFeeConfig extends BaseTokenFeeConfig {
|
|
229
|
+
type: typeof TokenFeeType.RoutingFee;
|
|
230
|
+
feeContracts: Record<string, TokenFeeConfig>;
|
|
231
|
+
}
|
|
232
|
+
export interface CrossCollateralRoutingFeeConfig {
|
|
233
|
+
type: typeof TokenFeeType.CrossCollateralRoutingFee;
|
|
768
234
|
owner: string;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
235
|
+
feeContracts: Record<string, Record<string, TokenFeeConfig>>;
|
|
236
|
+
}
|
|
237
|
+
export interface StandardTokenFeeConfig extends BaseTokenFeeConfig, FeeParameters {
|
|
238
|
+
type: (typeof ImmutableTokenFeeType)[number];
|
|
239
|
+
bps?: number;
|
|
240
|
+
}
|
|
241
|
+
export type TokenFeeConfig = StandardTokenFeeConfig | OffchainQuotedLinearFeeConfig | RoutingFeeConfig | CrossCollateralRoutingFeeConfig;
|
|
242
|
+
type BaseTokenFeeInputConfig = z.infer<typeof BaseFeeConfigInputSchema>;
|
|
243
|
+
export interface RoutingFeeInputConfig extends BaseTokenFeeInputConfig {
|
|
244
|
+
type: typeof TokenFeeType.RoutingFee;
|
|
245
|
+
feeContracts: Record<string, TokenFeeConfigInput>;
|
|
246
|
+
}
|
|
247
|
+
export interface CrossCollateralRoutingFeeInputConfig extends BaseTokenFeeInputConfig {
|
|
248
|
+
type: typeof TokenFeeType.CrossCollateralRoutingFee;
|
|
249
|
+
feeContracts: Record<string, Record<string, TokenFeeConfigInput>>;
|
|
250
|
+
}
|
|
251
|
+
export interface StandardTokenFeeInputConfig extends BaseTokenFeeInputConfig {
|
|
252
|
+
type: (typeof ImmutableTokenFeeType)[number];
|
|
253
|
+
bps?: number;
|
|
254
|
+
maxFee?: bigint;
|
|
255
|
+
halfAmount?: bigint;
|
|
256
|
+
}
|
|
257
|
+
export type TokenFeeConfigInput = StandardTokenFeeInputConfig | OffchainQuotedLinearFeeInputConfig | RoutingFeeInputConfig | CrossCollateralRoutingFeeInputConfig;
|
|
258
|
+
export declare const RoutingFeeConfigSchema: z.ZodType<RoutingFeeConfig>;
|
|
259
|
+
export declare const CrossCollateralRoutingFeeConfigSchema: z.ZodType<CrossCollateralRoutingFeeConfig>;
|
|
260
|
+
export declare const RoutingFeeInputConfigSchema: z.ZodType<RoutingFeeInputConfig>;
|
|
261
|
+
export declare const CrossCollateralRoutingFeeInputConfigSchema: z.ZodType<CrossCollateralRoutingFeeInputConfig>;
|
|
262
|
+
export declare const TokenFeeConfigSchema: z.ZodType<TokenFeeConfig>;
|
|
263
|
+
export declare const TokenFeeConfigInputSchema: z.ZodType<TokenFeeConfigInput>;
|
|
774
264
|
export type ResolvedLinearFeeConfigInput = LinearFeeInputConfig & {
|
|
265
|
+
owner: string;
|
|
775
266
|
token: string;
|
|
776
267
|
};
|
|
777
268
|
export type ResolvedProgressiveFeeConfigInput = ProgressiveFeeInputConfig & {
|
|
269
|
+
owner: string;
|
|
778
270
|
token: string;
|
|
779
271
|
};
|
|
780
272
|
export type ResolvedRegressiveFeeConfigInput = RegressiveFeeInputConfig & {
|
|
273
|
+
owner: string;
|
|
781
274
|
token: string;
|
|
782
275
|
};
|
|
783
276
|
export type ResolvedRoutingFeeConfigInput = RoutingFeeInputConfig & {
|
|
277
|
+
owner: string;
|
|
784
278
|
token: string;
|
|
785
279
|
feeContracts: Record<string, ResolvedTokenFeeConfigInput>;
|
|
786
280
|
};
|
|
787
281
|
export type ResolvedCrossCollateralRoutingFeeConfigInput = CrossCollateralRoutingFeeInputConfig & {
|
|
282
|
+
owner: string;
|
|
788
283
|
feeContracts: Record<string, Record<string, ResolvedTokenFeeConfigInput>>;
|
|
789
284
|
};
|
|
790
285
|
export type ResolvedOffchainQuotedLinearFeeConfigInput = OffchainQuotedLinearFeeInputConfig & {
|
|
286
|
+
owner: string;
|
|
287
|
+
token: string;
|
|
288
|
+
};
|
|
289
|
+
export type ResolvedStandardTokenFeeConfigInput = StandardTokenFeeInputConfig & {
|
|
290
|
+
owner: string;
|
|
791
291
|
token: string;
|
|
792
292
|
};
|
|
793
|
-
export type ResolvedTokenFeeConfigInput =
|
|
293
|
+
export type ResolvedTokenFeeConfigInput = ResolvedStandardTokenFeeConfigInput | ResolvedOffchainQuotedLinearFeeConfigInput | ResolvedRoutingFeeConfigInput | ResolvedCrossCollateralRoutingFeeConfigInput;
|
|
294
|
+
export {};
|
|
794
295
|
//# sourceMappingURL=types.d.ts.map
|