@dodoex/dodo-contract-request 1.5.0 → 1.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.releaserc.json +8 -3
- package/CHANGELOG.md +15 -25
- package/contract-config/sepolia.json +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +42 -12
- package/dist/types/contract/CP.d.ts +214 -50
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
- package/dist/types/contract/CustomERC20.d.ts +75 -20
- package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
- package/dist/types/contract/D3Proxy.d.ts +33 -13
- package/dist/types/contract/D3Vault.d.ts +324 -123
- package/dist/types/contract/DODOApprove.d.ts +44 -14
- package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
- package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
- package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
- package/dist/types/contract/DODOCpProxy.d.ts +20 -5
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
- package/dist/types/contract/DODODppProxy.d.ts +20 -5
- package/dist/types/contract/DODODspProxy.d.ts +27 -7
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
- package/dist/types/contract/DODOIncentive.d.ts +75 -26
- package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
- package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
- package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
- package/dist/types/contract/DODONFT.d.ts +95 -25
- package/dist/types/contract/DODONFT1155.d.ts +56 -16
- package/dist/types/contract/DODONFTApprove.d.ts +47 -17
- package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
- package/dist/types/contract/DODONFTProxy.d.ts +84 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
- package/dist/types/contract/DODOSellHelper.d.ts +12 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
- package/dist/types/contract/DODOV1.d.ts +269 -77
- package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
- package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
- package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
- package/dist/types/contract/DPPAdvanced.d.ts +172 -69
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
- package/dist/types/contract/DPPFactory.d.ts +97 -30
- package/dist/types/contract/DSP.d.ts +221 -78
- package/dist/types/contract/DSPFactory.d.ts +73 -21
- package/dist/types/contract/DVM.d.ts +203 -71
- package/dist/types/contract/DVMFactory.d.ts +73 -21
- package/dist/types/contract/ERC20.d.ts +41 -11
- package/dist/types/contract/ERC20Helper.d.ts +24 -23
- package/dist/types/contract/ERC20MineV3.d.ts +91 -36
- package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
- package/dist/types/contract/FeeRateModel.d.ts +28 -8
- package/dist/types/contract/GSP.d.ts +265 -95
- package/dist/types/contract/GSPFactory.d.ts +68 -21
- package/dist/types/contract/InitializableERC20.d.ts +46 -11
- package/dist/types/contract/LimitOrder.d.ts +71 -21
- package/dist/types/contract/LimitOrderBot.d.ts +45 -15
- package/dist/types/contract/MulticallWithValid.d.ts +43 -8
- package/dist/types/contract/PermissionManager.d.ts +33 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
- package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
- package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
- package/dist/types/contract/dodoTeam.d.ts +100 -33
- package/dist/types/contract/vDODOToken.d.ts +196 -58
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/scripts/contract-generate.ts +8 -1
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +60 -0
- package/src/contract/CP.ts +340 -0
- package/src/contract/CrowdPoolingFactory.ts +190 -0
- package/src/contract/CustomERC20.ts +110 -0
- package/src/contract/CustomMintableERC20.ts +110 -0
- package/src/contract/D3Proxy.ts +40 -0
- package/src/contract/D3Vault.ts +480 -0
- package/src/contract/DODOApprove.ts +60 -0
- package/src/contract/DODOApproveProxy.ts +70 -0
- package/src/contract/DODOCalleeHelper.ts +10 -0
- package/src/contract/DODOCirculationHelper.ts +70 -0
- package/src/contract/DODOCpProxy.ts +30 -0
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
- package/src/contract/DODODppProxy.ts +30 -0
- package/src/contract/DODODspProxy.ts +40 -0
- package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
- package/src/contract/DODOIncentive.ts +110 -0
- package/src/contract/DODOMineV2Factory.ts +70 -0
- package/src/contract/DODOMineV3Proxy.ts +60 -0
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
- package/src/contract/DODOMineV3Registry.ts +60 -0
- package/src/contract/DODONFT.ts +140 -0
- package/src/contract/DODONFT1155.ts +80 -0
- package/src/contract/DODONFTApprove.ts +60 -0
- package/src/contract/DODONFTPoolProxy.ts +100 -0
- package/src/contract/DODONFTProxy.ts +120 -0
- package/src/contract/DODONFTRegistry.ts +70 -0
- package/src/contract/DODONFTRouteHelper.ts +20 -0
- package/src/contract/DODOSellHelper.ts +20 -0
- package/src/contract/DODOStarterProxy.ts +20 -0
- package/src/contract/DODOV1.ts +390 -0
- package/src/contract/DODOV1Adapter.ts +10 -0
- package/src/contract/DODOV1PmmHelper.ts +10 -0
- package/src/contract/DODOV1Proxy.ts +10 -0
- package/src/contract/DODOV2Proxy02.ts +130 -0
- package/src/contract/DODOV2RouteHelper.ts +40 -0
- package/src/contract/DPPAdvanced.ts +270 -0
- package/src/contract/DPPAdvancedAdmin.ts +70 -0
- package/src/contract/DPPFactory.ts +140 -0
- package/src/contract/DSP.ts +350 -0
- package/src/contract/DSPFactory.ts +110 -0
- package/src/contract/DVM.ts +320 -0
- package/src/contract/DVMFactory.ts +110 -0
- package/src/contract/ERC20.ts +60 -0
- package/src/contract/ERC20Helper.ts +40 -0
- package/src/contract/ERC20MineV3.ts +130 -0
- package/src/contract/ERC20V3Factory.ts +110 -0
- package/src/contract/FeeRateDIP3Impl.ts +100 -0
- package/src/contract/FeeRateModel.ts +40 -0
- package/src/contract/GSP.ts +410 -0
- package/src/contract/GSPFactory.ts +100 -0
- package/src/contract/InitializableERC20.ts +70 -0
- package/src/contract/LimitOrder.ts +100 -0
- package/src/contract/LimitOrderBot.ts +60 -0
- package/src/contract/MulticallWithValid.ts +70 -0
- package/src/contract/PermissionManager.ts +40 -0
- package/src/contract/UniswapV2Factory.ts +51 -1
- package/src/contract/UniswapV2Pair.ts +190 -0
- package/src/contract/UniswapV2Router02.ts +71 -1
- package/src/contract/dodoTeam.ts +140 -0
- package/src/contract/vDODOToken.ts +300 -0
- package/src/index.ts +2 -1
|
@@ -4,119 +4,204 @@
|
|
|
4
4
|
* @param {string} __to - string
|
|
5
5
|
* @returns {string} __output0 - bytes32
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDSPDOMAIN_SEPARATOR(chainId: number, __to: string):
|
|
7
|
+
export declare function fetchDSPDOMAIN_SEPARATOR(chainId: number, __to: string): any;
|
|
8
|
+
export declare function getFetchDSPDOMAIN_SEPARATORQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
9
|
+
queryKey: (string | number | undefined)[];
|
|
10
|
+
enabled: boolean[];
|
|
11
|
+
queryFn: () => any;
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* fetch PERMIT_TYPEHASH
|
|
10
15
|
* @param {number} chainId - number
|
|
11
16
|
* @param {string} __to - string
|
|
12
17
|
* @returns {string} __output0 - bytes32
|
|
13
18
|
*/
|
|
14
|
-
export declare function fetchDSPPERMIT_TYPEHASH(chainId: number, __to: string):
|
|
19
|
+
export declare function fetchDSPPERMIT_TYPEHASH(chainId: number, __to: string): any;
|
|
20
|
+
export declare function getFetchDSPPERMIT_TYPEHASHQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
21
|
+
queryKey: (string | number | undefined)[];
|
|
22
|
+
enabled: boolean[];
|
|
23
|
+
queryFn: () => any;
|
|
24
|
+
};
|
|
15
25
|
/**
|
|
16
26
|
* fetch _BASE_PRICE_CUMULATIVE_LAST_
|
|
17
27
|
* @param {number} chainId - number
|
|
18
28
|
* @param {string} __to - string
|
|
19
29
|
* @returns {bigint} __output0 - uint256
|
|
20
30
|
*/
|
|
21
|
-
export declare function fetchDSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string):
|
|
31
|
+
export declare function fetchDSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string): any;
|
|
32
|
+
export declare function getFetchDSP_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
33
|
+
queryKey: (string | number | undefined)[];
|
|
34
|
+
enabled: boolean[];
|
|
35
|
+
queryFn: () => any;
|
|
36
|
+
};
|
|
22
37
|
/**
|
|
23
38
|
* fetch _BASE_RESERVE_
|
|
24
39
|
* @param {number} chainId - number
|
|
25
40
|
* @param {string} __to - string
|
|
26
41
|
* @returns {bigint} __output0 - uint112
|
|
27
42
|
*/
|
|
28
|
-
export declare function fetchDSP_BASE_RESERVE_(chainId: number, __to: string):
|
|
43
|
+
export declare function fetchDSP_BASE_RESERVE_(chainId: number, __to: string): any;
|
|
44
|
+
export declare function getFetchDSP_BASE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
45
|
+
queryKey: (string | number | undefined)[];
|
|
46
|
+
enabled: boolean[];
|
|
47
|
+
queryFn: () => any;
|
|
48
|
+
};
|
|
29
49
|
/**
|
|
30
50
|
* fetch _BASE_TARGET_
|
|
31
51
|
* @param {number} chainId - number
|
|
32
52
|
* @param {string} __to - string
|
|
33
53
|
* @returns {bigint} __output0 - uint112
|
|
34
54
|
*/
|
|
35
|
-
export declare function fetchDSP_BASE_TARGET_(chainId: number, __to: string):
|
|
55
|
+
export declare function fetchDSP_BASE_TARGET_(chainId: number, __to: string): any;
|
|
56
|
+
export declare function getFetchDSP_BASE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
57
|
+
queryKey: (string | number | undefined)[];
|
|
58
|
+
enabled: boolean[];
|
|
59
|
+
queryFn: () => any;
|
|
60
|
+
};
|
|
36
61
|
/**
|
|
37
62
|
* fetch _BASE_TOKEN_
|
|
38
63
|
* @param {number} chainId - number
|
|
39
64
|
* @param {string} __to - string
|
|
40
65
|
* @returns {string} __output0 - address
|
|
41
66
|
*/
|
|
42
|
-
export declare function fetchDSP_BASE_TOKEN_(chainId: number, __to: string):
|
|
67
|
+
export declare function fetchDSP_BASE_TOKEN_(chainId: number, __to: string): any;
|
|
68
|
+
export declare function getFetchDSP_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
69
|
+
queryKey: (string | number | undefined)[];
|
|
70
|
+
enabled: boolean[];
|
|
71
|
+
queryFn: () => any;
|
|
72
|
+
};
|
|
43
73
|
/**
|
|
44
74
|
* fetch _BLOCK_TIMESTAMP_LAST_
|
|
45
75
|
* @param {number} chainId - number
|
|
46
76
|
* @param {string} __to - string
|
|
47
77
|
* @returns {bigint} __output0 - uint32
|
|
48
78
|
*/
|
|
49
|
-
export declare function fetchDSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string):
|
|
79
|
+
export declare function fetchDSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string): any;
|
|
80
|
+
export declare function getFetchDSP_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
81
|
+
queryKey: (string | number | undefined)[];
|
|
82
|
+
enabled: boolean[];
|
|
83
|
+
queryFn: () => any;
|
|
84
|
+
};
|
|
50
85
|
/**
|
|
51
86
|
* fetch _IS_OPEN_TWAP_
|
|
52
87
|
* @param {number} chainId - number
|
|
53
88
|
* @param {string} __to - string
|
|
54
89
|
* @returns {boolean} __output0 - bool
|
|
55
90
|
*/
|
|
56
|
-
export declare function fetchDSP_IS_OPEN_TWAP_(chainId: number, __to: string):
|
|
91
|
+
export declare function fetchDSP_IS_OPEN_TWAP_(chainId: number, __to: string): any;
|
|
92
|
+
export declare function getFetchDSP_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
93
|
+
queryKey: (string | number | undefined)[];
|
|
94
|
+
enabled: boolean[];
|
|
95
|
+
queryFn: () => any;
|
|
96
|
+
};
|
|
57
97
|
/**
|
|
58
98
|
* fetch _I_
|
|
59
99
|
* @param {number} chainId - number
|
|
60
100
|
* @param {string} __to - string
|
|
61
101
|
* @returns {bigint} __output0 - uint256
|
|
62
102
|
*/
|
|
63
|
-
export declare function fetchDSP_I_(chainId: number, __to: string):
|
|
103
|
+
export declare function fetchDSP_I_(chainId: number, __to: string): any;
|
|
104
|
+
export declare function getFetchDSP_I_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
105
|
+
queryKey: (string | number | undefined)[];
|
|
106
|
+
enabled: boolean[];
|
|
107
|
+
queryFn: () => any;
|
|
108
|
+
};
|
|
64
109
|
/**
|
|
65
110
|
* fetch _K_
|
|
66
111
|
* @param {number} chainId - number
|
|
67
112
|
* @param {string} __to - string
|
|
68
113
|
* @returns {bigint} __output0 - uint256
|
|
69
114
|
*/
|
|
70
|
-
export declare function fetchDSP_K_(chainId: number, __to: string):
|
|
115
|
+
export declare function fetchDSP_K_(chainId: number, __to: string): any;
|
|
116
|
+
export declare function getFetchDSP_K_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
117
|
+
queryKey: (string | number | undefined)[];
|
|
118
|
+
enabled: boolean[];
|
|
119
|
+
queryFn: () => any;
|
|
120
|
+
};
|
|
71
121
|
/**
|
|
72
122
|
* fetch _LP_FEE_RATE_
|
|
73
123
|
* @param {number} chainId - number
|
|
74
124
|
* @param {string} __to - string
|
|
75
125
|
* @returns {bigint} __output0 - uint256
|
|
76
126
|
*/
|
|
77
|
-
export declare function fetchDSP_LP_FEE_RATE_(chainId: number, __to: string):
|
|
127
|
+
export declare function fetchDSP_LP_FEE_RATE_(chainId: number, __to: string): any;
|
|
128
|
+
export declare function getFetchDSP_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
129
|
+
queryKey: (string | number | undefined)[];
|
|
130
|
+
enabled: boolean[];
|
|
131
|
+
queryFn: () => any;
|
|
132
|
+
};
|
|
78
133
|
/**
|
|
79
134
|
* fetch _MAINTAINER_
|
|
80
135
|
* @param {number} chainId - number
|
|
81
136
|
* @param {string} __to - string
|
|
82
137
|
* @returns {string} __output0 - address
|
|
83
138
|
*/
|
|
84
|
-
export declare function fetchDSP_MAINTAINER_(chainId: number, __to: string):
|
|
139
|
+
export declare function fetchDSP_MAINTAINER_(chainId: number, __to: string): any;
|
|
140
|
+
export declare function getFetchDSP_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
141
|
+
queryKey: (string | number | undefined)[];
|
|
142
|
+
enabled: boolean[];
|
|
143
|
+
queryFn: () => any;
|
|
144
|
+
};
|
|
85
145
|
/**
|
|
86
146
|
* fetch _MT_FEE_RATE_MODEL_
|
|
87
147
|
* @param {number} chainId - number
|
|
88
148
|
* @param {string} __to - string
|
|
89
149
|
* @returns {string} __output0 - address
|
|
90
150
|
*/
|
|
91
|
-
export declare function fetchDSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string):
|
|
151
|
+
export declare function fetchDSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string): any;
|
|
152
|
+
export declare function getFetchDSP_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
153
|
+
queryKey: (string | number | undefined)[];
|
|
154
|
+
enabled: boolean[];
|
|
155
|
+
queryFn: () => any;
|
|
156
|
+
};
|
|
92
157
|
/**
|
|
93
158
|
* fetch _QUOTE_RESERVE_
|
|
94
159
|
* @param {number} chainId - number
|
|
95
160
|
* @param {string} __to - string
|
|
96
161
|
* @returns {bigint} __output0 - uint112
|
|
97
162
|
*/
|
|
98
|
-
export declare function fetchDSP_QUOTE_RESERVE_(chainId: number, __to: string):
|
|
163
|
+
export declare function fetchDSP_QUOTE_RESERVE_(chainId: number, __to: string): any;
|
|
164
|
+
export declare function getFetchDSP_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
165
|
+
queryKey: (string | number | undefined)[];
|
|
166
|
+
enabled: boolean[];
|
|
167
|
+
queryFn: () => any;
|
|
168
|
+
};
|
|
99
169
|
/**
|
|
100
170
|
* fetch _QUOTE_TARGET_
|
|
101
171
|
* @param {number} chainId - number
|
|
102
172
|
* @param {string} __to - string
|
|
103
173
|
* @returns {bigint} __output0 - uint112
|
|
104
174
|
*/
|
|
105
|
-
export declare function fetchDSP_QUOTE_TARGET_(chainId: number, __to: string):
|
|
175
|
+
export declare function fetchDSP_QUOTE_TARGET_(chainId: number, __to: string): any;
|
|
176
|
+
export declare function getFetchDSP_QUOTE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
177
|
+
queryKey: (string | number | undefined)[];
|
|
178
|
+
enabled: boolean[];
|
|
179
|
+
queryFn: () => any;
|
|
180
|
+
};
|
|
106
181
|
/**
|
|
107
182
|
* fetch _QUOTE_TOKEN_
|
|
108
183
|
* @param {number} chainId - number
|
|
109
184
|
* @param {string} __to - string
|
|
110
185
|
* @returns {string} __output0 - address
|
|
111
186
|
*/
|
|
112
|
-
export declare function fetchDSP_QUOTE_TOKEN_(chainId: number, __to: string):
|
|
187
|
+
export declare function fetchDSP_QUOTE_TOKEN_(chainId: number, __to: string): any;
|
|
188
|
+
export declare function getFetchDSP_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
189
|
+
queryKey: (string | number | undefined)[];
|
|
190
|
+
enabled: boolean[];
|
|
191
|
+
queryFn: () => any;
|
|
192
|
+
};
|
|
113
193
|
/**
|
|
114
194
|
* fetch _RState_
|
|
115
195
|
* @param {number} chainId - number
|
|
116
196
|
* @param {string} __to - string
|
|
117
197
|
* @returns {bigint} __output0 - uint32
|
|
118
198
|
*/
|
|
119
|
-
export declare function fetchDSP_RState_(chainId: number, __to: string):
|
|
199
|
+
export declare function fetchDSP_RState_(chainId: number, __to: string): any;
|
|
200
|
+
export declare function getFetchDSP_RState_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
201
|
+
queryKey: (string | number | undefined)[];
|
|
202
|
+
enabled: boolean[];
|
|
203
|
+
queryFn: () => any;
|
|
204
|
+
};
|
|
120
205
|
/**
|
|
121
206
|
* fetch addressToShortString
|
|
122
207
|
* @param {number} chainId - number
|
|
@@ -124,7 +209,12 @@ export declare function fetchDSP_RState_(chainId: number, __to: string): Promise
|
|
|
124
209
|
* @param {string} _addr - address
|
|
125
210
|
* @returns {string} __output0 - string
|
|
126
211
|
*/
|
|
127
|
-
export declare function fetchDSPAddressToShortString(chainId: number, __to: string, _addr: string):
|
|
212
|
+
export declare function fetchDSPAddressToShortString(chainId: number, __to: string, _addr: string): any;
|
|
213
|
+
export declare function getFetchDSPAddressToShortStringQueryOptions(chainId: number | undefined, __to: string | undefined, _addr: string | undefined): {
|
|
214
|
+
queryKey: (string | number | undefined)[];
|
|
215
|
+
enabled: boolean[];
|
|
216
|
+
queryFn: () => any;
|
|
217
|
+
};
|
|
128
218
|
/**
|
|
129
219
|
* fetch allowance
|
|
130
220
|
* @param {number} chainId - number
|
|
@@ -133,7 +223,12 @@ export declare function fetchDSPAddressToShortString(chainId: number, __to: stri
|
|
|
133
223
|
* @param {string} spender - address
|
|
134
224
|
* @returns {bigint} __output0 - uint256
|
|
135
225
|
*/
|
|
136
|
-
export declare function fetchDSPAllowance(chainId: number, __to: string, owner: string, spender: string):
|
|
226
|
+
export declare function fetchDSPAllowance(chainId: number, __to: string, owner: string, spender: string): any;
|
|
227
|
+
export declare function getFetchDSPAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined): {
|
|
228
|
+
queryKey: (string | number | undefined)[];
|
|
229
|
+
enabled: boolean[];
|
|
230
|
+
queryFn: () => any;
|
|
231
|
+
};
|
|
137
232
|
/**
|
|
138
233
|
* fetch balanceOf
|
|
139
234
|
* @param {number} chainId - number
|
|
@@ -141,43 +236,60 @@ export declare function fetchDSPAllowance(chainId: number, __to: string, owner:
|
|
|
141
236
|
* @param {string} owner - address
|
|
142
237
|
* @returns {bigint} balance - uint256
|
|
143
238
|
*/
|
|
144
|
-
export declare function fetchDSPBalanceOf(chainId: number, __to: string, owner: string):
|
|
239
|
+
export declare function fetchDSPBalanceOf(chainId: number, __to: string, owner: string): any;
|
|
240
|
+
export declare function getFetchDSPBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined): {
|
|
241
|
+
queryKey: (string | number | undefined)[];
|
|
242
|
+
enabled: boolean[];
|
|
243
|
+
queryFn: () => any;
|
|
244
|
+
};
|
|
145
245
|
/**
|
|
146
246
|
* fetch decimals
|
|
147
247
|
* @param {number} chainId - number
|
|
148
248
|
* @param {string} __to - string
|
|
149
249
|
* @returns {bigint} __output0 - uint8
|
|
150
250
|
*/
|
|
151
|
-
export declare function fetchDSPDecimals(chainId: number, __to: string):
|
|
251
|
+
export declare function fetchDSPDecimals(chainId: number, __to: string): any;
|
|
252
|
+
export declare function getFetchDSPDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
253
|
+
queryKey: (string | number | undefined)[];
|
|
254
|
+
enabled: boolean[];
|
|
255
|
+
queryFn: () => any;
|
|
256
|
+
};
|
|
152
257
|
/**
|
|
153
258
|
* fetch getBaseInput
|
|
154
259
|
* @param {number} chainId - number
|
|
155
260
|
* @param {string} __to - string
|
|
156
261
|
* @returns {bigint} input - uint256
|
|
157
262
|
*/
|
|
158
|
-
export declare function fetchDSPGetBaseInput(chainId: number, __to: string):
|
|
263
|
+
export declare function fetchDSPGetBaseInput(chainId: number, __to: string): any;
|
|
264
|
+
export declare function getFetchDSPGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
265
|
+
queryKey: (string | number | undefined)[];
|
|
266
|
+
enabled: boolean[];
|
|
267
|
+
queryFn: () => any;
|
|
268
|
+
};
|
|
159
269
|
/**
|
|
160
270
|
* fetch getMidPrice
|
|
161
271
|
* @param {number} chainId - number
|
|
162
272
|
* @param {string} __to - string
|
|
163
273
|
* @returns {bigint} midPrice - uint256
|
|
164
274
|
*/
|
|
165
|
-
export declare function fetchDSPGetMidPrice(chainId: number, __to: string):
|
|
275
|
+
export declare function fetchDSPGetMidPrice(chainId: number, __to: string): any;
|
|
276
|
+
export declare function getFetchDSPGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
277
|
+
queryKey: (string | number | undefined)[];
|
|
278
|
+
enabled: boolean[];
|
|
279
|
+
queryFn: () => any;
|
|
280
|
+
};
|
|
166
281
|
/**
|
|
167
282
|
* fetch getPMMState
|
|
168
283
|
* @param {number} chainId - number
|
|
169
284
|
* @param {string} __to - string
|
|
170
285
|
* @returns {{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}} state - tuple
|
|
171
286
|
*/
|
|
172
|
-
export declare function fetchDSPGetPMMState(chainId: number, __to: string):
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
Q0: bigint;
|
|
179
|
-
R: bigint;
|
|
180
|
-
}>;
|
|
287
|
+
export declare function fetchDSPGetPMMState(chainId: number, __to: string): any;
|
|
288
|
+
export declare function getFetchDSPGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
289
|
+
queryKey: (string | number | undefined)[];
|
|
290
|
+
enabled: boolean[];
|
|
291
|
+
queryFn: () => any;
|
|
292
|
+
};
|
|
181
293
|
/**
|
|
182
294
|
* fetch getPMMStateForCall
|
|
183
295
|
* @param {number} chainId - number
|
|
@@ -190,22 +302,24 @@ export declare function fetchDSPGetPMMState(chainId: number, __to: string): Prom
|
|
|
190
302
|
* @returns {bigint} Q0 - uint256
|
|
191
303
|
* @returns {bigint} R - uint256
|
|
192
304
|
*/
|
|
193
|
-
export declare function fetchDSPGetPMMStateForCall(chainId: number, __to: string):
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Q0: bigint;
|
|
200
|
-
R: bigint;
|
|
201
|
-
}>;
|
|
305
|
+
export declare function fetchDSPGetPMMStateForCall(chainId: number, __to: string): any;
|
|
306
|
+
export declare function getFetchDSPGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
307
|
+
queryKey: (string | number | undefined)[];
|
|
308
|
+
enabled: boolean[];
|
|
309
|
+
queryFn: () => any;
|
|
310
|
+
};
|
|
202
311
|
/**
|
|
203
312
|
* fetch getQuoteInput
|
|
204
313
|
* @param {number} chainId - number
|
|
205
314
|
* @param {string} __to - string
|
|
206
315
|
* @returns {bigint} input - uint256
|
|
207
316
|
*/
|
|
208
|
-
export declare function fetchDSPGetQuoteInput(chainId: number, __to: string):
|
|
317
|
+
export declare function fetchDSPGetQuoteInput(chainId: number, __to: string): any;
|
|
318
|
+
export declare function getFetchDSPGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
319
|
+
queryKey: (string | number | undefined)[];
|
|
320
|
+
enabled: boolean[];
|
|
321
|
+
queryFn: () => any;
|
|
322
|
+
};
|
|
209
323
|
/**
|
|
210
324
|
* fetch getUserFeeRate
|
|
211
325
|
* @param {number} chainId - number
|
|
@@ -214,10 +328,12 @@ export declare function fetchDSPGetQuoteInput(chainId: number, __to: string): Pr
|
|
|
214
328
|
* @returns {bigint} lpFeeRate - uint256
|
|
215
329
|
* @returns {bigint} mtFeeRate - uint256
|
|
216
330
|
*/
|
|
217
|
-
export declare function fetchDSPGetUserFeeRate(chainId: number, __to: string, user: string):
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
331
|
+
export declare function fetchDSPGetUserFeeRate(chainId: number, __to: string, user: string): any;
|
|
332
|
+
export declare function getFetchDSPGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined): {
|
|
333
|
+
queryKey: (string | number | undefined)[];
|
|
334
|
+
enabled: boolean[];
|
|
335
|
+
queryFn: () => any;
|
|
336
|
+
};
|
|
221
337
|
/**
|
|
222
338
|
* fetch getVaultReserve
|
|
223
339
|
* @param {number} chainId - number
|
|
@@ -225,17 +341,24 @@ export declare function fetchDSPGetUserFeeRate(chainId: number, __to: string, us
|
|
|
225
341
|
* @returns {bigint} baseReserve - uint256
|
|
226
342
|
* @returns {bigint} quoteReserve - uint256
|
|
227
343
|
*/
|
|
228
|
-
export declare function fetchDSPGetVaultReserve(chainId: number, __to: string):
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
344
|
+
export declare function fetchDSPGetVaultReserve(chainId: number, __to: string): any;
|
|
345
|
+
export declare function getFetchDSPGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
346
|
+
queryKey: (string | number | undefined)[];
|
|
347
|
+
enabled: boolean[];
|
|
348
|
+
queryFn: () => any;
|
|
349
|
+
};
|
|
232
350
|
/**
|
|
233
351
|
* fetch name
|
|
234
352
|
* @param {number} chainId - number
|
|
235
353
|
* @param {string} __to - string
|
|
236
354
|
* @returns {string} __output0 - string
|
|
237
355
|
*/
|
|
238
|
-
export declare function fetchDSPName(chainId: number, __to: string):
|
|
356
|
+
export declare function fetchDSPName(chainId: number, __to: string): any;
|
|
357
|
+
export declare function getFetchDSPNameQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
358
|
+
queryKey: (string | number | undefined)[];
|
|
359
|
+
enabled: boolean[];
|
|
360
|
+
queryFn: () => any;
|
|
361
|
+
};
|
|
239
362
|
/**
|
|
240
363
|
* fetch nonces
|
|
241
364
|
* @param {number} chainId - number
|
|
@@ -243,7 +366,12 @@ export declare function fetchDSPName(chainId: number, __to: string): Promise<str
|
|
|
243
366
|
* @param {string} __input1 - address
|
|
244
367
|
* @returns {bigint} __output0 - uint256
|
|
245
368
|
*/
|
|
246
|
-
export declare function fetchDSPNonces(chainId: number, __to: string, __input1: string):
|
|
369
|
+
export declare function fetchDSPNonces(chainId: number, __to: string, __input1: string): any;
|
|
370
|
+
export declare function getFetchDSPNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
371
|
+
queryKey: (string | number | undefined)[];
|
|
372
|
+
enabled: boolean[];
|
|
373
|
+
queryFn: () => any;
|
|
374
|
+
};
|
|
247
375
|
/**
|
|
248
376
|
* fetch querySellBase
|
|
249
377
|
* @param {number} chainId - number
|
|
@@ -255,12 +383,12 @@ export declare function fetchDSPNonces(chainId: number, __to: string, __input1:
|
|
|
255
383
|
* @returns {bigint} newRState - uint8
|
|
256
384
|
* @returns {bigint} newBaseTarget - uint256
|
|
257
385
|
*/
|
|
258
|
-
export declare function fetchDSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number):
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
386
|
+
export declare function fetchDSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number): any;
|
|
387
|
+
export declare function getFetchDSPQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined): {
|
|
388
|
+
queryKey: (string | number | undefined)[];
|
|
389
|
+
enabled: boolean[];
|
|
390
|
+
queryFn: () => any;
|
|
391
|
+
};
|
|
264
392
|
/**
|
|
265
393
|
* fetch querySellQuote
|
|
266
394
|
* @param {number} chainId - number
|
|
@@ -272,46 +400,61 @@ export declare function fetchDSPQuerySellBase(chainId: number, __to: string, tra
|
|
|
272
400
|
* @returns {bigint} newRState - uint8
|
|
273
401
|
* @returns {bigint} newQuoteTarget - uint256
|
|
274
402
|
*/
|
|
275
|
-
export declare function fetchDSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number):
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
403
|
+
export declare function fetchDSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number): any;
|
|
404
|
+
export declare function getFetchDSPQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined): {
|
|
405
|
+
queryKey: (string | number | undefined)[];
|
|
406
|
+
enabled: boolean[];
|
|
407
|
+
queryFn: () => any;
|
|
408
|
+
};
|
|
281
409
|
/**
|
|
282
410
|
* fetch symbol
|
|
283
411
|
* @param {number} chainId - number
|
|
284
412
|
* @param {string} __to - string
|
|
285
413
|
* @returns {string} __output0 - string
|
|
286
414
|
*/
|
|
287
|
-
export declare function fetchDSPSymbol(chainId: number, __to: string):
|
|
415
|
+
export declare function fetchDSPSymbol(chainId: number, __to: string): any;
|
|
416
|
+
export declare function getFetchDSPSymbolQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
417
|
+
queryKey: (string | number | undefined)[];
|
|
418
|
+
enabled: boolean[];
|
|
419
|
+
queryFn: () => any;
|
|
420
|
+
};
|
|
288
421
|
/**
|
|
289
422
|
* fetch totalSupply
|
|
290
423
|
* @param {number} chainId - number
|
|
291
424
|
* @param {string} __to - string
|
|
292
425
|
* @returns {bigint} __output0 - uint256
|
|
293
426
|
*/
|
|
294
|
-
export declare function fetchDSPTotalSupply(chainId: number, __to: string):
|
|
427
|
+
export declare function fetchDSPTotalSupply(chainId: number, __to: string): any;
|
|
428
|
+
export declare function getFetchDSPTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
429
|
+
queryKey: (string | number | undefined)[];
|
|
430
|
+
enabled: boolean[];
|
|
431
|
+
queryFn: () => any;
|
|
432
|
+
};
|
|
295
433
|
/**
|
|
296
434
|
* fetch version
|
|
297
435
|
* @param {number} chainId - number
|
|
298
436
|
* @param {string} __to - string
|
|
299
437
|
* @returns {string} __output0 - string
|
|
300
438
|
*/
|
|
301
|
-
export declare function fetchDSPVersion(chainId: number, __to: string):
|
|
439
|
+
export declare function fetchDSPVersion(chainId: number, __to: string): any;
|
|
440
|
+
export declare function getFetchDSPVersionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
441
|
+
queryKey: (string | number | undefined)[];
|
|
442
|
+
enabled: boolean[];
|
|
443
|
+
queryFn: () => any;
|
|
444
|
+
};
|
|
302
445
|
/**
|
|
303
446
|
* encode approve
|
|
304
447
|
* @param {string} spender - address
|
|
305
448
|
* @param {string | number} amount - uint256
|
|
306
449
|
* @returns {string} encode data
|
|
307
450
|
*/
|
|
308
|
-
export declare function encodeDSPApprove(spender: string, amount: string | number):
|
|
451
|
+
export declare function encodeDSPApprove(spender: string, amount: string | number): any;
|
|
309
452
|
/**
|
|
310
453
|
* encode buyShares
|
|
311
454
|
* @param {string} to - address
|
|
312
455
|
* @returns {string} encode data
|
|
313
456
|
*/
|
|
314
|
-
export declare function encodeDSPBuyShares(to: string):
|
|
457
|
+
export declare function encodeDSPBuyShares(to: string): any;
|
|
315
458
|
/**
|
|
316
459
|
* encode flashLoan
|
|
317
460
|
* @param {string | number} baseAmount - uint256
|
|
@@ -320,7 +463,7 @@ export declare function encodeDSPBuyShares(to: string): string;
|
|
|
320
463
|
* @param {string} data - bytes
|
|
321
464
|
* @returns {string} encode data
|
|
322
465
|
*/
|
|
323
|
-
export declare function encodeDSPFlashLoan(baseAmount: string | number, quoteAmount: string | number, assetTo: string, data: string):
|
|
466
|
+
export declare function encodeDSPFlashLoan(baseAmount: string | number, quoteAmount: string | number, assetTo: string, data: string): any;
|
|
324
467
|
/**
|
|
325
468
|
* encode init
|
|
326
469
|
* @param {string} maintainer - address
|
|
@@ -333,7 +476,7 @@ export declare function encodeDSPFlashLoan(baseAmount: string | number, quoteAmo
|
|
|
333
476
|
* @param {boolean} isOpenTWAP - bool
|
|
334
477
|
* @returns {string} encode data
|
|
335
478
|
*/
|
|
336
|
-
export declare function encodeDSPInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string | number, mtFeeRateModel: string, i: string | number, k: string | number, isOpenTWAP: boolean):
|
|
479
|
+
export declare function encodeDSPInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string | number, mtFeeRateModel: string, i: string | number, k: string | number, isOpenTWAP: boolean): any;
|
|
337
480
|
/**
|
|
338
481
|
* encode permit
|
|
339
482
|
* @param {string} owner - address
|
|
@@ -345,19 +488,19 @@ export declare function encodeDSPInit(maintainer: string, baseTokenAddress: stri
|
|
|
345
488
|
* @param {string} s - bytes32
|
|
346
489
|
* @returns {string} encode data
|
|
347
490
|
*/
|
|
348
|
-
export declare function encodeDSPPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string):
|
|
491
|
+
export declare function encodeDSPPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string): any;
|
|
349
492
|
/**
|
|
350
493
|
* encode sellBase
|
|
351
494
|
* @param {string} to - address
|
|
352
495
|
* @returns {string} encode data
|
|
353
496
|
*/
|
|
354
|
-
export declare function encodeDSPSellBase(to: string):
|
|
497
|
+
export declare function encodeDSPSellBase(to: string): any;
|
|
355
498
|
/**
|
|
356
499
|
* encode sellQuote
|
|
357
500
|
* @param {string} to - address
|
|
358
501
|
* @returns {string} encode data
|
|
359
502
|
*/
|
|
360
|
-
export declare function encodeDSPSellQuote(to: string):
|
|
503
|
+
export declare function encodeDSPSellQuote(to: string): any;
|
|
361
504
|
/**
|
|
362
505
|
* encode sellShares
|
|
363
506
|
* @param {string | number} shareAmount - uint256
|
|
@@ -368,20 +511,20 @@ export declare function encodeDSPSellQuote(to: string): string;
|
|
|
368
511
|
* @param {string | number} deadline - uint256
|
|
369
512
|
* @returns {string} encode data
|
|
370
513
|
*/
|
|
371
|
-
export declare function encodeDSPSellShares(shareAmount: string | number, to: string, baseMinAmount: string | number, quoteMinAmount: string | number, data: string, deadline: string | number):
|
|
514
|
+
export declare function encodeDSPSellShares(shareAmount: string | number, to: string, baseMinAmount: string | number, quoteMinAmount: string | number, data: string, deadline: string | number): any;
|
|
372
515
|
/**
|
|
373
516
|
* encode sync
|
|
374
517
|
|
|
375
518
|
* @returns {string} encode data
|
|
376
519
|
*/
|
|
377
|
-
export declare function encodeDSPSync():
|
|
520
|
+
export declare function encodeDSPSync(): any;
|
|
378
521
|
/**
|
|
379
522
|
* encode transfer
|
|
380
523
|
* @param {string} to - address
|
|
381
524
|
* @param {string | number} amount - uint256
|
|
382
525
|
* @returns {string} encode data
|
|
383
526
|
*/
|
|
384
|
-
export declare function encodeDSPTransfer(to: string, amount: string | number):
|
|
527
|
+
export declare function encodeDSPTransfer(to: string, amount: string | number): any;
|
|
385
528
|
/**
|
|
386
529
|
* encode transferFrom
|
|
387
530
|
* @param {string} from - address
|
|
@@ -389,4 +532,4 @@ export declare function encodeDSPTransfer(to: string, amount: string | number):
|
|
|
389
532
|
* @param {string | number} amount - uint256
|
|
390
533
|
* @returns {string} encode data
|
|
391
534
|
*/
|
|
392
|
-
export declare function encodeDSPTransferFrom(from: string, to: string, amount: string | number):
|
|
535
|
+
export declare function encodeDSPTransferFrom(from: string, to: string, amount: string | number): any;
|