@imtbl/dex-sdk 2.0.0-alpha.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.
Files changed (74) hide show
  1. package/LICENSE.md +176 -0
  2. package/README.md +3 -0
  3. package/dist/browser/index.js +2 -0
  4. package/dist/node/index.cjs +2 -0
  5. package/dist/node/index.js +2 -0
  6. package/dist/types/config/config.test.d.ts +1 -0
  7. package/dist/types/config/index.d.ts +18 -0
  8. package/dist/types/constants/chains/immutable-mainnet.d.ts +2 -0
  9. package/dist/types/constants/chains/immutable-testnet.d.ts +2 -0
  10. package/dist/types/constants/chains/index.d.ts +2 -0
  11. package/dist/types/constants/index.d.ts +3 -0
  12. package/dist/types/constants/router.d.ts +8 -0
  13. package/dist/types/constants/tokens/immutable-mainnet.d.ts +5 -0
  14. package/dist/types/constants/tokens/immutable-testnet.d.ts +4 -0
  15. package/dist/types/constants/tokens/index.d.ts +2 -0
  16. package/dist/types/constants/wrapping.d.ts +2 -0
  17. package/dist/types/contracts/types/ERC20.d.ts +141 -0
  18. package/dist/types/contracts/types/ImmutableSwapProxy.d.ts +469 -0
  19. package/dist/types/contracts/types/Multicall.d.ts +83 -0
  20. package/dist/types/contracts/types/QuoterV2.d.ts +219 -0
  21. package/dist/types/contracts/types/UniswapV3Pool.d.ts +732 -0
  22. package/dist/types/contracts/types/WIMX.d.ts +179 -0
  23. package/dist/types/contracts/types/common.d.ts +50 -0
  24. package/dist/types/contracts/types/factories/ERC20__factory.d.ts +174 -0
  25. package/dist/types/contracts/types/factories/ImmutableSwapProxy__factory.d.ts +612 -0
  26. package/dist/types/contracts/types/factories/Multicall__factory.d.ts +90 -0
  27. package/dist/types/contracts/types/factories/QuoterV2__factory.d.ts +226 -0
  28. package/dist/types/contracts/types/factories/UniswapV3Pool__factory.d.ts +795 -0
  29. package/dist/types/contracts/types/factories/WIMX__factory.d.ts +219 -0
  30. package/dist/types/contracts/types/factories/index.d.ts +6 -0
  31. package/dist/types/contracts/types/index.d.ts +13 -0
  32. package/dist/types/errors/exchangeError.d.ts +61 -0
  33. package/dist/types/errors/index.d.ts +1 -0
  34. package/dist/types/exchange.d.ts +50 -0
  35. package/dist/types/exchange.getUnsignedSwapTxFromAmountIn.test.d.ts +1 -0
  36. package/dist/types/exchange.getUnsignedSwapTxFromAmountOut.test.d.ts +1 -0
  37. package/dist/types/exchange.test.d.ts +1 -0
  38. package/dist/types/index.d.ts +4 -0
  39. package/dist/types/lib/fees.d.ts +16 -0
  40. package/dist/types/lib/fees.test.d.ts +1 -0
  41. package/dist/types/lib/getQuotesForRoutes.d.ts +14 -0
  42. package/dist/types/lib/getQuotesForRoutes.test.d.ts +1 -0
  43. package/dist/types/lib/index.d.ts +3 -0
  44. package/dist/types/lib/multicall.d.ts +12 -0
  45. package/dist/types/lib/multicall.test.d.ts +1 -0
  46. package/dist/types/lib/nativeTokenService.d.ts +13 -0
  47. package/dist/types/lib/nativeTokenService.test.d.ts +1 -0
  48. package/dist/types/lib/poolUtils/computePoolAddress.d.ts +9 -0
  49. package/dist/types/lib/poolUtils/ensureCorrectERC20AddressOrder.test.d.ts +1 -0
  50. package/dist/types/lib/poolUtils/fetchValidPools.d.ts +14 -0
  51. package/dist/types/lib/poolUtils/fetchValidPools.test.d.ts +1 -0
  52. package/dist/types/lib/poolUtils/generateAllAcyclicPaths.test.d.ts +1 -0
  53. package/dist/types/lib/poolUtils/generateERC20Pairs.d.ts +7 -0
  54. package/dist/types/lib/poolUtils/generateERC20Pairs.test.d.ts +1 -0
  55. package/dist/types/lib/poolUtils/generatePossiblePoolsFromERC20Pairs.d.ts +11 -0
  56. package/dist/types/lib/poolUtils/generatePossiblePoolsFromERC20Pairs.test.d.ts +1 -0
  57. package/dist/types/lib/router.d.ts +24 -0
  58. package/dist/types/lib/router.test.d.ts +1 -0
  59. package/dist/types/lib/transactionUtils/approval.d.ts +25 -0
  60. package/dist/types/lib/transactionUtils/approval.test.d.ts +1 -0
  61. package/dist/types/lib/transactionUtils/gas.d.ts +18 -0
  62. package/dist/types/lib/transactionUtils/gas.test.d.ts +1 -0
  63. package/dist/types/lib/transactionUtils/getQuote.d.ts +13 -0
  64. package/dist/types/lib/transactionUtils/getQuote.test.d.ts +1 -0
  65. package/dist/types/lib/transactionUtils/slippage.d.ts +2 -0
  66. package/dist/types/lib/transactionUtils/slippage.test.d.ts +1 -0
  67. package/dist/types/lib/transactionUtils/swap.d.ts +16 -0
  68. package/dist/types/lib/transactionUtils/swap.test.d.ts +1 -0
  69. package/dist/types/lib/utils.d.ts +60 -0
  70. package/dist/types/lib/utils.test.d.ts +1 -0
  71. package/dist/types/test/utils.d.ts +134 -0
  72. package/dist/types/test/utils.test.d.ts +1 -0
  73. package/dist/types/types/index.d.ts +174 -0
  74. package/package.json +74 -0
@@ -0,0 +1,732 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
3
+ export interface UniswapV3PoolInterface extends Interface {
4
+ getFunction(nameOrSignature: "burn" | "collect" | "collectProtocol" | "factory" | "fee" | "feeGrowthGlobal0X128" | "feeGrowthGlobal1X128" | "flash" | "increaseObservationCardinalityNext" | "initialize" | "liquidity" | "maxLiquidityPerTick" | "mint" | "observations" | "observe" | "positions" | "protocolFees" | "setFeeProtocol" | "slot0" | "snapshotCumulativesInside" | "swap" | "tickBitmap" | "tickSpacing" | "ticks" | "token0" | "token1"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "Burn" | "Collect" | "CollectProtocol" | "Flash" | "IncreaseObservationCardinalityNext" | "Initialize" | "Mint" | "SetFeeProtocol" | "Swap"): EventFragment;
6
+ encodeFunctionData(functionFragment: "burn", values: [BigNumberish, BigNumberish, BigNumberish]): string;
7
+ encodeFunctionData(functionFragment: "collect", values: [
8
+ AddressLike,
9
+ BigNumberish,
10
+ BigNumberish,
11
+ BigNumberish,
12
+ BigNumberish
13
+ ]): string;
14
+ encodeFunctionData(functionFragment: "collectProtocol", values: [AddressLike, BigNumberish, BigNumberish]): string;
15
+ encodeFunctionData(functionFragment: "factory", values?: undefined): string;
16
+ encodeFunctionData(functionFragment: "fee", values?: undefined): string;
17
+ encodeFunctionData(functionFragment: "feeGrowthGlobal0X128", values?: undefined): string;
18
+ encodeFunctionData(functionFragment: "feeGrowthGlobal1X128", values?: undefined): string;
19
+ encodeFunctionData(functionFragment: "flash", values: [AddressLike, BigNumberish, BigNumberish, BytesLike]): string;
20
+ encodeFunctionData(functionFragment: "increaseObservationCardinalityNext", values: [BigNumberish]): string;
21
+ encodeFunctionData(functionFragment: "initialize", values: [BigNumberish]): string;
22
+ encodeFunctionData(functionFragment: "liquidity", values?: undefined): string;
23
+ encodeFunctionData(functionFragment: "maxLiquidityPerTick", values?: undefined): string;
24
+ encodeFunctionData(functionFragment: "mint", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
25
+ encodeFunctionData(functionFragment: "observations", values: [BigNumberish]): string;
26
+ encodeFunctionData(functionFragment: "observe", values: [BigNumberish[]]): string;
27
+ encodeFunctionData(functionFragment: "positions", values: [BytesLike]): string;
28
+ encodeFunctionData(functionFragment: "protocolFees", values?: undefined): string;
29
+ encodeFunctionData(functionFragment: "setFeeProtocol", values: [BigNumberish, BigNumberish]): string;
30
+ encodeFunctionData(functionFragment: "slot0", values?: undefined): string;
31
+ encodeFunctionData(functionFragment: "snapshotCumulativesInside", values: [BigNumberish, BigNumberish]): string;
32
+ encodeFunctionData(functionFragment: "swap", values: [AddressLike, boolean, BigNumberish, BigNumberish, BytesLike]): string;
33
+ encodeFunctionData(functionFragment: "tickBitmap", values: [BigNumberish]): string;
34
+ encodeFunctionData(functionFragment: "tickSpacing", values?: undefined): string;
35
+ encodeFunctionData(functionFragment: "ticks", values: [BigNumberish]): string;
36
+ encodeFunctionData(functionFragment: "token0", values?: undefined): string;
37
+ encodeFunctionData(functionFragment: "token1", values?: undefined): string;
38
+ decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
39
+ decodeFunctionResult(functionFragment: "collect", data: BytesLike): Result;
40
+ decodeFunctionResult(functionFragment: "collectProtocol", data: BytesLike): Result;
41
+ decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result;
42
+ decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result;
43
+ decodeFunctionResult(functionFragment: "feeGrowthGlobal0X128", data: BytesLike): Result;
44
+ decodeFunctionResult(functionFragment: "feeGrowthGlobal1X128", data: BytesLike): Result;
45
+ decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result;
46
+ decodeFunctionResult(functionFragment: "increaseObservationCardinalityNext", data: BytesLike): Result;
47
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: "liquidity", data: BytesLike): Result;
49
+ decodeFunctionResult(functionFragment: "maxLiquidityPerTick", data: BytesLike): Result;
50
+ decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
51
+ decodeFunctionResult(functionFragment: "observations", data: BytesLike): Result;
52
+ decodeFunctionResult(functionFragment: "observe", data: BytesLike): Result;
53
+ decodeFunctionResult(functionFragment: "positions", data: BytesLike): Result;
54
+ decodeFunctionResult(functionFragment: "protocolFees", data: BytesLike): Result;
55
+ decodeFunctionResult(functionFragment: "setFeeProtocol", data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: "slot0", data: BytesLike): Result;
57
+ decodeFunctionResult(functionFragment: "snapshotCumulativesInside", data: BytesLike): Result;
58
+ decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
59
+ decodeFunctionResult(functionFragment: "tickBitmap", data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: "tickSpacing", data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: "ticks", data: BytesLike): Result;
62
+ decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result;
63
+ decodeFunctionResult(functionFragment: "token1", data: BytesLike): Result;
64
+ }
65
+ export declare namespace BurnEvent {
66
+ type InputTuple = [
67
+ owner: AddressLike,
68
+ tickLower: BigNumberish,
69
+ tickUpper: BigNumberish,
70
+ amount: BigNumberish,
71
+ amount0: BigNumberish,
72
+ amount1: BigNumberish
73
+ ];
74
+ type OutputTuple = [
75
+ owner: string,
76
+ tickLower: bigint,
77
+ tickUpper: bigint,
78
+ amount: bigint,
79
+ amount0: bigint,
80
+ amount1: bigint
81
+ ];
82
+ interface OutputObject {
83
+ owner: string;
84
+ tickLower: bigint;
85
+ tickUpper: bigint;
86
+ amount: bigint;
87
+ amount0: bigint;
88
+ amount1: bigint;
89
+ }
90
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
91
+ type Filter = TypedDeferredTopicFilter<Event>;
92
+ type Log = TypedEventLog<Event>;
93
+ type LogDescription = TypedLogDescription<Event>;
94
+ }
95
+ export declare namespace CollectEvent {
96
+ type InputTuple = [
97
+ owner: AddressLike,
98
+ recipient: AddressLike,
99
+ tickLower: BigNumberish,
100
+ tickUpper: BigNumberish,
101
+ amount0: BigNumberish,
102
+ amount1: BigNumberish
103
+ ];
104
+ type OutputTuple = [
105
+ owner: string,
106
+ recipient: string,
107
+ tickLower: bigint,
108
+ tickUpper: bigint,
109
+ amount0: bigint,
110
+ amount1: bigint
111
+ ];
112
+ interface OutputObject {
113
+ owner: string;
114
+ recipient: string;
115
+ tickLower: bigint;
116
+ tickUpper: bigint;
117
+ amount0: bigint;
118
+ amount1: bigint;
119
+ }
120
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
121
+ type Filter = TypedDeferredTopicFilter<Event>;
122
+ type Log = TypedEventLog<Event>;
123
+ type LogDescription = TypedLogDescription<Event>;
124
+ }
125
+ export declare namespace CollectProtocolEvent {
126
+ type InputTuple = [
127
+ sender: AddressLike,
128
+ recipient: AddressLike,
129
+ amount0: BigNumberish,
130
+ amount1: BigNumberish
131
+ ];
132
+ type OutputTuple = [
133
+ sender: string,
134
+ recipient: string,
135
+ amount0: bigint,
136
+ amount1: bigint
137
+ ];
138
+ interface OutputObject {
139
+ sender: string;
140
+ recipient: string;
141
+ amount0: bigint;
142
+ amount1: bigint;
143
+ }
144
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
145
+ type Filter = TypedDeferredTopicFilter<Event>;
146
+ type Log = TypedEventLog<Event>;
147
+ type LogDescription = TypedLogDescription<Event>;
148
+ }
149
+ export declare namespace FlashEvent {
150
+ type InputTuple = [
151
+ sender: AddressLike,
152
+ recipient: AddressLike,
153
+ amount0: BigNumberish,
154
+ amount1: BigNumberish,
155
+ paid0: BigNumberish,
156
+ paid1: BigNumberish
157
+ ];
158
+ type OutputTuple = [
159
+ sender: string,
160
+ recipient: string,
161
+ amount0: bigint,
162
+ amount1: bigint,
163
+ paid0: bigint,
164
+ paid1: bigint
165
+ ];
166
+ interface OutputObject {
167
+ sender: string;
168
+ recipient: string;
169
+ amount0: bigint;
170
+ amount1: bigint;
171
+ paid0: bigint;
172
+ paid1: bigint;
173
+ }
174
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
175
+ type Filter = TypedDeferredTopicFilter<Event>;
176
+ type Log = TypedEventLog<Event>;
177
+ type LogDescription = TypedLogDescription<Event>;
178
+ }
179
+ export declare namespace IncreaseObservationCardinalityNextEvent {
180
+ type InputTuple = [
181
+ observationCardinalityNextOld: BigNumberish,
182
+ observationCardinalityNextNew: BigNumberish
183
+ ];
184
+ type OutputTuple = [
185
+ observationCardinalityNextOld: bigint,
186
+ observationCardinalityNextNew: bigint
187
+ ];
188
+ interface OutputObject {
189
+ observationCardinalityNextOld: bigint;
190
+ observationCardinalityNextNew: bigint;
191
+ }
192
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
193
+ type Filter = TypedDeferredTopicFilter<Event>;
194
+ type Log = TypedEventLog<Event>;
195
+ type LogDescription = TypedLogDescription<Event>;
196
+ }
197
+ export declare namespace InitializeEvent {
198
+ type InputTuple = [sqrtPriceX96: BigNumberish, tick: BigNumberish];
199
+ type OutputTuple = [sqrtPriceX96: bigint, tick: bigint];
200
+ interface OutputObject {
201
+ sqrtPriceX96: bigint;
202
+ tick: bigint;
203
+ }
204
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
205
+ type Filter = TypedDeferredTopicFilter<Event>;
206
+ type Log = TypedEventLog<Event>;
207
+ type LogDescription = TypedLogDescription<Event>;
208
+ }
209
+ export declare namespace MintEvent {
210
+ type InputTuple = [
211
+ sender: AddressLike,
212
+ owner: AddressLike,
213
+ tickLower: BigNumberish,
214
+ tickUpper: BigNumberish,
215
+ amount: BigNumberish,
216
+ amount0: BigNumberish,
217
+ amount1: BigNumberish
218
+ ];
219
+ type OutputTuple = [
220
+ sender: string,
221
+ owner: string,
222
+ tickLower: bigint,
223
+ tickUpper: bigint,
224
+ amount: bigint,
225
+ amount0: bigint,
226
+ amount1: bigint
227
+ ];
228
+ interface OutputObject {
229
+ sender: string;
230
+ owner: string;
231
+ tickLower: bigint;
232
+ tickUpper: bigint;
233
+ amount: bigint;
234
+ amount0: bigint;
235
+ amount1: bigint;
236
+ }
237
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
238
+ type Filter = TypedDeferredTopicFilter<Event>;
239
+ type Log = TypedEventLog<Event>;
240
+ type LogDescription = TypedLogDescription<Event>;
241
+ }
242
+ export declare namespace SetFeeProtocolEvent {
243
+ type InputTuple = [
244
+ feeProtocol0Old: BigNumberish,
245
+ feeProtocol1Old: BigNumberish,
246
+ feeProtocol0New: BigNumberish,
247
+ feeProtocol1New: BigNumberish
248
+ ];
249
+ type OutputTuple = [
250
+ feeProtocol0Old: bigint,
251
+ feeProtocol1Old: bigint,
252
+ feeProtocol0New: bigint,
253
+ feeProtocol1New: bigint
254
+ ];
255
+ interface OutputObject {
256
+ feeProtocol0Old: bigint;
257
+ feeProtocol1Old: bigint;
258
+ feeProtocol0New: bigint;
259
+ feeProtocol1New: bigint;
260
+ }
261
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
262
+ type Filter = TypedDeferredTopicFilter<Event>;
263
+ type Log = TypedEventLog<Event>;
264
+ type LogDescription = TypedLogDescription<Event>;
265
+ }
266
+ export declare namespace SwapEvent {
267
+ type InputTuple = [
268
+ sender: AddressLike,
269
+ recipient: AddressLike,
270
+ amount0: BigNumberish,
271
+ amount1: BigNumberish,
272
+ sqrtPriceX96: BigNumberish,
273
+ liquidity: BigNumberish,
274
+ tick: BigNumberish
275
+ ];
276
+ type OutputTuple = [
277
+ sender: string,
278
+ recipient: string,
279
+ amount0: bigint,
280
+ amount1: bigint,
281
+ sqrtPriceX96: bigint,
282
+ liquidity: bigint,
283
+ tick: bigint
284
+ ];
285
+ interface OutputObject {
286
+ sender: string;
287
+ recipient: string;
288
+ amount0: bigint;
289
+ amount1: bigint;
290
+ sqrtPriceX96: bigint;
291
+ liquidity: bigint;
292
+ tick: bigint;
293
+ }
294
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
295
+ type Filter = TypedDeferredTopicFilter<Event>;
296
+ type Log = TypedEventLog<Event>;
297
+ type LogDescription = TypedLogDescription<Event>;
298
+ }
299
+ export interface UniswapV3Pool extends BaseContract {
300
+ connect(runner?: ContractRunner | null): UniswapV3Pool;
301
+ waitForDeployment(): Promise<this>;
302
+ interface: UniswapV3PoolInterface;
303
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
304
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
305
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
306
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
307
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
308
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
309
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
310
+ listeners(eventName?: string): Promise<Array<Listener>>;
311
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
312
+ burn: TypedContractMethod<[
313
+ tickLower: BigNumberish,
314
+ tickUpper: BigNumberish,
315
+ amount: BigNumberish
316
+ ], [
317
+ [bigint, bigint] & {
318
+ amount0: bigint;
319
+ amount1: bigint;
320
+ }
321
+ ], "nonpayable">;
322
+ collect: TypedContractMethod<[
323
+ recipient: AddressLike,
324
+ tickLower: BigNumberish,
325
+ tickUpper: BigNumberish,
326
+ amount0Requested: BigNumberish,
327
+ amount1Requested: BigNumberish
328
+ ], [
329
+ [bigint, bigint] & {
330
+ amount0: bigint;
331
+ amount1: bigint;
332
+ }
333
+ ], "nonpayable">;
334
+ collectProtocol: TypedContractMethod<[
335
+ recipient: AddressLike,
336
+ amount0Requested: BigNumberish,
337
+ amount1Requested: BigNumberish
338
+ ], [
339
+ [bigint, bigint] & {
340
+ amount0: bigint;
341
+ amount1: bigint;
342
+ }
343
+ ], "nonpayable">;
344
+ factory: TypedContractMethod<[], [string], "view">;
345
+ fee: TypedContractMethod<[], [bigint], "view">;
346
+ feeGrowthGlobal0X128: TypedContractMethod<[], [bigint], "view">;
347
+ feeGrowthGlobal1X128: TypedContractMethod<[], [bigint], "view">;
348
+ flash: TypedContractMethod<[
349
+ recipient: AddressLike,
350
+ amount0: BigNumberish,
351
+ amount1: BigNumberish,
352
+ data: BytesLike
353
+ ], [
354
+ void
355
+ ], "nonpayable">;
356
+ increaseObservationCardinalityNext: TypedContractMethod<[
357
+ observationCardinalityNext: BigNumberish
358
+ ], [
359
+ void
360
+ ], "nonpayable">;
361
+ initialize: TypedContractMethod<[
362
+ sqrtPriceX96: BigNumberish
363
+ ], [
364
+ void
365
+ ], "nonpayable">;
366
+ liquidity: TypedContractMethod<[], [bigint], "view">;
367
+ maxLiquidityPerTick: TypedContractMethod<[], [bigint], "view">;
368
+ mint: TypedContractMethod<[
369
+ recipient: AddressLike,
370
+ tickLower: BigNumberish,
371
+ tickUpper: BigNumberish,
372
+ amount: BigNumberish,
373
+ data: BytesLike
374
+ ], [
375
+ [bigint, bigint] & {
376
+ amount0: bigint;
377
+ amount1: bigint;
378
+ }
379
+ ], "nonpayable">;
380
+ observations: TypedContractMethod<[
381
+ arg0: BigNumberish
382
+ ], [
383
+ [
384
+ bigint,
385
+ bigint,
386
+ bigint,
387
+ boolean
388
+ ] & {
389
+ blockTimestamp: bigint;
390
+ tickCumulative: bigint;
391
+ secondsPerLiquidityCumulativeX128: bigint;
392
+ initialized: boolean;
393
+ }
394
+ ], "view">;
395
+ observe: TypedContractMethod<[
396
+ secondsAgos: BigNumberish[]
397
+ ], [
398
+ [
399
+ bigint[],
400
+ bigint[]
401
+ ] & {
402
+ tickCumulatives: bigint[];
403
+ secondsPerLiquidityCumulativeX128s: bigint[];
404
+ }
405
+ ], "view">;
406
+ positions: TypedContractMethod<[
407
+ arg0: BytesLike
408
+ ], [
409
+ [
410
+ bigint,
411
+ bigint,
412
+ bigint,
413
+ bigint,
414
+ bigint
415
+ ] & {
416
+ liquidity: bigint;
417
+ feeGrowthInside0LastX128: bigint;
418
+ feeGrowthInside1LastX128: bigint;
419
+ tokensOwed0: bigint;
420
+ tokensOwed1: bigint;
421
+ }
422
+ ], "view">;
423
+ protocolFees: TypedContractMethod<[
424
+ ], [
425
+ [bigint, bigint] & {
426
+ token0: bigint;
427
+ token1: bigint;
428
+ }
429
+ ], "view">;
430
+ setFeeProtocol: TypedContractMethod<[
431
+ feeProtocol0: BigNumberish,
432
+ feeProtocol1: BigNumberish
433
+ ], [
434
+ void
435
+ ], "nonpayable">;
436
+ slot0: TypedContractMethod<[
437
+ ], [
438
+ [
439
+ bigint,
440
+ bigint,
441
+ bigint,
442
+ bigint,
443
+ bigint,
444
+ bigint,
445
+ boolean
446
+ ] & {
447
+ sqrtPriceX96: bigint;
448
+ tick: bigint;
449
+ observationIndex: bigint;
450
+ observationCardinality: bigint;
451
+ observationCardinalityNext: bigint;
452
+ feeProtocol: bigint;
453
+ unlocked: boolean;
454
+ }
455
+ ], "view">;
456
+ snapshotCumulativesInside: TypedContractMethod<[
457
+ tickLower: BigNumberish,
458
+ tickUpper: BigNumberish
459
+ ], [
460
+ [
461
+ bigint,
462
+ bigint,
463
+ bigint
464
+ ] & {
465
+ tickCumulativeInside: bigint;
466
+ secondsPerLiquidityInsideX128: bigint;
467
+ secondsInside: bigint;
468
+ }
469
+ ], "view">;
470
+ swap: TypedContractMethod<[
471
+ recipient: AddressLike,
472
+ zeroForOne: boolean,
473
+ amountSpecified: BigNumberish,
474
+ sqrtPriceLimitX96: BigNumberish,
475
+ data: BytesLike
476
+ ], [
477
+ [bigint, bigint] & {
478
+ amount0: bigint;
479
+ amount1: bigint;
480
+ }
481
+ ], "nonpayable">;
482
+ tickBitmap: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
483
+ tickSpacing: TypedContractMethod<[], [bigint], "view">;
484
+ ticks: TypedContractMethod<[
485
+ arg0: BigNumberish
486
+ ], [
487
+ [
488
+ bigint,
489
+ bigint,
490
+ bigint,
491
+ bigint,
492
+ bigint,
493
+ bigint,
494
+ bigint,
495
+ boolean
496
+ ] & {
497
+ liquidityGross: bigint;
498
+ liquidityNet: bigint;
499
+ feeGrowthOutside0X128: bigint;
500
+ feeGrowthOutside1X128: bigint;
501
+ tickCumulativeOutside: bigint;
502
+ secondsPerLiquidityOutsideX128: bigint;
503
+ secondsOutside: bigint;
504
+ initialized: boolean;
505
+ }
506
+ ], "view">;
507
+ token0: TypedContractMethod<[], [string], "view">;
508
+ token1: TypedContractMethod<[], [string], "view">;
509
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
510
+ getFunction(nameOrSignature: "burn"): TypedContractMethod<[
511
+ tickLower: BigNumberish,
512
+ tickUpper: BigNumberish,
513
+ amount: BigNumberish
514
+ ], [
515
+ [bigint, bigint] & {
516
+ amount0: bigint;
517
+ amount1: bigint;
518
+ }
519
+ ], "nonpayable">;
520
+ getFunction(nameOrSignature: "collect"): TypedContractMethod<[
521
+ recipient: AddressLike,
522
+ tickLower: BigNumberish,
523
+ tickUpper: BigNumberish,
524
+ amount0Requested: BigNumberish,
525
+ amount1Requested: BigNumberish
526
+ ], [
527
+ [bigint, bigint] & {
528
+ amount0: bigint;
529
+ amount1: bigint;
530
+ }
531
+ ], "nonpayable">;
532
+ getFunction(nameOrSignature: "collectProtocol"): TypedContractMethod<[
533
+ recipient: AddressLike,
534
+ amount0Requested: BigNumberish,
535
+ amount1Requested: BigNumberish
536
+ ], [
537
+ [bigint, bigint] & {
538
+ amount0: bigint;
539
+ amount1: bigint;
540
+ }
541
+ ], "nonpayable">;
542
+ getFunction(nameOrSignature: "factory"): TypedContractMethod<[], [string], "view">;
543
+ getFunction(nameOrSignature: "fee"): TypedContractMethod<[], [bigint], "view">;
544
+ getFunction(nameOrSignature: "feeGrowthGlobal0X128"): TypedContractMethod<[], [bigint], "view">;
545
+ getFunction(nameOrSignature: "feeGrowthGlobal1X128"): TypedContractMethod<[], [bigint], "view">;
546
+ getFunction(nameOrSignature: "flash"): TypedContractMethod<[
547
+ recipient: AddressLike,
548
+ amount0: BigNumberish,
549
+ amount1: BigNumberish,
550
+ data: BytesLike
551
+ ], [
552
+ void
553
+ ], "nonpayable">;
554
+ getFunction(nameOrSignature: "increaseObservationCardinalityNext"): TypedContractMethod<[
555
+ observationCardinalityNext: BigNumberish
556
+ ], [
557
+ void
558
+ ], "nonpayable">;
559
+ getFunction(nameOrSignature: "initialize"): TypedContractMethod<[sqrtPriceX96: BigNumberish], [void], "nonpayable">;
560
+ getFunction(nameOrSignature: "liquidity"): TypedContractMethod<[], [bigint], "view">;
561
+ getFunction(nameOrSignature: "maxLiquidityPerTick"): TypedContractMethod<[], [bigint], "view">;
562
+ getFunction(nameOrSignature: "mint"): TypedContractMethod<[
563
+ recipient: AddressLike,
564
+ tickLower: BigNumberish,
565
+ tickUpper: BigNumberish,
566
+ amount: BigNumberish,
567
+ data: BytesLike
568
+ ], [
569
+ [bigint, bigint] & {
570
+ amount0: bigint;
571
+ amount1: bigint;
572
+ }
573
+ ], "nonpayable">;
574
+ getFunction(nameOrSignature: "observations"): TypedContractMethod<[
575
+ arg0: BigNumberish
576
+ ], [
577
+ [
578
+ bigint,
579
+ bigint,
580
+ bigint,
581
+ boolean
582
+ ] & {
583
+ blockTimestamp: bigint;
584
+ tickCumulative: bigint;
585
+ secondsPerLiquidityCumulativeX128: bigint;
586
+ initialized: boolean;
587
+ }
588
+ ], "view">;
589
+ getFunction(nameOrSignature: "observe"): TypedContractMethod<[
590
+ secondsAgos: BigNumberish[]
591
+ ], [
592
+ [
593
+ bigint[],
594
+ bigint[]
595
+ ] & {
596
+ tickCumulatives: bigint[];
597
+ secondsPerLiquidityCumulativeX128s: bigint[];
598
+ }
599
+ ], "view">;
600
+ getFunction(nameOrSignature: "positions"): TypedContractMethod<[
601
+ arg0: BytesLike
602
+ ], [
603
+ [
604
+ bigint,
605
+ bigint,
606
+ bigint,
607
+ bigint,
608
+ bigint
609
+ ] & {
610
+ liquidity: bigint;
611
+ feeGrowthInside0LastX128: bigint;
612
+ feeGrowthInside1LastX128: bigint;
613
+ tokensOwed0: bigint;
614
+ tokensOwed1: bigint;
615
+ }
616
+ ], "view">;
617
+ getFunction(nameOrSignature: "protocolFees"): TypedContractMethod<[
618
+ ], [
619
+ [bigint, bigint] & {
620
+ token0: bigint;
621
+ token1: bigint;
622
+ }
623
+ ], "view">;
624
+ getFunction(nameOrSignature: "setFeeProtocol"): TypedContractMethod<[
625
+ feeProtocol0: BigNumberish,
626
+ feeProtocol1: BigNumberish
627
+ ], [
628
+ void
629
+ ], "nonpayable">;
630
+ getFunction(nameOrSignature: "slot0"): TypedContractMethod<[
631
+ ], [
632
+ [
633
+ bigint,
634
+ bigint,
635
+ bigint,
636
+ bigint,
637
+ bigint,
638
+ bigint,
639
+ boolean
640
+ ] & {
641
+ sqrtPriceX96: bigint;
642
+ tick: bigint;
643
+ observationIndex: bigint;
644
+ observationCardinality: bigint;
645
+ observationCardinalityNext: bigint;
646
+ feeProtocol: bigint;
647
+ unlocked: boolean;
648
+ }
649
+ ], "view">;
650
+ getFunction(nameOrSignature: "snapshotCumulativesInside"): TypedContractMethod<[
651
+ tickLower: BigNumberish,
652
+ tickUpper: BigNumberish
653
+ ], [
654
+ [
655
+ bigint,
656
+ bigint,
657
+ bigint
658
+ ] & {
659
+ tickCumulativeInside: bigint;
660
+ secondsPerLiquidityInsideX128: bigint;
661
+ secondsInside: bigint;
662
+ }
663
+ ], "view">;
664
+ getFunction(nameOrSignature: "swap"): TypedContractMethod<[
665
+ recipient: AddressLike,
666
+ zeroForOne: boolean,
667
+ amountSpecified: BigNumberish,
668
+ sqrtPriceLimitX96: BigNumberish,
669
+ data: BytesLike
670
+ ], [
671
+ [bigint, bigint] & {
672
+ amount0: bigint;
673
+ amount1: bigint;
674
+ }
675
+ ], "nonpayable">;
676
+ getFunction(nameOrSignature: "tickBitmap"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
677
+ getFunction(nameOrSignature: "tickSpacing"): TypedContractMethod<[], [bigint], "view">;
678
+ getFunction(nameOrSignature: "ticks"): TypedContractMethod<[
679
+ arg0: BigNumberish
680
+ ], [
681
+ [
682
+ bigint,
683
+ bigint,
684
+ bigint,
685
+ bigint,
686
+ bigint,
687
+ bigint,
688
+ bigint,
689
+ boolean
690
+ ] & {
691
+ liquidityGross: bigint;
692
+ liquidityNet: bigint;
693
+ feeGrowthOutside0X128: bigint;
694
+ feeGrowthOutside1X128: bigint;
695
+ tickCumulativeOutside: bigint;
696
+ secondsPerLiquidityOutsideX128: bigint;
697
+ secondsOutside: bigint;
698
+ initialized: boolean;
699
+ }
700
+ ], "view">;
701
+ getFunction(nameOrSignature: "token0"): TypedContractMethod<[], [string], "view">;
702
+ getFunction(nameOrSignature: "token1"): TypedContractMethod<[], [string], "view">;
703
+ getEvent(key: "Burn"): TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
704
+ getEvent(key: "Collect"): TypedContractEvent<CollectEvent.InputTuple, CollectEvent.OutputTuple, CollectEvent.OutputObject>;
705
+ getEvent(key: "CollectProtocol"): TypedContractEvent<CollectProtocolEvent.InputTuple, CollectProtocolEvent.OutputTuple, CollectProtocolEvent.OutputObject>;
706
+ getEvent(key: "Flash"): TypedContractEvent<FlashEvent.InputTuple, FlashEvent.OutputTuple, FlashEvent.OutputObject>;
707
+ getEvent(key: "IncreaseObservationCardinalityNext"): TypedContractEvent<IncreaseObservationCardinalityNextEvent.InputTuple, IncreaseObservationCardinalityNextEvent.OutputTuple, IncreaseObservationCardinalityNextEvent.OutputObject>;
708
+ getEvent(key: "Initialize"): TypedContractEvent<InitializeEvent.InputTuple, InitializeEvent.OutputTuple, InitializeEvent.OutputObject>;
709
+ getEvent(key: "Mint"): TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
710
+ getEvent(key: "SetFeeProtocol"): TypedContractEvent<SetFeeProtocolEvent.InputTuple, SetFeeProtocolEvent.OutputTuple, SetFeeProtocolEvent.OutputObject>;
711
+ getEvent(key: "Swap"): TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
712
+ filters: {
713
+ "Burn(address,int24,int24,uint128,uint256,uint256)": TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
714
+ Burn: TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
715
+ "Collect(address,address,int24,int24,uint128,uint128)": TypedContractEvent<CollectEvent.InputTuple, CollectEvent.OutputTuple, CollectEvent.OutputObject>;
716
+ Collect: TypedContractEvent<CollectEvent.InputTuple, CollectEvent.OutputTuple, CollectEvent.OutputObject>;
717
+ "CollectProtocol(address,address,uint128,uint128)": TypedContractEvent<CollectProtocolEvent.InputTuple, CollectProtocolEvent.OutputTuple, CollectProtocolEvent.OutputObject>;
718
+ CollectProtocol: TypedContractEvent<CollectProtocolEvent.InputTuple, CollectProtocolEvent.OutputTuple, CollectProtocolEvent.OutputObject>;
719
+ "Flash(address,address,uint256,uint256,uint256,uint256)": TypedContractEvent<FlashEvent.InputTuple, FlashEvent.OutputTuple, FlashEvent.OutputObject>;
720
+ Flash: TypedContractEvent<FlashEvent.InputTuple, FlashEvent.OutputTuple, FlashEvent.OutputObject>;
721
+ "IncreaseObservationCardinalityNext(uint16,uint16)": TypedContractEvent<IncreaseObservationCardinalityNextEvent.InputTuple, IncreaseObservationCardinalityNextEvent.OutputTuple, IncreaseObservationCardinalityNextEvent.OutputObject>;
722
+ IncreaseObservationCardinalityNext: TypedContractEvent<IncreaseObservationCardinalityNextEvent.InputTuple, IncreaseObservationCardinalityNextEvent.OutputTuple, IncreaseObservationCardinalityNextEvent.OutputObject>;
723
+ "Initialize(uint160,int24)": TypedContractEvent<InitializeEvent.InputTuple, InitializeEvent.OutputTuple, InitializeEvent.OutputObject>;
724
+ Initialize: TypedContractEvent<InitializeEvent.InputTuple, InitializeEvent.OutputTuple, InitializeEvent.OutputObject>;
725
+ "Mint(address,address,int24,int24,uint128,uint256,uint256)": TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
726
+ Mint: TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
727
+ "SetFeeProtocol(uint8,uint8,uint8,uint8)": TypedContractEvent<SetFeeProtocolEvent.InputTuple, SetFeeProtocolEvent.OutputTuple, SetFeeProtocolEvent.OutputObject>;
728
+ SetFeeProtocol: TypedContractEvent<SetFeeProtocolEvent.InputTuple, SetFeeProtocolEvent.OutputTuple, SetFeeProtocolEvent.OutputObject>;
729
+ "Swap(address,address,int256,int256,uint160,uint128,int24)": TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
730
+ Swap: TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
731
+ };
732
+ }