@dodoex/dodo-contract-request 1.5.0 → 1.6.0-alpha.2
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/.releaserc.json +8 -3
- package/CHANGELOG.md +15 -25
- package/contract-config/sepolia.json +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +42 -12
- package/dist/types/contract/CP.d.ts +214 -50
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
- package/dist/types/contract/CustomERC20.d.ts +75 -20
- package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
- package/dist/types/contract/D3Proxy.d.ts +33 -13
- package/dist/types/contract/D3Vault.d.ts +324 -123
- package/dist/types/contract/DODOApprove.d.ts +44 -14
- package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
- package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
- package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
- package/dist/types/contract/DODOCpProxy.d.ts +20 -5
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
- package/dist/types/contract/DODODppProxy.d.ts +20 -5
- package/dist/types/contract/DODODspProxy.d.ts +27 -7
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
- package/dist/types/contract/DODOIncentive.d.ts +75 -26
- package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
- package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
- package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
- package/dist/types/contract/DODONFT.d.ts +95 -25
- package/dist/types/contract/DODONFT1155.d.ts +56 -16
- package/dist/types/contract/DODONFTApprove.d.ts +47 -17
- package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
- package/dist/types/contract/DODONFTProxy.d.ts +84 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
- package/dist/types/contract/DODOSellHelper.d.ts +12 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
- package/dist/types/contract/DODOV1.d.ts +269 -77
- package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
- package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
- package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
- package/dist/types/contract/DPPAdvanced.d.ts +172 -69
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
- package/dist/types/contract/DPPFactory.d.ts +97 -30
- package/dist/types/contract/DSP.d.ts +221 -78
- package/dist/types/contract/DSPFactory.d.ts +73 -21
- package/dist/types/contract/DVM.d.ts +203 -71
- package/dist/types/contract/DVMFactory.d.ts +73 -21
- package/dist/types/contract/ERC20.d.ts +41 -11
- package/dist/types/contract/ERC20Helper.d.ts +24 -23
- package/dist/types/contract/ERC20MineV3.d.ts +91 -36
- package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
- package/dist/types/contract/FeeRateModel.d.ts +28 -8
- package/dist/types/contract/GSP.d.ts +265 -95
- package/dist/types/contract/GSPFactory.d.ts +68 -21
- package/dist/types/contract/InitializableERC20.d.ts +46 -11
- package/dist/types/contract/LimitOrder.d.ts +71 -21
- package/dist/types/contract/LimitOrderBot.d.ts +45 -15
- package/dist/types/contract/MulticallWithValid.d.ts +43 -8
- package/dist/types/contract/PermissionManager.d.ts +33 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
- package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
- package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
- package/dist/types/contract/dodoTeam.d.ts +100 -33
- package/dist/types/contract/vDODOToken.d.ts +196 -58
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/scripts/contract-generate.ts +8 -1
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +60 -0
- package/src/contract/CP.ts +340 -0
- package/src/contract/CrowdPoolingFactory.ts +190 -0
- package/src/contract/CustomERC20.ts +110 -0
- package/src/contract/CustomMintableERC20.ts +110 -0
- package/src/contract/D3Proxy.ts +40 -0
- package/src/contract/D3Vault.ts +480 -0
- package/src/contract/DODOApprove.ts +60 -0
- package/src/contract/DODOApproveProxy.ts +70 -0
- package/src/contract/DODOCalleeHelper.ts +10 -0
- package/src/contract/DODOCirculationHelper.ts +70 -0
- package/src/contract/DODOCpProxy.ts +30 -0
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
- package/src/contract/DODODppProxy.ts +30 -0
- package/src/contract/DODODspProxy.ts +40 -0
- package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
- package/src/contract/DODOIncentive.ts +110 -0
- package/src/contract/DODOMineV2Factory.ts +70 -0
- package/src/contract/DODOMineV3Proxy.ts +60 -0
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
- package/src/contract/DODOMineV3Registry.ts +60 -0
- package/src/contract/DODONFT.ts +140 -0
- package/src/contract/DODONFT1155.ts +80 -0
- package/src/contract/DODONFTApprove.ts +60 -0
- package/src/contract/DODONFTPoolProxy.ts +100 -0
- package/src/contract/DODONFTProxy.ts +120 -0
- package/src/contract/DODONFTRegistry.ts +70 -0
- package/src/contract/DODONFTRouteHelper.ts +20 -0
- package/src/contract/DODOSellHelper.ts +20 -0
- package/src/contract/DODOStarterProxy.ts +20 -0
- package/src/contract/DODOV1.ts +390 -0
- package/src/contract/DODOV1Adapter.ts +10 -0
- package/src/contract/DODOV1PmmHelper.ts +10 -0
- package/src/contract/DODOV1Proxy.ts +10 -0
- package/src/contract/DODOV2Proxy02.ts +130 -0
- package/src/contract/DODOV2RouteHelper.ts +40 -0
- package/src/contract/DPPAdvanced.ts +270 -0
- package/src/contract/DPPAdvancedAdmin.ts +70 -0
- package/src/contract/DPPFactory.ts +140 -0
- package/src/contract/DSP.ts +350 -0
- package/src/contract/DSPFactory.ts +110 -0
- package/src/contract/DVM.ts +320 -0
- package/src/contract/DVMFactory.ts +110 -0
- package/src/contract/ERC20.ts +60 -0
- package/src/contract/ERC20Helper.ts +40 -0
- package/src/contract/ERC20MineV3.ts +130 -0
- package/src/contract/ERC20V3Factory.ts +110 -0
- package/src/contract/FeeRateDIP3Impl.ts +100 -0
- package/src/contract/FeeRateModel.ts +40 -0
- package/src/contract/GSP.ts +410 -0
- package/src/contract/GSPFactory.ts +100 -0
- package/src/contract/InitializableERC20.ts +70 -0
- package/src/contract/LimitOrder.ts +100 -0
- package/src/contract/LimitOrderBot.ts +60 -0
- package/src/contract/MulticallWithValid.ts +70 -0
- package/src/contract/PermissionManager.ts +40 -0
- package/src/contract/UniswapV2Factory.ts +51 -1
- package/src/contract/UniswapV2Pair.ts +190 -0
- package/src/contract/UniswapV2Router02.ts +71 -1
- package/src/contract/dodoTeam.ts +140 -0
- package/src/contract/vDODOToken.ts +300 -0
- package/src/index.ts +2 -1
|
@@ -4,80 +4,145 @@ export declare function getD3VaultContractAddressByChainId(chainId: number): str
|
|
|
4
4
|
* @param {number} chainId - number
|
|
5
5
|
* @returns {bigint} __output0 - uint256
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchD3VaultDISCOUNT(chainId: number):
|
|
7
|
+
export declare function fetchD3VaultDISCOUNT(chainId: number): any;
|
|
8
|
+
export declare function getFetchD3VaultDISCOUNTQueryOptions(chainId: number | undefined): {
|
|
9
|
+
queryKey: (string | number | undefined)[];
|
|
10
|
+
enabled: boolean[];
|
|
11
|
+
queryFn: () => any;
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* fetch IM
|
|
10
15
|
* @param {number} chainId - number
|
|
11
16
|
* @returns {bigint} __output0 - uint256
|
|
12
17
|
*/
|
|
13
|
-
export declare function fetchD3VaultIM(chainId: number):
|
|
18
|
+
export declare function fetchD3VaultIM(chainId: number): any;
|
|
19
|
+
export declare function getFetchD3VaultIMQueryOptions(chainId: number | undefined): {
|
|
20
|
+
queryKey: (string | number | undefined)[];
|
|
21
|
+
enabled: boolean[];
|
|
22
|
+
queryFn: () => any;
|
|
23
|
+
};
|
|
14
24
|
/**
|
|
15
25
|
* fetch MM
|
|
16
26
|
* @param {number} chainId - number
|
|
17
27
|
* @returns {bigint} __output0 - uint256
|
|
18
28
|
*/
|
|
19
|
-
export declare function fetchD3VaultMM(chainId: number):
|
|
29
|
+
export declare function fetchD3VaultMM(chainId: number): any;
|
|
30
|
+
export declare function getFetchD3VaultMMQueryOptions(chainId: number | undefined): {
|
|
31
|
+
queryKey: (string | number | undefined)[];
|
|
32
|
+
enabled: boolean[];
|
|
33
|
+
queryFn: () => any;
|
|
34
|
+
};
|
|
20
35
|
/**
|
|
21
36
|
* fetch _CLONE_FACTORY_
|
|
22
37
|
* @param {number} chainId - number
|
|
23
38
|
* @returns {string} __output0 - address
|
|
24
39
|
*/
|
|
25
|
-
export declare function fetchD3Vault_CLONE_FACTORY_(chainId: number):
|
|
40
|
+
export declare function fetchD3Vault_CLONE_FACTORY_(chainId: number): any;
|
|
41
|
+
export declare function getFetchD3Vault_CLONE_FACTORY_QueryOptions(chainId: number | undefined): {
|
|
42
|
+
queryKey: (string | number | undefined)[];
|
|
43
|
+
enabled: boolean[];
|
|
44
|
+
queryFn: () => any;
|
|
45
|
+
};
|
|
26
46
|
/**
|
|
27
47
|
* fetch _D3TOKEN_LOGIC_
|
|
28
48
|
* @param {number} chainId - number
|
|
29
49
|
* @returns {string} __output0 - address
|
|
30
50
|
*/
|
|
31
|
-
export declare function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number):
|
|
51
|
+
export declare function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number): any;
|
|
52
|
+
export declare function getFetchD3Vault_D3TOKEN_LOGIC_QueryOptions(chainId: number | undefined): {
|
|
53
|
+
queryKey: (string | number | undefined)[];
|
|
54
|
+
enabled: boolean[];
|
|
55
|
+
queryFn: () => any;
|
|
56
|
+
};
|
|
32
57
|
/**
|
|
33
58
|
* fetch _D3_FACTORY_
|
|
34
59
|
* @param {number} chainId - number
|
|
35
60
|
* @returns {string} __output0 - address
|
|
36
61
|
*/
|
|
37
|
-
export declare function fetchD3Vault_D3_FACTORY_(chainId: number):
|
|
62
|
+
export declare function fetchD3Vault_D3_FACTORY_(chainId: number): any;
|
|
63
|
+
export declare function getFetchD3Vault_D3_FACTORY_QueryOptions(chainId: number | undefined): {
|
|
64
|
+
queryKey: (string | number | undefined)[];
|
|
65
|
+
enabled: boolean[];
|
|
66
|
+
queryFn: () => any;
|
|
67
|
+
};
|
|
38
68
|
/**
|
|
39
69
|
* fetch _MAINTAINER_
|
|
40
70
|
* @param {number} chainId - number
|
|
41
71
|
* @returns {string} __output0 - address
|
|
42
72
|
*/
|
|
43
|
-
export declare function fetchD3Vault_MAINTAINER_(chainId: number):
|
|
73
|
+
export declare function fetchD3Vault_MAINTAINER_(chainId: number): any;
|
|
74
|
+
export declare function getFetchD3Vault_MAINTAINER_QueryOptions(chainId: number | undefined): {
|
|
75
|
+
queryKey: (string | number | undefined)[];
|
|
76
|
+
enabled: boolean[];
|
|
77
|
+
queryFn: () => any;
|
|
78
|
+
};
|
|
44
79
|
/**
|
|
45
80
|
* fetch _ORACLE_
|
|
46
81
|
* @param {number} chainId - number
|
|
47
82
|
* @returns {string} __output0 - address
|
|
48
83
|
*/
|
|
49
|
-
export declare function fetchD3Vault_ORACLE_(chainId: number):
|
|
84
|
+
export declare function fetchD3Vault_ORACLE_(chainId: number): any;
|
|
85
|
+
export declare function getFetchD3Vault_ORACLE_QueryOptions(chainId: number | undefined): {
|
|
86
|
+
queryKey: (string | number | undefined)[];
|
|
87
|
+
enabled: boolean[];
|
|
88
|
+
queryFn: () => any;
|
|
89
|
+
};
|
|
50
90
|
/**
|
|
51
91
|
* fetch _PENDING_REMOVE_POOL_
|
|
52
92
|
* @param {number} chainId - number
|
|
53
93
|
* @returns {string} __output0 - address
|
|
54
94
|
*/
|
|
55
|
-
export declare function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number):
|
|
95
|
+
export declare function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number): any;
|
|
96
|
+
export declare function getFetchD3Vault_PENDING_REMOVE_POOL_QueryOptions(chainId: number | undefined): {
|
|
97
|
+
queryKey: (string | number | undefined)[];
|
|
98
|
+
enabled: boolean[];
|
|
99
|
+
queryFn: () => any;
|
|
100
|
+
};
|
|
56
101
|
/**
|
|
57
102
|
* fetch _POOL_QUOTA_
|
|
58
103
|
* @param {number} chainId - number
|
|
59
104
|
* @returns {string} __output0 - address
|
|
60
105
|
*/
|
|
61
|
-
export declare function fetchD3Vault_POOL_QUOTA_(chainId: number):
|
|
106
|
+
export declare function fetchD3Vault_POOL_QUOTA_(chainId: number): any;
|
|
107
|
+
export declare function getFetchD3Vault_POOL_QUOTA_QueryOptions(chainId: number | undefined): {
|
|
108
|
+
queryKey: (string | number | undefined)[];
|
|
109
|
+
enabled: boolean[];
|
|
110
|
+
queryFn: () => any;
|
|
111
|
+
};
|
|
62
112
|
/**
|
|
63
113
|
* fetch _RATE_MANAGER_
|
|
64
114
|
* @param {number} chainId - number
|
|
65
115
|
* @returns {string} __output0 - address
|
|
66
116
|
*/
|
|
67
|
-
export declare function fetchD3Vault_RATE_MANAGER_(chainId: number):
|
|
117
|
+
export declare function fetchD3Vault_RATE_MANAGER_(chainId: number): any;
|
|
118
|
+
export declare function getFetchD3Vault_RATE_MANAGER_QueryOptions(chainId: number | undefined): {
|
|
119
|
+
queryKey: (string | number | undefined)[];
|
|
120
|
+
enabled: boolean[];
|
|
121
|
+
queryFn: () => any;
|
|
122
|
+
};
|
|
68
123
|
/**
|
|
69
124
|
* fetch _USER_QUOTA_
|
|
70
125
|
* @param {number} chainId - number
|
|
71
126
|
* @returns {string} __output0 - address
|
|
72
127
|
*/
|
|
73
|
-
export declare function fetchD3Vault_USER_QUOTA_(chainId: number):
|
|
128
|
+
export declare function fetchD3Vault_USER_QUOTA_(chainId: number): any;
|
|
129
|
+
export declare function getFetchD3Vault_USER_QUOTA_QueryOptions(chainId: number | undefined): {
|
|
130
|
+
queryKey: (string | number | undefined)[];
|
|
131
|
+
enabled: boolean[];
|
|
132
|
+
queryFn: () => any;
|
|
133
|
+
};
|
|
74
134
|
/**
|
|
75
135
|
* fetch accrualTimestampMap
|
|
76
136
|
* @param {number} chainId - number
|
|
77
137
|
* @param {string} __input1 - address
|
|
78
138
|
* @returns {bigint} __output0 - uint256
|
|
79
139
|
*/
|
|
80
|
-
export declare function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: string):
|
|
140
|
+
export declare function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: string): any;
|
|
141
|
+
export declare function getFetchD3VaultAccrualTimestampMapQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
142
|
+
queryKey: (string | number | undefined)[];
|
|
143
|
+
enabled: boolean[];
|
|
144
|
+
queryFn: () => any;
|
|
145
|
+
};
|
|
81
146
|
/**
|
|
82
147
|
* fetch accrueInterestForRead
|
|
83
148
|
* @param {number} chainId - number
|
|
@@ -87,33 +152,48 @@ export declare function fetchD3VaultAccrualTimestampMap(chainId: number, __input
|
|
|
87
152
|
* @returns {bigint} borrowIndexNew - uint256
|
|
88
153
|
* @returns {bigint} accrualTime - uint256
|
|
89
154
|
*/
|
|
90
|
-
export declare function fetchD3VaultAccrueInterestForRead(chainId: number, token: string):
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
155
|
+
export declare function fetchD3VaultAccrueInterestForRead(chainId: number, token: string): any;
|
|
156
|
+
export declare function getFetchD3VaultAccrueInterestForReadQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
157
|
+
queryKey: (string | number | undefined)[];
|
|
158
|
+
enabled: boolean[];
|
|
159
|
+
queryFn: () => any;
|
|
160
|
+
};
|
|
96
161
|
/**
|
|
97
162
|
* fetch allPoolAddrMap
|
|
98
163
|
* @param {number} chainId - number
|
|
99
164
|
* @param {string} __input1 - address
|
|
100
165
|
* @returns {boolean} __output0 - bool
|
|
101
166
|
*/
|
|
102
|
-
export declare function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string):
|
|
167
|
+
export declare function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string): any;
|
|
168
|
+
export declare function getFetchD3VaultAllPoolAddrMapQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
169
|
+
queryKey: (string | number | undefined)[];
|
|
170
|
+
enabled: boolean[];
|
|
171
|
+
queryFn: () => any;
|
|
172
|
+
};
|
|
103
173
|
/**
|
|
104
174
|
* fetch allowedLiquidator
|
|
105
175
|
* @param {number} chainId - number
|
|
106
176
|
* @param {string} __input1 - address
|
|
107
177
|
* @returns {boolean} __output0 - bool
|
|
108
178
|
*/
|
|
109
|
-
export declare function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string):
|
|
179
|
+
export declare function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string): any;
|
|
180
|
+
export declare function getFetchD3VaultAllowedLiquidatorQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
181
|
+
queryKey: (string | number | undefined)[];
|
|
182
|
+
enabled: boolean[];
|
|
183
|
+
queryFn: () => any;
|
|
184
|
+
};
|
|
110
185
|
/**
|
|
111
186
|
* fetch allowedRouter
|
|
112
187
|
* @param {number} chainId - number
|
|
113
188
|
* @param {string} __input1 - address
|
|
114
189
|
* @returns {boolean} __output0 - bool
|
|
115
190
|
*/
|
|
116
|
-
export declare function fetchD3VaultAllowedRouter(chainId: number, __input1: string):
|
|
191
|
+
export declare function fetchD3VaultAllowedRouter(chainId: number, __input1: string): any;
|
|
192
|
+
export declare function getFetchD3VaultAllowedRouterQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
193
|
+
queryKey: (string | number | undefined)[];
|
|
194
|
+
enabled: boolean[];
|
|
195
|
+
queryFn: () => any;
|
|
196
|
+
};
|
|
117
197
|
/**
|
|
118
198
|
* fetch assetInfo
|
|
119
199
|
* @param {number} chainId - number
|
|
@@ -131,62 +211,84 @@ export declare function fetchD3VaultAllowedRouter(chainId: number, __input1: str
|
|
|
131
211
|
* @returns {bigint} collateralWeight - uint256
|
|
132
212
|
* @returns {bigint} debtWeight - uint256
|
|
133
213
|
*/
|
|
134
|
-
export declare function fetchD3VaultAssetInfo(chainId: number, __input1: string):
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
totalReserves: bigint;
|
|
141
|
-
withdrawnReserves: bigint;
|
|
142
|
-
reserveFactor: bigint;
|
|
143
|
-
maxDepositAmount: bigint;
|
|
144
|
-
maxCollateralAmount: bigint;
|
|
145
|
-
collateralWeight: bigint;
|
|
146
|
-
debtWeight: bigint;
|
|
147
|
-
}>;
|
|
214
|
+
export declare function fetchD3VaultAssetInfo(chainId: number, __input1: string): any;
|
|
215
|
+
export declare function getFetchD3VaultAssetInfoQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
216
|
+
queryKey: (string | number | undefined)[];
|
|
217
|
+
enabled: boolean[];
|
|
218
|
+
queryFn: () => any;
|
|
219
|
+
};
|
|
148
220
|
/**
|
|
149
221
|
* fetch checkBadDebt
|
|
150
222
|
* @param {number} chainId - number
|
|
151
223
|
* @param {string} pool - address
|
|
152
224
|
* @returns {boolean} __output0 - bool
|
|
153
225
|
*/
|
|
154
|
-
export declare function fetchD3VaultCheckBadDebt(chainId: number, pool: string):
|
|
226
|
+
export declare function fetchD3VaultCheckBadDebt(chainId: number, pool: string): any;
|
|
227
|
+
export declare function getFetchD3VaultCheckBadDebtQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
228
|
+
queryKey: (string | number | undefined)[];
|
|
229
|
+
enabled: boolean[];
|
|
230
|
+
queryFn: () => any;
|
|
231
|
+
};
|
|
155
232
|
/**
|
|
156
233
|
* fetch checkBadDebtAfterAccrue
|
|
157
234
|
* @param {number} chainId - number
|
|
158
235
|
* @param {string} pool - address
|
|
159
236
|
* @returns {boolean} __output0 - bool
|
|
160
237
|
*/
|
|
161
|
-
export declare function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: string):
|
|
238
|
+
export declare function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: string): any;
|
|
239
|
+
export declare function getFetchD3VaultCheckBadDebtAfterAccrueQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
240
|
+
queryKey: (string | number | undefined)[];
|
|
241
|
+
enabled: boolean[];
|
|
242
|
+
queryFn: () => any;
|
|
243
|
+
};
|
|
162
244
|
/**
|
|
163
245
|
* fetch checkBorrowSafe
|
|
164
246
|
* @param {number} chainId - number
|
|
165
247
|
* @param {string} pool - address
|
|
166
248
|
* @returns {boolean} __output0 - bool
|
|
167
249
|
*/
|
|
168
|
-
export declare function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string):
|
|
250
|
+
export declare function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string): any;
|
|
251
|
+
export declare function getFetchD3VaultCheckBorrowSafeQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
252
|
+
queryKey: (string | number | undefined)[];
|
|
253
|
+
enabled: boolean[];
|
|
254
|
+
queryFn: () => any;
|
|
255
|
+
};
|
|
169
256
|
/**
|
|
170
257
|
* fetch checkCanBeLiquidated
|
|
171
258
|
* @param {number} chainId - number
|
|
172
259
|
* @param {string} pool - address
|
|
173
260
|
* @returns {boolean} __output0 - bool
|
|
174
261
|
*/
|
|
175
|
-
export declare function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string):
|
|
262
|
+
export declare function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string): any;
|
|
263
|
+
export declare function getFetchD3VaultCheckCanBeLiquidatedQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
264
|
+
queryKey: (string | number | undefined)[];
|
|
265
|
+
enabled: boolean[];
|
|
266
|
+
queryFn: () => any;
|
|
267
|
+
};
|
|
176
268
|
/**
|
|
177
269
|
* fetch checkCanBeLiquidatedAfterAccrue
|
|
178
270
|
* @param {number} chainId - number
|
|
179
271
|
* @param {string} pool - address
|
|
180
272
|
* @returns {boolean} __output0 - bool
|
|
181
273
|
*/
|
|
182
|
-
export declare function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, pool: string):
|
|
274
|
+
export declare function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, pool: string): any;
|
|
275
|
+
export declare function getFetchD3VaultCheckCanBeLiquidatedAfterAccrueQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
276
|
+
queryKey: (string | number | undefined)[];
|
|
277
|
+
enabled: boolean[];
|
|
278
|
+
queryFn: () => any;
|
|
279
|
+
};
|
|
183
280
|
/**
|
|
184
281
|
* fetch checkSafe
|
|
185
282
|
* @param {number} chainId - number
|
|
186
283
|
* @param {string} pool - address
|
|
187
284
|
* @returns {boolean} __output0 - bool
|
|
188
285
|
*/
|
|
189
|
-
export declare function fetchD3VaultCheckSafe(chainId: number, pool: string):
|
|
286
|
+
export declare function fetchD3VaultCheckSafe(chainId: number, pool: string): any;
|
|
287
|
+
export declare function getFetchD3VaultCheckSafeQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
288
|
+
queryKey: (string | number | undefined)[];
|
|
289
|
+
enabled: boolean[];
|
|
290
|
+
queryFn: () => any;
|
|
291
|
+
};
|
|
190
292
|
/**
|
|
191
293
|
* fetch creatorPoolMap
|
|
192
294
|
* @param {number} chainId - number
|
|
@@ -194,7 +296,12 @@ export declare function fetchD3VaultCheckSafe(chainId: number, pool: string): Pr
|
|
|
194
296
|
* @param {number} __input2 - uint256
|
|
195
297
|
* @returns {string} __output0 - address
|
|
196
298
|
*/
|
|
197
|
-
export declare function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __input2: number):
|
|
299
|
+
export declare function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __input2: number): any;
|
|
300
|
+
export declare function getFetchD3VaultCreatorPoolMapQueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined): {
|
|
301
|
+
queryKey: (string | number | undefined)[];
|
|
302
|
+
enabled: boolean[];
|
|
303
|
+
queryFn: () => any;
|
|
304
|
+
};
|
|
198
305
|
/**
|
|
199
306
|
* fetch getAssetInfo
|
|
200
307
|
* @param {number} chainId - number
|
|
@@ -211,19 +318,12 @@ export declare function fetchD3VaultCreatorPoolMap(chainId: number, __input1: st
|
|
|
211
318
|
* @returns {bigint} withdrawnReserves - uint256
|
|
212
319
|
* @returns {bigint} balance - uint256
|
|
213
320
|
*/
|
|
214
|
-
export declare function fetchD3VaultGetAssetInfo(chainId: number, token: string):
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
accrualTime: bigint;
|
|
221
|
-
maxDepositAmount: bigint;
|
|
222
|
-
collateralWeight: bigint;
|
|
223
|
-
debtWeight: bigint;
|
|
224
|
-
withdrawnReserves: bigint;
|
|
225
|
-
balance: bigint;
|
|
226
|
-
}>;
|
|
321
|
+
export declare function fetchD3VaultGetAssetInfo(chainId: number, token: string): any;
|
|
322
|
+
export declare function getFetchD3VaultGetAssetInfoQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
323
|
+
queryKey: (string | number | undefined)[];
|
|
324
|
+
enabled: boolean[];
|
|
325
|
+
queryFn: () => any;
|
|
326
|
+
};
|
|
227
327
|
/**
|
|
228
328
|
* fetch getBalanceAndBorrows
|
|
229
329
|
* @param {number} chainId - number
|
|
@@ -232,38 +332,60 @@ export declare function fetchD3VaultGetAssetInfo(chainId: number, token: string)
|
|
|
232
332
|
* @returns {bigint} __output0 - uint256
|
|
233
333
|
* @returns {bigint} __output1 - uint256
|
|
234
334
|
*/
|
|
235
|
-
export declare function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string, token: string):
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
335
|
+
export declare function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string, token: string): any;
|
|
336
|
+
export declare function getFetchD3VaultGetBalanceAndBorrowsQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined): {
|
|
337
|
+
queryKey: (string | number | undefined)[];
|
|
338
|
+
enabled: boolean[];
|
|
339
|
+
queryFn: () => any;
|
|
340
|
+
};
|
|
239
341
|
/**
|
|
240
342
|
* fetch getBorrowRate
|
|
241
343
|
* @param {number} chainId - number
|
|
242
344
|
* @param {string} token - address
|
|
243
345
|
* @returns {bigint} rate - uint256
|
|
244
346
|
*/
|
|
245
|
-
export declare function fetchD3VaultGetBorrowRate(chainId: number, token: string):
|
|
347
|
+
export declare function fetchD3VaultGetBorrowRate(chainId: number, token: string): any;
|
|
348
|
+
export declare function getFetchD3VaultGetBorrowRateQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
349
|
+
queryKey: (string | number | undefined)[];
|
|
350
|
+
enabled: boolean[];
|
|
351
|
+
queryFn: () => any;
|
|
352
|
+
};
|
|
246
353
|
/**
|
|
247
354
|
* fetch getCash
|
|
248
355
|
* @param {number} chainId - number
|
|
249
356
|
* @param {string} token - address
|
|
250
357
|
* @returns {bigint} __output0 - uint256
|
|
251
358
|
*/
|
|
252
|
-
export declare function fetchD3VaultGetCash(chainId: number, token: string):
|
|
359
|
+
export declare function fetchD3VaultGetCash(chainId: number, token: string): any;
|
|
360
|
+
export declare function getFetchD3VaultGetCashQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
361
|
+
queryKey: (string | number | undefined)[];
|
|
362
|
+
enabled: boolean[];
|
|
363
|
+
queryFn: () => any;
|
|
364
|
+
};
|
|
253
365
|
/**
|
|
254
366
|
* fetch getCollateralRatio
|
|
255
367
|
* @param {number} chainId - number
|
|
256
368
|
* @param {string} pool - address
|
|
257
369
|
* @returns {bigint} __output0 - uint256
|
|
258
370
|
*/
|
|
259
|
-
export declare function fetchD3VaultGetCollateralRatio(chainId: number, pool: string):
|
|
371
|
+
export declare function fetchD3VaultGetCollateralRatio(chainId: number, pool: string): any;
|
|
372
|
+
export declare function getFetchD3VaultGetCollateralRatioQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
373
|
+
queryKey: (string | number | undefined)[];
|
|
374
|
+
enabled: boolean[];
|
|
375
|
+
queryFn: () => any;
|
|
376
|
+
};
|
|
260
377
|
/**
|
|
261
378
|
* fetch getCollateralRatioBorrow
|
|
262
379
|
* @param {number} chainId - number
|
|
263
380
|
* @param {string} pool - address
|
|
264
381
|
* @returns {bigint} __output0 - uint256
|
|
265
382
|
*/
|
|
266
|
-
export declare function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: string):
|
|
383
|
+
export declare function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: string): any;
|
|
384
|
+
export declare function getFetchD3VaultGetCollateralRatioBorrowQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
385
|
+
queryKey: (string | number | undefined)[];
|
|
386
|
+
enabled: boolean[];
|
|
387
|
+
queryFn: () => any;
|
|
388
|
+
};
|
|
267
389
|
/**
|
|
268
390
|
* fetch getCompoundInterestRate
|
|
269
391
|
* @param {number} chainId - number
|
|
@@ -271,7 +393,12 @@ export declare function fetchD3VaultGetCollateralRatioBorrow(chainId: number, po
|
|
|
271
393
|
* @param {number} t - uint256
|
|
272
394
|
* @returns {bigint} __output0 - uint256
|
|
273
395
|
*/
|
|
274
|
-
export declare function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number, t: number):
|
|
396
|
+
export declare function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number, t: number): any;
|
|
397
|
+
export declare function getFetchD3VaultGetCompoundInterestRateQueryOptions(chainId: number | undefined, r: number | undefined, t: number | undefined): {
|
|
398
|
+
queryKey: (string | number | undefined)[];
|
|
399
|
+
enabled: boolean[];
|
|
400
|
+
queryFn: () => any;
|
|
401
|
+
};
|
|
275
402
|
/**
|
|
276
403
|
* fetch getCumulativeBorrowRate
|
|
277
404
|
* @param {number} chainId - number
|
|
@@ -280,34 +407,48 @@ export declare function fetchD3VaultGetCompoundInterestRate(chainId: number, r:
|
|
|
280
407
|
* @returns {bigint} cumulativeRate - uint256
|
|
281
408
|
* @returns {bigint} currentAmount - uint256
|
|
282
409
|
*/
|
|
283
|
-
export declare function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: string, token: string):
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
410
|
+
export declare function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: string, token: string): any;
|
|
411
|
+
export declare function getFetchD3VaultGetCumulativeBorrowRateQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined): {
|
|
412
|
+
queryKey: (string | number | undefined)[];
|
|
413
|
+
enabled: boolean[];
|
|
414
|
+
queryFn: () => any;
|
|
415
|
+
};
|
|
287
416
|
/**
|
|
288
417
|
* fetch getExchangeRate
|
|
289
418
|
* @param {number} chainId - number
|
|
290
419
|
* @param {string} token - address
|
|
291
420
|
* @returns {bigint} exchangeRate - uint256
|
|
292
421
|
*/
|
|
293
|
-
export declare function fetchD3VaultGetExchangeRate(chainId: number, token: string):
|
|
422
|
+
export declare function fetchD3VaultGetExchangeRate(chainId: number, token: string): any;
|
|
423
|
+
export declare function getFetchD3VaultGetExchangeRateQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
424
|
+
queryKey: (string | number | undefined)[];
|
|
425
|
+
enabled: boolean[];
|
|
426
|
+
queryFn: () => any;
|
|
427
|
+
};
|
|
294
428
|
/**
|
|
295
429
|
* fetch getIMMM
|
|
296
430
|
* @param {number} chainId - number
|
|
297
431
|
* @returns {bigint} __output0 - uint256
|
|
298
432
|
* @returns {bigint} __output1 - uint256
|
|
299
433
|
*/
|
|
300
|
-
export declare function fetchD3VaultGetIMMM(chainId: number):
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
434
|
+
export declare function fetchD3VaultGetIMMM(chainId: number): any;
|
|
435
|
+
export declare function getFetchD3VaultGetIMMMQueryOptions(chainId: number | undefined): {
|
|
436
|
+
queryKey: (string | number | undefined)[];
|
|
437
|
+
enabled: boolean[];
|
|
438
|
+
queryFn: () => any;
|
|
439
|
+
};
|
|
304
440
|
/**
|
|
305
441
|
* fetch getLatestBorrowIndex
|
|
306
442
|
* @param {number} chainId - number
|
|
307
443
|
* @param {string} token - address
|
|
308
444
|
* @returns {bigint} borrowIndex - uint256
|
|
309
445
|
*/
|
|
310
|
-
export declare function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string):
|
|
446
|
+
export declare function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string): any;
|
|
447
|
+
export declare function getFetchD3VaultGetLatestBorrowIndexQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
448
|
+
queryKey: (string | number | undefined)[];
|
|
449
|
+
enabled: boolean[];
|
|
450
|
+
queryFn: () => any;
|
|
451
|
+
};
|
|
311
452
|
/**
|
|
312
453
|
* fetch getPoolBorrowAmount
|
|
313
454
|
* @param {number} chainId - number
|
|
@@ -315,7 +456,12 @@ export declare function fetchD3VaultGetLatestBorrowIndex(chainId: number, token:
|
|
|
315
456
|
* @param {string} token - address
|
|
316
457
|
* @returns {bigint} amount - uint256
|
|
317
458
|
*/
|
|
318
|
-
export declare function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, token: string):
|
|
459
|
+
export declare function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, token: string): any;
|
|
460
|
+
export declare function getFetchD3VaultGetPoolBorrowAmountQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined): {
|
|
461
|
+
queryKey: (string | number | undefined)[];
|
|
462
|
+
enabled: boolean[];
|
|
463
|
+
queryFn: () => any;
|
|
464
|
+
};
|
|
319
465
|
/**
|
|
320
466
|
* fetch getPoolLeftQuota
|
|
321
467
|
* @param {number} chainId - number
|
|
@@ -323,48 +469,83 @@ export declare function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: s
|
|
|
323
469
|
* @param {string} token - address
|
|
324
470
|
* @returns {bigint} leftQuota - uint256
|
|
325
471
|
*/
|
|
326
|
-
export declare function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, token: string):
|
|
472
|
+
export declare function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, token: string): any;
|
|
473
|
+
export declare function getFetchD3VaultGetPoolLeftQuotaQueryOptions(chainId: number | undefined, pool: string | undefined, token: string | undefined): {
|
|
474
|
+
queryKey: (string | number | undefined)[];
|
|
475
|
+
enabled: boolean[];
|
|
476
|
+
queryFn: () => any;
|
|
477
|
+
};
|
|
327
478
|
/**
|
|
328
479
|
* fetch getReservesInVault
|
|
329
480
|
* @param {number} chainId - number
|
|
330
481
|
* @param {string} token - address
|
|
331
482
|
* @returns {bigint} __output0 - uint256
|
|
332
483
|
*/
|
|
333
|
-
export declare function fetchD3VaultGetReservesInVault(chainId: number, token: string):
|
|
484
|
+
export declare function fetchD3VaultGetReservesInVault(chainId: number, token: string): any;
|
|
485
|
+
export declare function getFetchD3VaultGetReservesInVaultQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
486
|
+
queryKey: (string | number | undefined)[];
|
|
487
|
+
enabled: boolean[];
|
|
488
|
+
queryFn: () => any;
|
|
489
|
+
};
|
|
334
490
|
/**
|
|
335
491
|
* fetch getTokenList
|
|
336
492
|
* @param {number} chainId - number
|
|
337
493
|
* @returns {Array<string>} __output0 - address[]
|
|
338
494
|
*/
|
|
339
|
-
export declare function fetchD3VaultGetTokenList(chainId: number):
|
|
495
|
+
export declare function fetchD3VaultGetTokenList(chainId: number): any;
|
|
496
|
+
export declare function getFetchD3VaultGetTokenListQueryOptions(chainId: number | undefined): {
|
|
497
|
+
queryKey: (string | number | undefined)[];
|
|
498
|
+
enabled: boolean[];
|
|
499
|
+
queryFn: () => any;
|
|
500
|
+
};
|
|
340
501
|
/**
|
|
341
502
|
* fetch getTotalAssetsValue
|
|
342
503
|
* @param {number} chainId - number
|
|
343
504
|
* @param {string} pool - address
|
|
344
505
|
* @returns {bigint} totalValue - uint256
|
|
345
506
|
*/
|
|
346
|
-
export declare function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string):
|
|
507
|
+
export declare function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string): any;
|
|
508
|
+
export declare function getFetchD3VaultGetTotalAssetsValueQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
509
|
+
queryKey: (string | number | undefined)[];
|
|
510
|
+
enabled: boolean[];
|
|
511
|
+
queryFn: () => any;
|
|
512
|
+
};
|
|
347
513
|
/**
|
|
348
514
|
* fetch getTotalBorrows
|
|
349
515
|
* @param {number} chainId - number
|
|
350
516
|
* @param {string} token - address
|
|
351
517
|
* @returns {bigint} __output0 - uint256
|
|
352
518
|
*/
|
|
353
|
-
export declare function fetchD3VaultGetTotalBorrows(chainId: number, token: string):
|
|
519
|
+
export declare function fetchD3VaultGetTotalBorrows(chainId: number, token: string): any;
|
|
520
|
+
export declare function getFetchD3VaultGetTotalBorrowsQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
521
|
+
queryKey: (string | number | undefined)[];
|
|
522
|
+
enabled: boolean[];
|
|
523
|
+
queryFn: () => any;
|
|
524
|
+
};
|
|
354
525
|
/**
|
|
355
526
|
* fetch getTotalDebtValue
|
|
356
527
|
* @param {number} chainId - number
|
|
357
528
|
* @param {string} pool - address
|
|
358
529
|
* @returns {bigint} totalDebt - uint256
|
|
359
530
|
*/
|
|
360
|
-
export declare function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string):
|
|
531
|
+
export declare function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string): any;
|
|
532
|
+
export declare function getFetchD3VaultGetTotalDebtValueQueryOptions(chainId: number | undefined, pool: string | undefined): {
|
|
533
|
+
queryKey: (string | number | undefined)[];
|
|
534
|
+
enabled: boolean[];
|
|
535
|
+
queryFn: () => any;
|
|
536
|
+
};
|
|
361
537
|
/**
|
|
362
538
|
* fetch getUtilizationRatio
|
|
363
539
|
* @param {number} chainId - number
|
|
364
540
|
* @param {string} token - address
|
|
365
541
|
* @returns {bigint} __output0 - uint256
|
|
366
542
|
*/
|
|
367
|
-
export declare function fetchD3VaultGetUtilizationRatio(chainId: number, token: string):
|
|
543
|
+
export declare function fetchD3VaultGetUtilizationRatio(chainId: number, token: string): any;
|
|
544
|
+
export declare function getFetchD3VaultGetUtilizationRatioQueryOptions(chainId: number | undefined, token: string | undefined): {
|
|
545
|
+
queryKey: (string | number | undefined)[];
|
|
546
|
+
enabled: boolean[];
|
|
547
|
+
queryFn: () => any;
|
|
548
|
+
};
|
|
368
549
|
/**
|
|
369
550
|
* fetch liquidationTarget
|
|
370
551
|
* @param {number} chainId - number
|
|
@@ -372,57 +553,77 @@ export declare function fetchD3VaultGetUtilizationRatio(chainId: number, token:
|
|
|
372
553
|
* @param {string} __input2 - address
|
|
373
554
|
* @returns {bigint} __output0 - uint256
|
|
374
555
|
*/
|
|
375
|
-
export declare function fetchD3VaultLiquidationTarget(chainId: number, __input1: string, __input2: string):
|
|
556
|
+
export declare function fetchD3VaultLiquidationTarget(chainId: number, __input1: string, __input2: string): any;
|
|
557
|
+
export declare function getFetchD3VaultLiquidationTargetQueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: string | undefined): {
|
|
558
|
+
queryKey: (string | number | undefined)[];
|
|
559
|
+
enabled: boolean[];
|
|
560
|
+
queryFn: () => any;
|
|
561
|
+
};
|
|
376
562
|
/**
|
|
377
563
|
* fetch owner
|
|
378
564
|
* @param {number} chainId - number
|
|
379
565
|
* @returns {string} __output0 - address
|
|
380
566
|
*/
|
|
381
|
-
export declare function fetchD3VaultOwner(chainId: number):
|
|
567
|
+
export declare function fetchD3VaultOwner(chainId: number): any;
|
|
568
|
+
export declare function getFetchD3VaultOwnerQueryOptions(chainId: number | undefined): {
|
|
569
|
+
queryKey: (string | number | undefined)[];
|
|
570
|
+
enabled: boolean[];
|
|
571
|
+
queryFn: () => any;
|
|
572
|
+
};
|
|
382
573
|
/**
|
|
383
574
|
* fetch tokenList
|
|
384
575
|
* @param {number} chainId - number
|
|
385
576
|
* @param {number} __input1 - uint256
|
|
386
577
|
* @returns {string} __output0 - address
|
|
387
578
|
*/
|
|
388
|
-
export declare function fetchD3VaultTokenList(chainId: number, __input1: number):
|
|
579
|
+
export declare function fetchD3VaultTokenList(chainId: number, __input1: number): any;
|
|
580
|
+
export declare function getFetchD3VaultTokenListQueryOptions(chainId: number | undefined, __input1: number | undefined): {
|
|
581
|
+
queryKey: (string | number | undefined)[];
|
|
582
|
+
enabled: boolean[];
|
|
583
|
+
queryFn: () => any;
|
|
584
|
+
};
|
|
389
585
|
/**
|
|
390
586
|
* fetch tokens
|
|
391
587
|
* @param {number} chainId - number
|
|
392
588
|
* @param {string} __input1 - address
|
|
393
589
|
* @returns {boolean} __output0 - bool
|
|
394
590
|
*/
|
|
395
|
-
export declare function fetchD3VaultTokens(chainId: number, __input1: string):
|
|
591
|
+
export declare function fetchD3VaultTokens(chainId: number, __input1: string): any;
|
|
592
|
+
export declare function getFetchD3VaultTokensQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
593
|
+
queryKey: (string | number | undefined)[];
|
|
594
|
+
enabled: boolean[];
|
|
595
|
+
queryFn: () => any;
|
|
596
|
+
};
|
|
396
597
|
/**
|
|
397
598
|
* encode accrueInterest
|
|
398
599
|
* @param {string} token - address
|
|
399
600
|
* @returns {string} encode data
|
|
400
601
|
*/
|
|
401
|
-
export declare function encodeD3VaultAccrueInterest(token: string):
|
|
602
|
+
export declare function encodeD3VaultAccrueInterest(token: string): any;
|
|
402
603
|
/**
|
|
403
604
|
* encode accrueInterests
|
|
404
605
|
|
|
405
606
|
* @returns {string} encode data
|
|
406
607
|
*/
|
|
407
|
-
export declare function encodeD3VaultAccrueInterests():
|
|
608
|
+
export declare function encodeD3VaultAccrueInterests(): any;
|
|
408
609
|
/**
|
|
409
610
|
* encode addD3Pool
|
|
410
611
|
* @param {string} pool - address
|
|
411
612
|
* @returns {string} encode data
|
|
412
613
|
*/
|
|
413
|
-
export declare function encodeD3VaultAddD3Pool(pool: string):
|
|
614
|
+
export declare function encodeD3VaultAddD3Pool(pool: string): any;
|
|
414
615
|
/**
|
|
415
616
|
* encode addD3PoolByFactory
|
|
416
617
|
* @param {string} pool - address
|
|
417
618
|
* @returns {string} encode data
|
|
418
619
|
*/
|
|
419
|
-
export declare function encodeD3VaultAddD3PoolByFactory(pool: string):
|
|
620
|
+
export declare function encodeD3VaultAddD3PoolByFactory(pool: string): any;
|
|
420
621
|
/**
|
|
421
622
|
* encode addLiquidator
|
|
422
623
|
* @param {string} liquidator - address
|
|
423
624
|
* @returns {string} encode data
|
|
424
625
|
*/
|
|
425
|
-
export declare function encodeD3VaultAddLiquidator(liquidator: string):
|
|
626
|
+
export declare function encodeD3VaultAddLiquidator(liquidator: string): any;
|
|
426
627
|
/**
|
|
427
628
|
* encode addNewToken
|
|
428
629
|
* @param {string} token - address
|
|
@@ -433,25 +634,25 @@ export declare function encodeD3VaultAddLiquidator(liquidator: string): string;
|
|
|
433
634
|
* @param {string | number} reserveFactor - uint256
|
|
434
635
|
* @returns {string} encode data
|
|
435
636
|
*/
|
|
436
|
-
export declare function encodeD3VaultAddNewToken(token: string, maxDeposit: string | number, maxCollateral: string | number, collateralWeight: string | number, debtWeight: string | number, reserveFactor: string | number):
|
|
637
|
+
export declare function encodeD3VaultAddNewToken(token: string, maxDeposit: string | number, maxCollateral: string | number, collateralWeight: string | number, debtWeight: string | number, reserveFactor: string | number): any;
|
|
437
638
|
/**
|
|
438
639
|
* encode addRouter
|
|
439
640
|
* @param {string} router - address
|
|
440
641
|
* @returns {string} encode data
|
|
441
642
|
*/
|
|
442
|
-
export declare function encodeD3VaultAddRouter(router: string):
|
|
643
|
+
export declare function encodeD3VaultAddRouter(router: string): any;
|
|
443
644
|
/**
|
|
444
645
|
* encode finishLiquidation
|
|
445
646
|
* @param {string} pool - address
|
|
446
647
|
* @returns {string} encode data
|
|
447
648
|
*/
|
|
448
|
-
export declare function encodeD3VaultFinishLiquidation(pool: string):
|
|
649
|
+
export declare function encodeD3VaultFinishLiquidation(pool: string): any;
|
|
449
650
|
/**
|
|
450
651
|
* encode finishPoolRemove
|
|
451
652
|
|
|
452
653
|
* @returns {string} encode data
|
|
453
654
|
*/
|
|
454
|
-
export declare function encodeD3VaultFinishPoolRemove():
|
|
655
|
+
export declare function encodeD3VaultFinishPoolRemove(): any;
|
|
455
656
|
/**
|
|
456
657
|
* encode liquidate
|
|
457
658
|
* @param {string} pool - address
|
|
@@ -461,7 +662,7 @@ export declare function encodeD3VaultFinishPoolRemove(): string;
|
|
|
461
662
|
* @param {string | number} debtToCover - uint256
|
|
462
663
|
* @returns {string} encode data
|
|
463
664
|
*/
|
|
464
|
-
export declare function encodeD3VaultLiquidate(pool: string, collateral: string, collateralAmount: string | number, debt: string, debtToCover: string | number):
|
|
665
|
+
export declare function encodeD3VaultLiquidate(pool: string, collateral: string, collateralAmount: string | number, debt: string, debtToCover: string | number): any;
|
|
465
666
|
/**
|
|
466
667
|
* encode liquidateByDODO
|
|
467
668
|
* @param {string} pool - address
|
|
@@ -474,123 +675,123 @@ export declare function encodeD3VaultLiquidateByDODO(pool: string, order: {
|
|
|
474
675
|
fromToken: string;
|
|
475
676
|
toToken: string;
|
|
476
677
|
fromAmount: string | number;
|
|
477
|
-
}, routeData: string, router: string):
|
|
678
|
+
}, routeData: string, router: string): any;
|
|
478
679
|
/**
|
|
479
680
|
* encode pendingRemovePoolRepayAll
|
|
480
681
|
* @param {string} token - address
|
|
481
682
|
* @returns {string} encode data
|
|
482
683
|
*/
|
|
483
|
-
export declare function encodeD3VaultPendingRemovePoolRepayAll(token: string):
|
|
684
|
+
export declare function encodeD3VaultPendingRemovePoolRepayAll(token: string): any;
|
|
484
685
|
/**
|
|
485
686
|
* encode poolBorrow
|
|
486
687
|
* @param {string} token - address
|
|
487
688
|
* @param {string | number} amount - uint256
|
|
488
689
|
* @returns {string} encode data
|
|
489
690
|
*/
|
|
490
|
-
export declare function encodeD3VaultPoolBorrow(token: string, amount: string | number):
|
|
691
|
+
export declare function encodeD3VaultPoolBorrow(token: string, amount: string | number): any;
|
|
491
692
|
/**
|
|
492
693
|
* encode poolRepay
|
|
493
694
|
* @param {string} token - address
|
|
494
695
|
* @param {string | number} amount - uint256
|
|
495
696
|
* @returns {string} encode data
|
|
496
697
|
*/
|
|
497
|
-
export declare function encodeD3VaultPoolRepay(token: string, amount: string | number):
|
|
698
|
+
export declare function encodeD3VaultPoolRepay(token: string, amount: string | number): any;
|
|
498
699
|
/**
|
|
499
700
|
* encode poolRepayAll
|
|
500
701
|
* @param {string} token - address
|
|
501
702
|
* @returns {string} encode data
|
|
502
703
|
*/
|
|
503
|
-
export declare function encodeD3VaultPoolRepayAll(token: string):
|
|
704
|
+
export declare function encodeD3VaultPoolRepayAll(token: string): any;
|
|
504
705
|
/**
|
|
505
706
|
* encode removeD3Pool
|
|
506
707
|
* @param {string} pool - address
|
|
507
708
|
* @returns {string} encode data
|
|
508
709
|
*/
|
|
509
|
-
export declare function encodeD3VaultRemoveD3Pool(pool: string):
|
|
710
|
+
export declare function encodeD3VaultRemoveD3Pool(pool: string): any;
|
|
510
711
|
/**
|
|
511
712
|
* encode removeLiquidator
|
|
512
713
|
* @param {string} liquidator - address
|
|
513
714
|
* @returns {string} encode data
|
|
514
715
|
*/
|
|
515
|
-
export declare function encodeD3VaultRemoveLiquidator(liquidator: string):
|
|
716
|
+
export declare function encodeD3VaultRemoveLiquidator(liquidator: string): any;
|
|
516
717
|
/**
|
|
517
718
|
* encode removeRouter
|
|
518
719
|
* @param {string} router - address
|
|
519
720
|
* @returns {string} encode data
|
|
520
721
|
*/
|
|
521
|
-
export declare function encodeD3VaultRemoveRouter(router: string):
|
|
722
|
+
export declare function encodeD3VaultRemoveRouter(router: string): any;
|
|
522
723
|
/**
|
|
523
724
|
* encode renounceOwnership
|
|
524
725
|
|
|
525
726
|
* @returns {string} encode data
|
|
526
727
|
*/
|
|
527
|
-
export declare function encodeD3VaultRenounceOwnership():
|
|
728
|
+
export declare function encodeD3VaultRenounceOwnership(): any;
|
|
528
729
|
/**
|
|
529
730
|
* encode setCloneFactory
|
|
530
731
|
* @param {string} cloneFactory - address
|
|
531
732
|
* @returns {string} encode data
|
|
532
733
|
*/
|
|
533
|
-
export declare function encodeD3VaultSetCloneFactory(cloneFactory: string):
|
|
734
|
+
export declare function encodeD3VaultSetCloneFactory(cloneFactory: string): any;
|
|
534
735
|
/**
|
|
535
736
|
* encode setDTokenTemplate
|
|
536
737
|
* @param {string} dTokenTemplate - address
|
|
537
738
|
* @returns {string} encode data
|
|
538
739
|
*/
|
|
539
|
-
export declare function encodeD3VaultSetDTokenTemplate(dTokenTemplate: string):
|
|
740
|
+
export declare function encodeD3VaultSetDTokenTemplate(dTokenTemplate: string): any;
|
|
540
741
|
/**
|
|
541
742
|
* encode setDiscount
|
|
542
743
|
* @param {string | number} discount - uint256
|
|
543
744
|
* @returns {string} encode data
|
|
544
745
|
*/
|
|
545
|
-
export declare function encodeD3VaultSetDiscount(discount: string | number):
|
|
746
|
+
export declare function encodeD3VaultSetDiscount(discount: string | number): any;
|
|
546
747
|
/**
|
|
547
748
|
* encode setIM
|
|
548
749
|
* @param {string | number} newIM - uint256
|
|
549
750
|
* @returns {string} encode data
|
|
550
751
|
*/
|
|
551
|
-
export declare function encodeD3VaultSetIM(newIM: string | number):
|
|
752
|
+
export declare function encodeD3VaultSetIM(newIM: string | number): any;
|
|
552
753
|
/**
|
|
553
754
|
* encode setMM
|
|
554
755
|
* @param {string | number} newMM - uint256
|
|
555
756
|
* @returns {string} encode data
|
|
556
757
|
*/
|
|
557
|
-
export declare function encodeD3VaultSetMM(newMM: string | number):
|
|
758
|
+
export declare function encodeD3VaultSetMM(newMM: string | number): any;
|
|
558
759
|
/**
|
|
559
760
|
* encode setMaintainer
|
|
560
761
|
* @param {string} maintainer - address
|
|
561
762
|
* @returns {string} encode data
|
|
562
763
|
*/
|
|
563
|
-
export declare function encodeD3VaultSetMaintainer(maintainer: string):
|
|
764
|
+
export declare function encodeD3VaultSetMaintainer(maintainer: string): any;
|
|
564
765
|
/**
|
|
565
766
|
* encode setNewD3Factory
|
|
566
767
|
* @param {string} newFactory - address
|
|
567
768
|
* @returns {string} encode data
|
|
568
769
|
*/
|
|
569
|
-
export declare function encodeD3VaultSetNewD3Factory(newFactory: string):
|
|
770
|
+
export declare function encodeD3VaultSetNewD3Factory(newFactory: string): any;
|
|
570
771
|
/**
|
|
571
772
|
* encode setNewD3PoolQuota
|
|
572
773
|
* @param {string} newQuota - address
|
|
573
774
|
* @returns {string} encode data
|
|
574
775
|
*/
|
|
575
|
-
export declare function encodeD3VaultSetNewD3PoolQuota(newQuota: string):
|
|
776
|
+
export declare function encodeD3VaultSetNewD3PoolQuota(newQuota: string): any;
|
|
576
777
|
/**
|
|
577
778
|
* encode setNewD3UserQuota
|
|
578
779
|
* @param {string} newQuota - address
|
|
579
780
|
* @returns {string} encode data
|
|
580
781
|
*/
|
|
581
|
-
export declare function encodeD3VaultSetNewD3UserQuota(newQuota: string):
|
|
782
|
+
export declare function encodeD3VaultSetNewD3UserQuota(newQuota: string): any;
|
|
582
783
|
/**
|
|
583
784
|
* encode setNewOracle
|
|
584
785
|
* @param {string} newOracle - address
|
|
585
786
|
* @returns {string} encode data
|
|
586
787
|
*/
|
|
587
|
-
export declare function encodeD3VaultSetNewOracle(newOracle: string):
|
|
788
|
+
export declare function encodeD3VaultSetNewOracle(newOracle: string): any;
|
|
588
789
|
/**
|
|
589
790
|
* encode setNewRateManager
|
|
590
791
|
* @param {string} newRateManager - address
|
|
591
792
|
* @returns {string} encode data
|
|
592
793
|
*/
|
|
593
|
-
export declare function encodeD3VaultSetNewRateManager(newRateManager: string):
|
|
794
|
+
export declare function encodeD3VaultSetNewRateManager(newRateManager: string): any;
|
|
594
795
|
/**
|
|
595
796
|
* encode setToken
|
|
596
797
|
* @param {string} token - address
|
|
@@ -601,26 +802,26 @@ export declare function encodeD3VaultSetNewRateManager(newRateManager: string):
|
|
|
601
802
|
* @param {string | number} reserveFactor - uint256
|
|
602
803
|
* @returns {string} encode data
|
|
603
804
|
*/
|
|
604
|
-
export declare function encodeD3VaultSetToken(token: string, maxDeposit: string | number, maxCollateral: string | number, collateralWeight: string | number, debtWeight: string | number, reserveFactor: string | number):
|
|
805
|
+
export declare function encodeD3VaultSetToken(token: string, maxDeposit: string | number, maxCollateral: string | number, collateralWeight: string | number, debtWeight: string | number, reserveFactor: string | number): any;
|
|
605
806
|
/**
|
|
606
807
|
* encode startLiquidation
|
|
607
808
|
* @param {string} pool - address
|
|
608
809
|
* @returns {string} encode data
|
|
609
810
|
*/
|
|
610
|
-
export declare function encodeD3VaultStartLiquidation(pool: string):
|
|
811
|
+
export declare function encodeD3VaultStartLiquidation(pool: string): any;
|
|
611
812
|
/**
|
|
612
813
|
* encode transferOwnership
|
|
613
814
|
* @param {string} newOwner - address
|
|
614
815
|
* @returns {string} encode data
|
|
615
816
|
*/
|
|
616
|
-
export declare function encodeD3VaultTransferOwnership(newOwner: string):
|
|
817
|
+
export declare function encodeD3VaultTransferOwnership(newOwner: string): any;
|
|
617
818
|
/**
|
|
618
819
|
* encode userDeposit
|
|
619
820
|
* @param {string} user - address
|
|
620
821
|
* @param {string} token - address
|
|
621
822
|
* @returns {string} encode data
|
|
622
823
|
*/
|
|
623
|
-
export declare function encodeD3VaultUserDeposit(user: string, token: string):
|
|
824
|
+
export declare function encodeD3VaultUserDeposit(user: string, token: string): any;
|
|
624
825
|
/**
|
|
625
826
|
* encode userWithdraw
|
|
626
827
|
* @param {string} to - address
|
|
@@ -629,11 +830,11 @@ export declare function encodeD3VaultUserDeposit(user: string, token: string): s
|
|
|
629
830
|
* @param {string | number} dTokenAmount - uint256
|
|
630
831
|
* @returns {string} encode data
|
|
631
832
|
*/
|
|
632
|
-
export declare function encodeD3VaultUserWithdraw(to: string, user: string, token: string, dTokenAmount: string | number):
|
|
833
|
+
export declare function encodeD3VaultUserWithdraw(to: string, user: string, token: string, dTokenAmount: string | number): any;
|
|
633
834
|
/**
|
|
634
835
|
* encode withdrawReserves
|
|
635
836
|
* @param {string} token - address
|
|
636
837
|
* @param {string | number} amount - uint256
|
|
637
838
|
* @returns {string} encode data
|
|
638
839
|
*/
|
|
639
|
-
export declare function encodeD3VaultWithdrawReserves(token: string, amount: string | number):
|
|
840
|
+
export declare function encodeD3VaultWithdrawReserves(token: string, amount: string | number): any;
|