@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
|
@@ -90,15 +90,15 @@ export declare function encodeGSPFactoryClaimOwnership(): any;
|
|
|
90
90
|
* @param {string} admin - address
|
|
91
91
|
* @param {string} baseToken - address
|
|
92
92
|
* @param {string} quoteToken - address
|
|
93
|
-
* @param {
|
|
94
|
-
* @param {
|
|
95
|
-
* @param {
|
|
96
|
-
* @param {
|
|
97
|
-
* @param {
|
|
93
|
+
* @param {string} lpFeeRate - uint256
|
|
94
|
+
* @param {string} mtFeeRate - uint256
|
|
95
|
+
* @param {string} i - uint256
|
|
96
|
+
* @param {string} k - uint256
|
|
97
|
+
* @param {string} priceLimit - uint256
|
|
98
98
|
* @param {boolean} isOpenTWAP - bool
|
|
99
99
|
* @returns {string} encode data
|
|
100
100
|
*/
|
|
101
|
-
export declare function encodeGSPFactoryCreateDODOGasSavingPool(admin: string, baseToken: string, quoteToken: string, lpFeeRate:
|
|
101
|
+
export declare function encodeGSPFactoryCreateDODOGasSavingPool(admin: string, baseToken: string, quoteToken: string, lpFeeRate: string, mtFeeRate: string, i: string, k: string, priceLimit: string, isOpenTWAP: boolean): any;
|
|
102
102
|
/**
|
|
103
103
|
* encode initOwner
|
|
104
104
|
* @param {string} newOwner - address
|
|
@@ -53,32 +53,32 @@ export declare function fetchInitializableERC20TotalSupply(chainId: number, __to
|
|
|
53
53
|
/**
|
|
54
54
|
* encode approve
|
|
55
55
|
* @param {string} spender - address
|
|
56
|
-
* @param {
|
|
56
|
+
* @param {string} amount - uint256
|
|
57
57
|
* @returns {string} encode data
|
|
58
58
|
*/
|
|
59
|
-
export declare function encodeInitializableERC20Approve(spender: string, amount:
|
|
59
|
+
export declare function encodeInitializableERC20Approve(spender: string, amount: string): any;
|
|
60
60
|
/**
|
|
61
61
|
* encode init
|
|
62
62
|
* @param {string} _creator - address
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {string} _totalSupply - uint256
|
|
64
64
|
* @param {string} _name - string
|
|
65
65
|
* @param {string} _symbol - string
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {string} _decimals - uint8
|
|
67
67
|
* @returns {string} encode data
|
|
68
68
|
*/
|
|
69
|
-
export declare function encodeInitializableERC20Init(_creator: string, _totalSupply:
|
|
69
|
+
export declare function encodeInitializableERC20Init(_creator: string, _totalSupply: string, _name: string, _symbol: string, _decimals: string): any;
|
|
70
70
|
/**
|
|
71
71
|
* encode transfer
|
|
72
72
|
* @param {string} to - address
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {string} amount - uint256
|
|
74
74
|
* @returns {string} encode data
|
|
75
75
|
*/
|
|
76
|
-
export declare function encodeInitializableERC20Transfer(to: string, amount:
|
|
76
|
+
export declare function encodeInitializableERC20Transfer(to: string, amount: string): any;
|
|
77
77
|
/**
|
|
78
78
|
* encode transferFrom
|
|
79
79
|
* @param {string} from - address
|
|
80
80
|
* @param {string} to - address
|
|
81
|
-
* @param {
|
|
81
|
+
* @param {string} amount - uint256
|
|
82
82
|
* @returns {string} encode data
|
|
83
83
|
*/
|
|
84
|
-
export declare function encodeInitializableERC20TransferFrom(from: string, to: string, amount:
|
|
84
|
+
export declare function encodeInitializableERC20TransferFrom(from: string, to: string, amount: string): any;
|
|
@@ -90,23 +90,23 @@ export declare function encodeLimitOrderChangeFeeReceiver(newFeeReceiver: string
|
|
|
90
90
|
export declare function encodeLimitOrderClaimOwnership(): any;
|
|
91
91
|
/**
|
|
92
92
|
* encode fillLimitOrder
|
|
93
|
-
* @param {{makerToken: string; takerToken: string; makerAmount:
|
|
93
|
+
* @param {{makerToken: string; takerToken: string; makerAmount: string; takerAmount: string; maker: string; taker: string; expiration: string; salt: string}} order - tuple
|
|
94
94
|
* @param {string} signature - bytes
|
|
95
|
-
* @param {
|
|
96
|
-
* @param {
|
|
95
|
+
* @param {string} takerFillAmount - uint256
|
|
96
|
+
* @param {string} thresholdTakerAmount - uint256
|
|
97
97
|
* @param {string} takerInteraction - bytes
|
|
98
98
|
* @returns {string} encode data
|
|
99
99
|
*/
|
|
100
100
|
export declare function encodeLimitOrderFillLimitOrder(order: {
|
|
101
101
|
makerToken: string;
|
|
102
102
|
takerToken: string;
|
|
103
|
-
makerAmount:
|
|
104
|
-
takerAmount:
|
|
103
|
+
makerAmount: string;
|
|
104
|
+
takerAmount: string;
|
|
105
105
|
maker: string;
|
|
106
106
|
taker: string;
|
|
107
|
-
expiration:
|
|
108
|
-
salt:
|
|
109
|
-
}, signature: string, takerFillAmount:
|
|
107
|
+
expiration: string;
|
|
108
|
+
salt: string;
|
|
109
|
+
}, signature: string, takerFillAmount: string, thresholdTakerAmount: string, takerInteraction: string): any;
|
|
110
110
|
/**
|
|
111
111
|
* encode init
|
|
112
112
|
* @param {string} owner - address
|
|
@@ -123,27 +123,27 @@ export declare function encodeLimitOrderInit(owner: string, dodoApproveProxy: st
|
|
|
123
123
|
export declare function encodeLimitOrderInitOwner(newOwner: string): any;
|
|
124
124
|
/**
|
|
125
125
|
* encode matchingRFQByPlatform
|
|
126
|
-
* @param {{makerToken: string; takerToken: string; makerAmount:
|
|
126
|
+
* @param {{makerToken: string; takerToken: string; makerAmount: string; takerAmount: string; makerTokenFeeAmount: string; takerFillAmount: string; maker: string; taker: string; expiration: string; slot: string}} order - tuple
|
|
127
127
|
* @param {string} makerSignature - bytes
|
|
128
128
|
* @param {string} takerSignature - bytes
|
|
129
|
-
* @param {
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {
|
|
129
|
+
* @param {string} takerFillAmount - uint256
|
|
130
|
+
* @param {string} thresholdMakerAmount - uint256
|
|
131
|
+
* @param {string} makerTokenFeeAmount - uint256
|
|
132
132
|
* @param {string} taker - address
|
|
133
133
|
* @returns {string} encode data
|
|
134
134
|
*/
|
|
135
135
|
export declare function encodeLimitOrderMatchingRFQByPlatform(order: {
|
|
136
136
|
makerToken: string;
|
|
137
137
|
takerToken: string;
|
|
138
|
-
makerAmount:
|
|
139
|
-
takerAmount:
|
|
140
|
-
makerTokenFeeAmount:
|
|
141
|
-
takerFillAmount:
|
|
138
|
+
makerAmount: string;
|
|
139
|
+
takerAmount: string;
|
|
140
|
+
makerTokenFeeAmount: string;
|
|
141
|
+
takerFillAmount: string;
|
|
142
142
|
maker: string;
|
|
143
143
|
taker: string;
|
|
144
|
-
expiration:
|
|
145
|
-
slot:
|
|
146
|
-
}, makerSignature: string, takerSignature: string, takerFillAmount:
|
|
144
|
+
expiration: string;
|
|
145
|
+
slot: string;
|
|
146
|
+
}, makerSignature: string, takerSignature: string, takerFillAmount: string, thresholdMakerAmount: string, makerTokenFeeAmount: string, taker: string): any;
|
|
147
147
|
/**
|
|
148
148
|
* encode removeAdminList
|
|
149
149
|
* @param {string} userAddr - address
|
|
@@ -56,23 +56,23 @@ export declare function encodeLimitOrderBotChangeTokenReceiver(newTokenReceiver:
|
|
|
56
56
|
export declare function encodeLimitOrderBotClaimOwnership(): any;
|
|
57
57
|
/**
|
|
58
58
|
* encode doLimitOrderSwap
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {
|
|
59
|
+
* @param {string} curTakerFillAmount - uint256
|
|
60
|
+
* @param {string} curMakerFillAmount - uint256
|
|
61
61
|
* @param {string} makerToken - address
|
|
62
62
|
* @param {string} takerToken - address
|
|
63
63
|
* @param {string} dodoRouteProxy - address
|
|
64
64
|
* @param {string} dodoApiData - bytes
|
|
65
65
|
* @returns {string} encode data
|
|
66
66
|
*/
|
|
67
|
-
export declare function encodeLimitOrderBotDoLimitOrderSwap(curTakerFillAmount:
|
|
67
|
+
export declare function encodeLimitOrderBotDoLimitOrderSwap(curTakerFillAmount: string, curMakerFillAmount: string, makerToken: string, takerToken: string, dodoRouteProxy: string, dodoApiData: string): any;
|
|
68
68
|
/**
|
|
69
69
|
* encode fillDODOLimitOrder
|
|
70
70
|
* @param {string} callExternalData - bytes
|
|
71
71
|
* @param {string} takerToken - address
|
|
72
|
-
* @param {
|
|
72
|
+
* @param {string} minTakerTokenAmount - uint256
|
|
73
73
|
* @returns {string} encode data
|
|
74
74
|
*/
|
|
75
|
-
export declare function encodeLimitOrderBotFillDODOLimitOrder(callExternalData: string, takerToken: string, minTakerTokenAmount:
|
|
75
|
+
export declare function encodeLimitOrderBotFillDODOLimitOrder(callExternalData: string, takerToken: string, minTakerTokenAmount: string): any;
|
|
76
76
|
/**
|
|
77
77
|
* encode init
|
|
78
78
|
* @param {string} owner - address
|
|
@@ -37,10 +37,10 @@ export declare function fetchUniswapV2FactoryGetPair(chainId: number, __input1:
|
|
|
37
37
|
* encode createPair
|
|
38
38
|
* @param {string} tokenA - address
|
|
39
39
|
* @param {string} tokenB - address
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {string} feeRate - uint256
|
|
41
41
|
* @returns {string} encode data
|
|
42
42
|
*/
|
|
43
|
-
export declare function encodeUniswapV2FactoryCreatePair(tokenA: string, tokenB: string, feeRate:
|
|
43
|
+
export declare function encodeUniswapV2FactoryCreatePair(tokenA: string, tokenB: string, feeRate: string): any;
|
|
44
44
|
/**
|
|
45
45
|
* encode setFeeTo
|
|
46
46
|
* @param {string} _feeTo - address
|
|
@@ -56,7 +56,7 @@ export declare function encodeUniswapV2FactorySetFeeToSetter(_feeToSetter: strin
|
|
|
56
56
|
/**
|
|
57
57
|
* encode setLpMtRatio
|
|
58
58
|
* @param {string} pool - address
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {string} ratio - uint256
|
|
60
60
|
* @returns {string} encode data
|
|
61
61
|
*/
|
|
62
|
-
export declare function encodeUniswapV2FactorySetLpMtRatio(pool: string, ratio:
|
|
62
|
+
export declare function encodeUniswapV2FactorySetLpMtRatio(pool: string, ratio: string): any;
|
|
@@ -62,211 +62,211 @@ export declare function fetchUniswapV2Router02Quote(chainId: number, amountA: nu
|
|
|
62
62
|
* encode addLiquidity
|
|
63
63
|
* @param {string} tokenA - address
|
|
64
64
|
* @param {string} tokenB - address
|
|
65
|
-
* @param {
|
|
66
|
-
* @param {
|
|
67
|
-
* @param {
|
|
68
|
-
* @param {
|
|
69
|
-
* @param {
|
|
65
|
+
* @param {string} fee - uint256
|
|
66
|
+
* @param {string} amountADesired - uint256
|
|
67
|
+
* @param {string} amountBDesired - uint256
|
|
68
|
+
* @param {string} amountAMin - uint256
|
|
69
|
+
* @param {string} amountBMin - uint256
|
|
70
70
|
* @param {string} to - address
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {string} deadline - uint256
|
|
72
72
|
* @returns {string} encode data
|
|
73
73
|
*/
|
|
74
|
-
export declare function encodeUniswapV2Router02AddLiquidity(tokenA: string, tokenB: string, fee:
|
|
74
|
+
export declare function encodeUniswapV2Router02AddLiquidity(tokenA: string, tokenB: string, fee: string, amountADesired: string, amountBDesired: string, amountAMin: string, amountBMin: string, to: string, deadline: string): any;
|
|
75
75
|
/**
|
|
76
76
|
* encode addLiquidityETH
|
|
77
77
|
* @param {string} token - address
|
|
78
|
-
* @param {
|
|
79
|
-
* @param {
|
|
80
|
-
* @param {
|
|
81
|
-
* @param {
|
|
78
|
+
* @param {string} fee - uint256
|
|
79
|
+
* @param {string} amountTokenDesired - uint256
|
|
80
|
+
* @param {string} amountTokenMin - uint256
|
|
81
|
+
* @param {string} amountETHMin - uint256
|
|
82
82
|
* @param {string} to - address
|
|
83
|
-
* @param {
|
|
83
|
+
* @param {string} deadline - uint256
|
|
84
84
|
* @returns {string} encode data
|
|
85
85
|
*/
|
|
86
|
-
export declare function encodeUniswapV2Router02AddLiquidityETH(token: string, fee:
|
|
86
|
+
export declare function encodeUniswapV2Router02AddLiquidityETH(token: string, fee: string, amountTokenDesired: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string): any;
|
|
87
87
|
/**
|
|
88
88
|
* encode removeLiquidity
|
|
89
89
|
* @param {string} tokenA - address
|
|
90
90
|
* @param {string} tokenB - address
|
|
91
|
-
* @param {
|
|
92
|
-
* @param {
|
|
93
|
-
* @param {
|
|
94
|
-
* @param {
|
|
91
|
+
* @param {string} fee - uint256
|
|
92
|
+
* @param {string} liquidity - uint256
|
|
93
|
+
* @param {string} amountAMin - uint256
|
|
94
|
+
* @param {string} amountBMin - uint256
|
|
95
95
|
* @param {string} to - address
|
|
96
|
-
* @param {
|
|
96
|
+
* @param {string} deadline - uint256
|
|
97
97
|
* @returns {string} encode data
|
|
98
98
|
*/
|
|
99
|
-
export declare function encodeUniswapV2Router02RemoveLiquidity(tokenA: string, tokenB: string, fee:
|
|
99
|
+
export declare function encodeUniswapV2Router02RemoveLiquidity(tokenA: string, tokenB: string, fee: string, liquidity: string, amountAMin: string, amountBMin: string, to: string, deadline: string): any;
|
|
100
100
|
/**
|
|
101
101
|
* encode removeLiquidityETH
|
|
102
102
|
* @param {string} token - address
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
103
|
+
* @param {string} fee - uint256
|
|
104
|
+
* @param {string} liquidity - uint256
|
|
105
|
+
* @param {string} amountTokenMin - uint256
|
|
106
|
+
* @param {string} amountETHMin - uint256
|
|
107
107
|
* @param {string} to - address
|
|
108
|
-
* @param {
|
|
108
|
+
* @param {string} deadline - uint256
|
|
109
109
|
* @returns {string} encode data
|
|
110
110
|
*/
|
|
111
|
-
export declare function encodeUniswapV2Router02RemoveLiquidityETH(token: string, fee:
|
|
111
|
+
export declare function encodeUniswapV2Router02RemoveLiquidityETH(token: string, fee: string, liquidity: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string): any;
|
|
112
112
|
/**
|
|
113
113
|
* encode removeLiquidityETHSupportingFeeOnTransferTokens
|
|
114
114
|
* @param {string} token - address
|
|
115
|
-
* @param {
|
|
116
|
-
* @param {
|
|
117
|
-
* @param {
|
|
118
|
-
* @param {
|
|
115
|
+
* @param {string} fee - uint256
|
|
116
|
+
* @param {string} liquidity - uint256
|
|
117
|
+
* @param {string} amountTokenMin - uint256
|
|
118
|
+
* @param {string} amountETHMin - uint256
|
|
119
119
|
* @param {string} to - address
|
|
120
|
-
* @param {
|
|
120
|
+
* @param {string} deadline - uint256
|
|
121
121
|
* @returns {string} encode data
|
|
122
122
|
*/
|
|
123
|
-
export declare function encodeUniswapV2Router02RemoveLiquidityETHSupportingFeeOnTransferTokens(token: string, fee:
|
|
123
|
+
export declare function encodeUniswapV2Router02RemoveLiquidityETHSupportingFeeOnTransferTokens(token: string, fee: string, liquidity: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string): any;
|
|
124
124
|
/**
|
|
125
125
|
* encode removeLiquidityETHWithPermit
|
|
126
|
-
* @param {{token: string; fee:
|
|
126
|
+
* @param {{token: string; fee: string; liquidity: string; amountTokenMin: string; amountETHMin: string; to: string; deadline: string; approveMax: boolean; v: string; r: string; s: string}} params - tuple
|
|
127
127
|
* @returns {string} encode data
|
|
128
128
|
*/
|
|
129
129
|
export declare function encodeUniswapV2Router02RemoveLiquidityETHWithPermit(params: {
|
|
130
130
|
token: string;
|
|
131
|
-
fee:
|
|
132
|
-
liquidity:
|
|
133
|
-
amountTokenMin:
|
|
134
|
-
amountETHMin:
|
|
131
|
+
fee: string;
|
|
132
|
+
liquidity: string;
|
|
133
|
+
amountTokenMin: string;
|
|
134
|
+
amountETHMin: string;
|
|
135
135
|
to: string;
|
|
136
|
-
deadline:
|
|
136
|
+
deadline: string;
|
|
137
137
|
approveMax: boolean;
|
|
138
|
-
v:
|
|
138
|
+
v: string;
|
|
139
139
|
r: string;
|
|
140
140
|
s: string;
|
|
141
141
|
}): any;
|
|
142
142
|
/**
|
|
143
143
|
* encode removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
|
|
144
144
|
* @param {string} token - address
|
|
145
|
-
* @param {
|
|
146
|
-
* @param {
|
|
147
|
-
* @param {
|
|
148
|
-
* @param {
|
|
145
|
+
* @param {string} fee - uint256
|
|
146
|
+
* @param {string} liquidity - uint256
|
|
147
|
+
* @param {string} amountTokenMin - uint256
|
|
148
|
+
* @param {string} amountETHMin - uint256
|
|
149
149
|
* @param {string} to - address
|
|
150
|
-
* @param {
|
|
150
|
+
* @param {string} deadline - uint256
|
|
151
151
|
* @param {boolean} approveMax - bool
|
|
152
|
-
* @param {
|
|
152
|
+
* @param {string} v - uint8
|
|
153
153
|
* @param {string} r - bytes32
|
|
154
154
|
* @param {string} s - bytes32
|
|
155
155
|
* @returns {string} encode data
|
|
156
156
|
*/
|
|
157
|
-
export declare function encodeUniswapV2Router02RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token: string, fee:
|
|
157
|
+
export declare function encodeUniswapV2Router02RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token: string, fee: string, liquidity: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string, approveMax: boolean, v: string, r: string, s: string): any;
|
|
158
158
|
/**
|
|
159
159
|
* encode removeLiquidityWithPermit
|
|
160
|
-
* @param {{tokenA: string; tokenB: string; fee:
|
|
160
|
+
* @param {{tokenA: string; tokenB: string; fee: string; liquidity: string; amountAMin: string; amountBMin: string; to: string; deadline: string; approveMax: boolean; v: string; r: string; s: string}} params - tuple
|
|
161
161
|
* @returns {string} encode data
|
|
162
162
|
*/
|
|
163
163
|
export declare function encodeUniswapV2Router02RemoveLiquidityWithPermit(params: {
|
|
164
164
|
tokenA: string;
|
|
165
165
|
tokenB: string;
|
|
166
|
-
fee:
|
|
167
|
-
liquidity:
|
|
168
|
-
amountAMin:
|
|
169
|
-
amountBMin:
|
|
166
|
+
fee: string;
|
|
167
|
+
liquidity: string;
|
|
168
|
+
amountAMin: string;
|
|
169
|
+
amountBMin: string;
|
|
170
170
|
to: string;
|
|
171
|
-
deadline:
|
|
171
|
+
deadline: string;
|
|
172
172
|
approveMax: boolean;
|
|
173
|
-
v:
|
|
173
|
+
v: string;
|
|
174
174
|
r: string;
|
|
175
175
|
s: string;
|
|
176
176
|
}): any;
|
|
177
177
|
/**
|
|
178
178
|
* encode swapETHForExactTokens
|
|
179
|
-
* @param {
|
|
179
|
+
* @param {string} amountOut - uint256
|
|
180
180
|
* @param {Array<string>} path - address[]
|
|
181
|
-
* @param {Array<
|
|
181
|
+
* @param {Array<string>} fees - uint256[]
|
|
182
182
|
* @param {string} to - address
|
|
183
|
-
* @param {
|
|
183
|
+
* @param {string} deadline - uint256
|
|
184
184
|
* @returns {string} encode data
|
|
185
185
|
*/
|
|
186
|
-
export declare function encodeUniswapV2Router02SwapETHForExactTokens(amountOut:
|
|
186
|
+
export declare function encodeUniswapV2Router02SwapETHForExactTokens(amountOut: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
187
187
|
/**
|
|
188
188
|
* encode swapExactETHForTokens
|
|
189
|
-
* @param {
|
|
189
|
+
* @param {string} amountOutMin - uint256
|
|
190
190
|
* @param {Array<string>} path - address[]
|
|
191
|
-
* @param {Array<
|
|
191
|
+
* @param {Array<string>} fees - uint256[]
|
|
192
192
|
* @param {string} to - address
|
|
193
|
-
* @param {
|
|
193
|
+
* @param {string} deadline - uint256
|
|
194
194
|
* @returns {string} encode data
|
|
195
195
|
*/
|
|
196
|
-
export declare function encodeUniswapV2Router02SwapExactETHForTokens(amountOutMin:
|
|
196
|
+
export declare function encodeUniswapV2Router02SwapExactETHForTokens(amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
197
197
|
/**
|
|
198
198
|
* encode swapExactETHForTokensSupportingFeeOnTransferTokens
|
|
199
|
-
* @param {
|
|
199
|
+
* @param {string} amountOutMin - uint256
|
|
200
200
|
* @param {Array<string>} path - address[]
|
|
201
|
-
* @param {Array<
|
|
201
|
+
* @param {Array<string>} fees - uint256[]
|
|
202
202
|
* @param {string} to - address
|
|
203
|
-
* @param {
|
|
203
|
+
* @param {string} deadline - uint256
|
|
204
204
|
* @returns {string} encode data
|
|
205
205
|
*/
|
|
206
|
-
export declare function encodeUniswapV2Router02SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin:
|
|
206
|
+
export declare function encodeUniswapV2Router02SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
207
207
|
/**
|
|
208
208
|
* encode swapExactTokensForETH
|
|
209
|
-
* @param {
|
|
210
|
-
* @param {
|
|
209
|
+
* @param {string} amountIn - uint256
|
|
210
|
+
* @param {string} amountOutMin - uint256
|
|
211
211
|
* @param {Array<string>} path - address[]
|
|
212
|
-
* @param {Array<
|
|
212
|
+
* @param {Array<string>} fees - uint256[]
|
|
213
213
|
* @param {string} to - address
|
|
214
|
-
* @param {
|
|
214
|
+
* @param {string} deadline - uint256
|
|
215
215
|
* @returns {string} encode data
|
|
216
216
|
*/
|
|
217
|
-
export declare function encodeUniswapV2Router02SwapExactTokensForETH(amountIn:
|
|
217
|
+
export declare function encodeUniswapV2Router02SwapExactTokensForETH(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
218
218
|
/**
|
|
219
219
|
* encode swapExactTokensForETHSupportingFeeOnTransferTokens
|
|
220
|
-
* @param {
|
|
221
|
-
* @param {
|
|
220
|
+
* @param {string} amountIn - uint256
|
|
221
|
+
* @param {string} amountOutMin - uint256
|
|
222
222
|
* @param {Array<string>} path - address[]
|
|
223
|
-
* @param {Array<
|
|
223
|
+
* @param {Array<string>} fees - uint256[]
|
|
224
224
|
* @param {string} to - address
|
|
225
|
-
* @param {
|
|
225
|
+
* @param {string} deadline - uint256
|
|
226
226
|
* @returns {string} encode data
|
|
227
227
|
*/
|
|
228
|
-
export declare function encodeUniswapV2Router02SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn:
|
|
228
|
+
export declare function encodeUniswapV2Router02SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
229
229
|
/**
|
|
230
230
|
* encode swapExactTokensForTokens
|
|
231
|
-
* @param {
|
|
232
|
-
* @param {
|
|
231
|
+
* @param {string} amountIn - uint256
|
|
232
|
+
* @param {string} amountOutMin - uint256
|
|
233
233
|
* @param {Array<string>} path - address[]
|
|
234
|
-
* @param {Array<
|
|
234
|
+
* @param {Array<string>} fees - uint256[]
|
|
235
235
|
* @param {string} to - address
|
|
236
|
-
* @param {
|
|
236
|
+
* @param {string} deadline - uint256
|
|
237
237
|
* @returns {string} encode data
|
|
238
238
|
*/
|
|
239
|
-
export declare function encodeUniswapV2Router02SwapExactTokensForTokens(amountIn:
|
|
239
|
+
export declare function encodeUniswapV2Router02SwapExactTokensForTokens(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
240
240
|
/**
|
|
241
241
|
* encode swapExactTokensForTokensSupportingFeeOnTransferTokens
|
|
242
|
-
* @param {
|
|
243
|
-
* @param {
|
|
242
|
+
* @param {string} amountIn - uint256
|
|
243
|
+
* @param {string} amountOutMin - uint256
|
|
244
244
|
* @param {Array<string>} path - address[]
|
|
245
|
-
* @param {Array<
|
|
245
|
+
* @param {Array<string>} fees - uint256[]
|
|
246
246
|
* @param {string} to - address
|
|
247
|
-
* @param {
|
|
247
|
+
* @param {string} deadline - uint256
|
|
248
248
|
* @returns {string} encode data
|
|
249
249
|
*/
|
|
250
|
-
export declare function encodeUniswapV2Router02SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn:
|
|
250
|
+
export declare function encodeUniswapV2Router02SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
251
251
|
/**
|
|
252
252
|
* encode swapTokensForExactETH
|
|
253
|
-
* @param {
|
|
254
|
-
* @param {
|
|
253
|
+
* @param {string} amountOut - uint256
|
|
254
|
+
* @param {string} amountInMax - uint256
|
|
255
255
|
* @param {Array<string>} path - address[]
|
|
256
|
-
* @param {Array<
|
|
256
|
+
* @param {Array<string>} fees - uint256[]
|
|
257
257
|
* @param {string} to - address
|
|
258
|
-
* @param {
|
|
258
|
+
* @param {string} deadline - uint256
|
|
259
259
|
* @returns {string} encode data
|
|
260
260
|
*/
|
|
261
|
-
export declare function encodeUniswapV2Router02SwapTokensForExactETH(amountOut:
|
|
261
|
+
export declare function encodeUniswapV2Router02SwapTokensForExactETH(amountOut: string, amountInMax: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
262
262
|
/**
|
|
263
263
|
* encode swapTokensForExactTokens
|
|
264
|
-
* @param {
|
|
265
|
-
* @param {
|
|
264
|
+
* @param {string} amountOut - uint256
|
|
265
|
+
* @param {string} amountInMax - uint256
|
|
266
266
|
* @param {Array<string>} path - address[]
|
|
267
|
-
* @param {Array<
|
|
267
|
+
* @param {Array<string>} fees - uint256[]
|
|
268
268
|
* @param {string} to - address
|
|
269
|
-
* @param {
|
|
269
|
+
* @param {string} deadline - uint256
|
|
270
270
|
* @returns {string} encode data
|
|
271
271
|
*/
|
|
272
|
-
export declare function encodeUniswapV2Router02SwapTokensForExactTokens(amountOut:
|
|
272
|
+
export declare function encodeUniswapV2Router02SwapTokensForExactTokens(amountOut: string, amountInMax: string, path: Array<string>, fees: Array<string>, to: string, deadline: string): any;
|
|
@@ -114,10 +114,10 @@ export declare function fetchDodoTeamSignedMessages(chainId: number, __input1: s
|
|
|
114
114
|
/**
|
|
115
115
|
* encode addOwnerWithThreshold
|
|
116
116
|
* @param {string} owner - address
|
|
117
|
-
* @param {
|
|
117
|
+
* @param {string} _threshold - uint256
|
|
118
118
|
* @returns {string} encode data
|
|
119
119
|
*/
|
|
120
|
-
export declare function encodeDodoTeamAddOwnerWithThreshold(owner: string, _threshold:
|
|
120
|
+
export declare function encodeDodoTeamAddOwnerWithThreshold(owner: string, _threshold: string): any;
|
|
121
121
|
/**
|
|
122
122
|
* encode approveHash
|
|
123
123
|
* @param {string} hashToApprove - bytes32
|
|
@@ -132,10 +132,10 @@ export declare function encodeDodoTeamApproveHash(hashToApprove: string): any;
|
|
|
132
132
|
export declare function encodeDodoTeamChangeMasterCopy(_masterCopy: string): any;
|
|
133
133
|
/**
|
|
134
134
|
* encode changeThreshold
|
|
135
|
-
* @param {
|
|
135
|
+
* @param {string} _threshold - uint256
|
|
136
136
|
* @returns {string} encode data
|
|
137
137
|
*/
|
|
138
|
-
export declare function encodeDodoTeamChangeThreshold(_threshold:
|
|
138
|
+
export declare function encodeDodoTeamChangeThreshold(_threshold: string): any;
|
|
139
139
|
/**
|
|
140
140
|
* encode disableModule
|
|
141
141
|
* @param {string} prevModule - address
|
|
@@ -152,36 +152,36 @@ export declare function encodeDodoTeamEnableModule(module: string): any;
|
|
|
152
152
|
/**
|
|
153
153
|
* encode execTransaction
|
|
154
154
|
* @param {string} to - address
|
|
155
|
-
* @param {
|
|
155
|
+
* @param {string} value - uint256
|
|
156
156
|
* @param {string} data - bytes
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
157
|
+
* @param {string} operation - uint8
|
|
158
|
+
* @param {string} safeTxGas - uint256
|
|
159
|
+
* @param {string} baseGas - uint256
|
|
160
|
+
* @param {string} gasPrice - uint256
|
|
161
161
|
* @param {string} gasToken - address
|
|
162
162
|
* @param {string} refundReceiver - address
|
|
163
163
|
* @param {string} signatures - bytes
|
|
164
164
|
* @returns {string} encode data
|
|
165
165
|
*/
|
|
166
|
-
export declare function encodeDodoTeamExecTransaction(to: string, value:
|
|
166
|
+
export declare function encodeDodoTeamExecTransaction(to: string, value: string, data: string, operation: string, safeTxGas: string, baseGas: string, gasPrice: string, gasToken: string, refundReceiver: string, signatures: string): any;
|
|
167
167
|
/**
|
|
168
168
|
* encode execTransactionFromModule
|
|
169
169
|
* @param {string} to - address
|
|
170
|
-
* @param {
|
|
170
|
+
* @param {string} value - uint256
|
|
171
171
|
* @param {string} data - bytes
|
|
172
|
-
* @param {
|
|
172
|
+
* @param {string} operation - uint8
|
|
173
173
|
* @returns {string} encode data
|
|
174
174
|
*/
|
|
175
|
-
export declare function encodeDodoTeamExecTransactionFromModule(to: string, value:
|
|
175
|
+
export declare function encodeDodoTeamExecTransactionFromModule(to: string, value: string, data: string, operation: string): any;
|
|
176
176
|
/**
|
|
177
177
|
* encode execTransactionFromModuleReturnData
|
|
178
178
|
* @param {string} to - address
|
|
179
|
-
* @param {
|
|
179
|
+
* @param {string} value - uint256
|
|
180
180
|
* @param {string} data - bytes
|
|
181
|
-
* @param {
|
|
181
|
+
* @param {string} operation - uint8
|
|
182
182
|
* @returns {string} encode data
|
|
183
183
|
*/
|
|
184
|
-
export declare function encodeDodoTeamExecTransactionFromModuleReturnData(to: string, value:
|
|
184
|
+
export declare function encodeDodoTeamExecTransactionFromModuleReturnData(to: string, value: string, data: string, operation: string): any;
|
|
185
185
|
/**
|
|
186
186
|
* encode isValidSignature
|
|
187
187
|
* @param {string} _data - bytes
|
|
@@ -193,19 +193,19 @@ export declare function encodeDodoTeamIsValidSignature(_data: string, _signature
|
|
|
193
193
|
* encode removeOwner
|
|
194
194
|
* @param {string} prevOwner - address
|
|
195
195
|
* @param {string} owner - address
|
|
196
|
-
* @param {
|
|
196
|
+
* @param {string} _threshold - uint256
|
|
197
197
|
* @returns {string} encode data
|
|
198
198
|
*/
|
|
199
|
-
export declare function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _threshold:
|
|
199
|
+
export declare function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _threshold: string): any;
|
|
200
200
|
/**
|
|
201
201
|
* encode requiredTxGas
|
|
202
202
|
* @param {string} to - address
|
|
203
|
-
* @param {
|
|
203
|
+
* @param {string} value - uint256
|
|
204
204
|
* @param {string} data - bytes
|
|
205
|
-
* @param {
|
|
205
|
+
* @param {string} operation - uint8
|
|
206
206
|
* @returns {string} encode data
|
|
207
207
|
*/
|
|
208
|
-
export declare function encodeDodoTeamRequiredTxGas(to: string, value:
|
|
208
|
+
export declare function encodeDodoTeamRequiredTxGas(to: string, value: string, data: string, operation: string): any;
|
|
209
209
|
/**
|
|
210
210
|
* encode setFallbackHandler
|
|
211
211
|
* @param {string} handler - address
|
|
@@ -215,16 +215,16 @@ export declare function encodeDodoTeamSetFallbackHandler(handler: string): any;
|
|
|
215
215
|
/**
|
|
216
216
|
* encode setup
|
|
217
217
|
* @param {Array<string>} _owners - address[]
|
|
218
|
-
* @param {
|
|
218
|
+
* @param {string} _threshold - uint256
|
|
219
219
|
* @param {string} to - address
|
|
220
220
|
* @param {string} data - bytes
|
|
221
221
|
* @param {string} fallbackHandler - address
|
|
222
222
|
* @param {string} paymentToken - address
|
|
223
|
-
* @param {
|
|
223
|
+
* @param {string} payment - uint256
|
|
224
224
|
* @param {string} paymentReceiver - address
|
|
225
225
|
* @returns {string} encode data
|
|
226
226
|
*/
|
|
227
|
-
export declare function encodeDodoTeamSetup(_owners: Array<string>, _threshold:
|
|
227
|
+
export declare function encodeDodoTeamSetup(_owners: Array<string>, _threshold: string, to: string, data: string, fallbackHandler: string, paymentToken: string, payment: string, paymentReceiver: string): any;
|
|
228
228
|
/**
|
|
229
229
|
* encode signMessage
|
|
230
230
|
* @param {string} _data - bytes
|