@dodoex/dodo-contract-request 1.1.0 → 1.2.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 +14 -0
- package/dist/index.js +1 -1
- 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/dist/types/index.d.ts +1 -0
- package/package.json +2 -12
- package/rollup.config.mjs +0 -13
- package/scripts/contract-generate.ts +3 -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/src/index.ts +62 -61
- package/dist/config.js +0 -1
|
@@ -270,10 +270,10 @@ export declare function fetchDSPVersion(chainId: number, __to: string): any;
|
|
|
270
270
|
/**
|
|
271
271
|
* encode approve
|
|
272
272
|
* @param {string} spender - address
|
|
273
|
-
* @param {
|
|
273
|
+
* @param {string} amount - uint256
|
|
274
274
|
* @returns {string} encode data
|
|
275
275
|
*/
|
|
276
|
-
export declare function encodeDSPApprove(spender: string, amount:
|
|
276
|
+
export declare function encodeDSPApprove(spender: string, amount: string): any;
|
|
277
277
|
/**
|
|
278
278
|
* encode buyShares
|
|
279
279
|
* @param {string} to - address
|
|
@@ -282,38 +282,38 @@ export declare function encodeDSPApprove(spender: string, amount: number): any;
|
|
|
282
282
|
export declare function encodeDSPBuyShares(to: string): any;
|
|
283
283
|
/**
|
|
284
284
|
* encode flashLoan
|
|
285
|
-
* @param {
|
|
286
|
-
* @param {
|
|
285
|
+
* @param {string} baseAmount - uint256
|
|
286
|
+
* @param {string} quoteAmount - uint256
|
|
287
287
|
* @param {string} assetTo - address
|
|
288
288
|
* @param {string} data - bytes
|
|
289
289
|
* @returns {string} encode data
|
|
290
290
|
*/
|
|
291
|
-
export declare function encodeDSPFlashLoan(baseAmount:
|
|
291
|
+
export declare function encodeDSPFlashLoan(baseAmount: string, quoteAmount: string, assetTo: string, data: string): any;
|
|
292
292
|
/**
|
|
293
293
|
* encode init
|
|
294
294
|
* @param {string} maintainer - address
|
|
295
295
|
* @param {string} baseTokenAddress - address
|
|
296
296
|
* @param {string} quoteTokenAddress - address
|
|
297
|
-
* @param {
|
|
297
|
+
* @param {string} lpFeeRate - uint256
|
|
298
298
|
* @param {string} mtFeeRateModel - address
|
|
299
|
-
* @param {
|
|
300
|
-
* @param {
|
|
299
|
+
* @param {string} i - uint256
|
|
300
|
+
* @param {string} k - uint256
|
|
301
301
|
* @param {boolean} isOpenTWAP - bool
|
|
302
302
|
* @returns {string} encode data
|
|
303
303
|
*/
|
|
304
|
-
export declare function encodeDSPInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate:
|
|
304
|
+
export declare function encodeDSPInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string, mtFeeRateModel: string, i: string, k: string, isOpenTWAP: boolean): any;
|
|
305
305
|
/**
|
|
306
306
|
* encode permit
|
|
307
307
|
* @param {string} owner - address
|
|
308
308
|
* @param {string} spender - address
|
|
309
|
-
* @param {
|
|
310
|
-
* @param {
|
|
311
|
-
* @param {
|
|
309
|
+
* @param {string} value - uint256
|
|
310
|
+
* @param {string} deadline - uint256
|
|
311
|
+
* @param {string} v - uint8
|
|
312
312
|
* @param {string} r - bytes32
|
|
313
313
|
* @param {string} s - bytes32
|
|
314
314
|
* @returns {string} encode data
|
|
315
315
|
*/
|
|
316
|
-
export declare function encodeDSPPermit(owner: string, spender: string, value:
|
|
316
|
+
export declare function encodeDSPPermit(owner: string, spender: string, value: string, deadline: string, v: string, r: string, s: string): any;
|
|
317
317
|
/**
|
|
318
318
|
* encode sellBase
|
|
319
319
|
* @param {string} to - address
|
|
@@ -328,15 +328,15 @@ export declare function encodeDSPSellBase(to: string): any;
|
|
|
328
328
|
export declare function encodeDSPSellQuote(to: string): any;
|
|
329
329
|
/**
|
|
330
330
|
* encode sellShares
|
|
331
|
-
* @param {
|
|
331
|
+
* @param {string} shareAmount - uint256
|
|
332
332
|
* @param {string} to - address
|
|
333
|
-
* @param {
|
|
334
|
-
* @param {
|
|
333
|
+
* @param {string} baseMinAmount - uint256
|
|
334
|
+
* @param {string} quoteMinAmount - uint256
|
|
335
335
|
* @param {string} data - bytes
|
|
336
|
-
* @param {
|
|
336
|
+
* @param {string} deadline - uint256
|
|
337
337
|
* @returns {string} encode data
|
|
338
338
|
*/
|
|
339
|
-
export declare function encodeDSPSellShares(shareAmount:
|
|
339
|
+
export declare function encodeDSPSellShares(shareAmount: string, to: string, baseMinAmount: string, quoteMinAmount: string, data: string, deadline: string): any;
|
|
340
340
|
/**
|
|
341
341
|
* encode sync
|
|
342
342
|
|
|
@@ -346,15 +346,15 @@ export declare function encodeDSPSync(): any;
|
|
|
346
346
|
/**
|
|
347
347
|
* encode transfer
|
|
348
348
|
* @param {string} to - address
|
|
349
|
-
* @param {
|
|
349
|
+
* @param {string} amount - uint256
|
|
350
350
|
* @returns {string} encode data
|
|
351
351
|
*/
|
|
352
|
-
export declare function encodeDSPTransfer(to: string, amount:
|
|
352
|
+
export declare function encodeDSPTransfer(to: string, amount: string): any;
|
|
353
353
|
/**
|
|
354
354
|
* encode transferFrom
|
|
355
355
|
* @param {string} from - address
|
|
356
356
|
* @param {string} to - address
|
|
357
|
-
* @param {
|
|
357
|
+
* @param {string} amount - uint256
|
|
358
358
|
* @returns {string} encode data
|
|
359
359
|
*/
|
|
360
|
-
export declare function encodeDSPTransferFrom(from: string, to: string, amount:
|
|
360
|
+
export declare function encodeDSPTransferFrom(from: string, to: string, amount: string): any;
|
|
@@ -95,13 +95,13 @@ export declare function encodeDSPFactoryClaimOwnership(): any;
|
|
|
95
95
|
* encode createDODOStablePool
|
|
96
96
|
* @param {string} baseToken - address
|
|
97
97
|
* @param {string} quoteToken - address
|
|
98
|
-
* @param {
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
98
|
+
* @param {string} lpFeeRate - uint256
|
|
99
|
+
* @param {string} i - uint256
|
|
100
|
+
* @param {string} k - uint256
|
|
101
101
|
* @param {boolean} isOpenTWAP - bool
|
|
102
102
|
* @returns {string} encode data
|
|
103
103
|
*/
|
|
104
|
-
export declare function encodeDSPFactoryCreateDODOStablePool(baseToken: string, quoteToken: string, lpFeeRate:
|
|
104
|
+
export declare function encodeDSPFactoryCreateDODOStablePool(baseToken: string, quoteToken: string, lpFeeRate: string, i: string, k: string, isOpenTWAP: boolean): any;
|
|
105
105
|
/**
|
|
106
106
|
* encode initOwner
|
|
107
107
|
* @param {string} newOwner - address
|
|
@@ -245,10 +245,10 @@ export declare function fetchDVMVersion(chainId: number, __to: string): any;
|
|
|
245
245
|
/**
|
|
246
246
|
* encode approve
|
|
247
247
|
* @param {string} spender - address
|
|
248
|
-
* @param {
|
|
248
|
+
* @param {string} amount - uint256
|
|
249
249
|
* @returns {string} encode data
|
|
250
250
|
*/
|
|
251
|
-
export declare function encodeDVMApprove(spender: string, amount:
|
|
251
|
+
export declare function encodeDVMApprove(spender: string, amount: string): any;
|
|
252
252
|
/**
|
|
253
253
|
* encode buyShares
|
|
254
254
|
* @param {string} to - address
|
|
@@ -257,38 +257,38 @@ export declare function encodeDVMApprove(spender: string, amount: number): any;
|
|
|
257
257
|
export declare function encodeDVMBuyShares(to: string): any;
|
|
258
258
|
/**
|
|
259
259
|
* encode flashLoan
|
|
260
|
-
* @param {
|
|
261
|
-
* @param {
|
|
260
|
+
* @param {string} baseAmount - uint256
|
|
261
|
+
* @param {string} quoteAmount - uint256
|
|
262
262
|
* @param {string} assetTo - address
|
|
263
263
|
* @param {string} data - bytes
|
|
264
264
|
* @returns {string} encode data
|
|
265
265
|
*/
|
|
266
|
-
export declare function encodeDVMFlashLoan(baseAmount:
|
|
266
|
+
export declare function encodeDVMFlashLoan(baseAmount: string, quoteAmount: string, assetTo: string, data: string): any;
|
|
267
267
|
/**
|
|
268
268
|
* encode init
|
|
269
269
|
* @param {string} maintainer - address
|
|
270
270
|
* @param {string} baseTokenAddress - address
|
|
271
271
|
* @param {string} quoteTokenAddress - address
|
|
272
|
-
* @param {
|
|
272
|
+
* @param {string} lpFeeRate - uint256
|
|
273
273
|
* @param {string} mtFeeRateModel - address
|
|
274
|
-
* @param {
|
|
275
|
-
* @param {
|
|
274
|
+
* @param {string} i - uint256
|
|
275
|
+
* @param {string} k - uint256
|
|
276
276
|
* @param {boolean} isOpenTWAP - bool
|
|
277
277
|
* @returns {string} encode data
|
|
278
278
|
*/
|
|
279
|
-
export declare function encodeDVMInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate:
|
|
279
|
+
export declare function encodeDVMInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string, mtFeeRateModel: string, i: string, k: string, isOpenTWAP: boolean): any;
|
|
280
280
|
/**
|
|
281
281
|
* encode permit
|
|
282
282
|
* @param {string} owner - address
|
|
283
283
|
* @param {string} spender - address
|
|
284
|
-
* @param {
|
|
285
|
-
* @param {
|
|
286
|
-
* @param {
|
|
284
|
+
* @param {string} value - uint256
|
|
285
|
+
* @param {string} deadline - uint256
|
|
286
|
+
* @param {string} v - uint8
|
|
287
287
|
* @param {string} r - bytes32
|
|
288
288
|
* @param {string} s - bytes32
|
|
289
289
|
* @returns {string} encode data
|
|
290
290
|
*/
|
|
291
|
-
export declare function encodeDVMPermit(owner: string, spender: string, value:
|
|
291
|
+
export declare function encodeDVMPermit(owner: string, spender: string, value: string, deadline: string, v: string, r: string, s: string): any;
|
|
292
292
|
/**
|
|
293
293
|
* encode sellBase
|
|
294
294
|
* @param {string} to - address
|
|
@@ -303,15 +303,15 @@ export declare function encodeDVMSellBase(to: string): any;
|
|
|
303
303
|
export declare function encodeDVMSellQuote(to: string): any;
|
|
304
304
|
/**
|
|
305
305
|
* encode sellShares
|
|
306
|
-
* @param {
|
|
306
|
+
* @param {string} shareAmount - uint256
|
|
307
307
|
* @param {string} to - address
|
|
308
|
-
* @param {
|
|
309
|
-
* @param {
|
|
308
|
+
* @param {string} baseMinAmount - uint256
|
|
309
|
+
* @param {string} quoteMinAmount - uint256
|
|
310
310
|
* @param {string} data - bytes
|
|
311
|
-
* @param {
|
|
311
|
+
* @param {string} deadline - uint256
|
|
312
312
|
* @returns {string} encode data
|
|
313
313
|
*/
|
|
314
|
-
export declare function encodeDVMSellShares(shareAmount:
|
|
314
|
+
export declare function encodeDVMSellShares(shareAmount: string, to: string, baseMinAmount: string, quoteMinAmount: string, data: string, deadline: string): any;
|
|
315
315
|
/**
|
|
316
316
|
* encode sync
|
|
317
317
|
|
|
@@ -321,15 +321,15 @@ export declare function encodeDVMSync(): any;
|
|
|
321
321
|
/**
|
|
322
322
|
* encode transfer
|
|
323
323
|
* @param {string} to - address
|
|
324
|
-
* @param {
|
|
324
|
+
* @param {string} amount - uint256
|
|
325
325
|
* @returns {string} encode data
|
|
326
326
|
*/
|
|
327
|
-
export declare function encodeDVMTransfer(to: string, amount:
|
|
327
|
+
export declare function encodeDVMTransfer(to: string, amount: string): any;
|
|
328
328
|
/**
|
|
329
329
|
* encode transferFrom
|
|
330
330
|
* @param {string} from - address
|
|
331
331
|
* @param {string} to - address
|
|
332
|
-
* @param {
|
|
332
|
+
* @param {string} amount - uint256
|
|
333
333
|
* @returns {string} encode data
|
|
334
334
|
*/
|
|
335
|
-
export declare function encodeDVMTransferFrom(from: string, to: string, amount:
|
|
335
|
+
export declare function encodeDVMTransferFrom(from: string, to: string, amount: string): any;
|
|
@@ -95,13 +95,13 @@ export declare function encodeDVMFactoryClaimOwnership(): any;
|
|
|
95
95
|
* encode createDODOVendingMachine
|
|
96
96
|
* @param {string} baseToken - address
|
|
97
97
|
* @param {string} quoteToken - address
|
|
98
|
-
* @param {
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
98
|
+
* @param {string} lpFeeRate - uint256
|
|
99
|
+
* @param {string} i - uint256
|
|
100
|
+
* @param {string} k - uint256
|
|
101
101
|
* @param {boolean} isOpenTWAP - bool
|
|
102
102
|
* @returns {string} encode data
|
|
103
103
|
*/
|
|
104
|
-
export declare function encodeDVMFactoryCreateDODOVendingMachine(baseToken: string, quoteToken: string, lpFeeRate:
|
|
104
|
+
export declare function encodeDVMFactoryCreateDODOVendingMachine(baseToken: string, quoteToken: string, lpFeeRate: string, i: string, k: string, isOpenTWAP: boolean): any;
|
|
105
105
|
/**
|
|
106
106
|
* encode initOwner
|
|
107
107
|
* @param {string} newOwner - address
|
|
@@ -46,31 +46,31 @@ export declare function fetchERC20Allowance(chainId: number, __to: string, __inp
|
|
|
46
46
|
/**
|
|
47
47
|
* encode approve
|
|
48
48
|
* @param {string} guy - address
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {string} wad - uint256
|
|
50
50
|
* @returns {string} encode data
|
|
51
51
|
*/
|
|
52
|
-
export declare function encodeERC20Approve(guy: string, wad:
|
|
52
|
+
export declare function encodeERC20Approve(guy: string, wad: string): any;
|
|
53
53
|
/**
|
|
54
54
|
* encode transferFrom
|
|
55
55
|
* @param {string} src - address
|
|
56
56
|
* @param {string} dst - address
|
|
57
|
-
* @param {
|
|
57
|
+
* @param {string} wad - uint256
|
|
58
58
|
* @returns {string} encode data
|
|
59
59
|
*/
|
|
60
|
-
export declare function encodeERC20TransferFrom(src: string, dst: string, wad:
|
|
60
|
+
export declare function encodeERC20TransferFrom(src: string, dst: string, wad: string): any;
|
|
61
61
|
/**
|
|
62
62
|
* encode withdraw
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {string} wad - uint256
|
|
64
64
|
* @returns {string} encode data
|
|
65
65
|
*/
|
|
66
|
-
export declare function encodeERC20Withdraw(wad:
|
|
66
|
+
export declare function encodeERC20Withdraw(wad: string): any;
|
|
67
67
|
/**
|
|
68
68
|
* encode transfer
|
|
69
69
|
* @param {string} dst - address
|
|
70
|
-
* @param {
|
|
70
|
+
* @param {string} wad - uint256
|
|
71
71
|
* @returns {string} encode data
|
|
72
72
|
*/
|
|
73
|
-
export declare function encodeERC20Transfer(dst: string, wad:
|
|
73
|
+
export declare function encodeERC20Transfer(dst: string, wad: string): any;
|
|
74
74
|
/**
|
|
75
75
|
* encode deposit
|
|
76
76
|
|
|
@@ -110,12 +110,12 @@ export declare function fetchERC20MineV3TotalSupply(chainId: number, __to: strin
|
|
|
110
110
|
/**
|
|
111
111
|
* encode addRewardToken
|
|
112
112
|
* @param {string} rewardToken - address
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {
|
|
115
|
-
* @param {
|
|
113
|
+
* @param {string} rewardPerBlock - uint256
|
|
114
|
+
* @param {string} startBlock - uint256
|
|
115
|
+
* @param {string} endBlock - uint256
|
|
116
116
|
* @returns {string} encode data
|
|
117
117
|
*/
|
|
118
|
-
export declare function encodeERC20MineV3AddRewardToken(rewardToken: string, rewardPerBlock:
|
|
118
|
+
export declare function encodeERC20MineV3AddRewardToken(rewardToken: string, rewardPerBlock: string, startBlock: string, endBlock: string): any;
|
|
119
119
|
/**
|
|
120
120
|
* encode claimAllRewards
|
|
121
121
|
|
|
@@ -130,16 +130,16 @@ export declare function encodeERC20MineV3ClaimAllRewards(): any;
|
|
|
130
130
|
export declare function encodeERC20MineV3ClaimOwnership(): any;
|
|
131
131
|
/**
|
|
132
132
|
* encode claimReward
|
|
133
|
-
* @param {
|
|
133
|
+
* @param {string} i - uint256
|
|
134
134
|
* @returns {string} encode data
|
|
135
135
|
*/
|
|
136
|
-
export declare function encodeERC20MineV3ClaimReward(i:
|
|
136
|
+
export declare function encodeERC20MineV3ClaimReward(i: string): any;
|
|
137
137
|
/**
|
|
138
138
|
* encode deposit
|
|
139
|
-
* @param {
|
|
139
|
+
* @param {string} amount - uint256
|
|
140
140
|
* @returns {string} encode data
|
|
141
141
|
*/
|
|
142
|
-
export declare function encodeERC20MineV3Deposit(amount:
|
|
142
|
+
export declare function encodeERC20MineV3Deposit(amount: string): any;
|
|
143
143
|
/**
|
|
144
144
|
* encode directTransferOwnership
|
|
145
145
|
* @param {string} newOwner - address
|
|
@@ -161,18 +161,18 @@ export declare function encodeERC20MineV3Init(owner: string, token: string): any
|
|
|
161
161
|
export declare function encodeERC20MineV3InitOwner(newOwner: string): any;
|
|
162
162
|
/**
|
|
163
163
|
* encode setEndBlock
|
|
164
|
-
* @param {
|
|
165
|
-
* @param {
|
|
164
|
+
* @param {string} i - uint256
|
|
165
|
+
* @param {string} newEndBlock - uint256
|
|
166
166
|
* @returns {string} encode data
|
|
167
167
|
*/
|
|
168
|
-
export declare function encodeERC20MineV3SetEndBlock(i:
|
|
168
|
+
export declare function encodeERC20MineV3SetEndBlock(i: string, newEndBlock: string): any;
|
|
169
169
|
/**
|
|
170
170
|
* encode setReward
|
|
171
|
-
* @param {
|
|
172
|
-
* @param {
|
|
171
|
+
* @param {string} i - uint256
|
|
172
|
+
* @param {string} newRewardPerBlock - uint256
|
|
173
173
|
* @returns {string} encode data
|
|
174
174
|
*/
|
|
175
|
-
export declare function encodeERC20MineV3SetReward(i:
|
|
175
|
+
export declare function encodeERC20MineV3SetReward(i: string, newRewardPerBlock: string): any;
|
|
176
176
|
/**
|
|
177
177
|
* encode transferOwnership
|
|
178
178
|
* @param {string} newOwner - address
|
|
@@ -181,14 +181,14 @@ export declare function encodeERC20MineV3SetReward(i: number, newRewardPerBlock:
|
|
|
181
181
|
export declare function encodeERC20MineV3TransferOwnership(newOwner: string): any;
|
|
182
182
|
/**
|
|
183
183
|
* encode withdraw
|
|
184
|
-
* @param {
|
|
184
|
+
* @param {string} amount - uint256
|
|
185
185
|
* @returns {string} encode data
|
|
186
186
|
*/
|
|
187
|
-
export declare function encodeERC20MineV3Withdraw(amount:
|
|
187
|
+
export declare function encodeERC20MineV3Withdraw(amount: string): any;
|
|
188
188
|
/**
|
|
189
189
|
* encode withdrawLeftOver
|
|
190
|
-
* @param {
|
|
191
|
-
* @param {
|
|
190
|
+
* @param {string} i - uint256
|
|
191
|
+
* @param {string} amount - uint256
|
|
192
192
|
* @returns {string} encode data
|
|
193
193
|
*/
|
|
194
|
-
export declare function encodeERC20MineV3WithdrawLeftOver(i:
|
|
194
|
+
export declare function encodeERC20MineV3WithdrawLeftOver(i: string, amount: string): any;
|
|
@@ -76,10 +76,10 @@ export declare function fetchERC20V3Factory_USER_STD_REGISTRY_(chainId: number,
|
|
|
76
76
|
export declare function fetchERC20V3FactoryGetTokenByUser(chainId: number, user: string): any;
|
|
77
77
|
/**
|
|
78
78
|
* encode changeCreateFee
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {string} newFee - uint256
|
|
80
80
|
* @returns {string} encode data
|
|
81
81
|
*/
|
|
82
|
-
export declare function encodeERC20V3FactoryChangeCreateFee(newFee:
|
|
82
|
+
export declare function encodeERC20V3FactoryChangeCreateFee(newFee: string): any;
|
|
83
83
|
/**
|
|
84
84
|
* encode claimOwnership
|
|
85
85
|
|
|
@@ -88,37 +88,37 @@ export declare function encodeERC20V3FactoryChangeCreateFee(newFee: number): any
|
|
|
88
88
|
export declare function encodeERC20V3FactoryClaimOwnership(): any;
|
|
89
89
|
/**
|
|
90
90
|
* encode createCustomERC20
|
|
91
|
-
* @param {
|
|
91
|
+
* @param {string} totalSupply - uint256
|
|
92
92
|
* @param {string} name - string
|
|
93
93
|
* @param {string} symbol - string
|
|
94
|
-
* @param {
|
|
95
|
-
* @param {
|
|
96
|
-
* @param {
|
|
94
|
+
* @param {string} decimals - uint8
|
|
95
|
+
* @param {string} tradeBurnRatio - uint256
|
|
96
|
+
* @param {string} tradeFeeRatio - uint256
|
|
97
97
|
* @param {string} teamAccount - address
|
|
98
98
|
* @returns {string} encode data
|
|
99
99
|
*/
|
|
100
|
-
export declare function encodeERC20V3FactoryCreateCustomERC20(totalSupply:
|
|
100
|
+
export declare function encodeERC20V3FactoryCreateCustomERC20(totalSupply: string, name: string, symbol: string, decimals: string, tradeBurnRatio: string, tradeFeeRatio: string, teamAccount: string): any;
|
|
101
101
|
/**
|
|
102
102
|
* encode createCustomMintableERC20
|
|
103
|
-
* @param {
|
|
103
|
+
* @param {string} initSupply - uint256
|
|
104
104
|
* @param {string} name - string
|
|
105
105
|
* @param {string} symbol - string
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {
|
|
106
|
+
* @param {string} decimals - uint8
|
|
107
|
+
* @param {string} tradeBurnRatio - uint256
|
|
108
|
+
* @param {string} tradeFeeRatio - uint256
|
|
109
109
|
* @param {string} teamAccount - address
|
|
110
110
|
* @returns {string} encode data
|
|
111
111
|
*/
|
|
112
|
-
export declare function encodeERC20V3FactoryCreateCustomMintableERC20(initSupply:
|
|
112
|
+
export declare function encodeERC20V3FactoryCreateCustomMintableERC20(initSupply: string, name: string, symbol: string, decimals: string, tradeBurnRatio: string, tradeFeeRatio: string, teamAccount: string): any;
|
|
113
113
|
/**
|
|
114
114
|
* encode createStdERC20
|
|
115
|
-
* @param {
|
|
115
|
+
* @param {string} totalSupply - uint256
|
|
116
116
|
* @param {string} name - string
|
|
117
117
|
* @param {string} symbol - string
|
|
118
|
-
* @param {
|
|
118
|
+
* @param {string} decimals - uint8
|
|
119
119
|
* @returns {string} encode data
|
|
120
120
|
*/
|
|
121
|
-
export declare function encodeERC20V3FactoryCreateStdERC20(totalSupply:
|
|
121
|
+
export declare function encodeERC20V3FactoryCreateStdERC20(totalSupply: string, name: string, symbol: string, decimals: string): any;
|
|
122
122
|
/**
|
|
123
123
|
* encode initOwner
|
|
124
124
|
* @param {string} newOwner - address
|
|
@@ -81,12 +81,12 @@ export declare function encodeFeeRateDIP3ImplAddAdminList(userAddr: string): any
|
|
|
81
81
|
* encode addCpPoolInfo
|
|
82
82
|
* @param {string} cpPool - address
|
|
83
83
|
* @param {string} quoteToken - address
|
|
84
|
-
* @param {
|
|
84
|
+
* @param {string} globalQuota - int256
|
|
85
85
|
* @param {string} feeAddr - address
|
|
86
86
|
* @param {string} quotaAddr - address
|
|
87
87
|
* @returns {string} encode data
|
|
88
88
|
*/
|
|
89
|
-
export declare function encodeFeeRateDIP3ImplAddCpPoolInfo(cpPool: string, quoteToken: string, globalQuota:
|
|
89
|
+
export declare function encodeFeeRateDIP3ImplAddCpPoolInfo(cpPool: string, quoteToken: string, globalQuota: string, feeAddr: string, quotaAddr: string): any;
|
|
90
90
|
/**
|
|
91
91
|
* encode claimOwnership
|
|
92
92
|
|
|
@@ -109,12 +109,12 @@ export declare function encodeFeeRateDIP3ImplRemoveAdminList(userAddr: string):
|
|
|
109
109
|
* encode setCpPoolInfo
|
|
110
110
|
* @param {string} cpPool - address
|
|
111
111
|
* @param {string} quoteToken - address
|
|
112
|
-
* @param {
|
|
112
|
+
* @param {string} globalQuota - int256
|
|
113
113
|
* @param {string} feeAddr - address
|
|
114
114
|
* @param {string} quotaAddr - address
|
|
115
115
|
* @returns {string} encode data
|
|
116
116
|
*/
|
|
117
|
-
export declare function encodeFeeRateDIP3ImplSetCpPoolInfo(cpPool: string, quoteToken: string, globalQuota:
|
|
117
|
+
export declare function encodeFeeRateDIP3ImplSetCpPoolInfo(cpPool: string, quoteToken: string, globalQuota: string, feeAddr: string, quotaAddr: string): any;
|
|
118
118
|
/**
|
|
119
119
|
* encode setCpPoolQuotaAddr
|
|
120
120
|
* @param {string} cpPool - address
|
|
@@ -124,10 +124,10 @@ export declare function encodeFeeRateDIP3ImplSetCpPoolInfo(cpPool: string, quote
|
|
|
124
124
|
export declare function encodeFeeRateDIP3ImplSetCpPoolQuotaAddr(cpPool: string, quotaAddr: string): any;
|
|
125
125
|
/**
|
|
126
126
|
* encode setLpMtRatio
|
|
127
|
-
* @param {
|
|
127
|
+
* @param {string} newLpMtRatio - uint256
|
|
128
128
|
* @returns {string} encode data
|
|
129
129
|
*/
|
|
130
|
-
export declare function encodeFeeRateDIP3ImplSetLpMtRatio(newLpMtRatio:
|
|
130
|
+
export declare function encodeFeeRateDIP3ImplSetLpMtRatio(newLpMtRatio: string): any;
|
|
131
131
|
/**
|
|
132
132
|
* encode setPoolHeartBeat
|
|
133
133
|
* @param {string} newPoolHeartBeat - address
|
|
@@ -137,10 +137,10 @@ export declare function encodeFeeRateDIP3ImplSetPoolHeartBeat(newPoolHeartBeat:
|
|
|
137
137
|
/**
|
|
138
138
|
* encode setSpecPoolList
|
|
139
139
|
* @param {string} poolAddr - address
|
|
140
|
-
* @param {
|
|
140
|
+
* @param {string} mtFeeRate - uint256
|
|
141
141
|
* @returns {string} encode data
|
|
142
142
|
*/
|
|
143
|
-
export declare function encodeFeeRateDIP3ImplSetSpecPoolList(poolAddr: string, mtFeeRate:
|
|
143
|
+
export declare function encodeFeeRateDIP3ImplSetSpecPoolList(poolAddr: string, mtFeeRate: string): any;
|
|
144
144
|
/**
|
|
145
145
|
* encode transferOwnership
|
|
146
146
|
* @param {string} newOwner - address
|
|
@@ -312,41 +312,41 @@ export declare function fetchGSPTotalSupply(chainId: number, __to: string): any;
|
|
|
312
312
|
export declare function fetchGSPVersion(chainId: number, __to: string): any;
|
|
313
313
|
/**
|
|
314
314
|
* encode adjustK
|
|
315
|
-
* @param {
|
|
315
|
+
* @param {string} k - uint256
|
|
316
316
|
* @returns {string} encode data
|
|
317
317
|
*/
|
|
318
|
-
export declare function encodeGSPAdjustK(k:
|
|
318
|
+
export declare function encodeGSPAdjustK(k: string): any;
|
|
319
319
|
/**
|
|
320
320
|
* encode adjustLpFeeRate
|
|
321
|
-
* @param {
|
|
321
|
+
* @param {string} lpFeeRate - uint256
|
|
322
322
|
* @returns {string} encode data
|
|
323
323
|
*/
|
|
324
|
-
export declare function encodeGSPAdjustLpFeeRate(lpFeeRate:
|
|
324
|
+
export declare function encodeGSPAdjustLpFeeRate(lpFeeRate: string): any;
|
|
325
325
|
/**
|
|
326
326
|
* encode adjustMtFeeRate
|
|
327
|
-
* @param {
|
|
327
|
+
* @param {string} mtFeeRate - uint256
|
|
328
328
|
* @returns {string} encode data
|
|
329
329
|
*/
|
|
330
|
-
export declare function encodeGSPAdjustMtFeeRate(mtFeeRate:
|
|
330
|
+
export declare function encodeGSPAdjustMtFeeRate(mtFeeRate: string): any;
|
|
331
331
|
/**
|
|
332
332
|
* encode adjustPrice
|
|
333
|
-
* @param {
|
|
333
|
+
* @param {string} i - uint256
|
|
334
334
|
* @returns {string} encode data
|
|
335
335
|
*/
|
|
336
|
-
export declare function encodeGSPAdjustPrice(i:
|
|
336
|
+
export declare function encodeGSPAdjustPrice(i: string): any;
|
|
337
337
|
/**
|
|
338
338
|
* encode adjustPriceLimit
|
|
339
|
-
* @param {
|
|
339
|
+
* @param {string} priceLimit - uint256
|
|
340
340
|
* @returns {string} encode data
|
|
341
341
|
*/
|
|
342
|
-
export declare function encodeGSPAdjustPriceLimit(priceLimit:
|
|
342
|
+
export declare function encodeGSPAdjustPriceLimit(priceLimit: string): any;
|
|
343
343
|
/**
|
|
344
344
|
* encode approve
|
|
345
345
|
* @param {string} spender - address
|
|
346
|
-
* @param {
|
|
346
|
+
* @param {string} amount - uint256
|
|
347
347
|
* @returns {string} encode data
|
|
348
348
|
*/
|
|
349
|
-
export declare function encodeGSPApprove(spender: string, amount:
|
|
349
|
+
export declare function encodeGSPApprove(spender: string, amount: string): any;
|
|
350
350
|
/**
|
|
351
351
|
* encode buildDomainSeparator
|
|
352
352
|
|
|
@@ -367,40 +367,40 @@ export declare function encodeGSPBuyShares(to: string): any;
|
|
|
367
367
|
export declare function encodeGSPCorrectRState(): any;
|
|
368
368
|
/**
|
|
369
369
|
* encode flashLoan
|
|
370
|
-
* @param {
|
|
371
|
-
* @param {
|
|
370
|
+
* @param {string} baseAmount - uint256
|
|
371
|
+
* @param {string} quoteAmount - uint256
|
|
372
372
|
* @param {string} assetTo - address
|
|
373
373
|
* @param {string} data - bytes
|
|
374
374
|
* @returns {string} encode data
|
|
375
375
|
*/
|
|
376
|
-
export declare function encodeGSPFlashLoan(baseAmount:
|
|
376
|
+
export declare function encodeGSPFlashLoan(baseAmount: string, quoteAmount: string, assetTo: string, data: string): any;
|
|
377
377
|
/**
|
|
378
378
|
* encode init
|
|
379
379
|
* @param {string} maintainer - address
|
|
380
380
|
* @param {string} admin - address
|
|
381
381
|
* @param {string} baseTokenAddress - address
|
|
382
382
|
* @param {string} quoteTokenAddress - address
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {
|
|
385
|
-
* @param {
|
|
386
|
-
* @param {
|
|
387
|
-
* @param {
|
|
383
|
+
* @param {string} lpFeeRate - uint256
|
|
384
|
+
* @param {string} mtFeeRate - uint256
|
|
385
|
+
* @param {string} i - uint256
|
|
386
|
+
* @param {string} k - uint256
|
|
387
|
+
* @param {string} priceLimit - uint256
|
|
388
388
|
* @param {boolean} isOpenTWAP - bool
|
|
389
389
|
* @returns {string} encode data
|
|
390
390
|
*/
|
|
391
|
-
export declare function encodeGSPInit(maintainer: string, admin: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate:
|
|
391
|
+
export declare function encodeGSPInit(maintainer: string, admin: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string, mtFeeRate: string, i: string, k: string, priceLimit: string, isOpenTWAP: boolean): any;
|
|
392
392
|
/**
|
|
393
393
|
* encode permit
|
|
394
394
|
* @param {string} owner - address
|
|
395
395
|
* @param {string} spender - address
|
|
396
|
-
* @param {
|
|
397
|
-
* @param {
|
|
398
|
-
* @param {
|
|
396
|
+
* @param {string} value - uint256
|
|
397
|
+
* @param {string} deadline - uint256
|
|
398
|
+
* @param {string} v - uint8
|
|
399
399
|
* @param {string} r - bytes32
|
|
400
400
|
* @param {string} s - bytes32
|
|
401
401
|
* @returns {string} encode data
|
|
402
402
|
*/
|
|
403
|
-
export declare function encodeGSPPermit(owner: string, spender: string, value:
|
|
403
|
+
export declare function encodeGSPPermit(owner: string, spender: string, value: string, deadline: string, v: string, r: string, s: string): any;
|
|
404
404
|
/**
|
|
405
405
|
* encode sellBase
|
|
406
406
|
* @param {string} to - address
|
|
@@ -415,15 +415,15 @@ export declare function encodeGSPSellBase(to: string): any;
|
|
|
415
415
|
export declare function encodeGSPSellQuote(to: string): any;
|
|
416
416
|
/**
|
|
417
417
|
* encode sellShares
|
|
418
|
-
* @param {
|
|
418
|
+
* @param {string} shareAmount - uint256
|
|
419
419
|
* @param {string} to - address
|
|
420
|
-
* @param {
|
|
421
|
-
* @param {
|
|
420
|
+
* @param {string} baseMinAmount - uint256
|
|
421
|
+
* @param {string} quoteMinAmount - uint256
|
|
422
422
|
* @param {string} data - bytes
|
|
423
|
-
* @param {
|
|
423
|
+
* @param {string} deadline - uint256
|
|
424
424
|
* @returns {string} encode data
|
|
425
425
|
*/
|
|
426
|
-
export declare function encodeGSPSellShares(shareAmount:
|
|
426
|
+
export declare function encodeGSPSellShares(shareAmount: string, to: string, baseMinAmount: string, quoteMinAmount: string, data: string, deadline: string): any;
|
|
427
427
|
/**
|
|
428
428
|
* encode sync
|
|
429
429
|
|
|
@@ -433,18 +433,18 @@ export declare function encodeGSPSync(): any;
|
|
|
433
433
|
/**
|
|
434
434
|
* encode transfer
|
|
435
435
|
* @param {string} to - address
|
|
436
|
-
* @param {
|
|
436
|
+
* @param {string} amount - uint256
|
|
437
437
|
* @returns {string} encode data
|
|
438
438
|
*/
|
|
439
|
-
export declare function encodeGSPTransfer(to: string, amount:
|
|
439
|
+
export declare function encodeGSPTransfer(to: string, amount: string): any;
|
|
440
440
|
/**
|
|
441
441
|
* encode transferFrom
|
|
442
442
|
* @param {string} from - address
|
|
443
443
|
* @param {string} to - address
|
|
444
|
-
* @param {
|
|
444
|
+
* @param {string} amount - uint256
|
|
445
445
|
* @returns {string} encode data
|
|
446
446
|
*/
|
|
447
|
-
export declare function encodeGSPTransferFrom(from: string, to: string, amount:
|
|
447
|
+
export declare function encodeGSPTransferFrom(from: string, to: string, amount: string): any;
|
|
448
448
|
/**
|
|
449
449
|
* encode withdrawMtFeeTotal
|
|
450
450
|
|