@dodoex/dodo-contract-request 1.1.0 → 1.1.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/CHANGELOG.md +7 -0
- package/dist/types/contract/BuyoutModel.d.ts +10 -10
- package/dist/types/contract/CP.d.ts +5 -5
- package/dist/types/contract/CrowdPoolingFactory.d.ts +15 -15
- package/dist/types/contract/CustomERC20.d.ts +11 -11
- package/dist/types/contract/CustomMintableERC20.d.ts +15 -15
- package/dist/types/contract/D3Proxy.d.ts +20 -20
- package/dist/types/contract/D3Vault.d.ts +31 -31
- package/dist/types/contract/DODOApprove.d.ts +2 -2
- package/dist/types/contract/DODOApproveProxy.d.ts +2 -2
- package/dist/types/contract/DODOCalleeHelper.d.ts +11 -11
- package/dist/types/contract/DODOCpProxy.d.ts +10 -10
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +9 -9
- package/dist/types/contract/DODODppProxy.d.ts +14 -14
- package/dist/types/contract/DODODspProxy.d.ts +23 -23
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +14 -14
- package/dist/types/contract/DODOIncentive.d.ts +6 -6
- package/dist/types/contract/DODOMineV2Factory.d.ts +4 -4
- package/dist/types/contract/DODOMineV3Proxy.d.ts +9 -9
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +8 -8
- package/dist/types/contract/DODONFT.d.ts +10 -10
- package/dist/types/contract/DODONFT1155.d.ts +11 -11
- package/dist/types/contract/DODONFTApprove.d.ts +8 -8
- package/dist/types/contract/DODONFTPoolProxy.d.ts +24 -24
- package/dist/types/contract/DODONFTProxy.d.ts +6 -6
- package/dist/types/contract/DODOStarterProxy.d.ts +4 -4
- package/dist/types/contract/DODOV1.d.ts +41 -41
- package/dist/types/contract/DODOV1Proxy.d.ts +10 -10
- package/dist/types/contract/DODOV2Proxy02.d.ts +75 -75
- package/dist/types/contract/DPPAdvanced.d.ts +17 -17
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +12 -12
- package/dist/types/contract/DPPFactory.d.ts +4 -4
- package/dist/types/contract/DSP.d.ts +22 -22
- package/dist/types/contract/DSPFactory.d.ts +4 -4
- package/dist/types/contract/DVM.d.ts +22 -22
- package/dist/types/contract/DVMFactory.d.ts +4 -4
- package/dist/types/contract/ERC20.d.ts +8 -8
- package/dist/types/contract/ERC20MineV3.d.ts +19 -19
- package/dist/types/contract/ERC20V3Factory.d.ts +15 -15
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +34 -34
- package/dist/types/contract/GSPFactory.d.ts +6 -6
- package/dist/types/contract/InitializableERC20.d.ts +9 -9
- package/dist/types/contract/LimitOrder.d.ts +19 -19
- package/dist/types/contract/LimitOrderBot.d.ts +5 -5
- package/dist/types/contract/UniswapV2Factory.d.ts +4 -4
- package/dist/types/contract/UniswapV2Router02.d.ts +94 -94
- package/dist/types/contract/dodoTeam.d.ts +24 -24
- package/dist/types/contract/vDODOToken.d.ts +18 -18
- package/package.json +2 -2
- package/src/contract/BuyoutModel.ts +10 -10
- package/src/contract/CP.ts +5 -5
- package/src/contract/CrowdPoolingFactory.ts +15 -15
- package/src/contract/CustomERC20.ts +11 -11
- package/src/contract/CustomMintableERC20.ts +15 -15
- package/src/contract/D3Proxy.ts +20 -20
- package/src/contract/D3Vault.ts +31 -31
- package/src/contract/DODOApprove.ts +2 -2
- package/src/contract/DODOApproveProxy.ts +2 -2
- package/src/contract/DODOCalleeHelper.ts +11 -11
- package/src/contract/DODOCpProxy.ts +10 -10
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +9 -9
- package/src/contract/DODODppProxy.ts +14 -14
- package/src/contract/DODODspProxy.ts +23 -23
- package/src/contract/DODODspProxyWithoutGSP.ts +14 -14
- package/src/contract/DODOIncentive.ts +6 -6
- package/src/contract/DODOMineV2Factory.ts +4 -4
- package/src/contract/DODOMineV3Proxy.ts +9 -9
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +8 -8
- package/src/contract/DODONFT.ts +10 -10
- package/src/contract/DODONFT1155.ts +11 -11
- package/src/contract/DODONFTApprove.ts +8 -8
- package/src/contract/DODONFTPoolProxy.ts +24 -24
- package/src/contract/DODONFTProxy.ts +6 -6
- package/src/contract/DODOStarterProxy.ts +4 -4
- package/src/contract/DODOV1.ts +41 -41
- package/src/contract/DODOV1Proxy.ts +10 -10
- package/src/contract/DODOV2Proxy02.ts +75 -75
- package/src/contract/DPPAdvanced.ts +17 -17
- package/src/contract/DPPAdvancedAdmin.ts +12 -12
- package/src/contract/DPPFactory.ts +4 -4
- package/src/contract/DSP.ts +22 -22
- package/src/contract/DSPFactory.ts +4 -4
- package/src/contract/DVM.ts +22 -22
- package/src/contract/DVMFactory.ts +4 -4
- package/src/contract/ERC20.ts +8 -8
- package/src/contract/ERC20MineV3.ts +19 -19
- package/src/contract/ERC20V3Factory.ts +15 -15
- package/src/contract/FeeRateDIP3Impl.ts +8 -8
- package/src/contract/GSP.ts +34 -34
- package/src/contract/GSPFactory.ts +6 -6
- package/src/contract/InitializableERC20.ts +9 -9
- package/src/contract/LimitOrder.ts +9 -9
- package/src/contract/LimitOrderBot.ts +5 -5
- package/src/contract/UniswapV2Factory.ts +4 -4
- package/src/contract/UniswapV2Router02.ts +84 -84
- package/src/contract/dodoTeam.ts +24 -24
- package/src/contract/vDODOToken.ts +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@dodoex/dodo-contract-request-v1.1.1](https://github.com/DODOEX/contract-request/compare/@dodoex/dodo-contract-request-v1.1.0...@dodoex/dodo-contract-request-v1.1.1) (2024-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* encode parameters ([1d9d58f](https://github.com/DODOEX/contract-request/commit/1d9d58f1206ae1781e94f95d28d9b774a6ce991a))
|
|
7
|
+
|
|
1
8
|
# [@dodoex/dodo-contract-request-v1.1.0](https://github.com/DODOEX/contract-request/compare/@dodoex/dodo-contract-request-v1.0.0...@dodoex/dodo-contract-request-v1.1.0) (2024-11-19)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -40,12 +40,12 @@ export declare function fetchBuyoutModelGetBuyoutStatus(chainId: number, fragAdd
|
|
|
40
40
|
/**
|
|
41
41
|
* encode addFragInfo
|
|
42
42
|
* @param {string} fragAddr - address
|
|
43
|
-
* @param {
|
|
44
|
-
* @param {
|
|
43
|
+
* @param {string} minFrag - uint256
|
|
44
|
+
* @param {string} maxFrag - uint256
|
|
45
45
|
* @param {string} buyoutAddr - address
|
|
46
46
|
* @returns {string} encode data
|
|
47
47
|
*/
|
|
48
|
-
export declare function encodeBuyoutModelAddFragInfo(fragAddr: string, minFrag:
|
|
48
|
+
export declare function encodeBuyoutModelAddFragInfo(fragAddr: string, minFrag: string, maxFrag: string, buyoutAddr: string): any;
|
|
49
49
|
/**
|
|
50
50
|
* encode claimOwnership
|
|
51
51
|
|
|
@@ -61,20 +61,20 @@ export declare function encodeBuyoutModelInitOwner(newOwner: string): any;
|
|
|
61
61
|
/**
|
|
62
62
|
* encode setFragInfo
|
|
63
63
|
* @param {string} fragAddr - address
|
|
64
|
-
* @param {
|
|
65
|
-
* @param {
|
|
64
|
+
* @param {string} minFrag - uint256
|
|
65
|
+
* @param {string} maxFrag - uint256
|
|
66
66
|
* @param {string} buyoutAddr - address
|
|
67
67
|
* @returns {string} encode data
|
|
68
68
|
*/
|
|
69
|
-
export declare function encodeBuyoutModelSetFragInfo(fragAddr: string, minFrag:
|
|
69
|
+
export declare function encodeBuyoutModelSetFragInfo(fragAddr: string, minFrag: string, maxFrag: string, buyoutAddr: string): any;
|
|
70
70
|
/**
|
|
71
71
|
* encode setGlobalParam
|
|
72
|
-
* @param {
|
|
73
|
-
* @param {
|
|
74
|
-
* @param {
|
|
72
|
+
* @param {string} minFrag - uint256
|
|
73
|
+
* @param {string} maxFrag - uint256
|
|
74
|
+
* @param {string} buyoutFee - uint256
|
|
75
75
|
* @returns {string} encode data
|
|
76
76
|
*/
|
|
77
|
-
export declare function encodeBuyoutModelSetGlobalParam(minFrag:
|
|
77
|
+
export declare function encodeBuyoutModelSetGlobalParam(minFrag: string, maxFrag: string, buyoutFee: string): any;
|
|
78
78
|
/**
|
|
79
79
|
* encode transferOwnership
|
|
80
80
|
* @param {string} newOwner - address
|
|
@@ -259,11 +259,11 @@ export declare function encodeCPBidderClaim(to: string, data: string): any;
|
|
|
259
259
|
/**
|
|
260
260
|
* encode cancel
|
|
261
261
|
* @param {string} to - address
|
|
262
|
-
* @param {
|
|
262
|
+
* @param {string} amount - uint256
|
|
263
263
|
* @param {string} data - bytes
|
|
264
264
|
* @returns {string} encode data
|
|
265
265
|
*/
|
|
266
|
-
export declare function encodeCPCancel(to: string, amount:
|
|
266
|
+
export declare function encodeCPCancel(to: string, amount: string, data: string): any;
|
|
267
267
|
/**
|
|
268
268
|
* encode claimLPToken
|
|
269
269
|
|
|
@@ -285,12 +285,12 @@ export declare function encodeCPEmergencySettle(): any;
|
|
|
285
285
|
/**
|
|
286
286
|
* encode init
|
|
287
287
|
* @param {Array<string>} addressList - address[]
|
|
288
|
-
* @param {Array<
|
|
289
|
-
* @param {Array<
|
|
288
|
+
* @param {Array<string>} timeLine - uint256[]
|
|
289
|
+
* @param {Array<string>} valueList - uint256[]
|
|
290
290
|
* @param {boolean} isOpenTWAP - bool
|
|
291
291
|
* @returns {string} encode data
|
|
292
292
|
*/
|
|
293
|
-
export declare function encodeCPInit(addressList: Array<string>, timeLine: Array<
|
|
293
|
+
export declare function encodeCPInit(addressList: Array<string>, timeLine: Array<string>, valueList: Array<string>, isOpenTWAP: boolean): any;
|
|
294
294
|
/**
|
|
295
295
|
* encode initOwner
|
|
296
296
|
* @param {string} newOwner - address
|
|
@@ -142,12 +142,12 @@ export declare function encodeCrowdPoolingFactoryCreateCrowdPooling(): any;
|
|
|
142
142
|
* @param {string} creator - address
|
|
143
143
|
* @param {string} baseToken - address
|
|
144
144
|
* @param {string} quoteToken - address
|
|
145
|
-
* @param {Array<
|
|
146
|
-
* @param {Array<
|
|
145
|
+
* @param {Array<string>} timeLine - uint256[]
|
|
146
|
+
* @param {Array<string>} valueList - uint256[]
|
|
147
147
|
* @param {boolean} isOpenTWAP - bool
|
|
148
148
|
* @returns {string} encode data
|
|
149
149
|
*/
|
|
150
|
-
export declare function encodeCrowdPoolingFactoryInitCrowdPooling(cpAddress: string, creator: string, baseToken: string, quoteToken: string, timeLine: Array<
|
|
150
|
+
export declare function encodeCrowdPoolingFactoryInitCrowdPooling(cpAddress: string, creator: string, baseToken: string, quoteToken: string, timeLine: Array<string>, valueList: Array<string>, isOpenTWAP: boolean): any;
|
|
151
151
|
/**
|
|
152
152
|
* encode initOwner
|
|
153
153
|
* @param {string} newOwner - address
|
|
@@ -156,40 +156,40 @@ export declare function encodeCrowdPoolingFactoryInitCrowdPooling(cpAddress: str
|
|
|
156
156
|
export declare function encodeCrowdPoolingFactoryInitOwner(newOwner: string): any;
|
|
157
157
|
/**
|
|
158
158
|
* encode setCalmDuration
|
|
159
|
-
* @param {
|
|
159
|
+
* @param {string} _newCalmDuration - uint256
|
|
160
160
|
* @returns {string} encode data
|
|
161
161
|
*/
|
|
162
|
-
export declare function encodeCrowdPoolingFactorySetCalmDuration(_newCalmDuration:
|
|
162
|
+
export declare function encodeCrowdPoolingFactorySetCalmDuration(_newCalmDuration: string): any;
|
|
163
163
|
/**
|
|
164
164
|
* encode setCapRatio
|
|
165
|
-
* @param {
|
|
165
|
+
* @param {string} _newCapRatio - uint256
|
|
166
166
|
* @returns {string} encode data
|
|
167
167
|
*/
|
|
168
|
-
export declare function encodeCrowdPoolingFactorySetCapRatio(_newCapRatio:
|
|
168
|
+
export declare function encodeCrowdPoolingFactorySetCapRatio(_newCapRatio: string): any;
|
|
169
169
|
/**
|
|
170
170
|
* encode setCliffRate
|
|
171
|
-
* @param {
|
|
171
|
+
* @param {string} _newCliffRate - uint256
|
|
172
172
|
* @returns {string} encode data
|
|
173
173
|
*/
|
|
174
|
-
export declare function encodeCrowdPoolingFactorySetCliffRate(_newCliffRate:
|
|
174
|
+
export declare function encodeCrowdPoolingFactorySetCliffRate(_newCliffRate: string): any;
|
|
175
175
|
/**
|
|
176
176
|
* encode setFreezeDuration
|
|
177
|
-
* @param {
|
|
177
|
+
* @param {string} _newFreeDuration - uint256
|
|
178
178
|
* @returns {string} encode data
|
|
179
179
|
*/
|
|
180
|
-
export declare function encodeCrowdPoolingFactorySetFreezeDuration(_newFreeDuration:
|
|
180
|
+
export declare function encodeCrowdPoolingFactorySetFreezeDuration(_newFreeDuration: string): any;
|
|
181
181
|
/**
|
|
182
182
|
* encode setK
|
|
183
|
-
* @param {
|
|
183
|
+
* @param {string} _newK - uint256
|
|
184
184
|
* @returns {string} encode data
|
|
185
185
|
*/
|
|
186
|
-
export declare function encodeCrowdPoolingFactorySetK(_newK:
|
|
186
|
+
export declare function encodeCrowdPoolingFactorySetK(_newK: string): any;
|
|
187
187
|
/**
|
|
188
188
|
* encode setVestDuration
|
|
189
|
-
* @param {
|
|
189
|
+
* @param {string} _newVestDuration - uint256
|
|
190
190
|
* @returns {string} encode data
|
|
191
191
|
*/
|
|
192
|
-
export declare function encodeCrowdPoolingFactorySetVestDuration(_newVestDuration:
|
|
192
|
+
export declare function encodeCrowdPoolingFactorySetVestDuration(_newVestDuration: string): any;
|
|
193
193
|
/**
|
|
194
194
|
* encode transferOwnership
|
|
195
195
|
* @param {string} newOwner - address
|
|
@@ -87,10 +87,10 @@ export declare function encodeCustomERC20AbandonOwnership(zeroAddress: string):
|
|
|
87
87
|
/**
|
|
88
88
|
* encode approve
|
|
89
89
|
* @param {string} spender - address
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {string} amount - uint256
|
|
91
91
|
* @returns {string} encode data
|
|
92
92
|
*/
|
|
93
|
-
export declare function encodeCustomERC20Approve(spender: string, amount:
|
|
93
|
+
export declare function encodeCustomERC20Approve(spender: string, amount: string): any;
|
|
94
94
|
/**
|
|
95
95
|
* encode changeTeamAccount
|
|
96
96
|
* @param {string} newTeam - address
|
|
@@ -106,16 +106,16 @@ export declare function encodeCustomERC20ClaimOwnership(): any;
|
|
|
106
106
|
/**
|
|
107
107
|
* encode init
|
|
108
108
|
* @param {string} _creator - address
|
|
109
|
-
* @param {
|
|
109
|
+
* @param {string} _totalSupply - uint256
|
|
110
110
|
* @param {string} _name - string
|
|
111
111
|
* @param {string} _symbol - string
|
|
112
|
-
* @param {
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {
|
|
112
|
+
* @param {string} _decimals - uint8
|
|
113
|
+
* @param {string} _tradeBurnRatio - uint256
|
|
114
|
+
* @param {string} _tradeFeeRatio - uint256
|
|
115
115
|
* @param {string} _team - address
|
|
116
116
|
* @returns {string} encode data
|
|
117
117
|
*/
|
|
118
|
-
export declare function encodeCustomERC20Init(_creator: string, _totalSupply:
|
|
118
|
+
export declare function encodeCustomERC20Init(_creator: string, _totalSupply: string, _name: string, _symbol: string, _decimals: string, _tradeBurnRatio: string, _tradeFeeRatio: string, _team: string): any;
|
|
119
119
|
/**
|
|
120
120
|
* encode initOwner
|
|
121
121
|
* @param {string} newOwner - address
|
|
@@ -125,18 +125,18 @@ export declare function encodeCustomERC20InitOwner(newOwner: string): any;
|
|
|
125
125
|
/**
|
|
126
126
|
* encode transfer
|
|
127
127
|
* @param {string} to - address
|
|
128
|
-
* @param {
|
|
128
|
+
* @param {string} amount - uint256
|
|
129
129
|
* @returns {string} encode data
|
|
130
130
|
*/
|
|
131
|
-
export declare function encodeCustomERC20Transfer(to: string, amount:
|
|
131
|
+
export declare function encodeCustomERC20Transfer(to: string, amount: string): any;
|
|
132
132
|
/**
|
|
133
133
|
* encode transferFrom
|
|
134
134
|
* @param {string} from - address
|
|
135
135
|
* @param {string} to - address
|
|
136
|
-
* @param {
|
|
136
|
+
* @param {string} amount - uint256
|
|
137
137
|
* @returns {string} encode data
|
|
138
138
|
*/
|
|
139
|
-
export declare function encodeCustomERC20TransferFrom(from: string, to: string, amount:
|
|
139
|
+
export declare function encodeCustomERC20TransferFrom(from: string, to: string, amount: string): any;
|
|
140
140
|
/**
|
|
141
141
|
* encode transferOwnership
|
|
142
142
|
* @param {string} newOwner - address
|
|
@@ -87,16 +87,16 @@ export declare function encodeCustomMintableERC20AbandonOwnership(zeroAddress: s
|
|
|
87
87
|
/**
|
|
88
88
|
* encode approve
|
|
89
89
|
* @param {string} spender - address
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {string} amount - uint256
|
|
91
91
|
* @returns {string} encode data
|
|
92
92
|
*/
|
|
93
|
-
export declare function encodeCustomMintableERC20Approve(spender: string, amount:
|
|
93
|
+
export declare function encodeCustomMintableERC20Approve(spender: string, amount: string): any;
|
|
94
94
|
/**
|
|
95
95
|
* encode burn
|
|
96
|
-
* @param {
|
|
96
|
+
* @param {string} value - uint256
|
|
97
97
|
* @returns {string} encode data
|
|
98
98
|
*/
|
|
99
|
-
export declare function encodeCustomMintableERC20Burn(value:
|
|
99
|
+
export declare function encodeCustomMintableERC20Burn(value: string): any;
|
|
100
100
|
/**
|
|
101
101
|
* encode changeTeamAccount
|
|
102
102
|
* @param {string} newTeam - address
|
|
@@ -112,16 +112,16 @@ export declare function encodeCustomMintableERC20ClaimOwnership(): any;
|
|
|
112
112
|
/**
|
|
113
113
|
* encode init
|
|
114
114
|
* @param {string} _creator - address
|
|
115
|
-
* @param {
|
|
115
|
+
* @param {string} _initSupply - uint256
|
|
116
116
|
* @param {string} _name - string
|
|
117
117
|
* @param {string} _symbol - string
|
|
118
|
-
* @param {
|
|
119
|
-
* @param {
|
|
120
|
-
* @param {
|
|
118
|
+
* @param {string} _decimals - uint8
|
|
119
|
+
* @param {string} _tradeBurnRatio - uint256
|
|
120
|
+
* @param {string} _tradeFeeRatio - uint256
|
|
121
121
|
* @param {string} _team - address
|
|
122
122
|
* @returns {string} encode data
|
|
123
123
|
*/
|
|
124
|
-
export declare function encodeCustomMintableERC20Init(_creator: string, _initSupply:
|
|
124
|
+
export declare function encodeCustomMintableERC20Init(_creator: string, _initSupply: string, _name: string, _symbol: string, _decimals: string, _tradeBurnRatio: string, _tradeFeeRatio: string, _team: string): any;
|
|
125
125
|
/**
|
|
126
126
|
* encode initOwner
|
|
127
127
|
* @param {string} newOwner - address
|
|
@@ -131,25 +131,25 @@ export declare function encodeCustomMintableERC20InitOwner(newOwner: string): an
|
|
|
131
131
|
/**
|
|
132
132
|
* encode mint
|
|
133
133
|
* @param {string} user - address
|
|
134
|
-
* @param {
|
|
134
|
+
* @param {string} value - uint256
|
|
135
135
|
* @returns {string} encode data
|
|
136
136
|
*/
|
|
137
|
-
export declare function encodeCustomMintableERC20Mint(user: string, value:
|
|
137
|
+
export declare function encodeCustomMintableERC20Mint(user: string, value: string): any;
|
|
138
138
|
/**
|
|
139
139
|
* encode transfer
|
|
140
140
|
* @param {string} to - address
|
|
141
|
-
* @param {
|
|
141
|
+
* @param {string} amount - uint256
|
|
142
142
|
* @returns {string} encode data
|
|
143
143
|
*/
|
|
144
|
-
export declare function encodeCustomMintableERC20Transfer(to: string, amount:
|
|
144
|
+
export declare function encodeCustomMintableERC20Transfer(to: string, amount: string): any;
|
|
145
145
|
/**
|
|
146
146
|
* encode transferFrom
|
|
147
147
|
* @param {string} from - address
|
|
148
148
|
* @param {string} to - address
|
|
149
|
-
* @param {
|
|
149
|
+
* @param {string} amount - uint256
|
|
150
150
|
* @returns {string} encode data
|
|
151
151
|
*/
|
|
152
|
-
export declare function encodeCustomMintableERC20TransferFrom(from: string, to: string, amount:
|
|
152
|
+
export declare function encodeCustomMintableERC20TransferFrom(from: string, to: string, amount: string): any;
|
|
153
153
|
/**
|
|
154
154
|
* encode transferOwnership
|
|
155
155
|
* @param {string} newOwner - address
|
|
@@ -29,29 +29,29 @@ export declare function fetchD3Proxy_WETH_(chainId: number): any;
|
|
|
29
29
|
* @param {string} to - address
|
|
30
30
|
* @param {string} fromToken - address
|
|
31
31
|
* @param {string} toToken - address
|
|
32
|
-
* @param {
|
|
33
|
-
* @param {
|
|
32
|
+
* @param {string} quoteAmount - uint256
|
|
33
|
+
* @param {string} maxPayAmount - uint256
|
|
34
34
|
* @param {string} data - bytes
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {string} deadLine - uint256
|
|
36
36
|
* @returns {string} encode data
|
|
37
37
|
*/
|
|
38
|
-
export declare function encodeD3ProxyBuyTokens(pool: string, to: string, fromToken: string, toToken: string, quoteAmount:
|
|
38
|
+
export declare function encodeD3ProxyBuyTokens(pool: string, to: string, fromToken: string, toToken: string, quoteAmount: string, maxPayAmount: string, data: string, deadLine: string): any;
|
|
39
39
|
/**
|
|
40
40
|
* encode d3MMSwapCallBack
|
|
41
41
|
* @param {string} token - address
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {string} value - uint256
|
|
43
43
|
* @param {string} _data - bytes
|
|
44
44
|
* @returns {string} encode data
|
|
45
45
|
*/
|
|
46
|
-
export declare function encodeD3ProxyD3MMSwapCallBack(token: string, value:
|
|
46
|
+
export declare function encodeD3ProxyD3MMSwapCallBack(token: string, value: string, _data: string): any;
|
|
47
47
|
/**
|
|
48
48
|
* encode makerDeposit
|
|
49
49
|
* @param {string} pool - address
|
|
50
50
|
* @param {string} token - address
|
|
51
|
-
* @param {
|
|
51
|
+
* @param {string} amount - uint256
|
|
52
52
|
* @returns {string} encode data
|
|
53
53
|
*/
|
|
54
|
-
export declare function encodeD3ProxyMakerDeposit(pool: string, token: string, amount:
|
|
54
|
+
export declare function encodeD3ProxyMakerDeposit(pool: string, token: string, amount: string): any;
|
|
55
55
|
/**
|
|
56
56
|
* encode multicall
|
|
57
57
|
* @param {Array<string>} data - bytes[]
|
|
@@ -70,35 +70,35 @@ export declare function encodeD3ProxyRefundETH(): any;
|
|
|
70
70
|
* @param {string} to - address
|
|
71
71
|
* @param {string} fromToken - address
|
|
72
72
|
* @param {string} toToken - address
|
|
73
|
-
* @param {
|
|
74
|
-
* @param {
|
|
73
|
+
* @param {string} fromAmount - uint256
|
|
74
|
+
* @param {string} minReceiveAmount - uint256
|
|
75
75
|
* @param {string} data - bytes
|
|
76
|
-
* @param {
|
|
76
|
+
* @param {string} deadLine - uint256
|
|
77
77
|
* @returns {string} encode data
|
|
78
78
|
*/
|
|
79
|
-
export declare function encodeD3ProxySellTokens(pool: string, to: string, fromToken: string, toToken: string, fromAmount:
|
|
79
|
+
export declare function encodeD3ProxySellTokens(pool: string, to: string, fromToken: string, toToken: string, fromAmount: string, minReceiveAmount: string, data: string, deadLine: string): any;
|
|
80
80
|
/**
|
|
81
81
|
* encode userDeposit
|
|
82
82
|
* @param {string} user - address
|
|
83
83
|
* @param {string} token - address
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
84
|
+
* @param {string} amount - uint256
|
|
85
|
+
* @param {string} minDtokenAmount - uint256
|
|
86
86
|
* @returns {string} encode data
|
|
87
87
|
*/
|
|
88
|
-
export declare function encodeD3ProxyUserDeposit(user: string, token: string, amount:
|
|
88
|
+
export declare function encodeD3ProxyUserDeposit(user: string, token: string, amount: string, minDtokenAmount: string): any;
|
|
89
89
|
/**
|
|
90
90
|
* encode userWithdraw
|
|
91
91
|
* @param {string} to - address
|
|
92
92
|
* @param {string} token - address
|
|
93
|
-
* @param {
|
|
94
|
-
* @param {
|
|
93
|
+
* @param {string} dTokenAmount - uint256
|
|
94
|
+
* @param {string} minReceiveAmount - uint256
|
|
95
95
|
* @returns {string} encode data
|
|
96
96
|
*/
|
|
97
|
-
export declare function encodeD3ProxyUserWithdraw(to: string, token: string, dTokenAmount:
|
|
97
|
+
export declare function encodeD3ProxyUserWithdraw(to: string, token: string, dTokenAmount: string, minReceiveAmount: string): any;
|
|
98
98
|
/**
|
|
99
99
|
* encode withdrawWETH
|
|
100
100
|
* @param {string} to - address
|
|
101
|
-
* @param {
|
|
101
|
+
* @param {string} minAmount - uint256
|
|
102
102
|
* @returns {string} encode data
|
|
103
103
|
*/
|
|
104
|
-
export declare function encodeD3ProxyWithdrawWETH(to: string, minAmount:
|
|
104
|
+
export declare function encodeD3ProxyWithdrawWETH(to: string, minAmount: string): any;
|
|
@@ -387,14 +387,14 @@ export declare function encodeD3VaultAddLiquidator(liquidator: string): any;
|
|
|
387
387
|
/**
|
|
388
388
|
* encode addNewToken
|
|
389
389
|
* @param {string} token - address
|
|
390
|
-
* @param {
|
|
391
|
-
* @param {
|
|
392
|
-
* @param {
|
|
393
|
-
* @param {
|
|
394
|
-
* @param {
|
|
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
|
|
395
395
|
* @returns {string} encode data
|
|
396
396
|
*/
|
|
397
|
-
export declare function encodeD3VaultAddNewToken(token: string, maxDeposit:
|
|
397
|
+
export declare function encodeD3VaultAddNewToken(token: string, maxDeposit: string, maxCollateral: string, collateralWeight: string, debtWeight: string, reserveFactor: string): any;
|
|
398
398
|
/**
|
|
399
399
|
* encode addRouter
|
|
400
400
|
* @param {string} router - address
|
|
@@ -417,16 +417,16 @@ export declare function encodeD3VaultFinishPoolRemove(): any;
|
|
|
417
417
|
* encode liquidate
|
|
418
418
|
* @param {string} pool - address
|
|
419
419
|
* @param {string} collateral - address
|
|
420
|
-
* @param {
|
|
420
|
+
* @param {string} collateralAmount - uint256
|
|
421
421
|
* @param {string} debt - address
|
|
422
|
-
* @param {
|
|
422
|
+
* @param {string} debtToCover - uint256
|
|
423
423
|
* @returns {string} encode data
|
|
424
424
|
*/
|
|
425
|
-
export declare function encodeD3VaultLiquidate(pool: string, collateral: string, collateralAmount:
|
|
425
|
+
export declare function encodeD3VaultLiquidate(pool: string, collateral: string, collateralAmount: string, debt: string, debtToCover: string): any;
|
|
426
426
|
/**
|
|
427
427
|
* encode liquidateByDODO
|
|
428
428
|
* @param {string} pool - address
|
|
429
|
-
* @param {{fromToken: string; toToken: string; fromAmount:
|
|
429
|
+
* @param {{fromToken: string; toToken: string; fromAmount: string}} order - tuple
|
|
430
430
|
* @param {string} routeData - bytes
|
|
431
431
|
* @param {string} router - address
|
|
432
432
|
* @returns {string} encode data
|
|
@@ -434,7 +434,7 @@ export declare function encodeD3VaultLiquidate(pool: string, collateral: string,
|
|
|
434
434
|
export declare function encodeD3VaultLiquidateByDODO(pool: string, order: {
|
|
435
435
|
fromToken: string;
|
|
436
436
|
toToken: string;
|
|
437
|
-
fromAmount:
|
|
437
|
+
fromAmount: string;
|
|
438
438
|
}, routeData: string, router: string): any;
|
|
439
439
|
/**
|
|
440
440
|
* encode pendingRemovePoolRepayAll
|
|
@@ -445,17 +445,17 @@ export declare function encodeD3VaultPendingRemovePoolRepayAll(token: string): a
|
|
|
445
445
|
/**
|
|
446
446
|
* encode poolBorrow
|
|
447
447
|
* @param {string} token - address
|
|
448
|
-
* @param {
|
|
448
|
+
* @param {string} amount - uint256
|
|
449
449
|
* @returns {string} encode data
|
|
450
450
|
*/
|
|
451
|
-
export declare function encodeD3VaultPoolBorrow(token: string, amount:
|
|
451
|
+
export declare function encodeD3VaultPoolBorrow(token: string, amount: string): any;
|
|
452
452
|
/**
|
|
453
453
|
* encode poolRepay
|
|
454
454
|
* @param {string} token - address
|
|
455
|
-
* @param {
|
|
455
|
+
* @param {string} amount - uint256
|
|
456
456
|
* @returns {string} encode data
|
|
457
457
|
*/
|
|
458
|
-
export declare function encodeD3VaultPoolRepay(token: string, amount:
|
|
458
|
+
export declare function encodeD3VaultPoolRepay(token: string, amount: string): any;
|
|
459
459
|
/**
|
|
460
460
|
* encode poolRepayAll
|
|
461
461
|
* @param {string} token - address
|
|
@@ -500,22 +500,22 @@ export declare function encodeD3VaultSetCloneFactory(cloneFactory: string): any;
|
|
|
500
500
|
export declare function encodeD3VaultSetDTokenTemplate(dTokenTemplate: string): any;
|
|
501
501
|
/**
|
|
502
502
|
* encode setDiscount
|
|
503
|
-
* @param {
|
|
503
|
+
* @param {string} discount - uint256
|
|
504
504
|
* @returns {string} encode data
|
|
505
505
|
*/
|
|
506
|
-
export declare function encodeD3VaultSetDiscount(discount:
|
|
506
|
+
export declare function encodeD3VaultSetDiscount(discount: string): any;
|
|
507
507
|
/**
|
|
508
508
|
* encode setIM
|
|
509
|
-
* @param {
|
|
509
|
+
* @param {string} newIM - uint256
|
|
510
510
|
* @returns {string} encode data
|
|
511
511
|
*/
|
|
512
|
-
export declare function encodeD3VaultSetIM(newIM:
|
|
512
|
+
export declare function encodeD3VaultSetIM(newIM: string): any;
|
|
513
513
|
/**
|
|
514
514
|
* encode setMM
|
|
515
|
-
* @param {
|
|
515
|
+
* @param {string} newMM - uint256
|
|
516
516
|
* @returns {string} encode data
|
|
517
517
|
*/
|
|
518
|
-
export declare function encodeD3VaultSetMM(newMM:
|
|
518
|
+
export declare function encodeD3VaultSetMM(newMM: string): any;
|
|
519
519
|
/**
|
|
520
520
|
* encode setMaintainer
|
|
521
521
|
* @param {string} maintainer - address
|
|
@@ -555,14 +555,14 @@ export declare function encodeD3VaultSetNewRateManager(newRateManager: string):
|
|
|
555
555
|
/**
|
|
556
556
|
* encode setToken
|
|
557
557
|
* @param {string} token - address
|
|
558
|
-
* @param {
|
|
559
|
-
* @param {
|
|
560
|
-
* @param {
|
|
561
|
-
* @param {
|
|
562
|
-
* @param {
|
|
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
|
|
563
563
|
* @returns {string} encode data
|
|
564
564
|
*/
|
|
565
|
-
export declare function encodeD3VaultSetToken(token: string, maxDeposit:
|
|
565
|
+
export declare function encodeD3VaultSetToken(token: string, maxDeposit: string, maxCollateral: string, collateralWeight: string, debtWeight: string, reserveFactor: string): any;
|
|
566
566
|
/**
|
|
567
567
|
* encode startLiquidation
|
|
568
568
|
* @param {string} pool - address
|
|
@@ -587,14 +587,14 @@ export declare function encodeD3VaultUserDeposit(user: string, token: string): a
|
|
|
587
587
|
* @param {string} to - address
|
|
588
588
|
* @param {string} user - address
|
|
589
589
|
* @param {string} token - address
|
|
590
|
-
* @param {
|
|
590
|
+
* @param {string} dTokenAmount - uint256
|
|
591
591
|
* @returns {string} encode data
|
|
592
592
|
*/
|
|
593
|
-
export declare function encodeD3VaultUserWithdraw(to: string, user: string, token: string, dTokenAmount:
|
|
593
|
+
export declare function encodeD3VaultUserWithdraw(to: string, user: string, token: string, dTokenAmount: string): any;
|
|
594
594
|
/**
|
|
595
595
|
* encode withdrawReserves
|
|
596
596
|
* @param {string} token - address
|
|
597
|
-
* @param {
|
|
597
|
+
* @param {string} amount - uint256
|
|
598
598
|
* @returns {string} encode data
|
|
599
599
|
*/
|
|
600
|
-
export declare function encodeD3VaultWithdrawReserves(token: string, amount:
|
|
600
|
+
export declare function encodeD3VaultWithdrawReserves(token: string, amount: string): any;
|
|
@@ -46,10 +46,10 @@ export declare function encodeDODOApproveClaimOwnership(): any;
|
|
|
46
46
|
* @param {string} token - address
|
|
47
47
|
* @param {string} who - address
|
|
48
48
|
* @param {string} dest - address
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {string} amount - uint256
|
|
50
50
|
* @returns {string} encode data
|
|
51
51
|
*/
|
|
52
|
-
export declare function encodeDODOApproveClaimTokens(token: string, who: string, dest: string, amount:
|
|
52
|
+
export declare function encodeDODOApproveClaimTokens(token: string, who: string, dest: string, amount: string): any;
|
|
53
53
|
/**
|
|
54
54
|
* encode init
|
|
55
55
|
* @param {string} owner - address
|
|
@@ -60,10 +60,10 @@ export declare function encodeDODOApproveProxyClaimOwnership(): any;
|
|
|
60
60
|
* @param {string} token - address
|
|
61
61
|
* @param {string} who - address
|
|
62
62
|
* @param {string} dest - address
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {string} amount - uint256
|
|
64
64
|
* @returns {string} encode data
|
|
65
65
|
*/
|
|
66
|
-
export declare function encodeDODOApproveProxyClaimTokens(token: string, who: string, dest: string, amount:
|
|
66
|
+
export declare function encodeDODOApproveProxyClaimTokens(token: string, who: string, dest: string, amount: string): any;
|
|
67
67
|
/**
|
|
68
68
|
* encode init
|
|
69
69
|
* @param {string} owner - address
|
|
@@ -8,35 +8,35 @@ export declare function fetchDODOCalleeHelper_WETH_(chainId: number): any;
|
|
|
8
8
|
/**
|
|
9
9
|
* encode CPCancelCall
|
|
10
10
|
* @param {string} assetTo - address
|
|
11
|
-
* @param {
|
|
11
|
+
* @param {string} amount - uint256
|
|
12
12
|
* @param {string} __input1 - bytes
|
|
13
13
|
* @returns {string} encode data
|
|
14
14
|
*/
|
|
15
|
-
export declare function encodeDODOCalleeHelperCPCancelCall(assetTo: string, amount:
|
|
15
|
+
export declare function encodeDODOCalleeHelperCPCancelCall(assetTo: string, amount: string, __input1: string): any;
|
|
16
16
|
/**
|
|
17
17
|
* encode CPClaimBidCall
|
|
18
18
|
* @param {string} assetTo - address
|
|
19
|
-
* @param {
|
|
20
|
-
* @param {
|
|
19
|
+
* @param {string} baseAmount - uint256
|
|
20
|
+
* @param {string} quoteAmount - uint256
|
|
21
21
|
* @param {string} __input1 - bytes
|
|
22
22
|
* @returns {string} encode data
|
|
23
23
|
*/
|
|
24
|
-
export declare function encodeDODOCalleeHelperCPClaimBidCall(assetTo: string, baseAmount:
|
|
24
|
+
export declare function encodeDODOCalleeHelperCPClaimBidCall(assetTo: string, baseAmount: string, quoteAmount: string, __input1: string): any;
|
|
25
25
|
/**
|
|
26
26
|
* encode DVMSellShareCall
|
|
27
27
|
* @param {string} assetTo - address
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
30
|
-
* @param {
|
|
28
|
+
* @param {string} __input1 - uint256
|
|
29
|
+
* @param {string} baseAmount - uint256
|
|
30
|
+
* @param {string} quoteAmount - uint256
|
|
31
31
|
* @param {string} __input2 - bytes
|
|
32
32
|
* @returns {string} encode data
|
|
33
33
|
*/
|
|
34
|
-
export declare function encodeDODOCalleeHelperDVMSellShareCall(assetTo: string, __input1:
|
|
34
|
+
export declare function encodeDODOCalleeHelperDVMSellShareCall(assetTo: string, __input1: string, baseAmount: string, quoteAmount: string, __input2: string): any;
|
|
35
35
|
/**
|
|
36
36
|
* encode NFTRedeemCall
|
|
37
37
|
* @param {string} assetTo - address
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {string} quoteAmount - uint256
|
|
39
39
|
* @param {string} __input1 - bytes
|
|
40
40
|
* @returns {string} encode data
|
|
41
41
|
*/
|
|
42
|
-
export declare function encodeDODOCalleeHelperNFTRedeemCall(assetTo: string, quoteAmount:
|
|
42
|
+
export declare function encodeDODOCalleeHelperNFTRedeemCall(assetTo: string, quoteAmount: string, __input1: string): any;
|
|
@@ -20,22 +20,22 @@ export declare function fetchDODOCpProxy_WETH_(chainId: number): any;
|
|
|
20
20
|
/**
|
|
21
21
|
* encode bid
|
|
22
22
|
* @param {string} cpAddress - address
|
|
23
|
-
* @param {
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {
|
|
23
|
+
* @param {string} quoteAmount - uint256
|
|
24
|
+
* @param {string} flag - uint8
|
|
25
|
+
* @param {string} deadLine - uint256
|
|
26
26
|
* @returns {string} encode data
|
|
27
27
|
*/
|
|
28
|
-
export declare function encodeDODOCpProxyBid(cpAddress: string, quoteAmount:
|
|
28
|
+
export declare function encodeDODOCpProxyBid(cpAddress: string, quoteAmount: string, flag: string, deadLine: string): any;
|
|
29
29
|
/**
|
|
30
30
|
* encode createCrowdPooling
|
|
31
31
|
* @param {string} baseToken - address
|
|
32
32
|
* @param {string} quoteToken - address
|
|
33
|
-
* @param {
|
|
34
|
-
* @param {Array<
|
|
35
|
-
* @param {Array<
|
|
33
|
+
* @param {string} baseInAmount - uint256
|
|
34
|
+
* @param {Array<string>} timeLine - uint256[]
|
|
35
|
+
* @param {Array<string>} valueList - uint256[]
|
|
36
36
|
* @param {Array<boolean>} switches - bool[]
|
|
37
|
-
* @param {
|
|
38
|
-
* @param {
|
|
37
|
+
* @param {string} deadLine - uint256
|
|
38
|
+
* @param {string} globalQuota - int256
|
|
39
39
|
* @returns {string} encode data
|
|
40
40
|
*/
|
|
41
|
-
export declare function encodeDODOCpProxyCreateCrowdPooling(baseToken: string, quoteToken: string, baseInAmount:
|
|
41
|
+
export declare function encodeDODOCpProxyCreateCrowdPooling(baseToken: string, quoteToken: string, baseInAmount: string, timeLine: Array<string>, valueList: Array<string>, switches: Array<boolean>, deadLine: string, globalQuota: string): any;
|