@dodoex/dodo-contract-request 1.34.0 → 1.35.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/contract-info/DFTManager.json +2832 -0
- package/.cache/contract-info/ICHIVault.json +787 -0
- package/.cache/contract-info/RWAManager.json +1 -0
- package/.cache/contract-info/RWAToken.json +1 -0
- package/.cache/contract-info/TransparentUpgradeableProxyWithPros.json +2006 -0
- package/CHANGELOG.md +85 -21
- package/contract-config/arbitrum.json +1 -1
- package/contract-config/berachain.json +4 -2
- package/contract-config/birdlayer.json +66 -0
- package/contract-config/pharos-atlantic-testnet.json +2 -1
- package/contract-config/pharos.json +69 -0
- package/contract-config/rise.json +67 -0
- package/contract-config/sepolia.json +3 -1
- package/contract-config/zetachain-testnet.json +68 -0
- package/contract-config/zetachain.json +61 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/config/birdlayer.d.ts +29 -0
- package/dist/types/config/index.d.ts +10 -0
- package/dist/types/config/pharos-atlantic-testnet.d.ts +1 -0
- package/dist/types/config/pharos.d.ts +33 -0
- package/dist/types/config/rise.d.ts +33 -0
- package/dist/types/config/sepolia.d.ts +2 -0
- package/dist/types/config/zetachain-testnet.d.ts +32 -0
- package/dist/types/config/zetachain.d.ts +30 -0
- package/dist/types/contract/DFTManager.d.ts +994 -0
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +30 -21
- package/dist/types/contract/ICHIVault.d.ts +516 -0
- package/dist/types/contract/RWAManager.d.ts +264 -0
- package/dist/types/contract/RWAToken.d.ts +179 -0
- package/dist/types/contract/TransparentUpgradeableProxyWithPros.d.ts +679 -0
- package/dist/types/index.d.ts +5 -0
- package/package.json +1 -1
- package/scripts/contract-generate.ts +1 -0
- package/src/config/birdlayer.ts +4 -0
- package/src/config/index.ts +21 -1
- package/src/config/pharos-atlantic-testnet.ts +1 -1
- package/src/config/pharos.ts +4 -0
- package/src/config/rise.ts +4 -0
- package/src/config/sepolia.ts +1 -1
- package/src/config/zetachain-testnet.ts +4 -0
- package/src/config/zetachain.ts +4 -0
- package/src/contract/CrowdPoolingFactory.ts +1 -1
- package/src/contract/DFTManager.ts +1222 -0
- 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/DODODspProxyWithoutGSP.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/FeeRateDIP3Impl.ts +61 -75
- package/src/contract/GSPFactory.ts +1 -1
- package/src/contract/ICHIVault.ts +863 -0
- package/src/contract/Multicall.ts +1 -1
- package/src/contract/MulticallWithValid.ts +1 -1
- package/src/contract/NonfungiblePositionManager.ts +1 -1
- package/src/contract/RWAManager.ts +479 -0
- package/src/contract/RWAToken.ts +330 -0
- package/src/contract/TransparentUpgradeableProxyWithPros.ts +1226 -0
- package/src/contract/UniswapV2Factory.ts +1 -1
- package/src/contract/UniswapV2Router02.ts +1 -1
- package/src/contract/UniswapV3Factory.ts +1 -1
- package/src/index.ts +5 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare function getFeeRateDIP3ImplContractAddressByChainId(chainId: number): string;
|
|
2
1
|
/**
|
|
3
2
|
* fetch _LP_MT_RATIO_
|
|
4
3
|
* @param {number} chainId - number
|
|
4
|
+
* @param {string} __to - string
|
|
5
5
|
* @returns {bigint} __output0 - uint256
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId: number): Promise<bigint>;
|
|
8
|
-
export declare function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId: number | undefined): {
|
|
7
|
+
export declare function fetchFeeRateDIP3Impl_LP_MT_RATIO_(chainId: number, __to: string): Promise<bigint>;
|
|
8
|
+
export declare function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
9
9
|
queryKey: (string | number | undefined)[];
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
queryFn: () => Promise<bigint>;
|
|
@@ -13,10 +13,11 @@ export declare function getFetchFeeRateDIP3Impl_LP_MT_RATIO_QueryOptions(chainId
|
|
|
13
13
|
/**
|
|
14
14
|
* fetch _NEW_OWNER_
|
|
15
15
|
* @param {number} chainId - number
|
|
16
|
+
* @param {string} __to - string
|
|
16
17
|
* @returns {string} __output0 - address
|
|
17
18
|
*/
|
|
18
|
-
export declare function fetchFeeRateDIP3Impl_NEW_OWNER_(chainId: number): Promise<string>;
|
|
19
|
-
export declare function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId: number | undefined): {
|
|
19
|
+
export declare function fetchFeeRateDIP3Impl_NEW_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
20
|
+
export declare function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
20
21
|
queryKey: (string | number | undefined)[];
|
|
21
22
|
enabled: boolean;
|
|
22
23
|
queryFn: () => Promise<string>;
|
|
@@ -24,10 +25,11 @@ export declare function getFetchFeeRateDIP3Impl_NEW_OWNER_QueryOptions(chainId:
|
|
|
24
25
|
/**
|
|
25
26
|
* fetch _OWNER_
|
|
26
27
|
* @param {number} chainId - number
|
|
28
|
+
* @param {string} __to - string
|
|
27
29
|
* @returns {string} __output0 - address
|
|
28
30
|
*/
|
|
29
|
-
export declare function fetchFeeRateDIP3Impl_OWNER_(chainId: number): Promise<string>;
|
|
30
|
-
export declare function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: number | undefined): {
|
|
31
|
+
export declare function fetchFeeRateDIP3Impl_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
32
|
+
export declare function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
31
33
|
queryKey: (string | number | undefined)[];
|
|
32
34
|
enabled: boolean;
|
|
33
35
|
queryFn: () => Promise<string>;
|
|
@@ -35,19 +37,20 @@ export declare function getFetchFeeRateDIP3Impl_OWNER_QueryOptions(chainId: numb
|
|
|
35
37
|
/**
|
|
36
38
|
* fetch cpPools
|
|
37
39
|
* @param {number} chainId - number
|
|
40
|
+
* @param {string} __to - string
|
|
38
41
|
* @param {string} __input1 - address
|
|
39
42
|
* @returns {string} quoteToken - address
|
|
40
43
|
* @returns {bigint} globalQuota - int256
|
|
41
44
|
* @returns {string} feeAddr - address
|
|
42
45
|
* @returns {string} quotaAddr - address
|
|
43
46
|
*/
|
|
44
|
-
export declare function fetchFeeRateDIP3ImplCpPools(chainId: number, __input1: string): Promise<{
|
|
47
|
+
export declare function fetchFeeRateDIP3ImplCpPools(chainId: number, __to: string, __input1: string): Promise<{
|
|
45
48
|
quoteToken: string;
|
|
46
49
|
globalQuota: bigint;
|
|
47
50
|
feeAddr: string;
|
|
48
51
|
quotaAddr: string;
|
|
49
52
|
}>;
|
|
50
|
-
export declare function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
53
|
+
export declare function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
51
54
|
queryKey: (string | number | undefined)[];
|
|
52
55
|
enabled: boolean;
|
|
53
56
|
queryFn: () => Promise<{
|
|
@@ -60,18 +63,19 @@ export declare function getFetchFeeRateDIP3ImplCpPoolsQueryOptions(chainId: numb
|
|
|
60
63
|
/**
|
|
61
64
|
* fetch getCPInfoByUser
|
|
62
65
|
* @param {number} chainId - number
|
|
66
|
+
* @param {string} __to - string
|
|
63
67
|
* @param {string} pool - address
|
|
64
68
|
* @param {string} user - address
|
|
65
69
|
* @returns {boolean} isHaveCap - bool
|
|
66
70
|
* @returns {bigint} curQuota - int256
|
|
67
71
|
* @returns {bigint} userFee - uint256
|
|
68
72
|
*/
|
|
69
|
-
export declare function fetchFeeRateDIP3ImplGetCPInfoByUser(chainId: number, pool: string, user: string): Promise<{
|
|
73
|
+
export declare function fetchFeeRateDIP3ImplGetCPInfoByUser(chainId: number, __to: string, pool: string, user: string): Promise<{
|
|
70
74
|
isHaveCap: boolean;
|
|
71
75
|
curQuota: bigint;
|
|
72
76
|
userFee: bigint;
|
|
73
77
|
}>;
|
|
74
|
-
export declare function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chainId: number | undefined, pool: string | undefined, user: string | undefined): {
|
|
78
|
+
export declare function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chainId: number | undefined, __to: string | undefined, pool: string | undefined, user: string | undefined): {
|
|
75
79
|
queryKey: (string | number | undefined)[];
|
|
76
80
|
enabled: boolean;
|
|
77
81
|
queryFn: () => Promise<{
|
|
@@ -83,12 +87,13 @@ export declare function getFetchFeeRateDIP3ImplGetCPInfoByUserQueryOptions(chain
|
|
|
83
87
|
/**
|
|
84
88
|
* fetch getFeeRate
|
|
85
89
|
* @param {number} chainId - number
|
|
90
|
+
* @param {string} __to - string
|
|
86
91
|
* @param {string} pool - address
|
|
87
92
|
* @param {string} user - address
|
|
88
93
|
* @returns {bigint} __output0 - uint256
|
|
89
94
|
*/
|
|
90
|
-
export declare function fetchFeeRateDIP3ImplGetFeeRate(chainId: number, pool: string, user: string): Promise<bigint>;
|
|
91
|
-
export declare function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: number | undefined, pool: string | undefined, user: string | undefined): {
|
|
95
|
+
export declare function fetchFeeRateDIP3ImplGetFeeRate(chainId: number, __to: string, pool: string, user: string): Promise<bigint>;
|
|
96
|
+
export declare function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, pool: string | undefined, user: string | undefined): {
|
|
92
97
|
queryKey: (string | number | undefined)[];
|
|
93
98
|
enabled: boolean;
|
|
94
99
|
queryFn: () => Promise<bigint>;
|
|
@@ -96,11 +101,12 @@ export declare function getFetchFeeRateDIP3ImplGetFeeRateQueryOptions(chainId: n
|
|
|
96
101
|
/**
|
|
97
102
|
* fetch isAdminListed
|
|
98
103
|
* @param {number} chainId - number
|
|
104
|
+
* @param {string} __to - string
|
|
99
105
|
* @param {string} __input1 - address
|
|
100
106
|
* @returns {boolean} __output0 - bool
|
|
101
107
|
*/
|
|
102
|
-
export declare function fetchFeeRateDIP3ImplIsAdminListed(chainId: number, __input1: string): Promise<boolean>;
|
|
103
|
-
export declare function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
108
|
+
export declare function fetchFeeRateDIP3ImplIsAdminListed(chainId: number, __to: string, __input1: string): Promise<boolean>;
|
|
109
|
+
export declare function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
104
110
|
queryKey: (string | number | undefined)[];
|
|
105
111
|
enabled: boolean;
|
|
106
112
|
queryFn: () => Promise<boolean>;
|
|
@@ -108,10 +114,11 @@ export declare function getFetchFeeRateDIP3ImplIsAdminListedQueryOptions(chainId
|
|
|
108
114
|
/**
|
|
109
115
|
* fetch poolHeartBeat
|
|
110
116
|
* @param {number} chainId - number
|
|
117
|
+
* @param {string} __to - string
|
|
111
118
|
* @returns {string} __output0 - address
|
|
112
119
|
*/
|
|
113
|
-
export declare function fetchFeeRateDIP3ImplPoolHeartBeat(chainId: number): Promise<string>;
|
|
114
|
-
export declare function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId: number | undefined): {
|
|
120
|
+
export declare function fetchFeeRateDIP3ImplPoolHeartBeat(chainId: number, __to: string): Promise<string>;
|
|
121
|
+
export declare function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
115
122
|
queryKey: (string | number | undefined)[];
|
|
116
123
|
enabled: boolean;
|
|
117
124
|
queryFn: () => Promise<string>;
|
|
@@ -119,11 +126,12 @@ export declare function getFetchFeeRateDIP3ImplPoolHeartBeatQueryOptions(chainId
|
|
|
119
126
|
/**
|
|
120
127
|
* fetch specPoolList
|
|
121
128
|
* @param {number} chainId - number
|
|
129
|
+
* @param {string} __to - string
|
|
122
130
|
* @param {string} __input1 - address
|
|
123
131
|
* @returns {bigint} __output0 - uint256
|
|
124
132
|
*/
|
|
125
|
-
export declare function fetchFeeRateDIP3ImplSpecPoolList(chainId: number, __input1: string): Promise<bigint>;
|
|
126
|
-
export declare function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId: number | undefined, __input1: string | undefined): {
|
|
133
|
+
export declare function fetchFeeRateDIP3ImplSpecPoolList(chainId: number, __to: string, __input1: string): Promise<bigint>;
|
|
134
|
+
export declare function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
127
135
|
queryKey: (string | number | undefined)[];
|
|
128
136
|
enabled: boolean;
|
|
129
137
|
queryFn: () => Promise<bigint>;
|
|
@@ -131,10 +139,11 @@ export declare function getFetchFeeRateDIP3ImplSpecPoolListQueryOptions(chainId:
|
|
|
131
139
|
/**
|
|
132
140
|
* fetch version
|
|
133
141
|
* @param {number} chainId - number
|
|
142
|
+
* @param {string} __to - string
|
|
134
143
|
* @returns {string} __output0 - string
|
|
135
144
|
*/
|
|
136
|
-
export declare function fetchFeeRateDIP3ImplVersion(chainId: number): Promise<string>;
|
|
137
|
-
export declare function getFetchFeeRateDIP3ImplVersionQueryOptions(chainId: number | undefined): {
|
|
145
|
+
export declare function fetchFeeRateDIP3ImplVersion(chainId: number, __to: string): Promise<string>;
|
|
146
|
+
export declare function getFetchFeeRateDIP3ImplVersionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
138
147
|
queryKey: (string | number | undefined)[];
|
|
139
148
|
enabled: boolean;
|
|
140
149
|
queryFn: () => Promise<string>;
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fetch PRECISION
|
|
3
|
+
* @param {number} chainId - number
|
|
4
|
+
* @param {string} __to - string
|
|
5
|
+
* @returns {bigint} __output0 - uint256
|
|
6
|
+
*/
|
|
7
|
+
export declare function fetchICHIVaultPRECISION(chainId: number, __to: string): Promise<bigint>;
|
|
8
|
+
export declare function getFetchICHIVaultPRECISIONQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
9
|
+
queryKey: (string | number | undefined)[];
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
queryFn: () => Promise<bigint>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* fetch affiliate
|
|
15
|
+
* @param {number} chainId - number
|
|
16
|
+
* @param {string} __to - string
|
|
17
|
+
* @returns {string} __output0 - address
|
|
18
|
+
*/
|
|
19
|
+
export declare function fetchICHIVaultAffiliate(chainId: number, __to: string): Promise<string>;
|
|
20
|
+
export declare function getFetchICHIVaultAffiliateQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
21
|
+
queryKey: (string | number | undefined)[];
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
queryFn: () => Promise<string>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* fetch allowToken0
|
|
27
|
+
* @param {number} chainId - number
|
|
28
|
+
* @param {string} __to - string
|
|
29
|
+
* @returns {boolean} __output0 - bool
|
|
30
|
+
*/
|
|
31
|
+
export declare function fetchICHIVaultAllowToken0(chainId: number, __to: string): Promise<boolean>;
|
|
32
|
+
export declare function getFetchICHIVaultAllowToken0QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
33
|
+
queryKey: (string | number | undefined)[];
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
queryFn: () => Promise<boolean>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* fetch allowToken1
|
|
39
|
+
* @param {number} chainId - number
|
|
40
|
+
* @param {string} __to - string
|
|
41
|
+
* @returns {boolean} __output0 - bool
|
|
42
|
+
*/
|
|
43
|
+
export declare function fetchICHIVaultAllowToken1(chainId: number, __to: string): Promise<boolean>;
|
|
44
|
+
export declare function getFetchICHIVaultAllowToken1QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
45
|
+
queryKey: (string | number | undefined)[];
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
queryFn: () => Promise<boolean>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* fetch allowance
|
|
51
|
+
* @param {number} chainId - number
|
|
52
|
+
* @param {string} __to - string
|
|
53
|
+
* @param {string} owner - address
|
|
54
|
+
* @param {string} spender - address
|
|
55
|
+
* @returns {bigint} __output0 - uint256
|
|
56
|
+
*/
|
|
57
|
+
export declare function fetchICHIVaultAllowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint>;
|
|
58
|
+
export declare function getFetchICHIVaultAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined): {
|
|
59
|
+
queryKey: (string | number | undefined)[];
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
queryFn: () => Promise<bigint>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* fetch ammFeeRecipient
|
|
65
|
+
* @param {number} chainId - number
|
|
66
|
+
* @param {string} __to - string
|
|
67
|
+
* @returns {string} __output0 - address
|
|
68
|
+
*/
|
|
69
|
+
export declare function fetchICHIVaultAmmFeeRecipient(chainId: number, __to: string): Promise<string>;
|
|
70
|
+
export declare function getFetchICHIVaultAmmFeeRecipientQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
71
|
+
queryKey: (string | number | undefined)[];
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
queryFn: () => Promise<string>;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* fetch balanceOf
|
|
77
|
+
* @param {number} chainId - number
|
|
78
|
+
* @param {string} __to - string
|
|
79
|
+
* @param {string} account - address
|
|
80
|
+
* @returns {bigint} __output0 - uint256
|
|
81
|
+
*/
|
|
82
|
+
export declare function fetchICHIVaultBalanceOf(chainId: number, __to: string, account: string): Promise<bigint>;
|
|
83
|
+
export declare function getFetchICHIVaultBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, account: string | undefined): {
|
|
84
|
+
queryKey: (string | number | undefined)[];
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
queryFn: () => Promise<bigint>;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* fetch baseLower
|
|
90
|
+
* @param {number} chainId - number
|
|
91
|
+
* @param {string} __to - string
|
|
92
|
+
* @returns {bigint} __output0 - int24
|
|
93
|
+
*/
|
|
94
|
+
export declare function fetchICHIVaultBaseLower(chainId: number, __to: string): Promise<bigint>;
|
|
95
|
+
export declare function getFetchICHIVaultBaseLowerQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
96
|
+
queryKey: (string | number | undefined)[];
|
|
97
|
+
enabled: boolean;
|
|
98
|
+
queryFn: () => Promise<bigint>;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* fetch baseUpper
|
|
102
|
+
* @param {number} chainId - number
|
|
103
|
+
* @param {string} __to - string
|
|
104
|
+
* @returns {bigint} __output0 - int24
|
|
105
|
+
*/
|
|
106
|
+
export declare function fetchICHIVaultBaseUpper(chainId: number, __to: string): Promise<bigint>;
|
|
107
|
+
export declare function getFetchICHIVaultBaseUpperQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
108
|
+
queryKey: (string | number | undefined)[];
|
|
109
|
+
enabled: boolean;
|
|
110
|
+
queryFn: () => Promise<bigint>;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* fetch currentTick
|
|
114
|
+
* @param {number} chainId - number
|
|
115
|
+
* @param {string} __to - string
|
|
116
|
+
* @returns {bigint} tick - int24
|
|
117
|
+
*/
|
|
118
|
+
export declare function fetchICHIVaultCurrentTick(chainId: number, __to: string): Promise<bigint>;
|
|
119
|
+
export declare function getFetchICHIVaultCurrentTickQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
120
|
+
queryKey: (string | number | undefined)[];
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
queryFn: () => Promise<bigint>;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* fetch decimals
|
|
126
|
+
* @param {number} chainId - number
|
|
127
|
+
* @param {string} __to - string
|
|
128
|
+
* @returns {bigint} __output0 - uint8
|
|
129
|
+
*/
|
|
130
|
+
export declare function fetchICHIVaultDecimals(chainId: number, __to: string): Promise<bigint>;
|
|
131
|
+
export declare function getFetchICHIVaultDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
132
|
+
queryKey: (string | number | undefined)[];
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
queryFn: () => Promise<bigint>;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* fetch deposit0Max
|
|
138
|
+
* @param {number} chainId - number
|
|
139
|
+
* @param {string} __to - string
|
|
140
|
+
* @returns {bigint} __output0 - uint256
|
|
141
|
+
*/
|
|
142
|
+
export declare function fetchICHIVaultDeposit0Max(chainId: number, __to: string): Promise<bigint>;
|
|
143
|
+
export declare function getFetchICHIVaultDeposit0MaxQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
144
|
+
queryKey: (string | number | undefined)[];
|
|
145
|
+
enabled: boolean;
|
|
146
|
+
queryFn: () => Promise<bigint>;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* fetch deposit1Max
|
|
150
|
+
* @param {number} chainId - number
|
|
151
|
+
* @param {string} __to - string
|
|
152
|
+
* @returns {bigint} __output0 - uint256
|
|
153
|
+
*/
|
|
154
|
+
export declare function fetchICHIVaultDeposit1Max(chainId: number, __to: string): Promise<bigint>;
|
|
155
|
+
export declare function getFetchICHIVaultDeposit1MaxQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
156
|
+
queryKey: (string | number | undefined)[];
|
|
157
|
+
enabled: boolean;
|
|
158
|
+
queryFn: () => Promise<bigint>;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* fetch fee
|
|
162
|
+
* @param {number} chainId - number
|
|
163
|
+
* @param {string} __to - string
|
|
164
|
+
* @returns {bigint} fee_ - uint24
|
|
165
|
+
*/
|
|
166
|
+
export declare function fetchICHIVaultFee(chainId: number, __to: string): Promise<bigint>;
|
|
167
|
+
export declare function getFetchICHIVaultFeeQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
168
|
+
queryKey: (string | number | undefined)[];
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
queryFn: () => Promise<bigint>;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* fetch getBasePosition
|
|
174
|
+
* @param {number} chainId - number
|
|
175
|
+
* @param {string} __to - string
|
|
176
|
+
* @returns {bigint} liquidity - uint128
|
|
177
|
+
* @returns {bigint} amount0 - uint256
|
|
178
|
+
* @returns {bigint} amount1 - uint256
|
|
179
|
+
*/
|
|
180
|
+
export declare function fetchICHIVaultGetBasePosition(chainId: number, __to: string): Promise<{
|
|
181
|
+
liquidity: bigint;
|
|
182
|
+
amount0: bigint;
|
|
183
|
+
amount1: bigint;
|
|
184
|
+
}>;
|
|
185
|
+
export declare function getFetchICHIVaultGetBasePositionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
186
|
+
queryKey: (string | number | undefined)[];
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
queryFn: () => Promise<{
|
|
189
|
+
liquidity: bigint;
|
|
190
|
+
amount0: bigint;
|
|
191
|
+
amount1: bigint;
|
|
192
|
+
}>;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* fetch getLimitPosition
|
|
196
|
+
* @param {number} chainId - number
|
|
197
|
+
* @param {string} __to - string
|
|
198
|
+
* @returns {bigint} liquidity - uint128
|
|
199
|
+
* @returns {bigint} amount0 - uint256
|
|
200
|
+
* @returns {bigint} amount1 - uint256
|
|
201
|
+
*/
|
|
202
|
+
export declare function fetchICHIVaultGetLimitPosition(chainId: number, __to: string): Promise<{
|
|
203
|
+
liquidity: bigint;
|
|
204
|
+
amount0: bigint;
|
|
205
|
+
amount1: bigint;
|
|
206
|
+
}>;
|
|
207
|
+
export declare function getFetchICHIVaultGetLimitPositionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
208
|
+
queryKey: (string | number | undefined)[];
|
|
209
|
+
enabled: boolean;
|
|
210
|
+
queryFn: () => Promise<{
|
|
211
|
+
liquidity: bigint;
|
|
212
|
+
amount0: bigint;
|
|
213
|
+
amount1: bigint;
|
|
214
|
+
}>;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* fetch getTotalAmounts
|
|
218
|
+
* @param {number} chainId - number
|
|
219
|
+
* @param {string} __to - string
|
|
220
|
+
* @returns {bigint} total0 - uint256
|
|
221
|
+
* @returns {bigint} total1 - uint256
|
|
222
|
+
*/
|
|
223
|
+
export declare function fetchICHIVaultGetTotalAmounts(chainId: number, __to: string): Promise<{
|
|
224
|
+
total0: bigint;
|
|
225
|
+
total1: bigint;
|
|
226
|
+
}>;
|
|
227
|
+
export declare function getFetchICHIVaultGetTotalAmountsQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
228
|
+
queryKey: (string | number | undefined)[];
|
|
229
|
+
enabled: boolean;
|
|
230
|
+
queryFn: () => Promise<{
|
|
231
|
+
total0: bigint;
|
|
232
|
+
total1: bigint;
|
|
233
|
+
}>;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* fetch hysteresis
|
|
237
|
+
* @param {number} chainId - number
|
|
238
|
+
* @param {string} __to - string
|
|
239
|
+
* @returns {bigint} __output0 - uint256
|
|
240
|
+
*/
|
|
241
|
+
export declare function fetchICHIVaultHysteresis(chainId: number, __to: string): Promise<bigint>;
|
|
242
|
+
export declare function getFetchICHIVaultHysteresisQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
243
|
+
queryKey: (string | number | undefined)[];
|
|
244
|
+
enabled: boolean;
|
|
245
|
+
queryFn: () => Promise<bigint>;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* fetch ichiVaultFactory
|
|
249
|
+
* @param {number} chainId - number
|
|
250
|
+
* @param {string} __to - string
|
|
251
|
+
* @returns {string} __output0 - address
|
|
252
|
+
*/
|
|
253
|
+
export declare function fetchICHIVaultIchiVaultFactory(chainId: number, __to: string): Promise<string>;
|
|
254
|
+
export declare function getFetchICHIVaultIchiVaultFactoryQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
255
|
+
queryKey: (string | number | undefined)[];
|
|
256
|
+
enabled: boolean;
|
|
257
|
+
queryFn: () => Promise<string>;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* fetch limitLower
|
|
261
|
+
* @param {number} chainId - number
|
|
262
|
+
* @param {string} __to - string
|
|
263
|
+
* @returns {bigint} __output0 - int24
|
|
264
|
+
*/
|
|
265
|
+
export declare function fetchICHIVaultLimitLower(chainId: number, __to: string): Promise<bigint>;
|
|
266
|
+
export declare function getFetchICHIVaultLimitLowerQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
267
|
+
queryKey: (string | number | undefined)[];
|
|
268
|
+
enabled: boolean;
|
|
269
|
+
queryFn: () => Promise<bigint>;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* fetch limitUpper
|
|
273
|
+
* @param {number} chainId - number
|
|
274
|
+
* @param {string} __to - string
|
|
275
|
+
* @returns {bigint} __output0 - int24
|
|
276
|
+
*/
|
|
277
|
+
export declare function fetchICHIVaultLimitUpper(chainId: number, __to: string): Promise<bigint>;
|
|
278
|
+
export declare function getFetchICHIVaultLimitUpperQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
279
|
+
queryKey: (string | number | undefined)[];
|
|
280
|
+
enabled: boolean;
|
|
281
|
+
queryFn: () => Promise<bigint>;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* fetch name
|
|
285
|
+
* @param {number} chainId - number
|
|
286
|
+
* @param {string} __to - string
|
|
287
|
+
* @returns {string} __output0 - string
|
|
288
|
+
*/
|
|
289
|
+
export declare function fetchICHIVaultName(chainId: number, __to: string): Promise<string>;
|
|
290
|
+
export declare function getFetchICHIVaultNameQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
291
|
+
queryKey: (string | number | undefined)[];
|
|
292
|
+
enabled: boolean;
|
|
293
|
+
queryFn: () => Promise<string>;
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* fetch owner
|
|
297
|
+
* @param {number} chainId - number
|
|
298
|
+
* @param {string} __to - string
|
|
299
|
+
* @returns {string} __output0 - address
|
|
300
|
+
*/
|
|
301
|
+
export declare function fetchICHIVaultOwner(chainId: number, __to: string): Promise<string>;
|
|
302
|
+
export declare function getFetchICHIVaultOwnerQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
303
|
+
queryKey: (string | number | undefined)[];
|
|
304
|
+
enabled: boolean;
|
|
305
|
+
queryFn: () => Promise<string>;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* fetch pool
|
|
309
|
+
* @param {number} chainId - number
|
|
310
|
+
* @param {string} __to - string
|
|
311
|
+
* @returns {string} __output0 - address
|
|
312
|
+
*/
|
|
313
|
+
export declare function fetchICHIVaultPool(chainId: number, __to: string): Promise<string>;
|
|
314
|
+
export declare function getFetchICHIVaultPoolQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
315
|
+
queryKey: (string | number | undefined)[];
|
|
316
|
+
enabled: boolean;
|
|
317
|
+
queryFn: () => Promise<string>;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* fetch symbol
|
|
321
|
+
* @param {number} chainId - number
|
|
322
|
+
* @param {string} __to - string
|
|
323
|
+
* @returns {string} __output0 - string
|
|
324
|
+
*/
|
|
325
|
+
export declare function fetchICHIVaultSymbol(chainId: number, __to: string): Promise<string>;
|
|
326
|
+
export declare function getFetchICHIVaultSymbolQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
327
|
+
queryKey: (string | number | undefined)[];
|
|
328
|
+
enabled: boolean;
|
|
329
|
+
queryFn: () => Promise<string>;
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* fetch tickSpacing
|
|
333
|
+
* @param {number} chainId - number
|
|
334
|
+
* @param {string} __to - string
|
|
335
|
+
* @returns {bigint} __output0 - int24
|
|
336
|
+
*/
|
|
337
|
+
export declare function fetchICHIVaultTickSpacing(chainId: number, __to: string): Promise<bigint>;
|
|
338
|
+
export declare function getFetchICHIVaultTickSpacingQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
339
|
+
queryKey: (string | number | undefined)[];
|
|
340
|
+
enabled: boolean;
|
|
341
|
+
queryFn: () => Promise<bigint>;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* fetch token0
|
|
345
|
+
* @param {number} chainId - number
|
|
346
|
+
* @param {string} __to - string
|
|
347
|
+
* @returns {string} __output0 - address
|
|
348
|
+
*/
|
|
349
|
+
export declare function fetchICHIVaultToken0(chainId: number, __to: string): Promise<string>;
|
|
350
|
+
export declare function getFetchICHIVaultToken0QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
351
|
+
queryKey: (string | number | undefined)[];
|
|
352
|
+
enabled: boolean;
|
|
353
|
+
queryFn: () => Promise<string>;
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* fetch token1
|
|
357
|
+
* @param {number} chainId - number
|
|
358
|
+
* @param {string} __to - string
|
|
359
|
+
* @returns {string} __output0 - address
|
|
360
|
+
*/
|
|
361
|
+
export declare function fetchICHIVaultToken1(chainId: number, __to: string): Promise<string>;
|
|
362
|
+
export declare function getFetchICHIVaultToken1QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
363
|
+
queryKey: (string | number | undefined)[];
|
|
364
|
+
enabled: boolean;
|
|
365
|
+
queryFn: () => Promise<string>;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* fetch totalSupply
|
|
369
|
+
* @param {number} chainId - number
|
|
370
|
+
* @param {string} __to - string
|
|
371
|
+
* @returns {bigint} __output0 - uint256
|
|
372
|
+
*/
|
|
373
|
+
export declare function fetchICHIVaultTotalSupply(chainId: number, __to: string): Promise<bigint>;
|
|
374
|
+
export declare function getFetchICHIVaultTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
375
|
+
queryKey: (string | number | undefined)[];
|
|
376
|
+
enabled: boolean;
|
|
377
|
+
queryFn: () => Promise<bigint>;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* fetch twapPeriod
|
|
381
|
+
* @param {number} chainId - number
|
|
382
|
+
* @param {string} __to - string
|
|
383
|
+
* @returns {bigint} __output0 - uint32
|
|
384
|
+
*/
|
|
385
|
+
export declare function fetchICHIVaultTwapPeriod(chainId: number, __to: string): Promise<bigint>;
|
|
386
|
+
export declare function getFetchICHIVaultTwapPeriodQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
387
|
+
queryKey: (string | number | undefined)[];
|
|
388
|
+
enabled: boolean;
|
|
389
|
+
queryFn: () => Promise<bigint>;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* encode algebraMintCallback
|
|
393
|
+
* @param {string | number} amount0 - uint256
|
|
394
|
+
* @param {string | number} amount1 - uint256
|
|
395
|
+
* @param {string} data - bytes
|
|
396
|
+
* @returns {string} encode data
|
|
397
|
+
*/
|
|
398
|
+
export declare function encodeICHIVaultAlgebraMintCallback(amount0: string | number, amount1: string | number, data: string): any;
|
|
399
|
+
/**
|
|
400
|
+
* encode algebraSwapCallback
|
|
401
|
+
* @param {string | number} amount0Delta - int256
|
|
402
|
+
* @param {string | number} amount1Delta - int256
|
|
403
|
+
* @param {string} data - bytes
|
|
404
|
+
* @returns {string} encode data
|
|
405
|
+
*/
|
|
406
|
+
export declare function encodeICHIVaultAlgebraSwapCallback(amount0Delta: string | number, amount1Delta: string | number, data: string): any;
|
|
407
|
+
/**
|
|
408
|
+
* encode approve
|
|
409
|
+
* @param {string} spender - address
|
|
410
|
+
* @param {string | number} amount - uint256
|
|
411
|
+
* @returns {string} encode data
|
|
412
|
+
*/
|
|
413
|
+
export declare function encodeICHIVaultApprove(spender: string, amount: string | number): any;
|
|
414
|
+
/**
|
|
415
|
+
* encode collectFees
|
|
416
|
+
|
|
417
|
+
* @returns {string} encode data
|
|
418
|
+
*/
|
|
419
|
+
export declare function encodeICHIVaultCollectFees(): any;
|
|
420
|
+
/**
|
|
421
|
+
* encode decreaseAllowance
|
|
422
|
+
* @param {string} spender - address
|
|
423
|
+
* @param {string | number} subtractedValue - uint256
|
|
424
|
+
* @returns {string} encode data
|
|
425
|
+
*/
|
|
426
|
+
export declare function encodeICHIVaultDecreaseAllowance(spender: string, subtractedValue: string | number): any;
|
|
427
|
+
/**
|
|
428
|
+
* encode deposit
|
|
429
|
+
* @param {string | number} deposit0 - uint256
|
|
430
|
+
* @param {string | number} deposit1 - uint256
|
|
431
|
+
* @param {string} to - address
|
|
432
|
+
* @returns {string} encode data
|
|
433
|
+
*/
|
|
434
|
+
export declare function encodeICHIVaultDeposit(deposit0: string | number, deposit1: string | number, to: string): any;
|
|
435
|
+
/**
|
|
436
|
+
* encode increaseAllowance
|
|
437
|
+
* @param {string} spender - address
|
|
438
|
+
* @param {string | number} addedValue - uint256
|
|
439
|
+
* @returns {string} encode data
|
|
440
|
+
*/
|
|
441
|
+
export declare function encodeICHIVaultIncreaseAllowance(spender: string, addedValue: string | number): any;
|
|
442
|
+
/**
|
|
443
|
+
* encode rebalance
|
|
444
|
+
* @param {string | number} _baseLower - int24
|
|
445
|
+
* @param {string | number} _baseUpper - int24
|
|
446
|
+
* @param {string | number} _limitLower - int24
|
|
447
|
+
* @param {string | number} _limitUpper - int24
|
|
448
|
+
* @param {string | number} swapQuantity - int256
|
|
449
|
+
* @returns {string} encode data
|
|
450
|
+
*/
|
|
451
|
+
export declare function encodeICHIVaultRebalance(_baseLower: string | number, _baseUpper: string | number, _limitLower: string | number, _limitUpper: string | number, swapQuantity: string | number): any;
|
|
452
|
+
/**
|
|
453
|
+
* encode renounceOwnership
|
|
454
|
+
|
|
455
|
+
* @returns {string} encode data
|
|
456
|
+
*/
|
|
457
|
+
export declare function encodeICHIVaultRenounceOwnership(): any;
|
|
458
|
+
/**
|
|
459
|
+
* encode setAffiliate
|
|
460
|
+
* @param {string} _affiliate - address
|
|
461
|
+
* @returns {string} encode data
|
|
462
|
+
*/
|
|
463
|
+
export declare function encodeICHIVaultSetAffiliate(_affiliate: string): any;
|
|
464
|
+
/**
|
|
465
|
+
* encode setAmmFeeRecipient
|
|
466
|
+
* @param {string} _ammFeeRecipient - address
|
|
467
|
+
* @returns {string} encode data
|
|
468
|
+
*/
|
|
469
|
+
export declare function encodeICHIVaultSetAmmFeeRecipient(_ammFeeRecipient: string): any;
|
|
470
|
+
/**
|
|
471
|
+
* encode setDepositMax
|
|
472
|
+
* @param {string | number} _deposit0Max - uint256
|
|
473
|
+
* @param {string | number} _deposit1Max - uint256
|
|
474
|
+
* @returns {string} encode data
|
|
475
|
+
*/
|
|
476
|
+
export declare function encodeICHIVaultSetDepositMax(_deposit0Max: string | number, _deposit1Max: string | number): any;
|
|
477
|
+
/**
|
|
478
|
+
* encode setHysteresis
|
|
479
|
+
* @param {string | number} _hysteresis - uint256
|
|
480
|
+
* @returns {string} encode data
|
|
481
|
+
*/
|
|
482
|
+
export declare function encodeICHIVaultSetHysteresis(_hysteresis: string | number): any;
|
|
483
|
+
/**
|
|
484
|
+
* encode setTwapPeriod
|
|
485
|
+
* @param {string | number} newTwapPeriod - uint32
|
|
486
|
+
* @returns {string} encode data
|
|
487
|
+
*/
|
|
488
|
+
export declare function encodeICHIVaultSetTwapPeriod(newTwapPeriod: string | number): any;
|
|
489
|
+
/**
|
|
490
|
+
* encode transfer
|
|
491
|
+
* @param {string} to - address
|
|
492
|
+
* @param {string | number} amount - uint256
|
|
493
|
+
* @returns {string} encode data
|
|
494
|
+
*/
|
|
495
|
+
export declare function encodeICHIVaultTransfer(to: string, amount: string | number): any;
|
|
496
|
+
/**
|
|
497
|
+
* encode transferFrom
|
|
498
|
+
* @param {string} from - address
|
|
499
|
+
* @param {string} to - address
|
|
500
|
+
* @param {string | number} amount - uint256
|
|
501
|
+
* @returns {string} encode data
|
|
502
|
+
*/
|
|
503
|
+
export declare function encodeICHIVaultTransferFrom(from: string, to: string, amount: string | number): any;
|
|
504
|
+
/**
|
|
505
|
+
* encode transferOwnership
|
|
506
|
+
* @param {string} newOwner - address
|
|
507
|
+
* @returns {string} encode data
|
|
508
|
+
*/
|
|
509
|
+
export declare function encodeICHIVaultTransferOwnership(newOwner: string): any;
|
|
510
|
+
/**
|
|
511
|
+
* encode withdraw
|
|
512
|
+
* @param {string | number} shares - uint256
|
|
513
|
+
* @param {string} to - address
|
|
514
|
+
* @returns {string} encode data
|
|
515
|
+
*/
|
|
516
|
+
export declare function encodeICHIVaultWithdraw(shares: string | number, to: string): any;
|