@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
|
@@ -94,10 +94,10 @@ export function fetchInitializableERC20TotalSupply(chainId: number, __to: string
|
|
|
94
94
|
/**
|
|
95
95
|
* encode approve
|
|
96
96
|
* @param {string} spender - address
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {string} amount - uint256
|
|
98
98
|
* @returns {string} encode data
|
|
99
99
|
*/
|
|
100
|
-
export function encodeInitializableERC20Approve(spender: string, amount:
|
|
100
|
+
export function encodeInitializableERC20Approve(spender: string, amount: string) {
|
|
101
101
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [spender,amount]);
|
|
102
102
|
return hexlify(concat(['0x095ea7b3', __encodeData]));
|
|
103
103
|
}
|
|
@@ -105,13 +105,13 @@ export function encodeInitializableERC20Approve(spender: string, amount: number)
|
|
|
105
105
|
/**
|
|
106
106
|
* encode init
|
|
107
107
|
* @param {string} _creator - address
|
|
108
|
-
* @param {
|
|
108
|
+
* @param {string} _totalSupply - uint256
|
|
109
109
|
* @param {string} _name - string
|
|
110
110
|
* @param {string} _symbol - string
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {string} _decimals - uint8
|
|
112
112
|
* @returns {string} encode data
|
|
113
113
|
*/
|
|
114
|
-
export function encodeInitializableERC20Init(_creator: string, _totalSupply:
|
|
114
|
+
export function encodeInitializableERC20Init(_creator: string, _totalSupply: string, _name: string, _symbol: string, _decimals: string) {
|
|
115
115
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","string","string","uint8"], [_creator,_totalSupply,_name,_symbol,_decimals]);
|
|
116
116
|
return hexlify(concat(['0xfc90ef18', __encodeData]));
|
|
117
117
|
}
|
|
@@ -119,10 +119,10 @@ export function encodeInitializableERC20Init(_creator: string, _totalSupply: num
|
|
|
119
119
|
/**
|
|
120
120
|
* encode transfer
|
|
121
121
|
* @param {string} to - address
|
|
122
|
-
* @param {
|
|
122
|
+
* @param {string} amount - uint256
|
|
123
123
|
* @returns {string} encode data
|
|
124
124
|
*/
|
|
125
|
-
export function encodeInitializableERC20Transfer(to: string, amount:
|
|
125
|
+
export function encodeInitializableERC20Transfer(to: string, amount: string) {
|
|
126
126
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [to,amount]);
|
|
127
127
|
return hexlify(concat(['0xa9059cbb', __encodeData]));
|
|
128
128
|
}
|
|
@@ -131,10 +131,10 @@ export function encodeInitializableERC20Transfer(to: string, amount: number) {
|
|
|
131
131
|
* encode transferFrom
|
|
132
132
|
* @param {string} from - address
|
|
133
133
|
* @param {string} to - address
|
|
134
|
-
* @param {
|
|
134
|
+
* @param {string} amount - uint256
|
|
135
135
|
* @returns {string} encode data
|
|
136
136
|
*/
|
|
137
|
-
export function encodeInitializableERC20TransferFrom(from: string, to: string, amount:
|
|
137
|
+
export function encodeInitializableERC20TransferFrom(from: string, to: string, amount: string) {
|
|
138
138
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [from,to,amount]);
|
|
139
139
|
return hexlify(concat(['0x23b872dd', __encodeData]));
|
|
140
140
|
}
|
|
@@ -186,14 +186,14 @@ export function encodeLimitOrderClaimOwnership() {
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* encode fillLimitOrder
|
|
189
|
-
* @param {{makerToken: string; takerToken: string; makerAmount:
|
|
189
|
+
* @param {{makerToken: string; takerToken: string; makerAmount: string; takerAmount: string; maker: string; taker: string; expiration: string; salt: string}} order - tuple
|
|
190
190
|
* @param {string} signature - bytes
|
|
191
|
-
* @param {
|
|
192
|
-
* @param {
|
|
191
|
+
* @param {string} takerFillAmount - uint256
|
|
192
|
+
* @param {string} thresholdTakerAmount - uint256
|
|
193
193
|
* @param {string} takerInteraction - bytes
|
|
194
194
|
* @returns {string} encode data
|
|
195
195
|
*/
|
|
196
|
-
export function encodeLimitOrderFillLimitOrder(order: {makerToken: string; takerToken: string; makerAmount:
|
|
196
|
+
export function encodeLimitOrderFillLimitOrder(order: {makerToken: string; takerToken: string; makerAmount: string; takerAmount: string; maker: string; taker: string; expiration: string; salt: string}, signature: string, takerFillAmount: string, thresholdTakerAmount: string, takerInteraction: string) {
|
|
197
197
|
const __encodeData = defaultAbiCoder.encode(["tuple(address, address, uint256, uint256, address, address, uint256, uint256)","bytes","uint256","uint256","bytes"], [order,signature,takerFillAmount,thresholdTakerAmount,takerInteraction]);
|
|
198
198
|
return hexlify(concat(['0x1dd76cc3', __encodeData]));
|
|
199
199
|
}
|
|
@@ -222,16 +222,16 @@ export function encodeLimitOrderInitOwner(newOwner: string) {
|
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* encode matchingRFQByPlatform
|
|
225
|
-
* @param {{makerToken: string; takerToken: string; makerAmount:
|
|
225
|
+
* @param {{makerToken: string; takerToken: string; makerAmount: string; takerAmount: string; makerTokenFeeAmount: string; takerFillAmount: string; maker: string; taker: string; expiration: string; slot: string}} order - tuple
|
|
226
226
|
* @param {string} makerSignature - bytes
|
|
227
227
|
* @param {string} takerSignature - bytes
|
|
228
|
-
* @param {
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {
|
|
228
|
+
* @param {string} takerFillAmount - uint256
|
|
229
|
+
* @param {string} thresholdMakerAmount - uint256
|
|
230
|
+
* @param {string} makerTokenFeeAmount - uint256
|
|
231
231
|
* @param {string} taker - address
|
|
232
232
|
* @returns {string} encode data
|
|
233
233
|
*/
|
|
234
|
-
export function encodeLimitOrderMatchingRFQByPlatform(order: {makerToken: string; takerToken: string; makerAmount:
|
|
234
|
+
export function encodeLimitOrderMatchingRFQByPlatform(order: {makerToken: string; takerToken: string; makerAmount: string; takerAmount: string; makerTokenFeeAmount: string; takerFillAmount: string; maker: string; taker: string; expiration: string; slot: string}, makerSignature: string, takerSignature: string, takerFillAmount: string, thresholdMakerAmount: string, makerTokenFeeAmount: string, taker: string) {
|
|
235
235
|
const __encodeData = defaultAbiCoder.encode(["tuple(address, address, uint256, uint256, uint256, uint256, address, address, uint256, uint256)","bytes","bytes","uint256","uint256","uint256","address"], [order,makerSignature,takerSignature,takerFillAmount,thresholdMakerAmount,makerTokenFeeAmount,taker]);
|
|
236
236
|
return hexlify(concat(['0x18c8f2ae', __encodeData]));
|
|
237
237
|
}
|
|
@@ -120,15 +120,15 @@ export function encodeLimitOrderBotClaimOwnership() {
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* encode doLimitOrderSwap
|
|
123
|
-
* @param {
|
|
124
|
-
* @param {
|
|
123
|
+
* @param {string} curTakerFillAmount - uint256
|
|
124
|
+
* @param {string} curMakerFillAmount - uint256
|
|
125
125
|
* @param {string} makerToken - address
|
|
126
126
|
* @param {string} takerToken - address
|
|
127
127
|
* @param {string} dodoRouteProxy - address
|
|
128
128
|
* @param {string} dodoApiData - bytes
|
|
129
129
|
* @returns {string} encode data
|
|
130
130
|
*/
|
|
131
|
-
export function encodeLimitOrderBotDoLimitOrderSwap(curTakerFillAmount:
|
|
131
|
+
export function encodeLimitOrderBotDoLimitOrderSwap(curTakerFillAmount: string, curMakerFillAmount: string, makerToken: string, takerToken: string, dodoRouteProxy: string, dodoApiData: string) {
|
|
132
132
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address","address","address","bytes"], [curTakerFillAmount,curMakerFillAmount,makerToken,takerToken,dodoRouteProxy,dodoApiData]);
|
|
133
133
|
return hexlify(concat(['0x89143c25', __encodeData]));
|
|
134
134
|
}
|
|
@@ -137,10 +137,10 @@ export function encodeLimitOrderBotDoLimitOrderSwap(curTakerFillAmount: number,
|
|
|
137
137
|
* encode fillDODOLimitOrder
|
|
138
138
|
* @param {string} callExternalData - bytes
|
|
139
139
|
* @param {string} takerToken - address
|
|
140
|
-
* @param {
|
|
140
|
+
* @param {string} minTakerTokenAmount - uint256
|
|
141
141
|
* @returns {string} encode data
|
|
142
142
|
*/
|
|
143
|
-
export function encodeLimitOrderBotFillDODOLimitOrder(callExternalData: string, takerToken: string, minTakerTokenAmount:
|
|
143
|
+
export function encodeLimitOrderBotFillDODOLimitOrder(callExternalData: string, takerToken: string, minTakerTokenAmount: string) {
|
|
144
144
|
const __encodeData = defaultAbiCoder.encode(["bytes","address","uint256"], [callExternalData,takerToken,minTakerTokenAmount]);
|
|
145
145
|
return hexlify(concat(['0x272a16bd', __encodeData]));
|
|
146
146
|
}
|
|
@@ -82,10 +82,10 @@ export function fetchUniswapV2FactoryGetPair(chainId: number, __input1: string,
|
|
|
82
82
|
* encode createPair
|
|
83
83
|
* @param {string} tokenA - address
|
|
84
84
|
* @param {string} tokenB - address
|
|
85
|
-
* @param {
|
|
85
|
+
* @param {string} feeRate - uint256
|
|
86
86
|
* @returns {string} encode data
|
|
87
87
|
*/
|
|
88
|
-
export function encodeUniswapV2FactoryCreatePair(tokenA: string, tokenB: string, feeRate:
|
|
88
|
+
export function encodeUniswapV2FactoryCreatePair(tokenA: string, tokenB: string, feeRate: string) {
|
|
89
89
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [tokenA,tokenB,feeRate]);
|
|
90
90
|
return hexlify(concat(['0x6b600d1c', __encodeData]));
|
|
91
91
|
}
|
|
@@ -113,10 +113,10 @@ export function encodeUniswapV2FactorySetFeeToSetter(_feeToSetter: string) {
|
|
|
113
113
|
/**
|
|
114
114
|
* encode setLpMtRatio
|
|
115
115
|
* @param {string} pool - address
|
|
116
|
-
* @param {
|
|
116
|
+
* @param {string} ratio - uint256
|
|
117
117
|
* @returns {string} encode data
|
|
118
118
|
*/
|
|
119
|
-
export function encodeUniswapV2FactorySetLpMtRatio(pool: string, ratio:
|
|
119
|
+
export function encodeUniswapV2FactorySetLpMtRatio(pool: string, ratio: string) {
|
|
120
120
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [pool,ratio]);
|
|
121
121
|
return hexlify(concat(['0x4a4f2ace', __encodeData]));
|
|
122
122
|
}
|
|
@@ -121,16 +121,16 @@ export function fetchUniswapV2Router02Quote(chainId: number, amountA: number, re
|
|
|
121
121
|
* encode addLiquidity
|
|
122
122
|
* @param {string} tokenA - address
|
|
123
123
|
* @param {string} tokenB - address
|
|
124
|
-
* @param {
|
|
125
|
-
* @param {
|
|
126
|
-
* @param {
|
|
127
|
-
* @param {
|
|
128
|
-
* @param {
|
|
124
|
+
* @param {string} fee - uint256
|
|
125
|
+
* @param {string} amountADesired - uint256
|
|
126
|
+
* @param {string} amountBDesired - uint256
|
|
127
|
+
* @param {string} amountAMin - uint256
|
|
128
|
+
* @param {string} amountBMin - uint256
|
|
129
129
|
* @param {string} to - address
|
|
130
|
-
* @param {
|
|
130
|
+
* @param {string} deadline - uint256
|
|
131
131
|
* @returns {string} encode data
|
|
132
132
|
*/
|
|
133
|
-
export function encodeUniswapV2Router02AddLiquidity(tokenA: string, tokenB: string, fee:
|
|
133
|
+
export function encodeUniswapV2Router02AddLiquidity(tokenA: string, tokenB: string, fee: string, amountADesired: string, amountBDesired: string, amountAMin: string, amountBMin: string, to: string, deadline: string) {
|
|
134
134
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256","uint256","uint256","uint256","uint256","address","uint256"], [tokenA,tokenB,fee,amountADesired,amountBDesired,amountAMin,amountBMin,to,deadline]);
|
|
135
135
|
return hexlify(concat(['0x426e40b1', __encodeData]));
|
|
136
136
|
}
|
|
@@ -138,15 +138,15 @@ export function encodeUniswapV2Router02AddLiquidity(tokenA: string, tokenB: stri
|
|
|
138
138
|
/**
|
|
139
139
|
* encode addLiquidityETH
|
|
140
140
|
* @param {string} token - address
|
|
141
|
-
* @param {
|
|
142
|
-
* @param {
|
|
143
|
-
* @param {
|
|
144
|
-
* @param {
|
|
141
|
+
* @param {string} fee - uint256
|
|
142
|
+
* @param {string} amountTokenDesired - uint256
|
|
143
|
+
* @param {string} amountTokenMin - uint256
|
|
144
|
+
* @param {string} amountETHMin - uint256
|
|
145
145
|
* @param {string} to - address
|
|
146
|
-
* @param {
|
|
146
|
+
* @param {string} deadline - uint256
|
|
147
147
|
* @returns {string} encode data
|
|
148
148
|
*/
|
|
149
|
-
export function encodeUniswapV2Router02AddLiquidityETH(token: string, fee:
|
|
149
|
+
export function encodeUniswapV2Router02AddLiquidityETH(token: string, fee: string, amountTokenDesired: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string) {
|
|
150
150
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256","uint256","uint256","address","uint256"], [token,fee,amountTokenDesired,amountTokenMin,amountETHMin,to,deadline]);
|
|
151
151
|
return hexlify(concat(['0x8d2468e4', __encodeData]));
|
|
152
152
|
}
|
|
@@ -155,15 +155,15 @@ export function encodeUniswapV2Router02AddLiquidityETH(token: string, fee: numbe
|
|
|
155
155
|
* encode removeLiquidity
|
|
156
156
|
* @param {string} tokenA - address
|
|
157
157
|
* @param {string} tokenB - address
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
161
|
-
* @param {
|
|
158
|
+
* @param {string} fee - uint256
|
|
159
|
+
* @param {string} liquidity - uint256
|
|
160
|
+
* @param {string} amountAMin - uint256
|
|
161
|
+
* @param {string} amountBMin - uint256
|
|
162
162
|
* @param {string} to - address
|
|
163
|
-
* @param {
|
|
163
|
+
* @param {string} deadline - uint256
|
|
164
164
|
* @returns {string} encode data
|
|
165
165
|
*/
|
|
166
|
-
export function encodeUniswapV2Router02RemoveLiquidity(tokenA: string, tokenB: string, fee:
|
|
166
|
+
export function encodeUniswapV2Router02RemoveLiquidity(tokenA: string, tokenB: string, fee: string, liquidity: string, amountAMin: string, amountBMin: string, to: string, deadline: string) {
|
|
167
167
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256","uint256","uint256","uint256","address","uint256"], [tokenA,tokenB,fee,liquidity,amountAMin,amountBMin,to,deadline]);
|
|
168
168
|
return hexlify(concat(['0x96adb337', __encodeData]));
|
|
169
169
|
}
|
|
@@ -171,15 +171,15 @@ export function encodeUniswapV2Router02RemoveLiquidity(tokenA: string, tokenB: s
|
|
|
171
171
|
/**
|
|
172
172
|
* encode removeLiquidityETH
|
|
173
173
|
* @param {string} token - address
|
|
174
|
-
* @param {
|
|
175
|
-
* @param {
|
|
176
|
-
* @param {
|
|
177
|
-
* @param {
|
|
174
|
+
* @param {string} fee - uint256
|
|
175
|
+
* @param {string} liquidity - uint256
|
|
176
|
+
* @param {string} amountTokenMin - uint256
|
|
177
|
+
* @param {string} amountETHMin - uint256
|
|
178
178
|
* @param {string} to - address
|
|
179
|
-
* @param {
|
|
179
|
+
* @param {string} deadline - uint256
|
|
180
180
|
* @returns {string} encode data
|
|
181
181
|
*/
|
|
182
|
-
export function encodeUniswapV2Router02RemoveLiquidityETH(token: string, fee:
|
|
182
|
+
export function encodeUniswapV2Router02RemoveLiquidityETH(token: string, fee: string, liquidity: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string) {
|
|
183
183
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256","uint256","uint256","address","uint256"], [token,fee,liquidity,amountTokenMin,amountETHMin,to,deadline]);
|
|
184
184
|
return hexlify(concat(['0xba3690cb', __encodeData]));
|
|
185
185
|
}
|
|
@@ -187,25 +187,25 @@ export function encodeUniswapV2Router02RemoveLiquidityETH(token: string, fee: nu
|
|
|
187
187
|
/**
|
|
188
188
|
* encode removeLiquidityETHSupportingFeeOnTransferTokens
|
|
189
189
|
* @param {string} token - address
|
|
190
|
-
* @param {
|
|
191
|
-
* @param {
|
|
192
|
-
* @param {
|
|
193
|
-
* @param {
|
|
190
|
+
* @param {string} fee - uint256
|
|
191
|
+
* @param {string} liquidity - uint256
|
|
192
|
+
* @param {string} amountTokenMin - uint256
|
|
193
|
+
* @param {string} amountETHMin - uint256
|
|
194
194
|
* @param {string} to - address
|
|
195
|
-
* @param {
|
|
195
|
+
* @param {string} deadline - uint256
|
|
196
196
|
* @returns {string} encode data
|
|
197
197
|
*/
|
|
198
|
-
export function encodeUniswapV2Router02RemoveLiquidityETHSupportingFeeOnTransferTokens(token: string, fee:
|
|
198
|
+
export function encodeUniswapV2Router02RemoveLiquidityETHSupportingFeeOnTransferTokens(token: string, fee: string, liquidity: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string) {
|
|
199
199
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256","uint256","uint256","address","uint256"], [token,fee,liquidity,amountTokenMin,amountETHMin,to,deadline]);
|
|
200
200
|
return hexlify(concat(['0xc194f861', __encodeData]));
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
* encode removeLiquidityETHWithPermit
|
|
205
|
-
* @param {{token: string; fee:
|
|
205
|
+
* @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
|
|
206
206
|
* @returns {string} encode data
|
|
207
207
|
*/
|
|
208
|
-
export function encodeUniswapV2Router02RemoveLiquidityETHWithPermit(params: {token: string; fee:
|
|
208
|
+
export function encodeUniswapV2Router02RemoveLiquidityETHWithPermit(params: {token: string; fee: string; liquidity: string; amountTokenMin: string; amountETHMin: string; to: string; deadline: string; approveMax: boolean; v: string; r: string; s: string}) {
|
|
209
209
|
const __encodeData = defaultAbiCoder.encode(["tuple(address, uint256, uint256, uint256, uint256, address, uint256, bool, uint8, bytes32, bytes32)"], [params]);
|
|
210
210
|
return hexlify(concat(['0x99230406', __encodeData]));
|
|
211
211
|
}
|
|
@@ -213,161 +213,161 @@ export function encodeUniswapV2Router02RemoveLiquidityETHWithPermit(params: {tok
|
|
|
213
213
|
/**
|
|
214
214
|
* encode removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
|
|
215
215
|
* @param {string} token - address
|
|
216
|
-
* @param {
|
|
217
|
-
* @param {
|
|
218
|
-
* @param {
|
|
219
|
-
* @param {
|
|
216
|
+
* @param {string} fee - uint256
|
|
217
|
+
* @param {string} liquidity - uint256
|
|
218
|
+
* @param {string} amountTokenMin - uint256
|
|
219
|
+
* @param {string} amountETHMin - uint256
|
|
220
220
|
* @param {string} to - address
|
|
221
|
-
* @param {
|
|
221
|
+
* @param {string} deadline - uint256
|
|
222
222
|
* @param {boolean} approveMax - bool
|
|
223
|
-
* @param {
|
|
223
|
+
* @param {string} v - uint8
|
|
224
224
|
* @param {string} r - bytes32
|
|
225
225
|
* @param {string} s - bytes32
|
|
226
226
|
* @returns {string} encode data
|
|
227
227
|
*/
|
|
228
|
-
export function encodeUniswapV2Router02RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token: string, fee:
|
|
228
|
+
export function encodeUniswapV2Router02RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token: string, fee: string, liquidity: string, amountTokenMin: string, amountETHMin: string, to: string, deadline: string, approveMax: boolean, v: string, r: string, s: string) {
|
|
229
229
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256","uint256","uint256","address","uint256","bool","uint8","bytes32","bytes32"], [token,fee,liquidity,amountTokenMin,amountETHMin,to,deadline,approveMax,v,r,s]);
|
|
230
230
|
return hexlify(concat(['0x3cd9979d', __encodeData]));
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* encode removeLiquidityWithPermit
|
|
235
|
-
* @param {{tokenA: string; tokenB: string; fee:
|
|
235
|
+
* @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
|
|
236
236
|
* @returns {string} encode data
|
|
237
237
|
*/
|
|
238
|
-
export function encodeUniswapV2Router02RemoveLiquidityWithPermit(params: {tokenA: string; tokenB: string; fee:
|
|
238
|
+
export function encodeUniswapV2Router02RemoveLiquidityWithPermit(params: {tokenA: string; tokenB: string; fee: string; liquidity: string; amountAMin: string; amountBMin: string; to: string; deadline: string; approveMax: boolean; v: string; r: string; s: string}) {
|
|
239
239
|
const __encodeData = defaultAbiCoder.encode(["tuple(address, address, uint256, uint256, uint256, uint256, address, uint256, bool, uint8, bytes32, bytes32)"], [params]);
|
|
240
240
|
return hexlify(concat(['0xe38e161a', __encodeData]));
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* encode swapETHForExactTokens
|
|
245
|
-
* @param {
|
|
245
|
+
* @param {string} amountOut - uint256
|
|
246
246
|
* @param {Array<string>} path - address[]
|
|
247
|
-
* @param {Array<
|
|
247
|
+
* @param {Array<string>} fees - uint256[]
|
|
248
248
|
* @param {string} to - address
|
|
249
|
-
* @param {
|
|
249
|
+
* @param {string} deadline - uint256
|
|
250
250
|
* @returns {string} encode data
|
|
251
251
|
*/
|
|
252
|
-
export function encodeUniswapV2Router02SwapETHForExactTokens(amountOut:
|
|
252
|
+
export function encodeUniswapV2Router02SwapETHForExactTokens(amountOut: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
253
253
|
const __encodeData = defaultAbiCoder.encode(["uint256","address[]","uint256[]","address","uint256"], [amountOut,path,fees,to,deadline]);
|
|
254
254
|
return hexlify(concat(['0x8c005948', __encodeData]));
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* encode swapExactETHForTokens
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {string} amountOutMin - uint256
|
|
260
260
|
* @param {Array<string>} path - address[]
|
|
261
|
-
* @param {Array<
|
|
261
|
+
* @param {Array<string>} fees - uint256[]
|
|
262
262
|
* @param {string} to - address
|
|
263
|
-
* @param {
|
|
263
|
+
* @param {string} deadline - uint256
|
|
264
264
|
* @returns {string} encode data
|
|
265
265
|
*/
|
|
266
|
-
export function encodeUniswapV2Router02SwapExactETHForTokens(amountOutMin:
|
|
266
|
+
export function encodeUniswapV2Router02SwapExactETHForTokens(amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
267
267
|
const __encodeData = defaultAbiCoder.encode(["uint256","address[]","uint256[]","address","uint256"], [amountOutMin,path,fees,to,deadline]);
|
|
268
268
|
return hexlify(concat(['0xe36dc876', __encodeData]));
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* encode swapExactETHForTokensSupportingFeeOnTransferTokens
|
|
273
|
-
* @param {
|
|
273
|
+
* @param {string} amountOutMin - uint256
|
|
274
274
|
* @param {Array<string>} path - address[]
|
|
275
|
-
* @param {Array<
|
|
275
|
+
* @param {Array<string>} fees - uint256[]
|
|
276
276
|
* @param {string} to - address
|
|
277
|
-
* @param {
|
|
277
|
+
* @param {string} deadline - uint256
|
|
278
278
|
* @returns {string} encode data
|
|
279
279
|
*/
|
|
280
|
-
export function encodeUniswapV2Router02SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin:
|
|
280
|
+
export function encodeUniswapV2Router02SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
281
281
|
const __encodeData = defaultAbiCoder.encode(["uint256","address[]","uint256[]","address","uint256"], [amountOutMin,path,fees,to,deadline]);
|
|
282
282
|
return hexlify(concat(['0x6fee0fa9', __encodeData]));
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* encode swapExactTokensForETH
|
|
287
|
-
* @param {
|
|
288
|
-
* @param {
|
|
287
|
+
* @param {string} amountIn - uint256
|
|
288
|
+
* @param {string} amountOutMin - uint256
|
|
289
289
|
* @param {Array<string>} path - address[]
|
|
290
|
-
* @param {Array<
|
|
290
|
+
* @param {Array<string>} fees - uint256[]
|
|
291
291
|
* @param {string} to - address
|
|
292
|
-
* @param {
|
|
292
|
+
* @param {string} deadline - uint256
|
|
293
293
|
* @returns {string} encode data
|
|
294
294
|
*/
|
|
295
|
-
export function encodeUniswapV2Router02SwapExactTokensForETH(amountIn:
|
|
295
|
+
export function encodeUniswapV2Router02SwapExactTokensForETH(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
296
296
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address[]","uint256[]","address","uint256"], [amountIn,amountOutMin,path,fees,to,deadline]);
|
|
297
297
|
return hexlify(concat(['0x851d14f5', __encodeData]));
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* encode swapExactTokensForETHSupportingFeeOnTransferTokens
|
|
302
|
-
* @param {
|
|
303
|
-
* @param {
|
|
302
|
+
* @param {string} amountIn - uint256
|
|
303
|
+
* @param {string} amountOutMin - uint256
|
|
304
304
|
* @param {Array<string>} path - address[]
|
|
305
|
-
* @param {Array<
|
|
305
|
+
* @param {Array<string>} fees - uint256[]
|
|
306
306
|
* @param {string} to - address
|
|
307
|
-
* @param {
|
|
307
|
+
* @param {string} deadline - uint256
|
|
308
308
|
* @returns {string} encode data
|
|
309
309
|
*/
|
|
310
|
-
export function encodeUniswapV2Router02SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn:
|
|
310
|
+
export function encodeUniswapV2Router02SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
311
311
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address[]","uint256[]","address","uint256"], [amountIn,amountOutMin,path,fees,to,deadline]);
|
|
312
312
|
return hexlify(concat(['0x27ec1eff', __encodeData]));
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
316
|
* encode swapExactTokensForTokens
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {
|
|
317
|
+
* @param {string} amountIn - uint256
|
|
318
|
+
* @param {string} amountOutMin - uint256
|
|
319
319
|
* @param {Array<string>} path - address[]
|
|
320
|
-
* @param {Array<
|
|
320
|
+
* @param {Array<string>} fees - uint256[]
|
|
321
321
|
* @param {string} to - address
|
|
322
|
-
* @param {
|
|
322
|
+
* @param {string} deadline - uint256
|
|
323
323
|
* @returns {string} encode data
|
|
324
324
|
*/
|
|
325
|
-
export function encodeUniswapV2Router02SwapExactTokensForTokens(amountIn:
|
|
325
|
+
export function encodeUniswapV2Router02SwapExactTokensForTokens(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
326
326
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address[]","uint256[]","address","uint256"], [amountIn,amountOutMin,path,fees,to,deadline]);
|
|
327
327
|
return hexlify(concat(['0xe26997dc', __encodeData]));
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
331
|
* encode swapExactTokensForTokensSupportingFeeOnTransferTokens
|
|
332
|
-
* @param {
|
|
333
|
-
* @param {
|
|
332
|
+
* @param {string} amountIn - uint256
|
|
333
|
+
* @param {string} amountOutMin - uint256
|
|
334
334
|
* @param {Array<string>} path - address[]
|
|
335
|
-
* @param {Array<
|
|
335
|
+
* @param {Array<string>} fees - uint256[]
|
|
336
336
|
* @param {string} to - address
|
|
337
|
-
* @param {
|
|
337
|
+
* @param {string} deadline - uint256
|
|
338
338
|
* @returns {string} encode data
|
|
339
339
|
*/
|
|
340
|
-
export function encodeUniswapV2Router02SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn:
|
|
340
|
+
export function encodeUniswapV2Router02SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn: string, amountOutMin: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
341
341
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address[]","uint256[]","address","uint256"], [amountIn,amountOutMin,path,fees,to,deadline]);
|
|
342
342
|
return hexlify(concat(['0x27c1169b', __encodeData]));
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
/**
|
|
346
346
|
* encode swapTokensForExactETH
|
|
347
|
-
* @param {
|
|
348
|
-
* @param {
|
|
347
|
+
* @param {string} amountOut - uint256
|
|
348
|
+
* @param {string} amountInMax - uint256
|
|
349
349
|
* @param {Array<string>} path - address[]
|
|
350
|
-
* @param {Array<
|
|
350
|
+
* @param {Array<string>} fees - uint256[]
|
|
351
351
|
* @param {string} to - address
|
|
352
|
-
* @param {
|
|
352
|
+
* @param {string} deadline - uint256
|
|
353
353
|
* @returns {string} encode data
|
|
354
354
|
*/
|
|
355
|
-
export function encodeUniswapV2Router02SwapTokensForExactETH(amountOut:
|
|
355
|
+
export function encodeUniswapV2Router02SwapTokensForExactETH(amountOut: string, amountInMax: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
356
356
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address[]","uint256[]","address","uint256"], [amountOut,amountInMax,path,fees,to,deadline]);
|
|
357
357
|
return hexlify(concat(['0xedb2af1f', __encodeData]));
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
361
|
* encode swapTokensForExactTokens
|
|
362
|
-
* @param {
|
|
363
|
-
* @param {
|
|
362
|
+
* @param {string} amountOut - uint256
|
|
363
|
+
* @param {string} amountInMax - uint256
|
|
364
364
|
* @param {Array<string>} path - address[]
|
|
365
|
-
* @param {Array<
|
|
365
|
+
* @param {Array<string>} fees - uint256[]
|
|
366
366
|
* @param {string} to - address
|
|
367
|
-
* @param {
|
|
367
|
+
* @param {string} deadline - uint256
|
|
368
368
|
* @returns {string} encode data
|
|
369
369
|
*/
|
|
370
|
-
export function encodeUniswapV2Router02SwapTokensForExactTokens(amountOut:
|
|
370
|
+
export function encodeUniswapV2Router02SwapTokensForExactTokens(amountOut: string, amountInMax: string, path: Array<string>, fees: Array<string>, to: string, deadline: string) {
|
|
371
371
|
const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address[]","uint256[]","address","uint256"], [amountOut,amountInMax,path,fees,to,deadline]);
|
|
372
372
|
return hexlify(concat(['0x55a7cf78', __encodeData]));
|
|
373
373
|
}
|
package/src/contract/dodoTeam.ts
CHANGED
|
@@ -225,10 +225,10 @@ export function fetchDodoTeamSignedMessages(chainId: number, __input1: string) {
|
|
|
225
225
|
/**
|
|
226
226
|
* encode addOwnerWithThreshold
|
|
227
227
|
* @param {string} owner - address
|
|
228
|
-
* @param {
|
|
228
|
+
* @param {string} _threshold - uint256
|
|
229
229
|
* @returns {string} encode data
|
|
230
230
|
*/
|
|
231
|
-
export function encodeDodoTeamAddOwnerWithThreshold(owner: string, _threshold:
|
|
231
|
+
export function encodeDodoTeamAddOwnerWithThreshold(owner: string, _threshold: string) {
|
|
232
232
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [owner,_threshold]);
|
|
233
233
|
return hexlify(concat(['0x0d582f13', __encodeData]));
|
|
234
234
|
}
|
|
@@ -255,10 +255,10 @@ export function encodeDodoTeamChangeMasterCopy(_masterCopy: string) {
|
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* encode changeThreshold
|
|
258
|
-
* @param {
|
|
258
|
+
* @param {string} _threshold - uint256
|
|
259
259
|
* @returns {string} encode data
|
|
260
260
|
*/
|
|
261
|
-
export function encodeDodoTeamChangeThreshold(_threshold:
|
|
261
|
+
export function encodeDodoTeamChangeThreshold(_threshold: string) {
|
|
262
262
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [_threshold]);
|
|
263
263
|
return hexlify(concat(['0x694e80c3', __encodeData]));
|
|
264
264
|
}
|
|
@@ -287,18 +287,18 @@ export function encodeDodoTeamEnableModule(module: string) {
|
|
|
287
287
|
/**
|
|
288
288
|
* encode execTransaction
|
|
289
289
|
* @param {string} to - address
|
|
290
|
-
* @param {
|
|
290
|
+
* @param {string} value - uint256
|
|
291
291
|
* @param {string} data - bytes
|
|
292
|
-
* @param {
|
|
293
|
-
* @param {
|
|
294
|
-
* @param {
|
|
295
|
-
* @param {
|
|
292
|
+
* @param {string} operation - uint8
|
|
293
|
+
* @param {string} safeTxGas - uint256
|
|
294
|
+
* @param {string} baseGas - uint256
|
|
295
|
+
* @param {string} gasPrice - uint256
|
|
296
296
|
* @param {string} gasToken - address
|
|
297
297
|
* @param {string} refundReceiver - address
|
|
298
298
|
* @param {string} signatures - bytes
|
|
299
299
|
* @returns {string} encode data
|
|
300
300
|
*/
|
|
301
|
-
export function encodeDodoTeamExecTransaction(to: string, value:
|
|
301
|
+
export function encodeDodoTeamExecTransaction(to: string, value: string, data: string, operation: string, safeTxGas: string, baseGas: string, gasPrice: string, gasToken: string, refundReceiver: string, signatures: string) {
|
|
302
302
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","bytes","uint8","uint256","uint256","uint256","address","address","bytes"], [to,value,data,operation,safeTxGas,baseGas,gasPrice,gasToken,refundReceiver,signatures]);
|
|
303
303
|
return hexlify(concat(['0x6a761202', __encodeData]));
|
|
304
304
|
}
|
|
@@ -306,12 +306,12 @@ export function encodeDodoTeamExecTransaction(to: string, value: number, data: s
|
|
|
306
306
|
/**
|
|
307
307
|
* encode execTransactionFromModule
|
|
308
308
|
* @param {string} to - address
|
|
309
|
-
* @param {
|
|
309
|
+
* @param {string} value - uint256
|
|
310
310
|
* @param {string} data - bytes
|
|
311
|
-
* @param {
|
|
311
|
+
* @param {string} operation - uint8
|
|
312
312
|
* @returns {string} encode data
|
|
313
313
|
*/
|
|
314
|
-
export function encodeDodoTeamExecTransactionFromModule(to: string, value:
|
|
314
|
+
export function encodeDodoTeamExecTransactionFromModule(to: string, value: string, data: string, operation: string) {
|
|
315
315
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","bytes","uint8"], [to,value,data,operation]);
|
|
316
316
|
return hexlify(concat(['0x468721a7', __encodeData]));
|
|
317
317
|
}
|
|
@@ -319,12 +319,12 @@ export function encodeDodoTeamExecTransactionFromModule(to: string, value: numbe
|
|
|
319
319
|
/**
|
|
320
320
|
* encode execTransactionFromModuleReturnData
|
|
321
321
|
* @param {string} to - address
|
|
322
|
-
* @param {
|
|
322
|
+
* @param {string} value - uint256
|
|
323
323
|
* @param {string} data - bytes
|
|
324
|
-
* @param {
|
|
324
|
+
* @param {string} operation - uint8
|
|
325
325
|
* @returns {string} encode data
|
|
326
326
|
*/
|
|
327
|
-
export function encodeDodoTeamExecTransactionFromModuleReturnData(to: string, value:
|
|
327
|
+
export function encodeDodoTeamExecTransactionFromModuleReturnData(to: string, value: string, data: string, operation: string) {
|
|
328
328
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","bytes","uint8"], [to,value,data,operation]);
|
|
329
329
|
return hexlify(concat(['0x5229073f', __encodeData]));
|
|
330
330
|
}
|
|
@@ -344,10 +344,10 @@ export function encodeDodoTeamIsValidSignature(_data: string, _signature: string
|
|
|
344
344
|
* encode removeOwner
|
|
345
345
|
* @param {string} prevOwner - address
|
|
346
346
|
* @param {string} owner - address
|
|
347
|
-
* @param {
|
|
347
|
+
* @param {string} _threshold - uint256
|
|
348
348
|
* @returns {string} encode data
|
|
349
349
|
*/
|
|
350
|
-
export function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _threshold:
|
|
350
|
+
export function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _threshold: string) {
|
|
351
351
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [prevOwner,owner,_threshold]);
|
|
352
352
|
return hexlify(concat(['0xf8dc5dd9', __encodeData]));
|
|
353
353
|
}
|
|
@@ -355,12 +355,12 @@ export function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _thr
|
|
|
355
355
|
/**
|
|
356
356
|
* encode requiredTxGas
|
|
357
357
|
* @param {string} to - address
|
|
358
|
-
* @param {
|
|
358
|
+
* @param {string} value - uint256
|
|
359
359
|
* @param {string} data - bytes
|
|
360
|
-
* @param {
|
|
360
|
+
* @param {string} operation - uint8
|
|
361
361
|
* @returns {string} encode data
|
|
362
362
|
*/
|
|
363
|
-
export function encodeDodoTeamRequiredTxGas(to: string, value:
|
|
363
|
+
export function encodeDodoTeamRequiredTxGas(to: string, value: string, data: string, operation: string) {
|
|
364
364
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","bytes","uint8"], [to,value,data,operation]);
|
|
365
365
|
return hexlify(concat(['0xc4ca3a9c', __encodeData]));
|
|
366
366
|
}
|
|
@@ -378,16 +378,16 @@ export function encodeDodoTeamSetFallbackHandler(handler: string) {
|
|
|
378
378
|
/**
|
|
379
379
|
* encode setup
|
|
380
380
|
* @param {Array<string>} _owners - address[]
|
|
381
|
-
* @param {
|
|
381
|
+
* @param {string} _threshold - uint256
|
|
382
382
|
* @param {string} to - address
|
|
383
383
|
* @param {string} data - bytes
|
|
384
384
|
* @param {string} fallbackHandler - address
|
|
385
385
|
* @param {string} paymentToken - address
|
|
386
|
-
* @param {
|
|
386
|
+
* @param {string} payment - uint256
|
|
387
387
|
* @param {string} paymentReceiver - address
|
|
388
388
|
* @returns {string} encode data
|
|
389
389
|
*/
|
|
390
|
-
export function encodeDodoTeamSetup(_owners: Array<string>, _threshold:
|
|
390
|
+
export function encodeDodoTeamSetup(_owners: Array<string>, _threshold: string, to: string, data: string, fallbackHandler: string, paymentToken: string, payment: string, paymentReceiver: string) {
|
|
391
391
|
const __encodeData = defaultAbiCoder.encode(["address[]","uint256","address","bytes","address","address","uint256","address"], [_owners,_threshold,to,data,fallbackHandler,paymentToken,payment,paymentReceiver]);
|
|
392
392
|
return hexlify(concat(['0xb63e800d', __encodeData]));
|
|
393
393
|
}
|