@gitmyabi/c2h6 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,1768 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Ethane_json = exports.Ethane_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * Ethane_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.Ethane_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "_router",
16
+ "type": "address"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "anonymous": false,
24
+ "inputs": [
25
+ {
26
+ "indexed": true,
27
+ "internalType": "address",
28
+ "name": "owner",
29
+ "type": "address"
30
+ },
31
+ {
32
+ "indexed": true,
33
+ "internalType": "address",
34
+ "name": "spender",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "indexed": false,
39
+ "internalType": "uint256",
40
+ "name": "value",
41
+ "type": "uint256"
42
+ }
43
+ ],
44
+ "name": "Approval",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": true,
52
+ "internalType": "address",
53
+ "name": "previousOwner",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "newOwner",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "OwnershipTransferred",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": true,
71
+ "internalType": "address",
72
+ "name": "from",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "to",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "value",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "Transfer",
89
+ "type": "event"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "DOMAIN_SEPARATOR",
94
+ "outputs": [
95
+ {
96
+ "internalType": "bytes32",
97
+ "name": "",
98
+ "type": "bytes32"
99
+ }
100
+ ],
101
+ "stateMutability": "view",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "address",
108
+ "name": "owner",
109
+ "type": "address"
110
+ },
111
+ {
112
+ "internalType": "address",
113
+ "name": "spender",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "allowance",
118
+ "outputs": [
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "",
122
+ "type": "uint256"
123
+ }
124
+ ],
125
+ "stateMutability": "view",
126
+ "type": "function"
127
+ },
128
+ {
129
+ "inputs": [
130
+ {
131
+ "internalType": "address",
132
+ "name": "spender",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "amount",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "approve",
142
+ "outputs": [
143
+ {
144
+ "internalType": "bool",
145
+ "name": "",
146
+ "type": "bool"
147
+ }
148
+ ],
149
+ "stateMutability": "nonpayable",
150
+ "type": "function"
151
+ },
152
+ {
153
+ "inputs": [
154
+ {
155
+ "internalType": "address",
156
+ "name": "account",
157
+ "type": "address"
158
+ }
159
+ ],
160
+ "name": "balanceOf",
161
+ "outputs": [
162
+ {
163
+ "internalType": "uint256",
164
+ "name": "",
165
+ "type": "uint256"
166
+ }
167
+ ],
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "address[]",
175
+ "name": "accounts",
176
+ "type": "address[]"
177
+ },
178
+ {
179
+ "internalType": "bool",
180
+ "name": "state",
181
+ "type": "bool"
182
+ }
183
+ ],
184
+ "name": "bulkIsExcludedFromFees",
185
+ "outputs": [],
186
+ "stateMutability": "nonpayable",
187
+ "type": "function"
188
+ },
189
+ {
190
+ "inputs": [],
191
+ "name": "deadBlocks",
192
+ "outputs": [
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "stateMutability": "view",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [],
204
+ "name": "decimals",
205
+ "outputs": [
206
+ {
207
+ "internalType": "uint8",
208
+ "name": "",
209
+ "type": "uint8"
210
+ }
211
+ ],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "address",
219
+ "name": "spender",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "subtractedValue",
225
+ "type": "uint256"
226
+ }
227
+ ],
228
+ "name": "decreaseAllowance",
229
+ "outputs": [
230
+ {
231
+ "internalType": "bool",
232
+ "name": "",
233
+ "type": "bool"
234
+ }
235
+ ],
236
+ "stateMutability": "nonpayable",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [],
241
+ "name": "delay",
242
+ "outputs": [
243
+ {
244
+ "internalType": "uint256",
245
+ "name": "",
246
+ "type": "uint256"
247
+ }
248
+ ],
249
+ "stateMutability": "view",
250
+ "type": "function"
251
+ },
252
+ {
253
+ "inputs": [
254
+ {
255
+ "internalType": "address",
256
+ "name": "buyer",
257
+ "type": "address"
258
+ }
259
+ ],
260
+ "name": "earlyBuyer",
261
+ "outputs": [
262
+ {
263
+ "internalType": "bool",
264
+ "name": "status",
265
+ "type": "bool"
266
+ }
267
+ ],
268
+ "stateMutability": "view",
269
+ "type": "function"
270
+ },
271
+ {
272
+ "inputs": [],
273
+ "name": "earlyBuyerDailyMaxSell",
274
+ "outputs": [
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "stateMutability": "view",
282
+ "type": "function"
283
+ },
284
+ {
285
+ "inputs": [
286
+ {
287
+ "internalType": "address",
288
+ "name": "buyer",
289
+ "type": "address"
290
+ }
291
+ ],
292
+ "name": "earlyBuyerDailySell",
293
+ "outputs": [
294
+ {
295
+ "internalType": "uint256",
296
+ "name": "amount",
297
+ "type": "uint256"
298
+ }
299
+ ],
300
+ "stateMutability": "view",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "enableTrading",
306
+ "outputs": [],
307
+ "stateMutability": "nonpayable",
308
+ "type": "function"
309
+ },
310
+ {
311
+ "inputs": [],
312
+ "name": "finalTaxSet",
313
+ "outputs": [
314
+ {
315
+ "internalType": "bool",
316
+ "name": "",
317
+ "type": "bool"
318
+ }
319
+ ],
320
+ "stateMutability": "view",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [],
325
+ "name": "finalTaxTimestamp",
326
+ "outputs": [
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "inputs": [
338
+ {
339
+ "internalType": "address",
340
+ "name": "spender",
341
+ "type": "address"
342
+ },
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "addedValue",
346
+ "type": "uint256"
347
+ }
348
+ ],
349
+ "name": "increaseAllowance",
350
+ "outputs": [
351
+ {
352
+ "internalType": "bool",
353
+ "name": "",
354
+ "type": "bool"
355
+ }
356
+ ],
357
+ "stateMutability": "nonpayable",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [
362
+ {
363
+ "internalType": "address",
364
+ "name": "user",
365
+ "type": "address"
366
+ }
367
+ ],
368
+ "name": "isBlacklisted",
369
+ "outputs": [
370
+ {
371
+ "internalType": "bool",
372
+ "name": "status",
373
+ "type": "bool"
374
+ }
375
+ ],
376
+ "stateMutability": "view",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "address",
383
+ "name": "user",
384
+ "type": "address"
385
+ }
386
+ ],
387
+ "name": "isExcludedFromFees",
388
+ "outputs": [
389
+ {
390
+ "internalType": "bool",
391
+ "name": "status",
392
+ "type": "bool"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [
400
+ {
401
+ "internalType": "address",
402
+ "name": "user",
403
+ "type": "address"
404
+ }
405
+ ],
406
+ "name": "lastTrade",
407
+ "outputs": [
408
+ {
409
+ "internalType": "uint256",
410
+ "name": "timestamp",
411
+ "type": "uint256"
412
+ }
413
+ ],
414
+ "stateMutability": "view",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [],
419
+ "name": "launchBlock",
420
+ "outputs": [
421
+ {
422
+ "internalType": "uint256",
423
+ "name": "",
424
+ "type": "uint256"
425
+ }
426
+ ],
427
+ "stateMutability": "view",
428
+ "type": "function"
429
+ },
430
+ {
431
+ "inputs": [],
432
+ "name": "launchTimestamp",
433
+ "outputs": [
434
+ {
435
+ "internalType": "uint256",
436
+ "name": "",
437
+ "type": "uint256"
438
+ }
439
+ ],
440
+ "stateMutability": "view",
441
+ "type": "function"
442
+ },
443
+ {
444
+ "inputs": [],
445
+ "name": "marketingWallet",
446
+ "outputs": [
447
+ {
448
+ "internalType": "address",
449
+ "name": "",
450
+ "type": "address"
451
+ }
452
+ ],
453
+ "stateMutability": "view",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [],
458
+ "name": "maxTx",
459
+ "outputs": [
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "",
463
+ "type": "uint256"
464
+ }
465
+ ],
466
+ "stateMutability": "view",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [],
471
+ "name": "maxWallet",
472
+ "outputs": [
473
+ {
474
+ "internalType": "uint256",
475
+ "name": "",
476
+ "type": "uint256"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [],
484
+ "name": "name",
485
+ "outputs": [
486
+ {
487
+ "internalType": "string",
488
+ "name": "",
489
+ "type": "string"
490
+ }
491
+ ],
492
+ "stateMutability": "view",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [
497
+ {
498
+ "internalType": "address",
499
+ "name": "",
500
+ "type": "address"
501
+ }
502
+ ],
503
+ "name": "nonces",
504
+ "outputs": [
505
+ {
506
+ "internalType": "uint256",
507
+ "name": "",
508
+ "type": "uint256"
509
+ }
510
+ ],
511
+ "stateMutability": "view",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [],
516
+ "name": "owner",
517
+ "outputs": [
518
+ {
519
+ "internalType": "address",
520
+ "name": "",
521
+ "type": "address"
522
+ }
523
+ ],
524
+ "stateMutability": "view",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [],
529
+ "name": "pair",
530
+ "outputs": [
531
+ {
532
+ "internalType": "address",
533
+ "name": "",
534
+ "type": "address"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [
542
+ {
543
+ "internalType": "address",
544
+ "name": "owner",
545
+ "type": "address"
546
+ },
547
+ {
548
+ "internalType": "address",
549
+ "name": "spender",
550
+ "type": "address"
551
+ },
552
+ {
553
+ "internalType": "uint256",
554
+ "name": "value",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "deadline",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "uint8",
564
+ "name": "v",
565
+ "type": "uint8"
566
+ },
567
+ {
568
+ "internalType": "bytes32",
569
+ "name": "r",
570
+ "type": "bytes32"
571
+ },
572
+ {
573
+ "internalType": "bytes32",
574
+ "name": "s",
575
+ "type": "bytes32"
576
+ }
577
+ ],
578
+ "name": "permit",
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable",
581
+ "type": "function"
582
+ },
583
+ {
584
+ "inputs": [],
585
+ "name": "removeLimits",
586
+ "outputs": [],
587
+ "stateMutability": "nonpayable",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [],
592
+ "name": "renounceOwnership",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [
599
+ {
600
+ "internalType": "address",
601
+ "name": "tokenAdd",
602
+ "type": "address"
603
+ },
604
+ {
605
+ "internalType": "uint256",
606
+ "name": "amount",
607
+ "type": "uint256"
608
+ }
609
+ ],
610
+ "name": "rescueERC20",
611
+ "outputs": [],
612
+ "stateMutability": "nonpayable",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [
617
+ {
618
+ "internalType": "uint256",
619
+ "name": "weiAmount",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "name": "rescueETH",
624
+ "outputs": [],
625
+ "stateMutability": "nonpayable",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "router",
631
+ "outputs": [
632
+ {
633
+ "internalType": "contract IRouter",
634
+ "name": "",
635
+ "type": "address"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [
643
+ {
644
+ "internalType": "address[]",
645
+ "name": "accounts",
646
+ "type": "address[]"
647
+ },
648
+ {
649
+ "internalType": "bool",
650
+ "name": "status",
651
+ "type": "bool"
652
+ }
653
+ ],
654
+ "name": "setBlacklist",
655
+ "outputs": [],
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [
661
+ {
662
+ "internalType": "uint256",
663
+ "name": "time",
664
+ "type": "uint256"
665
+ }
666
+ ],
667
+ "name": "setDelay",
668
+ "outputs": [],
669
+ "stateMutability": "nonpayable",
670
+ "type": "function"
671
+ },
672
+ {
673
+ "inputs": [
674
+ {
675
+ "internalType": "address",
676
+ "name": "_address",
677
+ "type": "address"
678
+ },
679
+ {
680
+ "internalType": "bool",
681
+ "name": "state",
682
+ "type": "bool"
683
+ }
684
+ ],
685
+ "name": "setIsExcludedFromFees",
686
+ "outputs": [],
687
+ "stateMutability": "nonpayable",
688
+ "type": "function"
689
+ },
690
+ {
691
+ "inputs": [
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "_maxTx",
695
+ "type": "uint256"
696
+ },
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "_maxWallet",
700
+ "type": "uint256"
701
+ }
702
+ ],
703
+ "name": "setLimits",
704
+ "outputs": [],
705
+ "stateMutability": "nonpayable",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "internalType": "address",
712
+ "name": "newWallet",
713
+ "type": "address"
714
+ }
715
+ ],
716
+ "name": "setMarketingWallet",
717
+ "outputs": [],
718
+ "stateMutability": "nonpayable",
719
+ "type": "function"
720
+ },
721
+ {
722
+ "inputs": [
723
+ {
724
+ "internalType": "address",
725
+ "name": "newRouter",
726
+ "type": "address"
727
+ },
728
+ {
729
+ "internalType": "address",
730
+ "name": "newPair",
731
+ "type": "address"
732
+ }
733
+ ],
734
+ "name": "setRouterAndPair",
735
+ "outputs": [],
736
+ "stateMutability": "nonpayable",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [
741
+ {
742
+ "internalType": "bool",
743
+ "name": "status",
744
+ "type": "bool"
745
+ }
746
+ ],
747
+ "name": "setSwapEnabled",
748
+ "outputs": [],
749
+ "stateMutability": "nonpayable",
750
+ "type": "function"
751
+ },
752
+ {
753
+ "inputs": [
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "amount",
757
+ "type": "uint256"
758
+ }
759
+ ],
760
+ "name": "setSwapTreshhold",
761
+ "outputs": [],
762
+ "stateMutability": "nonpayable",
763
+ "type": "function"
764
+ },
765
+ {
766
+ "inputs": [
767
+ {
768
+ "internalType": "uint256",
769
+ "name": "_buyTax",
770
+ "type": "uint256"
771
+ },
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "_sellTax",
775
+ "type": "uint256"
776
+ },
777
+ {
778
+ "internalType": "uint256",
779
+ "name": "_transferTax",
780
+ "type": "uint256"
781
+ }
782
+ ],
783
+ "name": "setTaxes",
784
+ "outputs": [],
785
+ "stateMutability": "nonpayable",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [],
790
+ "name": "swapEnabled",
791
+ "outputs": [
792
+ {
793
+ "internalType": "bool",
794
+ "name": "",
795
+ "type": "bool"
796
+ }
797
+ ],
798
+ "stateMutability": "view",
799
+ "type": "function"
800
+ },
801
+ {
802
+ "inputs": [],
803
+ "name": "swapThreshold",
804
+ "outputs": [
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "",
808
+ "type": "uint256"
809
+ }
810
+ ],
811
+ "stateMutability": "view",
812
+ "type": "function"
813
+ },
814
+ {
815
+ "inputs": [],
816
+ "name": "symbol",
817
+ "outputs": [
818
+ {
819
+ "internalType": "string",
820
+ "name": "",
821
+ "type": "string"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
827
+ {
828
+ "inputs": [],
829
+ "name": "taxes",
830
+ "outputs": [
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "buy",
834
+ "type": "uint256"
835
+ },
836
+ {
837
+ "internalType": "uint256",
838
+ "name": "sell",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "internalType": "uint256",
843
+ "name": "transfer",
844
+ "type": "uint256"
845
+ }
846
+ ],
847
+ "stateMutability": "view",
848
+ "type": "function"
849
+ },
850
+ {
851
+ "inputs": [],
852
+ "name": "totalSupply",
853
+ "outputs": [
854
+ {
855
+ "internalType": "uint256",
856
+ "name": "",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "stateMutability": "view",
861
+ "type": "function"
862
+ },
863
+ {
864
+ "inputs": [],
865
+ "name": "tradingEnabled",
866
+ "outputs": [
867
+ {
868
+ "internalType": "bool",
869
+ "name": "",
870
+ "type": "bool"
871
+ }
872
+ ],
873
+ "stateMutability": "view",
874
+ "type": "function"
875
+ },
876
+ {
877
+ "inputs": [
878
+ {
879
+ "internalType": "address",
880
+ "name": "to",
881
+ "type": "address"
882
+ },
883
+ {
884
+ "internalType": "uint256",
885
+ "name": "amount",
886
+ "type": "uint256"
887
+ }
888
+ ],
889
+ "name": "transfer",
890
+ "outputs": [
891
+ {
892
+ "internalType": "bool",
893
+ "name": "",
894
+ "type": "bool"
895
+ }
896
+ ],
897
+ "stateMutability": "nonpayable",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [
902
+ {
903
+ "internalType": "address",
904
+ "name": "from",
905
+ "type": "address"
906
+ },
907
+ {
908
+ "internalType": "address",
909
+ "name": "to",
910
+ "type": "address"
911
+ },
912
+ {
913
+ "internalType": "uint256",
914
+ "name": "amount",
915
+ "type": "uint256"
916
+ }
917
+ ],
918
+ "name": "transferFrom",
919
+ "outputs": [
920
+ {
921
+ "internalType": "bool",
922
+ "name": "",
923
+ "type": "bool"
924
+ }
925
+ ],
926
+ "stateMutability": "nonpayable",
927
+ "type": "function"
928
+ },
929
+ {
930
+ "inputs": [
931
+ {
932
+ "internalType": "address",
933
+ "name": "newOwner",
934
+ "type": "address"
935
+ }
936
+ ],
937
+ "name": "transferOwnership",
938
+ "outputs": [],
939
+ "stateMutability": "nonpayable",
940
+ "type": "function"
941
+ },
942
+ {
943
+ "inputs": [],
944
+ "name": "whitelistPeriod",
945
+ "outputs": [
946
+ {
947
+ "internalType": "uint256",
948
+ "name": "",
949
+ "type": "uint256"
950
+ }
951
+ ],
952
+ "stateMutability": "view",
953
+ "type": "function"
954
+ },
955
+ {
956
+ "inputs": [
957
+ {
958
+ "internalType": "address",
959
+ "name": "buyer",
960
+ "type": "address"
961
+ }
962
+ ],
963
+ "name": "whitelistedBuyer",
964
+ "outputs": [
965
+ {
966
+ "internalType": "bool",
967
+ "name": "status",
968
+ "type": "bool"
969
+ }
970
+ ],
971
+ "stateMutability": "view",
972
+ "type": "function"
973
+ },
974
+ {
975
+ "stateMutability": "payable",
976
+ "type": "receive"
977
+ }
978
+ ];
979
+ /**
980
+ * Ethane_json Contract Class
981
+ *
982
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
983
+ *
984
+ * @example
985
+ * ```typescript
986
+ * import { createPublicClient, createWalletClient, http } from 'viem';
987
+ * import { mainnet } from 'viem/chains';
988
+ * import { Ethane_json } from 'Ethane_json';
989
+ *
990
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
991
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
992
+ *
993
+ * const contract = new Ethane_json('0x...', { publicClient, walletClient });
994
+ *
995
+ * // Read functions
996
+ * const result = await contract.balanceOf('0x...');
997
+ *
998
+ * // Write functions
999
+ * const hash = await contract.transfer('0x...', 1000n);
1000
+ *
1001
+ * // Simulate transactions (dry-run)
1002
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1003
+ * console.log('Gas estimate:', simulation.request.gas);
1004
+ *
1005
+ * // Watch events
1006
+ * const unwatch = contract.watch.Transfer((event) => {
1007
+ * console.log('Transfer event:', event);
1008
+ * });
1009
+ * ```
1010
+ */
1011
+ class Ethane_json {
1012
+ constructor(address, clients) {
1013
+ this.contractAddress = address;
1014
+ this.publicClient = clients.publicClient;
1015
+ this.contract = (0, viem_1.getContract)({
1016
+ address,
1017
+ abi: exports.Ethane_jsonAbi,
1018
+ client: {
1019
+ public: clients.publicClient,
1020
+ wallet: clients.walletClient,
1021
+ },
1022
+ });
1023
+ }
1024
+ /**
1025
+ * Get the contract address
1026
+ */
1027
+ get address() {
1028
+ return this.contractAddress;
1029
+ }
1030
+ /**
1031
+ * Get the underlying viem contract instance
1032
+ */
1033
+ getContract() {
1034
+ return this.contract;
1035
+ }
1036
+ /**
1037
+ * DOMAIN_SEPARATOR
1038
+ * view
1039
+ */
1040
+ async DOMAIN_SEPARATOR() {
1041
+ return this.contract.read.DOMAIN_SEPARATOR();
1042
+ }
1043
+ /**
1044
+ * allowance
1045
+ * view
1046
+ */
1047
+ async allowance(owner, spender) {
1048
+ return this.contract.read.allowance([owner, spender]);
1049
+ }
1050
+ /**
1051
+ * balanceOf
1052
+ * view
1053
+ */
1054
+ async balanceOf(account) {
1055
+ return this.contract.read.balanceOf([account]);
1056
+ }
1057
+ /**
1058
+ * deadBlocks
1059
+ * view
1060
+ */
1061
+ async deadBlocks() {
1062
+ return this.contract.read.deadBlocks();
1063
+ }
1064
+ /**
1065
+ * decimals
1066
+ * view
1067
+ */
1068
+ async decimals() {
1069
+ return this.contract.read.decimals();
1070
+ }
1071
+ /**
1072
+ * delay
1073
+ * view
1074
+ */
1075
+ async delay() {
1076
+ return this.contract.read.delay();
1077
+ }
1078
+ /**
1079
+ * earlyBuyer
1080
+ * view
1081
+ */
1082
+ async earlyBuyer(buyer) {
1083
+ return this.contract.read.earlyBuyer([buyer]);
1084
+ }
1085
+ /**
1086
+ * earlyBuyerDailyMaxSell
1087
+ * view
1088
+ */
1089
+ async earlyBuyerDailyMaxSell() {
1090
+ return this.contract.read.earlyBuyerDailyMaxSell();
1091
+ }
1092
+ /**
1093
+ * earlyBuyerDailySell
1094
+ * view
1095
+ */
1096
+ async earlyBuyerDailySell(buyer) {
1097
+ return this.contract.read.earlyBuyerDailySell([buyer]);
1098
+ }
1099
+ /**
1100
+ * finalTaxSet
1101
+ * view
1102
+ */
1103
+ async finalTaxSet() {
1104
+ return this.contract.read.finalTaxSet();
1105
+ }
1106
+ /**
1107
+ * finalTaxTimestamp
1108
+ * view
1109
+ */
1110
+ async finalTaxTimestamp() {
1111
+ return this.contract.read.finalTaxTimestamp();
1112
+ }
1113
+ /**
1114
+ * isBlacklisted
1115
+ * view
1116
+ */
1117
+ async isBlacklisted(user) {
1118
+ return this.contract.read.isBlacklisted([user]);
1119
+ }
1120
+ /**
1121
+ * isExcludedFromFees
1122
+ * view
1123
+ */
1124
+ async isExcludedFromFees(user) {
1125
+ return this.contract.read.isExcludedFromFees([user]);
1126
+ }
1127
+ /**
1128
+ * lastTrade
1129
+ * view
1130
+ */
1131
+ async lastTrade(user) {
1132
+ return this.contract.read.lastTrade([user]);
1133
+ }
1134
+ /**
1135
+ * launchBlock
1136
+ * view
1137
+ */
1138
+ async launchBlock() {
1139
+ return this.contract.read.launchBlock();
1140
+ }
1141
+ /**
1142
+ * launchTimestamp
1143
+ * view
1144
+ */
1145
+ async launchTimestamp() {
1146
+ return this.contract.read.launchTimestamp();
1147
+ }
1148
+ /**
1149
+ * marketingWallet
1150
+ * view
1151
+ */
1152
+ async marketingWallet() {
1153
+ return this.contract.read.marketingWallet();
1154
+ }
1155
+ /**
1156
+ * maxTx
1157
+ * view
1158
+ */
1159
+ async maxTx() {
1160
+ return this.contract.read.maxTx();
1161
+ }
1162
+ /**
1163
+ * maxWallet
1164
+ * view
1165
+ */
1166
+ async maxWallet() {
1167
+ return this.contract.read.maxWallet();
1168
+ }
1169
+ /**
1170
+ * name
1171
+ * view
1172
+ */
1173
+ async name() {
1174
+ return this.contract.read.name();
1175
+ }
1176
+ /**
1177
+ * nonces
1178
+ * view
1179
+ */
1180
+ async nonces(arg0) {
1181
+ return this.contract.read.nonces([arg0]);
1182
+ }
1183
+ /**
1184
+ * owner
1185
+ * view
1186
+ */
1187
+ async owner() {
1188
+ return this.contract.read.owner();
1189
+ }
1190
+ /**
1191
+ * pair
1192
+ * view
1193
+ */
1194
+ async pair() {
1195
+ return this.contract.read.pair();
1196
+ }
1197
+ /**
1198
+ * router
1199
+ * view
1200
+ */
1201
+ async router() {
1202
+ return this.contract.read.router();
1203
+ }
1204
+ /**
1205
+ * swapEnabled
1206
+ * view
1207
+ */
1208
+ async swapEnabled() {
1209
+ return this.contract.read.swapEnabled();
1210
+ }
1211
+ /**
1212
+ * swapThreshold
1213
+ * view
1214
+ */
1215
+ async swapThreshold() {
1216
+ return this.contract.read.swapThreshold();
1217
+ }
1218
+ /**
1219
+ * symbol
1220
+ * view
1221
+ */
1222
+ async symbol() {
1223
+ return this.contract.read.symbol();
1224
+ }
1225
+ /**
1226
+ * taxes
1227
+ * view
1228
+ */
1229
+ async taxes() {
1230
+ return this.contract.read.taxes();
1231
+ }
1232
+ /**
1233
+ * totalSupply
1234
+ * view
1235
+ */
1236
+ async totalSupply() {
1237
+ return this.contract.read.totalSupply();
1238
+ }
1239
+ /**
1240
+ * tradingEnabled
1241
+ * view
1242
+ */
1243
+ async tradingEnabled() {
1244
+ return this.contract.read.tradingEnabled();
1245
+ }
1246
+ /**
1247
+ * whitelistPeriod
1248
+ * view
1249
+ */
1250
+ async whitelistPeriod() {
1251
+ return this.contract.read.whitelistPeriod();
1252
+ }
1253
+ /**
1254
+ * whitelistedBuyer
1255
+ * view
1256
+ */
1257
+ async whitelistedBuyer(buyer) {
1258
+ return this.contract.read.whitelistedBuyer([buyer]);
1259
+ }
1260
+ /**
1261
+ * approve
1262
+ * nonpayable
1263
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1264
+ */
1265
+ async approve(spender, amount, options) {
1266
+ if (!this.contract.write) {
1267
+ throw new Error('Wallet client is required for write operations');
1268
+ }
1269
+ return this.contract.write.approve([spender, amount], options);
1270
+ }
1271
+ /**
1272
+ * bulkIsExcludedFromFees
1273
+ * nonpayable
1274
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1275
+ */
1276
+ async bulkIsExcludedFromFees(accounts, state, options) {
1277
+ if (!this.contract.write) {
1278
+ throw new Error('Wallet client is required for write operations');
1279
+ }
1280
+ return this.contract.write.bulkIsExcludedFromFees([accounts, state], options);
1281
+ }
1282
+ /**
1283
+ * decreaseAllowance
1284
+ * nonpayable
1285
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1286
+ */
1287
+ async decreaseAllowance(spender, subtractedValue, options) {
1288
+ if (!this.contract.write) {
1289
+ throw new Error('Wallet client is required for write operations');
1290
+ }
1291
+ return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
1292
+ }
1293
+ /**
1294
+ * enableTrading
1295
+ * nonpayable
1296
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1297
+ */
1298
+ async enableTrading(options) {
1299
+ if (!this.contract.write) {
1300
+ throw new Error('Wallet client is required for write operations');
1301
+ }
1302
+ return this.contract.write.enableTrading(options);
1303
+ }
1304
+ /**
1305
+ * increaseAllowance
1306
+ * nonpayable
1307
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1308
+ */
1309
+ async increaseAllowance(spender, addedValue, options) {
1310
+ if (!this.contract.write) {
1311
+ throw new Error('Wallet client is required for write operations');
1312
+ }
1313
+ return this.contract.write.increaseAllowance([spender, addedValue], options);
1314
+ }
1315
+ /**
1316
+ * permit
1317
+ * nonpayable
1318
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1319
+ */
1320
+ async permit(owner, spender, value, deadline, v, r, s, options) {
1321
+ if (!this.contract.write) {
1322
+ throw new Error('Wallet client is required for write operations');
1323
+ }
1324
+ return this.contract.write.permit([owner, spender, value, deadline, v, r, s], options);
1325
+ }
1326
+ /**
1327
+ * removeLimits
1328
+ * nonpayable
1329
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1330
+ */
1331
+ async removeLimits(options) {
1332
+ if (!this.contract.write) {
1333
+ throw new Error('Wallet client is required for write operations');
1334
+ }
1335
+ return this.contract.write.removeLimits(options);
1336
+ }
1337
+ /**
1338
+ * renounceOwnership
1339
+ * nonpayable
1340
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1341
+ */
1342
+ async renounceOwnership(options) {
1343
+ if (!this.contract.write) {
1344
+ throw new Error('Wallet client is required for write operations');
1345
+ }
1346
+ return this.contract.write.renounceOwnership(options);
1347
+ }
1348
+ /**
1349
+ * rescueERC20
1350
+ * nonpayable
1351
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1352
+ */
1353
+ async rescueERC20(tokenAdd, amount, options) {
1354
+ if (!this.contract.write) {
1355
+ throw new Error('Wallet client is required for write operations');
1356
+ }
1357
+ return this.contract.write.rescueERC20([tokenAdd, amount], options);
1358
+ }
1359
+ /**
1360
+ * rescueETH
1361
+ * nonpayable
1362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1363
+ */
1364
+ async rescueETH(weiAmount, options) {
1365
+ if (!this.contract.write) {
1366
+ throw new Error('Wallet client is required for write operations');
1367
+ }
1368
+ return this.contract.write.rescueETH([weiAmount], options);
1369
+ }
1370
+ /**
1371
+ * setBlacklist
1372
+ * nonpayable
1373
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1374
+ */
1375
+ async setBlacklist(accounts, status, options) {
1376
+ if (!this.contract.write) {
1377
+ throw new Error('Wallet client is required for write operations');
1378
+ }
1379
+ return this.contract.write.setBlacklist([accounts, status], options);
1380
+ }
1381
+ /**
1382
+ * setDelay
1383
+ * nonpayable
1384
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1385
+ */
1386
+ async setDelay(time, options) {
1387
+ if (!this.contract.write) {
1388
+ throw new Error('Wallet client is required for write operations');
1389
+ }
1390
+ return this.contract.write.setDelay([time], options);
1391
+ }
1392
+ /**
1393
+ * setIsExcludedFromFees
1394
+ * nonpayable
1395
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1396
+ */
1397
+ async setIsExcludedFromFees(_address, state, options) {
1398
+ if (!this.contract.write) {
1399
+ throw new Error('Wallet client is required for write operations');
1400
+ }
1401
+ return this.contract.write.setIsExcludedFromFees([_address, state], options);
1402
+ }
1403
+ /**
1404
+ * setLimits
1405
+ * nonpayable
1406
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1407
+ */
1408
+ async setLimits(_maxTx, _maxWallet, options) {
1409
+ if (!this.contract.write) {
1410
+ throw new Error('Wallet client is required for write operations');
1411
+ }
1412
+ return this.contract.write.setLimits([_maxTx, _maxWallet], options);
1413
+ }
1414
+ /**
1415
+ * setMarketingWallet
1416
+ * nonpayable
1417
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1418
+ */
1419
+ async setMarketingWallet(newWallet, options) {
1420
+ if (!this.contract.write) {
1421
+ throw new Error('Wallet client is required for write operations');
1422
+ }
1423
+ return this.contract.write.setMarketingWallet([newWallet], options);
1424
+ }
1425
+ /**
1426
+ * setRouterAndPair
1427
+ * nonpayable
1428
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1429
+ */
1430
+ async setRouterAndPair(newRouter, newPair, options) {
1431
+ if (!this.contract.write) {
1432
+ throw new Error('Wallet client is required for write operations');
1433
+ }
1434
+ return this.contract.write.setRouterAndPair([newRouter, newPair], options);
1435
+ }
1436
+ /**
1437
+ * setSwapEnabled
1438
+ * nonpayable
1439
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1440
+ */
1441
+ async setSwapEnabled(status, options) {
1442
+ if (!this.contract.write) {
1443
+ throw new Error('Wallet client is required for write operations');
1444
+ }
1445
+ return this.contract.write.setSwapEnabled([status], options);
1446
+ }
1447
+ /**
1448
+ * setSwapTreshhold
1449
+ * nonpayable
1450
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1451
+ */
1452
+ async setSwapTreshhold(amount, options) {
1453
+ if (!this.contract.write) {
1454
+ throw new Error('Wallet client is required for write operations');
1455
+ }
1456
+ return this.contract.write.setSwapTreshhold([amount], options);
1457
+ }
1458
+ /**
1459
+ * setTaxes
1460
+ * nonpayable
1461
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1462
+ */
1463
+ async setTaxes(_buyTax, _sellTax, _transferTax, options) {
1464
+ if (!this.contract.write) {
1465
+ throw new Error('Wallet client is required for write operations');
1466
+ }
1467
+ return this.contract.write.setTaxes([_buyTax, _sellTax, _transferTax], options);
1468
+ }
1469
+ /**
1470
+ * transfer
1471
+ * nonpayable
1472
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1473
+ */
1474
+ async transfer(to, amount, options) {
1475
+ if (!this.contract.write) {
1476
+ throw new Error('Wallet client is required for write operations');
1477
+ }
1478
+ return this.contract.write.transfer([to, amount], options);
1479
+ }
1480
+ /**
1481
+ * transferFrom
1482
+ * nonpayable
1483
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1484
+ */
1485
+ async transferFrom(from, to, amount, options) {
1486
+ if (!this.contract.write) {
1487
+ throw new Error('Wallet client is required for write operations');
1488
+ }
1489
+ return this.contract.write.transferFrom([from, to, amount], options);
1490
+ }
1491
+ /**
1492
+ * transferOwnership
1493
+ * nonpayable
1494
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1495
+ */
1496
+ async transferOwnership(newOwner, options) {
1497
+ if (!this.contract.write) {
1498
+ throw new Error('Wallet client is required for write operations');
1499
+ }
1500
+ return this.contract.write.transferOwnership([newOwner], options);
1501
+ }
1502
+ /**
1503
+ * Simulate contract write operations (dry-run without sending transaction)
1504
+ *
1505
+ * @example
1506
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1507
+ * console.log('Gas estimate:', result.request.gas);
1508
+ * console.log('Would succeed:', result.result);
1509
+ */
1510
+ get simulate() {
1511
+ const contract = this.contract;
1512
+ if (!contract.simulate) {
1513
+ throw new Error('Public client is required for simulation');
1514
+ }
1515
+ return {
1516
+ /**
1517
+ * Simulate approve
1518
+ * Returns gas estimate and result without sending transaction
1519
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1520
+ */
1521
+ async approve(spender, amount, options) {
1522
+ return contract.simulate.approve([spender, amount], options);
1523
+ },
1524
+ /**
1525
+ * Simulate bulkIsExcludedFromFees
1526
+ * Returns gas estimate and result without sending transaction
1527
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1528
+ */
1529
+ async bulkIsExcludedFromFees(accounts, state, options) {
1530
+ return contract.simulate.bulkIsExcludedFromFees([accounts, state], options);
1531
+ },
1532
+ /**
1533
+ * Simulate decreaseAllowance
1534
+ * Returns gas estimate and result without sending transaction
1535
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1536
+ */
1537
+ async decreaseAllowance(spender, subtractedValue, options) {
1538
+ return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
1539
+ },
1540
+ /**
1541
+ * Simulate enableTrading
1542
+ * Returns gas estimate and result without sending transaction
1543
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1544
+ */
1545
+ async enableTrading(options) {
1546
+ return contract.simulate.enableTrading(options);
1547
+ },
1548
+ /**
1549
+ * Simulate increaseAllowance
1550
+ * Returns gas estimate and result without sending transaction
1551
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1552
+ */
1553
+ async increaseAllowance(spender, addedValue, options) {
1554
+ return contract.simulate.increaseAllowance([spender, addedValue], options);
1555
+ },
1556
+ /**
1557
+ * Simulate permit
1558
+ * Returns gas estimate and result without sending transaction
1559
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1560
+ */
1561
+ async permit(owner, spender, value, deadline, v, r, s, options) {
1562
+ return contract.simulate.permit([owner, spender, value, deadline, v, r, s], options);
1563
+ },
1564
+ /**
1565
+ * Simulate removeLimits
1566
+ * Returns gas estimate and result without sending transaction
1567
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1568
+ */
1569
+ async removeLimits(options) {
1570
+ return contract.simulate.removeLimits(options);
1571
+ },
1572
+ /**
1573
+ * Simulate renounceOwnership
1574
+ * Returns gas estimate and result without sending transaction
1575
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1576
+ */
1577
+ async renounceOwnership(options) {
1578
+ return contract.simulate.renounceOwnership(options);
1579
+ },
1580
+ /**
1581
+ * Simulate rescueERC20
1582
+ * Returns gas estimate and result without sending transaction
1583
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1584
+ */
1585
+ async rescueERC20(tokenAdd, amount, options) {
1586
+ return contract.simulate.rescueERC20([tokenAdd, amount], options);
1587
+ },
1588
+ /**
1589
+ * Simulate rescueETH
1590
+ * Returns gas estimate and result without sending transaction
1591
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1592
+ */
1593
+ async rescueETH(weiAmount, options) {
1594
+ return contract.simulate.rescueETH([weiAmount], options);
1595
+ },
1596
+ /**
1597
+ * Simulate setBlacklist
1598
+ * Returns gas estimate and result without sending transaction
1599
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1600
+ */
1601
+ async setBlacklist(accounts, status, options) {
1602
+ return contract.simulate.setBlacklist([accounts, status], options);
1603
+ },
1604
+ /**
1605
+ * Simulate setDelay
1606
+ * Returns gas estimate and result without sending transaction
1607
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1608
+ */
1609
+ async setDelay(time, options) {
1610
+ return contract.simulate.setDelay([time], options);
1611
+ },
1612
+ /**
1613
+ * Simulate setIsExcludedFromFees
1614
+ * Returns gas estimate and result without sending transaction
1615
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1616
+ */
1617
+ async setIsExcludedFromFees(_address, state, options) {
1618
+ return contract.simulate.setIsExcludedFromFees([_address, state], options);
1619
+ },
1620
+ /**
1621
+ * Simulate setLimits
1622
+ * Returns gas estimate and result without sending transaction
1623
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1624
+ */
1625
+ async setLimits(_maxTx, _maxWallet, options) {
1626
+ return contract.simulate.setLimits([_maxTx, _maxWallet], options);
1627
+ },
1628
+ /**
1629
+ * Simulate setMarketingWallet
1630
+ * Returns gas estimate and result without sending transaction
1631
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1632
+ */
1633
+ async setMarketingWallet(newWallet, options) {
1634
+ return contract.simulate.setMarketingWallet([newWallet], options);
1635
+ },
1636
+ /**
1637
+ * Simulate setRouterAndPair
1638
+ * Returns gas estimate and result without sending transaction
1639
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1640
+ */
1641
+ async setRouterAndPair(newRouter, newPair, options) {
1642
+ return contract.simulate.setRouterAndPair([newRouter, newPair], options);
1643
+ },
1644
+ /**
1645
+ * Simulate setSwapEnabled
1646
+ * Returns gas estimate and result without sending transaction
1647
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1648
+ */
1649
+ async setSwapEnabled(status, options) {
1650
+ return contract.simulate.setSwapEnabled([status], options);
1651
+ },
1652
+ /**
1653
+ * Simulate setSwapTreshhold
1654
+ * Returns gas estimate and result without sending transaction
1655
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1656
+ */
1657
+ async setSwapTreshhold(amount, options) {
1658
+ return contract.simulate.setSwapTreshhold([amount], options);
1659
+ },
1660
+ /**
1661
+ * Simulate setTaxes
1662
+ * Returns gas estimate and result without sending transaction
1663
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1664
+ */
1665
+ async setTaxes(_buyTax, _sellTax, _transferTax, options) {
1666
+ return contract.simulate.setTaxes([_buyTax, _sellTax, _transferTax], options);
1667
+ },
1668
+ /**
1669
+ * Simulate transfer
1670
+ * Returns gas estimate and result without sending transaction
1671
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1672
+ */
1673
+ async transfer(to, amount, options) {
1674
+ return contract.simulate.transfer([to, amount], options);
1675
+ },
1676
+ /**
1677
+ * Simulate transferFrom
1678
+ * Returns gas estimate and result without sending transaction
1679
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1680
+ */
1681
+ async transferFrom(from, to, amount, options) {
1682
+ return contract.simulate.transferFrom([from, to, amount], options);
1683
+ },
1684
+ /**
1685
+ * Simulate transferOwnership
1686
+ * Returns gas estimate and result without sending transaction
1687
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1688
+ */
1689
+ async transferOwnership(newOwner, options) {
1690
+ return contract.simulate.transferOwnership([newOwner], options);
1691
+ }
1692
+ };
1693
+ }
1694
+ /**
1695
+ * Watch contract events
1696
+ *
1697
+ * @example
1698
+ * // Watch all Transfer events
1699
+ * const unwatch = contract.watch.Transfer((event) => {
1700
+ * console.log('Transfer:', event);
1701
+ * });
1702
+ *
1703
+ * // Stop watching
1704
+ * unwatch();
1705
+ */
1706
+ get watch() {
1707
+ return {
1708
+ /**
1709
+ * Watch Approval events
1710
+ * @param callback Function to call when event is emitted
1711
+ * @param filter Optional filter for indexed parameters
1712
+ * @returns Unwatch function to stop listening
1713
+ */
1714
+ Approval: (callback, filter) => {
1715
+ return this.publicClient.watchContractEvent({
1716
+ address: this.contractAddress,
1717
+ abi: exports.Ethane_jsonAbi,
1718
+ eventName: 'Approval',
1719
+ args: filter,
1720
+ onLogs: (logs) => {
1721
+ logs.forEach((log) => {
1722
+ callback(log.args);
1723
+ });
1724
+ },
1725
+ });
1726
+ },
1727
+ /**
1728
+ * Watch OwnershipTransferred events
1729
+ * @param callback Function to call when event is emitted
1730
+ * @param filter Optional filter for indexed parameters
1731
+ * @returns Unwatch function to stop listening
1732
+ */
1733
+ OwnershipTransferred: (callback, filter) => {
1734
+ return this.publicClient.watchContractEvent({
1735
+ address: this.contractAddress,
1736
+ abi: exports.Ethane_jsonAbi,
1737
+ eventName: 'OwnershipTransferred',
1738
+ args: filter,
1739
+ onLogs: (logs) => {
1740
+ logs.forEach((log) => {
1741
+ callback(log.args);
1742
+ });
1743
+ },
1744
+ });
1745
+ },
1746
+ /**
1747
+ * Watch Transfer events
1748
+ * @param callback Function to call when event is emitted
1749
+ * @param filter Optional filter for indexed parameters
1750
+ * @returns Unwatch function to stop listening
1751
+ */
1752
+ Transfer: (callback, filter) => {
1753
+ return this.publicClient.watchContractEvent({
1754
+ address: this.contractAddress,
1755
+ abi: exports.Ethane_jsonAbi,
1756
+ eventName: 'Transfer',
1757
+ args: filter,
1758
+ onLogs: (logs) => {
1759
+ logs.forEach((log) => {
1760
+ callback(log.args);
1761
+ });
1762
+ },
1763
+ });
1764
+ }
1765
+ };
1766
+ }
1767
+ }
1768
+ exports.Ethane_json = Ethane_json;