@dodoex/dodo-contract-request 1.6.0-alpha.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -27
- package/dist/types/contract/BuyoutModel.d.ts +12 -12
- package/dist/types/contract/CP.d.ts +80 -68
- package/dist/types/contract/CrowdPoolingFactory.d.ts +44 -38
- package/dist/types/contract/CustomERC20.d.ts +22 -22
- package/dist/types/contract/CustomMintableERC20.d.ts +22 -22
- package/dist/types/contract/D3Proxy.d.ts +8 -8
- package/dist/types/contract/D3Vault.d.ts +174 -96
- package/dist/types/contract/DODOApprove.d.ts +12 -12
- package/dist/types/contract/DODOApproveProxy.d.ts +14 -14
- package/dist/types/contract/DODOCalleeHelper.d.ts +2 -2
- package/dist/types/contract/DODOCirculationHelper.d.ts +14 -14
- package/dist/types/contract/DODOCpProxy.d.ts +6 -6
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +6 -6
- package/dist/types/contract/DODODppProxy.d.ts +6 -6
- package/dist/types/contract/DODODspProxy.d.ts +8 -8
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +6 -6
- package/dist/types/contract/DODOIncentive.d.ts +34 -22
- package/dist/types/contract/DODOMineV2Factory.d.ts +14 -14
- package/dist/types/contract/DODOMineV3Proxy.d.ts +12 -12
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +12 -12
- package/dist/types/contract/DODOMineV3Registry.d.ts +12 -12
- package/dist/types/contract/DODONFT.d.ts +28 -28
- package/dist/types/contract/DODONFT1155.d.ts +16 -16
- package/dist/types/contract/DODONFTApprove.d.ts +12 -12
- package/dist/types/contract/DODONFTPoolProxy.d.ts +20 -20
- package/dist/types/contract/DODONFTProxy.d.ts +24 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +20 -14
- package/dist/types/contract/DODONFTRouteHelper.d.ts +4 -4
- package/dist/types/contract/DODOSellHelper.d.ts +4 -4
- package/dist/types/contract/DODOStarterProxy.d.ts +4 -4
- package/dist/types/contract/DODOV1.d.ts +84 -78
- package/dist/types/contract/DODOV1Adapter.d.ts +2 -2
- package/dist/types/contract/DODOV1PmmHelper.d.ts +2 -2
- package/dist/types/contract/DODOV1Proxy.d.ts +2 -2
- package/dist/types/contract/DODOV2Proxy02.d.ts +26 -26
- package/dist/types/contract/DODOV2RouteHelper.d.ts +8 -8
- package/dist/types/contract/DPPAdvanced.d.ts +118 -54
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +14 -14
- package/dist/types/contract/DPPFactory.d.ts +34 -28
- package/dist/types/contract/DSP.d.ts +134 -70
- package/dist/types/contract/DSPFactory.d.ts +28 -22
- package/dist/types/contract/DVM.d.ts +120 -64
- package/dist/types/contract/DVMFactory.d.ts +28 -22
- package/dist/types/contract/ERC20.d.ts +12 -12
- package/dist/types/contract/ERC20Helper.d.ts +46 -8
- package/dist/types/contract/ERC20MineV3.d.ts +46 -26
- package/dist/types/contract/ERC20V3Factory.d.ts +30 -22
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +38 -20
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +152 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -20
- package/dist/types/contract/InitializableERC20.d.ts +14 -14
- package/dist/types/contract/LimitOrder.d.ts +20 -20
- package/dist/types/contract/LimitOrderBot.d.ts +12 -12
- package/dist/types/contract/MulticallWithValid.d.ts +14 -14
- package/dist/types/contract/PermissionManager.d.ts +8 -8
- package/dist/types/contract/UniswapV2Factory.d.ts +10 -10
- package/dist/types/contract/UniswapV2Pair.d.ts +46 -38
- package/dist/types/contract/UniswapV2Router02.d.ts +14 -14
- package/dist/types/contract/dodoTeam.d.ts +34 -28
- package/dist/types/contract/vDODOToken.d.ts +84 -60
- package/package.json +2 -2
- package/src/contract/BuyoutModel.ts +6 -6
- package/src/contract/CP.ts +40 -34
- package/src/contract/CrowdPoolingFactory.ts +22 -19
- package/src/contract/CustomERC20.ts +11 -11
- package/src/contract/CustomMintableERC20.ts +11 -11
- package/src/contract/D3Proxy.ts +4 -4
- package/src/contract/D3Vault.ts +87 -48
- package/src/contract/DODOApprove.ts +6 -6
- package/src/contract/DODOApproveProxy.ts +7 -7
- package/src/contract/DODOCalleeHelper.ts +1 -1
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +3 -3
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +3 -3
- package/src/contract/DODODppProxy.ts +3 -3
- package/src/contract/DODODspProxy.ts +4 -4
- package/src/contract/DODODspProxyWithoutGSP.ts +3 -3
- package/src/contract/DODOIncentive.ts +17 -11
- package/src/contract/DODOMineV2Factory.ts +7 -7
- package/src/contract/DODOMineV3Proxy.ts +6 -6
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +6 -6
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +14 -14
- package/src/contract/DODONFT1155.ts +8 -8
- package/src/contract/DODONFTApprove.ts +6 -6
- package/src/contract/DODONFTPoolProxy.ts +10 -10
- package/src/contract/DODONFTProxy.ts +12 -12
- package/src/contract/DODONFTRegistry.ts +10 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +2 -2
- package/src/contract/DODOV1.ts +42 -39
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +1 -1
- package/src/contract/DODOV2Proxy02.ts +13 -13
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +51 -27
- package/src/contract/DPPAdvancedAdmin.ts +7 -7
- package/src/contract/DPPFactory.ts +17 -14
- package/src/contract/DSP.ts +59 -35
- package/src/contract/DSPFactory.ts +14 -11
- package/src/contract/DVM.ts +52 -32
- package/src/contract/DVMFactory.ts +14 -11
- package/src/contract/ERC20.ts +6 -6
- package/src/contract/ERC20Helper.ts +23 -4
- package/src/contract/ERC20MineV3.ts +23 -13
- package/src/contract/ERC20V3Factory.ts +15 -11
- package/src/contract/FeeRateDIP3Impl.ts +19 -10
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +68 -41
- package/src/contract/GSPFactory.ts +13 -10
- package/src/contract/InitializableERC20.ts +7 -7
- package/src/contract/LimitOrder.ts +10 -10
- package/src/contract/LimitOrderBot.ts +6 -6
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +5 -5
- package/src/contract/UniswapV2Pair.ts +23 -19
- package/src/contract/UniswapV2Router02.ts +7 -7
- package/src/contract/dodoTeam.ts +17 -14
- package/src/contract/vDODOToken.ts +42 -30
|
@@ -10,7 +10,7 @@ import { contractRequests } from '../contractRequests';
|
|
|
10
10
|
* @param {string} __to - string
|
|
11
11
|
* @returns {string} __output0 - address
|
|
12
12
|
*/
|
|
13
|
-
export function fetchCustomMintableERC20_NEW_OWNER_(chainId: number, __to: string) {
|
|
13
|
+
export function fetchCustomMintableERC20_NEW_OWNER_(chainId: number, __to: string): Promise<string> {
|
|
14
14
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
15
15
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -31,7 +31,7 @@ export function getFetchCustomMintableERC20_NEW_OWNER_QueryOptions(chainId: numb
|
|
|
31
31
|
* @param {string} __to - string
|
|
32
32
|
* @returns {string} __output0 - address
|
|
33
33
|
*/
|
|
34
|
-
export function fetchCustomMintableERC20_OWNER_(chainId: number, __to: string) {
|
|
34
|
+
export function fetchCustomMintableERC20_OWNER_(chainId: number, __to: string): Promise<string> {
|
|
35
35
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
36
36
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
37
37
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -54,7 +54,7 @@ export function getFetchCustomMintableERC20_OWNER_QueryOptions(chainId: number |
|
|
|
54
54
|
* @param {string} spender - address
|
|
55
55
|
* @returns {bigint} __output0 - uint256
|
|
56
56
|
*/
|
|
57
|
-
export function fetchCustomMintableERC20Allowance(chainId: number, __to: string, owner: string, spender: string) {
|
|
57
|
+
export function fetchCustomMintableERC20Allowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint> {
|
|
58
58
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [owner,spender]);
|
|
59
59
|
const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
|
|
60
60
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -76,7 +76,7 @@ export function getFetchCustomMintableERC20AllowanceQueryOptions(chainId: number
|
|
|
76
76
|
* @param {string} owner - address
|
|
77
77
|
* @returns {bigint} balance - uint256
|
|
78
78
|
*/
|
|
79
|
-
export function fetchCustomMintableERC20BalanceOf(chainId: number, __to: string, owner: string) {
|
|
79
|
+
export function fetchCustomMintableERC20BalanceOf(chainId: number, __to: string, owner: string): Promise<bigint> {
|
|
80
80
|
const __encodeData = defaultAbiCoder.encode(["address"], [owner]);
|
|
81
81
|
const __data = hexlify(concat(['0x70a08231', __encodeData]));
|
|
82
82
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
|
|
@@ -97,7 +97,7 @@ export function getFetchCustomMintableERC20BalanceOfQueryOptions(chainId: number
|
|
|
97
97
|
* @param {string} __to - string
|
|
98
98
|
* @returns {bigint} __output0 - uint8
|
|
99
99
|
*/
|
|
100
|
-
export function fetchCustomMintableERC20Decimals(chainId: number, __to: string) {
|
|
100
|
+
export function fetchCustomMintableERC20Decimals(chainId: number, __to: string): Promise<bigint> {
|
|
101
101
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
102
102
|
const __data = hexlify(concat(['0x313ce567', __encodeData]));
|
|
103
103
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
|
|
@@ -118,7 +118,7 @@ export function getFetchCustomMintableERC20DecimalsQueryOptions(chainId: number
|
|
|
118
118
|
* @param {string} __to - string
|
|
119
119
|
* @returns {string} __output0 - string
|
|
120
120
|
*/
|
|
121
|
-
export function fetchCustomMintableERC20Name(chainId: number, __to: string) {
|
|
121
|
+
export function fetchCustomMintableERC20Name(chainId: number, __to: string): Promise<string> {
|
|
122
122
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
123
123
|
const __data = hexlify(concat(['0x06fdde03', __encodeData]));
|
|
124
124
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -139,7 +139,7 @@ export function getFetchCustomMintableERC20NameQueryOptions(chainId: number | un
|
|
|
139
139
|
* @param {string} __to - string
|
|
140
140
|
* @returns {string} __output0 - string
|
|
141
141
|
*/
|
|
142
|
-
export function fetchCustomMintableERC20Symbol(chainId: number, __to: string) {
|
|
142
|
+
export function fetchCustomMintableERC20Symbol(chainId: number, __to: string): Promise<string> {
|
|
143
143
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
144
144
|
const __data = hexlify(concat(['0x95d89b41', __encodeData]));
|
|
145
145
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -160,7 +160,7 @@ export function getFetchCustomMintableERC20SymbolQueryOptions(chainId: number |
|
|
|
160
160
|
* @param {string} __to - string
|
|
161
161
|
* @returns {string} __output0 - address
|
|
162
162
|
*/
|
|
163
|
-
export function fetchCustomMintableERC20Team(chainId: number, __to: string) {
|
|
163
|
+
export function fetchCustomMintableERC20Team(chainId: number, __to: string): Promise<string> {
|
|
164
164
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
165
165
|
const __data = hexlify(concat(['0x85f2aef2', __encodeData]));
|
|
166
166
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -181,7 +181,7 @@ export function getFetchCustomMintableERC20TeamQueryOptions(chainId: number | un
|
|
|
181
181
|
* @param {string} __to - string
|
|
182
182
|
* @returns {bigint} __output0 - uint256
|
|
183
183
|
*/
|
|
184
|
-
export function fetchCustomMintableERC20TotalSupply(chainId: number, __to: string) {
|
|
184
|
+
export function fetchCustomMintableERC20TotalSupply(chainId: number, __to: string): Promise<bigint> {
|
|
185
185
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
186
186
|
const __data = hexlify(concat(['0x18160ddd', __encodeData]));
|
|
187
187
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -202,7 +202,7 @@ export function getFetchCustomMintableERC20TotalSupplyQueryOptions(chainId: numb
|
|
|
202
202
|
* @param {string} __to - string
|
|
203
203
|
* @returns {bigint} __output0 - uint256
|
|
204
204
|
*/
|
|
205
|
-
export function fetchCustomMintableERC20TradeBurnRatio(chainId: number, __to: string) {
|
|
205
|
+
export function fetchCustomMintableERC20TradeBurnRatio(chainId: number, __to: string): Promise<bigint> {
|
|
206
206
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
207
207
|
const __data = hexlify(concat(['0xe59850f7', __encodeData]));
|
|
208
208
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -223,7 +223,7 @@ export function getFetchCustomMintableERC20TradeBurnRatioQueryOptions(chainId: n
|
|
|
223
223
|
* @param {string} __to - string
|
|
224
224
|
* @returns {bigint} __output0 - uint256
|
|
225
225
|
*/
|
|
226
|
-
export function fetchCustomMintableERC20TradeFeeRatio(chainId: number, __to: string) {
|
|
226
|
+
export function fetchCustomMintableERC20TradeFeeRatio(chainId: number, __to: string): Promise<bigint> {
|
|
227
227
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
228
228
|
const __data = hexlify(concat(['0x870c66d6', __encodeData]));
|
|
229
229
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
package/src/contract/D3Proxy.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function getD3ProxyContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {string} __output0 - address
|
|
16
16
|
*/
|
|
17
|
-
export function fetchD3Proxy_D3_VAULT_(chainId: number) {
|
|
17
|
+
export function fetchD3Proxy_D3_VAULT_(chainId: number): Promise<string> {
|
|
18
18
|
const __to = getD3ProxyContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchD3Proxy_D3_VAULT_QueryOptions(chainId: number | undefine
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {string} __output0 - address
|
|
38
38
|
*/
|
|
39
|
-
export function fetchD3Proxy_DODO_APPROVE_PROXY_(chainId: number) {
|
|
39
|
+
export function fetchD3Proxy_DODO_APPROVE_PROXY_(chainId: number): Promise<string> {
|
|
40
40
|
const __to = getD3ProxyContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchD3Proxy_DODO_APPROVE_PROXY_QueryOptions(chainId: number
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export function fetchD3Proxy_ETH_ADDRESS_(chainId: number) {
|
|
61
|
+
export function fetchD3Proxy_ETH_ADDRESS_(chainId: number): Promise<string> {
|
|
62
62
|
const __to = getD3ProxyContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchD3Proxy_ETH_ADDRESS_QueryOptions(chainId: number | undef
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchD3Proxy_WETH_(chainId: number) {
|
|
83
|
+
export function fetchD3Proxy_WETH_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getD3ProxyContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
package/src/contract/D3Vault.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function getD3VaultContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {bigint} __output0 - uint256
|
|
16
16
|
*/
|
|
17
|
-
export function fetchD3VaultDISCOUNT(chainId: number) {
|
|
17
|
+
export function fetchD3VaultDISCOUNT(chainId: number): Promise<bigint> {
|
|
18
18
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchD3VaultDISCOUNTQueryOptions(chainId: number | undefined)
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {bigint} __output0 - uint256
|
|
38
38
|
*/
|
|
39
|
-
export function fetchD3VaultIM(chainId: number) {
|
|
39
|
+
export function fetchD3VaultIM(chainId: number): Promise<bigint> {
|
|
40
40
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchD3VaultIMQueryOptions(chainId: number | undefined) {
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {bigint} __output0 - uint256
|
|
60
60
|
*/
|
|
61
|
-
export function fetchD3VaultMM(chainId: number) {
|
|
61
|
+
export function fetchD3VaultMM(chainId: number): Promise<bigint> {
|
|
62
62
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchD3VaultMMQueryOptions(chainId: number | undefined) {
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchD3Vault_CLONE_FACTORY_(chainId: number) {
|
|
83
|
+
export function fetchD3Vault_CLONE_FACTORY_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -102,7 +102,7 @@ export function getFetchD3Vault_CLONE_FACTORY_QueryOptions(chainId: number | und
|
|
|
102
102
|
* @param {number} chainId - number
|
|
103
103
|
* @returns {string} __output0 - address
|
|
104
104
|
*/
|
|
105
|
-
export function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number) {
|
|
105
|
+
export function fetchD3Vault_D3TOKEN_LOGIC_(chainId: number): Promise<string> {
|
|
106
106
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
107
107
|
|
|
108
108
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -124,7 +124,7 @@ export function getFetchD3Vault_D3TOKEN_LOGIC_QueryOptions(chainId: number | und
|
|
|
124
124
|
* @param {number} chainId - number
|
|
125
125
|
* @returns {string} __output0 - address
|
|
126
126
|
*/
|
|
127
|
-
export function fetchD3Vault_D3_FACTORY_(chainId: number) {
|
|
127
|
+
export function fetchD3Vault_D3_FACTORY_(chainId: number): Promise<string> {
|
|
128
128
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
129
129
|
|
|
130
130
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -146,7 +146,7 @@ export function getFetchD3Vault_D3_FACTORY_QueryOptions(chainId: number | undefi
|
|
|
146
146
|
* @param {number} chainId - number
|
|
147
147
|
* @returns {string} __output0 - address
|
|
148
148
|
*/
|
|
149
|
-
export function fetchD3Vault_MAINTAINER_(chainId: number) {
|
|
149
|
+
export function fetchD3Vault_MAINTAINER_(chainId: number): Promise<string> {
|
|
150
150
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
151
151
|
|
|
152
152
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -168,7 +168,7 @@ export function getFetchD3Vault_MAINTAINER_QueryOptions(chainId: number | undefi
|
|
|
168
168
|
* @param {number} chainId - number
|
|
169
169
|
* @returns {string} __output0 - address
|
|
170
170
|
*/
|
|
171
|
-
export function fetchD3Vault_ORACLE_(chainId: number) {
|
|
171
|
+
export function fetchD3Vault_ORACLE_(chainId: number): Promise<string> {
|
|
172
172
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
173
173
|
|
|
174
174
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -190,7 +190,7 @@ export function getFetchD3Vault_ORACLE_QueryOptions(chainId: number | undefined)
|
|
|
190
190
|
* @param {number} chainId - number
|
|
191
191
|
* @returns {string} __output0 - address
|
|
192
192
|
*/
|
|
193
|
-
export function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number) {
|
|
193
|
+
export function fetchD3Vault_PENDING_REMOVE_POOL_(chainId: number): Promise<string> {
|
|
194
194
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
195
195
|
|
|
196
196
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -212,7 +212,7 @@ export function getFetchD3Vault_PENDING_REMOVE_POOL_QueryOptions(chainId: number
|
|
|
212
212
|
* @param {number} chainId - number
|
|
213
213
|
* @returns {string} __output0 - address
|
|
214
214
|
*/
|
|
215
|
-
export function fetchD3Vault_POOL_QUOTA_(chainId: number) {
|
|
215
|
+
export function fetchD3Vault_POOL_QUOTA_(chainId: number): Promise<string> {
|
|
216
216
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
217
217
|
|
|
218
218
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -234,7 +234,7 @@ export function getFetchD3Vault_POOL_QUOTA_QueryOptions(chainId: number | undefi
|
|
|
234
234
|
* @param {number} chainId - number
|
|
235
235
|
* @returns {string} __output0 - address
|
|
236
236
|
*/
|
|
237
|
-
export function fetchD3Vault_RATE_MANAGER_(chainId: number) {
|
|
237
|
+
export function fetchD3Vault_RATE_MANAGER_(chainId: number): Promise<string> {
|
|
238
238
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
239
239
|
|
|
240
240
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -256,7 +256,7 @@ export function getFetchD3Vault_RATE_MANAGER_QueryOptions(chainId: number | unde
|
|
|
256
256
|
* @param {number} chainId - number
|
|
257
257
|
* @returns {string} __output0 - address
|
|
258
258
|
*/
|
|
259
|
-
export function fetchD3Vault_USER_QUOTA_(chainId: number) {
|
|
259
|
+
export function fetchD3Vault_USER_QUOTA_(chainId: number): Promise<string> {
|
|
260
260
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
261
261
|
|
|
262
262
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -279,7 +279,7 @@ export function getFetchD3Vault_USER_QUOTA_QueryOptions(chainId: number | undefi
|
|
|
279
279
|
* @param {string} __input1 - address
|
|
280
280
|
* @returns {bigint} __output0 - uint256
|
|
281
281
|
*/
|
|
282
|
-
export function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: string) {
|
|
282
|
+
export function fetchD3VaultAccrualTimestampMap(chainId: number, __input1: string): Promise<bigint> {
|
|
283
283
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
284
284
|
|
|
285
285
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -305,7 +305,12 @@ export function getFetchD3VaultAccrualTimestampMapQueryOptions(chainId: number |
|
|
|
305
305
|
* @returns {bigint} borrowIndexNew - uint256
|
|
306
306
|
* @returns {bigint} accrualTime - uint256
|
|
307
307
|
*/
|
|
308
|
-
export function fetchD3VaultAccrueInterestForRead(chainId: number, token: string) {
|
|
308
|
+
export function fetchD3VaultAccrueInterestForRead(chainId: number, token: string): Promise<{
|
|
309
|
+
totalBorrowsNew: bigint;
|
|
310
|
+
totalReservesNew: bigint;
|
|
311
|
+
borrowIndexNew: bigint;
|
|
312
|
+
accrualTime: bigint;
|
|
313
|
+
}> {
|
|
309
314
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
310
315
|
|
|
311
316
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -333,7 +338,7 @@ export function getFetchD3VaultAccrueInterestForReadQueryOptions(chainId: number
|
|
|
333
338
|
* @param {string} __input1 - address
|
|
334
339
|
* @returns {boolean} __output0 - bool
|
|
335
340
|
*/
|
|
336
|
-
export function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string) {
|
|
341
|
+
export function fetchD3VaultAllPoolAddrMap(chainId: number, __input1: string): Promise<boolean> {
|
|
337
342
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
338
343
|
|
|
339
344
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -356,7 +361,7 @@ export function getFetchD3VaultAllPoolAddrMapQueryOptions(chainId: number | unde
|
|
|
356
361
|
* @param {string} __input1 - address
|
|
357
362
|
* @returns {boolean} __output0 - bool
|
|
358
363
|
*/
|
|
359
|
-
export function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string) {
|
|
364
|
+
export function fetchD3VaultAllowedLiquidator(chainId: number, __input1: string): Promise<boolean> {
|
|
360
365
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
361
366
|
|
|
362
367
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -379,7 +384,7 @@ export function getFetchD3VaultAllowedLiquidatorQueryOptions(chainId: number | u
|
|
|
379
384
|
* @param {string} __input1 - address
|
|
380
385
|
* @returns {boolean} __output0 - bool
|
|
381
386
|
*/
|
|
382
|
-
export function fetchD3VaultAllowedRouter(chainId: number, __input1: string) {
|
|
387
|
+
export function fetchD3VaultAllowedRouter(chainId: number, __input1: string): Promise<boolean> {
|
|
383
388
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
384
389
|
|
|
385
390
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -413,7 +418,20 @@ export function getFetchD3VaultAllowedRouterQueryOptions(chainId: number | undef
|
|
|
413
418
|
* @returns {bigint} collateralWeight - uint256
|
|
414
419
|
* @returns {bigint} debtWeight - uint256
|
|
415
420
|
*/
|
|
416
|
-
export function fetchD3VaultAssetInfo(chainId: number, __input1: string) {
|
|
421
|
+
export function fetchD3VaultAssetInfo(chainId: number, __input1: string): Promise<{
|
|
422
|
+
dToken: string;
|
|
423
|
+
balance: bigint;
|
|
424
|
+
totalBorrows: bigint;
|
|
425
|
+
borrowIndex: bigint;
|
|
426
|
+
accrualTime: bigint;
|
|
427
|
+
totalReserves: bigint;
|
|
428
|
+
withdrawnReserves: bigint;
|
|
429
|
+
reserveFactor: bigint;
|
|
430
|
+
maxDepositAmount: bigint;
|
|
431
|
+
maxCollateralAmount: bigint;
|
|
432
|
+
collateralWeight: bigint;
|
|
433
|
+
debtWeight: bigint;
|
|
434
|
+
}> {
|
|
417
435
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
418
436
|
|
|
419
437
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -449,7 +467,7 @@ export function getFetchD3VaultAssetInfoQueryOptions(chainId: number | undefined
|
|
|
449
467
|
* @param {string} pool - address
|
|
450
468
|
* @returns {boolean} __output0 - bool
|
|
451
469
|
*/
|
|
452
|
-
export function fetchD3VaultCheckBadDebt(chainId: number, pool: string) {
|
|
470
|
+
export function fetchD3VaultCheckBadDebt(chainId: number, pool: string): Promise<boolean> {
|
|
453
471
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
454
472
|
|
|
455
473
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -472,7 +490,7 @@ export function getFetchD3VaultCheckBadDebtQueryOptions(chainId: number | undefi
|
|
|
472
490
|
* @param {string} pool - address
|
|
473
491
|
* @returns {boolean} __output0 - bool
|
|
474
492
|
*/
|
|
475
|
-
export function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: string) {
|
|
493
|
+
export function fetchD3VaultCheckBadDebtAfterAccrue(chainId: number, pool: string): Promise<boolean> {
|
|
476
494
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
477
495
|
|
|
478
496
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -495,7 +513,7 @@ export function getFetchD3VaultCheckBadDebtAfterAccrueQueryOptions(chainId: numb
|
|
|
495
513
|
* @param {string} pool - address
|
|
496
514
|
* @returns {boolean} __output0 - bool
|
|
497
515
|
*/
|
|
498
|
-
export function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string) {
|
|
516
|
+
export function fetchD3VaultCheckBorrowSafe(chainId: number, pool: string): Promise<boolean> {
|
|
499
517
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
500
518
|
|
|
501
519
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -518,7 +536,7 @@ export function getFetchD3VaultCheckBorrowSafeQueryOptions(chainId: number | und
|
|
|
518
536
|
* @param {string} pool - address
|
|
519
537
|
* @returns {boolean} __output0 - bool
|
|
520
538
|
*/
|
|
521
|
-
export function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string) {
|
|
539
|
+
export function fetchD3VaultCheckCanBeLiquidated(chainId: number, pool: string): Promise<boolean> {
|
|
522
540
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
523
541
|
|
|
524
542
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -541,7 +559,7 @@ export function getFetchD3VaultCheckCanBeLiquidatedQueryOptions(chainId: number
|
|
|
541
559
|
* @param {string} pool - address
|
|
542
560
|
* @returns {boolean} __output0 - bool
|
|
543
561
|
*/
|
|
544
|
-
export function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, pool: string) {
|
|
562
|
+
export function fetchD3VaultCheckCanBeLiquidatedAfterAccrue(chainId: number, pool: string): Promise<boolean> {
|
|
545
563
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
546
564
|
|
|
547
565
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -564,7 +582,7 @@ export function getFetchD3VaultCheckCanBeLiquidatedAfterAccrueQueryOptions(chain
|
|
|
564
582
|
* @param {string} pool - address
|
|
565
583
|
* @returns {boolean} __output0 - bool
|
|
566
584
|
*/
|
|
567
|
-
export function fetchD3VaultCheckSafe(chainId: number, pool: string) {
|
|
585
|
+
export function fetchD3VaultCheckSafe(chainId: number, pool: string): Promise<boolean> {
|
|
568
586
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
569
587
|
|
|
570
588
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -588,7 +606,7 @@ export function getFetchD3VaultCheckSafeQueryOptions(chainId: number | undefined
|
|
|
588
606
|
* @param {number} __input2 - uint256
|
|
589
607
|
* @returns {string} __output0 - address
|
|
590
608
|
*/
|
|
591
|
-
export function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __input2: number) {
|
|
609
|
+
export function fetchD3VaultCreatorPoolMap(chainId: number, __input1: string, __input2: number): Promise<string> {
|
|
592
610
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
593
611
|
|
|
594
612
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [__input1,__input2]);
|
|
@@ -621,7 +639,19 @@ export function getFetchD3VaultCreatorPoolMapQueryOptions(chainId: number | unde
|
|
|
621
639
|
* @returns {bigint} withdrawnReserves - uint256
|
|
622
640
|
* @returns {bigint} balance - uint256
|
|
623
641
|
*/
|
|
624
|
-
export function fetchD3VaultGetAssetInfo(chainId: number, token: string) {
|
|
642
|
+
export function fetchD3VaultGetAssetInfo(chainId: number, token: string): Promise<{
|
|
643
|
+
dToken: string;
|
|
644
|
+
totalBorrows: bigint;
|
|
645
|
+
totalReserves: bigint;
|
|
646
|
+
reserveFactor: bigint;
|
|
647
|
+
borrowIndex: bigint;
|
|
648
|
+
accrualTime: bigint;
|
|
649
|
+
maxDepositAmount: bigint;
|
|
650
|
+
collateralWeight: bigint;
|
|
651
|
+
debtWeight: bigint;
|
|
652
|
+
withdrawnReserves: bigint;
|
|
653
|
+
balance: bigint;
|
|
654
|
+
}> {
|
|
625
655
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
626
656
|
|
|
627
657
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -658,7 +688,10 @@ export function getFetchD3VaultGetAssetInfoQueryOptions(chainId: number | undefi
|
|
|
658
688
|
* @returns {bigint} __output0 - uint256
|
|
659
689
|
* @returns {bigint} __output1 - uint256
|
|
660
690
|
*/
|
|
661
|
-
export function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string, token: string) {
|
|
691
|
+
export function fetchD3VaultGetBalanceAndBorrows(chainId: number, pool: string, token: string): Promise<{
|
|
692
|
+
__output0: bigint;
|
|
693
|
+
__output1: bigint;
|
|
694
|
+
}> {
|
|
662
695
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
663
696
|
|
|
664
697
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [pool,token]);
|
|
@@ -684,7 +717,7 @@ export function getFetchD3VaultGetBalanceAndBorrowsQueryOptions(chainId: number
|
|
|
684
717
|
* @param {string} token - address
|
|
685
718
|
* @returns {bigint} rate - uint256
|
|
686
719
|
*/
|
|
687
|
-
export function fetchD3VaultGetBorrowRate(chainId: number, token: string) {
|
|
720
|
+
export function fetchD3VaultGetBorrowRate(chainId: number, token: string): Promise<bigint> {
|
|
688
721
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
689
722
|
|
|
690
723
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -707,7 +740,7 @@ export function getFetchD3VaultGetBorrowRateQueryOptions(chainId: number | undef
|
|
|
707
740
|
* @param {string} token - address
|
|
708
741
|
* @returns {bigint} __output0 - uint256
|
|
709
742
|
*/
|
|
710
|
-
export function fetchD3VaultGetCash(chainId: number, token: string) {
|
|
743
|
+
export function fetchD3VaultGetCash(chainId: number, token: string): Promise<bigint> {
|
|
711
744
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
712
745
|
|
|
713
746
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -730,7 +763,7 @@ export function getFetchD3VaultGetCashQueryOptions(chainId: number | undefined,
|
|
|
730
763
|
* @param {string} pool - address
|
|
731
764
|
* @returns {bigint} __output0 - uint256
|
|
732
765
|
*/
|
|
733
|
-
export function fetchD3VaultGetCollateralRatio(chainId: number, pool: string) {
|
|
766
|
+
export function fetchD3VaultGetCollateralRatio(chainId: number, pool: string): Promise<bigint> {
|
|
734
767
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
735
768
|
|
|
736
769
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -753,7 +786,7 @@ export function getFetchD3VaultGetCollateralRatioQueryOptions(chainId: number |
|
|
|
753
786
|
* @param {string} pool - address
|
|
754
787
|
* @returns {bigint} __output0 - uint256
|
|
755
788
|
*/
|
|
756
|
-
export function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: string) {
|
|
789
|
+
export function fetchD3VaultGetCollateralRatioBorrow(chainId: number, pool: string): Promise<bigint> {
|
|
757
790
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
758
791
|
|
|
759
792
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -777,7 +810,7 @@ export function getFetchD3VaultGetCollateralRatioBorrowQueryOptions(chainId: num
|
|
|
777
810
|
* @param {number} t - uint256
|
|
778
811
|
* @returns {bigint} __output0 - uint256
|
|
779
812
|
*/
|
|
780
|
-
export function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number, t: number) {
|
|
813
|
+
export function fetchD3VaultGetCompoundInterestRate(chainId: number, r: number, t: number): Promise<bigint> {
|
|
781
814
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
782
815
|
|
|
783
816
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256"], [r,t]);
|
|
@@ -802,7 +835,10 @@ export function getFetchD3VaultGetCompoundInterestRateQueryOptions(chainId: numb
|
|
|
802
835
|
* @returns {bigint} cumulativeRate - uint256
|
|
803
836
|
* @returns {bigint} currentAmount - uint256
|
|
804
837
|
*/
|
|
805
|
-
export function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: string, token: string) {
|
|
838
|
+
export function fetchD3VaultGetCumulativeBorrowRate(chainId: number, pool: string, token: string): Promise<{
|
|
839
|
+
cumulativeRate: bigint;
|
|
840
|
+
currentAmount: bigint;
|
|
841
|
+
}> {
|
|
806
842
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
807
843
|
|
|
808
844
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [pool,token]);
|
|
@@ -828,7 +864,7 @@ export function getFetchD3VaultGetCumulativeBorrowRateQueryOptions(chainId: numb
|
|
|
828
864
|
* @param {string} token - address
|
|
829
865
|
* @returns {bigint} exchangeRate - uint256
|
|
830
866
|
*/
|
|
831
|
-
export function fetchD3VaultGetExchangeRate(chainId: number, token: string) {
|
|
867
|
+
export function fetchD3VaultGetExchangeRate(chainId: number, token: string): Promise<bigint> {
|
|
832
868
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
833
869
|
|
|
834
870
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -851,7 +887,10 @@ export function getFetchD3VaultGetExchangeRateQueryOptions(chainId: number | und
|
|
|
851
887
|
* @returns {bigint} __output0 - uint256
|
|
852
888
|
* @returns {bigint} __output1 - uint256
|
|
853
889
|
*/
|
|
854
|
-
export function fetchD3VaultGetIMMM(chainId: number) {
|
|
890
|
+
export function fetchD3VaultGetIMMM(chainId: number): Promise<{
|
|
891
|
+
__output0: bigint;
|
|
892
|
+
__output1: bigint;
|
|
893
|
+
}> {
|
|
855
894
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
856
895
|
|
|
857
896
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -877,7 +916,7 @@ export function getFetchD3VaultGetIMMMQueryOptions(chainId: number | undefined)
|
|
|
877
916
|
* @param {string} token - address
|
|
878
917
|
* @returns {bigint} borrowIndex - uint256
|
|
879
918
|
*/
|
|
880
|
-
export function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string) {
|
|
919
|
+
export function fetchD3VaultGetLatestBorrowIndex(chainId: number, token: string): Promise<bigint> {
|
|
881
920
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
882
921
|
|
|
883
922
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -901,7 +940,7 @@ export function getFetchD3VaultGetLatestBorrowIndexQueryOptions(chainId: number
|
|
|
901
940
|
* @param {string} token - address
|
|
902
941
|
* @returns {bigint} amount - uint256
|
|
903
942
|
*/
|
|
904
|
-
export function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, token: string) {
|
|
943
|
+
export function fetchD3VaultGetPoolBorrowAmount(chainId: number, pool: string, token: string): Promise<bigint> {
|
|
905
944
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
906
945
|
|
|
907
946
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [pool,token]);
|
|
@@ -925,7 +964,7 @@ export function getFetchD3VaultGetPoolBorrowAmountQueryOptions(chainId: number |
|
|
|
925
964
|
* @param {string} token - address
|
|
926
965
|
* @returns {bigint} leftQuota - uint256
|
|
927
966
|
*/
|
|
928
|
-
export function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, token: string) {
|
|
967
|
+
export function fetchD3VaultGetPoolLeftQuota(chainId: number, pool: string, token: string): Promise<bigint> {
|
|
929
968
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
930
969
|
|
|
931
970
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [pool,token]);
|
|
@@ -948,7 +987,7 @@ export function getFetchD3VaultGetPoolLeftQuotaQueryOptions(chainId: number | un
|
|
|
948
987
|
* @param {string} token - address
|
|
949
988
|
* @returns {bigint} __output0 - uint256
|
|
950
989
|
*/
|
|
951
|
-
export function fetchD3VaultGetReservesInVault(chainId: number, token: string) {
|
|
990
|
+
export function fetchD3VaultGetReservesInVault(chainId: number, token: string): Promise<bigint> {
|
|
952
991
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
953
992
|
|
|
954
993
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -970,7 +1009,7 @@ export function getFetchD3VaultGetReservesInVaultQueryOptions(chainId: number |
|
|
|
970
1009
|
* @param {number} chainId - number
|
|
971
1010
|
* @returns {Array<string>} __output0 - address[]
|
|
972
1011
|
*/
|
|
973
|
-
export function fetchD3VaultGetTokenList(chainId: number) {
|
|
1012
|
+
export function fetchD3VaultGetTokenList(chainId: number): Promise<Array<string>> {
|
|
974
1013
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
975
1014
|
|
|
976
1015
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -993,7 +1032,7 @@ export function getFetchD3VaultGetTokenListQueryOptions(chainId: number | undefi
|
|
|
993
1032
|
* @param {string} pool - address
|
|
994
1033
|
* @returns {bigint} totalValue - uint256
|
|
995
1034
|
*/
|
|
996
|
-
export function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string) {
|
|
1035
|
+
export function fetchD3VaultGetTotalAssetsValue(chainId: number, pool: string): Promise<bigint> {
|
|
997
1036
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
998
1037
|
|
|
999
1038
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -1016,7 +1055,7 @@ export function getFetchD3VaultGetTotalAssetsValueQueryOptions(chainId: number |
|
|
|
1016
1055
|
* @param {string} token - address
|
|
1017
1056
|
* @returns {bigint} __output0 - uint256
|
|
1018
1057
|
*/
|
|
1019
|
-
export function fetchD3VaultGetTotalBorrows(chainId: number, token: string) {
|
|
1058
|
+
export function fetchD3VaultGetTotalBorrows(chainId: number, token: string): Promise<bigint> {
|
|
1020
1059
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1021
1060
|
|
|
1022
1061
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -1039,7 +1078,7 @@ export function getFetchD3VaultGetTotalBorrowsQueryOptions(chainId: number | und
|
|
|
1039
1078
|
* @param {string} pool - address
|
|
1040
1079
|
* @returns {bigint} totalDebt - uint256
|
|
1041
1080
|
*/
|
|
1042
|
-
export function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string) {
|
|
1081
|
+
export function fetchD3VaultGetTotalDebtValue(chainId: number, pool: string): Promise<bigint> {
|
|
1043
1082
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1044
1083
|
|
|
1045
1084
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
@@ -1062,7 +1101,7 @@ export function getFetchD3VaultGetTotalDebtValueQueryOptions(chainId: number | u
|
|
|
1062
1101
|
* @param {string} token - address
|
|
1063
1102
|
* @returns {bigint} __output0 - uint256
|
|
1064
1103
|
*/
|
|
1065
|
-
export function fetchD3VaultGetUtilizationRatio(chainId: number, token: string) {
|
|
1104
|
+
export function fetchD3VaultGetUtilizationRatio(chainId: number, token: string): Promise<bigint> {
|
|
1066
1105
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1067
1106
|
|
|
1068
1107
|
const __encodeData = defaultAbiCoder.encode(["address"], [token]);
|
|
@@ -1086,7 +1125,7 @@ export function getFetchD3VaultGetUtilizationRatioQueryOptions(chainId: number |
|
|
|
1086
1125
|
* @param {string} __input2 - address
|
|
1087
1126
|
* @returns {bigint} __output0 - uint256
|
|
1088
1127
|
*/
|
|
1089
|
-
export function fetchD3VaultLiquidationTarget(chainId: number, __input1: string, __input2: string) {
|
|
1128
|
+
export function fetchD3VaultLiquidationTarget(chainId: number, __input1: string, __input2: string): Promise<bigint> {
|
|
1090
1129
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1091
1130
|
|
|
1092
1131
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [__input1,__input2]);
|
|
@@ -1108,7 +1147,7 @@ export function getFetchD3VaultLiquidationTargetQueryOptions(chainId: number | u
|
|
|
1108
1147
|
* @param {number} chainId - number
|
|
1109
1148
|
* @returns {string} __output0 - address
|
|
1110
1149
|
*/
|
|
1111
|
-
export function fetchD3VaultOwner(chainId: number) {
|
|
1150
|
+
export function fetchD3VaultOwner(chainId: number): Promise<string> {
|
|
1112
1151
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1113
1152
|
|
|
1114
1153
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -1131,7 +1170,7 @@ export function getFetchD3VaultOwnerQueryOptions(chainId: number | undefined) {
|
|
|
1131
1170
|
* @param {number} __input1 - uint256
|
|
1132
1171
|
* @returns {string} __output0 - address
|
|
1133
1172
|
*/
|
|
1134
|
-
export function fetchD3VaultTokenList(chainId: number, __input1: number) {
|
|
1173
|
+
export function fetchD3VaultTokenList(chainId: number, __input1: number): Promise<string> {
|
|
1135
1174
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1136
1175
|
|
|
1137
1176
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [__input1]);
|
|
@@ -1154,7 +1193,7 @@ export function getFetchD3VaultTokenListQueryOptions(chainId: number | undefined
|
|
|
1154
1193
|
* @param {string} __input1 - address
|
|
1155
1194
|
* @returns {boolean} __output0 - bool
|
|
1156
1195
|
*/
|
|
1157
|
-
export function fetchD3VaultTokens(chainId: number, __input1: string) {
|
|
1196
|
+
export function fetchD3VaultTokens(chainId: number, __input1: string): Promise<boolean> {
|
|
1158
1197
|
const __to = getD3VaultContractAddressByChainId(chainId);
|
|
1159
1198
|
|
|
1160
1199
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -14,7 +14,7 @@ export function getDODOApproveContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {string} __output0 - address
|
|
16
16
|
*/
|
|
17
|
-
export function fetchDODOApprove_DODO_PROXY_(chainId: number) {
|
|
17
|
+
export function fetchDODOApprove_DODO_PROXY_(chainId: number): Promise<string> {
|
|
18
18
|
const __to = getDODOApproveContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchDODOApprove_DODO_PROXY_QueryOptions(chainId: number | un
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {string} __output0 - address
|
|
38
38
|
*/
|
|
39
|
-
export function fetchDODOApprove_NEW_OWNER_(chainId: number) {
|
|
39
|
+
export function fetchDODOApprove_NEW_OWNER_(chainId: number): Promise<string> {
|
|
40
40
|
const __to = getDODOApproveContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchDODOApprove_NEW_OWNER_QueryOptions(chainId: number | und
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export function fetchDODOApprove_OWNER_(chainId: number) {
|
|
61
|
+
export function fetchDODOApprove_OWNER_(chainId: number): Promise<string> {
|
|
62
62
|
const __to = getDODOApproveContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchDODOApprove_OWNER_QueryOptions(chainId: number | undefin
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchDODOApprove_PENDING_DODO_PROXY_(chainId: number) {
|
|
83
|
+
export function fetchDODOApprove_PENDING_DODO_PROXY_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getDODOApproveContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -102,7 +102,7 @@ export function getFetchDODOApprove_PENDING_DODO_PROXY_QueryOptions(chainId: num
|
|
|
102
102
|
* @param {number} chainId - number
|
|
103
103
|
* @returns {bigint} __output0 - uint256
|
|
104
104
|
*/
|
|
105
|
-
export function fetchDODOApprove_TIMELOCK_(chainId: number) {
|
|
105
|
+
export function fetchDODOApprove_TIMELOCK_(chainId: number): Promise<bigint> {
|
|
106
106
|
const __to = getDODOApproveContractAddressByChainId(chainId);
|
|
107
107
|
|
|
108
108
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -124,7 +124,7 @@ export function getFetchDODOApprove_TIMELOCK_QueryOptions(chainId: number | unde
|
|
|
124
124
|
* @param {number} chainId - number
|
|
125
125
|
* @returns {string} __output0 - address
|
|
126
126
|
*/
|
|
127
|
-
export function fetchDODOApproveGetDODOProxy(chainId: number) {
|
|
127
|
+
export function fetchDODOApproveGetDODOProxy(chainId: number): Promise<string> {
|
|
128
128
|
const __to = getDODOApproveContractAddressByChainId(chainId);
|
|
129
129
|
|
|
130
130
|
const __encodeData = defaultAbiCoder.encode([], []);
|