@xccy/ts-sdk 0.1.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.
@@ -0,0 +1,796 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ EventFragment,
12
+ AddressLike,
13
+ ContractRunner,
14
+ ContractMethod,
15
+ Listener,
16
+ } from "ethers";
17
+ import type {
18
+ TypedContractEvent,
19
+ TypedDeferredTopicFilter,
20
+ TypedEventLog,
21
+ TypedLogDescription,
22
+ TypedListener,
23
+ TypedContractMethod,
24
+ } from "./common";
25
+
26
+ export declare namespace PoolKey {
27
+ export type KeyStruct = {
28
+ underlyingAsset: AddressLike;
29
+ compoundToken: AddressLike;
30
+ termStartTimestampWad: BigNumberish;
31
+ termEndTimestampWad: BigNumberish;
32
+ feeWad: BigNumberish;
33
+ tickSpacing: BigNumberish;
34
+ };
35
+
36
+ export type KeyStructOutput = [
37
+ underlyingAsset: string,
38
+ compoundToken: string,
39
+ termStartTimestampWad: bigint,
40
+ termEndTimestampWad: bigint,
41
+ feeWad: bigint,
42
+ tickSpacing: bigint
43
+ ] & {
44
+ underlyingAsset: string;
45
+ compoundToken: string;
46
+ termStartTimestampWad: bigint;
47
+ termEndTimestampWad: bigint;
48
+ feeWad: bigint;
49
+ tickSpacing: bigint;
50
+ };
51
+ }
52
+
53
+ export declare namespace Account {
54
+ export type AccountIdStruct = {
55
+ owner: AddressLike;
56
+ id: BigNumberish;
57
+ isolatedMarginToken: AddressLike;
58
+ };
59
+
60
+ export type AccountIdStructOutput = [
61
+ owner: string,
62
+ id: bigint,
63
+ isolatedMarginToken: string
64
+ ] & { owner: string; id: bigint; isolatedMarginToken: string };
65
+ }
66
+
67
+ export declare namespace VAMMTypes {
68
+ export type SwapParamsStruct = {
69
+ account: Account.AccountIdStruct;
70
+ amountSpecified: BigNumberish;
71
+ sqrtPriceLimitX96: BigNumberish;
72
+ tickLower: BigNumberish;
73
+ tickUpper: BigNumberish;
74
+ };
75
+
76
+ export type SwapParamsStructOutput = [
77
+ account: Account.AccountIdStructOutput,
78
+ amountSpecified: bigint,
79
+ sqrtPriceLimitX96: bigint,
80
+ tickLower: bigint,
81
+ tickUpper: bigint
82
+ ] & {
83
+ account: Account.AccountIdStructOutput;
84
+ amountSpecified: bigint;
85
+ sqrtPriceLimitX96: bigint;
86
+ tickLower: bigint;
87
+ tickUpper: bigint;
88
+ };
89
+ }
90
+
91
+ export interface VAMMManagerInterface extends Interface {
92
+ getFunction(
93
+ nameOrSignature:
94
+ | "acceptOwnership"
95
+ | "burn"
96
+ | "computeGrowthInside"
97
+ | "createPool"
98
+ | "getVAMMState"
99
+ | "initialize"
100
+ | "mint"
101
+ | "owner"
102
+ | "pendingOwner"
103
+ | "poolExists"
104
+ | "renounceOwnership"
105
+ | "swap"
106
+ | "transferOwnership"
107
+ ): FunctionFragment;
108
+
109
+ getEvent(
110
+ nameOrSignatureOrTopic:
111
+ | "Burn"
112
+ | "Initialized"
113
+ | "Mint"
114
+ | "OwnershipTransferStarted"
115
+ | "OwnershipTransferred"
116
+ | "PoolInitialized"
117
+ | "Swap"
118
+ ): EventFragment;
119
+
120
+ encodeFunctionData(
121
+ functionFragment: "acceptOwnership",
122
+ values?: undefined
123
+ ): string;
124
+ encodeFunctionData(
125
+ functionFragment: "burn",
126
+ values: [
127
+ PoolKey.KeyStruct,
128
+ Account.AccountIdStruct,
129
+ BigNumberish,
130
+ BigNumberish,
131
+ BigNumberish
132
+ ]
133
+ ): string;
134
+ encodeFunctionData(
135
+ functionFragment: "computeGrowthInside",
136
+ values: [BytesLike, BigNumberish, BigNumberish]
137
+ ): string;
138
+ encodeFunctionData(
139
+ functionFragment: "createPool",
140
+ values: [PoolKey.KeyStruct, AddressLike, BigNumberish]
141
+ ): string;
142
+ encodeFunctionData(
143
+ functionFragment: "getVAMMState",
144
+ values: [BytesLike]
145
+ ): string;
146
+ encodeFunctionData(
147
+ functionFragment: "initialize",
148
+ values: [AddressLike, AddressLike]
149
+ ): string;
150
+ encodeFunctionData(
151
+ functionFragment: "mint",
152
+ values: [
153
+ PoolKey.KeyStruct,
154
+ Account.AccountIdStruct,
155
+ BigNumberish,
156
+ BigNumberish,
157
+ BigNumberish
158
+ ]
159
+ ): string;
160
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
161
+ encodeFunctionData(
162
+ functionFragment: "pendingOwner",
163
+ values?: undefined
164
+ ): string;
165
+ encodeFunctionData(
166
+ functionFragment: "poolExists",
167
+ values: [PoolKey.KeyStruct]
168
+ ): string;
169
+ encodeFunctionData(
170
+ functionFragment: "renounceOwnership",
171
+ values?: undefined
172
+ ): string;
173
+ encodeFunctionData(
174
+ functionFragment: "swap",
175
+ values: [PoolKey.KeyStruct, VAMMTypes.SwapParamsStruct]
176
+ ): string;
177
+ encodeFunctionData(
178
+ functionFragment: "transferOwnership",
179
+ values: [AddressLike]
180
+ ): string;
181
+
182
+ decodeFunctionResult(
183
+ functionFragment: "acceptOwnership",
184
+ data: BytesLike
185
+ ): Result;
186
+ decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
187
+ decodeFunctionResult(
188
+ functionFragment: "computeGrowthInside",
189
+ data: BytesLike
190
+ ): Result;
191
+ decodeFunctionResult(functionFragment: "createPool", data: BytesLike): Result;
192
+ decodeFunctionResult(
193
+ functionFragment: "getVAMMState",
194
+ data: BytesLike
195
+ ): Result;
196
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
197
+ decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
198
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
199
+ decodeFunctionResult(
200
+ functionFragment: "pendingOwner",
201
+ data: BytesLike
202
+ ): Result;
203
+ decodeFunctionResult(functionFragment: "poolExists", data: BytesLike): Result;
204
+ decodeFunctionResult(
205
+ functionFragment: "renounceOwnership",
206
+ data: BytesLike
207
+ ): Result;
208
+ decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
209
+ decodeFunctionResult(
210
+ functionFragment: "transferOwnership",
211
+ data: BytesLike
212
+ ): Result;
213
+ }
214
+
215
+ export namespace BurnEvent {
216
+ export type InputTuple = [
217
+ poolId: BytesLike,
218
+ owner: AddressLike,
219
+ accountId: BigNumberish,
220
+ isolatedMarginToken: AddressLike,
221
+ tickLower: BigNumberish,
222
+ tickUpper: BigNumberish,
223
+ amount: BigNumberish,
224
+ feeIncurred: BigNumberish
225
+ ];
226
+ export type OutputTuple = [
227
+ poolId: string,
228
+ owner: string,
229
+ accountId: bigint,
230
+ isolatedMarginToken: string,
231
+ tickLower: bigint,
232
+ tickUpper: bigint,
233
+ amount: bigint,
234
+ feeIncurred: bigint
235
+ ];
236
+ export interface OutputObject {
237
+ poolId: string;
238
+ owner: string;
239
+ accountId: bigint;
240
+ isolatedMarginToken: string;
241
+ tickLower: bigint;
242
+ tickUpper: bigint;
243
+ amount: bigint;
244
+ feeIncurred: bigint;
245
+ }
246
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
247
+ export type Filter = TypedDeferredTopicFilter<Event>;
248
+ export type Log = TypedEventLog<Event>;
249
+ export type LogDescription = TypedLogDescription<Event>;
250
+ }
251
+
252
+ export namespace InitializedEvent {
253
+ export type InputTuple = [version: BigNumberish];
254
+ export type OutputTuple = [version: bigint];
255
+ export interface OutputObject {
256
+ version: bigint;
257
+ }
258
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
259
+ export type Filter = TypedDeferredTopicFilter<Event>;
260
+ export type Log = TypedEventLog<Event>;
261
+ export type LogDescription = TypedLogDescription<Event>;
262
+ }
263
+
264
+ export namespace MintEvent {
265
+ export type InputTuple = [
266
+ poolId: BytesLike,
267
+ owner: AddressLike,
268
+ accountId: BigNumberish,
269
+ isolatedMarginToken: AddressLike,
270
+ tickLower: BigNumberish,
271
+ tickUpper: BigNumberish,
272
+ amount: BigNumberish,
273
+ feeIncurred: BigNumberish
274
+ ];
275
+ export type OutputTuple = [
276
+ poolId: string,
277
+ owner: string,
278
+ accountId: bigint,
279
+ isolatedMarginToken: string,
280
+ tickLower: bigint,
281
+ tickUpper: bigint,
282
+ amount: bigint,
283
+ feeIncurred: bigint
284
+ ];
285
+ export interface OutputObject {
286
+ poolId: string;
287
+ owner: string;
288
+ accountId: bigint;
289
+ isolatedMarginToken: string;
290
+ tickLower: bigint;
291
+ tickUpper: bigint;
292
+ amount: bigint;
293
+ feeIncurred: bigint;
294
+ }
295
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
296
+ export type Filter = TypedDeferredTopicFilter<Event>;
297
+ export type Log = TypedEventLog<Event>;
298
+ export type LogDescription = TypedLogDescription<Event>;
299
+ }
300
+
301
+ export namespace OwnershipTransferStartedEvent {
302
+ export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
303
+ export type OutputTuple = [previousOwner: string, newOwner: string];
304
+ export interface OutputObject {
305
+ previousOwner: string;
306
+ newOwner: string;
307
+ }
308
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
309
+ export type Filter = TypedDeferredTopicFilter<Event>;
310
+ export type Log = TypedEventLog<Event>;
311
+ export type LogDescription = TypedLogDescription<Event>;
312
+ }
313
+
314
+ export namespace OwnershipTransferredEvent {
315
+ export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
316
+ export type OutputTuple = [previousOwner: string, newOwner: string];
317
+ export interface OutputObject {
318
+ previousOwner: string;
319
+ newOwner: string;
320
+ }
321
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
322
+ export type Filter = TypedDeferredTopicFilter<Event>;
323
+ export type Log = TypedEventLog<Event>;
324
+ export type LogDescription = TypedLogDescription<Event>;
325
+ }
326
+
327
+ export namespace PoolInitializedEvent {
328
+ export type InputTuple = [
329
+ poolId: BytesLike,
330
+ underlyingAsset: AddressLike,
331
+ compoundToken: AddressLike,
332
+ termStartTimestampWad: BigNumberish,
333
+ termEndTimestampWad: BigNumberish,
334
+ feeWad: BigNumberish,
335
+ tickSpacing: BigNumberish,
336
+ currentTick: BigNumberish,
337
+ sqrtPriceX96: BigNumberish
338
+ ];
339
+ export type OutputTuple = [
340
+ poolId: string,
341
+ underlyingAsset: string,
342
+ compoundToken: string,
343
+ termStartTimestampWad: bigint,
344
+ termEndTimestampWad: bigint,
345
+ feeWad: bigint,
346
+ tickSpacing: bigint,
347
+ currentTick: bigint,
348
+ sqrtPriceX96: bigint
349
+ ];
350
+ export interface OutputObject {
351
+ poolId: string;
352
+ underlyingAsset: string;
353
+ compoundToken: string;
354
+ termStartTimestampWad: bigint;
355
+ termEndTimestampWad: bigint;
356
+ feeWad: bigint;
357
+ tickSpacing: bigint;
358
+ currentTick: bigint;
359
+ sqrtPriceX96: bigint;
360
+ }
361
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
362
+ export type Filter = TypedDeferredTopicFilter<Event>;
363
+ export type Log = TypedEventLog<Event>;
364
+ export type LogDescription = TypedLogDescription<Event>;
365
+ }
366
+
367
+ export namespace SwapEvent {
368
+ export type InputTuple = [
369
+ poolId: BytesLike,
370
+ owner: AddressLike,
371
+ accountId: BigNumberish,
372
+ isolatedMarginToken: AddressLike,
373
+ tickLower: BigNumberish,
374
+ tickUpper: BigNumberish,
375
+ feeIncurred: BigNumberish,
376
+ fixedTokenDelta: BigNumberish,
377
+ variableTokenDelta: BigNumberish,
378
+ currentTick: BigNumberish,
379
+ sqrtPriceX96: BigNumberish
380
+ ];
381
+ export type OutputTuple = [
382
+ poolId: string,
383
+ owner: string,
384
+ accountId: bigint,
385
+ isolatedMarginToken: string,
386
+ tickLower: bigint,
387
+ tickUpper: bigint,
388
+ feeIncurred: bigint,
389
+ fixedTokenDelta: bigint,
390
+ variableTokenDelta: bigint,
391
+ currentTick: bigint,
392
+ sqrtPriceX96: bigint
393
+ ];
394
+ export interface OutputObject {
395
+ poolId: string;
396
+ owner: string;
397
+ accountId: bigint;
398
+ isolatedMarginToken: string;
399
+ tickLower: bigint;
400
+ tickUpper: bigint;
401
+ feeIncurred: bigint;
402
+ fixedTokenDelta: bigint;
403
+ variableTokenDelta: bigint;
404
+ currentTick: bigint;
405
+ sqrtPriceX96: bigint;
406
+ }
407
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
408
+ export type Filter = TypedDeferredTopicFilter<Event>;
409
+ export type Log = TypedEventLog<Event>;
410
+ export type LogDescription = TypedLogDescription<Event>;
411
+ }
412
+
413
+ export interface VAMMManager extends BaseContract {
414
+ connect(runner?: ContractRunner | null): VAMMManager;
415
+ waitForDeployment(): Promise<this>;
416
+
417
+ interface: VAMMManagerInterface;
418
+
419
+ queryFilter<TCEvent extends TypedContractEvent>(
420
+ event: TCEvent,
421
+ fromBlockOrBlockhash?: string | number | undefined,
422
+ toBlock?: string | number | undefined
423
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
424
+ queryFilter<TCEvent extends TypedContractEvent>(
425
+ filter: TypedDeferredTopicFilter<TCEvent>,
426
+ fromBlockOrBlockhash?: string | number | undefined,
427
+ toBlock?: string | number | undefined
428
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
429
+
430
+ on<TCEvent extends TypedContractEvent>(
431
+ event: TCEvent,
432
+ listener: TypedListener<TCEvent>
433
+ ): Promise<this>;
434
+ on<TCEvent extends TypedContractEvent>(
435
+ filter: TypedDeferredTopicFilter<TCEvent>,
436
+ listener: TypedListener<TCEvent>
437
+ ): Promise<this>;
438
+
439
+ once<TCEvent extends TypedContractEvent>(
440
+ event: TCEvent,
441
+ listener: TypedListener<TCEvent>
442
+ ): Promise<this>;
443
+ once<TCEvent extends TypedContractEvent>(
444
+ filter: TypedDeferredTopicFilter<TCEvent>,
445
+ listener: TypedListener<TCEvent>
446
+ ): Promise<this>;
447
+
448
+ listeners<TCEvent extends TypedContractEvent>(
449
+ event: TCEvent
450
+ ): Promise<Array<TypedListener<TCEvent>>>;
451
+ listeners(eventName?: string): Promise<Array<Listener>>;
452
+ removeAllListeners<TCEvent extends TypedContractEvent>(
453
+ event?: TCEvent
454
+ ): Promise<this>;
455
+
456
+ acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
457
+
458
+ burn: TypedContractMethod<
459
+ [
460
+ key: PoolKey.KeyStruct,
461
+ account: Account.AccountIdStruct,
462
+ tickLower: BigNumberish,
463
+ tickUpper: BigNumberish,
464
+ amount: BigNumberish
465
+ ],
466
+ [bigint],
467
+ "nonpayable"
468
+ >;
469
+
470
+ computeGrowthInside: TypedContractMethod<
471
+ [poolId: BytesLike, tickLower: BigNumberish, tickUpper: BigNumberish],
472
+ [
473
+ [bigint, bigint] & {
474
+ fixedTokenGrowthInsideX128: bigint;
475
+ variableTokenGrowthInsideX128: bigint;
476
+ }
477
+ ],
478
+ "view"
479
+ >;
480
+
481
+ createPool: TypedContractMethod<
482
+ [
483
+ key: PoolKey.KeyStruct,
484
+ aprOracle: AddressLike,
485
+ sqrtPriceX96: BigNumberish
486
+ ],
487
+ [[bigint, string] & { tick: bigint; poolId: string }],
488
+ "nonpayable"
489
+ >;
490
+
491
+ getVAMMState: TypedContractMethod<
492
+ [poolId: BytesLike],
493
+ [
494
+ [bigint, bigint, string] & {
495
+ tick: bigint;
496
+ sqrtPriceX96: bigint;
497
+ compoundToken: string;
498
+ }
499
+ ],
500
+ "view"
501
+ >;
502
+
503
+ initialize: TypedContractMethod<
504
+ [_initialOwner: AddressLike, _collateralEngine: AddressLike],
505
+ [void],
506
+ "nonpayable"
507
+ >;
508
+
509
+ mint: TypedContractMethod<
510
+ [
511
+ key: PoolKey.KeyStruct,
512
+ account: Account.AccountIdStruct,
513
+ tickLower: BigNumberish,
514
+ tickUpper: BigNumberish,
515
+ amount: BigNumberish
516
+ ],
517
+ [
518
+ [bigint, bigint] & {
519
+ positionMarginRequirement: bigint;
520
+ feeIncurred: bigint;
521
+ }
522
+ ],
523
+ "nonpayable"
524
+ >;
525
+
526
+ owner: TypedContractMethod<[], [string], "view">;
527
+
528
+ pendingOwner: TypedContractMethod<[], [string], "view">;
529
+
530
+ poolExists: TypedContractMethod<[key: PoolKey.KeyStruct], [boolean], "view">;
531
+
532
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
533
+
534
+ swap: TypedContractMethod<
535
+ [key: PoolKey.KeyStruct, params: VAMMTypes.SwapParamsStruct],
536
+ [
537
+ [bigint, bigint, bigint, bigint, bigint, bigint] & {
538
+ fixedTokenDelta: bigint;
539
+ variableTokenDelta: bigint;
540
+ feeIncurred: bigint;
541
+ fixedTokenDeltaUnbalanced: bigint;
542
+ positionMarginRequirement: bigint;
543
+ priceAfterSwap: bigint;
544
+ }
545
+ ],
546
+ "nonpayable"
547
+ >;
548
+
549
+ transferOwnership: TypedContractMethod<
550
+ [newOwner: AddressLike],
551
+ [void],
552
+ "nonpayable"
553
+ >;
554
+
555
+ getFunction<T extends ContractMethod = ContractMethod>(
556
+ key: string | FunctionFragment
557
+ ): T;
558
+
559
+ getFunction(
560
+ nameOrSignature: "acceptOwnership"
561
+ ): TypedContractMethod<[], [void], "nonpayable">;
562
+ getFunction(
563
+ nameOrSignature: "burn"
564
+ ): TypedContractMethod<
565
+ [
566
+ key: PoolKey.KeyStruct,
567
+ account: Account.AccountIdStruct,
568
+ tickLower: BigNumberish,
569
+ tickUpper: BigNumberish,
570
+ amount: BigNumberish
571
+ ],
572
+ [bigint],
573
+ "nonpayable"
574
+ >;
575
+ getFunction(
576
+ nameOrSignature: "computeGrowthInside"
577
+ ): TypedContractMethod<
578
+ [poolId: BytesLike, tickLower: BigNumberish, tickUpper: BigNumberish],
579
+ [
580
+ [bigint, bigint] & {
581
+ fixedTokenGrowthInsideX128: bigint;
582
+ variableTokenGrowthInsideX128: bigint;
583
+ }
584
+ ],
585
+ "view"
586
+ >;
587
+ getFunction(
588
+ nameOrSignature: "createPool"
589
+ ): TypedContractMethod<
590
+ [
591
+ key: PoolKey.KeyStruct,
592
+ aprOracle: AddressLike,
593
+ sqrtPriceX96: BigNumberish
594
+ ],
595
+ [[bigint, string] & { tick: bigint; poolId: string }],
596
+ "nonpayable"
597
+ >;
598
+ getFunction(
599
+ nameOrSignature: "getVAMMState"
600
+ ): TypedContractMethod<
601
+ [poolId: BytesLike],
602
+ [
603
+ [bigint, bigint, string] & {
604
+ tick: bigint;
605
+ sqrtPriceX96: bigint;
606
+ compoundToken: string;
607
+ }
608
+ ],
609
+ "view"
610
+ >;
611
+ getFunction(
612
+ nameOrSignature: "initialize"
613
+ ): TypedContractMethod<
614
+ [_initialOwner: AddressLike, _collateralEngine: AddressLike],
615
+ [void],
616
+ "nonpayable"
617
+ >;
618
+ getFunction(
619
+ nameOrSignature: "mint"
620
+ ): TypedContractMethod<
621
+ [
622
+ key: PoolKey.KeyStruct,
623
+ account: Account.AccountIdStruct,
624
+ tickLower: BigNumberish,
625
+ tickUpper: BigNumberish,
626
+ amount: BigNumberish
627
+ ],
628
+ [
629
+ [bigint, bigint] & {
630
+ positionMarginRequirement: bigint;
631
+ feeIncurred: bigint;
632
+ }
633
+ ],
634
+ "nonpayable"
635
+ >;
636
+ getFunction(
637
+ nameOrSignature: "owner"
638
+ ): TypedContractMethod<[], [string], "view">;
639
+ getFunction(
640
+ nameOrSignature: "pendingOwner"
641
+ ): TypedContractMethod<[], [string], "view">;
642
+ getFunction(
643
+ nameOrSignature: "poolExists"
644
+ ): TypedContractMethod<[key: PoolKey.KeyStruct], [boolean], "view">;
645
+ getFunction(
646
+ nameOrSignature: "renounceOwnership"
647
+ ): TypedContractMethod<[], [void], "nonpayable">;
648
+ getFunction(
649
+ nameOrSignature: "swap"
650
+ ): TypedContractMethod<
651
+ [key: PoolKey.KeyStruct, params: VAMMTypes.SwapParamsStruct],
652
+ [
653
+ [bigint, bigint, bigint, bigint, bigint, bigint] & {
654
+ fixedTokenDelta: bigint;
655
+ variableTokenDelta: bigint;
656
+ feeIncurred: bigint;
657
+ fixedTokenDeltaUnbalanced: bigint;
658
+ positionMarginRequirement: bigint;
659
+ priceAfterSwap: bigint;
660
+ }
661
+ ],
662
+ "nonpayable"
663
+ >;
664
+ getFunction(
665
+ nameOrSignature: "transferOwnership"
666
+ ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
667
+
668
+ getEvent(
669
+ key: "Burn"
670
+ ): TypedContractEvent<
671
+ BurnEvent.InputTuple,
672
+ BurnEvent.OutputTuple,
673
+ BurnEvent.OutputObject
674
+ >;
675
+ getEvent(
676
+ key: "Initialized"
677
+ ): TypedContractEvent<
678
+ InitializedEvent.InputTuple,
679
+ InitializedEvent.OutputTuple,
680
+ InitializedEvent.OutputObject
681
+ >;
682
+ getEvent(
683
+ key: "Mint"
684
+ ): TypedContractEvent<
685
+ MintEvent.InputTuple,
686
+ MintEvent.OutputTuple,
687
+ MintEvent.OutputObject
688
+ >;
689
+ getEvent(
690
+ key: "OwnershipTransferStarted"
691
+ ): TypedContractEvent<
692
+ OwnershipTransferStartedEvent.InputTuple,
693
+ OwnershipTransferStartedEvent.OutputTuple,
694
+ OwnershipTransferStartedEvent.OutputObject
695
+ >;
696
+ getEvent(
697
+ key: "OwnershipTransferred"
698
+ ): TypedContractEvent<
699
+ OwnershipTransferredEvent.InputTuple,
700
+ OwnershipTransferredEvent.OutputTuple,
701
+ OwnershipTransferredEvent.OutputObject
702
+ >;
703
+ getEvent(
704
+ key: "PoolInitialized"
705
+ ): TypedContractEvent<
706
+ PoolInitializedEvent.InputTuple,
707
+ PoolInitializedEvent.OutputTuple,
708
+ PoolInitializedEvent.OutputObject
709
+ >;
710
+ getEvent(
711
+ key: "Swap"
712
+ ): TypedContractEvent<
713
+ SwapEvent.InputTuple,
714
+ SwapEvent.OutputTuple,
715
+ SwapEvent.OutputObject
716
+ >;
717
+
718
+ filters: {
719
+ "Burn(bytes32,address,uint96,address,int24,int24,uint128,int256)": TypedContractEvent<
720
+ BurnEvent.InputTuple,
721
+ BurnEvent.OutputTuple,
722
+ BurnEvent.OutputObject
723
+ >;
724
+ Burn: TypedContractEvent<
725
+ BurnEvent.InputTuple,
726
+ BurnEvent.OutputTuple,
727
+ BurnEvent.OutputObject
728
+ >;
729
+
730
+ "Initialized(uint64)": TypedContractEvent<
731
+ InitializedEvent.InputTuple,
732
+ InitializedEvent.OutputTuple,
733
+ InitializedEvent.OutputObject
734
+ >;
735
+ Initialized: TypedContractEvent<
736
+ InitializedEvent.InputTuple,
737
+ InitializedEvent.OutputTuple,
738
+ InitializedEvent.OutputObject
739
+ >;
740
+
741
+ "Mint(bytes32,address,uint96,address,int24,int24,uint128,int256)": TypedContractEvent<
742
+ MintEvent.InputTuple,
743
+ MintEvent.OutputTuple,
744
+ MintEvent.OutputObject
745
+ >;
746
+ Mint: TypedContractEvent<
747
+ MintEvent.InputTuple,
748
+ MintEvent.OutputTuple,
749
+ MintEvent.OutputObject
750
+ >;
751
+
752
+ "OwnershipTransferStarted(address,address)": TypedContractEvent<
753
+ OwnershipTransferStartedEvent.InputTuple,
754
+ OwnershipTransferStartedEvent.OutputTuple,
755
+ OwnershipTransferStartedEvent.OutputObject
756
+ >;
757
+ OwnershipTransferStarted: TypedContractEvent<
758
+ OwnershipTransferStartedEvent.InputTuple,
759
+ OwnershipTransferStartedEvent.OutputTuple,
760
+ OwnershipTransferStartedEvent.OutputObject
761
+ >;
762
+
763
+ "OwnershipTransferred(address,address)": TypedContractEvent<
764
+ OwnershipTransferredEvent.InputTuple,
765
+ OwnershipTransferredEvent.OutputTuple,
766
+ OwnershipTransferredEvent.OutputObject
767
+ >;
768
+ OwnershipTransferred: TypedContractEvent<
769
+ OwnershipTransferredEvent.InputTuple,
770
+ OwnershipTransferredEvent.OutputTuple,
771
+ OwnershipTransferredEvent.OutputObject
772
+ >;
773
+
774
+ "PoolInitialized(bytes32,address,address,uint256,uint256,uint256,int24,int24,uint160)": TypedContractEvent<
775
+ PoolInitializedEvent.InputTuple,
776
+ PoolInitializedEvent.OutputTuple,
777
+ PoolInitializedEvent.OutputObject
778
+ >;
779
+ PoolInitialized: TypedContractEvent<
780
+ PoolInitializedEvent.InputTuple,
781
+ PoolInitializedEvent.OutputTuple,
782
+ PoolInitializedEvent.OutputObject
783
+ >;
784
+
785
+ "Swap(bytes32,address,uint96,address,int24,int24,int256,int256,int256,int24,uint160)": TypedContractEvent<
786
+ SwapEvent.InputTuple,
787
+ SwapEvent.OutputTuple,
788
+ SwapEvent.OutputObject
789
+ >;
790
+ Swap: TypedContractEvent<
791
+ SwapEvent.InputTuple,
792
+ SwapEvent.OutputTuple,
793
+ SwapEvent.OutputObject
794
+ >;
795
+ };
796
+ }