@dodoex/dodo-contract-request 1.5.0 → 1.6.0-alpha.2
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 +8 -3
- package/CHANGELOG.md +15 -25
- package/contract-config/sepolia.json +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +42 -12
- package/dist/types/contract/CP.d.ts +214 -50
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
- package/dist/types/contract/CustomERC20.d.ts +75 -20
- package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
- package/dist/types/contract/D3Proxy.d.ts +33 -13
- package/dist/types/contract/D3Vault.d.ts +324 -123
- package/dist/types/contract/DODOApprove.d.ts +44 -14
- package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
- package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
- package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
- package/dist/types/contract/DODOCpProxy.d.ts +20 -5
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
- package/dist/types/contract/DODODppProxy.d.ts +20 -5
- package/dist/types/contract/DODODspProxy.d.ts +27 -7
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
- package/dist/types/contract/DODOIncentive.d.ts +75 -26
- package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
- package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
- package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
- package/dist/types/contract/DODONFT.d.ts +95 -25
- package/dist/types/contract/DODONFT1155.d.ts +56 -16
- package/dist/types/contract/DODONFTApprove.d.ts +47 -17
- package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
- package/dist/types/contract/DODONFTProxy.d.ts +84 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
- package/dist/types/contract/DODOSellHelper.d.ts +12 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
- package/dist/types/contract/DODOV1.d.ts +269 -77
- package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
- package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
- package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
- package/dist/types/contract/DPPAdvanced.d.ts +172 -69
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
- package/dist/types/contract/DPPFactory.d.ts +97 -30
- package/dist/types/contract/DSP.d.ts +221 -78
- package/dist/types/contract/DSPFactory.d.ts +73 -21
- package/dist/types/contract/DVM.d.ts +203 -71
- package/dist/types/contract/DVMFactory.d.ts +73 -21
- package/dist/types/contract/ERC20.d.ts +41 -11
- package/dist/types/contract/ERC20Helper.d.ts +24 -23
- package/dist/types/contract/ERC20MineV3.d.ts +91 -36
- package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
- package/dist/types/contract/FeeRateModel.d.ts +28 -8
- package/dist/types/contract/GSP.d.ts +265 -95
- package/dist/types/contract/GSPFactory.d.ts +68 -21
- package/dist/types/contract/InitializableERC20.d.ts +46 -11
- package/dist/types/contract/LimitOrder.d.ts +71 -21
- package/dist/types/contract/LimitOrderBot.d.ts +45 -15
- package/dist/types/contract/MulticallWithValid.d.ts +43 -8
- package/dist/types/contract/PermissionManager.d.ts +33 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
- package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
- package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
- package/dist/types/contract/dodoTeam.d.ts +100 -33
- package/dist/types/contract/vDODOToken.d.ts +196 -58
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/scripts/contract-generate.ts +8 -1
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +60 -0
- package/src/contract/CP.ts +340 -0
- package/src/contract/CrowdPoolingFactory.ts +190 -0
- package/src/contract/CustomERC20.ts +110 -0
- package/src/contract/CustomMintableERC20.ts +110 -0
- package/src/contract/D3Proxy.ts +40 -0
- package/src/contract/D3Vault.ts +480 -0
- package/src/contract/DODOApprove.ts +60 -0
- package/src/contract/DODOApproveProxy.ts +70 -0
- package/src/contract/DODOCalleeHelper.ts +10 -0
- package/src/contract/DODOCirculationHelper.ts +70 -0
- package/src/contract/DODOCpProxy.ts +30 -0
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
- package/src/contract/DODODppProxy.ts +30 -0
- package/src/contract/DODODspProxy.ts +40 -0
- package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
- package/src/contract/DODOIncentive.ts +110 -0
- package/src/contract/DODOMineV2Factory.ts +70 -0
- package/src/contract/DODOMineV3Proxy.ts +60 -0
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
- package/src/contract/DODOMineV3Registry.ts +60 -0
- package/src/contract/DODONFT.ts +140 -0
- package/src/contract/DODONFT1155.ts +80 -0
- package/src/contract/DODONFTApprove.ts +60 -0
- package/src/contract/DODONFTPoolProxy.ts +100 -0
- package/src/contract/DODONFTProxy.ts +120 -0
- package/src/contract/DODONFTRegistry.ts +70 -0
- package/src/contract/DODONFTRouteHelper.ts +20 -0
- package/src/contract/DODOSellHelper.ts +20 -0
- package/src/contract/DODOStarterProxy.ts +20 -0
- package/src/contract/DODOV1.ts +390 -0
- package/src/contract/DODOV1Adapter.ts +10 -0
- package/src/contract/DODOV1PmmHelper.ts +10 -0
- package/src/contract/DODOV1Proxy.ts +10 -0
- package/src/contract/DODOV2Proxy02.ts +130 -0
- package/src/contract/DODOV2RouteHelper.ts +40 -0
- package/src/contract/DPPAdvanced.ts +270 -0
- package/src/contract/DPPAdvancedAdmin.ts +70 -0
- package/src/contract/DPPFactory.ts +140 -0
- package/src/contract/DSP.ts +350 -0
- package/src/contract/DSPFactory.ts +110 -0
- package/src/contract/DVM.ts +320 -0
- package/src/contract/DVMFactory.ts +110 -0
- package/src/contract/ERC20.ts +60 -0
- package/src/contract/ERC20Helper.ts +40 -0
- package/src/contract/ERC20MineV3.ts +130 -0
- package/src/contract/ERC20V3Factory.ts +110 -0
- package/src/contract/FeeRateDIP3Impl.ts +100 -0
- package/src/contract/FeeRateModel.ts +40 -0
- package/src/contract/GSP.ts +410 -0
- package/src/contract/GSPFactory.ts +100 -0
- package/src/contract/InitializableERC20.ts +70 -0
- package/src/contract/LimitOrder.ts +100 -0
- package/src/contract/LimitOrderBot.ts +60 -0
- package/src/contract/MulticallWithValid.ts +70 -0
- package/src/contract/PermissionManager.ts +40 -0
- package/src/contract/UniswapV2Factory.ts +51 -1
- package/src/contract/UniswapV2Pair.ts +190 -0
- package/src/contract/UniswapV2Router02.ts +71 -1
- package/src/contract/dodoTeam.ts +140 -0
- package/src/contract/vDODOToken.ts +300 -0
- package/src/index.ts +2 -1
package/src/contract/DODOV1.ts
CHANGED
|
@@ -15,6 +15,16 @@ export function fetchDODOV1_BASE_BALANCE_(chainId: number, __to: string) {
|
|
|
15
15
|
const __data = hexlify(concat(['0xeab5d20e', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
17
17
|
}
|
|
18
|
+
export function getFetchDODOV1_BASE_BALANCE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
19
|
+
return {
|
|
20
|
+
queryKey: ['contract-request', chainId, __to],
|
|
21
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
22
|
+
queryFn: () => {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
return fetchDODOV1_BASE_BALANCE_(chainId, __to);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
30
|
* fetch _BASE_CAPITAL_RECEIVE_QUOTE_
|
|
@@ -27,6 +37,16 @@ export function fetchDODOV1_BASE_CAPITAL_RECEIVE_QUOTE_(chainId: number, __to: s
|
|
|
27
37
|
const __data = hexlify(concat(['0xc6b73cf9', __encodeData]));
|
|
28
38
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
29
39
|
}
|
|
40
|
+
export function getFetchDODOV1_BASE_CAPITAL_RECEIVE_QUOTE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
41
|
+
return {
|
|
42
|
+
queryKey: ['contract-request', chainId, __to],
|
|
43
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
44
|
+
queryFn: () => {
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
return fetchDODOV1_BASE_CAPITAL_RECEIVE_QUOTE_(chainId, __to);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
30
50
|
|
|
31
51
|
/**
|
|
32
52
|
* fetch _BASE_CAPITAL_TOKEN_
|
|
@@ -39,6 +59,16 @@ export function fetchDODOV1_BASE_CAPITAL_TOKEN_(chainId: number, __to: string) {
|
|
|
39
59
|
const __data = hexlify(concat(['0xd689107c', __encodeData]));
|
|
40
60
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
41
61
|
}
|
|
62
|
+
export function getFetchDODOV1_BASE_CAPITAL_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
63
|
+
return {
|
|
64
|
+
queryKey: ['contract-request', chainId, __to],
|
|
65
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
66
|
+
queryFn: () => {
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
return fetchDODOV1_BASE_CAPITAL_TOKEN_(chainId, __to);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
42
72
|
|
|
43
73
|
/**
|
|
44
74
|
* fetch _BASE_TOKEN_
|
|
@@ -51,6 +81,16 @@ export function fetchDODOV1_BASE_TOKEN_(chainId: number, __to: string) {
|
|
|
51
81
|
const __data = hexlify(concat(['0x4a248d2a', __encodeData]));
|
|
52
82
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
53
83
|
}
|
|
84
|
+
export function getFetchDODOV1_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
85
|
+
return {
|
|
86
|
+
queryKey: ['contract-request', chainId, __to],
|
|
87
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
88
|
+
queryFn: () => {
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
return fetchDODOV1_BASE_TOKEN_(chainId, __to);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
54
94
|
|
|
55
95
|
/**
|
|
56
96
|
* fetch _CLAIMED_
|
|
@@ -64,6 +104,16 @@ export function fetchDODOV1_CLAIMED_(chainId: number, __to: string, __input1: st
|
|
|
64
104
|
const __data = hexlify(concat(['0x68be20ad', __encodeData]));
|
|
65
105
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
66
106
|
}
|
|
107
|
+
export function getFetchDODOV1_CLAIMED_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
|
|
108
|
+
return {
|
|
109
|
+
queryKey: ['contract-request', chainId, __to, __input1],
|
|
110
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, __input1 !== undefined && __input1 !== null],
|
|
111
|
+
queryFn: () => {
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
return fetchDODOV1_CLAIMED_(chainId, __to, __input1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
67
117
|
|
|
68
118
|
/**
|
|
69
119
|
* fetch _CLOSED_
|
|
@@ -76,6 +126,16 @@ export function fetchDODOV1_CLOSED_(chainId: number, __to: string) {
|
|
|
76
126
|
const __data = hexlify(concat(['0x6ec6a58d', __encodeData]));
|
|
77
127
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
78
128
|
}
|
|
129
|
+
export function getFetchDODOV1_CLOSED_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
130
|
+
return {
|
|
131
|
+
queryKey: ['contract-request', chainId, __to],
|
|
132
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
133
|
+
queryFn: () => {
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
return fetchDODOV1_CLOSED_(chainId, __to);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
79
139
|
|
|
80
140
|
/**
|
|
81
141
|
* fetch _DEPOSIT_BASE_ALLOWED_
|
|
@@ -88,6 +148,16 @@ export function fetchDODOV1_DEPOSIT_BASE_ALLOWED_(chainId: number, __to: string)
|
|
|
88
148
|
const __data = hexlify(concat(['0xa598aca7', __encodeData]));
|
|
89
149
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
90
150
|
}
|
|
151
|
+
export function getFetchDODOV1_DEPOSIT_BASE_ALLOWED_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
152
|
+
return {
|
|
153
|
+
queryKey: ['contract-request', chainId, __to],
|
|
154
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
155
|
+
queryFn: () => {
|
|
156
|
+
// @ts-ignore
|
|
157
|
+
return fetchDODOV1_DEPOSIT_BASE_ALLOWED_(chainId, __to);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
91
161
|
|
|
92
162
|
/**
|
|
93
163
|
* fetch _DEPOSIT_QUOTE_ALLOWED_
|
|
@@ -100,6 +170,16 @@ export function fetchDODOV1_DEPOSIT_QUOTE_ALLOWED_(chainId: number, __to: string
|
|
|
100
170
|
const __data = hexlify(concat(['0xc5bbffe8', __encodeData]));
|
|
101
171
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
102
172
|
}
|
|
173
|
+
export function getFetchDODOV1_DEPOSIT_QUOTE_ALLOWED_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
174
|
+
return {
|
|
175
|
+
queryKey: ['contract-request', chainId, __to],
|
|
176
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
177
|
+
queryFn: () => {
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
return fetchDODOV1_DEPOSIT_QUOTE_ALLOWED_(chainId, __to);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
103
183
|
|
|
104
184
|
/**
|
|
105
185
|
* fetch _GAS_PRICE_LIMIT_
|
|
@@ -112,6 +192,16 @@ export function fetchDODOV1_GAS_PRICE_LIMIT_(chainId: number, __to: string) {
|
|
|
112
192
|
const __data = hexlify(concat(['0x4de4527e', __encodeData]));
|
|
113
193
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
114
194
|
}
|
|
195
|
+
export function getFetchDODOV1_GAS_PRICE_LIMIT_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
196
|
+
return {
|
|
197
|
+
queryKey: ['contract-request', chainId, __to],
|
|
198
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
199
|
+
queryFn: () => {
|
|
200
|
+
// @ts-ignore
|
|
201
|
+
return fetchDODOV1_GAS_PRICE_LIMIT_(chainId, __to);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
115
205
|
|
|
116
206
|
/**
|
|
117
207
|
* fetch _K_
|
|
@@ -124,6 +214,16 @@ export function fetchDODOV1_K_(chainId: number, __to: string) {
|
|
|
124
214
|
const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
|
|
125
215
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
126
216
|
}
|
|
217
|
+
export function getFetchDODOV1_K_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
218
|
+
return {
|
|
219
|
+
queryKey: ['contract-request', chainId, __to],
|
|
220
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
221
|
+
queryFn: () => {
|
|
222
|
+
// @ts-ignore
|
|
223
|
+
return fetchDODOV1_K_(chainId, __to);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
127
227
|
|
|
128
228
|
/**
|
|
129
229
|
* fetch _LP_FEE_RATE_
|
|
@@ -136,6 +236,16 @@ export function fetchDODOV1_LP_FEE_RATE_(chainId: number, __to: string) {
|
|
|
136
236
|
const __data = hexlify(concat(['0xab44a7a3', __encodeData]));
|
|
137
237
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
138
238
|
}
|
|
239
|
+
export function getFetchDODOV1_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
240
|
+
return {
|
|
241
|
+
queryKey: ['contract-request', chainId, __to],
|
|
242
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
243
|
+
queryFn: () => {
|
|
244
|
+
// @ts-ignore
|
|
245
|
+
return fetchDODOV1_LP_FEE_RATE_(chainId, __to);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
139
249
|
|
|
140
250
|
/**
|
|
141
251
|
* fetch _MAINTAINER_
|
|
@@ -148,6 +258,16 @@ export function fetchDODOV1_MAINTAINER_(chainId: number, __to: string) {
|
|
|
148
258
|
const __data = hexlify(concat(['0x4322ec83', __encodeData]));
|
|
149
259
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
150
260
|
}
|
|
261
|
+
export function getFetchDODOV1_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
262
|
+
return {
|
|
263
|
+
queryKey: ['contract-request', chainId, __to],
|
|
264
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
265
|
+
queryFn: () => {
|
|
266
|
+
// @ts-ignore
|
|
267
|
+
return fetchDODOV1_MAINTAINER_(chainId, __to);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
151
271
|
|
|
152
272
|
/**
|
|
153
273
|
* fetch _MT_FEE_RATE_
|
|
@@ -160,6 +280,16 @@ export function fetchDODOV1_MT_FEE_RATE_(chainId: number, __to: string) {
|
|
|
160
280
|
const __data = hexlify(concat(['0xc0ffa178', __encodeData]));
|
|
161
281
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
162
282
|
}
|
|
283
|
+
export function getFetchDODOV1_MT_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
284
|
+
return {
|
|
285
|
+
queryKey: ['contract-request', chainId, __to],
|
|
286
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
287
|
+
queryFn: () => {
|
|
288
|
+
// @ts-ignore
|
|
289
|
+
return fetchDODOV1_MT_FEE_RATE_(chainId, __to);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
163
293
|
|
|
164
294
|
/**
|
|
165
295
|
* fetch _NEW_OWNER_
|
|
@@ -172,6 +302,16 @@ export function fetchDODOV1_NEW_OWNER_(chainId: number, __to: string) {
|
|
|
172
302
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
173
303
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
174
304
|
}
|
|
305
|
+
export function getFetchDODOV1_NEW_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
306
|
+
return {
|
|
307
|
+
queryKey: ['contract-request', chainId, __to],
|
|
308
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
309
|
+
queryFn: () => {
|
|
310
|
+
// @ts-ignore
|
|
311
|
+
return fetchDODOV1_NEW_OWNER_(chainId, __to);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
175
315
|
|
|
176
316
|
/**
|
|
177
317
|
* fetch _ORACLE_
|
|
@@ -184,6 +324,16 @@ export function fetchDODOV1_ORACLE_(chainId: number, __to: string) {
|
|
|
184
324
|
const __data = hexlify(concat(['0x73a2ab7c', __encodeData]));
|
|
185
325
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
186
326
|
}
|
|
327
|
+
export function getFetchDODOV1_ORACLE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
328
|
+
return {
|
|
329
|
+
queryKey: ['contract-request', chainId, __to],
|
|
330
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
331
|
+
queryFn: () => {
|
|
332
|
+
// @ts-ignore
|
|
333
|
+
return fetchDODOV1_ORACLE_(chainId, __to);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
187
337
|
|
|
188
338
|
/**
|
|
189
339
|
* fetch _OWNER_
|
|
@@ -196,6 +346,16 @@ export function fetchDODOV1_OWNER_(chainId: number, __to: string) {
|
|
|
196
346
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
197
347
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
198
348
|
}
|
|
349
|
+
export function getFetchDODOV1_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
350
|
+
return {
|
|
351
|
+
queryKey: ['contract-request', chainId, __to],
|
|
352
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
353
|
+
queryFn: () => {
|
|
354
|
+
// @ts-ignore
|
|
355
|
+
return fetchDODOV1_OWNER_(chainId, __to);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
199
359
|
|
|
200
360
|
/**
|
|
201
361
|
* fetch _QUOTE_BALANCE_
|
|
@@ -208,6 +368,16 @@ export function fetchDODOV1_QUOTE_BALANCE_(chainId: number, __to: string) {
|
|
|
208
368
|
const __data = hexlify(concat(['0x7c9b8e89', __encodeData]));
|
|
209
369
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
210
370
|
}
|
|
371
|
+
export function getFetchDODOV1_QUOTE_BALANCE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
372
|
+
return {
|
|
373
|
+
queryKey: ['contract-request', chainId, __to],
|
|
374
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
375
|
+
queryFn: () => {
|
|
376
|
+
// @ts-ignore
|
|
377
|
+
return fetchDODOV1_QUOTE_BALANCE_(chainId, __to);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
211
381
|
|
|
212
382
|
/**
|
|
213
383
|
* fetch _QUOTE_CAPITAL_RECEIVE_BASE_
|
|
@@ -220,6 +390,16 @@ export function fetchDODOV1_QUOTE_CAPITAL_RECEIVE_BASE_(chainId: number, __to: s
|
|
|
220
390
|
const __data = hexlify(concat(['0x0e6518e9', __encodeData]));
|
|
221
391
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
222
392
|
}
|
|
393
|
+
export function getFetchDODOV1_QUOTE_CAPITAL_RECEIVE_BASE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
394
|
+
return {
|
|
395
|
+
queryKey: ['contract-request', chainId, __to],
|
|
396
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
397
|
+
queryFn: () => {
|
|
398
|
+
// @ts-ignore
|
|
399
|
+
return fetchDODOV1_QUOTE_CAPITAL_RECEIVE_BASE_(chainId, __to);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
223
403
|
|
|
224
404
|
/**
|
|
225
405
|
* fetch _QUOTE_CAPITAL_TOKEN_
|
|
@@ -232,6 +412,16 @@ export function fetchDODOV1_QUOTE_CAPITAL_TOKEN_(chainId: number, __to: string)
|
|
|
232
412
|
const __data = hexlify(concat(['0xac1fbc98', __encodeData]));
|
|
233
413
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
234
414
|
}
|
|
415
|
+
export function getFetchDODOV1_QUOTE_CAPITAL_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
416
|
+
return {
|
|
417
|
+
queryKey: ['contract-request', chainId, __to],
|
|
418
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
419
|
+
queryFn: () => {
|
|
420
|
+
// @ts-ignore
|
|
421
|
+
return fetchDODOV1_QUOTE_CAPITAL_TOKEN_(chainId, __to);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
235
425
|
|
|
236
426
|
/**
|
|
237
427
|
* fetch _QUOTE_TOKEN_
|
|
@@ -244,6 +434,16 @@ export function fetchDODOV1_QUOTE_TOKEN_(chainId: number, __to: string) {
|
|
|
244
434
|
const __data = hexlify(concat(['0xd4b97046', __encodeData]));
|
|
245
435
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
246
436
|
}
|
|
437
|
+
export function getFetchDODOV1_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
438
|
+
return {
|
|
439
|
+
queryKey: ['contract-request', chainId, __to],
|
|
440
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
441
|
+
queryFn: () => {
|
|
442
|
+
// @ts-ignore
|
|
443
|
+
return fetchDODOV1_QUOTE_TOKEN_(chainId, __to);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
247
447
|
|
|
248
448
|
/**
|
|
249
449
|
* fetch _R_STATUS_
|
|
@@ -256,6 +456,16 @@ export function fetchDODOV1_R_STATUS_(chainId: number, __to: string) {
|
|
|
256
456
|
const __data = hexlify(concat(['0x17be952e', __encodeData]));
|
|
257
457
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"enum Types.RStatus","name":"","type":"uint8"}])
|
|
258
458
|
}
|
|
459
|
+
export function getFetchDODOV1_R_STATUS_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
460
|
+
return {
|
|
461
|
+
queryKey: ['contract-request', chainId, __to],
|
|
462
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
463
|
+
queryFn: () => {
|
|
464
|
+
// @ts-ignore
|
|
465
|
+
return fetchDODOV1_R_STATUS_(chainId, __to);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
259
469
|
|
|
260
470
|
/**
|
|
261
471
|
* fetch _SUPERVISOR_
|
|
@@ -268,6 +478,16 @@ export function fetchDODOV1_SUPERVISOR_(chainId: number, __to: string) {
|
|
|
268
478
|
const __data = hexlify(concat(['0x3960f142', __encodeData]));
|
|
269
479
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
270
480
|
}
|
|
481
|
+
export function getFetchDODOV1_SUPERVISOR_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
482
|
+
return {
|
|
483
|
+
queryKey: ['contract-request', chainId, __to],
|
|
484
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
485
|
+
queryFn: () => {
|
|
486
|
+
// @ts-ignore
|
|
487
|
+
return fetchDODOV1_SUPERVISOR_(chainId, __to);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
271
491
|
|
|
272
492
|
/**
|
|
273
493
|
* fetch _TARGET_BASE_TOKEN_AMOUNT_
|
|
@@ -280,6 +500,16 @@ export function fetchDODOV1_TARGET_BASE_TOKEN_AMOUNT_(chainId: number, __to: str
|
|
|
280
500
|
const __data = hexlify(concat(['0xb2094fd3', __encodeData]));
|
|
281
501
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
282
502
|
}
|
|
503
|
+
export function getFetchDODOV1_TARGET_BASE_TOKEN_AMOUNT_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
504
|
+
return {
|
|
505
|
+
queryKey: ['contract-request', chainId, __to],
|
|
506
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
507
|
+
queryFn: () => {
|
|
508
|
+
// @ts-ignore
|
|
509
|
+
return fetchDODOV1_TARGET_BASE_TOKEN_AMOUNT_(chainId, __to);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
283
513
|
|
|
284
514
|
/**
|
|
285
515
|
* fetch _TARGET_QUOTE_TOKEN_AMOUNT_
|
|
@@ -292,6 +522,16 @@ export function fetchDODOV1_TARGET_QUOTE_TOKEN_AMOUNT_(chainId: number, __to: st
|
|
|
292
522
|
const __data = hexlify(concat(['0x245c9685', __encodeData]));
|
|
293
523
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
294
524
|
}
|
|
525
|
+
export function getFetchDODOV1_TARGET_QUOTE_TOKEN_AMOUNT_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
526
|
+
return {
|
|
527
|
+
queryKey: ['contract-request', chainId, __to],
|
|
528
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
529
|
+
queryFn: () => {
|
|
530
|
+
// @ts-ignore
|
|
531
|
+
return fetchDODOV1_TARGET_QUOTE_TOKEN_AMOUNT_(chainId, __to);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
295
535
|
|
|
296
536
|
/**
|
|
297
537
|
* fetch _TRADE_ALLOWED_
|
|
@@ -304,6 +544,16 @@ export function fetchDODOV1_TRADE_ALLOWED_(chainId: number, __to: string) {
|
|
|
304
544
|
const __data = hexlify(concat(['0xdd58b41c', __encodeData]));
|
|
305
545
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
306
546
|
}
|
|
547
|
+
export function getFetchDODOV1_TRADE_ALLOWED_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
548
|
+
return {
|
|
549
|
+
queryKey: ['contract-request', chainId, __to],
|
|
550
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
551
|
+
queryFn: () => {
|
|
552
|
+
// @ts-ignore
|
|
553
|
+
return fetchDODOV1_TRADE_ALLOWED_(chainId, __to);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
307
557
|
|
|
308
558
|
/**
|
|
309
559
|
* fetch getBaseCapitalBalanceOf
|
|
@@ -317,6 +567,16 @@ export function fetchDODOV1GetBaseCapitalBalanceOf(chainId: number, __to: string
|
|
|
317
567
|
const __data = hexlify(concat(['0x7aed942d', __encodeData]));
|
|
318
568
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
319
569
|
}
|
|
570
|
+
export function getFetchDODOV1GetBaseCapitalBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, lp: string | undefined) {
|
|
571
|
+
return {
|
|
572
|
+
queryKey: ['contract-request', chainId, __to, lp],
|
|
573
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, lp !== undefined && lp !== null],
|
|
574
|
+
queryFn: () => {
|
|
575
|
+
// @ts-ignore
|
|
576
|
+
return fetchDODOV1GetBaseCapitalBalanceOf(chainId, __to, lp);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
320
580
|
|
|
321
581
|
/**
|
|
322
582
|
* fetch getExpectedTarget
|
|
@@ -333,6 +593,16 @@ export function fetchDODOV1GetExpectedTarget(chainId: number, __to: string) {
|
|
|
333
593
|
quoteTarget: bigint;
|
|
334
594
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"baseTarget","type":"uint256"},{"internalType":"uint256","name":"quoteTarget","type":"uint256"}])
|
|
335
595
|
}
|
|
596
|
+
export function getFetchDODOV1GetExpectedTargetQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
597
|
+
return {
|
|
598
|
+
queryKey: ['contract-request', chainId, __to],
|
|
599
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
600
|
+
queryFn: () => {
|
|
601
|
+
// @ts-ignore
|
|
602
|
+
return fetchDODOV1GetExpectedTarget(chainId, __to);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
336
606
|
|
|
337
607
|
/**
|
|
338
608
|
* fetch getLpBaseBalance
|
|
@@ -346,6 +616,16 @@ export function fetchDODOV1GetLpBaseBalance(chainId: number, __to: string, lp: s
|
|
|
346
616
|
const __data = hexlify(concat(['0x95faa5f6', __encodeData]));
|
|
347
617
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"lpBalance","type":"uint256"}])
|
|
348
618
|
}
|
|
619
|
+
export function getFetchDODOV1GetLpBaseBalanceQueryOptions(chainId: number | undefined, __to: string | undefined, lp: string | undefined) {
|
|
620
|
+
return {
|
|
621
|
+
queryKey: ['contract-request', chainId, __to, lp],
|
|
622
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, lp !== undefined && lp !== null],
|
|
623
|
+
queryFn: () => {
|
|
624
|
+
// @ts-ignore
|
|
625
|
+
return fetchDODOV1GetLpBaseBalance(chainId, __to, lp);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
349
629
|
|
|
350
630
|
/**
|
|
351
631
|
* fetch getLpQuoteBalance
|
|
@@ -359,6 +639,16 @@ export function fetchDODOV1GetLpQuoteBalance(chainId: number, __to: string, lp:
|
|
|
359
639
|
const __data = hexlify(concat(['0x36a53bbb', __encodeData]));
|
|
360
640
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"lpBalance","type":"uint256"}])
|
|
361
641
|
}
|
|
642
|
+
export function getFetchDODOV1GetLpQuoteBalanceQueryOptions(chainId: number | undefined, __to: string | undefined, lp: string | undefined) {
|
|
643
|
+
return {
|
|
644
|
+
queryKey: ['contract-request', chainId, __to, lp],
|
|
645
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, lp !== undefined && lp !== null],
|
|
646
|
+
queryFn: () => {
|
|
647
|
+
// @ts-ignore
|
|
648
|
+
return fetchDODOV1GetLpQuoteBalance(chainId, __to, lp);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
362
652
|
|
|
363
653
|
/**
|
|
364
654
|
* fetch getMidPrice
|
|
@@ -371,6 +661,16 @@ export function fetchDODOV1GetMidPrice(chainId: number, __to: string) {
|
|
|
371
661
|
const __data = hexlify(concat(['0xee27c689', __encodeData]));
|
|
372
662
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"midPrice","type":"uint256"}])
|
|
373
663
|
}
|
|
664
|
+
export function getFetchDODOV1GetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
665
|
+
return {
|
|
666
|
+
queryKey: ['contract-request', chainId, __to],
|
|
667
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
668
|
+
queryFn: () => {
|
|
669
|
+
// @ts-ignore
|
|
670
|
+
return fetchDODOV1GetMidPrice(chainId, __to);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
374
674
|
|
|
375
675
|
/**
|
|
376
676
|
* fetch getOraclePrice
|
|
@@ -383,6 +683,16 @@ export function fetchDODOV1GetOraclePrice(chainId: number, __to: string) {
|
|
|
383
683
|
const __data = hexlify(concat(['0x796da7af', __encodeData]));
|
|
384
684
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
385
685
|
}
|
|
686
|
+
export function getFetchDODOV1GetOraclePriceQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
687
|
+
return {
|
|
688
|
+
queryKey: ['contract-request', chainId, __to],
|
|
689
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
690
|
+
queryFn: () => {
|
|
691
|
+
// @ts-ignore
|
|
692
|
+
return fetchDODOV1GetOraclePrice(chainId, __to);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
386
696
|
|
|
387
697
|
/**
|
|
388
698
|
* fetch getQuoteCapitalBalanceOf
|
|
@@ -396,6 +706,16 @@ export function fetchDODOV1GetQuoteCapitalBalanceOf(chainId: number, __to: strin
|
|
|
396
706
|
const __data = hexlify(concat(['0xf67ed448', __encodeData]));
|
|
397
707
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
398
708
|
}
|
|
709
|
+
export function getFetchDODOV1GetQuoteCapitalBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, lp: string | undefined) {
|
|
710
|
+
return {
|
|
711
|
+
queryKey: ['contract-request', chainId, __to, lp],
|
|
712
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, lp !== undefined && lp !== null],
|
|
713
|
+
queryFn: () => {
|
|
714
|
+
// @ts-ignore
|
|
715
|
+
return fetchDODOV1GetQuoteCapitalBalanceOf(chainId, __to, lp);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
399
719
|
|
|
400
720
|
/**
|
|
401
721
|
* fetch getTotalBaseCapital
|
|
@@ -408,6 +728,16 @@ export function fetchDODOV1GetTotalBaseCapital(chainId: number, __to: string) {
|
|
|
408
728
|
const __data = hexlify(concat(['0x0cd1667d', __encodeData]));
|
|
409
729
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
410
730
|
}
|
|
731
|
+
export function getFetchDODOV1GetTotalBaseCapitalQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
732
|
+
return {
|
|
733
|
+
queryKey: ['contract-request', chainId, __to],
|
|
734
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
735
|
+
queryFn: () => {
|
|
736
|
+
// @ts-ignore
|
|
737
|
+
return fetchDODOV1GetTotalBaseCapital(chainId, __to);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
411
741
|
|
|
412
742
|
/**
|
|
413
743
|
* fetch getTotalQuoteCapital
|
|
@@ -420,6 +750,16 @@ export function fetchDODOV1GetTotalQuoteCapital(chainId: number, __to: string) {
|
|
|
420
750
|
const __data = hexlify(concat(['0x2aa82c65', __encodeData]));
|
|
421
751
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
422
752
|
}
|
|
753
|
+
export function getFetchDODOV1GetTotalQuoteCapitalQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
754
|
+
return {
|
|
755
|
+
queryKey: ['contract-request', chainId, __to],
|
|
756
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
757
|
+
queryFn: () => {
|
|
758
|
+
// @ts-ignore
|
|
759
|
+
return fetchDODOV1GetTotalQuoteCapital(chainId, __to);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
423
763
|
|
|
424
764
|
/**
|
|
425
765
|
* fetch getWithdrawBasePenalty
|
|
@@ -433,6 +773,16 @@ export function fetchDODOV1GetWithdrawBasePenalty(chainId: number, __to: string,
|
|
|
433
773
|
const __data = hexlify(concat(['0xee5150b3', __encodeData]));
|
|
434
774
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"penalty","type":"uint256"}])
|
|
435
775
|
}
|
|
776
|
+
export function getFetchDODOV1GetWithdrawBasePenaltyQueryOptions(chainId: number | undefined, __to: string | undefined, amount: number | undefined) {
|
|
777
|
+
return {
|
|
778
|
+
queryKey: ['contract-request', chainId, __to, amount],
|
|
779
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, amount !== undefined && amount !== null],
|
|
780
|
+
queryFn: () => {
|
|
781
|
+
// @ts-ignore
|
|
782
|
+
return fetchDODOV1GetWithdrawBasePenalty(chainId, __to, amount);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}
|
|
436
786
|
|
|
437
787
|
/**
|
|
438
788
|
* fetch getWithdrawQuotePenalty
|
|
@@ -446,6 +796,16 @@ export function fetchDODOV1GetWithdrawQuotePenalty(chainId: number, __to: string
|
|
|
446
796
|
const __data = hexlify(concat(['0x0c9f7bd0', __encodeData]));
|
|
447
797
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"penalty","type":"uint256"}])
|
|
448
798
|
}
|
|
799
|
+
export function getFetchDODOV1GetWithdrawQuotePenaltyQueryOptions(chainId: number | undefined, __to: string | undefined, amount: number | undefined) {
|
|
800
|
+
return {
|
|
801
|
+
queryKey: ['contract-request', chainId, __to, amount],
|
|
802
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, amount !== undefined && amount !== null],
|
|
803
|
+
queryFn: () => {
|
|
804
|
+
// @ts-ignore
|
|
805
|
+
return fetchDODOV1GetWithdrawQuotePenalty(chainId, __to, amount);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
449
809
|
|
|
450
810
|
/**
|
|
451
811
|
* fetch queryBuyBaseToken
|
|
@@ -459,6 +819,16 @@ export function fetchDODOV1QueryBuyBaseToken(chainId: number, __to: string, amou
|
|
|
459
819
|
const __data = hexlify(concat(['0x18c0bbe4', __encodeData]));
|
|
460
820
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"payQuote","type":"uint256"}])
|
|
461
821
|
}
|
|
822
|
+
export function getFetchDODOV1QueryBuyBaseTokenQueryOptions(chainId: number | undefined, __to: string | undefined, amount: number | undefined) {
|
|
823
|
+
return {
|
|
824
|
+
queryKey: ['contract-request', chainId, __to, amount],
|
|
825
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, amount !== undefined && amount !== null],
|
|
826
|
+
queryFn: () => {
|
|
827
|
+
// @ts-ignore
|
|
828
|
+
return fetchDODOV1QueryBuyBaseToken(chainId, __to, amount);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
462
832
|
|
|
463
833
|
/**
|
|
464
834
|
* fetch querySellBaseToken
|
|
@@ -472,6 +842,16 @@ export function fetchDODOV1QuerySellBaseToken(chainId: number, __to: string, amo
|
|
|
472
842
|
const __data = hexlify(concat(['0xa2801e16', __encodeData]));
|
|
473
843
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"receiveQuote","type":"uint256"}])
|
|
474
844
|
}
|
|
845
|
+
export function getFetchDODOV1QuerySellBaseTokenQueryOptions(chainId: number | undefined, __to: string | undefined, amount: number | undefined) {
|
|
846
|
+
return {
|
|
847
|
+
queryKey: ['contract-request', chainId, __to, amount],
|
|
848
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, amount !== undefined && amount !== null],
|
|
849
|
+
queryFn: () => {
|
|
850
|
+
// @ts-ignore
|
|
851
|
+
return fetchDODOV1QuerySellBaseToken(chainId, __to, amount);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
475
855
|
|
|
476
856
|
/**
|
|
477
857
|
* fetch version
|
|
@@ -484,6 +864,16 @@ export function fetchDODOV1Version(chainId: number, __to: string) {
|
|
|
484
864
|
const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
|
|
485
865
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
486
866
|
}
|
|
867
|
+
export function getFetchDODOV1VersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
868
|
+
return {
|
|
869
|
+
queryKey: ['contract-request', chainId, __to],
|
|
870
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
871
|
+
queryFn: () => {
|
|
872
|
+
// @ts-ignore
|
|
873
|
+
return fetchDODOV1Version(chainId, __to);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
487
877
|
|
|
488
878
|
/**
|
|
489
879
|
* encode buyBaseToken
|
|
@@ -21,6 +21,16 @@ export function fetchDODOV1Adapter_DODO_SELL_HELPER_(chainId: number) {
|
|
|
21
21
|
const __data = hexlify(concat(['0xaf1280b0', __encodeData]));
|
|
22
22
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
23
23
|
}
|
|
24
|
+
export function getFetchDODOV1Adapter_DODO_SELL_HELPER_QueryOptions(chainId: number | undefined) {
|
|
25
|
+
return {
|
|
26
|
+
queryKey: ['contract-request', chainId],
|
|
27
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
28
|
+
queryFn: () => {
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
return fetchDODOV1Adapter_DODO_SELL_HELPER_(chainId);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
|
|
25
35
|
/**
|
|
26
36
|
* encode sellBase
|
|
@@ -21,4 +21,14 @@ export function fetchDODOV1PmmHelperGetPairDetail(chainId: number, pool: string)
|
|
|
21
21
|
const __encodeData = defaultAbiCoder.encode(["address"], [pool]);
|
|
22
22
|
const __data = hexlify(concat(['0x2bd8c5ac', __encodeData]));
|
|
23
23
|
return contractRequests.batchCall<[bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, string, string, string, 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":"uint256","name":"R","type":"uint256"},{"internalType":"uint256","name":"lpFeeRate","type":"uint256"},{"internalType":"uint256","name":"mtFeeRate","type":"uint256"},{"internalType":"address","name":"baseToken","type":"address"},{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"address","name":"curPair","type":"address"},{"internalType":"uint256","name":"pairVersion","type":"uint256"}],"internalType":"struct DODOV1PmmHelper.PairDetail[]","name":"res","type":"tuple[]"}])
|
|
24
|
+
}
|
|
25
|
+
export function getFetchDODOV1PmmHelperGetPairDetailQueryOptions(chainId: number | undefined, pool: string | undefined) {
|
|
26
|
+
return {
|
|
27
|
+
queryKey: ['contract-request', chainId, pool],
|
|
28
|
+
enabled: [chainId !== undefined && chainId !== null, pool !== undefined && pool !== null],
|
|
29
|
+
queryFn: () => {
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
return fetchDODOV1PmmHelperGetPairDetail(chainId, pool);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
}
|