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