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