@dodoex/dodo-contract-request 1.31.0 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,5 +28,6 @@ declare const CONTRACT_CONFIG: {
28
28
  DODOMineV3Proxy: string;
29
29
  DODOFeeRouteProxy1: string;
30
30
  DODOFeeRouteProxy2: string;
31
+ UniswapV2Router02: string;
31
32
  };
32
33
  export default CONTRACT_CONFIG;
@@ -35,14 +35,27 @@ export declare function getFetchCP_BIDDER_PERMISSION_QueryOptions(chainId: numbe
35
35
  queryFn: () => Promise<string>;
36
36
  };
37
37
  /**
38
- * fetch _CLAIMED_
38
+ * fetch _CLAIMED_BASE_TOKEN_
39
+ * @param {number} chainId - number
40
+ * @param {string} __to - string
41
+ * @param {string} __input1 - address
42
+ * @returns {bigint} __output0 - uint256
43
+ */
44
+ export declare function fetchCP_CLAIMED_BASE_TOKEN_(chainId: number, __to: string, __input1: string): Promise<bigint>;
45
+ export declare function getFetchCP_CLAIMED_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
46
+ queryKey: (string | number | undefined)[];
47
+ enabled: boolean;
48
+ queryFn: () => Promise<bigint>;
49
+ };
50
+ /**
51
+ * fetch _CLAIMED_QUOTE_
39
52
  * @param {number} chainId - number
40
53
  * @param {string} __to - string
41
54
  * @param {string} __input1 - address
42
55
  * @returns {boolean} __output0 - bool
43
56
  */
44
- export declare function fetchCP_CLAIMED_(chainId: number, __to: string, __input1: string): Promise<boolean>;
45
- export declare function getFetchCP_CLAIMED_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
57
+ export declare function fetchCP_CLAIMED_QUOTE_(chainId: number, __to: string, __input1: string): Promise<boolean>;
58
+ export declare function getFetchCP_CLAIMED_QUOTE_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
46
59
  queryKey: (string | number | undefined)[];
47
60
  enabled: boolean;
48
61
  queryFn: () => Promise<boolean>;
@@ -59,6 +72,18 @@ export declare function getFetchCP_CLIFF_RATE_QueryOptions(chainId: number | und
59
72
  enabled: boolean;
60
73
  queryFn: () => Promise<bigint>;
61
74
  };
75
+ /**
76
+ * fetch _FORCE_STOP_
77
+ * @param {number} chainId - number
78
+ * @param {string} __to - string
79
+ * @returns {boolean} __output0 - bool
80
+ */
81
+ export declare function fetchCP_FORCE_STOP_(chainId: number, __to: string): Promise<boolean>;
82
+ export declare function getFetchCP_FORCE_STOP_QueryOptions(chainId: number | undefined, __to: string | undefined): {
83
+ queryKey: (string | number | undefined)[];
84
+ enabled: boolean;
85
+ queryFn: () => Promise<boolean>;
86
+ };
62
87
  /**
63
88
  * fetch _FREEZE_DURATION_
64
89
  * @param {number} chainId - number
@@ -83,6 +108,18 @@ export declare function getFetchCP_IS_OPEN_TWAP_QueryOptions(chainId: number | u
83
108
  enabled: boolean;
84
109
  queryFn: () => Promise<boolean>;
85
110
  };
111
+ /**
112
+ * fetch _IS_OVERCAP_STOP
113
+ * @param {number} chainId - number
114
+ * @param {string} __to - string
115
+ * @returns {boolean} __output0 - bool
116
+ */
117
+ export declare function fetchCP_IS_OVERCAP_STOP(chainId: number, __to: string): Promise<boolean>;
118
+ export declare function getFetchCP_IS_OVERCAP_STOPQueryOptions(chainId: number | undefined, __to: string | undefined): {
119
+ queryKey: (string | number | undefined)[];
120
+ enabled: boolean;
121
+ queryFn: () => Promise<boolean>;
122
+ };
86
123
  /**
87
124
  * fetch _I_
88
125
  * @param {number} chainId - number
@@ -215,6 +252,18 @@ export declare function getFetchCP_POOL_FACTORY_QueryOptions(chainId: number | u
215
252
  enabled: boolean;
216
253
  queryFn: () => Promise<string>;
217
254
  };
255
+ /**
256
+ * fetch _POOL_FEE_RATE_
257
+ * @param {number} chainId - number
258
+ * @param {string} __to - string
259
+ * @returns {bigint} __output0 - uint256
260
+ */
261
+ export declare function fetchCP_POOL_FEE_RATE_(chainId: number, __to: string): Promise<bigint>;
262
+ export declare function getFetchCP_POOL_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
263
+ queryKey: (string | number | undefined)[];
264
+ enabled: boolean;
265
+ queryFn: () => Promise<bigint>;
266
+ };
218
267
  /**
219
268
  * fetch _POOL_QUOTE_CAP_
220
269
  * @param {number} chainId - number
@@ -275,6 +324,42 @@ export declare function getFetchCP_SETTLED_TIME_QueryOptions(chainId: number | u
275
324
  enabled: boolean;
276
325
  queryFn: () => Promise<bigint>;
277
326
  };
327
+ /**
328
+ * fetch _TOKEN_CLAIM_DURATION_
329
+ * @param {number} chainId - number
330
+ * @param {string} __to - string
331
+ * @returns {bigint} __output0 - uint256
332
+ */
333
+ export declare function fetchCP_TOKEN_CLAIM_DURATION_(chainId: number, __to: string): Promise<bigint>;
334
+ export declare function getFetchCP_TOKEN_CLAIM_DURATION_QueryOptions(chainId: number | undefined, __to: string | undefined): {
335
+ queryKey: (string | number | undefined)[];
336
+ enabled: boolean;
337
+ queryFn: () => Promise<bigint>;
338
+ };
339
+ /**
340
+ * fetch _TOKEN_CLIFF_RATE_
341
+ * @param {number} chainId - number
342
+ * @param {string} __to - string
343
+ * @returns {bigint} __output0 - uint256
344
+ */
345
+ export declare function fetchCP_TOKEN_CLIFF_RATE_(chainId: number, __to: string): Promise<bigint>;
346
+ export declare function getFetchCP_TOKEN_CLIFF_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
347
+ queryKey: (string | number | undefined)[];
348
+ enabled: boolean;
349
+ queryFn: () => Promise<bigint>;
350
+ };
351
+ /**
352
+ * fetch _TOKEN_VESTING_DURATION_
353
+ * @param {number} chainId - number
354
+ * @param {string} __to - string
355
+ * @returns {bigint} __output0 - uint256
356
+ */
357
+ export declare function fetchCP_TOKEN_VESTING_DURATION_(chainId: number, __to: string): Promise<bigint>;
358
+ export declare function getFetchCP_TOKEN_VESTING_DURATION_QueryOptions(chainId: number | undefined, __to: string | undefined): {
359
+ queryKey: (string | number | undefined)[];
360
+ enabled: boolean;
361
+ queryFn: () => Promise<bigint>;
362
+ };
278
363
  /**
279
364
  * fetch _TOTAL_BASE_
280
365
  * @param {number} chainId - number
@@ -347,6 +432,19 @@ export declare function getFetchCP_VESTING_DURATION_QueryOptions(chainId: number
347
432
  enabled: boolean;
348
433
  queryFn: () => Promise<bigint>;
349
434
  };
435
+ /**
436
+ * fetch getClaimableBaseToken
437
+ * @param {number} chainId - number
438
+ * @param {string} __to - string
439
+ * @param {string} user - address
440
+ * @returns {bigint} __output0 - uint256
441
+ */
442
+ export declare function fetchCPGetClaimableBaseToken(chainId: number, __to: string, user: string): Promise<bigint>;
443
+ export declare function getFetchCPGetClaimableBaseTokenQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined): {
444
+ queryKey: (string | number | undefined)[];
445
+ enabled: boolean;
446
+ queryFn: () => Promise<bigint>;
447
+ };
350
448
  /**
351
449
  * fetch getClaimableLPToken
352
450
  * @param {number} chainId - number
@@ -359,6 +457,50 @@ export declare function getFetchCPGetClaimableLPTokenQueryOptions(chainId: numbe
359
457
  enabled: boolean;
360
458
  queryFn: () => Promise<bigint>;
361
459
  };
460
+ /**
461
+ * fetch getCpInfoHelper
462
+ * @param {number} chainId - number
463
+ * @param {string} __to - string
464
+ * @param {string} user - address
465
+ * @returns {boolean} isSettled - bool
466
+ * @returns {bigint} settledTime - uint256
467
+ * @returns {bigint} claimableBaseToken - uint256
468
+ * @returns {bigint} claimedBaseToken - uint256
469
+ * @returns {boolean} isClaimedQuoteToken - bool
470
+ * @returns {bigint} claimableQuoteToken - uint256
471
+ * @returns {string} pool - address
472
+ * @returns {bigint} claimableLpToken - uint256
473
+ * @returns {bigint} myShares - uint256
474
+ * @returns {boolean} isOverCapStop - bool
475
+ */
476
+ export declare function fetchCPGetCpInfoHelper(chainId: number, __to: string, user: string): Promise<{
477
+ isSettled: boolean;
478
+ settledTime: bigint;
479
+ claimableBaseToken: bigint;
480
+ claimedBaseToken: bigint;
481
+ isClaimedQuoteToken: boolean;
482
+ claimableQuoteToken: bigint;
483
+ pool: string;
484
+ claimableLpToken: bigint;
485
+ myShares: bigint;
486
+ isOverCapStop: boolean;
487
+ }>;
488
+ export declare function getFetchCPGetCpInfoHelperQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined): {
489
+ queryKey: (string | number | undefined)[];
490
+ enabled: boolean;
491
+ queryFn: () => Promise<{
492
+ isSettled: boolean;
493
+ settledTime: bigint;
494
+ claimableBaseToken: bigint;
495
+ claimedBaseToken: bigint;
496
+ isClaimedQuoteToken: boolean;
497
+ claimableQuoteToken: bigint;
498
+ pool: string;
499
+ claimableLpToken: bigint;
500
+ myShares: bigint;
501
+ isOverCapStop: boolean;
502
+ }>;
503
+ };
362
504
  /**
363
505
  * fetch getExpectedAvgPrice
364
506
  * @param {number} chainId - number
@@ -371,6 +513,19 @@ export declare function getFetchCPGetExpectedAvgPriceQueryOptions(chainId: numbe
371
513
  enabled: boolean;
372
514
  queryFn: () => Promise<bigint>;
373
515
  };
516
+ /**
517
+ * fetch getRemainingBaseTokenRatio
518
+ * @param {number} chainId - number
519
+ * @param {string} __to - string
520
+ * @param {number} timestamp - uint256
521
+ * @returns {bigint} __output0 - uint256
522
+ */
523
+ export declare function fetchCPGetRemainingBaseTokenRatio(chainId: number, __to: string, timestamp: number): Promise<bigint>;
524
+ export declare function getFetchCPGetRemainingBaseTokenRatioQueryOptions(chainId: number | undefined, __to: string | undefined, timestamp: number | undefined): {
525
+ queryKey: (string | number | undefined)[];
526
+ enabled: boolean;
527
+ queryFn: () => Promise<bigint>;
528
+ };
374
529
  /**
375
530
  * fetch getRemainingLPRatio
376
531
  * @param {number} chainId - number
@@ -425,6 +580,18 @@ export declare function getFetchCPGetSharesQueryOptions(chainId: number | undefi
425
580
  enabled: boolean;
426
581
  queryFn: () => Promise<bigint>;
427
582
  };
583
+ /**
584
+ * fetch version
585
+ * @param {number} chainId - number
586
+ * @param {string} __to - string
587
+ * @returns {string} __output0 - string
588
+ */
589
+ export declare function fetchCPVersion(chainId: number, __to: string): Promise<string>;
590
+ export declare function getFetchCPVersionQueryOptions(chainId: number | undefined, __to: string | undefined): {
591
+ queryKey: (string | number | undefined)[];
592
+ enabled: boolean;
593
+ queryFn: () => Promise<string>;
594
+ };
428
595
  /**
429
596
  * encode bid
430
597
  * @param {string} to - address
@@ -464,15 +631,21 @@ export declare function encodeCPClaimOwnership(): string;
464
631
  * @returns {string} encode data
465
632
  */
466
633
  export declare function encodeCPEmergencySettle(): string;
634
+ /**
635
+ * encode forceStop
636
+
637
+ * @returns {string} encode data
638
+ */
639
+ export declare function encodeCPForceStop(): string;
467
640
  /**
468
641
  * encode init
469
642
  * @param {Array<string>} addressList - address[]
470
643
  * @param {Array<string | number>} timeLine - uint256[]
471
644
  * @param {Array<string | number>} valueList - uint256[]
472
- * @param {boolean} isOpenTWAP - bool
645
+ * @param {Array<boolean>} switches - bool[]
473
646
  * @returns {string} encode data
474
647
  */
475
- export declare function encodeCPInit(addressList: Array<string>, timeLine: Array<string | number>, valueList: Array<string | number>, isOpenTWAP: boolean): string;
648
+ export declare function encodeCPInit(addressList: Array<string>, timeLine: Array<string | number>, valueList: Array<string | number>, switches: Array<boolean>): string;
476
649
  /**
477
650
  * encode initOwner
478
651
  * @param {string} newOwner - address
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/dodo-contract-request",
3
- "version": "1.31.0",
3
+ "version": "1.33.0",
4
4
  "description": "",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,4 @@
1
1
 
2
- const CONTRACT_CONFIG = {"Multicall":"0x3341F3C517a25128d660F9d00bd3f4d991de4C1A","MulticallWithValid":"0x5fbc8D4F942D7e519d5E8b7e10a9bd04aCef6709","DODOSellHelper":"0xf7D1da9490addDc1Afad6df4508f57F9DC5eBe1a","DODOSwapCalcHelper":"0xaF2403DD44B3C589f12680e715a8bBeB5b4B8471","ERC20Helper":"0xCd636c6c8f6cbbEBcA80BBaB4D353c8D6Cb75E96","DODOCalleeHelper":"0xE02E1B6356037d3009EfDd05064275A424D42Ea0","DODOV1PmmHelper":"0xf7f3E253508289Ec46FdabBbb8c5c21d4c9b4EF1","DODOV2RouteHelper":"0xf3234AB6d207198C028F35232FBB7FF2865A0a6b","DVMFactory":"0x63eEc8527884582358Ce6e93d530Df725D5Cf7d1","DSPFactory":"0xB4f2E70DE64F94116A6e93ff4dF2D020E91e7a63","GSPFactory":"0x391f8D754E4BaC453d059BA7D2137C4905bF48d4","DPPFactory":"0x2915386Ddc7bdE7739A82Caa8094d0Fe7376225E","CrowdPoolingFactory":"0x669c8c9eee43A7e782A2a7D5497eBe6a28f19AcE","ERC20V3Factory":"0xDbAF291a4380749a0E6474E25Ab8A3186475074A","UniswapV2Factory":"0x895df30e99956ad8e831988e160060C3530D7193","UniswapV3Factory":"0x9b1F69bfaCF13B8f8fE2aC093C7bae93b08a9C83","DODOMineV2Factory":"0x470525b96b84dE0A5D5fBA2053ba903FD031d3fF","NonfungiblePositionManager":"0x257f07bD2179799dA10EdfaA4F4BB64fb04a46ac","DODOMineV3Registry":"0x56D74Fce859468565ebe3Cf926f819968246b4E9","DODOApprove":"0x464518e33F7Bd5E61a92b98b4332782915442580","DODOApproveProxy":"0x4688f7c325bc733e491Ef4C8eEBD54DC2a0fF137","DODOV2Adapter":"0x886F677605512351e554AA53BA77eA493058b460","DODOV2Proxy02":"0x07061554978B6b6645cf074E9d85dF409Cc7e433","DODODspProxy":"0x873a82F8F0D66dA6c0F3dcd861815E2F5dB57e23","DODOCpProxy":"0xF8221d25DfAbC680b15be75C2ef6bf14eF5225D7","DODODppProxy":"0xC0122fD9B5E78524d78C901AC51BB54D2598C9CE","DODOMineV3Proxy":"0xD6b1285a211773EcF91c938351eb0EF547b56217","DODOFeeRouteProxy1":"0x38a445f3460C358be1C45b0223B80fb0389Fa79A","DODOFeeRouteProxy2":"0x1436830D92b443c52c75E4d6Bad10e424C96c716"};
2
+ const CONTRACT_CONFIG = {"Multicall":"0x3341F3C517a25128d660F9d00bd3f4d991de4C1A","MulticallWithValid":"0x5fbc8D4F942D7e519d5E8b7e10a9bd04aCef6709","DODOSellHelper":"0xf7D1da9490addDc1Afad6df4508f57F9DC5eBe1a","DODOSwapCalcHelper":"0xaF2403DD44B3C589f12680e715a8bBeB5b4B8471","ERC20Helper":"0xCd636c6c8f6cbbEBcA80BBaB4D353c8D6Cb75E96","DODOCalleeHelper":"0xE02E1B6356037d3009EfDd05064275A424D42Ea0","DODOV1PmmHelper":"0xf7f3E253508289Ec46FdabBbb8c5c21d4c9b4EF1","DODOV2RouteHelper":"0xf3234AB6d207198C028F35232FBB7FF2865A0a6b","DVMFactory":"0x63eEc8527884582358Ce6e93d530Df725D5Cf7d1","DSPFactory":"0xB4f2E70DE64F94116A6e93ff4dF2D020E91e7a63","GSPFactory":"0x391f8D754E4BaC453d059BA7D2137C4905bF48d4","DPPFactory":"0x2915386Ddc7bdE7739A82Caa8094d0Fe7376225E","CrowdPoolingFactory":"0x669c8c9eee43A7e782A2a7D5497eBe6a28f19AcE","ERC20V3Factory":"0xDbAF291a4380749a0E6474E25Ab8A3186475074A","UniswapV2Factory":"0x895df30e99956ad8e831988e160060C3530D7193","UniswapV3Factory":"0x9b1F69bfaCF13B8f8fE2aC093C7bae93b08a9C83","DODOMineV2Factory":"0x470525b96b84dE0A5D5fBA2053ba903FD031d3fF","NonfungiblePositionManager":"0x257f07bD2179799dA10EdfaA4F4BB64fb04a46ac","DODOMineV3Registry":"0x56D74Fce859468565ebe3Cf926f819968246b4E9","DODOApprove":"0x464518e33F7Bd5E61a92b98b4332782915442580","DODOApproveProxy":"0x4688f7c325bc733e491Ef4C8eEBD54DC2a0fF137","DODOV2Adapter":"0x886F677605512351e554AA53BA77eA493058b460","DODOV2Proxy02":"0x07061554978B6b6645cf074E9d85dF409Cc7e433","DODODspProxy":"0x873a82F8F0D66dA6c0F3dcd861815E2F5dB57e23","DODOCpProxy":"0xF8221d25DfAbC680b15be75C2ef6bf14eF5225D7","DODODppProxy":"0xC0122fD9B5E78524d78C901AC51BB54D2598C9CE","DODOMineV3Proxy":"0xD6b1285a211773EcF91c938351eb0EF547b56217","DODOFeeRouteProxy1":"0x38a445f3460C358be1C45b0223B80fb0389Fa79A","DODOFeeRouteProxy2":"0x1436830D92b443c52c75E4d6Bad10e424C96c716","UniswapV2Router02":"0x5C889887CA4Bc76B9C1F2af80fF73Da5791FD130"};
3
3
  export default CONTRACT_CONFIG;
4
4
 
@@ -68,23 +68,45 @@ export function getFetchCP_BIDDER_PERMISSION_QueryOptions(chainId: number | unde
68
68
  }
69
69
 
70
70
  /**
71
- * fetch _CLAIMED_
71
+ * fetch _CLAIMED_BASE_TOKEN_
72
+ * @param {number} chainId - number
73
+ * @param {string} __to - string
74
+ * @param {string} __input1 - address
75
+ * @returns {bigint} __output0 - uint256
76
+ */
77
+ export function fetchCP_CLAIMED_BASE_TOKEN_(chainId: number, __to: string, __input1: string): Promise<bigint> {
78
+ const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
79
+ const __data = hexlify(concat(['0xd7965055', __encodeData]));
80
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
81
+ }
82
+ export function getFetchCP_CLAIMED_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
83
+ return {
84
+ queryKey: ['contract-request', 'fetchCP_CLAIMED_BASE_TOKEN_', chainId, __to, __input1],
85
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
86
+ queryFn: () => {
87
+ return fetchCP_CLAIMED_BASE_TOKEN_(chainId as number,__to as string,__input1 as string);
88
+ }
89
+ }
90
+ }
91
+
92
+ /**
93
+ * fetch _CLAIMED_QUOTE_
72
94
  * @param {number} chainId - number
73
95
  * @param {string} __to - string
74
96
  * @param {string} __input1 - address
75
97
  * @returns {boolean} __output0 - bool
76
98
  */
77
- export function fetchCP_CLAIMED_(chainId: number, __to: string, __input1: string): Promise<boolean> {
99
+ export function fetchCP_CLAIMED_QUOTE_(chainId: number, __to: string, __input1: string): Promise<boolean> {
78
100
  const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
79
- const __data = hexlify(concat(['0x68be20ad', __encodeData]));
101
+ const __data = hexlify(concat(['0xacc4f49d', __encodeData]));
80
102
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
81
103
  }
82
- export function getFetchCP_CLAIMED_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
104
+ export function getFetchCP_CLAIMED_QUOTE_QueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined) {
83
105
  return {
84
- queryKey: ['contract-request', 'fetchCP_CLAIMED_', chainId, __to, __input1],
106
+ queryKey: ['contract-request', 'fetchCP_CLAIMED_QUOTE_', chainId, __to, __input1],
85
107
  enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && __input1 !== undefined && __input1 !== null,
86
108
  queryFn: () => {
87
- return fetchCP_CLAIMED_(chainId as number,__to as string,__input1 as string);
109
+ return fetchCP_CLAIMED_QUOTE_(chainId as number,__to as string,__input1 as string);
88
110
  }
89
111
  }
90
112
  }
@@ -110,6 +132,27 @@ export function getFetchCP_CLIFF_RATE_QueryOptions(chainId: number | undefined,
110
132
  }
111
133
  }
112
134
 
135
+ /**
136
+ * fetch _FORCE_STOP_
137
+ * @param {number} chainId - number
138
+ * @param {string} __to - string
139
+ * @returns {boolean} __output0 - bool
140
+ */
141
+ export function fetchCP_FORCE_STOP_(chainId: number, __to: string): Promise<boolean> {
142
+ const __encodeData = defaultAbiCoder.encode([], []);
143
+ const __data = hexlify(concat(['0x9f91fa62', __encodeData]));
144
+ return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
145
+ }
146
+ export function getFetchCP_FORCE_STOP_QueryOptions(chainId: number | undefined, __to: string | undefined) {
147
+ return {
148
+ queryKey: ['contract-request', 'fetchCP_FORCE_STOP_', chainId, __to],
149
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
150
+ queryFn: () => {
151
+ return fetchCP_FORCE_STOP_(chainId as number,__to as string);
152
+ }
153
+ }
154
+ }
155
+
113
156
  /**
114
157
  * fetch _FREEZE_DURATION_
115
158
  * @param {number} chainId - number
@@ -152,6 +195,27 @@ export function getFetchCP_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined
152
195
  }
153
196
  }
154
197
 
198
+ /**
199
+ * fetch _IS_OVERCAP_STOP
200
+ * @param {number} chainId - number
201
+ * @param {string} __to - string
202
+ * @returns {boolean} __output0 - bool
203
+ */
204
+ export function fetchCP_IS_OVERCAP_STOP(chainId: number, __to: string): Promise<boolean> {
205
+ const __encodeData = defaultAbiCoder.encode([], []);
206
+ const __data = hexlify(concat(['0x747e7fda', __encodeData]));
207
+ return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
208
+ }
209
+ export function getFetchCP_IS_OVERCAP_STOPQueryOptions(chainId: number | undefined, __to: string | undefined) {
210
+ return {
211
+ queryKey: ['contract-request', 'fetchCP_IS_OVERCAP_STOP', chainId, __to],
212
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
213
+ queryFn: () => {
214
+ return fetchCP_IS_OVERCAP_STOP(chainId as number,__to as string);
215
+ }
216
+ }
217
+ }
218
+
155
219
  /**
156
220
  * fetch _I_
157
221
  * @param {number} chainId - number
@@ -383,6 +447,27 @@ export function getFetchCP_POOL_FACTORY_QueryOptions(chainId: number | undefined
383
447
  }
384
448
  }
385
449
 
450
+ /**
451
+ * fetch _POOL_FEE_RATE_
452
+ * @param {number} chainId - number
453
+ * @param {string} __to - string
454
+ * @returns {bigint} __output0 - uint256
455
+ */
456
+ export function fetchCP_POOL_FEE_RATE_(chainId: number, __to: string): Promise<bigint> {
457
+ const __encodeData = defaultAbiCoder.encode([], []);
458
+ const __data = hexlify(concat(['0xc548b575', __encodeData]));
459
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
460
+ }
461
+ export function getFetchCP_POOL_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
462
+ return {
463
+ queryKey: ['contract-request', 'fetchCP_POOL_FEE_RATE_', chainId, __to],
464
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
465
+ queryFn: () => {
466
+ return fetchCP_POOL_FEE_RATE_(chainId as number,__to as string);
467
+ }
468
+ }
469
+ }
470
+
386
471
  /**
387
472
  * fetch _POOL_QUOTE_CAP_
388
473
  * @param {number} chainId - number
@@ -488,6 +573,69 @@ export function getFetchCP_SETTLED_TIME_QueryOptions(chainId: number | undefined
488
573
  }
489
574
  }
490
575
 
576
+ /**
577
+ * fetch _TOKEN_CLAIM_DURATION_
578
+ * @param {number} chainId - number
579
+ * @param {string} __to - string
580
+ * @returns {bigint} __output0 - uint256
581
+ */
582
+ export function fetchCP_TOKEN_CLAIM_DURATION_(chainId: number, __to: string): Promise<bigint> {
583
+ const __encodeData = defaultAbiCoder.encode([], []);
584
+ const __data = hexlify(concat(['0xdc208dcc', __encodeData]));
585
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
586
+ }
587
+ export function getFetchCP_TOKEN_CLAIM_DURATION_QueryOptions(chainId: number | undefined, __to: string | undefined) {
588
+ return {
589
+ queryKey: ['contract-request', 'fetchCP_TOKEN_CLAIM_DURATION_', chainId, __to],
590
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
591
+ queryFn: () => {
592
+ return fetchCP_TOKEN_CLAIM_DURATION_(chainId as number,__to as string);
593
+ }
594
+ }
595
+ }
596
+
597
+ /**
598
+ * fetch _TOKEN_CLIFF_RATE_
599
+ * @param {number} chainId - number
600
+ * @param {string} __to - string
601
+ * @returns {bigint} __output0 - uint256
602
+ */
603
+ export function fetchCP_TOKEN_CLIFF_RATE_(chainId: number, __to: string): Promise<bigint> {
604
+ const __encodeData = defaultAbiCoder.encode([], []);
605
+ const __data = hexlify(concat(['0x1616a237', __encodeData]));
606
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
607
+ }
608
+ export function getFetchCP_TOKEN_CLIFF_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
609
+ return {
610
+ queryKey: ['contract-request', 'fetchCP_TOKEN_CLIFF_RATE_', chainId, __to],
611
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
612
+ queryFn: () => {
613
+ return fetchCP_TOKEN_CLIFF_RATE_(chainId as number,__to as string);
614
+ }
615
+ }
616
+ }
617
+
618
+ /**
619
+ * fetch _TOKEN_VESTING_DURATION_
620
+ * @param {number} chainId - number
621
+ * @param {string} __to - string
622
+ * @returns {bigint} __output0 - uint256
623
+ */
624
+ export function fetchCP_TOKEN_VESTING_DURATION_(chainId: number, __to: string): Promise<bigint> {
625
+ const __encodeData = defaultAbiCoder.encode([], []);
626
+ const __data = hexlify(concat(['0x2a33186e', __encodeData]));
627
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
628
+ }
629
+ export function getFetchCP_TOKEN_VESTING_DURATION_QueryOptions(chainId: number | undefined, __to: string | undefined) {
630
+ return {
631
+ queryKey: ['contract-request', 'fetchCP_TOKEN_VESTING_DURATION_', chainId, __to],
632
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
633
+ queryFn: () => {
634
+ return fetchCP_TOKEN_VESTING_DURATION_(chainId as number,__to as string);
635
+ }
636
+ }
637
+ }
638
+
491
639
  /**
492
640
  * fetch _TOTAL_BASE_
493
641
  * @param {number} chainId - number
@@ -614,6 +762,28 @@ export function getFetchCP_VESTING_DURATION_QueryOptions(chainId: number | undef
614
762
  }
615
763
  }
616
764
 
765
+ /**
766
+ * fetch getClaimableBaseToken
767
+ * @param {number} chainId - number
768
+ * @param {string} __to - string
769
+ * @param {string} user - address
770
+ * @returns {bigint} __output0 - uint256
771
+ */
772
+ export function fetchCPGetClaimableBaseToken(chainId: number, __to: string, user: string): Promise<bigint> {
773
+ const __encodeData = defaultAbiCoder.encode(["address"], [user]);
774
+ const __data = hexlify(concat(['0x89042f37', __encodeData]));
775
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
776
+ }
777
+ export function getFetchCPGetClaimableBaseTokenQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined) {
778
+ return {
779
+ queryKey: ['contract-request', 'fetchCPGetClaimableBaseToken', chainId, __to, user],
780
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && user !== undefined && user !== null,
781
+ queryFn: () => {
782
+ return fetchCPGetClaimableBaseToken(chainId as number,__to as string,user as string);
783
+ }
784
+ }
785
+ }
786
+
617
787
  /**
618
788
  * fetch getClaimableLPToken
619
789
  * @param {number} chainId - number
@@ -635,6 +805,59 @@ export function getFetchCPGetClaimableLPTokenQueryOptions(chainId: number | unde
635
805
  }
636
806
  }
637
807
 
808
+ /**
809
+ * fetch getCpInfoHelper
810
+ * @param {number} chainId - number
811
+ * @param {string} __to - string
812
+ * @param {string} user - address
813
+ * @returns {boolean} isSettled - bool
814
+ * @returns {bigint} settledTime - uint256
815
+ * @returns {bigint} claimableBaseToken - uint256
816
+ * @returns {bigint} claimedBaseToken - uint256
817
+ * @returns {boolean} isClaimedQuoteToken - bool
818
+ * @returns {bigint} claimableQuoteToken - uint256
819
+ * @returns {string} pool - address
820
+ * @returns {bigint} claimableLpToken - uint256
821
+ * @returns {bigint} myShares - uint256
822
+ * @returns {boolean} isOverCapStop - bool
823
+ */
824
+ export function fetchCPGetCpInfoHelper(chainId: number, __to: string, user: string): Promise<{
825
+ isSettled: boolean;
826
+ settledTime: bigint;
827
+ claimableBaseToken: bigint;
828
+ claimedBaseToken: bigint;
829
+ isClaimedQuoteToken: boolean;
830
+ claimableQuoteToken: bigint;
831
+ pool: string;
832
+ claimableLpToken: bigint;
833
+ myShares: bigint;
834
+ isOverCapStop: boolean;
835
+ }> {
836
+ const __encodeData = defaultAbiCoder.encode(["address"], [user]);
837
+ const __data = hexlify(concat(['0xa0c5b889', __encodeData]));
838
+ return contractRequests.batchCall<{
839
+ isSettled: boolean;
840
+ settledTime: bigint;
841
+ claimableBaseToken: bigint;
842
+ claimedBaseToken: bigint;
843
+ isClaimedQuoteToken: boolean;
844
+ claimableQuoteToken: bigint;
845
+ pool: string;
846
+ claimableLpToken: bigint;
847
+ myShares: bigint;
848
+ isOverCapStop: boolean;
849
+ }>(chainId, __to, __data, [{"internalType":"bool","name":"isSettled","type":"bool"},{"internalType":"uint256","name":"settledTime","type":"uint256"},{"internalType":"uint256","name":"claimableBaseToken","type":"uint256"},{"internalType":"uint256","name":"claimedBaseToken","type":"uint256"},{"internalType":"bool","name":"isClaimedQuoteToken","type":"bool"},{"internalType":"uint256","name":"claimableQuoteToken","type":"uint256"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"claimableLpToken","type":"uint256"},{"internalType":"uint256","name":"myShares","type":"uint256"},{"internalType":"bool","name":"isOverCapStop","type":"bool"}])
850
+ }
851
+ export function getFetchCPGetCpInfoHelperQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined) {
852
+ return {
853
+ queryKey: ['contract-request', 'fetchCPGetCpInfoHelper', chainId, __to, user],
854
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && user !== undefined && user !== null,
855
+ queryFn: () => {
856
+ return fetchCPGetCpInfoHelper(chainId as number,__to as string,user as string);
857
+ }
858
+ }
859
+ }
860
+
638
861
  /**
639
862
  * fetch getExpectedAvgPrice
640
863
  * @param {number} chainId - number
@@ -656,6 +879,28 @@ export function getFetchCPGetExpectedAvgPriceQueryOptions(chainId: number | unde
656
879
  }
657
880
  }
658
881
 
882
+ /**
883
+ * fetch getRemainingBaseTokenRatio
884
+ * @param {number} chainId - number
885
+ * @param {string} __to - string
886
+ * @param {number} timestamp - uint256
887
+ * @returns {bigint} __output0 - uint256
888
+ */
889
+ export function fetchCPGetRemainingBaseTokenRatio(chainId: number, __to: string, timestamp: number): Promise<bigint> {
890
+ const __encodeData = defaultAbiCoder.encode(["uint256"], [timestamp]);
891
+ const __data = hexlify(concat(['0x69001fae', __encodeData]));
892
+ return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
893
+ }
894
+ export function getFetchCPGetRemainingBaseTokenRatioQueryOptions(chainId: number | undefined, __to: string | undefined, timestamp: number | undefined) {
895
+ return {
896
+ queryKey: ['contract-request', 'fetchCPGetRemainingBaseTokenRatio', chainId, __to, timestamp],
897
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null && timestamp !== undefined && timestamp !== null,
898
+ queryFn: () => {
899
+ return fetchCPGetRemainingBaseTokenRatio(chainId as number,__to as string,timestamp as number);
900
+ }
901
+ }
902
+ }
903
+
659
904
  /**
660
905
  * fetch getRemainingLPRatio
661
906
  * @param {number} chainId - number
@@ -737,6 +982,27 @@ export function getFetchCPGetSharesQueryOptions(chainId: number | undefined, __t
737
982
  }
738
983
  }
739
984
 
985
+ /**
986
+ * fetch version
987
+ * @param {number} chainId - number
988
+ * @param {string} __to - string
989
+ * @returns {string} __output0 - string
990
+ */
991
+ export function fetchCPVersion(chainId: number, __to: string): Promise<string> {
992
+ const __encodeData = defaultAbiCoder.encode([], []);
993
+ const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
994
+ return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
995
+ }
996
+ export function getFetchCPVersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
997
+ return {
998
+ queryKey: ['contract-request', 'fetchCPVersion', chainId, __to],
999
+ enabled: chainId !== undefined && chainId !== null && __to !== undefined && __to !== null,
1000
+ queryFn: () => {
1001
+ return fetchCPVersion(chainId as number,__to as string);
1002
+ }
1003
+ }
1004
+ }
1005
+
740
1006
  /**
741
1007
  * encode bid
742
1008
  * @param {string} to - address
@@ -800,17 +1066,27 @@ export function encodeCPEmergencySettle() {
800
1066
  return hexlify(concat(['0x06fe8766', __encodeData]));
801
1067
  }
802
1068
 
1069
+ /**
1070
+ * encode forceStop
1071
+
1072
+ * @returns {string} encode data
1073
+ */
1074
+ export function encodeCPForceStop() {
1075
+ const __encodeData = defaultAbiCoder.encode([], []);
1076
+ return hexlify(concat(['0xeaf36bc8', __encodeData]));
1077
+ }
1078
+
803
1079
  /**
804
1080
  * encode init
805
1081
  * @param {Array<string>} addressList - address[]
806
1082
  * @param {Array<string | number>} timeLine - uint256[]
807
1083
  * @param {Array<string | number>} valueList - uint256[]
808
- * @param {boolean} isOpenTWAP - bool
1084
+ * @param {Array<boolean>} switches - bool[]
809
1085
  * @returns {string} encode data
810
1086
  */
811
- export function encodeCPInit(addressList: Array<string>, timeLine: Array<string | number>, valueList: Array<string | number>, isOpenTWAP: boolean) {
812
- const __encodeData = defaultAbiCoder.encode(["address[]","uint256[]","uint256[]","bool"], [addressList,timeLine,valueList,isOpenTWAP]);
813
- return hexlify(concat(['0x83ba7866', __encodeData]));
1087
+ export function encodeCPInit(addressList: Array<string>, timeLine: Array<string | number>, valueList: Array<string | number>, switches: Array<boolean>) {
1088
+ const __encodeData = defaultAbiCoder.encode(["address[]","uint256[]","uint256[]","bool[]"], [addressList,timeLine,valueList,switches]);
1089
+ return hexlify(concat(['0x5167c543', __encodeData]));
814
1090
  }
815
1091
 
816
1092
  /**