@dodoex/dodo-contract-request 1.6.0-alpha.3 → 1.6.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 +0 -27
- package/dist/types/contract/BuyoutModel.d.ts +12 -12
- package/dist/types/contract/CP.d.ts +80 -68
- package/dist/types/contract/CrowdPoolingFactory.d.ts +44 -38
- package/dist/types/contract/CustomERC20.d.ts +22 -22
- package/dist/types/contract/CustomMintableERC20.d.ts +22 -22
- package/dist/types/contract/D3Proxy.d.ts +8 -8
- package/dist/types/contract/D3Vault.d.ts +174 -96
- package/dist/types/contract/DODOApprove.d.ts +12 -12
- package/dist/types/contract/DODOApproveProxy.d.ts +14 -14
- package/dist/types/contract/DODOCalleeHelper.d.ts +2 -2
- package/dist/types/contract/DODOCirculationHelper.d.ts +14 -14
- package/dist/types/contract/DODOCpProxy.d.ts +6 -6
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +6 -6
- package/dist/types/contract/DODODppProxy.d.ts +6 -6
- package/dist/types/contract/DODODspProxy.d.ts +8 -8
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +6 -6
- package/dist/types/contract/DODOIncentive.d.ts +34 -22
- package/dist/types/contract/DODOMineV2Factory.d.ts +14 -14
- package/dist/types/contract/DODOMineV3Proxy.d.ts +12 -12
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +12 -12
- package/dist/types/contract/DODOMineV3Registry.d.ts +12 -12
- package/dist/types/contract/DODONFT.d.ts +28 -28
- package/dist/types/contract/DODONFT1155.d.ts +16 -16
- package/dist/types/contract/DODONFTApprove.d.ts +12 -12
- package/dist/types/contract/DODONFTPoolProxy.d.ts +20 -20
- package/dist/types/contract/DODONFTProxy.d.ts +24 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +20 -14
- package/dist/types/contract/DODONFTRouteHelper.d.ts +4 -4
- package/dist/types/contract/DODOSellHelper.d.ts +4 -4
- package/dist/types/contract/DODOStarterProxy.d.ts +4 -4
- package/dist/types/contract/DODOV1.d.ts +84 -78
- package/dist/types/contract/DODOV1Adapter.d.ts +2 -2
- package/dist/types/contract/DODOV1PmmHelper.d.ts +2 -2
- package/dist/types/contract/DODOV1Proxy.d.ts +2 -2
- package/dist/types/contract/DODOV2Proxy02.d.ts +26 -26
- package/dist/types/contract/DODOV2RouteHelper.d.ts +8 -8
- package/dist/types/contract/DPPAdvanced.d.ts +118 -54
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +14 -14
- package/dist/types/contract/DPPFactory.d.ts +34 -28
- package/dist/types/contract/DSP.d.ts +134 -70
- package/dist/types/contract/DSPFactory.d.ts +28 -22
- package/dist/types/contract/DVM.d.ts +120 -64
- package/dist/types/contract/DVMFactory.d.ts +28 -22
- package/dist/types/contract/ERC20.d.ts +12 -12
- package/dist/types/contract/ERC20Helper.d.ts +46 -8
- package/dist/types/contract/ERC20MineV3.d.ts +46 -26
- package/dist/types/contract/ERC20V3Factory.d.ts +30 -22
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +38 -20
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +152 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -20
- package/dist/types/contract/InitializableERC20.d.ts +14 -14
- package/dist/types/contract/LimitOrder.d.ts +20 -20
- package/dist/types/contract/LimitOrderBot.d.ts +12 -12
- package/dist/types/contract/MulticallWithValid.d.ts +14 -14
- package/dist/types/contract/PermissionManager.d.ts +8 -8
- package/dist/types/contract/UniswapV2Factory.d.ts +10 -10
- package/dist/types/contract/UniswapV2Pair.d.ts +46 -38
- package/dist/types/contract/UniswapV2Router02.d.ts +14 -14
- package/dist/types/contract/dodoTeam.d.ts +34 -28
- package/dist/types/contract/vDODOToken.d.ts +84 -60
- package/package.json +2 -2
- package/src/contract/BuyoutModel.ts +6 -6
- package/src/contract/CP.ts +40 -34
- package/src/contract/CrowdPoolingFactory.ts +22 -19
- package/src/contract/CustomERC20.ts +11 -11
- package/src/contract/CustomMintableERC20.ts +11 -11
- package/src/contract/D3Proxy.ts +4 -4
- package/src/contract/D3Vault.ts +87 -48
- package/src/contract/DODOApprove.ts +6 -6
- package/src/contract/DODOApproveProxy.ts +7 -7
- package/src/contract/DODOCalleeHelper.ts +1 -1
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +3 -3
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +3 -3
- package/src/contract/DODODppProxy.ts +3 -3
- package/src/contract/DODODspProxy.ts +4 -4
- package/src/contract/DODODspProxyWithoutGSP.ts +3 -3
- package/src/contract/DODOIncentive.ts +17 -11
- package/src/contract/DODOMineV2Factory.ts +7 -7
- package/src/contract/DODOMineV3Proxy.ts +6 -6
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +6 -6
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +14 -14
- package/src/contract/DODONFT1155.ts +8 -8
- package/src/contract/DODONFTApprove.ts +6 -6
- package/src/contract/DODONFTPoolProxy.ts +10 -10
- package/src/contract/DODONFTProxy.ts +12 -12
- package/src/contract/DODONFTRegistry.ts +10 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +2 -2
- package/src/contract/DODOV1.ts +42 -39
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +1 -1
- package/src/contract/DODOV2Proxy02.ts +13 -13
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +51 -27
- package/src/contract/DPPAdvancedAdmin.ts +7 -7
- package/src/contract/DPPFactory.ts +17 -14
- package/src/contract/DSP.ts +59 -35
- package/src/contract/DSPFactory.ts +14 -11
- package/src/contract/DVM.ts +52 -32
- package/src/contract/DVMFactory.ts +14 -11
- package/src/contract/ERC20.ts +6 -6
- package/src/contract/ERC20Helper.ts +23 -4
- package/src/contract/ERC20MineV3.ts +23 -13
- package/src/contract/ERC20V3Factory.ts +15 -11
- package/src/contract/FeeRateDIP3Impl.ts +19 -10
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +68 -41
- package/src/contract/GSPFactory.ts +13 -10
- package/src/contract/InitializableERC20.ts +7 -7
- package/src/contract/LimitOrder.ts +10 -10
- package/src/contract/LimitOrderBot.ts +6 -6
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +5 -5
- package/src/contract/UniswapV2Pair.ts +23 -19
- package/src/contract/UniswapV2Router02.ts +7 -7
- package/src/contract/dodoTeam.ts +17 -14
- package/src/contract/vDODOToken.ts +42 -30
package/src/contract/DSP.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { contractRequests } from '../contractRequests';
|
|
|
10
10
|
* @param {string} __to - string
|
|
11
11
|
* @returns {string} __output0 - bytes32
|
|
12
12
|
*/
|
|
13
|
-
export function fetchDSPDOMAIN_SEPARATOR(chainId: number, __to: string) {
|
|
13
|
+
export function fetchDSPDOMAIN_SEPARATOR(chainId: number, __to: string): Promise<string> {
|
|
14
14
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
15
15
|
const __data = hexlify(concat(['0x3644e515', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
@@ -31,7 +31,7 @@ export function getFetchDSPDOMAIN_SEPARATORQueryOptions(chainId: number | undefi
|
|
|
31
31
|
* @param {string} __to - string
|
|
32
32
|
* @returns {string} __output0 - bytes32
|
|
33
33
|
*/
|
|
34
|
-
export function fetchDSPPERMIT_TYPEHASH(chainId: number, __to: string) {
|
|
34
|
+
export function fetchDSPPERMIT_TYPEHASH(chainId: number, __to: string): Promise<string> {
|
|
35
35
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
36
36
|
const __data = hexlify(concat(['0x30adf81f', __encodeData]));
|
|
37
37
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
@@ -52,7 +52,7 @@ export function getFetchDSPPERMIT_TYPEHASHQueryOptions(chainId: number | undefin
|
|
|
52
52
|
* @param {string} __to - string
|
|
53
53
|
* @returns {bigint} __output0 - uint256
|
|
54
54
|
*/
|
|
55
|
-
export function fetchDSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string) {
|
|
55
|
+
export function fetchDSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string): Promise<bigint> {
|
|
56
56
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
57
57
|
const __data = hexlify(concat(['0xfe24cb7f', __encodeData]));
|
|
58
58
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -73,7 +73,7 @@ export function getFetchDSP_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chainId: num
|
|
|
73
73
|
* @param {string} __to - string
|
|
74
74
|
* @returns {bigint} __output0 - uint112
|
|
75
75
|
*/
|
|
76
|
-
export function fetchDSP_BASE_RESERVE_(chainId: number, __to: string) {
|
|
76
|
+
export function fetchDSP_BASE_RESERVE_(chainId: number, __to: string): Promise<bigint> {
|
|
77
77
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
78
78
|
const __data = hexlify(concat(['0x7d721504', __encodeData]));
|
|
79
79
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
@@ -94,7 +94,7 @@ export function getFetchDSP_BASE_RESERVE_QueryOptions(chainId: number | undefine
|
|
|
94
94
|
* @param {string} __to - string
|
|
95
95
|
* @returns {bigint} __output0 - uint112
|
|
96
96
|
*/
|
|
97
|
-
export function fetchDSP_BASE_TARGET_(chainId: number, __to: string) {
|
|
97
|
+
export function fetchDSP_BASE_TARGET_(chainId: number, __to: string): Promise<bigint> {
|
|
98
98
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
99
99
|
const __data = hexlify(concat(['0xe539ef49', __encodeData]));
|
|
100
100
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
@@ -115,7 +115,7 @@ export function getFetchDSP_BASE_TARGET_QueryOptions(chainId: number | undefined
|
|
|
115
115
|
* @param {string} __to - string
|
|
116
116
|
* @returns {string} __output0 - address
|
|
117
117
|
*/
|
|
118
|
-
export function fetchDSP_BASE_TOKEN_(chainId: number, __to: string) {
|
|
118
|
+
export function fetchDSP_BASE_TOKEN_(chainId: number, __to: string): Promise<string> {
|
|
119
119
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
120
120
|
const __data = hexlify(concat(['0x4a248d2a', __encodeData]));
|
|
121
121
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
|
|
@@ -136,7 +136,7 @@ export function getFetchDSP_BASE_TOKEN_QueryOptions(chainId: number | undefined,
|
|
|
136
136
|
* @param {string} __to - string
|
|
137
137
|
* @returns {bigint} __output0 - uint32
|
|
138
138
|
*/
|
|
139
|
-
export function fetchDSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string) {
|
|
139
|
+
export function fetchDSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string): Promise<bigint> {
|
|
140
140
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
141
141
|
const __data = hexlify(concat(['0x880a4d87', __encodeData]));
|
|
142
142
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
|
|
@@ -157,7 +157,7 @@ export function getFetchDSP_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number |
|
|
|
157
157
|
* @param {string} __to - string
|
|
158
158
|
* @returns {boolean} __output0 - bool
|
|
159
159
|
*/
|
|
160
|
-
export function fetchDSP_IS_OPEN_TWAP_(chainId: number, __to: string) {
|
|
160
|
+
export function fetchDSP_IS_OPEN_TWAP_(chainId: number, __to: string): Promise<boolean> {
|
|
161
161
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
162
162
|
const __data = hexlify(concat(['0x2df6cb48', __encodeData]));
|
|
163
163
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
@@ -178,7 +178,7 @@ export function getFetchDSP_IS_OPEN_TWAP_QueryOptions(chainId: number | undefine
|
|
|
178
178
|
* @param {string} __to - string
|
|
179
179
|
* @returns {bigint} __output0 - uint256
|
|
180
180
|
*/
|
|
181
|
-
export function fetchDSP_I_(chainId: number, __to: string) {
|
|
181
|
+
export function fetchDSP_I_(chainId: number, __to: string): Promise<bigint> {
|
|
182
182
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
183
183
|
const __data = hexlify(concat(['0xf811d692', __encodeData]));
|
|
184
184
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -199,7 +199,7 @@ export function getFetchDSP_I_QueryOptions(chainId: number | undefined, __to: st
|
|
|
199
199
|
* @param {string} __to - string
|
|
200
200
|
* @returns {bigint} __output0 - uint256
|
|
201
201
|
*/
|
|
202
|
-
export function fetchDSP_K_(chainId: number, __to: string) {
|
|
202
|
+
export function fetchDSP_K_(chainId: number, __to: string): Promise<bigint> {
|
|
203
203
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
204
204
|
const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
|
|
205
205
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -220,7 +220,7 @@ export function getFetchDSP_K_QueryOptions(chainId: number | undefined, __to: st
|
|
|
220
220
|
* @param {string} __to - string
|
|
221
221
|
* @returns {bigint} __output0 - uint256
|
|
222
222
|
*/
|
|
223
|
-
export function fetchDSP_LP_FEE_RATE_(chainId: number, __to: string) {
|
|
223
|
+
export function fetchDSP_LP_FEE_RATE_(chainId: number, __to: string): Promise<bigint> {
|
|
224
224
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
225
225
|
const __data = hexlify(concat(['0xab44a7a3', __encodeData]));
|
|
226
226
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -241,7 +241,7 @@ export function getFetchDSP_LP_FEE_RATE_QueryOptions(chainId: number | undefined
|
|
|
241
241
|
* @param {string} __to - string
|
|
242
242
|
* @returns {string} __output0 - address
|
|
243
243
|
*/
|
|
244
|
-
export function fetchDSP_MAINTAINER_(chainId: number, __to: string) {
|
|
244
|
+
export function fetchDSP_MAINTAINER_(chainId: number, __to: string): Promise<string> {
|
|
245
245
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
246
246
|
const __data = hexlify(concat(['0x4322ec83', __encodeData]));
|
|
247
247
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -262,7 +262,7 @@ export function getFetchDSP_MAINTAINER_QueryOptions(chainId: number | undefined,
|
|
|
262
262
|
* @param {string} __to - string
|
|
263
263
|
* @returns {string} __output0 - address
|
|
264
264
|
*/
|
|
265
|
-
export function fetchDSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string) {
|
|
265
|
+
export function fetchDSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string): Promise<string> {
|
|
266
266
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
267
267
|
const __data = hexlify(concat(['0xf6b06e70', __encodeData]));
|
|
268
268
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IFeeRateModel","name":"","type":"address"}])
|
|
@@ -283,7 +283,7 @@ export function getFetchDSP_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | und
|
|
|
283
283
|
* @param {string} __to - string
|
|
284
284
|
* @returns {bigint} __output0 - uint112
|
|
285
285
|
*/
|
|
286
|
-
export function fetchDSP_QUOTE_RESERVE_(chainId: number, __to: string) {
|
|
286
|
+
export function fetchDSP_QUOTE_RESERVE_(chainId: number, __to: string): Promise<bigint> {
|
|
287
287
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
288
288
|
const __data = hexlify(concat(['0xbbf5ce78', __encodeData]));
|
|
289
289
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
@@ -304,7 +304,7 @@ export function getFetchDSP_QUOTE_RESERVE_QueryOptions(chainId: number | undefin
|
|
|
304
304
|
* @param {string} __to - string
|
|
305
305
|
* @returns {bigint} __output0 - uint112
|
|
306
306
|
*/
|
|
307
|
-
export function fetchDSP_QUOTE_TARGET_(chainId: number, __to: string) {
|
|
307
|
+
export function fetchDSP_QUOTE_TARGET_(chainId: number, __to: string): Promise<bigint> {
|
|
308
308
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
309
309
|
const __data = hexlify(concat(['0x77f58657', __encodeData]));
|
|
310
310
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
@@ -325,7 +325,7 @@ export function getFetchDSP_QUOTE_TARGET_QueryOptions(chainId: number | undefine
|
|
|
325
325
|
* @param {string} __to - string
|
|
326
326
|
* @returns {string} __output0 - address
|
|
327
327
|
*/
|
|
328
|
-
export function fetchDSP_QUOTE_TOKEN_(chainId: number, __to: string) {
|
|
328
|
+
export function fetchDSP_QUOTE_TOKEN_(chainId: number, __to: string): Promise<string> {
|
|
329
329
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
330
330
|
const __data = hexlify(concat(['0xd4b97046', __encodeData]));
|
|
331
331
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
|
|
@@ -346,7 +346,7 @@ export function getFetchDSP_QUOTE_TOKEN_QueryOptions(chainId: number | undefined
|
|
|
346
346
|
* @param {string} __to - string
|
|
347
347
|
* @returns {bigint} __output0 - uint32
|
|
348
348
|
*/
|
|
349
|
-
export function fetchDSP_RState_(chainId: number, __to: string) {
|
|
349
|
+
export function fetchDSP_RState_(chainId: number, __to: string): Promise<bigint> {
|
|
350
350
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
351
351
|
const __data = hexlify(concat(['0xbf357dae', __encodeData]));
|
|
352
352
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
|
|
@@ -368,7 +368,7 @@ export function getFetchDSP_RState_QueryOptions(chainId: number | undefined, __t
|
|
|
368
368
|
* @param {string} _addr - address
|
|
369
369
|
* @returns {string} __output0 - string
|
|
370
370
|
*/
|
|
371
|
-
export function fetchDSPAddressToShortString(chainId: number, __to: string, _addr: string) {
|
|
371
|
+
export function fetchDSPAddressToShortString(chainId: number, __to: string, _addr: string): Promise<string> {
|
|
372
372
|
const __encodeData = defaultAbiCoder.encode(["address"], [_addr]);
|
|
373
373
|
const __data = hexlify(concat(['0x17101940', __encodeData]));
|
|
374
374
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -391,7 +391,7 @@ export function getFetchDSPAddressToShortStringQueryOptions(chainId: number | un
|
|
|
391
391
|
* @param {string} spender - address
|
|
392
392
|
* @returns {bigint} __output0 - uint256
|
|
393
393
|
*/
|
|
394
|
-
export function fetchDSPAllowance(chainId: number, __to: string, owner: string, spender: string) {
|
|
394
|
+
export function fetchDSPAllowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint> {
|
|
395
395
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [owner,spender]);
|
|
396
396
|
const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
|
|
397
397
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -413,7 +413,7 @@ export function getFetchDSPAllowanceQueryOptions(chainId: number | undefined, __
|
|
|
413
413
|
* @param {string} owner - address
|
|
414
414
|
* @returns {bigint} balance - uint256
|
|
415
415
|
*/
|
|
416
|
-
export function fetchDSPBalanceOf(chainId: number, __to: string, owner: string) {
|
|
416
|
+
export function fetchDSPBalanceOf(chainId: number, __to: string, owner: string): Promise<bigint> {
|
|
417
417
|
const __encodeData = defaultAbiCoder.encode(["address"], [owner]);
|
|
418
418
|
const __data = hexlify(concat(['0x70a08231', __encodeData]));
|
|
419
419
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
|
|
@@ -434,7 +434,7 @@ export function getFetchDSPBalanceOfQueryOptions(chainId: number | undefined, __
|
|
|
434
434
|
* @param {string} __to - string
|
|
435
435
|
* @returns {bigint} __output0 - uint8
|
|
436
436
|
*/
|
|
437
|
-
export function fetchDSPDecimals(chainId: number, __to: string) {
|
|
437
|
+
export function fetchDSPDecimals(chainId: number, __to: string): Promise<bigint> {
|
|
438
438
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
439
439
|
const __data = hexlify(concat(['0x313ce567', __encodeData]));
|
|
440
440
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
|
|
@@ -455,7 +455,7 @@ export function getFetchDSPDecimalsQueryOptions(chainId: number | undefined, __t
|
|
|
455
455
|
* @param {string} __to - string
|
|
456
456
|
* @returns {bigint} input - uint256
|
|
457
457
|
*/
|
|
458
|
-
export function fetchDSPGetBaseInput(chainId: number, __to: string) {
|
|
458
|
+
export function fetchDSPGetBaseInput(chainId: number, __to: string): Promise<bigint> {
|
|
459
459
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
460
460
|
const __data = hexlify(concat(['0x65f6fcbb', __encodeData]));
|
|
461
461
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
|
|
@@ -476,7 +476,7 @@ export function getFetchDSPGetBaseInputQueryOptions(chainId: number | undefined,
|
|
|
476
476
|
* @param {string} __to - string
|
|
477
477
|
* @returns {bigint} midPrice - uint256
|
|
478
478
|
*/
|
|
479
|
-
export function fetchDSPGetMidPrice(chainId: number, __to: string) {
|
|
479
|
+
export function fetchDSPGetMidPrice(chainId: number, __to: string): Promise<bigint> {
|
|
480
480
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
481
481
|
const __data = hexlify(concat(['0xee27c689', __encodeData]));
|
|
482
482
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"midPrice","type":"uint256"}])
|
|
@@ -497,7 +497,7 @@ export function getFetchDSPGetMidPriceQueryOptions(chainId: number | undefined,
|
|
|
497
497
|
* @param {string} __to - string
|
|
498
498
|
* @returns {{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}} state - tuple
|
|
499
499
|
*/
|
|
500
|
-
export function fetchDSPGetPMMState(chainId: number, __to: string) {
|
|
500
|
+
export function fetchDSPGetPMMState(chainId: number, __to: string): Promise<{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}> {
|
|
501
501
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
502
502
|
const __data = hexlify(concat(['0xa382d1b9', __encodeData]));
|
|
503
503
|
return contractRequests.batchCall<{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}>(chainId, __to, __data, [{"components":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"K","type":"uint256"},{"internalType":"uint256","name":"B","type":"uint256"},{"internalType":"uint256","name":"Q","type":"uint256"},{"internalType":"uint256","name":"B0","type":"uint256"},{"internalType":"uint256","name":"Q0","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"R","type":"uint8"}],"internalType":"struct PMMPricing.PMMState","name":"state","type":"tuple"}])
|
|
@@ -524,7 +524,15 @@ export function getFetchDSPGetPMMStateQueryOptions(chainId: number | undefined,
|
|
|
524
524
|
* @returns {bigint} Q0 - uint256
|
|
525
525
|
* @returns {bigint} R - uint256
|
|
526
526
|
*/
|
|
527
|
-
export function fetchDSPGetPMMStateForCall(chainId: number, __to: string) {
|
|
527
|
+
export function fetchDSPGetPMMStateForCall(chainId: number, __to: string): Promise<{
|
|
528
|
+
i: bigint;
|
|
529
|
+
K: bigint;
|
|
530
|
+
B: bigint;
|
|
531
|
+
Q: bigint;
|
|
532
|
+
B0: bigint;
|
|
533
|
+
Q0: bigint;
|
|
534
|
+
R: bigint;
|
|
535
|
+
}> {
|
|
528
536
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
529
537
|
const __data = hexlify(concat(['0xfd1ed7e9', __encodeData]));
|
|
530
538
|
return contractRequests.batchCall<{
|
|
@@ -553,7 +561,7 @@ export function getFetchDSPGetPMMStateForCallQueryOptions(chainId: number | unde
|
|
|
553
561
|
* @param {string} __to - string
|
|
554
562
|
* @returns {bigint} input - uint256
|
|
555
563
|
*/
|
|
556
|
-
export function fetchDSPGetQuoteInput(chainId: number, __to: string) {
|
|
564
|
+
export function fetchDSPGetQuoteInput(chainId: number, __to: string): Promise<bigint> {
|
|
557
565
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
558
566
|
const __data = hexlify(concat(['0x71f9100c', __encodeData]));
|
|
559
567
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
|
|
@@ -576,7 +584,10 @@ export function getFetchDSPGetQuoteInputQueryOptions(chainId: number | undefined
|
|
|
576
584
|
* @returns {bigint} lpFeeRate - uint256
|
|
577
585
|
* @returns {bigint} mtFeeRate - uint256
|
|
578
586
|
*/
|
|
579
|
-
export function fetchDSPGetUserFeeRate(chainId: number, __to: string, user: string) {
|
|
587
|
+
export function fetchDSPGetUserFeeRate(chainId: number, __to: string, user: string): Promise<{
|
|
588
|
+
lpFeeRate: bigint;
|
|
589
|
+
mtFeeRate: bigint;
|
|
590
|
+
}> {
|
|
580
591
|
const __encodeData = defaultAbiCoder.encode(["address"], [user]);
|
|
581
592
|
const __data = hexlify(concat(['0x44096609', __encodeData]));
|
|
582
593
|
return contractRequests.batchCall<{
|
|
@@ -601,7 +612,10 @@ export function getFetchDSPGetUserFeeRateQueryOptions(chainId: number | undefine
|
|
|
601
612
|
* @returns {bigint} baseReserve - uint256
|
|
602
613
|
* @returns {bigint} quoteReserve - uint256
|
|
603
614
|
*/
|
|
604
|
-
export function fetchDSPGetVaultReserve(chainId: number, __to: string) {
|
|
615
|
+
export function fetchDSPGetVaultReserve(chainId: number, __to: string): Promise<{
|
|
616
|
+
baseReserve: bigint;
|
|
617
|
+
quoteReserve: bigint;
|
|
618
|
+
}> {
|
|
605
619
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
606
620
|
const __data = hexlify(concat(['0x36223ce9', __encodeData]));
|
|
607
621
|
return contractRequests.batchCall<{
|
|
@@ -625,7 +639,7 @@ export function getFetchDSPGetVaultReserveQueryOptions(chainId: number | undefin
|
|
|
625
639
|
* @param {string} __to - string
|
|
626
640
|
* @returns {string} __output0 - string
|
|
627
641
|
*/
|
|
628
|
-
export function fetchDSPName(chainId: number, __to: string) {
|
|
642
|
+
export function fetchDSPName(chainId: number, __to: string): Promise<string> {
|
|
629
643
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
630
644
|
const __data = hexlify(concat(['0x06fdde03', __encodeData]));
|
|
631
645
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -647,7 +661,7 @@ export function getFetchDSPNameQueryOptions(chainId: number | undefined, __to: s
|
|
|
647
661
|
* @param {string} __input1 - address
|
|
648
662
|
* @returns {bigint} __output0 - uint256
|
|
649
663
|
*/
|
|
650
|
-
export function fetchDSPNonces(chainId: number, __to: string, __input1: string) {
|
|
664
|
+
export function fetchDSPNonces(chainId: number, __to: string, __input1: string): Promise<bigint> {
|
|
651
665
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
652
666
|
const __data = hexlify(concat(['0x7ecebe00', __encodeData]));
|
|
653
667
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -673,7 +687,12 @@ export function getFetchDSPNoncesQueryOptions(chainId: number | undefined, __to:
|
|
|
673
687
|
* @returns {bigint} newRState - uint8
|
|
674
688
|
* @returns {bigint} newBaseTarget - uint256
|
|
675
689
|
*/
|
|
676
|
-
export function fetchDSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number) {
|
|
690
|
+
export function fetchDSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number): Promise<{
|
|
691
|
+
receiveQuoteAmount: bigint;
|
|
692
|
+
mtFee: bigint;
|
|
693
|
+
newRState: bigint;
|
|
694
|
+
newBaseTarget: bigint;
|
|
695
|
+
}> {
|
|
677
696
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [trader,payBaseAmount]);
|
|
678
697
|
const __data = hexlify(concat(['0x79a04876', __encodeData]));
|
|
679
698
|
return contractRequests.batchCall<{
|
|
@@ -704,7 +723,12 @@ export function getFetchDSPQuerySellBaseQueryOptions(chainId: number | undefined
|
|
|
704
723
|
* @returns {bigint} newRState - uint8
|
|
705
724
|
* @returns {bigint} newQuoteTarget - uint256
|
|
706
725
|
*/
|
|
707
|
-
export function fetchDSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number) {
|
|
726
|
+
export function fetchDSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number): Promise<{
|
|
727
|
+
receiveBaseAmount: bigint;
|
|
728
|
+
mtFee: bigint;
|
|
729
|
+
newRState: bigint;
|
|
730
|
+
newQuoteTarget: bigint;
|
|
731
|
+
}> {
|
|
708
732
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [trader,payQuoteAmount]);
|
|
709
733
|
const __data = hexlify(concat(['0x66410a21', __encodeData]));
|
|
710
734
|
return contractRequests.batchCall<{
|
|
@@ -730,7 +754,7 @@ export function getFetchDSPQuerySellQuoteQueryOptions(chainId: number | undefine
|
|
|
730
754
|
* @param {string} __to - string
|
|
731
755
|
* @returns {string} __output0 - string
|
|
732
756
|
*/
|
|
733
|
-
export function fetchDSPSymbol(chainId: number, __to: string) {
|
|
757
|
+
export function fetchDSPSymbol(chainId: number, __to: string): Promise<string> {
|
|
734
758
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
735
759
|
const __data = hexlify(concat(['0x95d89b41', __encodeData]));
|
|
736
760
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -751,7 +775,7 @@ export function getFetchDSPSymbolQueryOptions(chainId: number | undefined, __to:
|
|
|
751
775
|
* @param {string} __to - string
|
|
752
776
|
* @returns {bigint} __output0 - uint256
|
|
753
777
|
*/
|
|
754
|
-
export function fetchDSPTotalSupply(chainId: number, __to: string) {
|
|
778
|
+
export function fetchDSPTotalSupply(chainId: number, __to: string): Promise<bigint> {
|
|
755
779
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
756
780
|
const __data = hexlify(concat(['0x18160ddd', __encodeData]));
|
|
757
781
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -772,7 +796,7 @@ export function getFetchDSPTotalSupplyQueryOptions(chainId: number | undefined,
|
|
|
772
796
|
* @param {string} __to - string
|
|
773
797
|
* @returns {string} __output0 - string
|
|
774
798
|
*/
|
|
775
|
-
export function fetchDSPVersion(chainId: number, __to: string) {
|
|
799
|
+
export function fetchDSPVersion(chainId: number, __to: string): Promise<string> {
|
|
776
800
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
777
801
|
const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
|
|
778
802
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -14,7 +14,7 @@ export function getDSPFactoryContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {string} __output0 - address
|
|
16
16
|
*/
|
|
17
|
-
export function fetchDSPFactory_CLONE_FACTORY_(chainId: number) {
|
|
17
|
+
export function fetchDSPFactory_CLONE_FACTORY_(chainId: number): Promise<string> {
|
|
18
18
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchDSPFactory_CLONE_FACTORY_QueryOptions(chainId: number |
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {string} __output0 - address
|
|
38
38
|
*/
|
|
39
|
-
export function fetchDSPFactory_DEFAULT_MAINTAINER_(chainId: number) {
|
|
39
|
+
export function fetchDSPFactory_DEFAULT_MAINTAINER_(chainId: number): Promise<string> {
|
|
40
40
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchDSPFactory_DEFAULT_MAINTAINER_QueryOptions(chainId: numb
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export function fetchDSPFactory_DEFAULT_MT_FEE_RATE_MODEL_(chainId: number) {
|
|
61
|
+
export function fetchDSPFactory_DEFAULT_MT_FEE_RATE_MODEL_(chainId: number): Promise<string> {
|
|
62
62
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchDSPFactory_DEFAULT_MT_FEE_RATE_MODEL_QueryOptions(chainI
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchDSPFactory_DSP_TEMPLATE_(chainId: number) {
|
|
83
|
+
export function fetchDSPFactory_DSP_TEMPLATE_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -102,7 +102,7 @@ export function getFetchDSPFactory_DSP_TEMPLATE_QueryOptions(chainId: number | u
|
|
|
102
102
|
* @param {number} chainId - number
|
|
103
103
|
* @returns {string} __output0 - address
|
|
104
104
|
*/
|
|
105
|
-
export function fetchDSPFactory_NEW_OWNER_(chainId: number) {
|
|
105
|
+
export function fetchDSPFactory_NEW_OWNER_(chainId: number): Promise<string> {
|
|
106
106
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
107
107
|
|
|
108
108
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -124,7 +124,7 @@ export function getFetchDSPFactory_NEW_OWNER_QueryOptions(chainId: number | unde
|
|
|
124
124
|
* @param {number} chainId - number
|
|
125
125
|
* @returns {string} __output0 - address
|
|
126
126
|
*/
|
|
127
|
-
export function fetchDSPFactory_OWNER_(chainId: number) {
|
|
127
|
+
export function fetchDSPFactory_OWNER_(chainId: number): Promise<string> {
|
|
128
128
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
129
129
|
|
|
130
130
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -149,7 +149,7 @@ export function getFetchDSPFactory_OWNER_QueryOptions(chainId: number | undefine
|
|
|
149
149
|
* @param {number} __input3 - uint256
|
|
150
150
|
* @returns {string} __output0 - address
|
|
151
151
|
*/
|
|
152
|
-
export function fetchDSPFactory_REGISTRY_(chainId: number, __input1: string, __input2: string, __input3: number) {
|
|
152
|
+
export function fetchDSPFactory_REGISTRY_(chainId: number, __input1: string, __input2: string, __input3: number): Promise<string> {
|
|
153
153
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
154
154
|
|
|
155
155
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [__input1,__input2,__input3]);
|
|
@@ -173,7 +173,7 @@ export function getFetchDSPFactory_REGISTRY_QueryOptions(chainId: number | undef
|
|
|
173
173
|
* @param {number} __input2 - uint256
|
|
174
174
|
* @returns {string} __output0 - address
|
|
175
175
|
*/
|
|
176
|
-
export function fetchDSPFactory_USER_REGISTRY_(chainId: number, __input1: string, __input2: number) {
|
|
176
|
+
export function fetchDSPFactory_USER_REGISTRY_(chainId: number, __input1: string, __input2: number): Promise<string> {
|
|
177
177
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
178
178
|
|
|
179
179
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [__input1,__input2]);
|
|
@@ -197,7 +197,7 @@ export function getFetchDSPFactory_USER_REGISTRY_QueryOptions(chainId: number |
|
|
|
197
197
|
* @param {string} quoteToken - address
|
|
198
198
|
* @returns {Array<string>} machines - address[]
|
|
199
199
|
*/
|
|
200
|
-
export function fetchDSPFactoryGetDODOPool(chainId: number, baseToken: string, quoteToken: string) {
|
|
200
|
+
export function fetchDSPFactoryGetDODOPool(chainId: number, baseToken: string, quoteToken: string): Promise<Array<string>> {
|
|
201
201
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
202
202
|
|
|
203
203
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [baseToken,quoteToken]);
|
|
@@ -222,7 +222,10 @@ export function getFetchDSPFactoryGetDODOPoolQueryOptions(chainId: number | unde
|
|
|
222
222
|
* @returns {Array<string>} baseToken0Machines - address[]
|
|
223
223
|
* @returns {Array<string>} baseToken1Machines - address[]
|
|
224
224
|
*/
|
|
225
|
-
export function fetchDSPFactoryGetDODOPoolBidirection(chainId: number, token0: string, token1: string) {
|
|
225
|
+
export function fetchDSPFactoryGetDODOPoolBidirection(chainId: number, token0: string, token1: string): Promise<{
|
|
226
|
+
baseToken0Machines: Array<string>;
|
|
227
|
+
baseToken1Machines: Array<string>;
|
|
228
|
+
}> {
|
|
226
229
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
227
230
|
|
|
228
231
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [token0,token1]);
|
|
@@ -248,7 +251,7 @@ export function getFetchDSPFactoryGetDODOPoolBidirectionQueryOptions(chainId: nu
|
|
|
248
251
|
* @param {string} user - address
|
|
249
252
|
* @returns {Array<string>} machines - address[]
|
|
250
253
|
*/
|
|
251
|
-
export function fetchDSPFactoryGetDODOPoolByUser(chainId: number, user: string) {
|
|
254
|
+
export function fetchDSPFactoryGetDODOPoolByUser(chainId: number, user: string): Promise<Array<string>> {
|
|
252
255
|
const __to = getDSPFactoryContractAddressByChainId(chainId);
|
|
253
256
|
|
|
254
257
|
const __encodeData = defaultAbiCoder.encode(["address"], [user]);
|