@dodoex/dodo-contract-request 1.14.0 → 1.15.0-morph-holesky.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.
Files changed (43) hide show
  1. package/.cache/contract-info/VE33NonfungiblePositionManager.json +1312 -0
  2. package/.cache/contract-info/VE33V2Pair.json +1357 -0
  3. package/.cache/contract-info/VE33V2Router.json +1660 -0
  4. package/CHANGELOG.md +7 -0
  5. package/contract-config/arbitrum.json +6 -2
  6. package/contract-config/base.json +6 -2
  7. package/contract-config/bsc.json +6 -2
  8. package/contract-config/eth.json +6 -2
  9. package/contract-config/morph-holesky.json +69 -0
  10. package/contract-config/polygon.json +6 -2
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/types/config/arbitrum.d.ts +4 -0
  14. package/dist/types/config/base.d.ts +4 -0
  15. package/dist/types/config/bsc.d.ts +4 -0
  16. package/dist/types/config/ethereum.d.ts +4 -0
  17. package/dist/types/config/index.d.ts +31 -19
  18. package/dist/types/config/morph-holesky.d.ts +8 -0
  19. package/dist/types/config/polygon.d.ts +4 -0
  20. package/dist/types/contract/VE33NonfungiblePositionManager.d.ts +460 -0
  21. package/dist/types/contract/VE33V2Pair.d.ts +667 -0
  22. package/dist/types/contract/VE33V2Router.d.ts +436 -0
  23. package/dist/types/index.d.ts +3 -0
  24. package/package.json +2 -1
  25. package/scripts/contract-generate.ts +1 -0
  26. package/src/config/arbitrum.ts +1 -1
  27. package/src/config/base.ts +1 -1
  28. package/src/config/bsc.ts +1 -1
  29. package/src/config/ethereum.ts +1 -1
  30. package/src/config/index.ts +5 -1
  31. package/src/config/morph-holesky.ts +4 -0
  32. package/src/config/polygon.ts +1 -1
  33. package/src/contract/DODOApprove.ts +1 -1
  34. package/src/contract/ERC20Helper.ts +1 -1
  35. package/src/contract/MulticallWithValid.ts +1 -1
  36. package/src/contract/NonfungiblePositionManager.ts +1 -1
  37. package/src/contract/UniswapV2Factory.ts +1 -1
  38. package/src/contract/UniswapV2Router02.ts +1 -1
  39. package/src/contract/UniswapV3Factory.ts +1 -1
  40. package/src/contract/VE33NonfungiblePositionManager.ts +734 -0
  41. package/src/contract/VE33V2Pair.ts +1061 -0
  42. package/src/contract/VE33V2Router.ts +647 -0
  43. package/src/index.ts +3 -0
@@ -0,0 +1,1061 @@
1
+ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
2
+
3
+ import { contractRequests } from '../contractRequests';
4
+
5
+
6
+
7
+ /**
8
+ * fetch DOMAIN_SEPARATOR
9
+ * @param {number} chainId - number
10
+ * @param {string} __to - string
11
+ * @returns {string} __output0 - bytes32
12
+ */
13
+ export function fetchVE33V2PairDOMAIN_SEPARATOR(chainId: number, __to: string): Promise<string> {
14
+ const __encodeData = defaultAbiCoder.encode([], []);
15
+ const __data = hexlify(concat(['0x3644e515', __encodeData]));
16
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
17
+ }
18
+ export function getFetchVE33V2PairDOMAIN_SEPARATORQueryOptions(chainId: number | undefined, __to: string | undefined) {
19
+ return {
20
+ queryKey: ['contract-request', 'fetchVE33V2PairDOMAIN_SEPARATOR', chainId, __to],
21
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
22
+ queryFn: () => {
23
+ return fetchVE33V2PairDOMAIN_SEPARATOR(chainId as number,__to as string);
24
+ }
25
+ }
26
+ }
27
+
28
+ /**
29
+ * fetch allowance
30
+ * @param {number} chainId - number
31
+ * @param {string} __to - string
32
+ * @param {string} owner - address
33
+ * @param {string} spender - address
34
+ * @returns {bigint} __output0 - uint256
35
+ */
36
+ export function fetchVE33V2PairAllowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint> {
37
+ const __encodeData = defaultAbiCoder.encode(["address","address"], [owner,spender]);
38
+ const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
39
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
40
+ }
41
+ export function getFetchVE33V2PairAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined) {
42
+ return {
43
+ queryKey: ['contract-request', 'fetchVE33V2PairAllowance', chainId, __to, owner, spender],
44
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && owner !== undefined && owner !== null && spender !== undefined && spender !== null,
45
+ queryFn: () => {
46
+ return fetchVE33V2PairAllowance(chainId as number,__to as string,owner as string,spender as string);
47
+ }
48
+ }
49
+ }
50
+
51
+ /**
52
+ * fetch balanceOf
53
+ * @param {number} chainId - number
54
+ * @param {string} __to - string
55
+ * @param {string} account - address
56
+ * @returns {bigint} __output0 - uint256
57
+ */
58
+ export function fetchVE33V2PairBalanceOf(chainId: number, __to: string, account: string): Promise<bigint> {
59
+ const __encodeData = defaultAbiCoder.encode(["address"], [account]);
60
+ const __data = hexlify(concat(['0x70a08231', __encodeData]));
61
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
62
+ }
63
+ export function getFetchVE33V2PairBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, account: string | undefined) {
64
+ return {
65
+ queryKey: ['contract-request', 'fetchVE33V2PairBalanceOf', chainId, __to, account],
66
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && account !== undefined && account !== null,
67
+ queryFn: () => {
68
+ return fetchVE33V2PairBalanceOf(chainId as number,__to as string,account as string);
69
+ }
70
+ }
71
+ }
72
+
73
+ /**
74
+ * fetch blockTimestampLast
75
+ * @param {number} chainId - number
76
+ * @param {string} __to - string
77
+ * @returns {bigint} __output0 - uint256
78
+ */
79
+ export function fetchVE33V2PairBlockTimestampLast(chainId: number, __to: string): Promise<bigint> {
80
+ const __encodeData = defaultAbiCoder.encode([], []);
81
+ const __data = hexlify(concat(['0xc5700a02', __encodeData]));
82
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
83
+ }
84
+ export function getFetchVE33V2PairBlockTimestampLastQueryOptions(chainId: number | undefined, __to: string | undefined) {
85
+ return {
86
+ queryKey: ['contract-request', 'fetchVE33V2PairBlockTimestampLast', chainId, __to],
87
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
88
+ queryFn: () => {
89
+ return fetchVE33V2PairBlockTimestampLast(chainId as number,__to as string);
90
+ }
91
+ }
92
+ }
93
+
94
+ /**
95
+ * fetch claimable0
96
+ * @param {number} chainId - number
97
+ * @param {string} __to - string
98
+ * @param {string} __input1 - address
99
+ * @returns {bigint} __output0 - uint256
100
+ */
101
+ export function fetchVE33V2PairClaimable0(chainId: number, __to: string, __input1: string): Promise<bigint> {
102
+ const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
103
+ const __data = hexlify(concat(['0x4d5a9f8a', __encodeData]));
104
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
105
+ }
106
+ export function getFetchVE33V2PairClaimable0QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
107
+ return {
108
+ queryKey: ['contract-request', 'fetchVE33V2PairClaimable0', chainId, __to, __input1],
109
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
110
+ queryFn: () => {
111
+ return fetchVE33V2PairClaimable0(chainId as number,__to as string,__input1 as string);
112
+ }
113
+ }
114
+ }
115
+
116
+ /**
117
+ * fetch claimable1
118
+ * @param {number} chainId - number
119
+ * @param {string} __to - string
120
+ * @param {string} __input1 - address
121
+ * @returns {bigint} __output0 - uint256
122
+ */
123
+ export function fetchVE33V2PairClaimable1(chainId: number, __to: string, __input1: string): Promise<bigint> {
124
+ const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
125
+ const __data = hexlify(concat(['0xa1ac4d13', __encodeData]));
126
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
127
+ }
128
+ export function getFetchVE33V2PairClaimable1QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
129
+ return {
130
+ queryKey: ['contract-request', 'fetchVE33V2PairClaimable1', chainId, __to, __input1],
131
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
132
+ queryFn: () => {
133
+ return fetchVE33V2PairClaimable1(chainId as number,__to as string,__input1 as string);
134
+ }
135
+ }
136
+ }
137
+
138
+ /**
139
+ * fetch currentCumulativePrices
140
+ * @param {number} chainId - number
141
+ * @param {string} __to - string
142
+ * @returns {bigint} reserve0Cumulative - uint256
143
+ * @returns {bigint} reserve1Cumulative - uint256
144
+ * @returns {bigint} blockTimestamp - uint256
145
+ */
146
+ export function fetchVE33V2PairCurrentCumulativePrices(chainId: number, __to: string): Promise<{
147
+ reserve0Cumulative: bigint;
148
+ reserve1Cumulative: bigint;
149
+ blockTimestamp: bigint;
150
+ }> {
151
+ const __encodeData = defaultAbiCoder.encode([], []);
152
+ const __data = hexlify(concat(['0x1df8c717', __encodeData]));
153
+ return contractRequests.batchCall<{
154
+ reserve0Cumulative: bigint;
155
+ reserve1Cumulative: bigint;
156
+ blockTimestamp: bigint;
157
+ }>(chainId, __to, __data, [{"internalType":"uint256","name":"reserve0Cumulative","type":"uint256"},{"internalType":"uint256","name":"reserve1Cumulative","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}])
158
+ }
159
+ export function getFetchVE33V2PairCurrentCumulativePricesQueryOptions(chainId: number | undefined, __to: string | undefined) {
160
+ return {
161
+ queryKey: ['contract-request', 'fetchVE33V2PairCurrentCumulativePrices', chainId, __to],
162
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
163
+ queryFn: () => {
164
+ return fetchVE33V2PairCurrentCumulativePrices(chainId as number,__to as string);
165
+ }
166
+ }
167
+ }
168
+
169
+ /**
170
+ * fetch decimals
171
+ * @param {number} chainId - number
172
+ * @param {string} __to - string
173
+ * @returns {bigint} __output0 - uint8
174
+ */
175
+ export function fetchVE33V2PairDecimals(chainId: number, __to: string): Promise<bigint> {
176
+ const __encodeData = defaultAbiCoder.encode([], []);
177
+ const __data = hexlify(concat(['0x313ce567', __encodeData]));
178
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
179
+ }
180
+ export function getFetchVE33V2PairDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined) {
181
+ return {
182
+ queryKey: ['contract-request', 'fetchVE33V2PairDecimals', chainId, __to],
183
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
184
+ queryFn: () => {
185
+ return fetchVE33V2PairDecimals(chainId as number,__to as string);
186
+ }
187
+ }
188
+ }
189
+
190
+ /**
191
+ * fetch eip712Domain
192
+ * @param {number} chainId - number
193
+ * @param {string} __to - string
194
+ * @returns {string} fields - bytes1
195
+ * @returns {string} name - string
196
+ * @returns {string} version - string
197
+ * @returns {bigint} chainId - uint256
198
+ * @returns {string} verifyingContract - address
199
+ * @returns {string} salt - bytes32
200
+ * @returns {Array<bigint>} extensions - uint256[]
201
+ */
202
+ export function fetchVE33V2PairEip712Domain(chainId: number, __to: string): Promise<{
203
+ fields: string;
204
+ name: string;
205
+ version: string;
206
+ chainId: bigint;
207
+ verifyingContract: string;
208
+ salt: string;
209
+ extensions: Array<bigint>;
210
+ }> {
211
+ const __encodeData = defaultAbiCoder.encode([], []);
212
+ const __data = hexlify(concat(['0x84b0196e', __encodeData]));
213
+ return contractRequests.batchCall<{
214
+ fields: string;
215
+ name: string;
216
+ version: string;
217
+ chainId: bigint;
218
+ verifyingContract: string;
219
+ salt: string;
220
+ extensions: Array<bigint>;
221
+ }>(chainId, __to, __data, [{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}])
222
+ }
223
+ export function getFetchVE33V2PairEip712DomainQueryOptions(chainId: number | undefined, __to: string | undefined) {
224
+ return {
225
+ queryKey: ['contract-request', 'fetchVE33V2PairEip712Domain', chainId, __to],
226
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
227
+ queryFn: () => {
228
+ return fetchVE33V2PairEip712Domain(chainId as number,__to as string);
229
+ }
230
+ }
231
+ }
232
+
233
+ /**
234
+ * fetch factory
235
+ * @param {number} chainId - number
236
+ * @param {string} __to - string
237
+ * @returns {string} __output0 - address
238
+ */
239
+ export function fetchVE33V2PairFactory(chainId: number, __to: string): Promise<string> {
240
+ const __encodeData = defaultAbiCoder.encode([], []);
241
+ const __data = hexlify(concat(['0xc45a0155', __encodeData]));
242
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
243
+ }
244
+ export function getFetchVE33V2PairFactoryQueryOptions(chainId: number | undefined, __to: string | undefined) {
245
+ return {
246
+ queryKey: ['contract-request', 'fetchVE33V2PairFactory', chainId, __to],
247
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
248
+ queryFn: () => {
249
+ return fetchVE33V2PairFactory(chainId as number,__to as string);
250
+ }
251
+ }
252
+ }
253
+
254
+ /**
255
+ * fetch getAmountOut
256
+ * @param {number} chainId - number
257
+ * @param {string} __to - string
258
+ * @param {number} amountIn - uint256
259
+ * @param {string} tokenIn - address
260
+ * @returns {bigint} __output0 - uint256
261
+ */
262
+ export function fetchVE33V2PairGetAmountOut(chainId: number, __to: string, amountIn: number, tokenIn: string): Promise<bigint> {
263
+ const __encodeData = defaultAbiCoder.encode(["uint256","address"], [amountIn,tokenIn]);
264
+ const __data = hexlify(concat(['0xf140a35a', __encodeData]));
265
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
266
+ }
267
+ export function getFetchVE33V2PairGetAmountOutQueryOptions(chainId: number | undefined, __to: string | undefined, amountIn: number | undefined, tokenIn: string | undefined) {
268
+ return {
269
+ queryKey: ['contract-request', 'fetchVE33V2PairGetAmountOut', chainId, __to, amountIn, tokenIn],
270
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && amountIn !== undefined && amountIn !== null && tokenIn !== undefined && tokenIn !== null,
271
+ queryFn: () => {
272
+ return fetchVE33V2PairGetAmountOut(chainId as number,__to as string,amountIn as number,tokenIn as string);
273
+ }
274
+ }
275
+ }
276
+
277
+ /**
278
+ * fetch getReserves
279
+ * @param {number} chainId - number
280
+ * @param {string} __to - string
281
+ * @returns {bigint} _reserve0 - uint256
282
+ * @returns {bigint} _reserve1 - uint256
283
+ * @returns {bigint} _blockTimestampLast - uint256
284
+ */
285
+ export function fetchVE33V2PairGetReserves(chainId: number, __to: string): Promise<{
286
+ _reserve0: bigint;
287
+ _reserve1: bigint;
288
+ _blockTimestampLast: bigint;
289
+ }> {
290
+ const __encodeData = defaultAbiCoder.encode([], []);
291
+ const __data = hexlify(concat(['0x0902f1ac', __encodeData]));
292
+ return contractRequests.batchCall<{
293
+ _reserve0: bigint;
294
+ _reserve1: bigint;
295
+ _blockTimestampLast: bigint;
296
+ }>(chainId, __to, __data, [{"internalType":"uint256","name":"_reserve0","type":"uint256"},{"internalType":"uint256","name":"_reserve1","type":"uint256"},{"internalType":"uint256","name":"_blockTimestampLast","type":"uint256"}])
297
+ }
298
+ export function getFetchVE33V2PairGetReservesQueryOptions(chainId: number | undefined, __to: string | undefined) {
299
+ return {
300
+ queryKey: ['contract-request', 'fetchVE33V2PairGetReserves', chainId, __to],
301
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
302
+ queryFn: () => {
303
+ return fetchVE33V2PairGetReserves(chainId as number,__to as string);
304
+ }
305
+ }
306
+ }
307
+
308
+ /**
309
+ * fetch index0
310
+ * @param {number} chainId - number
311
+ * @param {string} __to - string
312
+ * @returns {bigint} __output0 - uint256
313
+ */
314
+ export function fetchVE33V2PairIndex0(chainId: number, __to: string): Promise<bigint> {
315
+ const __encodeData = defaultAbiCoder.encode([], []);
316
+ const __data = hexlify(concat(['0x32c0defd', __encodeData]));
317
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
318
+ }
319
+ export function getFetchVE33V2PairIndex0QueryOptions(chainId: number | undefined, __to: string | undefined) {
320
+ return {
321
+ queryKey: ['contract-request', 'fetchVE33V2PairIndex0', chainId, __to],
322
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
323
+ queryFn: () => {
324
+ return fetchVE33V2PairIndex0(chainId as number,__to as string);
325
+ }
326
+ }
327
+ }
328
+
329
+ /**
330
+ * fetch index1
331
+ * @param {number} chainId - number
332
+ * @param {string} __to - string
333
+ * @returns {bigint} __output0 - uint256
334
+ */
335
+ export function fetchVE33V2PairIndex1(chainId: number, __to: string): Promise<bigint> {
336
+ const __encodeData = defaultAbiCoder.encode([], []);
337
+ const __data = hexlify(concat(['0xbda39cad', __encodeData]));
338
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
339
+ }
340
+ export function getFetchVE33V2PairIndex1QueryOptions(chainId: number | undefined, __to: string | undefined) {
341
+ return {
342
+ queryKey: ['contract-request', 'fetchVE33V2PairIndex1', chainId, __to],
343
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
344
+ queryFn: () => {
345
+ return fetchVE33V2PairIndex1(chainId as number,__to as string);
346
+ }
347
+ }
348
+ }
349
+
350
+ /**
351
+ * fetch lastObservation
352
+ * @param {number} chainId - number
353
+ * @param {string} __to - string
354
+ * @returns {{timestamp: bigint; reserve0Cumulative: bigint; reserve1Cumulative: bigint}} __output0 - tuple
355
+ */
356
+ export function fetchVE33V2PairLastObservation(chainId: number, __to: string): Promise<{timestamp: bigint; reserve0Cumulative: bigint; reserve1Cumulative: bigint}> {
357
+ const __encodeData = defaultAbiCoder.encode([], []);
358
+ const __data = hexlify(concat(['0x8a7b8cf2', __encodeData]));
359
+ return contractRequests.batchCall<{timestamp: bigint; reserve0Cumulative: bigint; reserve1Cumulative: bigint}>(chainId, __to, __data, [{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"reserve0Cumulative","type":"uint256"},{"internalType":"uint256","name":"reserve1Cumulative","type":"uint256"}],"internalType":"struct IPool.Observation","name":"","type":"tuple"}])
360
+ }
361
+ export function getFetchVE33V2PairLastObservationQueryOptions(chainId: number | undefined, __to: string | undefined) {
362
+ return {
363
+ queryKey: ['contract-request', 'fetchVE33V2PairLastObservation', chainId, __to],
364
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
365
+ queryFn: () => {
366
+ return fetchVE33V2PairLastObservation(chainId as number,__to as string);
367
+ }
368
+ }
369
+ }
370
+
371
+ /**
372
+ * fetch metadata
373
+ * @param {number} chainId - number
374
+ * @param {string} __to - string
375
+ * @returns {bigint} dec0 - uint256
376
+ * @returns {bigint} dec1 - uint256
377
+ * @returns {bigint} r0 - uint256
378
+ * @returns {bigint} r1 - uint256
379
+ * @returns {boolean} st - bool
380
+ * @returns {string} t0 - address
381
+ * @returns {string} t1 - address
382
+ */
383
+ export function fetchVE33V2PairMetadata(chainId: number, __to: string): Promise<{
384
+ dec0: bigint;
385
+ dec1: bigint;
386
+ r0: bigint;
387
+ r1: bigint;
388
+ st: boolean;
389
+ t0: string;
390
+ t1: string;
391
+ }> {
392
+ const __encodeData = defaultAbiCoder.encode([], []);
393
+ const __data = hexlify(concat(['0x392f37e9', __encodeData]));
394
+ return contractRequests.batchCall<{
395
+ dec0: bigint;
396
+ dec1: bigint;
397
+ r0: bigint;
398
+ r1: bigint;
399
+ st: boolean;
400
+ t0: string;
401
+ t1: string;
402
+ }>(chainId, __to, __data, [{"internalType":"uint256","name":"dec0","type":"uint256"},{"internalType":"uint256","name":"dec1","type":"uint256"},{"internalType":"uint256","name":"r0","type":"uint256"},{"internalType":"uint256","name":"r1","type":"uint256"},{"internalType":"bool","name":"st","type":"bool"},{"internalType":"address","name":"t0","type":"address"},{"internalType":"address","name":"t1","type":"address"}])
403
+ }
404
+ export function getFetchVE33V2PairMetadataQueryOptions(chainId: number | undefined, __to: string | undefined) {
405
+ return {
406
+ queryKey: ['contract-request', 'fetchVE33V2PairMetadata', chainId, __to],
407
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
408
+ queryFn: () => {
409
+ return fetchVE33V2PairMetadata(chainId as number,__to as string);
410
+ }
411
+ }
412
+ }
413
+
414
+ /**
415
+ * fetch name
416
+ * @param {number} chainId - number
417
+ * @param {string} __to - string
418
+ * @returns {string} __output0 - string
419
+ */
420
+ export function fetchVE33V2PairName(chainId: number, __to: string): Promise<string> {
421
+ const __encodeData = defaultAbiCoder.encode([], []);
422
+ const __data = hexlify(concat(['0x06fdde03', __encodeData]));
423
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
424
+ }
425
+ export function getFetchVE33V2PairNameQueryOptions(chainId: number | undefined, __to: string | undefined) {
426
+ return {
427
+ queryKey: ['contract-request', 'fetchVE33V2PairName', chainId, __to],
428
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
429
+ queryFn: () => {
430
+ return fetchVE33V2PairName(chainId as number,__to as string);
431
+ }
432
+ }
433
+ }
434
+
435
+ /**
436
+ * fetch nonces
437
+ * @param {number} chainId - number
438
+ * @param {string} __to - string
439
+ * @param {string} owner - address
440
+ * @returns {bigint} __output0 - uint256
441
+ */
442
+ export function fetchVE33V2PairNonces(chainId: number, __to: string, owner: string): Promise<bigint> {
443
+ const __encodeData = defaultAbiCoder.encode(["address"], [owner]);
444
+ const __data = hexlify(concat(['0x7ecebe00', __encodeData]));
445
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
446
+ }
447
+ export function getFetchVE33V2PairNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined) {
448
+ return {
449
+ queryKey: ['contract-request', 'fetchVE33V2PairNonces', chainId, __to, owner],
450
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && owner !== undefined && owner !== null,
451
+ queryFn: () => {
452
+ return fetchVE33V2PairNonces(chainId as number,__to as string,owner as string);
453
+ }
454
+ }
455
+ }
456
+
457
+ /**
458
+ * fetch observationLength
459
+ * @param {number} chainId - number
460
+ * @param {string} __to - string
461
+ * @returns {bigint} __output0 - uint256
462
+ */
463
+ export function fetchVE33V2PairObservationLength(chainId: number, __to: string): Promise<bigint> {
464
+ const __encodeData = defaultAbiCoder.encode([], []);
465
+ const __data = hexlify(concat(['0xebeb31db', __encodeData]));
466
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
467
+ }
468
+ export function getFetchVE33V2PairObservationLengthQueryOptions(chainId: number | undefined, __to: string | undefined) {
469
+ return {
470
+ queryKey: ['contract-request', 'fetchVE33V2PairObservationLength', chainId, __to],
471
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
472
+ queryFn: () => {
473
+ return fetchVE33V2PairObservationLength(chainId as number,__to as string);
474
+ }
475
+ }
476
+ }
477
+
478
+ /**
479
+ * fetch observations
480
+ * @param {number} chainId - number
481
+ * @param {string} __to - string
482
+ * @param {number} __input1 - uint256
483
+ * @returns {bigint} timestamp - uint256
484
+ * @returns {bigint} reserve0Cumulative - uint256
485
+ * @returns {bigint} reserve1Cumulative - uint256
486
+ */
487
+ export function fetchVE33V2PairObservations(chainId: number, __to: string, __input1: number): Promise<{
488
+ timestamp: bigint;
489
+ reserve0Cumulative: bigint;
490
+ reserve1Cumulative: bigint;
491
+ }> {
492
+ const __encodeData = defaultAbiCoder.encode(["uint256"], [__input1]);
493
+ const __data = hexlify(concat(['0x252c09d7', __encodeData]));
494
+ return contractRequests.batchCall<{
495
+ timestamp: bigint;
496
+ reserve0Cumulative: bigint;
497
+ reserve1Cumulative: bigint;
498
+ }>(chainId, __to, __data, [{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"reserve0Cumulative","type":"uint256"},{"internalType":"uint256","name":"reserve1Cumulative","type":"uint256"}])
499
+ }
500
+ export function getFetchVE33V2PairObservationsQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: number | undefined) {
501
+ return {
502
+ queryKey: ['contract-request', 'fetchVE33V2PairObservations', chainId, __to, __input1],
503
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
504
+ queryFn: () => {
505
+ return fetchVE33V2PairObservations(chainId as number,__to as string,__input1 as number);
506
+ }
507
+ }
508
+ }
509
+
510
+ /**
511
+ * fetch periodSize
512
+ * @param {number} chainId - number
513
+ * @param {string} __to - string
514
+ * @returns {bigint} __output0 - uint256
515
+ */
516
+ export function fetchVE33V2PairPeriodSize(chainId: number, __to: string): Promise<bigint> {
517
+ const __encodeData = defaultAbiCoder.encode([], []);
518
+ const __data = hexlify(concat(['0xe4463eb2', __encodeData]));
519
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
520
+ }
521
+ export function getFetchVE33V2PairPeriodSizeQueryOptions(chainId: number | undefined, __to: string | undefined) {
522
+ return {
523
+ queryKey: ['contract-request', 'fetchVE33V2PairPeriodSize', chainId, __to],
524
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
525
+ queryFn: () => {
526
+ return fetchVE33V2PairPeriodSize(chainId as number,__to as string);
527
+ }
528
+ }
529
+ }
530
+
531
+ /**
532
+ * fetch poolFees
533
+ * @param {number} chainId - number
534
+ * @param {string} __to - string
535
+ * @returns {string} __output0 - address
536
+ */
537
+ export function fetchVE33V2PairPoolFees(chainId: number, __to: string): Promise<string> {
538
+ const __encodeData = defaultAbiCoder.encode([], []);
539
+ const __data = hexlify(concat(['0x33580959', __encodeData]));
540
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
541
+ }
542
+ export function getFetchVE33V2PairPoolFeesQueryOptions(chainId: number | undefined, __to: string | undefined) {
543
+ return {
544
+ queryKey: ['contract-request', 'fetchVE33V2PairPoolFees', chainId, __to],
545
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
546
+ queryFn: () => {
547
+ return fetchVE33V2PairPoolFees(chainId as number,__to as string);
548
+ }
549
+ }
550
+ }
551
+
552
+ /**
553
+ * fetch prices
554
+ * @param {number} chainId - number
555
+ * @param {string} __to - string
556
+ * @param {string} tokenIn - address
557
+ * @param {number} amountIn - uint256
558
+ * @param {number} points - uint256
559
+ * @returns {Array<bigint>} __output0 - uint256[]
560
+ */
561
+ export function fetchVE33V2PairPrices(chainId: number, __to: string, tokenIn: string, amountIn: number, points: number): Promise<Array<bigint>> {
562
+ const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256"], [tokenIn,amountIn,points]);
563
+ const __data = hexlify(concat(['0x5881c475', __encodeData]));
564
+ return contractRequests.batchCall<Array<bigint>>(chainId, __to, __data, [{"internalType":"uint256[]","name":"","type":"uint256[]"}])
565
+ }
566
+ export function getFetchVE33V2PairPricesQueryOptions(chainId: number | undefined, __to: string | undefined, tokenIn: string | undefined, amountIn: number | undefined, points: number | undefined) {
567
+ return {
568
+ queryKey: ['contract-request', 'fetchVE33V2PairPrices', chainId, __to, tokenIn, amountIn, points],
569
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && tokenIn !== undefined && tokenIn !== null && amountIn !== undefined && amountIn !== null && points !== undefined && points !== null,
570
+ queryFn: () => {
571
+ return fetchVE33V2PairPrices(chainId as number,__to as string,tokenIn as string,amountIn as number,points as number);
572
+ }
573
+ }
574
+ }
575
+
576
+ /**
577
+ * fetch quote
578
+ * @param {number} chainId - number
579
+ * @param {string} __to - string
580
+ * @param {string} tokenIn - address
581
+ * @param {number} amountIn - uint256
582
+ * @param {number} granularity - uint256
583
+ * @returns {bigint} amountOut - uint256
584
+ */
585
+ export function fetchVE33V2PairQuote(chainId: number, __to: string, tokenIn: string, amountIn: number, granularity: number): Promise<bigint> {
586
+ const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256"], [tokenIn,amountIn,granularity]);
587
+ const __data = hexlify(concat(['0x9e8cc04b', __encodeData]));
588
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"amountOut","type":"uint256"}])
589
+ }
590
+ export function getFetchVE33V2PairQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, tokenIn: string | undefined, amountIn: number | undefined, granularity: number | undefined) {
591
+ return {
592
+ queryKey: ['contract-request', 'fetchVE33V2PairQuote', chainId, __to, tokenIn, amountIn, granularity],
593
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && tokenIn !== undefined && tokenIn !== null && amountIn !== undefined && amountIn !== null && granularity !== undefined && granularity !== null,
594
+ queryFn: () => {
595
+ return fetchVE33V2PairQuote(chainId as number,__to as string,tokenIn as string,amountIn as number,granularity as number);
596
+ }
597
+ }
598
+ }
599
+
600
+ /**
601
+ * fetch reserve0
602
+ * @param {number} chainId - number
603
+ * @param {string} __to - string
604
+ * @returns {bigint} __output0 - uint256
605
+ */
606
+ export function fetchVE33V2PairReserve0(chainId: number, __to: string): Promise<bigint> {
607
+ const __encodeData = defaultAbiCoder.encode([], []);
608
+ const __data = hexlify(concat(['0x443cb4bc', __encodeData]));
609
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
610
+ }
611
+ export function getFetchVE33V2PairReserve0QueryOptions(chainId: number | undefined, __to: string | undefined) {
612
+ return {
613
+ queryKey: ['contract-request', 'fetchVE33V2PairReserve0', chainId, __to],
614
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
615
+ queryFn: () => {
616
+ return fetchVE33V2PairReserve0(chainId as number,__to as string);
617
+ }
618
+ }
619
+ }
620
+
621
+ /**
622
+ * fetch reserve0CumulativeLast
623
+ * @param {number} chainId - number
624
+ * @param {string} __to - string
625
+ * @returns {bigint} __output0 - uint256
626
+ */
627
+ export function fetchVE33V2PairReserve0CumulativeLast(chainId: number, __to: string): Promise<bigint> {
628
+ const __encodeData = defaultAbiCoder.encode([], []);
629
+ const __data = hexlify(concat(['0xbf944dbc', __encodeData]));
630
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
631
+ }
632
+ export function getFetchVE33V2PairReserve0CumulativeLastQueryOptions(chainId: number | undefined, __to: string | undefined) {
633
+ return {
634
+ queryKey: ['contract-request', 'fetchVE33V2PairReserve0CumulativeLast', chainId, __to],
635
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
636
+ queryFn: () => {
637
+ return fetchVE33V2PairReserve0CumulativeLast(chainId as number,__to as string);
638
+ }
639
+ }
640
+ }
641
+
642
+ /**
643
+ * fetch reserve1
644
+ * @param {number} chainId - number
645
+ * @param {string} __to - string
646
+ * @returns {bigint} __output0 - uint256
647
+ */
648
+ export function fetchVE33V2PairReserve1(chainId: number, __to: string): Promise<bigint> {
649
+ const __encodeData = defaultAbiCoder.encode([], []);
650
+ const __data = hexlify(concat(['0x5a76f25e', __encodeData]));
651
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
652
+ }
653
+ export function getFetchVE33V2PairReserve1QueryOptions(chainId: number | undefined, __to: string | undefined) {
654
+ return {
655
+ queryKey: ['contract-request', 'fetchVE33V2PairReserve1', chainId, __to],
656
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
657
+ queryFn: () => {
658
+ return fetchVE33V2PairReserve1(chainId as number,__to as string);
659
+ }
660
+ }
661
+ }
662
+
663
+ /**
664
+ * fetch reserve1CumulativeLast
665
+ * @param {number} chainId - number
666
+ * @param {string} __to - string
667
+ * @returns {bigint} __output0 - uint256
668
+ */
669
+ export function fetchVE33V2PairReserve1CumulativeLast(chainId: number, __to: string): Promise<bigint> {
670
+ const __encodeData = defaultAbiCoder.encode([], []);
671
+ const __data = hexlify(concat(['0xc245febc', __encodeData]));
672
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
673
+ }
674
+ export function getFetchVE33V2PairReserve1CumulativeLastQueryOptions(chainId: number | undefined, __to: string | undefined) {
675
+ return {
676
+ queryKey: ['contract-request', 'fetchVE33V2PairReserve1CumulativeLast', chainId, __to],
677
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
678
+ queryFn: () => {
679
+ return fetchVE33V2PairReserve1CumulativeLast(chainId as number,__to as string);
680
+ }
681
+ }
682
+ }
683
+
684
+ /**
685
+ * fetch sample
686
+ * @param {number} chainId - number
687
+ * @param {string} __to - string
688
+ * @param {string} tokenIn - address
689
+ * @param {number} amountIn - uint256
690
+ * @param {number} points - uint256
691
+ * @param {number} window - uint256
692
+ * @returns {Array<bigint>} __output0 - uint256[]
693
+ */
694
+ export function fetchVE33V2PairSample(chainId: number, __to: string, tokenIn: string, amountIn: number, points: number, window: number): Promise<Array<bigint>> {
695
+ const __encodeData = defaultAbiCoder.encode(["address","uint256","uint256","uint256"], [tokenIn,amountIn,points,window]);
696
+ const __data = hexlify(concat(['0x13345fe1', __encodeData]));
697
+ return contractRequests.batchCall<Array<bigint>>(chainId, __to, __data, [{"internalType":"uint256[]","name":"","type":"uint256[]"}])
698
+ }
699
+ export function getFetchVE33V2PairSampleQueryOptions(chainId: number | undefined, __to: string | undefined, tokenIn: string | undefined, amountIn: number | undefined, points: number | undefined, window: number | undefined) {
700
+ return {
701
+ queryKey: ['contract-request', 'fetchVE33V2PairSample', chainId, __to, tokenIn, amountIn, points, window],
702
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && tokenIn !== undefined && tokenIn !== null && amountIn !== undefined && amountIn !== null && points !== undefined && points !== null && window !== undefined && window !== null,
703
+ queryFn: () => {
704
+ return fetchVE33V2PairSample(chainId as number,__to as string,tokenIn as string,amountIn as number,points as number,window as number);
705
+ }
706
+ }
707
+ }
708
+
709
+ /**
710
+ * fetch stable
711
+ * @param {number} chainId - number
712
+ * @param {string} __to - string
713
+ * @returns {boolean} __output0 - bool
714
+ */
715
+ export function fetchVE33V2PairStable(chainId: number, __to: string): Promise<boolean> {
716
+ const __encodeData = defaultAbiCoder.encode([], []);
717
+ const __data = hexlify(concat(['0x22be3de1', __encodeData]));
718
+ return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
719
+ }
720
+ export function getFetchVE33V2PairStableQueryOptions(chainId: number | undefined, __to: string | undefined) {
721
+ return {
722
+ queryKey: ['contract-request', 'fetchVE33V2PairStable', chainId, __to],
723
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
724
+ queryFn: () => {
725
+ return fetchVE33V2PairStable(chainId as number,__to as string);
726
+ }
727
+ }
728
+ }
729
+
730
+ /**
731
+ * fetch supplyIndex0
732
+ * @param {number} chainId - number
733
+ * @param {string} __to - string
734
+ * @param {string} __input1 - address
735
+ * @returns {bigint} __output0 - uint256
736
+ */
737
+ export function fetchVE33V2PairSupplyIndex0(chainId: number, __to: string, __input1: string): Promise<bigint> {
738
+ const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
739
+ const __data = hexlify(concat(['0x9f767c88', __encodeData]));
740
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
741
+ }
742
+ export function getFetchVE33V2PairSupplyIndex0QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
743
+ return {
744
+ queryKey: ['contract-request', 'fetchVE33V2PairSupplyIndex0', chainId, __to, __input1],
745
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
746
+ queryFn: () => {
747
+ return fetchVE33V2PairSupplyIndex0(chainId as number,__to as string,__input1 as string);
748
+ }
749
+ }
750
+ }
751
+
752
+ /**
753
+ * fetch supplyIndex1
754
+ * @param {number} chainId - number
755
+ * @param {string} __to - string
756
+ * @param {string} __input1 - address
757
+ * @returns {bigint} __output0 - uint256
758
+ */
759
+ export function fetchVE33V2PairSupplyIndex1(chainId: number, __to: string, __input1: string): Promise<bigint> {
760
+ const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
761
+ const __data = hexlify(concat(['0x205aabf1', __encodeData]));
762
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
763
+ }
764
+ export function getFetchVE33V2PairSupplyIndex1QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
765
+ return {
766
+ queryKey: ['contract-request', 'fetchVE33V2PairSupplyIndex1', chainId, __to, __input1],
767
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
768
+ queryFn: () => {
769
+ return fetchVE33V2PairSupplyIndex1(chainId as number,__to as string,__input1 as string);
770
+ }
771
+ }
772
+ }
773
+
774
+ /**
775
+ * fetch symbol
776
+ * @param {number} chainId - number
777
+ * @param {string} __to - string
778
+ * @returns {string} __output0 - string
779
+ */
780
+ export function fetchVE33V2PairSymbol(chainId: number, __to: string): Promise<string> {
781
+ const __encodeData = defaultAbiCoder.encode([], []);
782
+ const __data = hexlify(concat(['0x95d89b41', __encodeData]));
783
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
784
+ }
785
+ export function getFetchVE33V2PairSymbolQueryOptions(chainId: number | undefined, __to: string | undefined) {
786
+ return {
787
+ queryKey: ['contract-request', 'fetchVE33V2PairSymbol', chainId, __to],
788
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
789
+ queryFn: () => {
790
+ return fetchVE33V2PairSymbol(chainId as number,__to as string);
791
+ }
792
+ }
793
+ }
794
+
795
+ /**
796
+ * fetch token0
797
+ * @param {number} chainId - number
798
+ * @param {string} __to - string
799
+ * @returns {string} __output0 - address
800
+ */
801
+ export function fetchVE33V2PairToken0(chainId: number, __to: string): Promise<string> {
802
+ const __encodeData = defaultAbiCoder.encode([], []);
803
+ const __data = hexlify(concat(['0x0dfe1681', __encodeData]));
804
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
805
+ }
806
+ export function getFetchVE33V2PairToken0QueryOptions(chainId: number | undefined, __to: string | undefined) {
807
+ return {
808
+ queryKey: ['contract-request', 'fetchVE33V2PairToken0', chainId, __to],
809
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
810
+ queryFn: () => {
811
+ return fetchVE33V2PairToken0(chainId as number,__to as string);
812
+ }
813
+ }
814
+ }
815
+
816
+ /**
817
+ * fetch token1
818
+ * @param {number} chainId - number
819
+ * @param {string} __to - string
820
+ * @returns {string} __output0 - address
821
+ */
822
+ export function fetchVE33V2PairToken1(chainId: number, __to: string): Promise<string> {
823
+ const __encodeData = defaultAbiCoder.encode([], []);
824
+ const __data = hexlify(concat(['0xd21220a7', __encodeData]));
825
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
826
+ }
827
+ export function getFetchVE33V2PairToken1QueryOptions(chainId: number | undefined, __to: string | undefined) {
828
+ return {
829
+ queryKey: ['contract-request', 'fetchVE33V2PairToken1', chainId, __to],
830
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
831
+ queryFn: () => {
832
+ return fetchVE33V2PairToken1(chainId as number,__to as string);
833
+ }
834
+ }
835
+ }
836
+
837
+ /**
838
+ * fetch tokens
839
+ * @param {number} chainId - number
840
+ * @param {string} __to - string
841
+ * @returns {string} __output0 - address
842
+ * @returns {string} __output1 - address
843
+ */
844
+ export function fetchVE33V2PairTokens(chainId: number, __to: string): Promise<{
845
+ __output0: string;
846
+ __output1: string;
847
+ }> {
848
+ const __encodeData = defaultAbiCoder.encode([], []);
849
+ const __data = hexlify(concat(['0x9d63848a', __encodeData]));
850
+ return contractRequests.batchCall<{
851
+ __output0: string;
852
+ __output1: string;
853
+ }>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}])
854
+ }
855
+ export function getFetchVE33V2PairTokensQueryOptions(chainId: number | undefined, __to: string | undefined) {
856
+ return {
857
+ queryKey: ['contract-request', 'fetchVE33V2PairTokens', chainId, __to],
858
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
859
+ queryFn: () => {
860
+ return fetchVE33V2PairTokens(chainId as number,__to as string);
861
+ }
862
+ }
863
+ }
864
+
865
+ /**
866
+ * fetch totalSupply
867
+ * @param {number} chainId - number
868
+ * @param {string} __to - string
869
+ * @returns {bigint} __output0 - uint256
870
+ */
871
+ export function fetchVE33V2PairTotalSupply(chainId: number, __to: string): Promise<bigint> {
872
+ const __encodeData = defaultAbiCoder.encode([], []);
873
+ const __data = hexlify(concat(['0x18160ddd', __encodeData]));
874
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
875
+ }
876
+ export function getFetchVE33V2PairTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined) {
877
+ return {
878
+ queryKey: ['contract-request', 'fetchVE33V2PairTotalSupply', chainId, __to],
879
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
880
+ queryFn: () => {
881
+ return fetchVE33V2PairTotalSupply(chainId as number,__to as string);
882
+ }
883
+ }
884
+ }
885
+
886
+ /**
887
+ * encode approve
888
+ * @param {string} spender - address
889
+ * @param {string | number} amount - uint256
890
+ * @returns {string} encode data
891
+ */
892
+ export function encodeVE33V2PairApprove(spender: string, amount: string | number) {
893
+ const __encodeData = defaultAbiCoder.encode(["address","uint256"], [spender,amount]);
894
+ return hexlify(concat(['0x095ea7b3', __encodeData]));
895
+ }
896
+
897
+ /**
898
+ * encode burn
899
+ * @param {string} to - address
900
+ * @returns {string} encode data
901
+ */
902
+ export function encodeVE33V2PairBurn(to: string) {
903
+ const __encodeData = defaultAbiCoder.encode(["address"], [to]);
904
+ return hexlify(concat(['0x89afcb44', __encodeData]));
905
+ }
906
+
907
+ /**
908
+ * encode claimFees
909
+
910
+ * @returns {string} encode data
911
+ */
912
+ export function encodeVE33V2PairClaimFees() {
913
+ const __encodeData = defaultAbiCoder.encode([], []);
914
+ return hexlify(concat(['0xd294f093', __encodeData]));
915
+ }
916
+
917
+ /**
918
+ * encode decreaseAllowance
919
+ * @param {string} spender - address
920
+ * @param {string | number} subtractedValue - uint256
921
+ * @returns {string} encode data
922
+ */
923
+ export function encodeVE33V2PairDecreaseAllowance(spender: string, subtractedValue: string | number) {
924
+ const __encodeData = defaultAbiCoder.encode(["address","uint256"], [spender,subtractedValue]);
925
+ return hexlify(concat(['0xa457c2d7', __encodeData]));
926
+ }
927
+
928
+ /**
929
+ * encode getK
930
+
931
+ * @returns {string} encode data
932
+ */
933
+ export function encodeVE33V2PairGetK() {
934
+ const __encodeData = defaultAbiCoder.encode([], []);
935
+ return hexlify(concat(['0xee39e7a0', __encodeData]));
936
+ }
937
+
938
+ /**
939
+ * encode increaseAllowance
940
+ * @param {string} spender - address
941
+ * @param {string | number} addedValue - uint256
942
+ * @returns {string} encode data
943
+ */
944
+ export function encodeVE33V2PairIncreaseAllowance(spender: string, addedValue: string | number) {
945
+ const __encodeData = defaultAbiCoder.encode(["address","uint256"], [spender,addedValue]);
946
+ return hexlify(concat(['0x39509351', __encodeData]));
947
+ }
948
+
949
+ /**
950
+ * encode initialize
951
+ * @param {string} _token0 - address
952
+ * @param {string} _token1 - address
953
+ * @param {boolean} _stable - bool
954
+ * @returns {string} encode data
955
+ */
956
+ export function encodeVE33V2PairInitialize(_token0: string, _token1: string, _stable: boolean) {
957
+ const __encodeData = defaultAbiCoder.encode(["address","address","bool"], [_token0,_token1,_stable]);
958
+ return hexlify(concat(['0xe4bbb5a8', __encodeData]));
959
+ }
960
+
961
+ /**
962
+ * encode mint
963
+ * @param {string} to - address
964
+ * @returns {string} encode data
965
+ */
966
+ export function encodeVE33V2PairMint(to: string) {
967
+ const __encodeData = defaultAbiCoder.encode(["address"], [to]);
968
+ return hexlify(concat(['0x6a627842', __encodeData]));
969
+ }
970
+
971
+ /**
972
+ * encode permit
973
+ * @param {string} owner - address
974
+ * @param {string} spender - address
975
+ * @param {string | number} value - uint256
976
+ * @param {string | number} deadline - uint256
977
+ * @param {string | number} v - uint8
978
+ * @param {string} r - bytes32
979
+ * @param {string} s - bytes32
980
+ * @returns {string} encode data
981
+ */
982
+ export function encodeVE33V2PairPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string) {
983
+ const __encodeData = defaultAbiCoder.encode(["address","address","uint256","uint256","uint8","bytes32","bytes32"], [owner,spender,value,deadline,v,r,s]);
984
+ return hexlify(concat(['0xd505accf', __encodeData]));
985
+ }
986
+
987
+ /**
988
+ * encode setName
989
+ * @param {string} __name - string
990
+ * @returns {string} encode data
991
+ */
992
+ export function encodeVE33V2PairSetName(__name: string) {
993
+ const __encodeData = defaultAbiCoder.encode(["string"], [__name]);
994
+ return hexlify(concat(['0xc47f0027', __encodeData]));
995
+ }
996
+
997
+ /**
998
+ * encode setSymbol
999
+ * @param {string} __symbol - string
1000
+ * @returns {string} encode data
1001
+ */
1002
+ export function encodeVE33V2PairSetSymbol(__symbol: string) {
1003
+ const __encodeData = defaultAbiCoder.encode(["string"], [__symbol]);
1004
+ return hexlify(concat(['0xb84c8246', __encodeData]));
1005
+ }
1006
+
1007
+ /**
1008
+ * encode skim
1009
+ * @param {string} to - address
1010
+ * @returns {string} encode data
1011
+ */
1012
+ export function encodeVE33V2PairSkim(to: string) {
1013
+ const __encodeData = defaultAbiCoder.encode(["address"], [to]);
1014
+ return hexlify(concat(['0xbc25cf77', __encodeData]));
1015
+ }
1016
+
1017
+ /**
1018
+ * encode swap
1019
+ * @param {string | number} amount0Out - uint256
1020
+ * @param {string | number} amount1Out - uint256
1021
+ * @param {string} to - address
1022
+ * @param {string} data - bytes
1023
+ * @returns {string} encode data
1024
+ */
1025
+ export function encodeVE33V2PairSwap(amount0Out: string | number, amount1Out: string | number, to: string, data: string) {
1026
+ const __encodeData = defaultAbiCoder.encode(["uint256","uint256","address","bytes"], [amount0Out,amount1Out,to,data]);
1027
+ return hexlify(concat(['0x022c0d9f', __encodeData]));
1028
+ }
1029
+
1030
+ /**
1031
+ * encode sync
1032
+
1033
+ * @returns {string} encode data
1034
+ */
1035
+ export function encodeVE33V2PairSync() {
1036
+ const __encodeData = defaultAbiCoder.encode([], []);
1037
+ return hexlify(concat(['0xfff6cae9', __encodeData]));
1038
+ }
1039
+
1040
+ /**
1041
+ * encode transfer
1042
+ * @param {string} to - address
1043
+ * @param {string | number} amount - uint256
1044
+ * @returns {string} encode data
1045
+ */
1046
+ export function encodeVE33V2PairTransfer(to: string, amount: string | number) {
1047
+ const __encodeData = defaultAbiCoder.encode(["address","uint256"], [to,amount]);
1048
+ return hexlify(concat(['0xa9059cbb', __encodeData]));
1049
+ }
1050
+
1051
+ /**
1052
+ * encode transferFrom
1053
+ * @param {string} from - address
1054
+ * @param {string} to - address
1055
+ * @param {string | number} amount - uint256
1056
+ * @returns {string} encode data
1057
+ */
1058
+ export function encodeVE33V2PairTransferFrom(from: string, to: string, amount: string | number) {
1059
+ const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [from,to,amount]);
1060
+ return hexlify(concat(['0x23b872dd', __encodeData]));
1061
+ }