@gitmyabi/chillguy 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,1002 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JustAChillGuy_json = exports.JustAChillGuy_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * JustAChillGuy_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.JustAChillGuy_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ {
17
+ "anonymous": false,
18
+ "inputs": [
19
+ {
20
+ "indexed": true,
21
+ "internalType": "address",
22
+ "name": "owner",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "indexed": true,
27
+ "internalType": "address",
28
+ "name": "spender",
29
+ "type": "address"
30
+ },
31
+ {
32
+ "indexed": false,
33
+ "internalType": "uint256",
34
+ "name": "value",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "Approval",
39
+ "type": "event"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": false,
46
+ "internalType": "uint256",
47
+ "name": "_maxTxAmount",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "name": "MaxTxAmountUpdated",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "anonymous": false,
56
+ "inputs": [
57
+ {
58
+ "indexed": true,
59
+ "internalType": "address",
60
+ "name": "previousOwner",
61
+ "type": "address"
62
+ },
63
+ {
64
+ "indexed": true,
65
+ "internalType": "address",
66
+ "name": "newOwner",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "name": "OwnershipTransferred",
71
+ "type": "event"
72
+ },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": true,
78
+ "internalType": "address",
79
+ "name": "from",
80
+ "type": "address"
81
+ },
82
+ {
83
+ "indexed": true,
84
+ "internalType": "address",
85
+ "name": "to",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": false,
90
+ "internalType": "uint256",
91
+ "name": "value",
92
+ "type": "uint256"
93
+ }
94
+ ],
95
+ "name": "Transfer",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": false,
103
+ "internalType": "uint256",
104
+ "name": "_tax",
105
+ "type": "uint256"
106
+ }
107
+ ],
108
+ "name": "TransferTaxUpdated",
109
+ "type": "event"
110
+ },
111
+ {
112
+ "inputs": [],
113
+ "name": "_buyCount",
114
+ "outputs": [
115
+ {
116
+ "internalType": "uint256",
117
+ "name": "",
118
+ "type": "uint256"
119
+ }
120
+ ],
121
+ "stateMutability": "view",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "_finalBuyTax",
127
+ "outputs": [
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "",
131
+ "type": "uint256"
132
+ }
133
+ ],
134
+ "stateMutability": "view",
135
+ "type": "function"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "_finalSellTax",
140
+ "outputs": [
141
+ {
142
+ "internalType": "uint256",
143
+ "name": "",
144
+ "type": "uint256"
145
+ }
146
+ ],
147
+ "stateMutability": "view",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [],
152
+ "name": "_maxTaxSwap",
153
+ "outputs": [
154
+ {
155
+ "internalType": "uint256",
156
+ "name": "",
157
+ "type": "uint256"
158
+ }
159
+ ],
160
+ "stateMutability": "view",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "_maxTxAmount",
166
+ "outputs": [
167
+ {
168
+ "internalType": "uint256",
169
+ "name": "",
170
+ "type": "uint256"
171
+ }
172
+ ],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [],
178
+ "name": "_maxWalletSize",
179
+ "outputs": [
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "",
183
+ "type": "uint256"
184
+ }
185
+ ],
186
+ "stateMutability": "view",
187
+ "type": "function"
188
+ },
189
+ {
190
+ "inputs": [],
191
+ "name": "_taxSwapThreshold",
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": "_transferTax",
205
+ "outputs": [
206
+ {
207
+ "internalType": "uint256",
208
+ "name": "",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "address[]",
219
+ "name": "bots_",
220
+ "type": "address[]"
221
+ }
222
+ ],
223
+ "name": "addBots",
224
+ "outputs": [],
225
+ "stateMutability": "nonpayable",
226
+ "type": "function"
227
+ },
228
+ {
229
+ "inputs": [
230
+ {
231
+ "internalType": "address",
232
+ "name": "owner",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "internalType": "address",
237
+ "name": "spender",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "name": "allowance",
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": "spender",
257
+ "type": "address"
258
+ },
259
+ {
260
+ "internalType": "uint256",
261
+ "name": "amount",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "name": "approve",
266
+ "outputs": [
267
+ {
268
+ "internalType": "bool",
269
+ "name": "",
270
+ "type": "bool"
271
+ }
272
+ ],
273
+ "stateMutability": "nonpayable",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [
278
+ {
279
+ "internalType": "address",
280
+ "name": "account",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "name": "balanceOf",
285
+ "outputs": [
286
+ {
287
+ "internalType": "uint256",
288
+ "name": "",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "stateMutability": "view",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "decimals",
298
+ "outputs": [
299
+ {
300
+ "internalType": "uint8",
301
+ "name": "",
302
+ "type": "uint8"
303
+ }
304
+ ],
305
+ "stateMutability": "pure",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [
310
+ {
311
+ "internalType": "address[]",
312
+ "name": "notbot",
313
+ "type": "address[]"
314
+ }
315
+ ],
316
+ "name": "delBots",
317
+ "outputs": [],
318
+ "stateMutability": "nonpayable",
319
+ "type": "function"
320
+ },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "address",
325
+ "name": "a",
326
+ "type": "address"
327
+ }
328
+ ],
329
+ "name": "isBot",
330
+ "outputs": [
331
+ {
332
+ "internalType": "bool",
333
+ "name": "",
334
+ "type": "bool"
335
+ }
336
+ ],
337
+ "stateMutability": "view",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "manualSwap",
343
+ "outputs": [],
344
+ "stateMutability": "nonpayable",
345
+ "type": "function"
346
+ },
347
+ {
348
+ "inputs": [],
349
+ "name": "name",
350
+ "outputs": [
351
+ {
352
+ "internalType": "string",
353
+ "name": "",
354
+ "type": "string"
355
+ }
356
+ ],
357
+ "stateMutability": "pure",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "openTrading",
363
+ "outputs": [],
364
+ "stateMutability": "nonpayable",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [],
369
+ "name": "owner",
370
+ "outputs": [
371
+ {
372
+ "internalType": "address",
373
+ "name": "",
374
+ "type": "address"
375
+ }
376
+ ],
377
+ "stateMutability": "view",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "inputs": [
382
+ {
383
+ "internalType": "uint256",
384
+ "name": "_newFee",
385
+ "type": "uint256"
386
+ }
387
+ ],
388
+ "name": "reduceFee",
389
+ "outputs": [],
390
+ "stateMutability": "nonpayable",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [],
395
+ "name": "removeLimits",
396
+ "outputs": [],
397
+ "stateMutability": "nonpayable",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [],
402
+ "name": "removeTransferTax",
403
+ "outputs": [],
404
+ "stateMutability": "nonpayable",
405
+ "type": "function"
406
+ },
407
+ {
408
+ "inputs": [],
409
+ "name": "renounceOwnership",
410
+ "outputs": [],
411
+ "stateMutability": "nonpayable",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [],
416
+ "name": "symbol",
417
+ "outputs": [
418
+ {
419
+ "internalType": "string",
420
+ "name": "",
421
+ "type": "string"
422
+ }
423
+ ],
424
+ "stateMutability": "pure",
425
+ "type": "function"
426
+ },
427
+ {
428
+ "inputs": [],
429
+ "name": "totalSupply",
430
+ "outputs": [
431
+ {
432
+ "internalType": "uint256",
433
+ "name": "",
434
+ "type": "uint256"
435
+ }
436
+ ],
437
+ "stateMutability": "pure",
438
+ "type": "function"
439
+ },
440
+ {
441
+ "inputs": [
442
+ {
443
+ "internalType": "address",
444
+ "name": "recipient",
445
+ "type": "address"
446
+ },
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "amount",
450
+ "type": "uint256"
451
+ }
452
+ ],
453
+ "name": "transfer",
454
+ "outputs": [
455
+ {
456
+ "internalType": "bool",
457
+ "name": "",
458
+ "type": "bool"
459
+ }
460
+ ],
461
+ "stateMutability": "nonpayable",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "inputs": [
466
+ {
467
+ "internalType": "address",
468
+ "name": "sender",
469
+ "type": "address"
470
+ },
471
+ {
472
+ "internalType": "address",
473
+ "name": "recipient",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "amount",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "name": "transferFrom",
483
+ "outputs": [
484
+ {
485
+ "internalType": "bool",
486
+ "name": "",
487
+ "type": "bool"
488
+ }
489
+ ],
490
+ "stateMutability": "nonpayable",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "stateMutability": "payable",
495
+ "type": "receive"
496
+ }
497
+ ];
498
+ /**
499
+ * JustAChillGuy_json Contract Class
500
+ *
501
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
502
+ *
503
+ * @example
504
+ * ```typescript
505
+ * import { createPublicClient, createWalletClient, http } from 'viem';
506
+ * import { mainnet } from 'viem/chains';
507
+ * import { JustAChillGuy_json } from 'JustAChillGuy_json';
508
+ *
509
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
510
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
511
+ *
512
+ * const contract = new JustAChillGuy_json('0x...', { publicClient, walletClient });
513
+ *
514
+ * // Read functions
515
+ * const result = await contract.balanceOf('0x...');
516
+ *
517
+ * // Write functions
518
+ * const hash = await contract.transfer('0x...', 1000n);
519
+ *
520
+ * // Simulate transactions (dry-run)
521
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
522
+ * console.log('Gas estimate:', simulation.request.gas);
523
+ *
524
+ * // Watch events
525
+ * const unwatch = contract.watch.Transfer((event) => {
526
+ * console.log('Transfer event:', event);
527
+ * });
528
+ * ```
529
+ */
530
+ class JustAChillGuy_json {
531
+ constructor(address, clients) {
532
+ this.contractAddress = address;
533
+ this.publicClient = clients.publicClient;
534
+ this.contract = (0, viem_1.getContract)({
535
+ address,
536
+ abi: exports.JustAChillGuy_jsonAbi,
537
+ client: {
538
+ public: clients.publicClient,
539
+ wallet: clients.walletClient,
540
+ },
541
+ });
542
+ }
543
+ /**
544
+ * Get the contract address
545
+ */
546
+ get address() {
547
+ return this.contractAddress;
548
+ }
549
+ /**
550
+ * Get the underlying viem contract instance
551
+ */
552
+ getContract() {
553
+ return this.contract;
554
+ }
555
+ /**
556
+ * _buyCount
557
+ * view
558
+ */
559
+ async _buyCount() {
560
+ return this.contract.read._buyCount();
561
+ }
562
+ /**
563
+ * _finalBuyTax
564
+ * view
565
+ */
566
+ async _finalBuyTax() {
567
+ return this.contract.read._finalBuyTax();
568
+ }
569
+ /**
570
+ * _finalSellTax
571
+ * view
572
+ */
573
+ async _finalSellTax() {
574
+ return this.contract.read._finalSellTax();
575
+ }
576
+ /**
577
+ * _maxTaxSwap
578
+ * view
579
+ */
580
+ async _maxTaxSwap() {
581
+ return this.contract.read._maxTaxSwap();
582
+ }
583
+ /**
584
+ * _maxTxAmount
585
+ * view
586
+ */
587
+ async _maxTxAmount() {
588
+ return this.contract.read._maxTxAmount();
589
+ }
590
+ /**
591
+ * _maxWalletSize
592
+ * view
593
+ */
594
+ async _maxWalletSize() {
595
+ return this.contract.read._maxWalletSize();
596
+ }
597
+ /**
598
+ * _taxSwapThreshold
599
+ * view
600
+ */
601
+ async _taxSwapThreshold() {
602
+ return this.contract.read._taxSwapThreshold();
603
+ }
604
+ /**
605
+ * _transferTax
606
+ * view
607
+ */
608
+ async _transferTax() {
609
+ return this.contract.read._transferTax();
610
+ }
611
+ /**
612
+ * allowance
613
+ * view
614
+ */
615
+ async allowance(owner, spender) {
616
+ return this.contract.read.allowance([owner, spender]);
617
+ }
618
+ /**
619
+ * balanceOf
620
+ * view
621
+ */
622
+ async balanceOf(account) {
623
+ return this.contract.read.balanceOf([account]);
624
+ }
625
+ /**
626
+ * decimals
627
+ * pure
628
+ */
629
+ async decimals() {
630
+ return this.contract.read.decimals();
631
+ }
632
+ /**
633
+ * isBot
634
+ * view
635
+ */
636
+ async isBot(a) {
637
+ return this.contract.read.isBot([a]);
638
+ }
639
+ /**
640
+ * name
641
+ * pure
642
+ */
643
+ async name() {
644
+ return this.contract.read.name();
645
+ }
646
+ /**
647
+ * owner
648
+ * view
649
+ */
650
+ async owner() {
651
+ return this.contract.read.owner();
652
+ }
653
+ /**
654
+ * symbol
655
+ * pure
656
+ */
657
+ async symbol() {
658
+ return this.contract.read.symbol();
659
+ }
660
+ /**
661
+ * totalSupply
662
+ * pure
663
+ */
664
+ async totalSupply() {
665
+ return this.contract.read.totalSupply();
666
+ }
667
+ /**
668
+ * addBots
669
+ * nonpayable
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ async addBots(bots_, options) {
673
+ if (!this.contract.write) {
674
+ throw new Error('Wallet client is required for write operations');
675
+ }
676
+ return this.contract.write.addBots([bots_], options);
677
+ }
678
+ /**
679
+ * approve
680
+ * nonpayable
681
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
+ */
683
+ async approve(spender, amount, options) {
684
+ if (!this.contract.write) {
685
+ throw new Error('Wallet client is required for write operations');
686
+ }
687
+ return this.contract.write.approve([spender, amount], options);
688
+ }
689
+ /**
690
+ * delBots
691
+ * nonpayable
692
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
693
+ */
694
+ async delBots(notbot, options) {
695
+ if (!this.contract.write) {
696
+ throw new Error('Wallet client is required for write operations');
697
+ }
698
+ return this.contract.write.delBots([notbot], options);
699
+ }
700
+ /**
701
+ * manualSwap
702
+ * nonpayable
703
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
704
+ */
705
+ async manualSwap(options) {
706
+ if (!this.contract.write) {
707
+ throw new Error('Wallet client is required for write operations');
708
+ }
709
+ return this.contract.write.manualSwap(options);
710
+ }
711
+ /**
712
+ * openTrading
713
+ * nonpayable
714
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
715
+ */
716
+ async openTrading(options) {
717
+ if (!this.contract.write) {
718
+ throw new Error('Wallet client is required for write operations');
719
+ }
720
+ return this.contract.write.openTrading(options);
721
+ }
722
+ /**
723
+ * reduceFee
724
+ * nonpayable
725
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
726
+ */
727
+ async reduceFee(_newFee, options) {
728
+ if (!this.contract.write) {
729
+ throw new Error('Wallet client is required for write operations');
730
+ }
731
+ return this.contract.write.reduceFee([_newFee], options);
732
+ }
733
+ /**
734
+ * removeLimits
735
+ * nonpayable
736
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
737
+ */
738
+ async removeLimits(options) {
739
+ if (!this.contract.write) {
740
+ throw new Error('Wallet client is required for write operations');
741
+ }
742
+ return this.contract.write.removeLimits(options);
743
+ }
744
+ /**
745
+ * removeTransferTax
746
+ * nonpayable
747
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
+ */
749
+ async removeTransferTax(options) {
750
+ if (!this.contract.write) {
751
+ throw new Error('Wallet client is required for write operations');
752
+ }
753
+ return this.contract.write.removeTransferTax(options);
754
+ }
755
+ /**
756
+ * renounceOwnership
757
+ * nonpayable
758
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
759
+ */
760
+ async renounceOwnership(options) {
761
+ if (!this.contract.write) {
762
+ throw new Error('Wallet client is required for write operations');
763
+ }
764
+ return this.contract.write.renounceOwnership(options);
765
+ }
766
+ /**
767
+ * transfer
768
+ * nonpayable
769
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
770
+ */
771
+ async transfer(recipient, amount, options) {
772
+ if (!this.contract.write) {
773
+ throw new Error('Wallet client is required for write operations');
774
+ }
775
+ return this.contract.write.transfer([recipient, amount], options);
776
+ }
777
+ /**
778
+ * transferFrom
779
+ * nonpayable
780
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
781
+ */
782
+ async transferFrom(sender, recipient, amount, options) {
783
+ if (!this.contract.write) {
784
+ throw new Error('Wallet client is required for write operations');
785
+ }
786
+ return this.contract.write.transferFrom([sender, recipient, amount], options);
787
+ }
788
+ /**
789
+ * Simulate contract write operations (dry-run without sending transaction)
790
+ *
791
+ * @example
792
+ * const result = await contract.simulate.transfer('0x...', 1000n);
793
+ * console.log('Gas estimate:', result.request.gas);
794
+ * console.log('Would succeed:', result.result);
795
+ */
796
+ get simulate() {
797
+ const contract = this.contract;
798
+ if (!contract.simulate) {
799
+ throw new Error('Public client is required for simulation');
800
+ }
801
+ return {
802
+ /**
803
+ * Simulate addBots
804
+ * Returns gas estimate and result without sending transaction
805
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
806
+ */
807
+ async addBots(bots_, options) {
808
+ return contract.simulate.addBots([bots_], options);
809
+ },
810
+ /**
811
+ * Simulate approve
812
+ * Returns gas estimate and result without sending transaction
813
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
814
+ */
815
+ async approve(spender, amount, options) {
816
+ return contract.simulate.approve([spender, amount], options);
817
+ },
818
+ /**
819
+ * Simulate delBots
820
+ * Returns gas estimate and result without sending transaction
821
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
822
+ */
823
+ async delBots(notbot, options) {
824
+ return contract.simulate.delBots([notbot], options);
825
+ },
826
+ /**
827
+ * Simulate manualSwap
828
+ * Returns gas estimate and result without sending transaction
829
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
830
+ */
831
+ async manualSwap(options) {
832
+ return contract.simulate.manualSwap(options);
833
+ },
834
+ /**
835
+ * Simulate openTrading
836
+ * Returns gas estimate and result without sending transaction
837
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
838
+ */
839
+ async openTrading(options) {
840
+ return contract.simulate.openTrading(options);
841
+ },
842
+ /**
843
+ * Simulate reduceFee
844
+ * Returns gas estimate and result without sending transaction
845
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
846
+ */
847
+ async reduceFee(_newFee, options) {
848
+ return contract.simulate.reduceFee([_newFee], options);
849
+ },
850
+ /**
851
+ * Simulate removeLimits
852
+ * Returns gas estimate and result without sending transaction
853
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
854
+ */
855
+ async removeLimits(options) {
856
+ return contract.simulate.removeLimits(options);
857
+ },
858
+ /**
859
+ * Simulate removeTransferTax
860
+ * Returns gas estimate and result without sending transaction
861
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
862
+ */
863
+ async removeTransferTax(options) {
864
+ return contract.simulate.removeTransferTax(options);
865
+ },
866
+ /**
867
+ * Simulate renounceOwnership
868
+ * Returns gas estimate and result without sending transaction
869
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
870
+ */
871
+ async renounceOwnership(options) {
872
+ return contract.simulate.renounceOwnership(options);
873
+ },
874
+ /**
875
+ * Simulate transfer
876
+ * Returns gas estimate and result without sending transaction
877
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
878
+ */
879
+ async transfer(recipient, amount, options) {
880
+ return contract.simulate.transfer([recipient, amount], options);
881
+ },
882
+ /**
883
+ * Simulate transferFrom
884
+ * Returns gas estimate and result without sending transaction
885
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
886
+ */
887
+ async transferFrom(sender, recipient, amount, options) {
888
+ return contract.simulate.transferFrom([sender, recipient, amount], options);
889
+ }
890
+ };
891
+ }
892
+ /**
893
+ * Watch contract events
894
+ *
895
+ * @example
896
+ * // Watch all Transfer events
897
+ * const unwatch = contract.watch.Transfer((event) => {
898
+ * console.log('Transfer:', event);
899
+ * });
900
+ *
901
+ * // Stop watching
902
+ * unwatch();
903
+ */
904
+ get watch() {
905
+ return {
906
+ /**
907
+ * Watch Approval events
908
+ * @param callback Function to call when event is emitted
909
+ * @param filter Optional filter for indexed parameters
910
+ * @returns Unwatch function to stop listening
911
+ */
912
+ Approval: (callback, filter) => {
913
+ return this.publicClient.watchContractEvent({
914
+ address: this.contractAddress,
915
+ abi: exports.JustAChillGuy_jsonAbi,
916
+ eventName: 'Approval',
917
+ args: filter,
918
+ onLogs: (logs) => {
919
+ logs.forEach((log) => {
920
+ callback(log.args);
921
+ });
922
+ },
923
+ });
924
+ },
925
+ /**
926
+ * Watch MaxTxAmountUpdated events
927
+ * @param callback Function to call when event is emitted
928
+ * @param filter Optional filter for indexed parameters
929
+ * @returns Unwatch function to stop listening
930
+ */
931
+ MaxTxAmountUpdated: (callback) => {
932
+ return this.publicClient.watchContractEvent({
933
+ address: this.contractAddress,
934
+ abi: exports.JustAChillGuy_jsonAbi,
935
+ eventName: 'MaxTxAmountUpdated',
936
+ onLogs: (logs) => {
937
+ logs.forEach((log) => {
938
+ callback(log.args);
939
+ });
940
+ },
941
+ });
942
+ },
943
+ /**
944
+ * Watch OwnershipTransferred events
945
+ * @param callback Function to call when event is emitted
946
+ * @param filter Optional filter for indexed parameters
947
+ * @returns Unwatch function to stop listening
948
+ */
949
+ OwnershipTransferred: (callback, filter) => {
950
+ return this.publicClient.watchContractEvent({
951
+ address: this.contractAddress,
952
+ abi: exports.JustAChillGuy_jsonAbi,
953
+ eventName: 'OwnershipTransferred',
954
+ args: filter,
955
+ onLogs: (logs) => {
956
+ logs.forEach((log) => {
957
+ callback(log.args);
958
+ });
959
+ },
960
+ });
961
+ },
962
+ /**
963
+ * Watch Transfer events
964
+ * @param callback Function to call when event is emitted
965
+ * @param filter Optional filter for indexed parameters
966
+ * @returns Unwatch function to stop listening
967
+ */
968
+ Transfer: (callback, filter) => {
969
+ return this.publicClient.watchContractEvent({
970
+ address: this.contractAddress,
971
+ abi: exports.JustAChillGuy_jsonAbi,
972
+ eventName: 'Transfer',
973
+ args: filter,
974
+ onLogs: (logs) => {
975
+ logs.forEach((log) => {
976
+ callback(log.args);
977
+ });
978
+ },
979
+ });
980
+ },
981
+ /**
982
+ * Watch TransferTaxUpdated events
983
+ * @param callback Function to call when event is emitted
984
+ * @param filter Optional filter for indexed parameters
985
+ * @returns Unwatch function to stop listening
986
+ */
987
+ TransferTaxUpdated: (callback) => {
988
+ return this.publicClient.watchContractEvent({
989
+ address: this.contractAddress,
990
+ abi: exports.JustAChillGuy_jsonAbi,
991
+ eventName: 'TransferTaxUpdated',
992
+ onLogs: (logs) => {
993
+ logs.forEach((log) => {
994
+ callback(log.args);
995
+ });
996
+ },
997
+ });
998
+ }
999
+ };
1000
+ }
1001
+ }
1002
+ exports.JustAChillGuy_json = JustAChillGuy_json;