@dodoex/dodo-contract-request 1.32.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/contract-info/CP.json +1 -1
- package/CHANGELOG.md +14 -0
- package/contract-config/eni.json +65 -0
- package/contract-config/eth.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/config/eni.d.ts +29 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/contract/AlgebraPool.d.ts +15 -15
- package/dist/types/contract/BuyoutModel.d.ts +6 -6
- package/dist/types/contract/CP.d.ts +187 -14
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +12 -12
- package/dist/types/contract/CustomERC20.d.ts +9 -9
- package/dist/types/contract/CustomMintableERC20.d.ts +11 -11
- package/dist/types/contract/D3Proxy.d.ts +9 -9
- package/dist/types/contract/D3Vault.d.ts +36 -36
- package/dist/types/contract/DODOApprove.d.ts +8 -8
- package/dist/types/contract/DODOApproveProxy.d.ts +9 -9
- package/dist/types/contract/DODOCalleeHelper.d.ts +4 -4
- package/dist/types/contract/DODOCirculationHelper.d.ts +5 -5
- package/dist/types/contract/DODOCpProxy.d.ts +2 -2
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +2 -2
- package/dist/types/contract/DODODppProxy.d.ts +2 -2
- package/dist/types/contract/DODODspProxy.d.ts +3 -3
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +2 -2
- package/dist/types/contract/DODOFeeRouteProxy1.d.ts +13 -13
- package/dist/types/contract/DODOFeeRouteProxy2.d.ts +13 -13
- package/dist/types/contract/DODOIncentive.d.ts +9 -9
- package/dist/types/contract/DODOMineV2Factory.d.ts +8 -8
- package/dist/types/contract/DODOMineV3Proxy.d.ts +7 -7
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +7 -7
- package/dist/types/contract/DODOMineV3Registry.d.ts +7 -7
- package/dist/types/contract/DODONFT.d.ts +11 -11
- package/dist/types/contract/DODONFT1155.d.ts +8 -8
- package/dist/types/contract/DODONFTApprove.d.ts +11 -11
- package/dist/types/contract/DODONFTPoolProxy.d.ts +14 -14
- package/dist/types/contract/DODONFTProxy.d.ts +12 -12
- package/dist/types/contract/DODONFTRegistry.d.ts +7 -7
- package/dist/types/contract/DODOStarterProxy.d.ts +1 -1
- package/dist/types/contract/DODOV1.d.ts +35 -35
- package/dist/types/contract/DODOV1Adapter.d.ts +2 -2
- package/dist/types/contract/DODOV1Proxy.d.ts +7 -7
- package/dist/types/contract/DODOV2Adapter.d.ts +2 -2
- package/dist/types/contract/DODOV2Proxy02.d.ts +19 -19
- package/dist/types/contract/DPPAdvanced.d.ts +10 -10
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +9 -9
- package/dist/types/contract/DPPFactory.d.ts +13 -13
- package/dist/types/contract/DSP.d.ts +11 -11
- package/dist/types/contract/DSPFactory.d.ts +7 -7
- package/dist/types/contract/DVM.d.ts +11 -11
- package/dist/types/contract/DVMFactory.d.ts +7 -7
- package/dist/types/contract/ERC20.d.ts +5 -5
- package/dist/types/contract/ERC20MineV2.d.ts +13 -13
- package/dist/types/contract/ERC20MineV3.d.ts +13 -13
- package/dist/types/contract/ERC20V3Factory.d.ts +11 -11
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +11 -11
- package/dist/types/contract/FeeRateModel.d.ts +4 -4
- package/dist/types/contract/GSP.d.ts +19 -19
- package/dist/types/contract/GSPFactory.d.ts +8 -8
- package/dist/types/contract/InitializableERC20.d.ts +4 -4
- package/dist/types/contract/LimitOrder.d.ts +11 -11
- package/dist/types/contract/LimitOrderBot.d.ts +9 -9
- package/dist/types/contract/LockedTokenVault.d.ts +9 -9
- package/dist/types/contract/MerkleDistributor.d.ts +1 -1
- package/dist/types/contract/Multicall.d.ts +1 -1
- package/dist/types/contract/MulticallWithValid.d.ts +1 -1
- package/dist/types/contract/NonfungiblePositionManager.d.ts +21 -21
- package/dist/types/contract/NonfungiblePositionManagerAlgebra.d.ts +24 -24
- package/dist/types/contract/PermissionManager.d.ts +9 -9
- package/dist/types/contract/UniswapV2Factory.d.ts +4 -4
- package/dist/types/contract/UniswapV2FactoryFixedFee.d.ts +3 -3
- package/dist/types/contract/UniswapV2Pair.d.ts +12 -12
- package/dist/types/contract/UniswapV2Router02.d.ts +17 -17
- package/dist/types/contract/UniswapV2Router02FixedFee.d.ts +17 -17
- package/dist/types/contract/UniswapV3Factory.d.ts +3 -3
- package/dist/types/contract/dodoTeam.d.ts +16 -16
- package/dist/types/contract/vDODOToken.d.ts +16 -16
- package/dist/types/contractRequests.d.ts +1 -1
- package/package.json +1 -1
- package/src/config/eni.ts +4 -0
- package/src/config/index.ts +5 -1
- package/src/contract/CP.ts +286 -10
- package/src/contract/CrowdPoolingFactory.ts +1 -1
- package/src/contract/DODOApprove.ts +1 -1
- package/src/contract/DODOApproveProxy.ts +1 -1
- package/src/contract/DODOCalleeHelper.ts +1 -1
- package/src/contract/DODOCpProxy.ts +1 -1
- package/src/contract/DODODppProxy.ts +1 -1
- package/src/contract/DODODspProxy.ts +1 -1
- package/src/contract/DODOFeeRouteProxy1.ts +1 -1
- package/src/contract/DODOFeeRouteProxy2.ts +1 -1
- package/src/contract/DODOMineV2Factory.ts +1 -1
- package/src/contract/DODOMineV3Proxy.ts +1 -1
- package/src/contract/DODOMineV3Registry.ts +1 -1
- package/src/contract/DODOSellHelper.ts +1 -1
- package/src/contract/DODOSwapCalcHelper.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV2Adapter.ts +1 -1
- package/src/contract/DODOV2Proxy02.ts +1 -1
- package/src/contract/DODOV2RouteHelper.ts +1 -1
- package/src/contract/DPPFactory.ts +1 -1
- package/src/contract/DSPFactory.ts +1 -1
- package/src/contract/DVMFactory.ts +1 -1
- package/src/contract/ERC20Helper.ts +1 -1
- package/src/contract/ERC20V3Factory.ts +1 -1
- package/src/contract/GSPFactory.ts +1 -1
- package/src/contract/Multicall.ts +1 -1
- package/src/contract/MulticallWithValid.ts +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const CONTRACT_CONFIG: {
|
|
2
|
+
Multicall: string;
|
|
3
|
+
MulticallWithValid: string;
|
|
4
|
+
DODOSellHelper: string;
|
|
5
|
+
DODOSwapCalcHelper: string;
|
|
6
|
+
ERC20Helper: string;
|
|
7
|
+
DODOCalleeHelper: string;
|
|
8
|
+
DODOV1PmmHelper: string;
|
|
9
|
+
DODOV2RouteHelper: string;
|
|
10
|
+
DVMFactory: string;
|
|
11
|
+
DSPFactory: string;
|
|
12
|
+
GSPFactory: string;
|
|
13
|
+
DPPFactory: string;
|
|
14
|
+
CrowdPoolingFactory: string;
|
|
15
|
+
ERC20V3Factory: string;
|
|
16
|
+
DODOMineV2Factory: string;
|
|
17
|
+
DODOMineV3Registry: string;
|
|
18
|
+
DODOApprove: string;
|
|
19
|
+
DODOApproveProxy: string;
|
|
20
|
+
DODOV2Adapter: string;
|
|
21
|
+
DODOV2Proxy02: string;
|
|
22
|
+
DODODspProxy: string;
|
|
23
|
+
DODOCpProxy: string;
|
|
24
|
+
DODODppProxy: string;
|
|
25
|
+
DODOMineV3Proxy: string;
|
|
26
|
+
DODOFeeRouteProxy1: string;
|
|
27
|
+
DODOFeeRouteProxy2: string;
|
|
28
|
+
};
|
|
29
|
+
export default CONTRACT_CONFIG;
|
|
@@ -14,6 +14,7 @@ export { default as bitlayer } from './bitlayer';
|
|
|
14
14
|
export { default as bob } from './bob';
|
|
15
15
|
export { default as bsc } from './bsc';
|
|
16
16
|
export { default as conflux } from './conflux';
|
|
17
|
+
export { default as eni } from './eni';
|
|
17
18
|
export { default as ethereum } from './ethereum';
|
|
18
19
|
export { default as hashkey } from './hashkey';
|
|
19
20
|
export { default as hemi } from './hemi';
|
|
@@ -58,6 +59,7 @@ export declare const multiCallAddressList: {
|
|
|
58
59
|
"137": string;
|
|
59
60
|
"143": string;
|
|
60
61
|
"146": string;
|
|
62
|
+
"173": string;
|
|
61
63
|
"177": string;
|
|
62
64
|
"196": string;
|
|
63
65
|
"480": string;
|
|
@@ -407,7 +407,7 @@ export declare function getFetchAlgebraPoolTotalFeeGrowth1TokenQueryOptions(chai
|
|
|
407
407
|
* @param {string} data - bytes
|
|
408
408
|
* @returns {string} encode data
|
|
409
409
|
*/
|
|
410
|
-
export declare function encodeAlgebraPoolBurn(bottomTick: string | number, topTick: string | number, amount: string | number, data: string):
|
|
410
|
+
export declare function encodeAlgebraPoolBurn(bottomTick: string | number, topTick: string | number, amount: string | number, data: string): any;
|
|
411
411
|
/**
|
|
412
412
|
* encode collect
|
|
413
413
|
* @param {string} recipient - address
|
|
@@ -417,7 +417,7 @@ export declare function encodeAlgebraPoolBurn(bottomTick: string | number, topTi
|
|
|
417
417
|
* @param {string | number} amount1Requested - uint128
|
|
418
418
|
* @returns {string} encode data
|
|
419
419
|
*/
|
|
420
|
-
export declare function encodeAlgebraPoolCollect(recipient: string, bottomTick: string | number, topTick: string | number, amount0Requested: string | number, amount1Requested: string | number):
|
|
420
|
+
export declare function encodeAlgebraPoolCollect(recipient: string, bottomTick: string | number, topTick: string | number, amount0Requested: string | number, amount1Requested: string | number): any;
|
|
421
421
|
/**
|
|
422
422
|
* encode flash
|
|
423
423
|
* @param {string} recipient - address
|
|
@@ -426,13 +426,13 @@ export declare function encodeAlgebraPoolCollect(recipient: string, bottomTick:
|
|
|
426
426
|
* @param {string} data - bytes
|
|
427
427
|
* @returns {string} encode data
|
|
428
428
|
*/
|
|
429
|
-
export declare function encodeAlgebraPoolFlash(recipient: string, amount0: string | number, amount1: string | number, data: string):
|
|
429
|
+
export declare function encodeAlgebraPoolFlash(recipient: string, amount0: string | number, amount1: string | number, data: string): any;
|
|
430
430
|
/**
|
|
431
431
|
* encode initialize
|
|
432
432
|
* @param {string | number} initialPrice - uint160
|
|
433
433
|
* @returns {string} encode data
|
|
434
434
|
*/
|
|
435
|
-
export declare function encodeAlgebraPoolInitialize(initialPrice: string | number):
|
|
435
|
+
export declare function encodeAlgebraPoolInitialize(initialPrice: string | number): any;
|
|
436
436
|
/**
|
|
437
437
|
* encode mint
|
|
438
438
|
* @param {string} leftoversRecipient - address
|
|
@@ -443,49 +443,49 @@ export declare function encodeAlgebraPoolInitialize(initialPrice: string | numbe
|
|
|
443
443
|
* @param {string} data - bytes
|
|
444
444
|
* @returns {string} encode data
|
|
445
445
|
*/
|
|
446
|
-
export declare function encodeAlgebraPoolMint(leftoversRecipient: string, recipient: string, bottomTick: string | number, topTick: string | number, liquidityDesired: string | number, data: string):
|
|
446
|
+
export declare function encodeAlgebraPoolMint(leftoversRecipient: string, recipient: string, bottomTick: string | number, topTick: string | number, liquidityDesired: string | number, data: string): any;
|
|
447
447
|
/**
|
|
448
448
|
* encode setCommunityFee
|
|
449
449
|
* @param {string | number} newCommunityFee - uint16
|
|
450
450
|
* @returns {string} encode data
|
|
451
451
|
*/
|
|
452
|
-
export declare function encodeAlgebraPoolSetCommunityFee(newCommunityFee: string | number):
|
|
452
|
+
export declare function encodeAlgebraPoolSetCommunityFee(newCommunityFee: string | number): any;
|
|
453
453
|
/**
|
|
454
454
|
* encode setCommunityVault
|
|
455
455
|
* @param {string} newCommunityVault - address
|
|
456
456
|
* @returns {string} encode data
|
|
457
457
|
*/
|
|
458
|
-
export declare function encodeAlgebraPoolSetCommunityVault(newCommunityVault: string):
|
|
458
|
+
export declare function encodeAlgebraPoolSetCommunityVault(newCommunityVault: string): any;
|
|
459
459
|
/**
|
|
460
460
|
* encode setFee
|
|
461
461
|
* @param {string | number} newFee - uint16
|
|
462
462
|
* @returns {string} encode data
|
|
463
463
|
*/
|
|
464
|
-
export declare function encodeAlgebraPoolSetFee(newFee: string | number):
|
|
464
|
+
export declare function encodeAlgebraPoolSetFee(newFee: string | number): any;
|
|
465
465
|
/**
|
|
466
466
|
* encode setPlugin
|
|
467
467
|
* @param {string} newPluginAddress - address
|
|
468
468
|
* @returns {string} encode data
|
|
469
469
|
*/
|
|
470
|
-
export declare function encodeAlgebraPoolSetPlugin(newPluginAddress: string):
|
|
470
|
+
export declare function encodeAlgebraPoolSetPlugin(newPluginAddress: string): any;
|
|
471
471
|
/**
|
|
472
472
|
* encode setPluginConfig
|
|
473
473
|
* @param {string | number} newConfig - uint8
|
|
474
474
|
* @returns {string} encode data
|
|
475
475
|
*/
|
|
476
|
-
export declare function encodeAlgebraPoolSetPluginConfig(newConfig: string | number):
|
|
476
|
+
export declare function encodeAlgebraPoolSetPluginConfig(newConfig: string | number): any;
|
|
477
477
|
/**
|
|
478
478
|
* encode setTickSpacing
|
|
479
479
|
* @param {string | number} newTickSpacing - int24
|
|
480
480
|
* @returns {string} encode data
|
|
481
481
|
*/
|
|
482
|
-
export declare function encodeAlgebraPoolSetTickSpacing(newTickSpacing: string | number):
|
|
482
|
+
export declare function encodeAlgebraPoolSetTickSpacing(newTickSpacing: string | number): any;
|
|
483
483
|
/**
|
|
484
484
|
* encode skim
|
|
485
485
|
|
|
486
486
|
* @returns {string} encode data
|
|
487
487
|
*/
|
|
488
|
-
export declare function encodeAlgebraPoolSkim():
|
|
488
|
+
export declare function encodeAlgebraPoolSkim(): any;
|
|
489
489
|
/**
|
|
490
490
|
* encode swap
|
|
491
491
|
* @param {string} recipient - address
|
|
@@ -495,7 +495,7 @@ export declare function encodeAlgebraPoolSkim(): string;
|
|
|
495
495
|
* @param {string} data - bytes
|
|
496
496
|
* @returns {string} encode data
|
|
497
497
|
*/
|
|
498
|
-
export declare function encodeAlgebraPoolSwap(recipient: string, zeroToOne: boolean, amountRequired: string | number, limitSqrtPrice: string | number, data: string):
|
|
498
|
+
export declare function encodeAlgebraPoolSwap(recipient: string, zeroToOne: boolean, amountRequired: string | number, limitSqrtPrice: string | number, data: string): any;
|
|
499
499
|
/**
|
|
500
500
|
* encode swapWithPaymentInAdvance
|
|
501
501
|
* @param {string} leftoversRecipient - address
|
|
@@ -506,10 +506,10 @@ export declare function encodeAlgebraPoolSwap(recipient: string, zeroToOne: bool
|
|
|
506
506
|
* @param {string} data - bytes
|
|
507
507
|
* @returns {string} encode data
|
|
508
508
|
*/
|
|
509
|
-
export declare function encodeAlgebraPoolSwapWithPaymentInAdvance(leftoversRecipient: string, recipient: string, zeroToOne: boolean, amountToSell: string | number, limitSqrtPrice: string | number, data: string):
|
|
509
|
+
export declare function encodeAlgebraPoolSwapWithPaymentInAdvance(leftoversRecipient: string, recipient: string, zeroToOne: boolean, amountToSell: string | number, limitSqrtPrice: string | number, data: string): any;
|
|
510
510
|
/**
|
|
511
511
|
* encode sync
|
|
512
512
|
|
|
513
513
|
* @returns {string} encode data
|
|
514
514
|
*/
|
|
515
|
-
export declare function encodeAlgebraPoolSync():
|
|
515
|
+
export declare function encodeAlgebraPoolSync(): any;
|
|
@@ -75,19 +75,19 @@ export declare function getFetchBuyoutModelGetBuyoutStatusQueryOptions(chainId:
|
|
|
75
75
|
* @param {string} buyoutAddr - address
|
|
76
76
|
* @returns {string} encode data
|
|
77
77
|
*/
|
|
78
|
-
export declare function encodeBuyoutModelAddFragInfo(fragAddr: string, minFrag: string | number, maxFrag: string | number, buyoutAddr: string):
|
|
78
|
+
export declare function encodeBuyoutModelAddFragInfo(fragAddr: string, minFrag: string | number, maxFrag: string | number, buyoutAddr: string): any;
|
|
79
79
|
/**
|
|
80
80
|
* encode claimOwnership
|
|
81
81
|
|
|
82
82
|
* @returns {string} encode data
|
|
83
83
|
*/
|
|
84
|
-
export declare function encodeBuyoutModelClaimOwnership():
|
|
84
|
+
export declare function encodeBuyoutModelClaimOwnership(): any;
|
|
85
85
|
/**
|
|
86
86
|
* encode initOwner
|
|
87
87
|
* @param {string} newOwner - address
|
|
88
88
|
* @returns {string} encode data
|
|
89
89
|
*/
|
|
90
|
-
export declare function encodeBuyoutModelInitOwner(newOwner: string):
|
|
90
|
+
export declare function encodeBuyoutModelInitOwner(newOwner: string): any;
|
|
91
91
|
/**
|
|
92
92
|
* encode setFragInfo
|
|
93
93
|
* @param {string} fragAddr - address
|
|
@@ -96,7 +96,7 @@ export declare function encodeBuyoutModelInitOwner(newOwner: string): string;
|
|
|
96
96
|
* @param {string} buyoutAddr - address
|
|
97
97
|
* @returns {string} encode data
|
|
98
98
|
*/
|
|
99
|
-
export declare function encodeBuyoutModelSetFragInfo(fragAddr: string, minFrag: string | number, maxFrag: string | number, buyoutAddr: string):
|
|
99
|
+
export declare function encodeBuyoutModelSetFragInfo(fragAddr: string, minFrag: string | number, maxFrag: string | number, buyoutAddr: string): any;
|
|
100
100
|
/**
|
|
101
101
|
* encode setGlobalParam
|
|
102
102
|
* @param {string | number} minFrag - uint256
|
|
@@ -104,10 +104,10 @@ export declare function encodeBuyoutModelSetFragInfo(fragAddr: string, minFrag:
|
|
|
104
104
|
* @param {string | number} buyoutFee - uint256
|
|
105
105
|
* @returns {string} encode data
|
|
106
106
|
*/
|
|
107
|
-
export declare function encodeBuyoutModelSetGlobalParam(minFrag: string | number, maxFrag: string | number, buyoutFee: string | number):
|
|
107
|
+
export declare function encodeBuyoutModelSetGlobalParam(minFrag: string | number, maxFrag: string | number, buyoutFee: string | number): any;
|
|
108
108
|
/**
|
|
109
109
|
* encode transferOwnership
|
|
110
110
|
* @param {string} newOwner - address
|
|
111
111
|
* @returns {string} encode data
|
|
112
112
|
*/
|
|
113
|
-
export declare function encodeBuyoutModelTransferOwnership(newOwner: string):
|
|
113
|
+
export declare function encodeBuyoutModelTransferOwnership(newOwner: string): any;
|
|
@@ -35,14 +35,27 @@ export declare function getFetchCP_BIDDER_PERMISSION_QueryOptions(chainId: numbe
|
|
|
35
35
|
queryFn: () => Promise<string>;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
|
-
* fetch
|
|
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
|
|
45
|
-
export declare function
|
|
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,19 +580,31 @@ 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
|
|
431
598
|
* @returns {string} encode data
|
|
432
599
|
*/
|
|
433
|
-
export declare function encodeCPBid(to: string):
|
|
600
|
+
export declare function encodeCPBid(to: string): any;
|
|
434
601
|
/**
|
|
435
602
|
* encode bidderClaim
|
|
436
603
|
* @param {string} to - address
|
|
437
604
|
* @param {string} data - bytes
|
|
438
605
|
* @returns {string} encode data
|
|
439
606
|
*/
|
|
440
|
-
export declare function encodeCPBidderClaim(to: string, data: string):
|
|
607
|
+
export declare function encodeCPBidderClaim(to: string, data: string): any;
|
|
441
608
|
/**
|
|
442
609
|
* encode cancel
|
|
443
610
|
* @param {string} to - address
|
|
@@ -445,49 +612,55 @@ export declare function encodeCPBidderClaim(to: string, data: string): string;
|
|
|
445
612
|
* @param {string} data - bytes
|
|
446
613
|
* @returns {string} encode data
|
|
447
614
|
*/
|
|
448
|
-
export declare function encodeCPCancel(to: string, amount: string | number, data: string):
|
|
615
|
+
export declare function encodeCPCancel(to: string, amount: string | number, data: string): any;
|
|
449
616
|
/**
|
|
450
617
|
* encode claimLPToken
|
|
451
618
|
|
|
452
619
|
* @returns {string} encode data
|
|
453
620
|
*/
|
|
454
|
-
export declare function encodeCPClaimLPToken():
|
|
621
|
+
export declare function encodeCPClaimLPToken(): any;
|
|
455
622
|
/**
|
|
456
623
|
* encode claimOwnership
|
|
457
624
|
|
|
458
625
|
* @returns {string} encode data
|
|
459
626
|
*/
|
|
460
|
-
export declare function encodeCPClaimOwnership():
|
|
627
|
+
export declare function encodeCPClaimOwnership(): any;
|
|
461
628
|
/**
|
|
462
629
|
* encode emergencySettle
|
|
463
630
|
|
|
464
631
|
* @returns {string} encode data
|
|
465
632
|
*/
|
|
466
|
-
export declare function encodeCPEmergencySettle():
|
|
633
|
+
export declare function encodeCPEmergencySettle(): any;
|
|
634
|
+
/**
|
|
635
|
+
* encode forceStop
|
|
636
|
+
|
|
637
|
+
* @returns {string} encode data
|
|
638
|
+
*/
|
|
639
|
+
export declare function encodeCPForceStop(): any;
|
|
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}
|
|
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>,
|
|
648
|
+
export declare function encodeCPInit(addressList: Array<string>, timeLine: Array<string | number>, valueList: Array<string | number>, switches: Array<boolean>): any;
|
|
476
649
|
/**
|
|
477
650
|
* encode initOwner
|
|
478
651
|
* @param {string} newOwner - address
|
|
479
652
|
* @returns {string} encode data
|
|
480
653
|
*/
|
|
481
|
-
export declare function encodeCPInitOwner(newOwner: string):
|
|
654
|
+
export declare function encodeCPInitOwner(newOwner: string): any;
|
|
482
655
|
/**
|
|
483
656
|
* encode settle
|
|
484
657
|
|
|
485
658
|
* @returns {string} encode data
|
|
486
659
|
*/
|
|
487
|
-
export declare function encodeCPSettle():
|
|
660
|
+
export declare function encodeCPSettle(): any;
|
|
488
661
|
/**
|
|
489
662
|
* encode transferOwnership
|
|
490
663
|
* @param {string} newOwner - address
|
|
491
664
|
* @returns {string} encode data
|
|
492
665
|
*/
|
|
493
|
-
export declare function encodeCPTransferOwnership(newOwner: string):
|
|
666
|
+
export declare function encodeCPTransferOwnership(newOwner: string): any;
|
|
@@ -230,13 +230,13 @@ export declare function getFetchCrowdPoolingFactoryGetCrowdPoolingByUserQueryOpt
|
|
|
230
230
|
|
|
231
231
|
* @returns {string} encode data
|
|
232
232
|
*/
|
|
233
|
-
export declare function encodeCrowdPoolingFactoryClaimOwnership():
|
|
233
|
+
export declare function encodeCrowdPoolingFactoryClaimOwnership(): any;
|
|
234
234
|
/**
|
|
235
235
|
* encode createCrowdPooling
|
|
236
236
|
|
|
237
237
|
* @returns {string} encode data
|
|
238
238
|
*/
|
|
239
|
-
export declare function encodeCrowdPoolingFactoryCreateCrowdPooling():
|
|
239
|
+
export declare function encodeCrowdPoolingFactoryCreateCrowdPooling(): any;
|
|
240
240
|
/**
|
|
241
241
|
* encode initCrowdPooling
|
|
242
242
|
* @param {string} cpAddress - address
|
|
@@ -248,58 +248,58 @@ export declare function encodeCrowdPoolingFactoryCreateCrowdPooling(): string;
|
|
|
248
248
|
* @param {boolean} isOpenTWAP - bool
|
|
249
249
|
* @returns {string} encode data
|
|
250
250
|
*/
|
|
251
|
-
export declare function encodeCrowdPoolingFactoryInitCrowdPooling(cpAddress: string, creator: string, baseToken: string, quoteToken: string, timeLine: Array<string | number>, valueList: Array<string | number>, isOpenTWAP: boolean):
|
|
251
|
+
export declare function encodeCrowdPoolingFactoryInitCrowdPooling(cpAddress: string, creator: string, baseToken: string, quoteToken: string, timeLine: Array<string | number>, valueList: Array<string | number>, isOpenTWAP: boolean): any;
|
|
252
252
|
/**
|
|
253
253
|
* encode initOwner
|
|
254
254
|
* @param {string} newOwner - address
|
|
255
255
|
* @returns {string} encode data
|
|
256
256
|
*/
|
|
257
|
-
export declare function encodeCrowdPoolingFactoryInitOwner(newOwner: string):
|
|
257
|
+
export declare function encodeCrowdPoolingFactoryInitOwner(newOwner: string): any;
|
|
258
258
|
/**
|
|
259
259
|
* encode setCalmDuration
|
|
260
260
|
* @param {string | number} _newCalmDuration - uint256
|
|
261
261
|
* @returns {string} encode data
|
|
262
262
|
*/
|
|
263
|
-
export declare function encodeCrowdPoolingFactorySetCalmDuration(_newCalmDuration: string | number):
|
|
263
|
+
export declare function encodeCrowdPoolingFactorySetCalmDuration(_newCalmDuration: string | number): any;
|
|
264
264
|
/**
|
|
265
265
|
* encode setCapRatio
|
|
266
266
|
* @param {string | number} _newCapRatio - uint256
|
|
267
267
|
* @returns {string} encode data
|
|
268
268
|
*/
|
|
269
|
-
export declare function encodeCrowdPoolingFactorySetCapRatio(_newCapRatio: string | number):
|
|
269
|
+
export declare function encodeCrowdPoolingFactorySetCapRatio(_newCapRatio: string | number): any;
|
|
270
270
|
/**
|
|
271
271
|
* encode setCliffRate
|
|
272
272
|
* @param {string | number} _newCliffRate - uint256
|
|
273
273
|
* @returns {string} encode data
|
|
274
274
|
*/
|
|
275
|
-
export declare function encodeCrowdPoolingFactorySetCliffRate(_newCliffRate: string | number):
|
|
275
|
+
export declare function encodeCrowdPoolingFactorySetCliffRate(_newCliffRate: string | number): any;
|
|
276
276
|
/**
|
|
277
277
|
* encode setFreezeDuration
|
|
278
278
|
* @param {string | number} _newFreeDuration - uint256
|
|
279
279
|
* @returns {string} encode data
|
|
280
280
|
*/
|
|
281
|
-
export declare function encodeCrowdPoolingFactorySetFreezeDuration(_newFreeDuration: string | number):
|
|
281
|
+
export declare function encodeCrowdPoolingFactorySetFreezeDuration(_newFreeDuration: string | number): any;
|
|
282
282
|
/**
|
|
283
283
|
* encode setK
|
|
284
284
|
* @param {string | number} _newK - uint256
|
|
285
285
|
* @returns {string} encode data
|
|
286
286
|
*/
|
|
287
|
-
export declare function encodeCrowdPoolingFactorySetK(_newK: string | number):
|
|
287
|
+
export declare function encodeCrowdPoolingFactorySetK(_newK: string | number): any;
|
|
288
288
|
/**
|
|
289
289
|
* encode setVestDuration
|
|
290
290
|
* @param {string | number} _newVestDuration - uint256
|
|
291
291
|
* @returns {string} encode data
|
|
292
292
|
*/
|
|
293
|
-
export declare function encodeCrowdPoolingFactorySetVestDuration(_newVestDuration: string | number):
|
|
293
|
+
export declare function encodeCrowdPoolingFactorySetVestDuration(_newVestDuration: string | number): any;
|
|
294
294
|
/**
|
|
295
295
|
* encode transferOwnership
|
|
296
296
|
* @param {string} newOwner - address
|
|
297
297
|
* @returns {string} encode data
|
|
298
298
|
*/
|
|
299
|
-
export declare function encodeCrowdPoolingFactoryTransferOwnership(newOwner: string):
|
|
299
|
+
export declare function encodeCrowdPoolingFactoryTransferOwnership(newOwner: string): any;
|
|
300
300
|
/**
|
|
301
301
|
* encode updateCPTemplate
|
|
302
302
|
* @param {string} _newCPTemplate - address
|
|
303
303
|
* @returns {string} encode data
|
|
304
304
|
*/
|
|
305
|
-
export declare function encodeCrowdPoolingFactoryUpdateCPTemplate(_newCPTemplate: string):
|
|
305
|
+
export declare function encodeCrowdPoolingFactoryUpdateCPTemplate(_newCPTemplate: string): any;
|