@dodoex/dodo-contract-request 1.2.0 → 1.3.1
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/.cache/contract-info/UniswapV2Pair.json +1 -0
- package/CHANGELOG.md +14 -0
- package/contract-config/sepolia.json +2 -2
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +19 -19
- package/dist/types/contract/CP.d.ts +53 -47
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +42 -39
- package/dist/types/contract/CustomERC20.d.ts +27 -27
- package/dist/types/contract/CustomMintableERC20.d.ts +31 -31
- package/dist/types/contract/D3Proxy.d.ts +26 -26
- package/dist/types/contract/D3Vault.d.ts +144 -105
- package/dist/types/contract/DODOApprove.d.ts +15 -15
- package/dist/types/contract/DODOApproveProxy.d.ts +17 -17
- package/dist/types/contract/DODOCalleeHelper.d.ts +12 -12
- package/dist/types/contract/DODOCirculationHelper.d.ts +12 -12
- package/dist/types/contract/DODOCpProxy.d.ts +13 -13
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +12 -12
- package/dist/types/contract/DODODppProxy.d.ts +17 -17
- package/dist/types/contract/DODODspProxy.d.ts +27 -27
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +17 -17
- package/dist/types/contract/DODOIncentive.d.ts +29 -23
- package/dist/types/contract/DODOMineV2Factory.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Proxy.d.ts +19 -19
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Registry.d.ts +13 -13
- package/dist/types/contract/DODONFT.d.ts +30 -30
- package/dist/types/contract/DODONFT1155.d.ts +23 -23
- package/dist/types/contract/DODONFTApprove.d.ts +22 -22
- package/dist/types/contract/DODONFTPoolProxy.d.ts +41 -41
- package/dist/types/contract/DODONFTProxy.d.ts +28 -28
- package/dist/types/contract/DODONFTRegistry.d.ts +17 -14
- package/dist/types/contract/DODONFTRouteHelper.d.ts +2 -2
- package/dist/types/contract/DODOSellHelper.d.ts +2 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +6 -6
- package/dist/types/contract/DODOV1.d.ts +100 -97
- package/dist/types/contract/DODOV1Adapter.d.ts +3 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +1 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +14 -14
- package/dist/types/contract/DODOV2Proxy02.d.ts +93 -93
- package/dist/types/contract/DODOV2RouteHelper.d.ts +4 -4
- package/dist/types/contract/DPPAdvanced.d.ts +82 -50
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +25 -25
- package/dist/types/contract/DPPFactory.d.ts +33 -30
- package/dist/types/contract/DSP.d.ts +93 -61
- package/dist/types/contract/DSPFactory.d.ts +24 -21
- package/dist/types/contract/DVM.d.ts +86 -58
- package/dist/types/contract/DVMFactory.d.ts +24 -21
- package/dist/types/contract/ERC20.d.ts +15 -15
- package/dist/types/contract/ERC20Helper.d.ts +23 -4
- package/dist/types/contract/ERC20MineV3.d.ts +48 -38
- package/dist/types/contract/ERC20V3Factory.d.ts +37 -33
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +34 -25
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +117 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -23
- package/dist/types/contract/InitializableERC20.d.ts +16 -16
- package/dist/types/contract/LimitOrder.d.ts +38 -38
- package/dist/types/contract/LimitOrderBot.d.ts +18 -18
- package/dist/types/contract/MulticallWithValid.d.ts +8 -8
- package/dist/types/contract/PermissionManager.d.ts +13 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +11 -11
- package/dist/types/contract/UniswapV2Pair.d.ts +229 -0
- package/dist/types/contract/UniswapV2Router02.d.ts +103 -103
- package/dist/types/contract/dodoTeam.d.ts +49 -46
- package/dist/types/contract/vDODOToken.d.ts +67 -55
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/contract/BuyoutModel.ts +16 -16
- package/src/contract/CP.ts +39 -39
- package/src/contract/CrowdPoolingFactory.ts +34 -34
- package/src/contract/CustomERC20.ts +22 -22
- package/src/contract/CustomMintableERC20.ts +26 -26
- package/src/contract/D3Proxy.ts +24 -24
- package/src/contract/D3Vault.ts +79 -79
- package/src/contract/DODOApprove.ts +8 -8
- package/src/contract/DODOApproveProxy.ts +9 -9
- package/src/contract/DODOCalleeHelper.ts +12 -12
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +13 -13
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +12 -12
- package/src/contract/DODODppProxy.ts +17 -17
- package/src/contract/DODODspProxy.ts +27 -27
- package/src/contract/DODODspProxyWithoutGSP.ts +17 -17
- package/src/contract/DODOIncentive.ts +17 -17
- package/src/contract/DODOMineV2Factory.ts +11 -11
- package/src/contract/DODOMineV3Proxy.ts +15 -15
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +14 -14
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +24 -24
- package/src/contract/DODONFT1155.ts +19 -19
- package/src/contract/DODONFTApprove.ts +14 -14
- package/src/contract/DODONFTPoolProxy.ts +34 -34
- package/src/contract/DODONFTProxy.ts +18 -18
- package/src/contract/DODONFTRegistry.ts +7 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +6 -6
- package/src/contract/DODOV1.ts +80 -80
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +11 -11
- package/src/contract/DODOV2Proxy02.ts +88 -88
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +44 -44
- package/src/contract/DPPAdvancedAdmin.ts +19 -19
- package/src/contract/DPPFactory.ts +18 -18
- package/src/contract/DSP.ts +57 -57
- package/src/contract/DSPFactory.ts +15 -15
- package/src/contract/DVM.ts +54 -54
- package/src/contract/DVMFactory.ts +15 -15
- package/src/contract/ERC20.ts +14 -14
- package/src/contract/ERC20Helper.ts +4 -4
- package/src/contract/ERC20MineV3.ts +32 -32
- package/src/contract/ERC20V3Factory.ts +26 -26
- package/src/contract/FeeRateDIP3Impl.ts +18 -18
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +75 -75
- package/src/contract/GSPFactory.ts +16 -16
- package/src/contract/InitializableERC20.ts +16 -16
- package/src/contract/LimitOrder.ts +19 -19
- package/src/contract/LimitOrderBot.ts +11 -11
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +9 -9
- package/src/contract/UniswapV2Pair.ts +377 -0
- package/src/contract/UniswapV2Router02.ts +91 -91
- package/src/contract/dodoTeam.ts +38 -38
- package/src/contract/vDODOToken.ts +48 -48
- package/src/index.ts +1 -0
|
@@ -4,80 +4,80 @@ 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): Promise<bigint>;
|
|
8
8
|
/**
|
|
9
9
|
* fetch IM
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @returns {bigint} __output0 - uint256
|
|
12
12
|
*/
|
|
13
|
-
export declare function fetchD3VaultIM(chainId: number):
|
|
13
|
+
export declare function fetchD3VaultIM(chainId: number): Promise<bigint>;
|
|
14
14
|
/**
|
|
15
15
|
* fetch MM
|
|
16
16
|
* @param {number} chainId - number
|
|
17
17
|
* @returns {bigint} __output0 - uint256
|
|
18
18
|
*/
|
|
19
|
-
export declare function fetchD3VaultMM(chainId: number):
|
|
19
|
+
export declare function fetchD3VaultMM(chainId: number): Promise<bigint>;
|
|
20
20
|
/**
|
|
21
21
|
* fetch _CLONE_FACTORY_
|
|
22
22
|
* @param {number} chainId - number
|
|
23
23
|
* @returns {string} __output0 - address
|
|
24
24
|
*/
|
|
25
|
-
export declare function fetchD3Vault_CLONE_FACTORY_(chainId: number):
|
|
25
|
+
export declare function fetchD3Vault_CLONE_FACTORY_(chainId: number): Promise<string>;
|
|
26
26
|
/**
|
|
27
27
|
* fetch _D3TOKEN_LOGIC_
|
|
28
28
|
* @param {number} chainId - number
|
|
29
29
|
* @returns {string} __output0 - address
|
|
30
30
|
*/
|
|
31
|
-
export declare function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number):
|
|
31
|
+
export declare function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number): Promise<string>;
|
|
32
32
|
/**
|
|
33
33
|
* fetch _D3_FACTORY_
|
|
34
34
|
* @param {number} chainId - number
|
|
35
35
|
* @returns {string} __output0 - address
|
|
36
36
|
*/
|
|
37
|
-
export declare function fetchD3Vault_D3_FACTORY_(chainId: number):
|
|
37
|
+
export declare function fetchD3Vault_D3_FACTORY_(chainId: number): Promise<string>;
|
|
38
38
|
/**
|
|
39
39
|
* fetch _MAINTAINER_
|
|
40
40
|
* @param {number} chainId - number
|
|
41
41
|
* @returns {string} __output0 - address
|
|
42
42
|
*/
|
|
43
|
-
export declare function fetchD3Vault_MAINTAINER_(chainId: number):
|
|
43
|
+
export declare function fetchD3Vault_MAINTAINER_(chainId: number): Promise<string>;
|
|
44
44
|
/**
|
|
45
45
|
* fetch _ORACLE_
|
|
46
46
|
* @param {number} chainId - number
|
|
47
47
|
* @returns {string} __output0 - address
|
|
48
48
|
*/
|
|
49
|
-
export declare function fetchD3Vault_ORACLE_(chainId: number):
|
|
49
|
+
export declare function fetchD3Vault_ORACLE_(chainId: number): Promise<string>;
|
|
50
50
|
/**
|
|
51
51
|
* fetch _PENDING_REMOVE_POOL_
|
|
52
52
|
* @param {number} chainId - number
|
|
53
53
|
* @returns {string} __output0 - address
|
|
54
54
|
*/
|
|
55
|
-
export declare function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number):
|
|
55
|
+
export declare function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number): Promise<string>;
|
|
56
56
|
/**
|
|
57
57
|
* fetch _POOL_QUOTA_
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export declare function fetchD3Vault_POOL_QUOTA_(chainId: number):
|
|
61
|
+
export declare function fetchD3Vault_POOL_QUOTA_(chainId: number): Promise<string>;
|
|
62
62
|
/**
|
|
63
63
|
* fetch _RATE_MANAGER_
|
|
64
64
|
* @param {number} chainId - number
|
|
65
65
|
* @returns {string} __output0 - address
|
|
66
66
|
*/
|
|
67
|
-
export declare function fetchD3Vault_RATE_MANAGER_(chainId: number):
|
|
67
|
+
export declare function fetchD3Vault_RATE_MANAGER_(chainId: number): Promise<string>;
|
|
68
68
|
/**
|
|
69
69
|
* fetch _USER_QUOTA_
|
|
70
70
|
* @param {number} chainId - number
|
|
71
71
|
* @returns {string} __output0 - address
|
|
72
72
|
*/
|
|
73
|
-
export declare function fetchD3Vault_USER_QUOTA_(chainId: number):
|
|
73
|
+
export declare function fetchD3Vault_USER_QUOTA_(chainId: number): Promise<string>;
|
|
74
74
|
/**
|
|
75
75
|
* fetch accrualTimestampMap
|
|
76
76
|
* @param {number} chainId - number
|
|
77
77
|
* @param {string} __input1 - address
|
|
78
78
|
* @returns {bigint} __output0 - uint256
|
|
79
79
|
*/
|
|
80
|
-
export declare function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: string):
|
|
80
|
+
export declare function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: string): Promise<bigint>;
|
|
81
81
|
/**
|
|
82
82
|
* fetch accrueInterestForRead
|
|
83
83
|
* @param {number} chainId - number
|
|
@@ -87,28 +87,33 @@ export declare function fetchD3VaultAccrualTimestampMap(chainId: number, __input
|
|
|
87
87
|
* @returns {bigint} borrowIndexNew - uint256
|
|
88
88
|
* @returns {bigint} accrualTime - uint256
|
|
89
89
|
*/
|
|
90
|
-
export declare function fetchD3VaultAccrueInterestForRead(chainId: number, token: string):
|
|
90
|
+
export declare function fetchD3VaultAccrueInterestForRead(chainId: number, token: string): Promise<{
|
|
91
|
+
totalBorrowsNew: bigint;
|
|
92
|
+
totalReservesNew: bigint;
|
|
93
|
+
borrowIndexNew: bigint;
|
|
94
|
+
accrualTime: bigint;
|
|
95
|
+
}>;
|
|
91
96
|
/**
|
|
92
97
|
* fetch allPoolAddrMap
|
|
93
98
|
* @param {number} chainId - number
|
|
94
99
|
* @param {string} __input1 - address
|
|
95
100
|
* @returns {boolean} __output0 - bool
|
|
96
101
|
*/
|
|
97
|
-
export declare function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string):
|
|
102
|
+
export declare function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string): Promise<boolean>;
|
|
98
103
|
/**
|
|
99
104
|
* fetch allowedLiquidator
|
|
100
105
|
* @param {number} chainId - number
|
|
101
106
|
* @param {string} __input1 - address
|
|
102
107
|
* @returns {boolean} __output0 - bool
|
|
103
108
|
*/
|
|
104
|
-
export declare function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string):
|
|
109
|
+
export declare function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string): Promise<boolean>;
|
|
105
110
|
/**
|
|
106
111
|
* fetch allowedRouter
|
|
107
112
|
* @param {number} chainId - number
|
|
108
113
|
* @param {string} __input1 - address
|
|
109
114
|
* @returns {boolean} __output0 - bool
|
|
110
115
|
*/
|
|
111
|
-
export declare function fetchD3VaultAllowedRouter(chainId: number, __input1: string):
|
|
116
|
+
export declare function fetchD3VaultAllowedRouter(chainId: number, __input1: string): Promise<boolean>;
|
|
112
117
|
/**
|
|
113
118
|
* fetch assetInfo
|
|
114
119
|
* @param {number} chainId - number
|
|
@@ -126,49 +131,62 @@ export declare function fetchD3VaultAllowedRouter(chainId: number, __input1: str
|
|
|
126
131
|
* @returns {bigint} collateralWeight - uint256
|
|
127
132
|
* @returns {bigint} debtWeight - uint256
|
|
128
133
|
*/
|
|
129
|
-
export declare function fetchD3VaultAssetInfo(chainId: number, __input1: string):
|
|
134
|
+
export declare function fetchD3VaultAssetInfo(chainId: number, __input1: string): Promise<{
|
|
135
|
+
dToken: string;
|
|
136
|
+
balance: bigint;
|
|
137
|
+
totalBorrows: bigint;
|
|
138
|
+
borrowIndex: bigint;
|
|
139
|
+
accrualTime: bigint;
|
|
140
|
+
totalReserves: bigint;
|
|
141
|
+
withdrawnReserves: bigint;
|
|
142
|
+
reserveFactor: bigint;
|
|
143
|
+
maxDepositAmount: bigint;
|
|
144
|
+
maxCollateralAmount: bigint;
|
|
145
|
+
collateralWeight: bigint;
|
|
146
|
+
debtWeight: bigint;
|
|
147
|
+
}>;
|
|
130
148
|
/**
|
|
131
149
|
* fetch checkBadDebt
|
|
132
150
|
* @param {number} chainId - number
|
|
133
151
|
* @param {string} pool - address
|
|
134
152
|
* @returns {boolean} __output0 - bool
|
|
135
153
|
*/
|
|
136
|
-
export declare function fetchD3VaultCheckBadDebt(chainId: number, pool: string):
|
|
154
|
+
export declare function fetchD3VaultCheckBadDebt(chainId: number, pool: string): Promise<boolean>;
|
|
137
155
|
/**
|
|
138
156
|
* fetch checkBadDebtAfterAccrue
|
|
139
157
|
* @param {number} chainId - number
|
|
140
158
|
* @param {string} pool - address
|
|
141
159
|
* @returns {boolean} __output0 - bool
|
|
142
160
|
*/
|
|
143
|
-
export declare function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: string):
|
|
161
|
+
export declare function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: string): Promise<boolean>;
|
|
144
162
|
/**
|
|
145
163
|
* fetch checkBorrowSafe
|
|
146
164
|
* @param {number} chainId - number
|
|
147
165
|
* @param {string} pool - address
|
|
148
166
|
* @returns {boolean} __output0 - bool
|
|
149
167
|
*/
|
|
150
|
-
export declare function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string):
|
|
168
|
+
export declare function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string): Promise<boolean>;
|
|
151
169
|
/**
|
|
152
170
|
* fetch checkCanBeLiquidated
|
|
153
171
|
* @param {number} chainId - number
|
|
154
172
|
* @param {string} pool - address
|
|
155
173
|
* @returns {boolean} __output0 - bool
|
|
156
174
|
*/
|
|
157
|
-
export declare function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string):
|
|
175
|
+
export declare function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string): Promise<boolean>;
|
|
158
176
|
/**
|
|
159
177
|
* fetch checkCanBeLiquidatedAfterAccrue
|
|
160
178
|
* @param {number} chainId - number
|
|
161
179
|
* @param {string} pool - address
|
|
162
180
|
* @returns {boolean} __output0 - bool
|
|
163
181
|
*/
|
|
164
|
-
export declare function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, pool: string):
|
|
182
|
+
export declare function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, pool: string): Promise<boolean>;
|
|
165
183
|
/**
|
|
166
184
|
* fetch checkSafe
|
|
167
185
|
* @param {number} chainId - number
|
|
168
186
|
* @param {string} pool - address
|
|
169
187
|
* @returns {boolean} __output0 - bool
|
|
170
188
|
*/
|
|
171
|
-
export declare function fetchD3VaultCheckSafe(chainId: number, pool: string):
|
|
189
|
+
export declare function fetchD3VaultCheckSafe(chainId: number, pool: string): Promise<boolean>;
|
|
172
190
|
/**
|
|
173
191
|
* fetch creatorPoolMap
|
|
174
192
|
* @param {number} chainId - number
|
|
@@ -176,7 +194,7 @@ export declare function fetchD3VaultCheckSafe(chainId: number, pool: string): an
|
|
|
176
194
|
* @param {number} __input2 - uint256
|
|
177
195
|
* @returns {string} __output0 - address
|
|
178
196
|
*/
|
|
179
|
-
export declare function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __input2: number):
|
|
197
|
+
export declare function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __input2: number): Promise<string>;
|
|
180
198
|
/**
|
|
181
199
|
* fetch getAssetInfo
|
|
182
200
|
* @param {number} chainId - number
|
|
@@ -193,7 +211,19 @@ export declare function fetchD3VaultCreatorPoolMap(chainId: number, __input1: st
|
|
|
193
211
|
* @returns {bigint} withdrawnReserves - uint256
|
|
194
212
|
* @returns {bigint} balance - uint256
|
|
195
213
|
*/
|
|
196
|
-
export declare function fetchD3VaultGetAssetInfo(chainId: number, token: string):
|
|
214
|
+
export declare function fetchD3VaultGetAssetInfo(chainId: number, token: string): Promise<{
|
|
215
|
+
dToken: string;
|
|
216
|
+
totalBorrows: bigint;
|
|
217
|
+
totalReserves: bigint;
|
|
218
|
+
reserveFactor: bigint;
|
|
219
|
+
borrowIndex: bigint;
|
|
220
|
+
accrualTime: bigint;
|
|
221
|
+
maxDepositAmount: bigint;
|
|
222
|
+
collateralWeight: bigint;
|
|
223
|
+
debtWeight: bigint;
|
|
224
|
+
withdrawnReserves: bigint;
|
|
225
|
+
balance: bigint;
|
|
226
|
+
}>;
|
|
197
227
|
/**
|
|
198
228
|
* fetch getBalanceAndBorrows
|
|
199
229
|
* @param {number} chainId - number
|
|
@@ -202,35 +232,38 @@ export declare function fetchD3VaultGetAssetInfo(chainId: number, token: string)
|
|
|
202
232
|
* @returns {bigint} __output0 - uint256
|
|
203
233
|
* @returns {bigint} __output1 - uint256
|
|
204
234
|
*/
|
|
205
|
-
export declare function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string, token: string):
|
|
235
|
+
export declare function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string, token: string): Promise<{
|
|
236
|
+
__output0: bigint;
|
|
237
|
+
__output1: bigint;
|
|
238
|
+
}>;
|
|
206
239
|
/**
|
|
207
240
|
* fetch getBorrowRate
|
|
208
241
|
* @param {number} chainId - number
|
|
209
242
|
* @param {string} token - address
|
|
210
243
|
* @returns {bigint} rate - uint256
|
|
211
244
|
*/
|
|
212
|
-
export declare function fetchD3VaultGetBorrowRate(chainId: number, token: string):
|
|
245
|
+
export declare function fetchD3VaultGetBorrowRate(chainId: number, token: string): Promise<bigint>;
|
|
213
246
|
/**
|
|
214
247
|
* fetch getCash
|
|
215
248
|
* @param {number} chainId - number
|
|
216
249
|
* @param {string} token - address
|
|
217
250
|
* @returns {bigint} __output0 - uint256
|
|
218
251
|
*/
|
|
219
|
-
export declare function fetchD3VaultGetCash(chainId: number, token: string):
|
|
252
|
+
export declare function fetchD3VaultGetCash(chainId: number, token: string): Promise<bigint>;
|
|
220
253
|
/**
|
|
221
254
|
* fetch getCollateralRatio
|
|
222
255
|
* @param {number} chainId - number
|
|
223
256
|
* @param {string} pool - address
|
|
224
257
|
* @returns {bigint} __output0 - uint256
|
|
225
258
|
*/
|
|
226
|
-
export declare function fetchD3VaultGetCollateralRatio(chainId: number, pool: string):
|
|
259
|
+
export declare function fetchD3VaultGetCollateralRatio(chainId: number, pool: string): Promise<bigint>;
|
|
227
260
|
/**
|
|
228
261
|
* fetch getCollateralRatioBorrow
|
|
229
262
|
* @param {number} chainId - number
|
|
230
263
|
* @param {string} pool - address
|
|
231
264
|
* @returns {bigint} __output0 - uint256
|
|
232
265
|
*/
|
|
233
|
-
export declare function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: string):
|
|
266
|
+
export declare function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: string): Promise<bigint>;
|
|
234
267
|
/**
|
|
235
268
|
* fetch getCompoundInterestRate
|
|
236
269
|
* @param {number} chainId - number
|
|
@@ -238,7 +271,7 @@ export declare function fetchD3VaultGetCollateralRatioBorrow(chainId: number, po
|
|
|
238
271
|
* @param {number} t - uint256
|
|
239
272
|
* @returns {bigint} __output0 - uint256
|
|
240
273
|
*/
|
|
241
|
-
export declare function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number, t: number):
|
|
274
|
+
export declare function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number, t: number): Promise<bigint>;
|
|
242
275
|
/**
|
|
243
276
|
* fetch getCumulativeBorrowRate
|
|
244
277
|
* @param {number} chainId - number
|
|
@@ -247,28 +280,34 @@ export declare function fetchD3VaultGetCompoundInterestRate(chainId: number, r:
|
|
|
247
280
|
* @returns {bigint} cumulativeRate - uint256
|
|
248
281
|
* @returns {bigint} currentAmount - uint256
|
|
249
282
|
*/
|
|
250
|
-
export declare function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: string, token: string):
|
|
283
|
+
export declare function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: string, token: string): Promise<{
|
|
284
|
+
cumulativeRate: bigint;
|
|
285
|
+
currentAmount: bigint;
|
|
286
|
+
}>;
|
|
251
287
|
/**
|
|
252
288
|
* fetch getExchangeRate
|
|
253
289
|
* @param {number} chainId - number
|
|
254
290
|
* @param {string} token - address
|
|
255
291
|
* @returns {bigint} exchangeRate - uint256
|
|
256
292
|
*/
|
|
257
|
-
export declare function fetchD3VaultGetExchangeRate(chainId: number, token: string):
|
|
293
|
+
export declare function fetchD3VaultGetExchangeRate(chainId: number, token: string): Promise<bigint>;
|
|
258
294
|
/**
|
|
259
295
|
* fetch getIMMM
|
|
260
296
|
* @param {number} chainId - number
|
|
261
297
|
* @returns {bigint} __output0 - uint256
|
|
262
298
|
* @returns {bigint} __output1 - uint256
|
|
263
299
|
*/
|
|
264
|
-
export declare function fetchD3VaultGetIMMM(chainId: number):
|
|
300
|
+
export declare function fetchD3VaultGetIMMM(chainId: number): Promise<{
|
|
301
|
+
__output0: bigint;
|
|
302
|
+
__output1: bigint;
|
|
303
|
+
}>;
|
|
265
304
|
/**
|
|
266
305
|
* fetch getLatestBorrowIndex
|
|
267
306
|
* @param {number} chainId - number
|
|
268
307
|
* @param {string} token - address
|
|
269
308
|
* @returns {bigint} borrowIndex - uint256
|
|
270
309
|
*/
|
|
271
|
-
export declare function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string):
|
|
310
|
+
export declare function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string): Promise<bigint>;
|
|
272
311
|
/**
|
|
273
312
|
* fetch getPoolBorrowAmount
|
|
274
313
|
* @param {number} chainId - number
|
|
@@ -276,7 +315,7 @@ export declare function fetchD3VaultGetLatestBorrowIndex(chainId: number, token:
|
|
|
276
315
|
* @param {string} token - address
|
|
277
316
|
* @returns {bigint} amount - uint256
|
|
278
317
|
*/
|
|
279
|
-
export declare function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, token: string):
|
|
318
|
+
export declare function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, token: string): Promise<bigint>;
|
|
280
319
|
/**
|
|
281
320
|
* fetch getPoolLeftQuota
|
|
282
321
|
* @param {number} chainId - number
|
|
@@ -284,48 +323,48 @@ export declare function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: s
|
|
|
284
323
|
* @param {string} token - address
|
|
285
324
|
* @returns {bigint} leftQuota - uint256
|
|
286
325
|
*/
|
|
287
|
-
export declare function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, token: string):
|
|
326
|
+
export declare function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, token: string): Promise<bigint>;
|
|
288
327
|
/**
|
|
289
328
|
* fetch getReservesInVault
|
|
290
329
|
* @param {number} chainId - number
|
|
291
330
|
* @param {string} token - address
|
|
292
331
|
* @returns {bigint} __output0 - uint256
|
|
293
332
|
*/
|
|
294
|
-
export declare function fetchD3VaultGetReservesInVault(chainId: number, token: string):
|
|
333
|
+
export declare function fetchD3VaultGetReservesInVault(chainId: number, token: string): Promise<bigint>;
|
|
295
334
|
/**
|
|
296
335
|
* fetch getTokenList
|
|
297
336
|
* @param {number} chainId - number
|
|
298
337
|
* @returns {Array<string>} __output0 - address[]
|
|
299
338
|
*/
|
|
300
|
-
export declare function fetchD3VaultGetTokenList(chainId: number):
|
|
339
|
+
export declare function fetchD3VaultGetTokenList(chainId: number): Promise<string[]>;
|
|
301
340
|
/**
|
|
302
341
|
* fetch getTotalAssetsValue
|
|
303
342
|
* @param {number} chainId - number
|
|
304
343
|
* @param {string} pool - address
|
|
305
344
|
* @returns {bigint} totalValue - uint256
|
|
306
345
|
*/
|
|
307
|
-
export declare function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string):
|
|
346
|
+
export declare function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string): Promise<bigint>;
|
|
308
347
|
/**
|
|
309
348
|
* fetch getTotalBorrows
|
|
310
349
|
* @param {number} chainId - number
|
|
311
350
|
* @param {string} token - address
|
|
312
351
|
* @returns {bigint} __output0 - uint256
|
|
313
352
|
*/
|
|
314
|
-
export declare function fetchD3VaultGetTotalBorrows(chainId: number, token: string):
|
|
353
|
+
export declare function fetchD3VaultGetTotalBorrows(chainId: number, token: string): Promise<bigint>;
|
|
315
354
|
/**
|
|
316
355
|
* fetch getTotalDebtValue
|
|
317
356
|
* @param {number} chainId - number
|
|
318
357
|
* @param {string} pool - address
|
|
319
358
|
* @returns {bigint} totalDebt - uint256
|
|
320
359
|
*/
|
|
321
|
-
export declare function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string):
|
|
360
|
+
export declare function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string): Promise<bigint>;
|
|
322
361
|
/**
|
|
323
362
|
* fetch getUtilizationRatio
|
|
324
363
|
* @param {number} chainId - number
|
|
325
364
|
* @param {string} token - address
|
|
326
365
|
* @returns {bigint} __output0 - uint256
|
|
327
366
|
*/
|
|
328
|
-
export declare function fetchD3VaultGetUtilizationRatio(chainId: number, token: string):
|
|
367
|
+
export declare function fetchD3VaultGetUtilizationRatio(chainId: number, token: string): Promise<bigint>;
|
|
329
368
|
/**
|
|
330
369
|
* fetch liquidationTarget
|
|
331
370
|
* @param {number} chainId - number
|
|
@@ -333,100 +372,100 @@ export declare function fetchD3VaultGetUtilizationRatio(chainId: number, token:
|
|
|
333
372
|
* @param {string} __input2 - address
|
|
334
373
|
* @returns {bigint} __output0 - uint256
|
|
335
374
|
*/
|
|
336
|
-
export declare function fetchD3VaultLiquidationTarget(chainId: number, __input1: string, __input2: string):
|
|
375
|
+
export declare function fetchD3VaultLiquidationTarget(chainId: number, __input1: string, __input2: string): Promise<bigint>;
|
|
337
376
|
/**
|
|
338
377
|
* fetch owner
|
|
339
378
|
* @param {number} chainId - number
|
|
340
379
|
* @returns {string} __output0 - address
|
|
341
380
|
*/
|
|
342
|
-
export declare function fetchD3VaultOwner(chainId: number):
|
|
381
|
+
export declare function fetchD3VaultOwner(chainId: number): Promise<string>;
|
|
343
382
|
/**
|
|
344
383
|
* fetch tokenList
|
|
345
384
|
* @param {number} chainId - number
|
|
346
385
|
* @param {number} __input1 - uint256
|
|
347
386
|
* @returns {string} __output0 - address
|
|
348
387
|
*/
|
|
349
|
-
export declare function fetchD3VaultTokenList(chainId: number, __input1: number):
|
|
388
|
+
export declare function fetchD3VaultTokenList(chainId: number, __input1: number): Promise<string>;
|
|
350
389
|
/**
|
|
351
390
|
* fetch tokens
|
|
352
391
|
* @param {number} chainId - number
|
|
353
392
|
* @param {string} __input1 - address
|
|
354
393
|
* @returns {boolean} __output0 - bool
|
|
355
394
|
*/
|
|
356
|
-
export declare function fetchD3VaultTokens(chainId: number, __input1: string):
|
|
395
|
+
export declare function fetchD3VaultTokens(chainId: number, __input1: string): Promise<boolean>;
|
|
357
396
|
/**
|
|
358
397
|
* encode accrueInterest
|
|
359
398
|
* @param {string} token - address
|
|
360
399
|
* @returns {string} encode data
|
|
361
400
|
*/
|
|
362
|
-
export declare function encodeD3VaultAccrueInterest(token: string):
|
|
401
|
+
export declare function encodeD3VaultAccrueInterest(token: string): string;
|
|
363
402
|
/**
|
|
364
403
|
* encode accrueInterests
|
|
365
404
|
|
|
366
405
|
* @returns {string} encode data
|
|
367
406
|
*/
|
|
368
|
-
export declare function encodeD3VaultAccrueInterests():
|
|
407
|
+
export declare function encodeD3VaultAccrueInterests(): string;
|
|
369
408
|
/**
|
|
370
409
|
* encode addD3Pool
|
|
371
410
|
* @param {string} pool - address
|
|
372
411
|
* @returns {string} encode data
|
|
373
412
|
*/
|
|
374
|
-
export declare function encodeD3VaultAddD3Pool(pool: string):
|
|
413
|
+
export declare function encodeD3VaultAddD3Pool(pool: string): string;
|
|
375
414
|
/**
|
|
376
415
|
* encode addD3PoolByFactory
|
|
377
416
|
* @param {string} pool - address
|
|
378
417
|
* @returns {string} encode data
|
|
379
418
|
*/
|
|
380
|
-
export declare function encodeD3VaultAddD3PoolByFactory(pool: string):
|
|
419
|
+
export declare function encodeD3VaultAddD3PoolByFactory(pool: string): string;
|
|
381
420
|
/**
|
|
382
421
|
* encode addLiquidator
|
|
383
422
|
* @param {string} liquidator - address
|
|
384
423
|
* @returns {string} encode data
|
|
385
424
|
*/
|
|
386
|
-
export declare function encodeD3VaultAddLiquidator(liquidator: string):
|
|
425
|
+
export declare function encodeD3VaultAddLiquidator(liquidator: string): string;
|
|
387
426
|
/**
|
|
388
427
|
* encode addNewToken
|
|
389
428
|
* @param {string} token - address
|
|
390
|
-
* @param {string} maxDeposit - uint256
|
|
391
|
-
* @param {string} maxCollateral - uint256
|
|
392
|
-
* @param {string} collateralWeight - uint256
|
|
393
|
-
* @param {string} debtWeight - uint256
|
|
394
|
-
* @param {string} reserveFactor - uint256
|
|
429
|
+
* @param {string | number} maxDeposit - uint256
|
|
430
|
+
* @param {string | number} maxCollateral - uint256
|
|
431
|
+
* @param {string | number} collateralWeight - uint256
|
|
432
|
+
* @param {string | number} debtWeight - uint256
|
|
433
|
+
* @param {string | number} reserveFactor - uint256
|
|
395
434
|
* @returns {string} encode data
|
|
396
435
|
*/
|
|
397
|
-
export declare function encodeD3VaultAddNewToken(token: string, maxDeposit: string, maxCollateral: string, collateralWeight: string, debtWeight: string, reserveFactor: string):
|
|
436
|
+
export declare function encodeD3VaultAddNewToken(token: string, maxDeposit: string | number, maxCollateral: string | number, collateralWeight: string | number, debtWeight: string | number, reserveFactor: string | number): string;
|
|
398
437
|
/**
|
|
399
438
|
* encode addRouter
|
|
400
439
|
* @param {string} router - address
|
|
401
440
|
* @returns {string} encode data
|
|
402
441
|
*/
|
|
403
|
-
export declare function encodeD3VaultAddRouter(router: string):
|
|
442
|
+
export declare function encodeD3VaultAddRouter(router: string): string;
|
|
404
443
|
/**
|
|
405
444
|
* encode finishLiquidation
|
|
406
445
|
* @param {string} pool - address
|
|
407
446
|
* @returns {string} encode data
|
|
408
447
|
*/
|
|
409
|
-
export declare function encodeD3VaultFinishLiquidation(pool: string):
|
|
448
|
+
export declare function encodeD3VaultFinishLiquidation(pool: string): string;
|
|
410
449
|
/**
|
|
411
450
|
* encode finishPoolRemove
|
|
412
451
|
|
|
413
452
|
* @returns {string} encode data
|
|
414
453
|
*/
|
|
415
|
-
export declare function encodeD3VaultFinishPoolRemove():
|
|
454
|
+
export declare function encodeD3VaultFinishPoolRemove(): string;
|
|
416
455
|
/**
|
|
417
456
|
* encode liquidate
|
|
418
457
|
* @param {string} pool - address
|
|
419
458
|
* @param {string} collateral - address
|
|
420
|
-
* @param {string} collateralAmount - uint256
|
|
459
|
+
* @param {string | number} collateralAmount - uint256
|
|
421
460
|
* @param {string} debt - address
|
|
422
|
-
* @param {string} debtToCover - uint256
|
|
461
|
+
* @param {string | number} debtToCover - uint256
|
|
423
462
|
* @returns {string} encode data
|
|
424
463
|
*/
|
|
425
|
-
export declare function encodeD3VaultLiquidate(pool: string, collateral: string, collateralAmount: string, debt: string, debtToCover: string):
|
|
464
|
+
export declare function encodeD3VaultLiquidate(pool: string, collateral: string, collateralAmount: string | number, debt: string, debtToCover: string | number): string;
|
|
426
465
|
/**
|
|
427
466
|
* encode liquidateByDODO
|
|
428
467
|
* @param {string} pool - address
|
|
429
|
-
* @param {{fromToken: string; toToken: string; fromAmount: string}} order - tuple
|
|
468
|
+
* @param {{fromToken: string; toToken: string; fromAmount: string | number}} order - tuple
|
|
430
469
|
* @param {string} routeData - bytes
|
|
431
470
|
* @param {string} router - address
|
|
432
471
|
* @returns {string} encode data
|
|
@@ -434,167 +473,167 @@ export declare function encodeD3VaultLiquidate(pool: string, collateral: string,
|
|
|
434
473
|
export declare function encodeD3VaultLiquidateByDODO(pool: string, order: {
|
|
435
474
|
fromToken: string;
|
|
436
475
|
toToken: string;
|
|
437
|
-
fromAmount: string;
|
|
438
|
-
}, routeData: string, router: string):
|
|
476
|
+
fromAmount: string | number;
|
|
477
|
+
}, routeData: string, router: string): string;
|
|
439
478
|
/**
|
|
440
479
|
* encode pendingRemovePoolRepayAll
|
|
441
480
|
* @param {string} token - address
|
|
442
481
|
* @returns {string} encode data
|
|
443
482
|
*/
|
|
444
|
-
export declare function encodeD3VaultPendingRemovePoolRepayAll(token: string):
|
|
483
|
+
export declare function encodeD3VaultPendingRemovePoolRepayAll(token: string): string;
|
|
445
484
|
/**
|
|
446
485
|
* encode poolBorrow
|
|
447
486
|
* @param {string} token - address
|
|
448
|
-
* @param {string} amount - uint256
|
|
487
|
+
* @param {string | number} amount - uint256
|
|
449
488
|
* @returns {string} encode data
|
|
450
489
|
*/
|
|
451
|
-
export declare function encodeD3VaultPoolBorrow(token: string, amount: string):
|
|
490
|
+
export declare function encodeD3VaultPoolBorrow(token: string, amount: string | number): string;
|
|
452
491
|
/**
|
|
453
492
|
* encode poolRepay
|
|
454
493
|
* @param {string} token - address
|
|
455
|
-
* @param {string} amount - uint256
|
|
494
|
+
* @param {string | number} amount - uint256
|
|
456
495
|
* @returns {string} encode data
|
|
457
496
|
*/
|
|
458
|
-
export declare function encodeD3VaultPoolRepay(token: string, amount: string):
|
|
497
|
+
export declare function encodeD3VaultPoolRepay(token: string, amount: string | number): string;
|
|
459
498
|
/**
|
|
460
499
|
* encode poolRepayAll
|
|
461
500
|
* @param {string} token - address
|
|
462
501
|
* @returns {string} encode data
|
|
463
502
|
*/
|
|
464
|
-
export declare function encodeD3VaultPoolRepayAll(token: string):
|
|
503
|
+
export declare function encodeD3VaultPoolRepayAll(token: string): string;
|
|
465
504
|
/**
|
|
466
505
|
* encode removeD3Pool
|
|
467
506
|
* @param {string} pool - address
|
|
468
507
|
* @returns {string} encode data
|
|
469
508
|
*/
|
|
470
|
-
export declare function encodeD3VaultRemoveD3Pool(pool: string):
|
|
509
|
+
export declare function encodeD3VaultRemoveD3Pool(pool: string): string;
|
|
471
510
|
/**
|
|
472
511
|
* encode removeLiquidator
|
|
473
512
|
* @param {string} liquidator - address
|
|
474
513
|
* @returns {string} encode data
|
|
475
514
|
*/
|
|
476
|
-
export declare function encodeD3VaultRemoveLiquidator(liquidator: string):
|
|
515
|
+
export declare function encodeD3VaultRemoveLiquidator(liquidator: string): string;
|
|
477
516
|
/**
|
|
478
517
|
* encode removeRouter
|
|
479
518
|
* @param {string} router - address
|
|
480
519
|
* @returns {string} encode data
|
|
481
520
|
*/
|
|
482
|
-
export declare function encodeD3VaultRemoveRouter(router: string):
|
|
521
|
+
export declare function encodeD3VaultRemoveRouter(router: string): string;
|
|
483
522
|
/**
|
|
484
523
|
* encode renounceOwnership
|
|
485
524
|
|
|
486
525
|
* @returns {string} encode data
|
|
487
526
|
*/
|
|
488
|
-
export declare function encodeD3VaultRenounceOwnership():
|
|
527
|
+
export declare function encodeD3VaultRenounceOwnership(): string;
|
|
489
528
|
/**
|
|
490
529
|
* encode setCloneFactory
|
|
491
530
|
* @param {string} cloneFactory - address
|
|
492
531
|
* @returns {string} encode data
|
|
493
532
|
*/
|
|
494
|
-
export declare function encodeD3VaultSetCloneFactory(cloneFactory: string):
|
|
533
|
+
export declare function encodeD3VaultSetCloneFactory(cloneFactory: string): string;
|
|
495
534
|
/**
|
|
496
535
|
* encode setDTokenTemplate
|
|
497
536
|
* @param {string} dTokenTemplate - address
|
|
498
537
|
* @returns {string} encode data
|
|
499
538
|
*/
|
|
500
|
-
export declare function encodeD3VaultSetDTokenTemplate(dTokenTemplate: string):
|
|
539
|
+
export declare function encodeD3VaultSetDTokenTemplate(dTokenTemplate: string): string;
|
|
501
540
|
/**
|
|
502
541
|
* encode setDiscount
|
|
503
|
-
* @param {string} discount - uint256
|
|
542
|
+
* @param {string | number} discount - uint256
|
|
504
543
|
* @returns {string} encode data
|
|
505
544
|
*/
|
|
506
|
-
export declare function encodeD3VaultSetDiscount(discount: string):
|
|
545
|
+
export declare function encodeD3VaultSetDiscount(discount: string | number): string;
|
|
507
546
|
/**
|
|
508
547
|
* encode setIM
|
|
509
|
-
* @param {string} newIM - uint256
|
|
548
|
+
* @param {string | number} newIM - uint256
|
|
510
549
|
* @returns {string} encode data
|
|
511
550
|
*/
|
|
512
|
-
export declare function encodeD3VaultSetIM(newIM: string):
|
|
551
|
+
export declare function encodeD3VaultSetIM(newIM: string | number): string;
|
|
513
552
|
/**
|
|
514
553
|
* encode setMM
|
|
515
|
-
* @param {string} newMM - uint256
|
|
554
|
+
* @param {string | number} newMM - uint256
|
|
516
555
|
* @returns {string} encode data
|
|
517
556
|
*/
|
|
518
|
-
export declare function encodeD3VaultSetMM(newMM: string):
|
|
557
|
+
export declare function encodeD3VaultSetMM(newMM: string | number): string;
|
|
519
558
|
/**
|
|
520
559
|
* encode setMaintainer
|
|
521
560
|
* @param {string} maintainer - address
|
|
522
561
|
* @returns {string} encode data
|
|
523
562
|
*/
|
|
524
|
-
export declare function encodeD3VaultSetMaintainer(maintainer: string):
|
|
563
|
+
export declare function encodeD3VaultSetMaintainer(maintainer: string): string;
|
|
525
564
|
/**
|
|
526
565
|
* encode setNewD3Factory
|
|
527
566
|
* @param {string} newFactory - address
|
|
528
567
|
* @returns {string} encode data
|
|
529
568
|
*/
|
|
530
|
-
export declare function encodeD3VaultSetNewD3Factory(newFactory: string):
|
|
569
|
+
export declare function encodeD3VaultSetNewD3Factory(newFactory: string): string;
|
|
531
570
|
/**
|
|
532
571
|
* encode setNewD3PoolQuota
|
|
533
572
|
* @param {string} newQuota - address
|
|
534
573
|
* @returns {string} encode data
|
|
535
574
|
*/
|
|
536
|
-
export declare function encodeD3VaultSetNewD3PoolQuota(newQuota: string):
|
|
575
|
+
export declare function encodeD3VaultSetNewD3PoolQuota(newQuota: string): string;
|
|
537
576
|
/**
|
|
538
577
|
* encode setNewD3UserQuota
|
|
539
578
|
* @param {string} newQuota - address
|
|
540
579
|
* @returns {string} encode data
|
|
541
580
|
*/
|
|
542
|
-
export declare function encodeD3VaultSetNewD3UserQuota(newQuota: string):
|
|
581
|
+
export declare function encodeD3VaultSetNewD3UserQuota(newQuota: string): string;
|
|
543
582
|
/**
|
|
544
583
|
* encode setNewOracle
|
|
545
584
|
* @param {string} newOracle - address
|
|
546
585
|
* @returns {string} encode data
|
|
547
586
|
*/
|
|
548
|
-
export declare function encodeD3VaultSetNewOracle(newOracle: string):
|
|
587
|
+
export declare function encodeD3VaultSetNewOracle(newOracle: string): string;
|
|
549
588
|
/**
|
|
550
589
|
* encode setNewRateManager
|
|
551
590
|
* @param {string} newRateManager - address
|
|
552
591
|
* @returns {string} encode data
|
|
553
592
|
*/
|
|
554
|
-
export declare function encodeD3VaultSetNewRateManager(newRateManager: string):
|
|
593
|
+
export declare function encodeD3VaultSetNewRateManager(newRateManager: string): string;
|
|
555
594
|
/**
|
|
556
595
|
* encode setToken
|
|
557
596
|
* @param {string} token - address
|
|
558
|
-
* @param {string} maxDeposit - uint256
|
|
559
|
-
* @param {string} maxCollateral - uint256
|
|
560
|
-
* @param {string} collateralWeight - uint256
|
|
561
|
-
* @param {string} debtWeight - uint256
|
|
562
|
-
* @param {string} reserveFactor - uint256
|
|
597
|
+
* @param {string | number} maxDeposit - uint256
|
|
598
|
+
* @param {string | number} maxCollateral - uint256
|
|
599
|
+
* @param {string | number} collateralWeight - uint256
|
|
600
|
+
* @param {string | number} debtWeight - uint256
|
|
601
|
+
* @param {string | number} reserveFactor - uint256
|
|
563
602
|
* @returns {string} encode data
|
|
564
603
|
*/
|
|
565
|
-
export declare function encodeD3VaultSetToken(token: string, maxDeposit: string, maxCollateral: string, collateralWeight: string, debtWeight: string, reserveFactor: string):
|
|
604
|
+
export declare function encodeD3VaultSetToken(token: string, maxDeposit: string | number, maxCollateral: string | number, collateralWeight: string | number, debtWeight: string | number, reserveFactor: string | number): string;
|
|
566
605
|
/**
|
|
567
606
|
* encode startLiquidation
|
|
568
607
|
* @param {string} pool - address
|
|
569
608
|
* @returns {string} encode data
|
|
570
609
|
*/
|
|
571
|
-
export declare function encodeD3VaultStartLiquidation(pool: string):
|
|
610
|
+
export declare function encodeD3VaultStartLiquidation(pool: string): string;
|
|
572
611
|
/**
|
|
573
612
|
* encode transferOwnership
|
|
574
613
|
* @param {string} newOwner - address
|
|
575
614
|
* @returns {string} encode data
|
|
576
615
|
*/
|
|
577
|
-
export declare function encodeD3VaultTransferOwnership(newOwner: string):
|
|
616
|
+
export declare function encodeD3VaultTransferOwnership(newOwner: string): string;
|
|
578
617
|
/**
|
|
579
618
|
* encode userDeposit
|
|
580
619
|
* @param {string} user - address
|
|
581
620
|
* @param {string} token - address
|
|
582
621
|
* @returns {string} encode data
|
|
583
622
|
*/
|
|
584
|
-
export declare function encodeD3VaultUserDeposit(user: string, token: string):
|
|
623
|
+
export declare function encodeD3VaultUserDeposit(user: string, token: string): string;
|
|
585
624
|
/**
|
|
586
625
|
* encode userWithdraw
|
|
587
626
|
* @param {string} to - address
|
|
588
627
|
* @param {string} user - address
|
|
589
628
|
* @param {string} token - address
|
|
590
|
-
* @param {string} dTokenAmount - uint256
|
|
629
|
+
* @param {string | number} dTokenAmount - uint256
|
|
591
630
|
* @returns {string} encode data
|
|
592
631
|
*/
|
|
593
|
-
export declare function encodeD3VaultUserWithdraw(to: string, user: string, token: string, dTokenAmount: string):
|
|
632
|
+
export declare function encodeD3VaultUserWithdraw(to: string, user: string, token: string, dTokenAmount: string | number): string;
|
|
594
633
|
/**
|
|
595
634
|
* encode withdrawReserves
|
|
596
635
|
* @param {string} token - address
|
|
597
|
-
* @param {string} amount - uint256
|
|
636
|
+
* @param {string | number} amount - uint256
|
|
598
637
|
* @returns {string} encode data
|
|
599
638
|
*/
|
|
600
|
-
export declare function encodeD3VaultWithdrawReserves(token: string, amount: string):
|
|
639
|
+
export declare function encodeD3VaultWithdrawReserves(token: string, amount: string | number): string;
|