@dodoex/dodo-contract-request 1.3.0 → 1.5.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/.releaserc.json +11 -4
- package/CHANGELOG.md +21 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +19 -19
- package/dist/types/contract/CP.d.ts +53 -47
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +42 -39
- package/dist/types/contract/CustomERC20.d.ts +27 -27
- package/dist/types/contract/CustomMintableERC20.d.ts +31 -31
- package/dist/types/contract/D3Proxy.d.ts +26 -26
- package/dist/types/contract/D3Vault.d.ts +144 -105
- package/dist/types/contract/DODOApprove.d.ts +15 -15
- package/dist/types/contract/DODOApproveProxy.d.ts +17 -17
- package/dist/types/contract/DODOCalleeHelper.d.ts +12 -12
- package/dist/types/contract/DODOCirculationHelper.d.ts +12 -12
- package/dist/types/contract/DODOCpProxy.d.ts +13 -13
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +12 -12
- package/dist/types/contract/DODODppProxy.d.ts +17 -17
- package/dist/types/contract/DODODspProxy.d.ts +27 -27
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +17 -17
- package/dist/types/contract/DODOIncentive.d.ts +29 -23
- package/dist/types/contract/DODOMineV2Factory.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Proxy.d.ts +19 -19
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Registry.d.ts +13 -13
- package/dist/types/contract/DODONFT.d.ts +30 -30
- package/dist/types/contract/DODONFT1155.d.ts +23 -23
- package/dist/types/contract/DODONFTApprove.d.ts +22 -22
- package/dist/types/contract/DODONFTPoolProxy.d.ts +41 -41
- package/dist/types/contract/DODONFTProxy.d.ts +28 -28
- package/dist/types/contract/DODONFTRegistry.d.ts +17 -14
- package/dist/types/contract/DODONFTRouteHelper.d.ts +2 -2
- package/dist/types/contract/DODOSellHelper.d.ts +2 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +6 -6
- package/dist/types/contract/DODOV1.d.ts +100 -97
- package/dist/types/contract/DODOV1Adapter.d.ts +3 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +1 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +14 -14
- package/dist/types/contract/DODOV2Proxy02.d.ts +93 -93
- package/dist/types/contract/DODOV2RouteHelper.d.ts +4 -4
- package/dist/types/contract/DPPAdvanced.d.ts +82 -50
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +25 -25
- package/dist/types/contract/DPPFactory.d.ts +33 -30
- package/dist/types/contract/DSP.d.ts +93 -61
- package/dist/types/contract/DSPFactory.d.ts +24 -21
- package/dist/types/contract/DVM.d.ts +86 -58
- package/dist/types/contract/DVMFactory.d.ts +24 -21
- package/dist/types/contract/ERC20.d.ts +15 -15
- package/dist/types/contract/ERC20Helper.d.ts +23 -4
- package/dist/types/contract/ERC20MineV3.d.ts +48 -38
- package/dist/types/contract/ERC20V3Factory.d.ts +37 -33
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +34 -25
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +117 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -23
- package/dist/types/contract/InitializableERC20.d.ts +16 -16
- package/dist/types/contract/LimitOrder.d.ts +38 -38
- package/dist/types/contract/LimitOrderBot.d.ts +18 -18
- package/dist/types/contract/MulticallWithValid.d.ts +8 -8
- package/dist/types/contract/PermissionManager.d.ts +13 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +11 -11
- package/dist/types/contract/UniswapV2Pair.d.ts +45 -41
- package/dist/types/contract/UniswapV2Router02.d.ts +103 -103
- package/dist/types/contract/dodoTeam.d.ts +49 -46
- package/dist/types/contract/vDODOToken.d.ts +67 -55
- package/dist/types/contractRequests.d.ts +1 -1
- package/package.json +12 -1
- package/rollup.config.mjs +8 -0
- package/src/contract/BuyoutModel.ts +16 -16
- package/src/contract/CP.ts +39 -39
- package/src/contract/CrowdPoolingFactory.ts +34 -34
- package/src/contract/CustomERC20.ts +22 -22
- package/src/contract/CustomMintableERC20.ts +26 -26
- package/src/contract/D3Proxy.ts +24 -24
- package/src/contract/D3Vault.ts +79 -79
- package/src/contract/DODOApprove.ts +8 -8
- package/src/contract/DODOApproveProxy.ts +9 -9
- package/src/contract/DODOCalleeHelper.ts +12 -12
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +13 -13
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +12 -12
- package/src/contract/DODODppProxy.ts +17 -17
- package/src/contract/DODODspProxy.ts +27 -27
- package/src/contract/DODODspProxyWithoutGSP.ts +17 -17
- package/src/contract/DODOIncentive.ts +17 -17
- package/src/contract/DODOMineV2Factory.ts +11 -11
- package/src/contract/DODOMineV3Proxy.ts +15 -15
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +14 -14
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +24 -24
- package/src/contract/DODONFT1155.ts +19 -19
- package/src/contract/DODONFTApprove.ts +14 -14
- package/src/contract/DODONFTPoolProxy.ts +34 -34
- package/src/contract/DODONFTProxy.ts +18 -18
- package/src/contract/DODONFTRegistry.ts +7 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +6 -6
- package/src/contract/DODOV1.ts +80 -80
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +11 -11
- package/src/contract/DODOV2Proxy02.ts +88 -88
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +44 -44
- package/src/contract/DPPAdvancedAdmin.ts +19 -19
- package/src/contract/DPPFactory.ts +18 -18
- package/src/contract/DSP.ts +57 -57
- package/src/contract/DSPFactory.ts +15 -15
- package/src/contract/DVM.ts +54 -54
- package/src/contract/DVMFactory.ts +15 -15
- package/src/contract/ERC20.ts +14 -14
- package/src/contract/ERC20Helper.ts +4 -4
- package/src/contract/ERC20MineV3.ts +32 -32
- package/src/contract/ERC20V3Factory.ts +26 -26
- package/src/contract/FeeRateDIP3Impl.ts +18 -18
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +75 -75
- package/src/contract/GSPFactory.ts +16 -16
- package/src/contract/InitializableERC20.ts +16 -16
- package/src/contract/LimitOrder.ts +19 -19
- package/src/contract/LimitOrderBot.ts +11 -11
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +9 -9
- package/src/contract/UniswapV2Pair.ts +36 -36
- package/src/contract/UniswapV2Router02.ts +91 -91
- package/src/contract/dodoTeam.ts +38 -38
- package/src/contract/vDODOToken.ts +48 -48
package/src/contract/dodoTeam.ts
CHANGED
|
@@ -19,7 +19,7 @@ export function fetchDodoTeamNAME(chainId: number) {
|
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
21
21
|
const __data = hexlify(concat(['0xa3f4df7e', __encodeData]));
|
|
22
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["string"])
|
|
22
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -32,7 +32,7 @@ export function fetchDodoTeamVERSION(chainId: number) {
|
|
|
32
32
|
|
|
33
33
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
34
34
|
const __data = hexlify(concat(['0xffa1ad74', __encodeData]));
|
|
35
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["string"])
|
|
35
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -47,7 +47,7 @@ export function fetchDodoTeamApprovedHashes(chainId: number, __input1: string, _
|
|
|
47
47
|
|
|
48
48
|
const __encodeData = defaultAbiCoder.encode(["address","bytes32"], [__input1,__input2]);
|
|
49
49
|
const __data = hexlify(concat(['0x7d832974', __encodeData]));
|
|
50
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
50
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
@@ -60,7 +60,7 @@ export function fetchDodoTeamDomainSeparator(chainId: number) {
|
|
|
60
60
|
|
|
61
61
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
62
62
|
const __data = hexlify(concat(['0xf698da25', __encodeData]));
|
|
63
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["bytes32"])
|
|
63
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -83,7 +83,7 @@ export function fetchDodoTeamEncodeTransactionData(chainId: number, to: string,
|
|
|
83
83
|
|
|
84
84
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","bytes","uint8","uint256","uint256","uint256","address","address","uint256"], [to,value,data,operation,safeTxGas,baseGas,gasPrice,gasToken,refundReceiver,_nonce]);
|
|
85
85
|
const __data = hexlify(concat(['0xe86637db', __encodeData]));
|
|
86
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["bytes"])
|
|
86
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes","name":"","type":"bytes"}])
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -97,7 +97,7 @@ export function fetchDodoTeamGetMessageHash(chainId: number, message: string) {
|
|
|
97
97
|
|
|
98
98
|
const __encodeData = defaultAbiCoder.encode(["bytes"], [message]);
|
|
99
99
|
const __data = hexlify(concat(['0x0a1028c4', __encodeData]));
|
|
100
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["bytes32"])
|
|
100
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
@@ -110,7 +110,7 @@ export function fetchDodoTeamGetModules(chainId: number) {
|
|
|
110
110
|
|
|
111
111
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
112
112
|
const __data = hexlify(concat(['0xb2494df3', __encodeData]));
|
|
113
|
-
return contractRequests.batchCall<Array<string>>(chainId, __to, __data, ["address[]"])
|
|
113
|
+
return contractRequests.batchCall<Array<string>>(chainId, __to, __data, [{"internalType":"address[]","name":"","type":"address[]"}])
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -129,7 +129,7 @@ export function fetchDodoTeamGetModulesPaginated(chainId: number, start: string,
|
|
|
129
129
|
return contractRequests.batchCall<{
|
|
130
130
|
array: Array<string>;
|
|
131
131
|
next: string;
|
|
132
|
-
}>(chainId, __to, __data, ["address[]","address"])
|
|
132
|
+
}>(chainId, __to, __data, [{"internalType":"address[]","name":"array","type":"address[]"},{"internalType":"address","name":"next","type":"address"}])
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
@@ -142,7 +142,7 @@ export function fetchDodoTeamGetOwners(chainId: number) {
|
|
|
142
142
|
|
|
143
143
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
144
144
|
const __data = hexlify(concat(['0xa0e67e2b', __encodeData]));
|
|
145
|
-
return contractRequests.batchCall<Array<string>>(chainId, __to, __data, ["address[]"])
|
|
145
|
+
return contractRequests.batchCall<Array<string>>(chainId, __to, __data, [{"internalType":"address[]","name":"","type":"address[]"}])
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -155,7 +155,7 @@ export function fetchDodoTeamGetThreshold(chainId: number) {
|
|
|
155
155
|
|
|
156
156
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
157
157
|
const __data = hexlify(concat(['0xe75235b8', __encodeData]));
|
|
158
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
158
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
/**
|
|
@@ -178,7 +178,7 @@ export function fetchDodoTeamGetTransactionHash(chainId: number, to: string, val
|
|
|
178
178
|
|
|
179
179
|
const __encodeData = defaultAbiCoder.encode(["address","uint256","bytes","uint8","uint256","uint256","uint256","address","address","uint256"], [to,value,data,operation,safeTxGas,baseGas,gasPrice,gasToken,refundReceiver,_nonce]);
|
|
180
180
|
const __data = hexlify(concat(['0xd8d11f78', __encodeData]));
|
|
181
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["bytes32"])
|
|
181
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
/**
|
|
@@ -192,7 +192,7 @@ export function fetchDodoTeamIsOwner(chainId: number, owner: string) {
|
|
|
192
192
|
|
|
193
193
|
const __encodeData = defaultAbiCoder.encode(["address"], [owner]);
|
|
194
194
|
const __data = hexlify(concat(['0x2f54bf6e', __encodeData]));
|
|
195
|
-
return contractRequests.batchCall<boolean>(chainId, __to, __data, ["bool"])
|
|
195
|
+
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
@@ -205,7 +205,7 @@ export function fetchDodoTeamNonce(chainId: number) {
|
|
|
205
205
|
|
|
206
206
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
207
207
|
const __data = hexlify(concat(['0xaffed0e0', __encodeData]));
|
|
208
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
208
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/**
|
|
@@ -219,16 +219,16 @@ export function fetchDodoTeamSignedMessages(chainId: number, __input1: string) {
|
|
|
219
219
|
|
|
220
220
|
const __encodeData = defaultAbiCoder.encode(["bytes32"], [__input1]);
|
|
221
221
|
const __data = hexlify(concat(['0x5ae6bd37', __encodeData]));
|
|
222
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
222
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* encode addOwnerWithThreshold
|
|
227
227
|
* @param {string} owner - address
|
|
228
|
-
* @param {string} _threshold - uint256
|
|
228
|
+
* @param {string | number} _threshold - uint256
|
|
229
229
|
* @returns {string} encode data
|
|
230
230
|
*/
|
|
231
|
-
export function encodeDodoTeamAddOwnerWithThreshold(owner: string, _threshold: string) {
|
|
231
|
+
export function encodeDodoTeamAddOwnerWithThreshold(owner: string, _threshold: string | number) {
|
|
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 {string} _threshold - uint256
|
|
258
|
+
* @param {string | number} _threshold - uint256
|
|
259
259
|
* @returns {string} encode data
|
|
260
260
|
*/
|
|
261
|
-
export function encodeDodoTeamChangeThreshold(_threshold: string) {
|
|
261
|
+
export function encodeDodoTeamChangeThreshold(_threshold: string | number) {
|
|
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 {string} value - uint256
|
|
290
|
+
* @param {string | number} value - uint256
|
|
291
291
|
* @param {string} data - bytes
|
|
292
|
-
* @param {string} operation - uint8
|
|
293
|
-
* @param {string} safeTxGas - uint256
|
|
294
|
-
* @param {string} baseGas - uint256
|
|
295
|
-
* @param {string} gasPrice - uint256
|
|
292
|
+
* @param {string | number} operation - uint8
|
|
293
|
+
* @param {string | number} safeTxGas - uint256
|
|
294
|
+
* @param {string | number} baseGas - uint256
|
|
295
|
+
* @param {string | number} 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: string, data: string, operation: string, safeTxGas: string, baseGas: string, gasPrice: string, gasToken: string, refundReceiver: string, signatures: string) {
|
|
301
|
+
export function encodeDodoTeamExecTransaction(to: string, value: string | number, data: string, operation: string | number, safeTxGas: string | number, baseGas: string | number, gasPrice: string | number, 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: string, data: s
|
|
|
306
306
|
/**
|
|
307
307
|
* encode execTransactionFromModule
|
|
308
308
|
* @param {string} to - address
|
|
309
|
-
* @param {string} value - uint256
|
|
309
|
+
* @param {string | number} value - uint256
|
|
310
310
|
* @param {string} data - bytes
|
|
311
|
-
* @param {string} operation - uint8
|
|
311
|
+
* @param {string | number} operation - uint8
|
|
312
312
|
* @returns {string} encode data
|
|
313
313
|
*/
|
|
314
|
-
export function encodeDodoTeamExecTransactionFromModule(to: string, value: string, data: string, operation: string) {
|
|
314
|
+
export function encodeDodoTeamExecTransactionFromModule(to: string, value: string | number, data: string, operation: string | number) {
|
|
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: strin
|
|
|
319
319
|
/**
|
|
320
320
|
* encode execTransactionFromModuleReturnData
|
|
321
321
|
* @param {string} to - address
|
|
322
|
-
* @param {string} value - uint256
|
|
322
|
+
* @param {string | number} value - uint256
|
|
323
323
|
* @param {string} data - bytes
|
|
324
|
-
* @param {string} operation - uint8
|
|
324
|
+
* @param {string | number} operation - uint8
|
|
325
325
|
* @returns {string} encode data
|
|
326
326
|
*/
|
|
327
|
-
export function encodeDodoTeamExecTransactionFromModuleReturnData(to: string, value: string, data: string, operation: string) {
|
|
327
|
+
export function encodeDodoTeamExecTransactionFromModuleReturnData(to: string, value: string | number, data: string, operation: string | number) {
|
|
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 {string} _threshold - uint256
|
|
347
|
+
* @param {string | number} _threshold - uint256
|
|
348
348
|
* @returns {string} encode data
|
|
349
349
|
*/
|
|
350
|
-
export function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _threshold: string) {
|
|
350
|
+
export function encodeDodoTeamRemoveOwner(prevOwner: string, owner: string, _threshold: string | number) {
|
|
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 {string} value - uint256
|
|
358
|
+
* @param {string | number} value - uint256
|
|
359
359
|
* @param {string} data - bytes
|
|
360
|
-
* @param {string} operation - uint8
|
|
360
|
+
* @param {string | number} operation - uint8
|
|
361
361
|
* @returns {string} encode data
|
|
362
362
|
*/
|
|
363
|
-
export function encodeDodoTeamRequiredTxGas(to: string, value: string, data: string, operation: string) {
|
|
363
|
+
export function encodeDodoTeamRequiredTxGas(to: string, value: string | number, data: string, operation: string | number) {
|
|
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 {string} _threshold - uint256
|
|
381
|
+
* @param {string | number} _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 {string} payment - uint256
|
|
386
|
+
* @param {string | number} payment - uint256
|
|
387
387
|
* @param {string} paymentReceiver - address
|
|
388
388
|
* @returns {string} encode data
|
|
389
389
|
*/
|
|
390
|
-
export function encodeDodoTeamSetup(_owners: Array<string>, _threshold: string, to: string, data: string, fallbackHandler: string, paymentToken: string, payment: string, paymentReceiver: string) {
|
|
390
|
+
export function encodeDodoTeamSetup(_owners: Array<string>, _threshold: string | number, to: string, data: string, fallbackHandler: string, paymentToken: string, payment: string | number, 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
|
}
|
|
@@ -19,7 +19,7 @@ export function fetchVDODOToken_CAN_TRANSFER_(chainId: number) {
|
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
21
21
|
const __data = hexlify(concat(['0xc39eabf5', __encodeData]));
|
|
22
|
-
return contractRequests.batchCall<boolean>(chainId, __to, __data, ["bool"])
|
|
22
|
+
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -32,7 +32,7 @@ export function fetchVDODOToken_DODO_APPROVE_PROXY_(chainId: number) {
|
|
|
32
32
|
|
|
33
33
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
34
34
|
const __data = hexlify(concat(['0xeb99be12', __encodeData]));
|
|
35
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
35
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -45,7 +45,7 @@ export function fetchVDODOToken_DODO_CIRCULATION_HELPER_(chainId: number) {
|
|
|
45
45
|
|
|
46
46
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
47
47
|
const __data = hexlify(concat(['0xeec2cc50', __encodeData]));
|
|
48
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
48
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -58,7 +58,7 @@ export function fetchVDODOToken_DODO_FEE_BURN_RATIO_(chainId: number) {
|
|
|
58
58
|
|
|
59
59
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
60
60
|
const __data = hexlify(concat(['0xce71b65c', __encodeData]));
|
|
61
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
61
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -71,7 +71,7 @@ export function fetchVDODOToken_DODO_PER_BLOCK_(chainId: number) {
|
|
|
71
71
|
|
|
72
72
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
73
73
|
const __data = hexlify(concat(['0x74083bbf', __encodeData]));
|
|
74
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
74
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
@@ -84,7 +84,7 @@ export function fetchVDODOToken_DODO_RATIO_(chainId: number) {
|
|
|
84
84
|
|
|
85
85
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
86
86
|
const __data = hexlify(concat(['0xb6617a1a', __encodeData]));
|
|
87
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
87
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/**
|
|
@@ -97,7 +97,7 @@ export function fetchVDODOToken_DODO_TEAM_(chainId: number) {
|
|
|
97
97
|
|
|
98
98
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
99
99
|
const __data = hexlify(concat(['0xb88c4f33', __encodeData]));
|
|
100
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
100
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
@@ -110,7 +110,7 @@ export function fetchVDODOToken_DODO_TOKEN_(chainId: number) {
|
|
|
110
110
|
|
|
111
111
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
112
112
|
const __data = hexlify(concat(['0x34cf1332', __encodeData]));
|
|
113
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
113
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -123,7 +123,7 @@ export function fetchVDODOToken_DOOD_GOV_(chainId: number) {
|
|
|
123
123
|
|
|
124
124
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
125
125
|
const __data = hexlify(concat(['0x5de65173', __encodeData]));
|
|
126
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
126
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
@@ -136,7 +136,7 @@ export function fetchVDODOToken_LAST_REWARD_BLOCK_(chainId: number) {
|
|
|
136
136
|
|
|
137
137
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
138
138
|
const __data = hexlify(concat(['0x7cf834e1', __encodeData]));
|
|
139
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint32"])
|
|
139
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
@@ -149,7 +149,7 @@ export function fetchVDODOToken_NEW_OWNER_(chainId: number) {
|
|
|
149
149
|
|
|
150
150
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
151
151
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
152
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
152
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
@@ -162,7 +162,7 @@ export function fetchVDODOToken_OWNER_(chainId: number) {
|
|
|
162
162
|
|
|
163
163
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
164
164
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
165
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
165
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
@@ -175,7 +175,7 @@ export function fetchVDODOToken_SUPERIOR_RATIO_(chainId: number) {
|
|
|
175
175
|
|
|
176
176
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
177
177
|
const __data = hexlify(concat(['0xd2b5c5dd', __encodeData]));
|
|
178
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
178
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|
|
@@ -188,7 +188,7 @@ export function fetchVDODOToken_TOTAL_BLOCK_DISTRIBUTION_(chainId: number) {
|
|
|
188
188
|
|
|
189
189
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
190
190
|
const __data = hexlify(concat(['0x54087b21', __encodeData]));
|
|
191
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint112"])
|
|
191
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|
|
@@ -201,7 +201,7 @@ export function fetchVDODOToken_TOTAL_BLOCK_REWARD_(chainId: number) {
|
|
|
201
201
|
|
|
202
202
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
203
203
|
const __data = hexlify(concat(['0x54015ea8', __encodeData]));
|
|
204
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
204
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -214,7 +214,7 @@ export function fetchVDODOToken_TOTAL_STAKING_POWER_(chainId: number) {
|
|
|
214
214
|
|
|
215
215
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
216
216
|
const __data = hexlify(concat(['0x6d401f71', __encodeData]));
|
|
217
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
217
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/**
|
|
@@ -229,7 +229,7 @@ export function fetchVDODOTokenAllowance(chainId: number, owner: string, spender
|
|
|
229
229
|
|
|
230
230
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [owner,spender]);
|
|
231
231
|
const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
|
|
232
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
232
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
/**
|
|
@@ -242,7 +242,7 @@ export function fetchVDODOTokenAlpha(chainId: number) {
|
|
|
242
242
|
|
|
243
243
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
244
244
|
const __data = hexlify(concat(['0xdb1d0fd5', __encodeData]));
|
|
245
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint112"])
|
|
245
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
/**
|
|
@@ -256,7 +256,7 @@ export function fetchVDODOTokenAvailableBalanceOf(chainId: number, account: stri
|
|
|
256
256
|
|
|
257
257
|
const __encodeData = defaultAbiCoder.encode(["address"], [account]);
|
|
258
258
|
const __data = hexlify(concat(['0x25d998bb', __encodeData]));
|
|
259
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
259
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"vDODOAmount","type":"uint256"}])
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
/**
|
|
@@ -270,7 +270,7 @@ export function fetchVDODOTokenBalanceOf(chainId: number, account: string) {
|
|
|
270
270
|
|
|
271
271
|
const __encodeData = defaultAbiCoder.encode(["address"], [account]);
|
|
272
272
|
const __data = hexlify(concat(['0x70a08231', __encodeData]));
|
|
273
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
273
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"vDODOAmount","type":"uint256"}])
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/**
|
|
@@ -283,7 +283,7 @@ export function fetchVDODOTokenDecimals(chainId: number) {
|
|
|
283
283
|
|
|
284
284
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
285
285
|
const __data = hexlify(concat(['0x313ce567', __encodeData]));
|
|
286
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint8"])
|
|
286
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
|
@@ -297,7 +297,7 @@ export function fetchVDODOTokenDodoBalanceOf(chainId: number, account: string) {
|
|
|
297
297
|
|
|
298
298
|
const __encodeData = defaultAbiCoder.encode(["address"], [account]);
|
|
299
299
|
const __data = hexlify(concat(['0x96153967', __encodeData]));
|
|
300
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
300
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"dodoAmount","type":"uint256"}])
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
/**
|
|
@@ -310,7 +310,7 @@ export function fetchVDODOTokenGetDODOWithdrawFeeRatio(chainId: number) {
|
|
|
310
310
|
|
|
311
311
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
312
312
|
const __data = hexlify(concat(['0xdb90c318', __encodeData]));
|
|
313
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
313
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"feeRatio","type":"uint256"}])
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
/**
|
|
@@ -327,7 +327,7 @@ export function fetchVDODOTokenGetLatestAlpha(chainId: number) {
|
|
|
327
327
|
return contractRequests.batchCall<{
|
|
328
328
|
newAlpha: bigint;
|
|
329
329
|
curDistribution: bigint;
|
|
330
|
-
}>(chainId, __to, __data, ["uint256","uint256"])
|
|
330
|
+
}>(chainId, __to, __data, [{"internalType":"uint256","name":"newAlpha","type":"uint256"},{"internalType":"uint256","name":"curDistribution","type":"uint256"}])
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
/**
|
|
@@ -341,7 +341,7 @@ export function fetchVDODOTokenGetSuperior(chainId: number, account: string) {
|
|
|
341
341
|
|
|
342
342
|
const __encodeData = defaultAbiCoder.encode(["address"], [account]);
|
|
343
343
|
const __data = hexlify(concat(['0x443355e5', __encodeData]));
|
|
344
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["address"])
|
|
344
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"superior","type":"address"}])
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
/**
|
|
@@ -361,7 +361,7 @@ export function fetchVDODOTokenGetWithdrawResult(chainId: number, dodoAmount: nu
|
|
|
361
361
|
dodoReceive: bigint;
|
|
362
362
|
burnDodoAmount: bigint;
|
|
363
363
|
withdrawFeeDodoAmount: bigint;
|
|
364
|
-
}>(chainId, __to, __data, ["uint256","uint256","uint256"])
|
|
364
|
+
}>(chainId, __to, __data, [{"internalType":"uint256","name":"dodoReceive","type":"uint256"},{"internalType":"uint256","name":"burnDodoAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawFeeDodoAmount","type":"uint256"}])
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
/**
|
|
@@ -374,7 +374,7 @@ export function fetchVDODOTokenName(chainId: number) {
|
|
|
374
374
|
|
|
375
375
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
376
376
|
const __data = hexlify(concat(['0x06fdde03', __encodeData]));
|
|
377
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["string"])
|
|
377
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
/**
|
|
@@ -387,7 +387,7 @@ export function fetchVDODOTokenSymbol(chainId: number) {
|
|
|
387
387
|
|
|
388
388
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
389
389
|
const __data = hexlify(concat(['0x95d89b41', __encodeData]));
|
|
390
|
-
return contractRequests.batchCall<string>(chainId, __to, __data, ["string"])
|
|
390
|
+
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
/**
|
|
@@ -400,7 +400,7 @@ export function fetchVDODOTokenTotalSupply(chainId: number) {
|
|
|
400
400
|
|
|
401
401
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
402
402
|
const __data = hexlify(concat(['0x18160ddd', __encodeData]));
|
|
403
|
-
return contractRequests.batchCall<bigint>(chainId, __to, __data, ["uint256"])
|
|
403
|
+
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"vDODOSupply","type":"uint256"}])
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
/**
|
|
@@ -422,26 +422,26 @@ export function fetchVDODOTokenUserInfo(chainId: number, __input1: string) {
|
|
|
422
422
|
superiorSP: bigint;
|
|
423
423
|
superior: string;
|
|
424
424
|
credit: bigint;
|
|
425
|
-
}>(chainId, __to, __data, ["uint128","uint128","address","uint256"])
|
|
425
|
+
}>(chainId, __to, __data, [{"internalType":"uint128","name":"stakingPower","type":"uint128"},{"internalType":"uint128","name":"superiorSP","type":"uint128"},{"internalType":"address","name":"superior","type":"address"},{"internalType":"uint256","name":"credit","type":"uint256"}])
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* encode approve
|
|
430
430
|
* @param {string} spender - address
|
|
431
|
-
* @param {string} vDODOAmount - uint256
|
|
431
|
+
* @param {string | number} vDODOAmount - uint256
|
|
432
432
|
* @returns {string} encode data
|
|
433
433
|
*/
|
|
434
|
-
export function encodeVDODOTokenApprove(spender: string, vDODOAmount: string) {
|
|
434
|
+
export function encodeVDODOTokenApprove(spender: string, vDODOAmount: string | number) {
|
|
435
435
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [spender,vDODOAmount]);
|
|
436
436
|
return hexlify(concat(['0x095ea7b3', __encodeData]));
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* encode changePerReward
|
|
441
|
-
* @param {string} dodoPerBlock - uint256
|
|
441
|
+
* @param {string | number} dodoPerBlock - uint256
|
|
442
442
|
* @returns {string} encode data
|
|
443
443
|
*/
|
|
444
|
-
export function encodeVDODOTokenChangePerReward(dodoPerBlock: string) {
|
|
444
|
+
export function encodeVDODOTokenChangePerReward(dodoPerBlock: string | number) {
|
|
445
445
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [dodoPerBlock]);
|
|
446
446
|
return hexlify(concat(['0x300773cd', __encodeData]));
|
|
447
447
|
}
|
|
@@ -458,10 +458,10 @@ export function encodeVDODOTokenClaimOwnership() {
|
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
460
|
* encode donate
|
|
461
|
-
* @param {string} dodoAmount - uint256
|
|
461
|
+
* @param {string | number} dodoAmount - uint256
|
|
462
462
|
* @returns {string} encode data
|
|
463
463
|
*/
|
|
464
|
-
export function encodeVDODOTokenDonate(dodoAmount: string) {
|
|
464
|
+
export function encodeVDODOTokenDonate(dodoAmount: string | number) {
|
|
465
465
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [dodoAmount]);
|
|
466
466
|
return hexlify(concat(['0xf14faf6f', __encodeData]));
|
|
467
467
|
}
|
|
@@ -488,32 +488,32 @@ export function encodeVDODOTokenInitOwner(newOwner: string) {
|
|
|
488
488
|
|
|
489
489
|
/**
|
|
490
490
|
* encode mint
|
|
491
|
-
* @param {string} dodoAmount - uint256
|
|
491
|
+
* @param {string | number} dodoAmount - uint256
|
|
492
492
|
* @param {string} superiorAddress - address
|
|
493
493
|
* @returns {string} encode data
|
|
494
494
|
*/
|
|
495
|
-
export function encodeVDODOTokenMint(dodoAmount: string, superiorAddress: string) {
|
|
495
|
+
export function encodeVDODOTokenMint(dodoAmount: string | number, superiorAddress: string) {
|
|
496
496
|
const __encodeData = defaultAbiCoder.encode(["uint256","address"], [dodoAmount,superiorAddress]);
|
|
497
497
|
return hexlify(concat(['0x94bf804d', __encodeData]));
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* encode preDepositedBlockReward
|
|
502
|
-
* @param {string} dodoAmount - uint256
|
|
502
|
+
* @param {string | number} dodoAmount - uint256
|
|
503
503
|
* @returns {string} encode data
|
|
504
504
|
*/
|
|
505
|
-
export function encodeVDODOTokenPreDepositedBlockReward(dodoAmount: string) {
|
|
505
|
+
export function encodeVDODOTokenPreDepositedBlockReward(dodoAmount: string | number) {
|
|
506
506
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [dodoAmount]);
|
|
507
507
|
return hexlify(concat(['0x5400e36f', __encodeData]));
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
/**
|
|
511
511
|
* encode redeem
|
|
512
|
-
* @param {string} vdodoAmount - uint256
|
|
512
|
+
* @param {string | number} vdodoAmount - uint256
|
|
513
513
|
* @param {boolean} all - bool
|
|
514
514
|
* @returns {string} encode data
|
|
515
515
|
*/
|
|
516
|
-
export function encodeVDODOTokenRedeem(vdodoAmount: string, all: boolean) {
|
|
516
|
+
export function encodeVDODOTokenRedeem(vdodoAmount: string | number, all: boolean) {
|
|
517
517
|
const __encodeData = defaultAbiCoder.encode(["uint256","bool"], [vdodoAmount,all]);
|
|
518
518
|
return hexlify(concat(['0xd65a06b0', __encodeData]));
|
|
519
519
|
}
|
|
@@ -531,10 +531,10 @@ export function encodeVDODOTokenSetCantransfer(allowed: boolean) {
|
|
|
531
531
|
/**
|
|
532
532
|
* encode transfer
|
|
533
533
|
* @param {string} to - address
|
|
534
|
-
* @param {string} vDODOAmount - uint256
|
|
534
|
+
* @param {string | number} vDODOAmount - uint256
|
|
535
535
|
* @returns {string} encode data
|
|
536
536
|
*/
|
|
537
|
-
export function encodeVDODOTokenTransfer(to: string, vDODOAmount: string) {
|
|
537
|
+
export function encodeVDODOTokenTransfer(to: string, vDODOAmount: string | number) {
|
|
538
538
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [to,vDODOAmount]);
|
|
539
539
|
return hexlify(concat(['0xa9059cbb', __encodeData]));
|
|
540
540
|
}
|
|
@@ -543,10 +543,10 @@ export function encodeVDODOTokenTransfer(to: string, vDODOAmount: string) {
|
|
|
543
543
|
* encode transferFrom
|
|
544
544
|
* @param {string} from - address
|
|
545
545
|
* @param {string} to - address
|
|
546
|
-
* @param {string} vDODOAmount - uint256
|
|
546
|
+
* @param {string | number} vDODOAmount - uint256
|
|
547
547
|
* @returns {string} encode data
|
|
548
548
|
*/
|
|
549
|
-
export function encodeVDODOTokenTransferFrom(from: string, to: string, vDODOAmount: string) {
|
|
549
|
+
export function encodeVDODOTokenTransferFrom(from: string, to: string, vDODOAmount: string | number) {
|
|
550
550
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [from,to,vDODOAmount]);
|
|
551
551
|
return hexlify(concat(['0x23b872dd', __encodeData]));
|
|
552
552
|
}
|
|
@@ -573,10 +573,10 @@ export function encodeVDODOTokenUpdateDODOCirculationHelper(helper: string) {
|
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* encode updateDODOFeeBurnRatio
|
|
576
|
-
* @param {string} dodoFeeBurnRatio - uint256
|
|
576
|
+
* @param {string | number} dodoFeeBurnRatio - uint256
|
|
577
577
|
* @returns {string} encode data
|
|
578
578
|
*/
|
|
579
|
-
export function encodeVDODOTokenUpdateDODOFeeBurnRatio(dodoFeeBurnRatio: string) {
|
|
579
|
+
export function encodeVDODOTokenUpdateDODOFeeBurnRatio(dodoFeeBurnRatio: string | number) {
|
|
580
580
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [dodoFeeBurnRatio]);
|
|
581
581
|
return hexlify(concat(['0xb420901a', __encodeData]));
|
|
582
582
|
}
|