@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/CP.ts
CHANGED
|
@@ -15,6 +15,16 @@ export function fetchCP_AVG_SETTLED_PRICE_(chainId: number, __to: string) {
|
|
|
15
15
|
const __data = hexlify(concat(['0xc025aa33', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
17
17
|
}
|
|
18
|
+
export function getFetchCP_AVG_SETTLED_PRICE_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 fetchCP_AVG_SETTLED_PRICE_(chainId, __to);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
30
|
* fetch _BASE_TOKEN_
|
|
@@ -27,6 +37,16 @@ export function fetchCP_BASE_TOKEN_(chainId: number, __to: string) {
|
|
|
27
37
|
const __data = hexlify(concat(['0x4a248d2a', __encodeData]));
|
|
28
38
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
|
|
29
39
|
}
|
|
40
|
+
export function getFetchCP_BASE_TOKEN_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 fetchCP_BASE_TOKEN_(chainId, __to);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
30
50
|
|
|
31
51
|
/**
|
|
32
52
|
* fetch _BIDDER_PERMISSION_
|
|
@@ -39,6 +59,16 @@ export function fetchCP_BIDDER_PERMISSION_(chainId: number, __to: string) {
|
|
|
39
59
|
const __data = hexlify(concat(['0x832d23ec', __encodeData]));
|
|
40
60
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IPermissionManager","name":"","type":"address"}])
|
|
41
61
|
}
|
|
62
|
+
export function getFetchCP_BIDDER_PERMISSION_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 fetchCP_BIDDER_PERMISSION_(chainId, __to);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
42
72
|
|
|
43
73
|
/**
|
|
44
74
|
* fetch _CLAIMED_
|
|
@@ -52,6 +82,16 @@ export function fetchCP_CLAIMED_(chainId: number, __to: string, __input1: string
|
|
|
52
82
|
const __data = hexlify(concat(['0x68be20ad', __encodeData]));
|
|
53
83
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
54
84
|
}
|
|
85
|
+
export function getFetchCP_CLAIMED_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
|
|
86
|
+
return {
|
|
87
|
+
queryKey: ['contract-request', chainId, __to, __input1],
|
|
88
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, __input1 !== undefined && __input1 !== null],
|
|
89
|
+
queryFn: () => {
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
return fetchCP_CLAIMED_(chainId, __to, __input1);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
55
95
|
|
|
56
96
|
/**
|
|
57
97
|
* fetch _CLIFF_RATE_
|
|
@@ -64,6 +104,16 @@ export function fetchCP_CLIFF_RATE_(chainId: number, __to: string) {
|
|
|
64
104
|
const __data = hexlify(concat(['0x294dafc0', __encodeData]));
|
|
65
105
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
66
106
|
}
|
|
107
|
+
export function getFetchCP_CLIFF_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
108
|
+
return {
|
|
109
|
+
queryKey: ['contract-request', chainId, __to],
|
|
110
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
111
|
+
queryFn: () => {
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
return fetchCP_CLIFF_RATE_(chainId, __to);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
67
117
|
|
|
68
118
|
/**
|
|
69
119
|
* fetch _FREEZE_DURATION_
|
|
@@ -76,6 +126,16 @@ export function fetchCP_FREEZE_DURATION_(chainId: number, __to: string) {
|
|
|
76
126
|
const __data = hexlify(concat(['0xce90ea74', __encodeData]));
|
|
77
127
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
78
128
|
}
|
|
129
|
+
export function getFetchCP_FREEZE_DURATION_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 fetchCP_FREEZE_DURATION_(chainId, __to);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
79
139
|
|
|
80
140
|
/**
|
|
81
141
|
* fetch _IS_OPEN_TWAP_
|
|
@@ -88,6 +148,16 @@ export function fetchCP_IS_OPEN_TWAP_(chainId: number, __to: string) {
|
|
|
88
148
|
const __data = hexlify(concat(['0x2df6cb48', __encodeData]));
|
|
89
149
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
90
150
|
}
|
|
151
|
+
export function getFetchCP_IS_OPEN_TWAP_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 fetchCP_IS_OPEN_TWAP_(chainId, __to);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
91
161
|
|
|
92
162
|
/**
|
|
93
163
|
* fetch _I_
|
|
@@ -100,6 +170,16 @@ export function fetchCP_I_(chainId: number, __to: string) {
|
|
|
100
170
|
const __data = hexlify(concat(['0xf811d692', __encodeData]));
|
|
101
171
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
102
172
|
}
|
|
173
|
+
export function getFetchCP_I_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 fetchCP_I_(chainId, __to);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
103
183
|
|
|
104
184
|
/**
|
|
105
185
|
* fetch _K_
|
|
@@ -112,6 +192,16 @@ export function fetchCP_K_(chainId: number, __to: string) {
|
|
|
112
192
|
const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
|
|
113
193
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
114
194
|
}
|
|
195
|
+
export function getFetchCP_K_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 fetchCP_K_(chainId, __to);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
115
205
|
|
|
116
206
|
/**
|
|
117
207
|
* fetch _MAINTAINER_
|
|
@@ -124,6 +214,16 @@ export function fetchCP_MAINTAINER_(chainId: number, __to: string) {
|
|
|
124
214
|
const __data = hexlify(concat(['0x4322ec83', __encodeData]));
|
|
125
215
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
126
216
|
}
|
|
217
|
+
export function getFetchCP_MAINTAINER_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 fetchCP_MAINTAINER_(chainId, __to);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
127
227
|
|
|
128
228
|
/**
|
|
129
229
|
* fetch _MT_FEE_RATE_MODEL_
|
|
@@ -136,6 +236,16 @@ export function fetchCP_MT_FEE_RATE_MODEL_(chainId: number, __to: string) {
|
|
|
136
236
|
const __data = hexlify(concat(['0xf6b06e70', __encodeData]));
|
|
137
237
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IFeeRateModel","name":"","type":"address"}])
|
|
138
238
|
}
|
|
239
|
+
export function getFetchCP_MT_FEE_RATE_MODEL_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 fetchCP_MT_FEE_RATE_MODEL_(chainId, __to);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
139
249
|
|
|
140
250
|
/**
|
|
141
251
|
* fetch _NEW_OWNER_
|
|
@@ -148,6 +258,16 @@ export function fetchCP_NEW_OWNER_(chainId: number, __to: string) {
|
|
|
148
258
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
149
259
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
150
260
|
}
|
|
261
|
+
export function getFetchCP_NEW_OWNER_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 fetchCP_NEW_OWNER_(chainId, __to);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
151
271
|
|
|
152
272
|
/**
|
|
153
273
|
* fetch _OWNER_
|
|
@@ -160,6 +280,16 @@ export function fetchCP_OWNER_(chainId: number, __to: string) {
|
|
|
160
280
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
161
281
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
162
282
|
}
|
|
283
|
+
export function getFetchCP_OWNER_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 fetchCP_OWNER_(chainId, __to);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
163
293
|
|
|
164
294
|
/**
|
|
165
295
|
* fetch _PHASE_BID_ENDTIME_
|
|
@@ -172,6 +302,16 @@ export function fetchCP_PHASE_BID_ENDTIME_(chainId: number, __to: string) {
|
|
|
172
302
|
const __data = hexlify(concat(['0xe4e327db', __encodeData]));
|
|
173
303
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
174
304
|
}
|
|
305
|
+
export function getFetchCP_PHASE_BID_ENDTIME_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 fetchCP_PHASE_BID_ENDTIME_(chainId, __to);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
175
315
|
|
|
176
316
|
/**
|
|
177
317
|
* fetch _PHASE_BID_STARTTIME_
|
|
@@ -184,6 +324,16 @@ export function fetchCP_PHASE_BID_STARTTIME_(chainId: number, __to: string) {
|
|
|
184
324
|
const __data = hexlify(concat(['0x7327a885', __encodeData]));
|
|
185
325
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
186
326
|
}
|
|
327
|
+
export function getFetchCP_PHASE_BID_STARTTIME_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 fetchCP_PHASE_BID_STARTTIME_(chainId, __to);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
187
337
|
|
|
188
338
|
/**
|
|
189
339
|
* fetch _PHASE_CALM_ENDTIME_
|
|
@@ -196,6 +346,16 @@ export function fetchCP_PHASE_CALM_ENDTIME_(chainId: number, __to: string) {
|
|
|
196
346
|
const __data = hexlify(concat(['0xcd912946', __encodeData]));
|
|
197
347
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
198
348
|
}
|
|
349
|
+
export function getFetchCP_PHASE_CALM_ENDTIME_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 fetchCP_PHASE_CALM_ENDTIME_(chainId, __to);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
199
359
|
|
|
200
360
|
/**
|
|
201
361
|
* fetch _POOL_
|
|
@@ -208,6 +368,16 @@ export function fetchCP_POOL_(chainId: number, __to: string) {
|
|
|
208
368
|
const __data = hexlify(concat(['0x2098c75b', __encodeData]));
|
|
209
369
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
210
370
|
}
|
|
371
|
+
export function getFetchCP_POOL_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 fetchCP_POOL_(chainId, __to);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
211
381
|
|
|
212
382
|
/**
|
|
213
383
|
* fetch _POOL_FACTORY_
|
|
@@ -220,6 +390,16 @@ export function fetchCP_POOL_FACTORY_(chainId: number, __to: string) {
|
|
|
220
390
|
const __data = hexlify(concat(['0x9e104a21', __encodeData]));
|
|
221
391
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
222
392
|
}
|
|
393
|
+
export function getFetchCP_POOL_FACTORY_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 fetchCP_POOL_FACTORY_(chainId, __to);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
223
403
|
|
|
224
404
|
/**
|
|
225
405
|
* fetch _POOL_QUOTE_CAP_
|
|
@@ -232,6 +412,16 @@ export function fetchCP_POOL_QUOTE_CAP_(chainId: number, __to: string) {
|
|
|
232
412
|
const __data = hexlify(concat(['0x61ce802e', __encodeData]));
|
|
233
413
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
234
414
|
}
|
|
415
|
+
export function getFetchCP_POOL_QUOTE_CAP_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 fetchCP_POOL_QUOTE_CAP_(chainId, __to);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
235
425
|
|
|
236
426
|
/**
|
|
237
427
|
* fetch _QUOTE_RESERVE_
|
|
@@ -244,6 +434,16 @@ export function fetchCP_QUOTE_RESERVE_(chainId: number, __to: string) {
|
|
|
244
434
|
const __data = hexlify(concat(['0xbbf5ce78', __encodeData]));
|
|
245
435
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
246
436
|
}
|
|
437
|
+
export function getFetchCP_QUOTE_RESERVE_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 fetchCP_QUOTE_RESERVE_(chainId, __to);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
247
447
|
|
|
248
448
|
/**
|
|
249
449
|
* fetch _QUOTE_TOKEN_
|
|
@@ -256,6 +456,16 @@ export function fetchCP_QUOTE_TOKEN_(chainId: number, __to: string) {
|
|
|
256
456
|
const __data = hexlify(concat(['0xd4b97046', __encodeData]));
|
|
257
457
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
|
|
258
458
|
}
|
|
459
|
+
export function getFetchCP_QUOTE_TOKEN_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 fetchCP_QUOTE_TOKEN_(chainId, __to);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
259
469
|
|
|
260
470
|
/**
|
|
261
471
|
* fetch _SETTLED_
|
|
@@ -268,6 +478,16 @@ export function fetchCP_SETTLED_(chainId: number, __to: string) {
|
|
|
268
478
|
const __data = hexlify(concat(['0xeb3c2b08', __encodeData]));
|
|
269
479
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
270
480
|
}
|
|
481
|
+
export function getFetchCP_SETTLED_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 fetchCP_SETTLED_(chainId, __to);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
271
491
|
|
|
272
492
|
/**
|
|
273
493
|
* fetch _SETTLED_TIME_
|
|
@@ -280,6 +500,16 @@ export function fetchCP_SETTLED_TIME_(chainId: number, __to: string) {
|
|
|
280
500
|
const __data = hexlify(concat(['0x4afc0d7b', __encodeData]));
|
|
281
501
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
282
502
|
}
|
|
503
|
+
export function getFetchCP_SETTLED_TIME_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 fetchCP_SETTLED_TIME_(chainId, __to);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
283
513
|
|
|
284
514
|
/**
|
|
285
515
|
* fetch _TOTAL_BASE_
|
|
@@ -292,6 +522,16 @@ export function fetchCP_TOTAL_BASE_(chainId: number, __to: string) {
|
|
|
292
522
|
const __data = hexlify(concat(['0x4ed90a64', __encodeData]));
|
|
293
523
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
294
524
|
}
|
|
525
|
+
export function getFetchCP_TOTAL_BASE_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 fetchCP_TOTAL_BASE_(chainId, __to);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
295
535
|
|
|
296
536
|
/**
|
|
297
537
|
* fetch _TOTAL_LP_AMOUNT_
|
|
@@ -304,6 +544,16 @@ export function fetchCP_TOTAL_LP_AMOUNT_(chainId: number, __to: string) {
|
|
|
304
544
|
const __data = hexlify(concat(['0xa6570618', __encodeData]));
|
|
305
545
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
306
546
|
}
|
|
547
|
+
export function getFetchCP_TOTAL_LP_AMOUNT_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 fetchCP_TOTAL_LP_AMOUNT_(chainId, __to);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
307
557
|
|
|
308
558
|
/**
|
|
309
559
|
* fetch _TOTAL_SHARES_
|
|
@@ -316,6 +566,16 @@ export function fetchCP_TOTAL_SHARES_(chainId: number, __to: string) {
|
|
|
316
566
|
const __data = hexlify(concat(['0xbea586a2', __encodeData]));
|
|
317
567
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
318
568
|
}
|
|
569
|
+
export function getFetchCP_TOTAL_SHARES_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
570
|
+
return {
|
|
571
|
+
queryKey: ['contract-request', chainId, __to],
|
|
572
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
573
|
+
queryFn: () => {
|
|
574
|
+
// @ts-ignore
|
|
575
|
+
return fetchCP_TOTAL_SHARES_(chainId, __to);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
319
579
|
|
|
320
580
|
/**
|
|
321
581
|
* fetch _UNUSED_BASE_
|
|
@@ -328,6 +588,16 @@ export function fetchCP_UNUSED_BASE_(chainId: number, __to: string) {
|
|
|
328
588
|
const __data = hexlify(concat(['0x44b20ee9', __encodeData]));
|
|
329
589
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
330
590
|
}
|
|
591
|
+
export function getFetchCP_UNUSED_BASE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
592
|
+
return {
|
|
593
|
+
queryKey: ['contract-request', chainId, __to],
|
|
594
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
595
|
+
queryFn: () => {
|
|
596
|
+
// @ts-ignore
|
|
597
|
+
return fetchCP_UNUSED_BASE_(chainId, __to);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
331
601
|
|
|
332
602
|
/**
|
|
333
603
|
* fetch _UNUSED_QUOTE_
|
|
@@ -340,6 +610,16 @@ export function fetchCP_UNUSED_QUOTE_(chainId: number, __to: string) {
|
|
|
340
610
|
const __data = hexlify(concat(['0x1aae38e8', __encodeData]));
|
|
341
611
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
342
612
|
}
|
|
613
|
+
export function getFetchCP_UNUSED_QUOTE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
614
|
+
return {
|
|
615
|
+
queryKey: ['contract-request', chainId, __to],
|
|
616
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
617
|
+
queryFn: () => {
|
|
618
|
+
// @ts-ignore
|
|
619
|
+
return fetchCP_UNUSED_QUOTE_(chainId, __to);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
343
623
|
|
|
344
624
|
/**
|
|
345
625
|
* fetch _VESTING_DURATION_
|
|
@@ -352,6 +632,16 @@ export function fetchCP_VESTING_DURATION_(chainId: number, __to: string) {
|
|
|
352
632
|
const __data = hexlify(concat(['0x2f655da7', __encodeData]));
|
|
353
633
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
354
634
|
}
|
|
635
|
+
export function getFetchCP_VESTING_DURATION_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
636
|
+
return {
|
|
637
|
+
queryKey: ['contract-request', chainId, __to],
|
|
638
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
639
|
+
queryFn: () => {
|
|
640
|
+
// @ts-ignore
|
|
641
|
+
return fetchCP_VESTING_DURATION_(chainId, __to);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
355
645
|
|
|
356
646
|
/**
|
|
357
647
|
* fetch getClaimableLPToken
|
|
@@ -364,6 +654,16 @@ export function fetchCPGetClaimableLPToken(chainId: number, __to: string) {
|
|
|
364
654
|
const __data = hexlify(concat(['0x6a7ba71e', __encodeData]));
|
|
365
655
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
366
656
|
}
|
|
657
|
+
export function getFetchCPGetClaimableLPTokenQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
658
|
+
return {
|
|
659
|
+
queryKey: ['contract-request', chainId, __to],
|
|
660
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
661
|
+
queryFn: () => {
|
|
662
|
+
// @ts-ignore
|
|
663
|
+
return fetchCPGetClaimableLPToken(chainId, __to);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
367
667
|
|
|
368
668
|
/**
|
|
369
669
|
* fetch getExpectedAvgPrice
|
|
@@ -376,6 +676,16 @@ export function fetchCPGetExpectedAvgPrice(chainId: number, __to: string) {
|
|
|
376
676
|
const __data = hexlify(concat(['0x486c5971', __encodeData]));
|
|
377
677
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
378
678
|
}
|
|
679
|
+
export function getFetchCPGetExpectedAvgPriceQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
680
|
+
return {
|
|
681
|
+
queryKey: ['contract-request', chainId, __to],
|
|
682
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
683
|
+
queryFn: () => {
|
|
684
|
+
// @ts-ignore
|
|
685
|
+
return fetchCPGetExpectedAvgPrice(chainId, __to);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
379
689
|
|
|
380
690
|
/**
|
|
381
691
|
* fetch getRemainingLPRatio
|
|
@@ -389,6 +699,16 @@ export function fetchCPGetRemainingLPRatio(chainId: number, __to: string, timest
|
|
|
389
699
|
const __data = hexlify(concat(['0x3f253e38', __encodeData]));
|
|
390
700
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
391
701
|
}
|
|
702
|
+
export function getFetchCPGetRemainingLPRatioQueryOptions(chainId: number | undefined, __to: string | undefined, timestamp: number | undefined) {
|
|
703
|
+
return {
|
|
704
|
+
queryKey: ['contract-request', chainId, __to, timestamp],
|
|
705
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, timestamp !== undefined && timestamp !== null],
|
|
706
|
+
queryFn: () => {
|
|
707
|
+
// @ts-ignore
|
|
708
|
+
return fetchCPGetRemainingLPRatio(chainId, __to, timestamp);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
392
712
|
|
|
393
713
|
/**
|
|
394
714
|
* fetch getSettleResult
|
|
@@ -411,6 +731,16 @@ export function fetchCPGetSettleResult(chainId: number, __to: string) {
|
|
|
411
731
|
unUsedQuote: bigint;
|
|
412
732
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"poolBase","type":"uint256"},{"internalType":"uint256","name":"poolQuote","type":"uint256"},{"internalType":"uint256","name":"poolI","type":"uint256"},{"internalType":"uint256","name":"unUsedBase","type":"uint256"},{"internalType":"uint256","name":"unUsedQuote","type":"uint256"}])
|
|
413
733
|
}
|
|
734
|
+
export function getFetchCPGetSettleResultQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
735
|
+
return {
|
|
736
|
+
queryKey: ['contract-request', chainId, __to],
|
|
737
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
738
|
+
queryFn: () => {
|
|
739
|
+
// @ts-ignore
|
|
740
|
+
return fetchCPGetSettleResult(chainId, __to);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
414
744
|
|
|
415
745
|
/**
|
|
416
746
|
* fetch getShares
|
|
@@ -424,6 +754,16 @@ export function fetchCPGetShares(chainId: number, __to: string, user: string) {
|
|
|
424
754
|
const __data = hexlify(concat(['0xf04da65b', __encodeData]));
|
|
425
755
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
426
756
|
}
|
|
757
|
+
export function getFetchCPGetSharesQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined) {
|
|
758
|
+
return {
|
|
759
|
+
queryKey: ['contract-request', chainId, __to, user],
|
|
760
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, user !== undefined && user !== null],
|
|
761
|
+
queryFn: () => {
|
|
762
|
+
// @ts-ignore
|
|
763
|
+
return fetchCPGetShares(chainId, __to, user);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
427
767
|
|
|
428
768
|
/**
|
|
429
769
|
* encode bid
|