@dodoex/dodo-contract-request 1.15.0-morph-holesky.2 → 1.15.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.
@@ -1,436 +0,0 @@
1
- export declare function getVE33V2RouterContractAddressByChainId(chainId: number): string;
2
- /**
3
- * fetch ETHER
4
- * @param {number} chainId - number
5
- * @returns {string} __output0 - address
6
- */
7
- export declare function fetchVE33V2RouterETHER(chainId: number): Promise<string>;
8
- export declare function getFetchVE33V2RouterETHERQueryOptions(chainId: number | undefined): {
9
- queryKey: (string | number | undefined)[];
10
- enabled: boolean;
11
- queryFn: () => Promise<string>;
12
- };
13
- /**
14
- * fetch defaultFactory
15
- * @param {number} chainId - number
16
- * @returns {string} __output0 - address
17
- */
18
- export declare function fetchVE33V2RouterDefaultFactory(chainId: number): Promise<string>;
19
- export declare function getFetchVE33V2RouterDefaultFactoryQueryOptions(chainId: number | undefined): {
20
- queryKey: (string | number | undefined)[];
21
- enabled: boolean;
22
- queryFn: () => Promise<string>;
23
- };
24
- /**
25
- * fetch factoryRegistry
26
- * @param {number} chainId - number
27
- * @returns {string} __output0 - address
28
- */
29
- export declare function fetchVE33V2RouterFactoryRegistry(chainId: number): Promise<string>;
30
- export declare function getFetchVE33V2RouterFactoryRegistryQueryOptions(chainId: number | undefined): {
31
- queryKey: (string | number | undefined)[];
32
- enabled: boolean;
33
- queryFn: () => Promise<string>;
34
- };
35
- /**
36
- * fetch generateZapInParams
37
- * @param {number} chainId - number
38
- * @param {string} tokenA - address
39
- * @param {string} tokenB - address
40
- * @param {boolean} stable - bool
41
- * @param {string} _factory - address
42
- * @param {number} amountInA - uint256
43
- * @param {number} amountInB - uint256
44
- * @param {[string, string, boolean, string]} routesA - tuple[]
45
- * @param {[string, string, boolean, string]} routesB - tuple[]
46
- * @returns {bigint} amountOutMinA - uint256
47
- * @returns {bigint} amountOutMinB - uint256
48
- * @returns {bigint} amountAMin - uint256
49
- * @returns {bigint} amountBMin - uint256
50
- */
51
- export declare function fetchVE33V2RouterGenerateZapInParams(chainId: number, tokenA: string, tokenB: string, stable: boolean, _factory: string, amountInA: number, amountInB: number, routesA: [string, string, boolean, string], routesB: [string, string, boolean, string]): Promise<{
52
- amountOutMinA: bigint;
53
- amountOutMinB: bigint;
54
- amountAMin: bigint;
55
- amountBMin: bigint;
56
- }>;
57
- export declare function getFetchVE33V2RouterGenerateZapInParamsQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, stable: boolean | undefined, _factory: string | undefined, amountInA: number | undefined, amountInB: number | undefined, routesA: [string, string, boolean, string] | undefined, routesB: [string, string, boolean, string] | undefined): {
58
- queryKey: (string | number | boolean | [string, string, boolean, string] | undefined)[];
59
- enabled: boolean;
60
- queryFn: () => Promise<{
61
- amountOutMinA: bigint;
62
- amountOutMinB: bigint;
63
- amountAMin: bigint;
64
- amountBMin: bigint;
65
- }>;
66
- };
67
- /**
68
- * fetch generateZapOutParams
69
- * @param {number} chainId - number
70
- * @param {string} tokenA - address
71
- * @param {string} tokenB - address
72
- * @param {boolean} stable - bool
73
- * @param {string} _factory - address
74
- * @param {number} liquidity - uint256
75
- * @param {[string, string, boolean, string]} routesA - tuple[]
76
- * @param {[string, string, boolean, string]} routesB - tuple[]
77
- * @returns {bigint} amountOutMinA - uint256
78
- * @returns {bigint} amountOutMinB - uint256
79
- * @returns {bigint} amountAMin - uint256
80
- * @returns {bigint} amountBMin - uint256
81
- */
82
- export declare function fetchVE33V2RouterGenerateZapOutParams(chainId: number, tokenA: string, tokenB: string, stable: boolean, _factory: string, liquidity: number, routesA: [string, string, boolean, string], routesB: [string, string, boolean, string]): Promise<{
83
- amountOutMinA: bigint;
84
- amountOutMinB: bigint;
85
- amountAMin: bigint;
86
- amountBMin: bigint;
87
- }>;
88
- export declare function getFetchVE33V2RouterGenerateZapOutParamsQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, stable: boolean | undefined, _factory: string | undefined, liquidity: number | undefined, routesA: [string, string, boolean, string] | undefined, routesB: [string, string, boolean, string] | undefined): {
89
- queryKey: (string | number | boolean | [string, string, boolean, string] | undefined)[];
90
- enabled: boolean;
91
- queryFn: () => Promise<{
92
- amountOutMinA: bigint;
93
- amountOutMinB: bigint;
94
- amountAMin: bigint;
95
- amountBMin: bigint;
96
- }>;
97
- };
98
- /**
99
- * fetch getAmountsOut
100
- * @param {number} chainId - number
101
- * @param {number} amountIn - uint256
102
- * @param {[string, string, boolean, string]} routes - tuple[]
103
- * @returns {Array<bigint>} amounts - uint256[]
104
- */
105
- export declare function fetchVE33V2RouterGetAmountsOut(chainId: number, amountIn: number, routes: [string, string, boolean, string]): Promise<Array<bigint>>;
106
- export declare function getFetchVE33V2RouterGetAmountsOutQueryOptions(chainId: number | undefined, amountIn: number | undefined, routes: [string, string, boolean, string] | undefined): {
107
- queryKey: (string | number | [string, string, boolean, string] | undefined)[];
108
- enabled: boolean;
109
- queryFn: () => Promise<bigint[]>;
110
- };
111
- /**
112
- * fetch getReserves
113
- * @param {number} chainId - number
114
- * @param {string} tokenA - address
115
- * @param {string} tokenB - address
116
- * @param {boolean} stable - bool
117
- * @param {string} _factory - address
118
- * @returns {bigint} reserveA - uint256
119
- * @returns {bigint} reserveB - uint256
120
- */
121
- export declare function fetchVE33V2RouterGetReserves(chainId: number, tokenA: string, tokenB: string, stable: boolean, _factory: string): Promise<{
122
- reserveA: bigint;
123
- reserveB: bigint;
124
- }>;
125
- export declare function getFetchVE33V2RouterGetReservesQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, stable: boolean | undefined, _factory: string | undefined): {
126
- queryKey: (string | number | boolean | undefined)[];
127
- enabled: boolean;
128
- queryFn: () => Promise<{
129
- reserveA: bigint;
130
- reserveB: bigint;
131
- }>;
132
- };
133
- /**
134
- * fetch isTrustedForwarder
135
- * @param {number} chainId - number
136
- * @param {string} forwarder - address
137
- * @returns {boolean} __output0 - bool
138
- */
139
- export declare function fetchVE33V2RouterIsTrustedForwarder(chainId: number, forwarder: string): Promise<boolean>;
140
- export declare function getFetchVE33V2RouterIsTrustedForwarderQueryOptions(chainId: number | undefined, forwarder: string | undefined): {
141
- queryKey: (string | number | undefined)[];
142
- enabled: boolean;
143
- queryFn: () => Promise<boolean>;
144
- };
145
- /**
146
- * fetch poolFor
147
- * @param {number} chainId - number
148
- * @param {string} tokenA - address
149
- * @param {string} tokenB - address
150
- * @param {boolean} stable - bool
151
- * @param {string} _factory - address
152
- * @returns {string} pool - address
153
- */
154
- export declare function fetchVE33V2RouterPoolFor(chainId: number, tokenA: string, tokenB: string, stable: boolean, _factory: string): Promise<string>;
155
- export declare function getFetchVE33V2RouterPoolForQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, stable: boolean | undefined, _factory: string | undefined): {
156
- queryKey: (string | number | boolean | undefined)[];
157
- enabled: boolean;
158
- queryFn: () => Promise<string>;
159
- };
160
- /**
161
- * fetch quoteAddLiquidity
162
- * @param {number} chainId - number
163
- * @param {string} tokenA - address
164
- * @param {string} tokenB - address
165
- * @param {boolean} stable - bool
166
- * @param {string} _factory - address
167
- * @param {number} amountADesired - uint256
168
- * @param {number} amountBDesired - uint256
169
- * @returns {bigint} amountA - uint256
170
- * @returns {bigint} amountB - uint256
171
- * @returns {bigint} liquidity - uint256
172
- */
173
- export declare function fetchVE33V2RouterQuoteAddLiquidity(chainId: number, tokenA: string, tokenB: string, stable: boolean, _factory: string, amountADesired: number, amountBDesired: number): Promise<{
174
- amountA: bigint;
175
- amountB: bigint;
176
- liquidity: bigint;
177
- }>;
178
- export declare function getFetchVE33V2RouterQuoteAddLiquidityQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, stable: boolean | undefined, _factory: string | undefined, amountADesired: number | undefined, amountBDesired: number | undefined): {
179
- queryKey: (string | number | boolean | undefined)[];
180
- enabled: boolean;
181
- queryFn: () => Promise<{
182
- amountA: bigint;
183
- amountB: bigint;
184
- liquidity: bigint;
185
- }>;
186
- };
187
- /**
188
- * fetch quoteRemoveLiquidity
189
- * @param {number} chainId - number
190
- * @param {string} tokenA - address
191
- * @param {string} tokenB - address
192
- * @param {boolean} stable - bool
193
- * @param {string} _factory - address
194
- * @param {number} liquidity - uint256
195
- * @returns {bigint} amountA - uint256
196
- * @returns {bigint} amountB - uint256
197
- */
198
- export declare function fetchVE33V2RouterQuoteRemoveLiquidity(chainId: number, tokenA: string, tokenB: string, stable: boolean, _factory: string, liquidity: number): Promise<{
199
- amountA: bigint;
200
- amountB: bigint;
201
- }>;
202
- export declare function getFetchVE33V2RouterQuoteRemoveLiquidityQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, stable: boolean | undefined, _factory: string | undefined, liquidity: number | undefined): {
203
- queryKey: (string | number | boolean | undefined)[];
204
- enabled: boolean;
205
- queryFn: () => Promise<{
206
- amountA: bigint;
207
- amountB: bigint;
208
- }>;
209
- };
210
- /**
211
- * fetch quoteStableLiquidityRatio
212
- * @param {number} chainId - number
213
- * @param {string} tokenA - address
214
- * @param {string} tokenB - address
215
- * @param {string} _factory - address
216
- * @returns {bigint} ratio - uint256
217
- */
218
- export declare function fetchVE33V2RouterQuoteStableLiquidityRatio(chainId: number, tokenA: string, tokenB: string, _factory: string): Promise<bigint>;
219
- export declare function getFetchVE33V2RouterQuoteStableLiquidityRatioQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined, _factory: string | undefined): {
220
- queryKey: (string | number | undefined)[];
221
- enabled: boolean;
222
- queryFn: () => Promise<bigint>;
223
- };
224
- /**
225
- * fetch sortTokens
226
- * @param {number} chainId - number
227
- * @param {string} tokenA - address
228
- * @param {string} tokenB - address
229
- * @returns {string} token0 - address
230
- * @returns {string} token1 - address
231
- */
232
- export declare function fetchVE33V2RouterSortTokens(chainId: number, tokenA: string, tokenB: string): Promise<{
233
- token0: string;
234
- token1: string;
235
- }>;
236
- export declare function getFetchVE33V2RouterSortTokensQueryOptions(chainId: number | undefined, tokenA: string | undefined, tokenB: string | undefined): {
237
- queryKey: (string | number | undefined)[];
238
- enabled: boolean;
239
- queryFn: () => Promise<{
240
- token0: string;
241
- token1: string;
242
- }>;
243
- };
244
- /**
245
- * fetch voter
246
- * @param {number} chainId - number
247
- * @returns {string} __output0 - address
248
- */
249
- export declare function fetchVE33V2RouterVoter(chainId: number): Promise<string>;
250
- export declare function getFetchVE33V2RouterVoterQueryOptions(chainId: number | undefined): {
251
- queryKey: (string | number | undefined)[];
252
- enabled: boolean;
253
- queryFn: () => Promise<string>;
254
- };
255
- /**
256
- * fetch weth
257
- * @param {number} chainId - number
258
- * @returns {string} __output0 - address
259
- */
260
- export declare function fetchVE33V2RouterWeth(chainId: number): Promise<string>;
261
- export declare function getFetchVE33V2RouterWethQueryOptions(chainId: number | undefined): {
262
- queryKey: (string | number | undefined)[];
263
- enabled: boolean;
264
- queryFn: () => Promise<string>;
265
- };
266
- /**
267
- * encode UNSAFE_swapExactTokensForTokens
268
- * @param {Array<string | number>} amounts - uint256[]
269
- * @param {[string, string, boolean, string]} routes - tuple[]
270
- * @param {string} to - address
271
- * @param {string | number} deadline - uint256
272
- * @returns {string} encode data
273
- */
274
- export declare function encodeVE33V2RouterUNSAFE_swapExactTokensForTokens(amounts: Array<string | number>, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
275
- /**
276
- * encode addLiquidity
277
- * @param {string} tokenA - address
278
- * @param {string} tokenB - address
279
- * @param {boolean} stable - bool
280
- * @param {string | number} amountADesired - uint256
281
- * @param {string | number} amountBDesired - uint256
282
- * @param {string | number} amountAMin - uint256
283
- * @param {string | number} amountBMin - uint256
284
- * @param {string} to - address
285
- * @param {string | number} deadline - uint256
286
- * @returns {string} encode data
287
- */
288
- export declare function encodeVE33V2RouterAddLiquidity(tokenA: string, tokenB: string, stable: boolean, amountADesired: string | number, amountBDesired: string | number, amountAMin: string | number, amountBMin: string | number, to: string, deadline: string | number): string;
289
- /**
290
- * encode addLiquidityETH
291
- * @param {string} token - address
292
- * @param {boolean} stable - bool
293
- * @param {string | number} amountTokenDesired - uint256
294
- * @param {string | number} amountTokenMin - uint256
295
- * @param {string | number} amountETHMin - uint256
296
- * @param {string} to - address
297
- * @param {string | number} deadline - uint256
298
- * @returns {string} encode data
299
- */
300
- export declare function encodeVE33V2RouterAddLiquidityETH(token: string, stable: boolean, amountTokenDesired: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number): string;
301
- /**
302
- * encode removeLiquidity
303
- * @param {string} tokenA - address
304
- * @param {string} tokenB - address
305
- * @param {boolean} stable - bool
306
- * @param {string | number} liquidity - uint256
307
- * @param {string | number} amountAMin - uint256
308
- * @param {string | number} amountBMin - uint256
309
- * @param {string} to - address
310
- * @param {string | number} deadline - uint256
311
- * @returns {string} encode data
312
- */
313
- export declare function encodeVE33V2RouterRemoveLiquidity(tokenA: string, tokenB: string, stable: boolean, liquidity: string | number, amountAMin: string | number, amountBMin: string | number, to: string, deadline: string | number): string;
314
- /**
315
- * encode removeLiquidityETH
316
- * @param {string} token - address
317
- * @param {boolean} stable - bool
318
- * @param {string | number} liquidity - uint256
319
- * @param {string | number} amountTokenMin - uint256
320
- * @param {string | number} amountETHMin - uint256
321
- * @param {string} to - address
322
- * @param {string | number} deadline - uint256
323
- * @returns {string} encode data
324
- */
325
- export declare function encodeVE33V2RouterRemoveLiquidityETH(token: string, stable: boolean, liquidity: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number): string;
326
- /**
327
- * encode removeLiquidityETHSupportingFeeOnTransferTokens
328
- * @param {string} token - address
329
- * @param {boolean} stable - bool
330
- * @param {string | number} liquidity - uint256
331
- * @param {string | number} amountTokenMin - uint256
332
- * @param {string | number} amountETHMin - uint256
333
- * @param {string} to - address
334
- * @param {string | number} deadline - uint256
335
- * @returns {string} encode data
336
- */
337
- export declare function encodeVE33V2RouterRemoveLiquidityETHSupportingFeeOnTransferTokens(token: string, stable: boolean, liquidity: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number): string;
338
- /**
339
- * encode swapExactETHForTokens
340
- * @param {string | number} amountOutMin - uint256
341
- * @param {[string, string, boolean, string]} routes - tuple[]
342
- * @param {string} to - address
343
- * @param {string | number} deadline - uint256
344
- * @returns {string} encode data
345
- */
346
- export declare function encodeVE33V2RouterSwapExactETHForTokens(amountOutMin: string | number, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
347
- /**
348
- * encode swapExactETHForTokensSupportingFeeOnTransferTokens
349
- * @param {string | number} amountOutMin - uint256
350
- * @param {[string, string, boolean, string]} routes - tuple[]
351
- * @param {string} to - address
352
- * @param {string | number} deadline - uint256
353
- * @returns {string} encode data
354
- */
355
- export declare function encodeVE33V2RouterSwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin: string | number, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
356
- /**
357
- * encode swapExactTokensForETH
358
- * @param {string | number} amountIn - uint256
359
- * @param {string | number} amountOutMin - uint256
360
- * @param {[string, string, boolean, string]} routes - tuple[]
361
- * @param {string} to - address
362
- * @param {string | number} deadline - uint256
363
- * @returns {string} encode data
364
- */
365
- export declare function encodeVE33V2RouterSwapExactTokensForETH(amountIn: string | number, amountOutMin: string | number, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
366
- /**
367
- * encode swapExactTokensForETHSupportingFeeOnTransferTokens
368
- * @param {string | number} amountIn - uint256
369
- * @param {string | number} amountOutMin - uint256
370
- * @param {[string, string, boolean, string]} routes - tuple[]
371
- * @param {string} to - address
372
- * @param {string | number} deadline - uint256
373
- * @returns {string} encode data
374
- */
375
- export declare function encodeVE33V2RouterSwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn: string | number, amountOutMin: string | number, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
376
- /**
377
- * encode swapExactTokensForTokens
378
- * @param {string | number} amountIn - uint256
379
- * @param {string | number} amountOutMin - uint256
380
- * @param {[string, string, boolean, string]} routes - tuple[]
381
- * @param {string} to - address
382
- * @param {string | number} deadline - uint256
383
- * @returns {string} encode data
384
- */
385
- export declare function encodeVE33V2RouterSwapExactTokensForTokens(amountIn: string | number, amountOutMin: string | number, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
386
- /**
387
- * encode swapExactTokensForTokensSupportingFeeOnTransferTokens
388
- * @param {string | number} amountIn - uint256
389
- * @param {string | number} amountOutMin - uint256
390
- * @param {[string, string, boolean, string]} routes - tuple[]
391
- * @param {string} to - address
392
- * @param {string | number} deadline - uint256
393
- * @returns {string} encode data
394
- */
395
- export declare function encodeVE33V2RouterSwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn: string | number, amountOutMin: string | number, routes: [string, string, boolean, string], to: string, deadline: string | number): string;
396
- /**
397
- * encode zapIn
398
- * @param {string} tokenIn - address
399
- * @param {string | number} amountInA - uint256
400
- * @param {string | number} amountInB - uint256
401
- * @param {{tokenA: string; tokenB: string; stable: boolean; factory: string; amountOutMinA: string | number; amountOutMinB: string | number; amountAMin: string | number; amountBMin: string | number}} zapInPool - tuple
402
- * @param {[string, string, boolean, string]} routesA - tuple[]
403
- * @param {[string, string, boolean, string]} routesB - tuple[]
404
- * @param {string} to - address
405
- * @param {boolean} stake - bool
406
- * @returns {string} encode data
407
- */
408
- export declare function encodeVE33V2RouterZapIn(tokenIn: string, amountInA: string | number, amountInB: string | number, zapInPool: {
409
- tokenA: string;
410
- tokenB: string;
411
- stable: boolean;
412
- factory: string;
413
- amountOutMinA: string | number;
414
- amountOutMinB: string | number;
415
- amountAMin: string | number;
416
- amountBMin: string | number;
417
- }, routesA: [string, string, boolean, string], routesB: [string, string, boolean, string], to: string, stake: boolean): string;
418
- /**
419
- * encode zapOut
420
- * @param {string} tokenOut - address
421
- * @param {string | number} liquidity - uint256
422
- * @param {{tokenA: string; tokenB: string; stable: boolean; factory: string; amountOutMinA: string | number; amountOutMinB: string | number; amountAMin: string | number; amountBMin: string | number}} zapOutPool - tuple
423
- * @param {[string, string, boolean, string]} routesA - tuple[]
424
- * @param {[string, string, boolean, string]} routesB - tuple[]
425
- * @returns {string} encode data
426
- */
427
- export declare function encodeVE33V2RouterZapOut(tokenOut: string, liquidity: string | number, zapOutPool: {
428
- tokenA: string;
429
- tokenB: string;
430
- stable: boolean;
431
- factory: string;
432
- amountOutMinA: string | number;
433
- amountOutMinB: string | number;
434
- amountAMin: string | number;
435
- amountBMin: string | number;
436
- }, routesA: [string, string, boolean, string], routesB: [string, string, boolean, string]): string;
@@ -1,4 +0,0 @@
1
-
2
- const CONTRACT_CONFIG = {"MulticallWithValid":"0xC81BEA01Ab9add22D734fd008B5400Fe273D05Df","ERC20Helper":"0xdbb14F2460bdCFe3918B360d54298fd483a7Ad12","VE33NonfungiblePositionManager":"0x2b36c1be2a16ACb71E6F6CccfCd7D20cdfE01867","DODOApprove":"0x5Da9A0Cb4202164DF40d171011f7752298E735De","VE33V2Router":"0x468e60B84b11B3B1532D7C41FcBb79DA352aa12d"};
3
- export default CONTRACT_CONFIG;
4
-