@gitmyabi/poly 0.0.0-stage → 1.0.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,2891 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * PoolKey struct type
4
+ */
5
+ export type PoolKey = {
6
+ currency0: `0x${string}`;
7
+ currency1: `0x${string}`;
8
+ fee: bigint;
9
+ tickSpacing: bigint;
10
+ hooks: `0x${string}`;
11
+ };
12
+ /**
13
+ * Position struct type
14
+ */
15
+ export type Position = {
16
+ owner: `0x${string}`;
17
+ start: bigint;
18
+ end: bigint;
19
+ armed: boolean;
20
+ program: `0x${string}`;
21
+ movedAt: bigint;
22
+ lastGwei: bigint;
23
+ amount: bigint;
24
+ initial: bigint;
25
+ params: `0x${string}`;
26
+ note: `0x${string}`;
27
+ };
28
+ /**
29
+ * Polypheme_json ABI
30
+ *
31
+ * This ABI is typed using viem's type system for full type safety.
32
+ */
33
+ export declare const Polypheme_jsonAbi: readonly [{
34
+ readonly inputs: readonly [{
35
+ readonly internalType: "contract IPoolManager";
36
+ readonly name: "_pm";
37
+ readonly type: "address";
38
+ }, {
39
+ readonly internalType: "address";
40
+ readonly name: "_owner";
41
+ readonly type: "address";
42
+ }, {
43
+ readonly internalType: "address";
44
+ readonly name: "hook";
45
+ readonly type: "address";
46
+ }, {
47
+ readonly internalType: "uint256";
48
+ readonly name: "launchPrice";
49
+ readonly type: "uint256";
50
+ }, {
51
+ readonly internalType: "string";
52
+ readonly name: "name_";
53
+ readonly type: "string";
54
+ }, {
55
+ readonly internalType: "string";
56
+ readonly name: "symbol_";
57
+ readonly type: "string";
58
+ }];
59
+ readonly stateMutability: "nonpayable";
60
+ readonly type: "constructor";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "AllowanceOverflow";
64
+ readonly type: "error";
65
+ }, {
66
+ readonly inputs: readonly [];
67
+ readonly name: "AllowanceUnderflow";
68
+ readonly type: "error";
69
+ }, {
70
+ readonly inputs: readonly [];
71
+ readonly name: "AlreadyInitialized";
72
+ readonly type: "error";
73
+ }, {
74
+ readonly inputs: readonly [];
75
+ readonly name: "BadAct";
76
+ readonly type: "error";
77
+ }, {
78
+ readonly inputs: readonly [];
79
+ readonly name: "BadDestination";
80
+ readonly type: "error";
81
+ }, {
82
+ readonly inputs: readonly [];
83
+ readonly name: "BadPrice";
84
+ readonly type: "error";
85
+ }, {
86
+ readonly inputs: readonly [];
87
+ readonly name: "BadProgram";
88
+ readonly type: "error";
89
+ }, {
90
+ readonly inputs: readonly [];
91
+ readonly name: "BadTerm";
92
+ readonly type: "error";
93
+ }, {
94
+ readonly inputs: readonly [];
95
+ readonly name: "CodeEnded";
96
+ readonly type: "error";
97
+ }, {
98
+ readonly inputs: readonly [];
99
+ readonly name: "CodeNotEnded";
100
+ readonly type: "error";
101
+ }, {
102
+ readonly inputs: readonly [];
103
+ readonly name: "EthTransferFailed";
104
+ readonly type: "error";
105
+ }, {
106
+ readonly inputs: readonly [{
107
+ readonly internalType: "uint256";
108
+ readonly name: "fee";
109
+ readonly type: "uint256";
110
+ }];
111
+ readonly name: "FeeNotPaid";
112
+ readonly type: "error";
113
+ }, {
114
+ readonly inputs: readonly [];
115
+ readonly name: "InsufficientAllowance";
116
+ readonly type: "error";
117
+ }, {
118
+ readonly inputs: readonly [];
119
+ readonly name: "InsufficientBalance";
120
+ readonly type: "error";
121
+ }, {
122
+ readonly inputs: readonly [];
123
+ readonly name: "InvalidPermit";
124
+ readonly type: "error";
125
+ }, {
126
+ readonly inputs: readonly [];
127
+ readonly name: "NewOwnerIsZeroAddress";
128
+ readonly type: "error";
129
+ }, {
130
+ readonly inputs: readonly [];
131
+ readonly name: "NoHandoverRequest";
132
+ readonly type: "error";
133
+ }, {
134
+ readonly inputs: readonly [];
135
+ readonly name: "NoSuchPosition";
136
+ readonly type: "error";
137
+ }, {
138
+ readonly inputs: readonly [];
139
+ readonly name: "NotArmed";
140
+ readonly type: "error";
141
+ }, {
142
+ readonly inputs: readonly [];
143
+ readonly name: "NotEnoughPlain";
144
+ readonly type: "error";
145
+ }, {
146
+ readonly inputs: readonly [];
147
+ readonly name: "NotHook";
148
+ readonly type: "error";
149
+ }, {
150
+ readonly inputs: readonly [];
151
+ readonly name: "NotOurPool";
152
+ readonly type: "error";
153
+ }, {
154
+ readonly inputs: readonly [];
155
+ readonly name: "NotOwner";
156
+ readonly type: "error";
157
+ }, {
158
+ readonly inputs: readonly [];
159
+ readonly name: "NotPoolManager";
160
+ readonly type: "error";
161
+ }, {
162
+ readonly inputs: readonly [];
163
+ readonly name: "NotSeeded";
164
+ readonly type: "error";
165
+ }, {
166
+ readonly inputs: readonly [];
167
+ readonly name: "NotWholeUnits";
168
+ readonly type: "error";
169
+ }, {
170
+ readonly inputs: readonly [];
171
+ readonly name: "NothingBought";
172
+ readonly type: "error";
173
+ }, {
174
+ readonly inputs: readonly [];
175
+ readonly name: "Permit2AllowanceIsFixedAtInfinity";
176
+ readonly type: "error";
177
+ }, {
178
+ readonly inputs: readonly [];
179
+ readonly name: "PermitExpired";
180
+ readonly type: "error";
181
+ }, {
182
+ readonly inputs: readonly [];
183
+ readonly name: "ProgramSaysNo";
184
+ readonly type: "error";
185
+ }, {
186
+ readonly inputs: readonly [];
187
+ readonly name: "Reentrancy";
188
+ readonly type: "error";
189
+ }, {
190
+ readonly inputs: readonly [{
191
+ readonly internalType: "address";
192
+ readonly name: "to";
193
+ readonly type: "address";
194
+ }];
195
+ readonly name: "RefusesCode";
196
+ readonly type: "error";
197
+ }, {
198
+ readonly inputs: readonly [];
199
+ readonly name: "RenounceDisabled";
200
+ readonly type: "error";
201
+ }, {
202
+ readonly inputs: readonly [];
203
+ readonly name: "Slippage";
204
+ readonly type: "error";
205
+ }, {
206
+ readonly inputs: readonly [{
207
+ readonly internalType: "address";
208
+ readonly name: "owner";
209
+ readonly type: "address";
210
+ }];
211
+ readonly name: "TooManyPositions";
212
+ readonly type: "error";
213
+ }, {
214
+ readonly inputs: readonly [];
215
+ readonly name: "TotalSupplyOverflow";
216
+ readonly type: "error";
217
+ }, {
218
+ readonly inputs: readonly [];
219
+ readonly name: "Unauthorized";
220
+ readonly type: "error";
221
+ }, {
222
+ readonly inputs: readonly [];
223
+ readonly name: "ZeroAddress";
224
+ readonly type: "error";
225
+ }, {
226
+ readonly anonymous: false;
227
+ readonly inputs: readonly [{
228
+ readonly indexed: true;
229
+ readonly internalType: "address";
230
+ readonly name: "owner";
231
+ readonly type: "address";
232
+ }, {
233
+ readonly indexed: true;
234
+ readonly internalType: "address";
235
+ readonly name: "spender";
236
+ readonly type: "address";
237
+ }, {
238
+ readonly indexed: false;
239
+ readonly internalType: "uint256";
240
+ readonly name: "amount";
241
+ readonly type: "uint256";
242
+ }];
243
+ readonly name: "Approval";
244
+ readonly type: "event";
245
+ }, {
246
+ readonly anonymous: false;
247
+ readonly inputs: readonly [{
248
+ readonly indexed: true;
249
+ readonly internalType: "address";
250
+ readonly name: "buyer";
251
+ readonly type: "address";
252
+ }, {
253
+ readonly indexed: false;
254
+ readonly internalType: "uint256";
255
+ readonly name: "ethIn";
256
+ readonly type: "uint256";
257
+ }, {
258
+ readonly indexed: false;
259
+ readonly internalType: "uint256";
260
+ readonly name: "unitsOut";
261
+ readonly type: "uint256";
262
+ }];
263
+ readonly name: "Bought";
264
+ readonly type: "event";
265
+ }, {
266
+ readonly anonymous: false;
267
+ readonly inputs: readonly [{
268
+ readonly indexed: true;
269
+ readonly internalType: "address";
270
+ readonly name: "owner";
271
+ readonly type: "address";
272
+ }, {
273
+ readonly indexed: false;
274
+ readonly internalType: "uint256";
275
+ readonly name: "eth";
276
+ readonly type: "uint256";
277
+ }];
278
+ readonly name: "Claimed";
279
+ readonly type: "event";
280
+ }, {
281
+ readonly anonymous: false;
282
+ readonly inputs: readonly [{
283
+ readonly indexed: true;
284
+ readonly internalType: "address";
285
+ readonly name: "who";
286
+ readonly type: "address";
287
+ }, {
288
+ readonly indexed: false;
289
+ readonly internalType: "bool";
290
+ readonly name: "accepts";
291
+ readonly type: "bool";
292
+ }];
293
+ readonly name: "CodeAcceptance";
294
+ readonly type: "event";
295
+ }, {
296
+ readonly anonymous: false;
297
+ readonly inputs: readonly [{
298
+ readonly indexed: true;
299
+ readonly internalType: "uint256";
300
+ readonly name: "id";
301
+ readonly type: "uint256";
302
+ }];
303
+ readonly name: "Disarmed";
304
+ readonly type: "event";
305
+ }, {
306
+ readonly anonymous: false;
307
+ readonly inputs: readonly [{
308
+ readonly indexed: true;
309
+ readonly internalType: "uint256";
310
+ readonly name: "id";
311
+ readonly type: "uint256";
312
+ }, {
313
+ readonly indexed: true;
314
+ readonly internalType: "address";
315
+ readonly name: "owner";
316
+ readonly type: "address";
317
+ }, {
318
+ readonly indexed: false;
319
+ readonly internalType: "uint256";
320
+ readonly name: "amount";
321
+ readonly type: "uint256";
322
+ }, {
323
+ readonly indexed: false;
324
+ readonly internalType: "bool";
325
+ readonly name: "byPool";
326
+ readonly type: "bool";
327
+ }];
328
+ readonly name: "Erased";
329
+ readonly type: "event";
330
+ }, {
331
+ readonly anonymous: false;
332
+ readonly inputs: readonly [{
333
+ readonly indexed: true;
334
+ readonly internalType: "uint256";
335
+ readonly name: "id";
336
+ readonly type: "uint256";
337
+ }, {
338
+ readonly indexed: false;
339
+ readonly internalType: "uint40";
340
+ readonly name: "oldEnd";
341
+ readonly type: "uint40";
342
+ }, {
343
+ readonly indexed: false;
344
+ readonly internalType: "uint40";
345
+ readonly name: "newEnd";
346
+ readonly type: "uint40";
347
+ }, {
348
+ readonly indexed: false;
349
+ readonly internalType: "uint256";
350
+ readonly name: "fee";
351
+ readonly type: "uint256";
352
+ }];
353
+ readonly name: "Extended";
354
+ readonly type: "event";
355
+ }, {
356
+ readonly anonymous: false;
357
+ readonly inputs: readonly [{
358
+ readonly indexed: true;
359
+ readonly internalType: "uint256";
360
+ readonly name: "id";
361
+ readonly type: "uint256";
362
+ }, {
363
+ readonly indexed: false;
364
+ readonly internalType: "uint256";
365
+ readonly name: "fee";
366
+ readonly type: "uint256";
367
+ }];
368
+ readonly name: "FeePaid";
369
+ readonly type: "event";
370
+ }, {
371
+ readonly anonymous: false;
372
+ readonly inputs: readonly [{
373
+ readonly indexed: true;
374
+ readonly internalType: "uint256";
375
+ readonly name: "id";
376
+ readonly type: "uint256";
377
+ }, {
378
+ readonly indexed: false;
379
+ readonly internalType: "bytes32";
380
+ readonly name: "note";
381
+ readonly type: "bytes32";
382
+ }];
383
+ readonly name: "Marked";
384
+ readonly type: "event";
385
+ }, {
386
+ readonly anonymous: false;
387
+ readonly inputs: readonly [{
388
+ readonly indexed: true;
389
+ readonly internalType: "address";
390
+ readonly name: "pendingOwner";
391
+ readonly type: "address";
392
+ }];
393
+ readonly name: "OwnershipHandoverCanceled";
394
+ readonly type: "event";
395
+ }, {
396
+ readonly anonymous: false;
397
+ readonly inputs: readonly [{
398
+ readonly indexed: true;
399
+ readonly internalType: "address";
400
+ readonly name: "pendingOwner";
401
+ readonly type: "address";
402
+ }];
403
+ readonly name: "OwnershipHandoverRequested";
404
+ readonly type: "event";
405
+ }, {
406
+ readonly anonymous: false;
407
+ readonly inputs: readonly [{
408
+ readonly indexed: true;
409
+ readonly internalType: "address";
410
+ readonly name: "oldOwner";
411
+ readonly type: "address";
412
+ }, {
413
+ readonly indexed: true;
414
+ readonly internalType: "address";
415
+ readonly name: "newOwner";
416
+ readonly type: "address";
417
+ }];
418
+ readonly name: "OwnershipTransferred";
419
+ readonly type: "event";
420
+ }, {
421
+ readonly anonymous: false;
422
+ readonly inputs: readonly [{
423
+ readonly indexed: true;
424
+ readonly internalType: "uint256";
425
+ readonly name: "id";
426
+ readonly type: "uint256";
427
+ }, {
428
+ readonly indexed: true;
429
+ readonly internalType: "address";
430
+ readonly name: "owner";
431
+ readonly type: "address";
432
+ }, {
433
+ readonly indexed: true;
434
+ readonly internalType: "address";
435
+ readonly name: "program";
436
+ readonly type: "address";
437
+ }, {
438
+ readonly indexed: false;
439
+ readonly internalType: "uint256";
440
+ readonly name: "amount";
441
+ readonly type: "uint256";
442
+ }, {
443
+ readonly indexed: false;
444
+ readonly internalType: "uint40";
445
+ readonly name: "end";
446
+ readonly type: "uint40";
447
+ }, {
448
+ readonly indexed: false;
449
+ readonly internalType: "bytes";
450
+ readonly name: "params";
451
+ readonly type: "bytes";
452
+ }];
453
+ readonly name: "Programmed";
454
+ readonly type: "event";
455
+ }, {
456
+ readonly anonymous: false;
457
+ readonly inputs: readonly [{
458
+ readonly indexed: true;
459
+ readonly internalType: "uint256";
460
+ readonly name: "id";
461
+ readonly type: "uint256";
462
+ }, {
463
+ readonly indexed: true;
464
+ readonly internalType: "address";
465
+ readonly name: "owner";
466
+ readonly type: "address";
467
+ }, {
468
+ readonly indexed: false;
469
+ readonly internalType: "uint256";
470
+ readonly name: "amount";
471
+ readonly type: "uint256";
472
+ }];
473
+ readonly name: "Refused";
474
+ readonly type: "event";
475
+ }, {
476
+ readonly anonymous: false;
477
+ readonly inputs: readonly [{
478
+ readonly indexed: true;
479
+ readonly internalType: "uint256";
480
+ readonly name: "id";
481
+ readonly type: "uint256";
482
+ }, {
483
+ readonly indexed: true;
484
+ readonly internalType: "uint256";
485
+ readonly name: "newId";
486
+ readonly type: "uint256";
487
+ }, {
488
+ readonly indexed: true;
489
+ readonly internalType: "address";
490
+ readonly name: "to";
491
+ readonly type: "address";
492
+ }, {
493
+ readonly indexed: false;
494
+ readonly internalType: "address";
495
+ readonly name: "from";
496
+ readonly type: "address";
497
+ }, {
498
+ readonly indexed: false;
499
+ readonly internalType: "uint256";
500
+ readonly name: "amount";
501
+ readonly type: "uint256";
502
+ }];
503
+ readonly name: "Sent";
504
+ readonly type: "event";
505
+ }, {
506
+ readonly anonymous: false;
507
+ readonly inputs: readonly [{
508
+ readonly indexed: true;
509
+ readonly internalType: "uint256";
510
+ readonly name: "id";
511
+ readonly type: "uint256";
512
+ }, {
513
+ readonly indexed: true;
514
+ readonly internalType: "address";
515
+ readonly name: "owner";
516
+ readonly type: "address";
517
+ }, {
518
+ readonly indexed: false;
519
+ readonly internalType: "uint256";
520
+ readonly name: "amount";
521
+ readonly type: "uint256";
522
+ }, {
523
+ readonly indexed: false;
524
+ readonly internalType: "uint256";
525
+ readonly name: "ethOut";
526
+ readonly type: "uint256";
527
+ }];
528
+ readonly name: "Sold";
529
+ readonly type: "event";
530
+ }, {
531
+ readonly anonymous: false;
532
+ readonly inputs: readonly [{
533
+ readonly indexed: true;
534
+ readonly internalType: "uint256";
535
+ readonly name: "id";
536
+ readonly type: "uint256";
537
+ }, {
538
+ readonly indexed: true;
539
+ readonly internalType: "address";
540
+ readonly name: "caller";
541
+ readonly type: "address";
542
+ }, {
543
+ readonly indexed: false;
544
+ readonly internalType: "uint256";
545
+ readonly name: "units";
546
+ readonly type: "uint256";
547
+ }, {
548
+ readonly indexed: false;
549
+ readonly internalType: "uint256";
550
+ readonly name: "ethOut";
551
+ readonly type: "uint256";
552
+ }, {
553
+ readonly indexed: false;
554
+ readonly internalType: "uint256";
555
+ readonly name: "tip";
556
+ readonly type: "uint256";
557
+ }];
558
+ readonly name: "SoldFor";
559
+ readonly type: "event";
560
+ }, {
561
+ readonly anonymous: false;
562
+ readonly inputs: readonly [{
563
+ readonly indexed: true;
564
+ readonly internalType: "address";
565
+ readonly name: "seller";
566
+ readonly type: "address";
567
+ }, {
568
+ readonly indexed: false;
569
+ readonly internalType: "uint256";
570
+ readonly name: "unitsIn";
571
+ readonly type: "uint256";
572
+ }, {
573
+ readonly indexed: false;
574
+ readonly internalType: "uint256";
575
+ readonly name: "ethOut";
576
+ readonly type: "uint256";
577
+ }];
578
+ readonly name: "SoldPlain";
579
+ readonly type: "event";
580
+ }, {
581
+ readonly anonymous: false;
582
+ readonly inputs: readonly [{
583
+ readonly indexed: true;
584
+ readonly internalType: "uint256";
585
+ readonly name: "id";
586
+ readonly type: "uint256";
587
+ }, {
588
+ readonly indexed: true;
589
+ readonly internalType: "address";
590
+ readonly name: "from";
591
+ readonly type: "address";
592
+ }, {
593
+ readonly indexed: true;
594
+ readonly internalType: "address";
595
+ readonly name: "to";
596
+ readonly type: "address";
597
+ }, {
598
+ readonly indexed: false;
599
+ readonly internalType: "uint256";
600
+ readonly name: "cost";
601
+ readonly type: "uint256";
602
+ }];
603
+ readonly name: "Taken";
604
+ readonly type: "event";
605
+ }, {
606
+ readonly anonymous: false;
607
+ readonly inputs: readonly [{
608
+ readonly indexed: true;
609
+ readonly internalType: "address";
610
+ readonly name: "from";
611
+ readonly type: "address";
612
+ }, {
613
+ readonly indexed: true;
614
+ readonly internalType: "address";
615
+ readonly name: "to";
616
+ readonly type: "address";
617
+ }, {
618
+ readonly indexed: false;
619
+ readonly internalType: "uint256";
620
+ readonly name: "amount";
621
+ readonly type: "uint256";
622
+ }];
623
+ readonly name: "Transfer";
624
+ readonly type: "event";
625
+ }, {
626
+ readonly inputs: readonly [];
627
+ readonly name: "ARM_DELAY";
628
+ readonly outputs: readonly [{
629
+ readonly internalType: "uint40";
630
+ readonly name: "";
631
+ readonly type: "uint40";
632
+ }];
633
+ readonly stateMutability: "view";
634
+ readonly type: "function";
635
+ }, {
636
+ readonly inputs: readonly [];
637
+ readonly name: "BPS";
638
+ readonly outputs: readonly [{
639
+ readonly internalType: "uint16";
640
+ readonly name: "";
641
+ readonly type: "uint16";
642
+ }];
643
+ readonly stateMutability: "view";
644
+ readonly type: "function";
645
+ }, {
646
+ readonly inputs: readonly [];
647
+ readonly name: "DEV_SUPPLY";
648
+ readonly outputs: readonly [{
649
+ readonly internalType: "uint256";
650
+ readonly name: "";
651
+ readonly type: "uint256";
652
+ }];
653
+ readonly stateMutability: "view";
654
+ readonly type: "function";
655
+ }, {
656
+ readonly inputs: readonly [];
657
+ readonly name: "DOMAIN_SEPARATOR";
658
+ readonly outputs: readonly [{
659
+ readonly internalType: "bytes32";
660
+ readonly name: "result";
661
+ readonly type: "bytes32";
662
+ }];
663
+ readonly stateMutability: "view";
664
+ readonly type: "function";
665
+ }, {
666
+ readonly inputs: readonly [];
667
+ readonly name: "GIFT_POSITIONS";
668
+ readonly outputs: readonly [{
669
+ readonly internalType: "uint256";
670
+ readonly name: "";
671
+ readonly type: "uint256";
672
+ }];
673
+ readonly stateMutability: "view";
674
+ readonly type: "function";
675
+ }, {
676
+ readonly inputs: readonly [];
677
+ readonly name: "HOOK";
678
+ readonly outputs: readonly [{
679
+ readonly internalType: "contract IPolyphemeHook";
680
+ readonly name: "";
681
+ readonly type: "address";
682
+ }];
683
+ readonly stateMutability: "view";
684
+ readonly type: "function";
685
+ }, {
686
+ readonly inputs: readonly [];
687
+ readonly name: "LAUNCH_PRICE";
688
+ readonly outputs: readonly [{
689
+ readonly internalType: "uint256";
690
+ readonly name: "";
691
+ readonly type: "uint256";
692
+ }];
693
+ readonly stateMutability: "view";
694
+ readonly type: "function";
695
+ }, {
696
+ readonly inputs: readonly [];
697
+ readonly name: "MAX_POSITIONS";
698
+ readonly outputs: readonly [{
699
+ readonly internalType: "uint256";
700
+ readonly name: "";
701
+ readonly type: "uint256";
702
+ }];
703
+ readonly stateMutability: "view";
704
+ readonly type: "function";
705
+ }, {
706
+ readonly inputs: readonly [];
707
+ readonly name: "MAX_TERM";
708
+ readonly outputs: readonly [{
709
+ readonly internalType: "uint40";
710
+ readonly name: "";
711
+ readonly type: "uint40";
712
+ }];
713
+ readonly stateMutability: "view";
714
+ readonly type: "function";
715
+ }, {
716
+ readonly inputs: readonly [];
717
+ readonly name: "MIN_TERM";
718
+ readonly outputs: readonly [{
719
+ readonly internalType: "uint40";
720
+ readonly name: "";
721
+ readonly type: "uint40";
722
+ }];
723
+ readonly stateMutability: "view";
724
+ readonly type: "function";
725
+ }, {
726
+ readonly inputs: readonly [];
727
+ readonly name: "PROGRAM_FEE_BPS_PER_YEAR";
728
+ readonly outputs: readonly [{
729
+ readonly internalType: "uint16";
730
+ readonly name: "";
731
+ readonly type: "uint16";
732
+ }];
733
+ readonly stateMutability: "view";
734
+ readonly type: "function";
735
+ }, {
736
+ readonly inputs: readonly [];
737
+ readonly name: "PROGRAM_GAS";
738
+ readonly outputs: readonly [{
739
+ readonly internalType: "uint256";
740
+ readonly name: "";
741
+ readonly type: "uint256";
742
+ }];
743
+ readonly stateMutability: "view";
744
+ readonly type: "function";
745
+ }, {
746
+ readonly inputs: readonly [];
747
+ readonly name: "SELL_BAND_BPS";
748
+ readonly outputs: readonly [{
749
+ readonly internalType: "uint16";
750
+ readonly name: "";
751
+ readonly type: "uint16";
752
+ }];
753
+ readonly stateMutability: "view";
754
+ readonly type: "function";
755
+ }, {
756
+ readonly inputs: readonly [];
757
+ readonly name: "SUPPLY";
758
+ readonly outputs: readonly [{
759
+ readonly internalType: "uint256";
760
+ readonly name: "";
761
+ readonly type: "uint256";
762
+ }];
763
+ readonly stateMutability: "view";
764
+ readonly type: "function";
765
+ }, {
766
+ readonly inputs: readonly [];
767
+ readonly name: "TIP_FLAT_MAX";
768
+ readonly outputs: readonly [{
769
+ readonly internalType: "uint256";
770
+ readonly name: "";
771
+ readonly type: "uint256";
772
+ }];
773
+ readonly stateMutability: "view";
774
+ readonly type: "function";
775
+ }, {
776
+ readonly inputs: readonly [];
777
+ readonly name: "UNIT";
778
+ readonly outputs: readonly [{
779
+ readonly internalType: "uint256";
780
+ readonly name: "";
781
+ readonly type: "uint256";
782
+ }];
783
+ readonly stateMutability: "view";
784
+ readonly type: "function";
785
+ }, {
786
+ readonly inputs: readonly [{
787
+ readonly internalType: "address";
788
+ readonly name: "who";
789
+ readonly type: "address";
790
+ }];
791
+ readonly name: "acceptsCode";
792
+ readonly outputs: readonly [{
793
+ readonly internalType: "bool";
794
+ readonly name: "";
795
+ readonly type: "bool";
796
+ }];
797
+ readonly stateMutability: "view";
798
+ readonly type: "function";
799
+ }, {
800
+ readonly inputs: readonly [{
801
+ readonly internalType: "uint256";
802
+ readonly name: "id";
803
+ readonly type: "uint256";
804
+ }, {
805
+ readonly internalType: "uint256";
806
+ readonly name: "units";
807
+ readonly type: "uint256";
808
+ }];
809
+ readonly name: "act";
810
+ readonly outputs: readonly [{
811
+ readonly internalType: "uint256";
812
+ readonly name: "out";
813
+ readonly type: "uint256";
814
+ }];
815
+ readonly stateMutability: "payable";
816
+ readonly type: "function";
817
+ }, {
818
+ readonly inputs: readonly [{
819
+ readonly internalType: "address";
820
+ readonly name: "owner";
821
+ readonly type: "address";
822
+ }, {
823
+ readonly internalType: "address";
824
+ readonly name: "spender";
825
+ readonly type: "address";
826
+ }];
827
+ readonly name: "allowance";
828
+ readonly outputs: readonly [{
829
+ readonly internalType: "uint256";
830
+ readonly name: "result";
831
+ readonly type: "uint256";
832
+ }];
833
+ readonly stateMutability: "view";
834
+ readonly type: "function";
835
+ }, {
836
+ readonly inputs: readonly [{
837
+ readonly internalType: "address";
838
+ readonly name: "spender";
839
+ readonly type: "address";
840
+ }, {
841
+ readonly internalType: "uint256";
842
+ readonly name: "amount";
843
+ readonly type: "uint256";
844
+ }];
845
+ readonly name: "approve";
846
+ readonly outputs: readonly [{
847
+ readonly internalType: "bool";
848
+ readonly name: "";
849
+ readonly type: "bool";
850
+ }];
851
+ readonly stateMutability: "nonpayable";
852
+ readonly type: "function";
853
+ }, {
854
+ readonly inputs: readonly [{
855
+ readonly internalType: "address";
856
+ readonly name: "owner";
857
+ readonly type: "address";
858
+ }];
859
+ readonly name: "balanceOf";
860
+ readonly outputs: readonly [{
861
+ readonly internalType: "uint256";
862
+ readonly name: "result";
863
+ readonly type: "uint256";
864
+ }];
865
+ readonly stateMutability: "view";
866
+ readonly type: "function";
867
+ }, {
868
+ readonly inputs: readonly [{
869
+ readonly internalType: "uint256";
870
+ readonly name: "amount";
871
+ readonly type: "uint256";
872
+ }];
873
+ readonly name: "burn";
874
+ readonly outputs: readonly [];
875
+ readonly stateMutability: "nonpayable";
876
+ readonly type: "function";
877
+ }, {
878
+ readonly inputs: readonly [];
879
+ readonly name: "burned";
880
+ readonly outputs: readonly [{
881
+ readonly internalType: "uint256";
882
+ readonly name: "";
883
+ readonly type: "uint256";
884
+ }];
885
+ readonly stateMutability: "view";
886
+ readonly type: "function";
887
+ }, {
888
+ readonly inputs: readonly [];
889
+ readonly name: "cancelOwnershipHandover";
890
+ readonly outputs: readonly [];
891
+ readonly stateMutability: "payable";
892
+ readonly type: "function";
893
+ }, {
894
+ readonly inputs: readonly [];
895
+ readonly name: "claim";
896
+ readonly outputs: readonly [{
897
+ readonly internalType: "uint256";
898
+ readonly name: "eth";
899
+ readonly type: "uint256";
900
+ }];
901
+ readonly stateMutability: "nonpayable";
902
+ readonly type: "function";
903
+ }, {
904
+ readonly inputs: readonly [{
905
+ readonly internalType: "address";
906
+ readonly name: "pendingOwner";
907
+ readonly type: "address";
908
+ }];
909
+ readonly name: "completeOwnershipHandover";
910
+ readonly outputs: readonly [];
911
+ readonly stateMutability: "payable";
912
+ readonly type: "function";
913
+ }, {
914
+ readonly inputs: readonly [];
915
+ readonly name: "decimals";
916
+ readonly outputs: readonly [{
917
+ readonly internalType: "uint8";
918
+ readonly name: "";
919
+ readonly type: "uint8";
920
+ }];
921
+ readonly stateMutability: "view";
922
+ readonly type: "function";
923
+ }, {
924
+ readonly inputs: readonly [{
925
+ readonly internalType: "uint256";
926
+ readonly name: "id";
927
+ readonly type: "uint256";
928
+ }];
929
+ readonly name: "disarm";
930
+ readonly outputs: readonly [];
931
+ readonly stateMutability: "nonpayable";
932
+ readonly type: "function";
933
+ }, {
934
+ readonly inputs: readonly [{
935
+ readonly internalType: "uint256";
936
+ readonly name: "id";
937
+ readonly type: "uint256";
938
+ }];
939
+ readonly name: "expire";
940
+ readonly outputs: readonly [];
941
+ readonly stateMutability: "nonpayable";
942
+ readonly type: "function";
943
+ }, {
944
+ readonly inputs: readonly [{
945
+ readonly internalType: "uint256";
946
+ readonly name: "id";
947
+ readonly type: "uint256";
948
+ }, {
949
+ readonly internalType: "uint40";
950
+ readonly name: "newEnd";
951
+ readonly type: "uint40";
952
+ }];
953
+ readonly name: "extend";
954
+ readonly outputs: readonly [{
955
+ readonly internalType: "uint256";
956
+ readonly name: "fee";
957
+ readonly type: "uint256";
958
+ }];
959
+ readonly stateMutability: "payable";
960
+ readonly type: "function";
961
+ }, {
962
+ readonly inputs: readonly [];
963
+ readonly name: "name";
964
+ readonly outputs: readonly [{
965
+ readonly internalType: "string";
966
+ readonly name: "";
967
+ readonly type: "string";
968
+ }];
969
+ readonly stateMutability: "view";
970
+ readonly type: "function";
971
+ }, {
972
+ readonly inputs: readonly [];
973
+ readonly name: "nextId";
974
+ readonly outputs: readonly [{
975
+ readonly internalType: "uint256";
976
+ readonly name: "";
977
+ readonly type: "uint256";
978
+ }];
979
+ readonly stateMutability: "view";
980
+ readonly type: "function";
981
+ }, {
982
+ readonly inputs: readonly [{
983
+ readonly internalType: "address";
984
+ readonly name: "owner";
985
+ readonly type: "address";
986
+ }];
987
+ readonly name: "nonces";
988
+ readonly outputs: readonly [{
989
+ readonly internalType: "uint256";
990
+ readonly name: "result";
991
+ readonly type: "uint256";
992
+ }];
993
+ readonly stateMutability: "view";
994
+ readonly type: "function";
995
+ }, {
996
+ readonly inputs: readonly [{
997
+ readonly internalType: "uint256";
998
+ readonly name: "amount";
999
+ readonly type: "uint256";
1000
+ }];
1001
+ readonly name: "openPool";
1002
+ readonly outputs: readonly [];
1003
+ readonly stateMutability: "nonpayable";
1004
+ readonly type: "function";
1005
+ }, {
1006
+ readonly inputs: readonly [{
1007
+ readonly internalType: "address";
1008
+ readonly name: "";
1009
+ readonly type: "address";
1010
+ }];
1011
+ readonly name: "owed";
1012
+ readonly outputs: readonly [{
1013
+ readonly internalType: "uint256";
1014
+ readonly name: "";
1015
+ readonly type: "uint256";
1016
+ }];
1017
+ readonly stateMutability: "view";
1018
+ readonly type: "function";
1019
+ }, {
1020
+ readonly inputs: readonly [];
1021
+ readonly name: "owner";
1022
+ readonly outputs: readonly [{
1023
+ readonly internalType: "address";
1024
+ readonly name: "result";
1025
+ readonly type: "address";
1026
+ }];
1027
+ readonly stateMutability: "view";
1028
+ readonly type: "function";
1029
+ }, {
1030
+ readonly inputs: readonly [{
1031
+ readonly internalType: "address";
1032
+ readonly name: "pendingOwner";
1033
+ readonly type: "address";
1034
+ }];
1035
+ readonly name: "ownershipHandoverExpiresAt";
1036
+ readonly outputs: readonly [{
1037
+ readonly internalType: "uint256";
1038
+ readonly name: "result";
1039
+ readonly type: "uint256";
1040
+ }];
1041
+ readonly stateMutability: "view";
1042
+ readonly type: "function";
1043
+ }, {
1044
+ readonly inputs: readonly [{
1045
+ readonly internalType: "address";
1046
+ readonly name: "owner";
1047
+ readonly type: "address";
1048
+ }, {
1049
+ readonly internalType: "address";
1050
+ readonly name: "spender";
1051
+ readonly type: "address";
1052
+ }, {
1053
+ readonly internalType: "uint256";
1054
+ readonly name: "value";
1055
+ readonly type: "uint256";
1056
+ }, {
1057
+ readonly internalType: "uint256";
1058
+ readonly name: "deadline";
1059
+ readonly type: "uint256";
1060
+ }, {
1061
+ readonly internalType: "uint8";
1062
+ readonly name: "v";
1063
+ readonly type: "uint8";
1064
+ }, {
1065
+ readonly internalType: "bytes32";
1066
+ readonly name: "r";
1067
+ readonly type: "bytes32";
1068
+ }, {
1069
+ readonly internalType: "bytes32";
1070
+ readonly name: "s";
1071
+ readonly type: "bytes32";
1072
+ }];
1073
+ readonly name: "permit";
1074
+ readonly outputs: readonly [];
1075
+ readonly stateMutability: "nonpayable";
1076
+ readonly type: "function";
1077
+ }, {
1078
+ readonly inputs: readonly [{
1079
+ readonly internalType: "address";
1080
+ readonly name: "owner";
1081
+ readonly type: "address";
1082
+ }];
1083
+ readonly name: "plainOf";
1084
+ readonly outputs: readonly [{
1085
+ readonly internalType: "uint256";
1086
+ readonly name: "";
1087
+ readonly type: "uint256";
1088
+ }];
1089
+ readonly stateMutability: "view";
1090
+ readonly type: "function";
1091
+ }, {
1092
+ readonly inputs: readonly [];
1093
+ readonly name: "poolKey";
1094
+ readonly outputs: readonly [{
1095
+ readonly components: readonly [{
1096
+ readonly internalType: "Currency";
1097
+ readonly name: "currency0";
1098
+ readonly type: "address";
1099
+ }, {
1100
+ readonly internalType: "Currency";
1101
+ readonly name: "currency1";
1102
+ readonly type: "address";
1103
+ }, {
1104
+ readonly internalType: "uint24";
1105
+ readonly name: "fee";
1106
+ readonly type: "uint24";
1107
+ }, {
1108
+ readonly internalType: "int24";
1109
+ readonly name: "tickSpacing";
1110
+ readonly type: "int24";
1111
+ }, {
1112
+ readonly internalType: "contract IHooks";
1113
+ readonly name: "hooks";
1114
+ readonly type: "address";
1115
+ }];
1116
+ readonly internalType: "struct PoolKey";
1117
+ readonly name: "";
1118
+ readonly type: "tuple";
1119
+ }];
1120
+ readonly stateMutability: "view";
1121
+ readonly type: "function";
1122
+ }, {
1123
+ readonly inputs: readonly [];
1124
+ readonly name: "poolManager";
1125
+ readonly outputs: readonly [{
1126
+ readonly internalType: "contract IPoolManager";
1127
+ readonly name: "";
1128
+ readonly type: "address";
1129
+ }];
1130
+ readonly stateMutability: "view";
1131
+ readonly type: "function";
1132
+ }, {
1133
+ readonly inputs: readonly [{
1134
+ readonly internalType: "uint256";
1135
+ readonly name: "id";
1136
+ readonly type: "uint256";
1137
+ }];
1138
+ readonly name: "positionOf";
1139
+ readonly outputs: readonly [{
1140
+ readonly components: readonly [{
1141
+ readonly internalType: "address";
1142
+ readonly name: "owner";
1143
+ readonly type: "address";
1144
+ }, {
1145
+ readonly internalType: "uint40";
1146
+ readonly name: "start";
1147
+ readonly type: "uint40";
1148
+ }, {
1149
+ readonly internalType: "uint40";
1150
+ readonly name: "end";
1151
+ readonly type: "uint40";
1152
+ }, {
1153
+ readonly internalType: "bool";
1154
+ readonly name: "armed";
1155
+ readonly type: "bool";
1156
+ }, {
1157
+ readonly internalType: "address";
1158
+ readonly name: "program";
1159
+ readonly type: "address";
1160
+ }, {
1161
+ readonly internalType: "uint40";
1162
+ readonly name: "movedAt";
1163
+ readonly type: "uint40";
1164
+ }, {
1165
+ readonly internalType: "uint56";
1166
+ readonly name: "lastGwei";
1167
+ readonly type: "uint56";
1168
+ }, {
1169
+ readonly internalType: "uint128";
1170
+ readonly name: "amount";
1171
+ readonly type: "uint128";
1172
+ }, {
1173
+ readonly internalType: "uint128";
1174
+ readonly name: "initial";
1175
+ readonly type: "uint128";
1176
+ }, {
1177
+ readonly internalType: "bytes";
1178
+ readonly name: "params";
1179
+ readonly type: "bytes";
1180
+ }, {
1181
+ readonly internalType: "bytes32";
1182
+ readonly name: "note";
1183
+ readonly type: "bytes32";
1184
+ }];
1185
+ readonly internalType: "struct Position";
1186
+ readonly name: "";
1187
+ readonly type: "tuple";
1188
+ }];
1189
+ readonly stateMutability: "view";
1190
+ readonly type: "function";
1191
+ }, {
1192
+ readonly inputs: readonly [{
1193
+ readonly internalType: "address";
1194
+ readonly name: "owner";
1195
+ readonly type: "address";
1196
+ }];
1197
+ readonly name: "positionsOf";
1198
+ readonly outputs: readonly [{
1199
+ readonly internalType: "uint256[]";
1200
+ readonly name: "";
1201
+ readonly type: "uint256[]";
1202
+ }];
1203
+ readonly stateMutability: "view";
1204
+ readonly type: "function";
1205
+ }, {
1206
+ readonly inputs: readonly [{
1207
+ readonly internalType: "uint256";
1208
+ readonly name: "amount";
1209
+ readonly type: "uint256";
1210
+ }, {
1211
+ readonly internalType: "address";
1212
+ readonly name: "program_";
1213
+ readonly type: "address";
1214
+ }, {
1215
+ readonly internalType: "bytes";
1216
+ readonly name: "params";
1217
+ readonly type: "bytes";
1218
+ }, {
1219
+ readonly internalType: "uint40";
1220
+ readonly name: "end";
1221
+ readonly type: "uint40";
1222
+ }];
1223
+ readonly name: "program";
1224
+ readonly outputs: readonly [{
1225
+ readonly internalType: "uint256";
1226
+ readonly name: "id";
1227
+ readonly type: "uint256";
1228
+ }];
1229
+ readonly stateMutability: "payable";
1230
+ readonly type: "function";
1231
+ }, {
1232
+ readonly inputs: readonly [{
1233
+ readonly internalType: "uint256";
1234
+ readonly name: "amount";
1235
+ readonly type: "uint256";
1236
+ }, {
1237
+ readonly internalType: "uint40";
1238
+ readonly name: "end";
1239
+ readonly type: "uint40";
1240
+ }];
1241
+ readonly name: "programFee";
1242
+ readonly outputs: readonly [{
1243
+ readonly internalType: "uint256";
1244
+ readonly name: "";
1245
+ readonly type: "uint256";
1246
+ }];
1247
+ readonly stateMutability: "view";
1248
+ readonly type: "function";
1249
+ }, {
1250
+ readonly inputs: readonly [{
1251
+ readonly internalType: "address";
1252
+ readonly name: "";
1253
+ readonly type: "address";
1254
+ }];
1255
+ readonly name: "programmedOf";
1256
+ readonly outputs: readonly [{
1257
+ readonly internalType: "uint256";
1258
+ readonly name: "";
1259
+ readonly type: "uint256";
1260
+ }];
1261
+ readonly stateMutability: "view";
1262
+ readonly type: "function";
1263
+ }, {
1264
+ readonly inputs: readonly [];
1265
+ readonly name: "programmedSupply";
1266
+ readonly outputs: readonly [{
1267
+ readonly internalType: "uint256";
1268
+ readonly name: "";
1269
+ readonly type: "uint256";
1270
+ }];
1271
+ readonly stateMutability: "view";
1272
+ readonly type: "function";
1273
+ }, {
1274
+ readonly inputs: readonly [{
1275
+ readonly internalType: "uint256";
1276
+ readonly name: "id";
1277
+ readonly type: "uint256";
1278
+ }];
1279
+ readonly name: "refuse";
1280
+ readonly outputs: readonly [];
1281
+ readonly stateMutability: "nonpayable";
1282
+ readonly type: "function";
1283
+ }, {
1284
+ readonly inputs: readonly [];
1285
+ readonly name: "renounceOwnership";
1286
+ readonly outputs: readonly [];
1287
+ readonly stateMutability: "payable";
1288
+ readonly type: "function";
1289
+ }, {
1290
+ readonly inputs: readonly [];
1291
+ readonly name: "requestOwnershipHandover";
1292
+ readonly outputs: readonly [];
1293
+ readonly stateMutability: "payable";
1294
+ readonly type: "function";
1295
+ }, {
1296
+ readonly inputs: readonly [];
1297
+ readonly name: "seeded";
1298
+ readonly outputs: readonly [{
1299
+ readonly internalType: "bool";
1300
+ readonly name: "";
1301
+ readonly type: "bool";
1302
+ }];
1303
+ readonly stateMutability: "view";
1304
+ readonly type: "function";
1305
+ }, {
1306
+ readonly inputs: readonly [{
1307
+ readonly internalType: "uint256";
1308
+ readonly name: "id";
1309
+ readonly type: "uint256";
1310
+ }, {
1311
+ readonly internalType: "uint256";
1312
+ readonly name: "amount";
1313
+ readonly type: "uint256";
1314
+ }, {
1315
+ readonly internalType: "uint256";
1316
+ readonly name: "minOut";
1317
+ readonly type: "uint256";
1318
+ }];
1319
+ readonly name: "sell";
1320
+ readonly outputs: readonly [{
1321
+ readonly internalType: "uint256";
1322
+ readonly name: "out";
1323
+ readonly type: "uint256";
1324
+ }];
1325
+ readonly stateMutability: "nonpayable";
1326
+ readonly type: "function";
1327
+ }, {
1328
+ readonly inputs: readonly [{
1329
+ readonly internalType: "uint256";
1330
+ readonly name: "amount";
1331
+ readonly type: "uint256";
1332
+ }, {
1333
+ readonly internalType: "uint256";
1334
+ readonly name: "minOut";
1335
+ readonly type: "uint256";
1336
+ }];
1337
+ readonly name: "sellPlain";
1338
+ readonly outputs: readonly [{
1339
+ readonly internalType: "uint256";
1340
+ readonly name: "ethOut";
1341
+ readonly type: "uint256";
1342
+ }];
1343
+ readonly stateMutability: "nonpayable";
1344
+ readonly type: "function";
1345
+ }, {
1346
+ readonly inputs: readonly [{
1347
+ readonly internalType: "uint256";
1348
+ readonly name: "id";
1349
+ readonly type: "uint256";
1350
+ }, {
1351
+ readonly internalType: "address";
1352
+ readonly name: "to";
1353
+ readonly type: "address";
1354
+ }, {
1355
+ readonly internalType: "uint256";
1356
+ readonly name: "amount";
1357
+ readonly type: "uint256";
1358
+ }];
1359
+ readonly name: "send";
1360
+ readonly outputs: readonly [{
1361
+ readonly internalType: "uint256";
1362
+ readonly name: "newId";
1363
+ readonly type: "uint256";
1364
+ }];
1365
+ readonly stateMutability: "nonpayable";
1366
+ readonly type: "function";
1367
+ }, {
1368
+ readonly inputs: readonly [{
1369
+ readonly internalType: "uint256";
1370
+ readonly name: "id";
1371
+ readonly type: "uint256";
1372
+ }, {
1373
+ readonly internalType: "address[]";
1374
+ readonly name: "to";
1375
+ readonly type: "address[]";
1376
+ }, {
1377
+ readonly internalType: "uint256[]";
1378
+ readonly name: "amounts";
1379
+ readonly type: "uint256[]";
1380
+ }];
1381
+ readonly name: "sendMany";
1382
+ readonly outputs: readonly [{
1383
+ readonly internalType: "uint256";
1384
+ readonly name: "firstNewId";
1385
+ readonly type: "uint256";
1386
+ }];
1387
+ readonly stateMutability: "nonpayable";
1388
+ readonly type: "function";
1389
+ }, {
1390
+ readonly inputs: readonly [{
1391
+ readonly internalType: "bool";
1392
+ readonly name: "accepts";
1393
+ readonly type: "bool";
1394
+ }];
1395
+ readonly name: "setAcceptsCode";
1396
+ readonly outputs: readonly [];
1397
+ readonly stateMutability: "nonpayable";
1398
+ readonly type: "function";
1399
+ }, {
1400
+ readonly inputs: readonly [];
1401
+ readonly name: "settledPrice";
1402
+ readonly outputs: readonly [{
1403
+ readonly internalType: "uint256";
1404
+ readonly name: "";
1405
+ readonly type: "uint256";
1406
+ }];
1407
+ readonly stateMutability: "view";
1408
+ readonly type: "function";
1409
+ }, {
1410
+ readonly inputs: readonly [];
1411
+ readonly name: "settledTick";
1412
+ readonly outputs: readonly [{
1413
+ readonly internalType: "int24";
1414
+ readonly name: "";
1415
+ readonly type: "int24";
1416
+ }];
1417
+ readonly stateMutability: "view";
1418
+ readonly type: "function";
1419
+ }, {
1420
+ readonly inputs: readonly [];
1421
+ readonly name: "symbol";
1422
+ readonly outputs: readonly [{
1423
+ readonly internalType: "string";
1424
+ readonly name: "";
1425
+ readonly type: "string";
1426
+ }];
1427
+ readonly stateMutability: "view";
1428
+ readonly type: "function";
1429
+ }, {
1430
+ readonly inputs: readonly [];
1431
+ readonly name: "tickCumulative";
1432
+ readonly outputs: readonly [{
1433
+ readonly internalType: "int56";
1434
+ readonly name: "";
1435
+ readonly type: "int56";
1436
+ }];
1437
+ readonly stateMutability: "view";
1438
+ readonly type: "function";
1439
+ }, {
1440
+ readonly inputs: readonly [];
1441
+ readonly name: "totalSupply";
1442
+ readonly outputs: readonly [{
1443
+ readonly internalType: "uint256";
1444
+ readonly name: "result";
1445
+ readonly type: "uint256";
1446
+ }];
1447
+ readonly stateMutability: "view";
1448
+ readonly type: "function";
1449
+ }, {
1450
+ readonly inputs: readonly [{
1451
+ readonly internalType: "address";
1452
+ readonly name: "to";
1453
+ readonly type: "address";
1454
+ }, {
1455
+ readonly internalType: "uint256";
1456
+ readonly name: "amount";
1457
+ readonly type: "uint256";
1458
+ }];
1459
+ readonly name: "transfer";
1460
+ readonly outputs: readonly [{
1461
+ readonly internalType: "bool";
1462
+ readonly name: "";
1463
+ readonly type: "bool";
1464
+ }];
1465
+ readonly stateMutability: "nonpayable";
1466
+ readonly type: "function";
1467
+ }, {
1468
+ readonly inputs: readonly [{
1469
+ readonly internalType: "address";
1470
+ readonly name: "from";
1471
+ readonly type: "address";
1472
+ }, {
1473
+ readonly internalType: "address";
1474
+ readonly name: "to";
1475
+ readonly type: "address";
1476
+ }, {
1477
+ readonly internalType: "uint256";
1478
+ readonly name: "amount";
1479
+ readonly type: "uint256";
1480
+ }];
1481
+ readonly name: "transferFrom";
1482
+ readonly outputs: readonly [{
1483
+ readonly internalType: "bool";
1484
+ readonly name: "";
1485
+ readonly type: "bool";
1486
+ }];
1487
+ readonly stateMutability: "nonpayable";
1488
+ readonly type: "function";
1489
+ }, {
1490
+ readonly inputs: readonly [{
1491
+ readonly internalType: "address";
1492
+ readonly name: "newOwner";
1493
+ readonly type: "address";
1494
+ }];
1495
+ readonly name: "transferOwnership";
1496
+ readonly outputs: readonly [];
1497
+ readonly stateMutability: "payable";
1498
+ readonly type: "function";
1499
+ }, {
1500
+ readonly inputs: readonly [{
1501
+ readonly internalType: "bytes";
1502
+ readonly name: "data";
1503
+ readonly type: "bytes";
1504
+ }];
1505
+ readonly name: "unlockCallback";
1506
+ readonly outputs: readonly [{
1507
+ readonly internalType: "bytes";
1508
+ readonly name: "";
1509
+ readonly type: "bytes";
1510
+ }];
1511
+ readonly stateMutability: "nonpayable";
1512
+ readonly type: "function";
1513
+ }, {
1514
+ readonly stateMutability: "payable";
1515
+ readonly type: "receive";
1516
+ }];
1517
+ /**
1518
+ * Type-safe ABI for Polypheme_json
1519
+ */
1520
+ export type Polypheme_jsonAbi = typeof Polypheme_jsonAbi;
1521
+ /**
1522
+ * Contract instance type for Polypheme_json
1523
+ */
1524
+ export type Polypheme_jsonContract = any;
1525
+ /**
1526
+ * Polypheme_json Contract Class
1527
+ *
1528
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1529
+ *
1530
+ * @example
1531
+ * ```typescript
1532
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1533
+ * import { mainnet } from 'viem/chains';
1534
+ * import { Polypheme_json } from 'Polypheme_json';
1535
+ *
1536
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1537
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1538
+ *
1539
+ * const contract = new Polypheme_json('0x...', { publicClient, walletClient });
1540
+ *
1541
+ * // Read functions
1542
+ * const result = await contract.balanceOf('0x...');
1543
+ *
1544
+ * // Write functions
1545
+ * const hash = await contract.transfer('0x...', 1000n);
1546
+ *
1547
+ * // Simulate transactions (dry-run)
1548
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1549
+ * console.log('Gas estimate:', simulation.request.gas);
1550
+ *
1551
+ * // Watch events
1552
+ * const unwatch = contract.watch.Transfer((event) => {
1553
+ * console.log('Transfer event:', event);
1554
+ * });
1555
+ * ```
1556
+ */
1557
+ export declare class Polypheme_json {
1558
+ private contract;
1559
+ private contractAddress;
1560
+ private publicClient;
1561
+ constructor(address: Address, clients: {
1562
+ publicClient: PublicClient;
1563
+ walletClient?: WalletClient;
1564
+ });
1565
+ /**
1566
+ * Get the contract address
1567
+ */
1568
+ get address(): Address;
1569
+ /**
1570
+ * Get the underlying viem contract instance
1571
+ */
1572
+ getContract(): Polypheme_jsonContract;
1573
+ /**
1574
+ * ARM_DELAY
1575
+ * view
1576
+ */
1577
+ ARM_DELAY(): Promise<bigint>;
1578
+ /**
1579
+ * BPS
1580
+ * view
1581
+ */
1582
+ BPS(): Promise<bigint>;
1583
+ /**
1584
+ * DEV_SUPPLY
1585
+ * view
1586
+ */
1587
+ DEV_SUPPLY(): Promise<bigint>;
1588
+ /**
1589
+ * DOMAIN_SEPARATOR
1590
+ * view
1591
+ */
1592
+ DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
1593
+ /**
1594
+ * GIFT_POSITIONS
1595
+ * view
1596
+ */
1597
+ GIFT_POSITIONS(): Promise<bigint>;
1598
+ /**
1599
+ * HOOK
1600
+ * view
1601
+ */
1602
+ HOOK(): Promise<`0x${string}`>;
1603
+ /**
1604
+ * LAUNCH_PRICE
1605
+ * view
1606
+ */
1607
+ LAUNCH_PRICE(): Promise<bigint>;
1608
+ /**
1609
+ * MAX_POSITIONS
1610
+ * view
1611
+ */
1612
+ MAX_POSITIONS(): Promise<bigint>;
1613
+ /**
1614
+ * MAX_TERM
1615
+ * view
1616
+ */
1617
+ MAX_TERM(): Promise<bigint>;
1618
+ /**
1619
+ * MIN_TERM
1620
+ * view
1621
+ */
1622
+ MIN_TERM(): Promise<bigint>;
1623
+ /**
1624
+ * PROGRAM_FEE_BPS_PER_YEAR
1625
+ * view
1626
+ */
1627
+ PROGRAM_FEE_BPS_PER_YEAR(): Promise<bigint>;
1628
+ /**
1629
+ * PROGRAM_GAS
1630
+ * view
1631
+ */
1632
+ PROGRAM_GAS(): Promise<bigint>;
1633
+ /**
1634
+ * SELL_BAND_BPS
1635
+ * view
1636
+ */
1637
+ SELL_BAND_BPS(): Promise<bigint>;
1638
+ /**
1639
+ * SUPPLY
1640
+ * view
1641
+ */
1642
+ SUPPLY(): Promise<bigint>;
1643
+ /**
1644
+ * TIP_FLAT_MAX
1645
+ * view
1646
+ */
1647
+ TIP_FLAT_MAX(): Promise<bigint>;
1648
+ /**
1649
+ * UNIT
1650
+ * view
1651
+ */
1652
+ UNIT(): Promise<bigint>;
1653
+ /**
1654
+ * acceptsCode
1655
+ * view
1656
+ */
1657
+ acceptsCode(who: `0x${string}`): Promise<boolean>;
1658
+ /**
1659
+ * allowance
1660
+ * view
1661
+ */
1662
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
1663
+ /**
1664
+ * balanceOf
1665
+ * view
1666
+ */
1667
+ balanceOf(owner: `0x${string}`): Promise<bigint>;
1668
+ /**
1669
+ * burned
1670
+ * view
1671
+ */
1672
+ burned(): Promise<bigint>;
1673
+ /**
1674
+ * decimals
1675
+ * view
1676
+ */
1677
+ decimals(): Promise<bigint>;
1678
+ /**
1679
+ * name
1680
+ * view
1681
+ */
1682
+ name(): Promise<string>;
1683
+ /**
1684
+ * nextId
1685
+ * view
1686
+ */
1687
+ nextId(): Promise<bigint>;
1688
+ /**
1689
+ * nonces
1690
+ * view
1691
+ */
1692
+ nonces(owner: `0x${string}`): Promise<bigint>;
1693
+ /**
1694
+ * owed
1695
+ * view
1696
+ */
1697
+ owed(arg0: `0x${string}`): Promise<bigint>;
1698
+ /**
1699
+ * owner
1700
+ * view
1701
+ */
1702
+ owner(): Promise<`0x${string}`>;
1703
+ /**
1704
+ * ownershipHandoverExpiresAt
1705
+ * view
1706
+ */
1707
+ ownershipHandoverExpiresAt(pendingOwner: `0x${string}`): Promise<bigint>;
1708
+ /**
1709
+ * plainOf
1710
+ * view
1711
+ */
1712
+ plainOf(owner: `0x${string}`): Promise<bigint>;
1713
+ /**
1714
+ * poolKey
1715
+ * view
1716
+ */
1717
+ poolKey(): Promise<PoolKey>;
1718
+ /**
1719
+ * poolManager
1720
+ * view
1721
+ */
1722
+ poolManager(): Promise<`0x${string}`>;
1723
+ /**
1724
+ * positionOf
1725
+ * view
1726
+ */
1727
+ positionOf(id: bigint): Promise<Position>;
1728
+ /**
1729
+ * positionsOf
1730
+ * view
1731
+ */
1732
+ positionsOf(owner: `0x${string}`): Promise<bigint[]>;
1733
+ /**
1734
+ * programFee
1735
+ * view
1736
+ */
1737
+ programFee(amount: bigint, end: bigint): Promise<bigint>;
1738
+ /**
1739
+ * programmedOf
1740
+ * view
1741
+ */
1742
+ programmedOf(arg0: `0x${string}`): Promise<bigint>;
1743
+ /**
1744
+ * programmedSupply
1745
+ * view
1746
+ */
1747
+ programmedSupply(): Promise<bigint>;
1748
+ /**
1749
+ * seeded
1750
+ * view
1751
+ */
1752
+ seeded(): Promise<boolean>;
1753
+ /**
1754
+ * settledPrice
1755
+ * view
1756
+ */
1757
+ settledPrice(): Promise<bigint>;
1758
+ /**
1759
+ * settledTick
1760
+ * view
1761
+ */
1762
+ settledTick(): Promise<bigint>;
1763
+ /**
1764
+ * symbol
1765
+ * view
1766
+ */
1767
+ symbol(): Promise<string>;
1768
+ /**
1769
+ * tickCumulative
1770
+ * view
1771
+ */
1772
+ tickCumulative(): Promise<bigint>;
1773
+ /**
1774
+ * totalSupply
1775
+ * view
1776
+ */
1777
+ totalSupply(): Promise<bigint>;
1778
+ /**
1779
+ * act
1780
+ * payable
1781
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1782
+ */
1783
+ act(id: bigint, units: bigint, options?: {
1784
+ accessList?: import('viem').AccessList;
1785
+ authorizationList?: import('viem').AuthorizationList;
1786
+ chain?: import('viem').Chain | null;
1787
+ dataSuffix?: `0x${string}`;
1788
+ gas?: bigint;
1789
+ gasPrice?: bigint;
1790
+ maxFeePerGas?: bigint;
1791
+ maxPriorityFeePerGas?: bigint;
1792
+ nonce?: number;
1793
+ value?: bigint;
1794
+ }): Promise<`0x${string}`>;
1795
+ /**
1796
+ * approve
1797
+ * nonpayable
1798
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1799
+ */
1800
+ approve(spender: `0x${string}`, amount: bigint, options?: {
1801
+ accessList?: import('viem').AccessList;
1802
+ authorizationList?: import('viem').AuthorizationList;
1803
+ chain?: import('viem').Chain | null;
1804
+ dataSuffix?: `0x${string}`;
1805
+ gas?: bigint;
1806
+ gasPrice?: bigint;
1807
+ maxFeePerGas?: bigint;
1808
+ maxPriorityFeePerGas?: bigint;
1809
+ nonce?: number;
1810
+ value?: bigint;
1811
+ }): Promise<`0x${string}`>;
1812
+ /**
1813
+ * burn
1814
+ * nonpayable
1815
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1816
+ */
1817
+ burn(amount: bigint, options?: {
1818
+ accessList?: import('viem').AccessList;
1819
+ authorizationList?: import('viem').AuthorizationList;
1820
+ chain?: import('viem').Chain | null;
1821
+ dataSuffix?: `0x${string}`;
1822
+ gas?: bigint;
1823
+ gasPrice?: bigint;
1824
+ maxFeePerGas?: bigint;
1825
+ maxPriorityFeePerGas?: bigint;
1826
+ nonce?: number;
1827
+ value?: bigint;
1828
+ }): Promise<`0x${string}`>;
1829
+ /**
1830
+ * cancelOwnershipHandover
1831
+ * payable
1832
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1833
+ */
1834
+ cancelOwnershipHandover(options?: {
1835
+ accessList?: import('viem').AccessList;
1836
+ authorizationList?: import('viem').AuthorizationList;
1837
+ chain?: import('viem').Chain | null;
1838
+ dataSuffix?: `0x${string}`;
1839
+ gas?: bigint;
1840
+ gasPrice?: bigint;
1841
+ maxFeePerGas?: bigint;
1842
+ maxPriorityFeePerGas?: bigint;
1843
+ nonce?: number;
1844
+ value?: bigint;
1845
+ }): Promise<`0x${string}`>;
1846
+ /**
1847
+ * claim
1848
+ * nonpayable
1849
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1850
+ */
1851
+ claim(options?: {
1852
+ accessList?: import('viem').AccessList;
1853
+ authorizationList?: import('viem').AuthorizationList;
1854
+ chain?: import('viem').Chain | null;
1855
+ dataSuffix?: `0x${string}`;
1856
+ gas?: bigint;
1857
+ gasPrice?: bigint;
1858
+ maxFeePerGas?: bigint;
1859
+ maxPriorityFeePerGas?: bigint;
1860
+ nonce?: number;
1861
+ value?: bigint;
1862
+ }): Promise<`0x${string}`>;
1863
+ /**
1864
+ * completeOwnershipHandover
1865
+ * payable
1866
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1867
+ */
1868
+ completeOwnershipHandover(pendingOwner: `0x${string}`, options?: {
1869
+ accessList?: import('viem').AccessList;
1870
+ authorizationList?: import('viem').AuthorizationList;
1871
+ chain?: import('viem').Chain | null;
1872
+ dataSuffix?: `0x${string}`;
1873
+ gas?: bigint;
1874
+ gasPrice?: bigint;
1875
+ maxFeePerGas?: bigint;
1876
+ maxPriorityFeePerGas?: bigint;
1877
+ nonce?: number;
1878
+ value?: bigint;
1879
+ }): Promise<`0x${string}`>;
1880
+ /**
1881
+ * disarm
1882
+ * nonpayable
1883
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1884
+ */
1885
+ disarm(id: bigint, options?: {
1886
+ accessList?: import('viem').AccessList;
1887
+ authorizationList?: import('viem').AuthorizationList;
1888
+ chain?: import('viem').Chain | null;
1889
+ dataSuffix?: `0x${string}`;
1890
+ gas?: bigint;
1891
+ gasPrice?: bigint;
1892
+ maxFeePerGas?: bigint;
1893
+ maxPriorityFeePerGas?: bigint;
1894
+ nonce?: number;
1895
+ value?: bigint;
1896
+ }): Promise<`0x${string}`>;
1897
+ /**
1898
+ * expire
1899
+ * nonpayable
1900
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1901
+ */
1902
+ expire(id: bigint, options?: {
1903
+ accessList?: import('viem').AccessList;
1904
+ authorizationList?: import('viem').AuthorizationList;
1905
+ chain?: import('viem').Chain | null;
1906
+ dataSuffix?: `0x${string}`;
1907
+ gas?: bigint;
1908
+ gasPrice?: bigint;
1909
+ maxFeePerGas?: bigint;
1910
+ maxPriorityFeePerGas?: bigint;
1911
+ nonce?: number;
1912
+ value?: bigint;
1913
+ }): Promise<`0x${string}`>;
1914
+ /**
1915
+ * extend
1916
+ * payable
1917
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1918
+ */
1919
+ extend(id: bigint, newEnd: bigint, options?: {
1920
+ accessList?: import('viem').AccessList;
1921
+ authorizationList?: import('viem').AuthorizationList;
1922
+ chain?: import('viem').Chain | null;
1923
+ dataSuffix?: `0x${string}`;
1924
+ gas?: bigint;
1925
+ gasPrice?: bigint;
1926
+ maxFeePerGas?: bigint;
1927
+ maxPriorityFeePerGas?: bigint;
1928
+ nonce?: number;
1929
+ value?: bigint;
1930
+ }): Promise<`0x${string}`>;
1931
+ /**
1932
+ * openPool
1933
+ * nonpayable
1934
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1935
+ */
1936
+ openPool(amount: bigint, options?: {
1937
+ accessList?: import('viem').AccessList;
1938
+ authorizationList?: import('viem').AuthorizationList;
1939
+ chain?: import('viem').Chain | null;
1940
+ dataSuffix?: `0x${string}`;
1941
+ gas?: bigint;
1942
+ gasPrice?: bigint;
1943
+ maxFeePerGas?: bigint;
1944
+ maxPriorityFeePerGas?: bigint;
1945
+ nonce?: number;
1946
+ value?: bigint;
1947
+ }): Promise<`0x${string}`>;
1948
+ /**
1949
+ * permit
1950
+ * nonpayable
1951
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1952
+ */
1953
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1954
+ accessList?: import('viem').AccessList;
1955
+ authorizationList?: import('viem').AuthorizationList;
1956
+ chain?: import('viem').Chain | null;
1957
+ dataSuffix?: `0x${string}`;
1958
+ gas?: bigint;
1959
+ gasPrice?: bigint;
1960
+ maxFeePerGas?: bigint;
1961
+ maxPriorityFeePerGas?: bigint;
1962
+ nonce?: number;
1963
+ value?: bigint;
1964
+ }): Promise<`0x${string}`>;
1965
+ /**
1966
+ * program
1967
+ * payable
1968
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1969
+ */
1970
+ program(amount: bigint, program_: `0x${string}`, params: `0x${string}`, end: bigint, options?: {
1971
+ accessList?: import('viem').AccessList;
1972
+ authorizationList?: import('viem').AuthorizationList;
1973
+ chain?: import('viem').Chain | null;
1974
+ dataSuffix?: `0x${string}`;
1975
+ gas?: bigint;
1976
+ gasPrice?: bigint;
1977
+ maxFeePerGas?: bigint;
1978
+ maxPriorityFeePerGas?: bigint;
1979
+ nonce?: number;
1980
+ value?: bigint;
1981
+ }): Promise<`0x${string}`>;
1982
+ /**
1983
+ * refuse
1984
+ * nonpayable
1985
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1986
+ */
1987
+ refuse(id: bigint, options?: {
1988
+ accessList?: import('viem').AccessList;
1989
+ authorizationList?: import('viem').AuthorizationList;
1990
+ chain?: import('viem').Chain | null;
1991
+ dataSuffix?: `0x${string}`;
1992
+ gas?: bigint;
1993
+ gasPrice?: bigint;
1994
+ maxFeePerGas?: bigint;
1995
+ maxPriorityFeePerGas?: bigint;
1996
+ nonce?: number;
1997
+ value?: bigint;
1998
+ }): Promise<`0x${string}`>;
1999
+ /**
2000
+ * renounceOwnership
2001
+ * payable
2002
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2003
+ */
2004
+ renounceOwnership(options?: {
2005
+ accessList?: import('viem').AccessList;
2006
+ authorizationList?: import('viem').AuthorizationList;
2007
+ chain?: import('viem').Chain | null;
2008
+ dataSuffix?: `0x${string}`;
2009
+ gas?: bigint;
2010
+ gasPrice?: bigint;
2011
+ maxFeePerGas?: bigint;
2012
+ maxPriorityFeePerGas?: bigint;
2013
+ nonce?: number;
2014
+ value?: bigint;
2015
+ }): Promise<`0x${string}`>;
2016
+ /**
2017
+ * requestOwnershipHandover
2018
+ * payable
2019
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2020
+ */
2021
+ requestOwnershipHandover(options?: {
2022
+ accessList?: import('viem').AccessList;
2023
+ authorizationList?: import('viem').AuthorizationList;
2024
+ chain?: import('viem').Chain | null;
2025
+ dataSuffix?: `0x${string}`;
2026
+ gas?: bigint;
2027
+ gasPrice?: bigint;
2028
+ maxFeePerGas?: bigint;
2029
+ maxPriorityFeePerGas?: bigint;
2030
+ nonce?: number;
2031
+ value?: bigint;
2032
+ }): Promise<`0x${string}`>;
2033
+ /**
2034
+ * sell
2035
+ * nonpayable
2036
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2037
+ */
2038
+ sell(id: bigint, amount: bigint, minOut: bigint, options?: {
2039
+ accessList?: import('viem').AccessList;
2040
+ authorizationList?: import('viem').AuthorizationList;
2041
+ chain?: import('viem').Chain | null;
2042
+ dataSuffix?: `0x${string}`;
2043
+ gas?: bigint;
2044
+ gasPrice?: bigint;
2045
+ maxFeePerGas?: bigint;
2046
+ maxPriorityFeePerGas?: bigint;
2047
+ nonce?: number;
2048
+ value?: bigint;
2049
+ }): Promise<`0x${string}`>;
2050
+ /**
2051
+ * sellPlain
2052
+ * nonpayable
2053
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2054
+ */
2055
+ sellPlain(amount: bigint, minOut: bigint, options?: {
2056
+ accessList?: import('viem').AccessList;
2057
+ authorizationList?: import('viem').AuthorizationList;
2058
+ chain?: import('viem').Chain | null;
2059
+ dataSuffix?: `0x${string}`;
2060
+ gas?: bigint;
2061
+ gasPrice?: bigint;
2062
+ maxFeePerGas?: bigint;
2063
+ maxPriorityFeePerGas?: bigint;
2064
+ nonce?: number;
2065
+ value?: bigint;
2066
+ }): Promise<`0x${string}`>;
2067
+ /**
2068
+ * send
2069
+ * nonpayable
2070
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2071
+ */
2072
+ send(id: bigint, to: `0x${string}`, amount: bigint, options?: {
2073
+ accessList?: import('viem').AccessList;
2074
+ authorizationList?: import('viem').AuthorizationList;
2075
+ chain?: import('viem').Chain | null;
2076
+ dataSuffix?: `0x${string}`;
2077
+ gas?: bigint;
2078
+ gasPrice?: bigint;
2079
+ maxFeePerGas?: bigint;
2080
+ maxPriorityFeePerGas?: bigint;
2081
+ nonce?: number;
2082
+ value?: bigint;
2083
+ }): Promise<`0x${string}`>;
2084
+ /**
2085
+ * sendMany
2086
+ * nonpayable
2087
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2088
+ */
2089
+ sendMany(id: bigint, to: `0x${string}`[], amounts: bigint[], options?: {
2090
+ accessList?: import('viem').AccessList;
2091
+ authorizationList?: import('viem').AuthorizationList;
2092
+ chain?: import('viem').Chain | null;
2093
+ dataSuffix?: `0x${string}`;
2094
+ gas?: bigint;
2095
+ gasPrice?: bigint;
2096
+ maxFeePerGas?: bigint;
2097
+ maxPriorityFeePerGas?: bigint;
2098
+ nonce?: number;
2099
+ value?: bigint;
2100
+ }): Promise<`0x${string}`>;
2101
+ /**
2102
+ * setAcceptsCode
2103
+ * nonpayable
2104
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2105
+ */
2106
+ setAcceptsCode(accepts: boolean, options?: {
2107
+ accessList?: import('viem').AccessList;
2108
+ authorizationList?: import('viem').AuthorizationList;
2109
+ chain?: import('viem').Chain | null;
2110
+ dataSuffix?: `0x${string}`;
2111
+ gas?: bigint;
2112
+ gasPrice?: bigint;
2113
+ maxFeePerGas?: bigint;
2114
+ maxPriorityFeePerGas?: bigint;
2115
+ nonce?: number;
2116
+ value?: bigint;
2117
+ }): Promise<`0x${string}`>;
2118
+ /**
2119
+ * transfer
2120
+ * nonpayable
2121
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2122
+ */
2123
+ transfer(to: `0x${string}`, amount: bigint, options?: {
2124
+ accessList?: import('viem').AccessList;
2125
+ authorizationList?: import('viem').AuthorizationList;
2126
+ chain?: import('viem').Chain | null;
2127
+ dataSuffix?: `0x${string}`;
2128
+ gas?: bigint;
2129
+ gasPrice?: bigint;
2130
+ maxFeePerGas?: bigint;
2131
+ maxPriorityFeePerGas?: bigint;
2132
+ nonce?: number;
2133
+ value?: bigint;
2134
+ }): Promise<`0x${string}`>;
2135
+ /**
2136
+ * transferFrom
2137
+ * nonpayable
2138
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2139
+ */
2140
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
2141
+ accessList?: import('viem').AccessList;
2142
+ authorizationList?: import('viem').AuthorizationList;
2143
+ chain?: import('viem').Chain | null;
2144
+ dataSuffix?: `0x${string}`;
2145
+ gas?: bigint;
2146
+ gasPrice?: bigint;
2147
+ maxFeePerGas?: bigint;
2148
+ maxPriorityFeePerGas?: bigint;
2149
+ nonce?: number;
2150
+ value?: bigint;
2151
+ }): Promise<`0x${string}`>;
2152
+ /**
2153
+ * transferOwnership
2154
+ * payable
2155
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2156
+ */
2157
+ transferOwnership(newOwner: `0x${string}`, options?: {
2158
+ accessList?: import('viem').AccessList;
2159
+ authorizationList?: import('viem').AuthorizationList;
2160
+ chain?: import('viem').Chain | null;
2161
+ dataSuffix?: `0x${string}`;
2162
+ gas?: bigint;
2163
+ gasPrice?: bigint;
2164
+ maxFeePerGas?: bigint;
2165
+ maxPriorityFeePerGas?: bigint;
2166
+ nonce?: number;
2167
+ value?: bigint;
2168
+ }): Promise<`0x${string}`>;
2169
+ /**
2170
+ * unlockCallback
2171
+ * nonpayable
2172
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2173
+ */
2174
+ unlockCallback(data: `0x${string}`, options?: {
2175
+ accessList?: import('viem').AccessList;
2176
+ authorizationList?: import('viem').AuthorizationList;
2177
+ chain?: import('viem').Chain | null;
2178
+ dataSuffix?: `0x${string}`;
2179
+ gas?: bigint;
2180
+ gasPrice?: bigint;
2181
+ maxFeePerGas?: bigint;
2182
+ maxPriorityFeePerGas?: bigint;
2183
+ nonce?: number;
2184
+ value?: bigint;
2185
+ }): Promise<`0x${string}`>;
2186
+ /**
2187
+ * Simulate contract write operations (dry-run without sending transaction)
2188
+ *
2189
+ * @example
2190
+ * const result = await contract.simulate.transfer('0x...', 1000n);
2191
+ * console.log('Gas estimate:', result.request.gas);
2192
+ * console.log('Would succeed:', result.result);
2193
+ */
2194
+ get simulate(): {
2195
+ /**
2196
+ * Simulate act
2197
+ * Returns gas estimate and result without sending transaction
2198
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2199
+ */
2200
+ act(id: bigint, units: bigint, options?: {
2201
+ accessList?: import("viem").AccessList;
2202
+ authorizationList?: import("viem").AuthorizationList;
2203
+ chain?: import("viem").Chain | null;
2204
+ dataSuffix?: `0x${string}`;
2205
+ gas?: bigint;
2206
+ gasPrice?: bigint;
2207
+ maxFeePerGas?: bigint;
2208
+ maxPriorityFeePerGas?: bigint;
2209
+ nonce?: number;
2210
+ value?: bigint;
2211
+ }): Promise<bigint>;
2212
+ /**
2213
+ * Simulate approve
2214
+ * Returns gas estimate and result without sending transaction
2215
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2216
+ */
2217
+ approve(spender: `0x${string}`, amount: bigint, options?: {
2218
+ accessList?: import("viem").AccessList;
2219
+ authorizationList?: import("viem").AuthorizationList;
2220
+ chain?: import("viem").Chain | null;
2221
+ dataSuffix?: `0x${string}`;
2222
+ gas?: bigint;
2223
+ gasPrice?: bigint;
2224
+ maxFeePerGas?: bigint;
2225
+ maxPriorityFeePerGas?: bigint;
2226
+ nonce?: number;
2227
+ value?: bigint;
2228
+ }): Promise<boolean>;
2229
+ /**
2230
+ * Simulate burn
2231
+ * Returns gas estimate and result without sending transaction
2232
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2233
+ */
2234
+ burn(amount: bigint, options?: {
2235
+ accessList?: import("viem").AccessList;
2236
+ authorizationList?: import("viem").AuthorizationList;
2237
+ chain?: import("viem").Chain | null;
2238
+ dataSuffix?: `0x${string}`;
2239
+ gas?: bigint;
2240
+ gasPrice?: bigint;
2241
+ maxFeePerGas?: bigint;
2242
+ maxPriorityFeePerGas?: bigint;
2243
+ nonce?: number;
2244
+ value?: bigint;
2245
+ }): Promise<void>;
2246
+ /**
2247
+ * Simulate cancelOwnershipHandover
2248
+ * Returns gas estimate and result without sending transaction
2249
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2250
+ */
2251
+ cancelOwnershipHandover(options?: {
2252
+ accessList?: import("viem").AccessList;
2253
+ authorizationList?: import("viem").AuthorizationList;
2254
+ chain?: import("viem").Chain | null;
2255
+ dataSuffix?: `0x${string}`;
2256
+ gas?: bigint;
2257
+ gasPrice?: bigint;
2258
+ maxFeePerGas?: bigint;
2259
+ maxPriorityFeePerGas?: bigint;
2260
+ nonce?: number;
2261
+ value?: bigint;
2262
+ }): Promise<void>;
2263
+ /**
2264
+ * Simulate claim
2265
+ * Returns gas estimate and result without sending transaction
2266
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2267
+ */
2268
+ claim(options?: {
2269
+ accessList?: import("viem").AccessList;
2270
+ authorizationList?: import("viem").AuthorizationList;
2271
+ chain?: import("viem").Chain | null;
2272
+ dataSuffix?: `0x${string}`;
2273
+ gas?: bigint;
2274
+ gasPrice?: bigint;
2275
+ maxFeePerGas?: bigint;
2276
+ maxPriorityFeePerGas?: bigint;
2277
+ nonce?: number;
2278
+ value?: bigint;
2279
+ }): Promise<bigint>;
2280
+ /**
2281
+ * Simulate completeOwnershipHandover
2282
+ * Returns gas estimate and result without sending transaction
2283
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2284
+ */
2285
+ completeOwnershipHandover(pendingOwner: `0x${string}`, options?: {
2286
+ accessList?: import("viem").AccessList;
2287
+ authorizationList?: import("viem").AuthorizationList;
2288
+ chain?: import("viem").Chain | null;
2289
+ dataSuffix?: `0x${string}`;
2290
+ gas?: bigint;
2291
+ gasPrice?: bigint;
2292
+ maxFeePerGas?: bigint;
2293
+ maxPriorityFeePerGas?: bigint;
2294
+ nonce?: number;
2295
+ value?: bigint;
2296
+ }): Promise<void>;
2297
+ /**
2298
+ * Simulate disarm
2299
+ * Returns gas estimate and result without sending transaction
2300
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2301
+ */
2302
+ disarm(id: bigint, options?: {
2303
+ accessList?: import("viem").AccessList;
2304
+ authorizationList?: import("viem").AuthorizationList;
2305
+ chain?: import("viem").Chain | null;
2306
+ dataSuffix?: `0x${string}`;
2307
+ gas?: bigint;
2308
+ gasPrice?: bigint;
2309
+ maxFeePerGas?: bigint;
2310
+ maxPriorityFeePerGas?: bigint;
2311
+ nonce?: number;
2312
+ value?: bigint;
2313
+ }): Promise<void>;
2314
+ /**
2315
+ * Simulate expire
2316
+ * Returns gas estimate and result without sending transaction
2317
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2318
+ */
2319
+ expire(id: bigint, options?: {
2320
+ accessList?: import("viem").AccessList;
2321
+ authorizationList?: import("viem").AuthorizationList;
2322
+ chain?: import("viem").Chain | null;
2323
+ dataSuffix?: `0x${string}`;
2324
+ gas?: bigint;
2325
+ gasPrice?: bigint;
2326
+ maxFeePerGas?: bigint;
2327
+ maxPriorityFeePerGas?: bigint;
2328
+ nonce?: number;
2329
+ value?: bigint;
2330
+ }): Promise<void>;
2331
+ /**
2332
+ * Simulate extend
2333
+ * Returns gas estimate and result without sending transaction
2334
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2335
+ */
2336
+ extend(id: bigint, newEnd: bigint, options?: {
2337
+ accessList?: import("viem").AccessList;
2338
+ authorizationList?: import("viem").AuthorizationList;
2339
+ chain?: import("viem").Chain | null;
2340
+ dataSuffix?: `0x${string}`;
2341
+ gas?: bigint;
2342
+ gasPrice?: bigint;
2343
+ maxFeePerGas?: bigint;
2344
+ maxPriorityFeePerGas?: bigint;
2345
+ nonce?: number;
2346
+ value?: bigint;
2347
+ }): Promise<bigint>;
2348
+ /**
2349
+ * Simulate openPool
2350
+ * Returns gas estimate and result without sending transaction
2351
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2352
+ */
2353
+ openPool(amount: bigint, options?: {
2354
+ accessList?: import("viem").AccessList;
2355
+ authorizationList?: import("viem").AuthorizationList;
2356
+ chain?: import("viem").Chain | null;
2357
+ dataSuffix?: `0x${string}`;
2358
+ gas?: bigint;
2359
+ gasPrice?: bigint;
2360
+ maxFeePerGas?: bigint;
2361
+ maxPriorityFeePerGas?: bigint;
2362
+ nonce?: number;
2363
+ value?: bigint;
2364
+ }): Promise<void>;
2365
+ /**
2366
+ * Simulate permit
2367
+ * Returns gas estimate and result without sending transaction
2368
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2369
+ */
2370
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
2371
+ accessList?: import("viem").AccessList;
2372
+ authorizationList?: import("viem").AuthorizationList;
2373
+ chain?: import("viem").Chain | null;
2374
+ dataSuffix?: `0x${string}`;
2375
+ gas?: bigint;
2376
+ gasPrice?: bigint;
2377
+ maxFeePerGas?: bigint;
2378
+ maxPriorityFeePerGas?: bigint;
2379
+ nonce?: number;
2380
+ value?: bigint;
2381
+ }): Promise<void>;
2382
+ /**
2383
+ * Simulate program
2384
+ * Returns gas estimate and result without sending transaction
2385
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2386
+ */
2387
+ program(amount: bigint, program_: `0x${string}`, params: `0x${string}`, end: bigint, options?: {
2388
+ accessList?: import("viem").AccessList;
2389
+ authorizationList?: import("viem").AuthorizationList;
2390
+ chain?: import("viem").Chain | null;
2391
+ dataSuffix?: `0x${string}`;
2392
+ gas?: bigint;
2393
+ gasPrice?: bigint;
2394
+ maxFeePerGas?: bigint;
2395
+ maxPriorityFeePerGas?: bigint;
2396
+ nonce?: number;
2397
+ value?: bigint;
2398
+ }): Promise<bigint>;
2399
+ /**
2400
+ * Simulate refuse
2401
+ * Returns gas estimate and result without sending transaction
2402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2403
+ */
2404
+ refuse(id: bigint, options?: {
2405
+ accessList?: import("viem").AccessList;
2406
+ authorizationList?: import("viem").AuthorizationList;
2407
+ chain?: import("viem").Chain | null;
2408
+ dataSuffix?: `0x${string}`;
2409
+ gas?: bigint;
2410
+ gasPrice?: bigint;
2411
+ maxFeePerGas?: bigint;
2412
+ maxPriorityFeePerGas?: bigint;
2413
+ nonce?: number;
2414
+ value?: bigint;
2415
+ }): Promise<void>;
2416
+ /**
2417
+ * Simulate renounceOwnership
2418
+ * Returns gas estimate and result without sending transaction
2419
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2420
+ */
2421
+ renounceOwnership(options?: {
2422
+ accessList?: import("viem").AccessList;
2423
+ authorizationList?: import("viem").AuthorizationList;
2424
+ chain?: import("viem").Chain | null;
2425
+ dataSuffix?: `0x${string}`;
2426
+ gas?: bigint;
2427
+ gasPrice?: bigint;
2428
+ maxFeePerGas?: bigint;
2429
+ maxPriorityFeePerGas?: bigint;
2430
+ nonce?: number;
2431
+ value?: bigint;
2432
+ }): Promise<void>;
2433
+ /**
2434
+ * Simulate requestOwnershipHandover
2435
+ * Returns gas estimate and result without sending transaction
2436
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2437
+ */
2438
+ requestOwnershipHandover(options?: {
2439
+ accessList?: import("viem").AccessList;
2440
+ authorizationList?: import("viem").AuthorizationList;
2441
+ chain?: import("viem").Chain | null;
2442
+ dataSuffix?: `0x${string}`;
2443
+ gas?: bigint;
2444
+ gasPrice?: bigint;
2445
+ maxFeePerGas?: bigint;
2446
+ maxPriorityFeePerGas?: bigint;
2447
+ nonce?: number;
2448
+ value?: bigint;
2449
+ }): Promise<void>;
2450
+ /**
2451
+ * Simulate sell
2452
+ * Returns gas estimate and result without sending transaction
2453
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2454
+ */
2455
+ sell(id: bigint, amount: bigint, minOut: bigint, options?: {
2456
+ accessList?: import("viem").AccessList;
2457
+ authorizationList?: import("viem").AuthorizationList;
2458
+ chain?: import("viem").Chain | null;
2459
+ dataSuffix?: `0x${string}`;
2460
+ gas?: bigint;
2461
+ gasPrice?: bigint;
2462
+ maxFeePerGas?: bigint;
2463
+ maxPriorityFeePerGas?: bigint;
2464
+ nonce?: number;
2465
+ value?: bigint;
2466
+ }): Promise<bigint>;
2467
+ /**
2468
+ * Simulate sellPlain
2469
+ * Returns gas estimate and result without sending transaction
2470
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2471
+ */
2472
+ sellPlain(amount: bigint, minOut: bigint, options?: {
2473
+ accessList?: import("viem").AccessList;
2474
+ authorizationList?: import("viem").AuthorizationList;
2475
+ chain?: import("viem").Chain | null;
2476
+ dataSuffix?: `0x${string}`;
2477
+ gas?: bigint;
2478
+ gasPrice?: bigint;
2479
+ maxFeePerGas?: bigint;
2480
+ maxPriorityFeePerGas?: bigint;
2481
+ nonce?: number;
2482
+ value?: bigint;
2483
+ }): Promise<bigint>;
2484
+ /**
2485
+ * Simulate send
2486
+ * Returns gas estimate and result without sending transaction
2487
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2488
+ */
2489
+ send(id: bigint, to: `0x${string}`, amount: bigint, options?: {
2490
+ accessList?: import("viem").AccessList;
2491
+ authorizationList?: import("viem").AuthorizationList;
2492
+ chain?: import("viem").Chain | null;
2493
+ dataSuffix?: `0x${string}`;
2494
+ gas?: bigint;
2495
+ gasPrice?: bigint;
2496
+ maxFeePerGas?: bigint;
2497
+ maxPriorityFeePerGas?: bigint;
2498
+ nonce?: number;
2499
+ value?: bigint;
2500
+ }): Promise<bigint>;
2501
+ /**
2502
+ * Simulate sendMany
2503
+ * Returns gas estimate and result without sending transaction
2504
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2505
+ */
2506
+ sendMany(id: bigint, to: `0x${string}`[], amounts: bigint[], options?: {
2507
+ accessList?: import("viem").AccessList;
2508
+ authorizationList?: import("viem").AuthorizationList;
2509
+ chain?: import("viem").Chain | null;
2510
+ dataSuffix?: `0x${string}`;
2511
+ gas?: bigint;
2512
+ gasPrice?: bigint;
2513
+ maxFeePerGas?: bigint;
2514
+ maxPriorityFeePerGas?: bigint;
2515
+ nonce?: number;
2516
+ value?: bigint;
2517
+ }): Promise<bigint>;
2518
+ /**
2519
+ * Simulate setAcceptsCode
2520
+ * Returns gas estimate and result without sending transaction
2521
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2522
+ */
2523
+ setAcceptsCode(accepts: boolean, options?: {
2524
+ accessList?: import("viem").AccessList;
2525
+ authorizationList?: import("viem").AuthorizationList;
2526
+ chain?: import("viem").Chain | null;
2527
+ dataSuffix?: `0x${string}`;
2528
+ gas?: bigint;
2529
+ gasPrice?: bigint;
2530
+ maxFeePerGas?: bigint;
2531
+ maxPriorityFeePerGas?: bigint;
2532
+ nonce?: number;
2533
+ value?: bigint;
2534
+ }): Promise<void>;
2535
+ /**
2536
+ * Simulate transfer
2537
+ * Returns gas estimate and result without sending transaction
2538
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2539
+ */
2540
+ transfer(to: `0x${string}`, amount: bigint, options?: {
2541
+ accessList?: import("viem").AccessList;
2542
+ authorizationList?: import("viem").AuthorizationList;
2543
+ chain?: import("viem").Chain | null;
2544
+ dataSuffix?: `0x${string}`;
2545
+ gas?: bigint;
2546
+ gasPrice?: bigint;
2547
+ maxFeePerGas?: bigint;
2548
+ maxPriorityFeePerGas?: bigint;
2549
+ nonce?: number;
2550
+ value?: bigint;
2551
+ }): Promise<boolean>;
2552
+ /**
2553
+ * Simulate transferFrom
2554
+ * Returns gas estimate and result without sending transaction
2555
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2556
+ */
2557
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
2558
+ accessList?: import("viem").AccessList;
2559
+ authorizationList?: import("viem").AuthorizationList;
2560
+ chain?: import("viem").Chain | null;
2561
+ dataSuffix?: `0x${string}`;
2562
+ gas?: bigint;
2563
+ gasPrice?: bigint;
2564
+ maxFeePerGas?: bigint;
2565
+ maxPriorityFeePerGas?: bigint;
2566
+ nonce?: number;
2567
+ value?: bigint;
2568
+ }): Promise<boolean>;
2569
+ /**
2570
+ * Simulate transferOwnership
2571
+ * Returns gas estimate and result without sending transaction
2572
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2573
+ */
2574
+ transferOwnership(newOwner: `0x${string}`, options?: {
2575
+ accessList?: import("viem").AccessList;
2576
+ authorizationList?: import("viem").AuthorizationList;
2577
+ chain?: import("viem").Chain | null;
2578
+ dataSuffix?: `0x${string}`;
2579
+ gas?: bigint;
2580
+ gasPrice?: bigint;
2581
+ maxFeePerGas?: bigint;
2582
+ maxPriorityFeePerGas?: bigint;
2583
+ nonce?: number;
2584
+ value?: bigint;
2585
+ }): Promise<void>;
2586
+ /**
2587
+ * Simulate unlockCallback
2588
+ * Returns gas estimate and result without sending transaction
2589
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2590
+ */
2591
+ unlockCallback(data: `0x${string}`, options?: {
2592
+ accessList?: import("viem").AccessList;
2593
+ authorizationList?: import("viem").AuthorizationList;
2594
+ chain?: import("viem").Chain | null;
2595
+ dataSuffix?: `0x${string}`;
2596
+ gas?: bigint;
2597
+ gasPrice?: bigint;
2598
+ maxFeePerGas?: bigint;
2599
+ maxPriorityFeePerGas?: bigint;
2600
+ nonce?: number;
2601
+ value?: bigint;
2602
+ }): Promise<`0x${string}`>;
2603
+ };
2604
+ /**
2605
+ * Watch contract events
2606
+ *
2607
+ * @example
2608
+ * // Watch all Transfer events
2609
+ * const unwatch = contract.watch.Transfer((event) => {
2610
+ * console.log('Transfer:', event);
2611
+ * });
2612
+ *
2613
+ * // Stop watching
2614
+ * unwatch();
2615
+ */
2616
+ get watch(): {
2617
+ /**
2618
+ * Watch Approval events
2619
+ * @param callback Function to call when event is emitted
2620
+ * @param filter Optional filter for indexed parameters
2621
+ * @returns Unwatch function to stop listening
2622
+ */
2623
+ Approval: (callback: (event: {
2624
+ owner: `0x${string}`;
2625
+ spender: `0x${string}`;
2626
+ amount: bigint;
2627
+ }) => void, filter?: {
2628
+ owner: `0x${string}`;
2629
+ spender: `0x${string}`;
2630
+ }) => () => void;
2631
+ /**
2632
+ * Watch Bought events
2633
+ * @param callback Function to call when event is emitted
2634
+ * @param filter Optional filter for indexed parameters
2635
+ * @returns Unwatch function to stop listening
2636
+ */
2637
+ Bought: (callback: (event: {
2638
+ buyer: `0x${string}`;
2639
+ ethIn: bigint;
2640
+ unitsOut: bigint;
2641
+ }) => void, filter?: {
2642
+ buyer: `0x${string}`;
2643
+ }) => () => void;
2644
+ /**
2645
+ * Watch Claimed events
2646
+ * @param callback Function to call when event is emitted
2647
+ * @param filter Optional filter for indexed parameters
2648
+ * @returns Unwatch function to stop listening
2649
+ */
2650
+ Claimed: (callback: (event: {
2651
+ owner: `0x${string}`;
2652
+ eth: bigint;
2653
+ }) => void, filter?: {
2654
+ owner: `0x${string}`;
2655
+ }) => () => void;
2656
+ /**
2657
+ * Watch CodeAcceptance events
2658
+ * @param callback Function to call when event is emitted
2659
+ * @param filter Optional filter for indexed parameters
2660
+ * @returns Unwatch function to stop listening
2661
+ */
2662
+ CodeAcceptance: (callback: (event: {
2663
+ who: `0x${string}`;
2664
+ accepts: boolean;
2665
+ }) => void, filter?: {
2666
+ who: `0x${string}`;
2667
+ }) => () => void;
2668
+ /**
2669
+ * Watch Disarmed events
2670
+ * @param callback Function to call when event is emitted
2671
+ * @param filter Optional filter for indexed parameters
2672
+ * @returns Unwatch function to stop listening
2673
+ */
2674
+ Disarmed: (callback: (event: {
2675
+ id: bigint;
2676
+ }) => void, filter?: {
2677
+ id: bigint;
2678
+ }) => () => void;
2679
+ /**
2680
+ * Watch Erased events
2681
+ * @param callback Function to call when event is emitted
2682
+ * @param filter Optional filter for indexed parameters
2683
+ * @returns Unwatch function to stop listening
2684
+ */
2685
+ Erased: (callback: (event: {
2686
+ id: bigint;
2687
+ owner: `0x${string}`;
2688
+ amount: bigint;
2689
+ byPool: boolean;
2690
+ }) => void, filter?: {
2691
+ id: bigint;
2692
+ owner: `0x${string}`;
2693
+ }) => () => void;
2694
+ /**
2695
+ * Watch Extended events
2696
+ * @param callback Function to call when event is emitted
2697
+ * @param filter Optional filter for indexed parameters
2698
+ * @returns Unwatch function to stop listening
2699
+ */
2700
+ Extended: (callback: (event: {
2701
+ id: bigint;
2702
+ oldEnd: bigint;
2703
+ newEnd: bigint;
2704
+ fee: bigint;
2705
+ }) => void, filter?: {
2706
+ id: bigint;
2707
+ }) => () => void;
2708
+ /**
2709
+ * Watch FeePaid events
2710
+ * @param callback Function to call when event is emitted
2711
+ * @param filter Optional filter for indexed parameters
2712
+ * @returns Unwatch function to stop listening
2713
+ */
2714
+ FeePaid: (callback: (event: {
2715
+ id: bigint;
2716
+ fee: bigint;
2717
+ }) => void, filter?: {
2718
+ id: bigint;
2719
+ }) => () => void;
2720
+ /**
2721
+ * Watch Marked events
2722
+ * @param callback Function to call when event is emitted
2723
+ * @param filter Optional filter for indexed parameters
2724
+ * @returns Unwatch function to stop listening
2725
+ */
2726
+ Marked: (callback: (event: {
2727
+ id: bigint;
2728
+ note: `0x${string}`;
2729
+ }) => void, filter?: {
2730
+ id: bigint;
2731
+ }) => () => void;
2732
+ /**
2733
+ * Watch OwnershipHandoverCanceled events
2734
+ * @param callback Function to call when event is emitted
2735
+ * @param filter Optional filter for indexed parameters
2736
+ * @returns Unwatch function to stop listening
2737
+ */
2738
+ OwnershipHandoverCanceled: (callback: (event: {
2739
+ pendingOwner: `0x${string}`;
2740
+ }) => void, filter?: {
2741
+ pendingOwner: `0x${string}`;
2742
+ }) => () => void;
2743
+ /**
2744
+ * Watch OwnershipHandoverRequested events
2745
+ * @param callback Function to call when event is emitted
2746
+ * @param filter Optional filter for indexed parameters
2747
+ * @returns Unwatch function to stop listening
2748
+ */
2749
+ OwnershipHandoverRequested: (callback: (event: {
2750
+ pendingOwner: `0x${string}`;
2751
+ }) => void, filter?: {
2752
+ pendingOwner: `0x${string}`;
2753
+ }) => () => void;
2754
+ /**
2755
+ * Watch OwnershipTransferred events
2756
+ * @param callback Function to call when event is emitted
2757
+ * @param filter Optional filter for indexed parameters
2758
+ * @returns Unwatch function to stop listening
2759
+ */
2760
+ OwnershipTransferred: (callback: (event: {
2761
+ oldOwner: `0x${string}`;
2762
+ newOwner: `0x${string}`;
2763
+ }) => void, filter?: {
2764
+ oldOwner: `0x${string}`;
2765
+ newOwner: `0x${string}`;
2766
+ }) => () => void;
2767
+ /**
2768
+ * Watch Programmed events
2769
+ * @param callback Function to call when event is emitted
2770
+ * @param filter Optional filter for indexed parameters
2771
+ * @returns Unwatch function to stop listening
2772
+ */
2773
+ Programmed: (callback: (event: {
2774
+ id: bigint;
2775
+ owner: `0x${string}`;
2776
+ program: `0x${string}`;
2777
+ amount: bigint;
2778
+ end: bigint;
2779
+ params: `0x${string}`;
2780
+ }) => void, filter?: {
2781
+ id: bigint;
2782
+ owner: `0x${string}`;
2783
+ program: `0x${string}`;
2784
+ }) => () => void;
2785
+ /**
2786
+ * Watch Refused events
2787
+ * @param callback Function to call when event is emitted
2788
+ * @param filter Optional filter for indexed parameters
2789
+ * @returns Unwatch function to stop listening
2790
+ */
2791
+ Refused: (callback: (event: {
2792
+ id: bigint;
2793
+ owner: `0x${string}`;
2794
+ amount: bigint;
2795
+ }) => void, filter?: {
2796
+ id: bigint;
2797
+ owner: `0x${string}`;
2798
+ }) => () => void;
2799
+ /**
2800
+ * Watch Sent events
2801
+ * @param callback Function to call when event is emitted
2802
+ * @param filter Optional filter for indexed parameters
2803
+ * @returns Unwatch function to stop listening
2804
+ */
2805
+ Sent: (callback: (event: {
2806
+ id: bigint;
2807
+ newId: bigint;
2808
+ to: `0x${string}`;
2809
+ from: `0x${string}`;
2810
+ amount: bigint;
2811
+ }) => void, filter?: {
2812
+ id: bigint;
2813
+ newId: bigint;
2814
+ to: `0x${string}`;
2815
+ }) => () => void;
2816
+ /**
2817
+ * Watch Sold events
2818
+ * @param callback Function to call when event is emitted
2819
+ * @param filter Optional filter for indexed parameters
2820
+ * @returns Unwatch function to stop listening
2821
+ */
2822
+ Sold: (callback: (event: {
2823
+ id: bigint;
2824
+ owner: `0x${string}`;
2825
+ amount: bigint;
2826
+ ethOut: bigint;
2827
+ }) => void, filter?: {
2828
+ id: bigint;
2829
+ owner: `0x${string}`;
2830
+ }) => () => void;
2831
+ /**
2832
+ * Watch SoldFor events
2833
+ * @param callback Function to call when event is emitted
2834
+ * @param filter Optional filter for indexed parameters
2835
+ * @returns Unwatch function to stop listening
2836
+ */
2837
+ SoldFor: (callback: (event: {
2838
+ id: bigint;
2839
+ caller: `0x${string}`;
2840
+ units: bigint;
2841
+ ethOut: bigint;
2842
+ tip: bigint;
2843
+ }) => void, filter?: {
2844
+ id: bigint;
2845
+ caller: `0x${string}`;
2846
+ }) => () => void;
2847
+ /**
2848
+ * Watch SoldPlain events
2849
+ * @param callback Function to call when event is emitted
2850
+ * @param filter Optional filter for indexed parameters
2851
+ * @returns Unwatch function to stop listening
2852
+ */
2853
+ SoldPlain: (callback: (event: {
2854
+ seller: `0x${string}`;
2855
+ unitsIn: bigint;
2856
+ ethOut: bigint;
2857
+ }) => void, filter?: {
2858
+ seller: `0x${string}`;
2859
+ }) => () => void;
2860
+ /**
2861
+ * Watch Taken events
2862
+ * @param callback Function to call when event is emitted
2863
+ * @param filter Optional filter for indexed parameters
2864
+ * @returns Unwatch function to stop listening
2865
+ */
2866
+ Taken: (callback: (event: {
2867
+ id: bigint;
2868
+ from: `0x${string}`;
2869
+ to: `0x${string}`;
2870
+ cost: bigint;
2871
+ }) => void, filter?: {
2872
+ id: bigint;
2873
+ from: `0x${string}`;
2874
+ to: `0x${string}`;
2875
+ }) => () => void;
2876
+ /**
2877
+ * Watch Transfer events
2878
+ * @param callback Function to call when event is emitted
2879
+ * @param filter Optional filter for indexed parameters
2880
+ * @returns Unwatch function to stop listening
2881
+ */
2882
+ Transfer: (callback: (event: {
2883
+ from: `0x${string}`;
2884
+ to: `0x${string}`;
2885
+ amount: bigint;
2886
+ }) => void, filter?: {
2887
+ from: `0x${string}`;
2888
+ to: `0x${string}`;
2889
+ }) => () => void;
2890
+ };
2891
+ }