@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,1300 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+ /**
5
+ * JustAChillGuy_json ABI
6
+ *
7
+ * This ABI is typed using viem's type system for full type safety.
8
+ */
9
+ export const JustAChillGuy_jsonAbi = [
10
+ {
11
+ "inputs": [],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "address",
21
+ "name": "owner",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "spender",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": false,
32
+ "internalType": "uint256",
33
+ "name": "value",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "name": "Approval",
38
+ "type": "event"
39
+ },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": false,
45
+ "internalType": "uint256",
46
+ "name": "_maxTxAmount",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "MaxTxAmountUpdated",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "previousOwner",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "newOwner",
66
+ "type": "address"
67
+ }
68
+ ],
69
+ "name": "OwnershipTransferred",
70
+ "type": "event"
71
+ },
72
+ {
73
+ "anonymous": false,
74
+ "inputs": [
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "from",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": true,
83
+ "internalType": "address",
84
+ "name": "to",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "value",
91
+ "type": "uint256"
92
+ }
93
+ ],
94
+ "name": "Transfer",
95
+ "type": "event"
96
+ },
97
+ {
98
+ "anonymous": false,
99
+ "inputs": [
100
+ {
101
+ "indexed": false,
102
+ "internalType": "uint256",
103
+ "name": "_tax",
104
+ "type": "uint256"
105
+ }
106
+ ],
107
+ "name": "TransferTaxUpdated",
108
+ "type": "event"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "_buyCount",
113
+ "outputs": [
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "",
117
+ "type": "uint256"
118
+ }
119
+ ],
120
+ "stateMutability": "view",
121
+ "type": "function"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "_finalBuyTax",
126
+ "outputs": [
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [],
138
+ "name": "_finalSellTax",
139
+ "outputs": [
140
+ {
141
+ "internalType": "uint256",
142
+ "name": "",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "stateMutability": "view",
147
+ "type": "function"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "_maxTaxSwap",
152
+ "outputs": [
153
+ {
154
+ "internalType": "uint256",
155
+ "name": "",
156
+ "type": "uint256"
157
+ }
158
+ ],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "_maxTxAmount",
165
+ "outputs": [
166
+ {
167
+ "internalType": "uint256",
168
+ "name": "",
169
+ "type": "uint256"
170
+ }
171
+ ],
172
+ "stateMutability": "view",
173
+ "type": "function"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "_maxWalletSize",
178
+ "outputs": [
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "",
182
+ "type": "uint256"
183
+ }
184
+ ],
185
+ "stateMutability": "view",
186
+ "type": "function"
187
+ },
188
+ {
189
+ "inputs": [],
190
+ "name": "_taxSwapThreshold",
191
+ "outputs": [
192
+ {
193
+ "internalType": "uint256",
194
+ "name": "",
195
+ "type": "uint256"
196
+ }
197
+ ],
198
+ "stateMutability": "view",
199
+ "type": "function"
200
+ },
201
+ {
202
+ "inputs": [],
203
+ "name": "_transferTax",
204
+ "outputs": [
205
+ {
206
+ "internalType": "uint256",
207
+ "name": "",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "stateMutability": "view",
212
+ "type": "function"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "internalType": "address[]",
218
+ "name": "bots_",
219
+ "type": "address[]"
220
+ }
221
+ ],
222
+ "name": "addBots",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [
229
+ {
230
+ "internalType": "address",
231
+ "name": "owner",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "internalType": "address",
236
+ "name": "spender",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "name": "allowance",
241
+ "outputs": [
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "",
245
+ "type": "uint256"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "address",
255
+ "name": "spender",
256
+ "type": "address"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "amount",
261
+ "type": "uint256"
262
+ }
263
+ ],
264
+ "name": "approve",
265
+ "outputs": [
266
+ {
267
+ "internalType": "bool",
268
+ "name": "",
269
+ "type": "bool"
270
+ }
271
+ ],
272
+ "stateMutability": "nonpayable",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [
277
+ {
278
+ "internalType": "address",
279
+ "name": "account",
280
+ "type": "address"
281
+ }
282
+ ],
283
+ "name": "balanceOf",
284
+ "outputs": [
285
+ {
286
+ "internalType": "uint256",
287
+ "name": "",
288
+ "type": "uint256"
289
+ }
290
+ ],
291
+ "stateMutability": "view",
292
+ "type": "function"
293
+ },
294
+ {
295
+ "inputs": [],
296
+ "name": "decimals",
297
+ "outputs": [
298
+ {
299
+ "internalType": "uint8",
300
+ "name": "",
301
+ "type": "uint8"
302
+ }
303
+ ],
304
+ "stateMutability": "pure",
305
+ "type": "function"
306
+ },
307
+ {
308
+ "inputs": [
309
+ {
310
+ "internalType": "address[]",
311
+ "name": "notbot",
312
+ "type": "address[]"
313
+ }
314
+ ],
315
+ "name": "delBots",
316
+ "outputs": [],
317
+ "stateMutability": "nonpayable",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "internalType": "address",
324
+ "name": "a",
325
+ "type": "address"
326
+ }
327
+ ],
328
+ "name": "isBot",
329
+ "outputs": [
330
+ {
331
+ "internalType": "bool",
332
+ "name": "",
333
+ "type": "bool"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [],
341
+ "name": "manualSwap",
342
+ "outputs": [],
343
+ "stateMutability": "nonpayable",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "inputs": [],
348
+ "name": "name",
349
+ "outputs": [
350
+ {
351
+ "internalType": "string",
352
+ "name": "",
353
+ "type": "string"
354
+ }
355
+ ],
356
+ "stateMutability": "pure",
357
+ "type": "function"
358
+ },
359
+ {
360
+ "inputs": [],
361
+ "name": "openTrading",
362
+ "outputs": [],
363
+ "stateMutability": "nonpayable",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "owner",
369
+ "outputs": [
370
+ {
371
+ "internalType": "address",
372
+ "name": "",
373
+ "type": "address"
374
+ }
375
+ ],
376
+ "stateMutability": "view",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "_newFee",
384
+ "type": "uint256"
385
+ }
386
+ ],
387
+ "name": "reduceFee",
388
+ "outputs": [],
389
+ "stateMutability": "nonpayable",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [],
394
+ "name": "removeLimits",
395
+ "outputs": [],
396
+ "stateMutability": "nonpayable",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [],
401
+ "name": "removeTransferTax",
402
+ "outputs": [],
403
+ "stateMutability": "nonpayable",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [],
408
+ "name": "renounceOwnership",
409
+ "outputs": [],
410
+ "stateMutability": "nonpayable",
411
+ "type": "function"
412
+ },
413
+ {
414
+ "inputs": [],
415
+ "name": "symbol",
416
+ "outputs": [
417
+ {
418
+ "internalType": "string",
419
+ "name": "",
420
+ "type": "string"
421
+ }
422
+ ],
423
+ "stateMutability": "pure",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [],
428
+ "name": "totalSupply",
429
+ "outputs": [
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "stateMutability": "pure",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [
441
+ {
442
+ "internalType": "address",
443
+ "name": "recipient",
444
+ "type": "address"
445
+ },
446
+ {
447
+ "internalType": "uint256",
448
+ "name": "amount",
449
+ "type": "uint256"
450
+ }
451
+ ],
452
+ "name": "transfer",
453
+ "outputs": [
454
+ {
455
+ "internalType": "bool",
456
+ "name": "",
457
+ "type": "bool"
458
+ }
459
+ ],
460
+ "stateMutability": "nonpayable",
461
+ "type": "function"
462
+ },
463
+ {
464
+ "inputs": [
465
+ {
466
+ "internalType": "address",
467
+ "name": "sender",
468
+ "type": "address"
469
+ },
470
+ {
471
+ "internalType": "address",
472
+ "name": "recipient",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "amount",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "name": "transferFrom",
482
+ "outputs": [
483
+ {
484
+ "internalType": "bool",
485
+ "name": "",
486
+ "type": "bool"
487
+ }
488
+ ],
489
+ "stateMutability": "nonpayable",
490
+ "type": "function"
491
+ },
492
+ {
493
+ "stateMutability": "payable",
494
+ "type": "receive"
495
+ }
496
+ ] as const satisfies Abi;
497
+
498
+ /**
499
+ * Type-safe ABI for JustAChillGuy_json
500
+ */
501
+ export type JustAChillGuy_jsonAbi = typeof JustAChillGuy_jsonAbi;
502
+
503
+ /**
504
+ * Contract instance type for JustAChillGuy_json
505
+ */
506
+ // Use any for contract type to avoid complex viem type issues
507
+ // The runtime behavior is type-safe through viem's ABI typing
508
+ export type JustAChillGuy_jsonContract = any;
509
+
510
+ /**
511
+ * JustAChillGuy_json Contract Class
512
+ *
513
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
514
+ *
515
+ * @example
516
+ * ```typescript
517
+ * import { createPublicClient, createWalletClient, http } from 'viem';
518
+ * import { mainnet } from 'viem/chains';
519
+ * import { JustAChillGuy_json } from 'JustAChillGuy_json';
520
+ *
521
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
522
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
523
+ *
524
+ * const contract = new JustAChillGuy_json('0x...', { publicClient, walletClient });
525
+ *
526
+ * // Read functions
527
+ * const result = await contract.balanceOf('0x...');
528
+ *
529
+ * // Write functions
530
+ * const hash = await contract.transfer('0x...', 1000n);
531
+ *
532
+ * // Simulate transactions (dry-run)
533
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
534
+ * console.log('Gas estimate:', simulation.request.gas);
535
+ *
536
+ * // Watch events
537
+ * const unwatch = contract.watch.Transfer((event) => {
538
+ * console.log('Transfer event:', event);
539
+ * });
540
+ * ```
541
+ */
542
+ export class JustAChillGuy_json {
543
+ private contract: JustAChillGuy_jsonContract;
544
+ private contractAddress: Address;
545
+ private publicClient: PublicClient;
546
+
547
+ constructor(
548
+ address: Address,
549
+ clients: {
550
+ publicClient: PublicClient;
551
+ walletClient?: WalletClient;
552
+ }
553
+ ) {
554
+ this.contractAddress = address;
555
+ this.publicClient = clients.publicClient;
556
+ this.contract = getContract({
557
+ address,
558
+ abi: JustAChillGuy_jsonAbi,
559
+ client: {
560
+ public: clients.publicClient,
561
+ wallet: clients.walletClient,
562
+ },
563
+ });
564
+ }
565
+
566
+ /**
567
+ * Get the contract address
568
+ */
569
+ get address(): Address {
570
+ return this.contractAddress;
571
+ }
572
+
573
+ /**
574
+ * Get the underlying viem contract instance
575
+ */
576
+ getContract(): JustAChillGuy_jsonContract {
577
+ return this.contract;
578
+ }
579
+
580
+ /**
581
+ * _buyCount
582
+ * view
583
+ */
584
+ async _buyCount(): Promise<bigint> {
585
+ return this.contract.read._buyCount() as Promise<bigint>;
586
+ }
587
+
588
+ /**
589
+ * _finalBuyTax
590
+ * view
591
+ */
592
+ async _finalBuyTax(): Promise<bigint> {
593
+ return this.contract.read._finalBuyTax() as Promise<bigint>;
594
+ }
595
+
596
+ /**
597
+ * _finalSellTax
598
+ * view
599
+ */
600
+ async _finalSellTax(): Promise<bigint> {
601
+ return this.contract.read._finalSellTax() as Promise<bigint>;
602
+ }
603
+
604
+ /**
605
+ * _maxTaxSwap
606
+ * view
607
+ */
608
+ async _maxTaxSwap(): Promise<bigint> {
609
+ return this.contract.read._maxTaxSwap() as Promise<bigint>;
610
+ }
611
+
612
+ /**
613
+ * _maxTxAmount
614
+ * view
615
+ */
616
+ async _maxTxAmount(): Promise<bigint> {
617
+ return this.contract.read._maxTxAmount() as Promise<bigint>;
618
+ }
619
+
620
+ /**
621
+ * _maxWalletSize
622
+ * view
623
+ */
624
+ async _maxWalletSize(): Promise<bigint> {
625
+ return this.contract.read._maxWalletSize() as Promise<bigint>;
626
+ }
627
+
628
+ /**
629
+ * _taxSwapThreshold
630
+ * view
631
+ */
632
+ async _taxSwapThreshold(): Promise<bigint> {
633
+ return this.contract.read._taxSwapThreshold() as Promise<bigint>;
634
+ }
635
+
636
+ /**
637
+ * _transferTax
638
+ * view
639
+ */
640
+ async _transferTax(): Promise<bigint> {
641
+ return this.contract.read._transferTax() as Promise<bigint>;
642
+ }
643
+
644
+ /**
645
+ * allowance
646
+ * view
647
+ */
648
+ async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
649
+ return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
650
+ }
651
+
652
+ /**
653
+ * balanceOf
654
+ * view
655
+ */
656
+ async balanceOf(account: `0x${string}`): Promise<bigint> {
657
+ return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
658
+ }
659
+
660
+ /**
661
+ * decimals
662
+ * pure
663
+ */
664
+ async decimals(): Promise<bigint> {
665
+ return this.contract.read.decimals() as Promise<bigint>;
666
+ }
667
+
668
+ /**
669
+ * isBot
670
+ * view
671
+ */
672
+ async isBot(a: `0x${string}`): Promise<boolean> {
673
+ return this.contract.read.isBot([a] as const) as Promise<boolean>;
674
+ }
675
+
676
+ /**
677
+ * name
678
+ * pure
679
+ */
680
+ async name(): Promise<string> {
681
+ return this.contract.read.name() as Promise<string>;
682
+ }
683
+
684
+ /**
685
+ * owner
686
+ * view
687
+ */
688
+ async owner(): Promise<`0x${string}`> {
689
+ return this.contract.read.owner() as Promise<`0x${string}`>;
690
+ }
691
+
692
+ /**
693
+ * symbol
694
+ * pure
695
+ */
696
+ async symbol(): Promise<string> {
697
+ return this.contract.read.symbol() as Promise<string>;
698
+ }
699
+
700
+ /**
701
+ * totalSupply
702
+ * pure
703
+ */
704
+ async totalSupply(): Promise<bigint> {
705
+ return this.contract.read.totalSupply() as Promise<bigint>;
706
+ }
707
+
708
+ /**
709
+ * addBots
710
+ * nonpayable
711
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
712
+ */
713
+ async addBots(bots_: `0x${string}`[], options?: {
714
+ accessList?: import('viem').AccessList;
715
+ authorizationList?: import('viem').AuthorizationList;
716
+ chain?: import('viem').Chain | null;
717
+ dataSuffix?: `0x${string}`;
718
+ gas?: bigint;
719
+ gasPrice?: bigint;
720
+ maxFeePerGas?: bigint;
721
+ maxPriorityFeePerGas?: bigint;
722
+ nonce?: number;
723
+ value?: bigint;
724
+ }): Promise<`0x${string}`> {
725
+ if (!this.contract.write) {
726
+ throw new Error('Wallet client is required for write operations');
727
+ }
728
+ return this.contract.write.addBots([bots_] as const, options) as Promise<`0x${string}`>;
729
+ }
730
+
731
+ /**
732
+ * approve
733
+ * nonpayable
734
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
735
+ */
736
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
737
+ accessList?: import('viem').AccessList;
738
+ authorizationList?: import('viem').AuthorizationList;
739
+ chain?: import('viem').Chain | null;
740
+ dataSuffix?: `0x${string}`;
741
+ gas?: bigint;
742
+ gasPrice?: bigint;
743
+ maxFeePerGas?: bigint;
744
+ maxPriorityFeePerGas?: bigint;
745
+ nonce?: number;
746
+ value?: bigint;
747
+ }): Promise<`0x${string}`> {
748
+ if (!this.contract.write) {
749
+ throw new Error('Wallet client is required for write operations');
750
+ }
751
+ return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
752
+ }
753
+
754
+ /**
755
+ * delBots
756
+ * nonpayable
757
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
758
+ */
759
+ async delBots(notbot: `0x${string}`[], options?: {
760
+ accessList?: import('viem').AccessList;
761
+ authorizationList?: import('viem').AuthorizationList;
762
+ chain?: import('viem').Chain | null;
763
+ dataSuffix?: `0x${string}`;
764
+ gas?: bigint;
765
+ gasPrice?: bigint;
766
+ maxFeePerGas?: bigint;
767
+ maxPriorityFeePerGas?: bigint;
768
+ nonce?: number;
769
+ value?: bigint;
770
+ }): Promise<`0x${string}`> {
771
+ if (!this.contract.write) {
772
+ throw new Error('Wallet client is required for write operations');
773
+ }
774
+ return this.contract.write.delBots([notbot] as const, options) as Promise<`0x${string}`>;
775
+ }
776
+
777
+ /**
778
+ * manualSwap
779
+ * nonpayable
780
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
781
+ */
782
+ async manualSwap(options?: {
783
+ accessList?: import('viem').AccessList;
784
+ authorizationList?: import('viem').AuthorizationList;
785
+ chain?: import('viem').Chain | null;
786
+ dataSuffix?: `0x${string}`;
787
+ gas?: bigint;
788
+ gasPrice?: bigint;
789
+ maxFeePerGas?: bigint;
790
+ maxPriorityFeePerGas?: bigint;
791
+ nonce?: number;
792
+ value?: bigint;
793
+ }): Promise<`0x${string}`> {
794
+ if (!this.contract.write) {
795
+ throw new Error('Wallet client is required for write operations');
796
+ }
797
+ return this.contract.write.manualSwap(options) as Promise<`0x${string}`>;
798
+ }
799
+
800
+ /**
801
+ * openTrading
802
+ * nonpayable
803
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
804
+ */
805
+ async openTrading(options?: {
806
+ accessList?: import('viem').AccessList;
807
+ authorizationList?: import('viem').AuthorizationList;
808
+ chain?: import('viem').Chain | null;
809
+ dataSuffix?: `0x${string}`;
810
+ gas?: bigint;
811
+ gasPrice?: bigint;
812
+ maxFeePerGas?: bigint;
813
+ maxPriorityFeePerGas?: bigint;
814
+ nonce?: number;
815
+ value?: bigint;
816
+ }): Promise<`0x${string}`> {
817
+ if (!this.contract.write) {
818
+ throw new Error('Wallet client is required for write operations');
819
+ }
820
+ return this.contract.write.openTrading(options) as Promise<`0x${string}`>;
821
+ }
822
+
823
+ /**
824
+ * reduceFee
825
+ * nonpayable
826
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
827
+ */
828
+ async reduceFee(_newFee: bigint, options?: {
829
+ accessList?: import('viem').AccessList;
830
+ authorizationList?: import('viem').AuthorizationList;
831
+ chain?: import('viem').Chain | null;
832
+ dataSuffix?: `0x${string}`;
833
+ gas?: bigint;
834
+ gasPrice?: bigint;
835
+ maxFeePerGas?: bigint;
836
+ maxPriorityFeePerGas?: bigint;
837
+ nonce?: number;
838
+ value?: bigint;
839
+ }): Promise<`0x${string}`> {
840
+ if (!this.contract.write) {
841
+ throw new Error('Wallet client is required for write operations');
842
+ }
843
+ return this.contract.write.reduceFee([_newFee] as const, options) as Promise<`0x${string}`>;
844
+ }
845
+
846
+ /**
847
+ * removeLimits
848
+ * nonpayable
849
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
850
+ */
851
+ async removeLimits(options?: {
852
+ accessList?: import('viem').AccessList;
853
+ authorizationList?: import('viem').AuthorizationList;
854
+ chain?: import('viem').Chain | null;
855
+ dataSuffix?: `0x${string}`;
856
+ gas?: bigint;
857
+ gasPrice?: bigint;
858
+ maxFeePerGas?: bigint;
859
+ maxPriorityFeePerGas?: bigint;
860
+ nonce?: number;
861
+ value?: bigint;
862
+ }): Promise<`0x${string}`> {
863
+ if (!this.contract.write) {
864
+ throw new Error('Wallet client is required for write operations');
865
+ }
866
+ return this.contract.write.removeLimits(options) as Promise<`0x${string}`>;
867
+ }
868
+
869
+ /**
870
+ * removeTransferTax
871
+ * nonpayable
872
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
873
+ */
874
+ async removeTransferTax(options?: {
875
+ accessList?: import('viem').AccessList;
876
+ authorizationList?: import('viem').AuthorizationList;
877
+ chain?: import('viem').Chain | null;
878
+ dataSuffix?: `0x${string}`;
879
+ gas?: bigint;
880
+ gasPrice?: bigint;
881
+ maxFeePerGas?: bigint;
882
+ maxPriorityFeePerGas?: bigint;
883
+ nonce?: number;
884
+ value?: bigint;
885
+ }): Promise<`0x${string}`> {
886
+ if (!this.contract.write) {
887
+ throw new Error('Wallet client is required for write operations');
888
+ }
889
+ return this.contract.write.removeTransferTax(options) as Promise<`0x${string}`>;
890
+ }
891
+
892
+ /**
893
+ * renounceOwnership
894
+ * nonpayable
895
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
896
+ */
897
+ async renounceOwnership(options?: {
898
+ accessList?: import('viem').AccessList;
899
+ authorizationList?: import('viem').AuthorizationList;
900
+ chain?: import('viem').Chain | null;
901
+ dataSuffix?: `0x${string}`;
902
+ gas?: bigint;
903
+ gasPrice?: bigint;
904
+ maxFeePerGas?: bigint;
905
+ maxPriorityFeePerGas?: bigint;
906
+ nonce?: number;
907
+ value?: bigint;
908
+ }): Promise<`0x${string}`> {
909
+ if (!this.contract.write) {
910
+ throw new Error('Wallet client is required for write operations');
911
+ }
912
+ return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
913
+ }
914
+
915
+ /**
916
+ * transfer
917
+ * nonpayable
918
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
919
+ */
920
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
921
+ accessList?: import('viem').AccessList;
922
+ authorizationList?: import('viem').AuthorizationList;
923
+ chain?: import('viem').Chain | null;
924
+ dataSuffix?: `0x${string}`;
925
+ gas?: bigint;
926
+ gasPrice?: bigint;
927
+ maxFeePerGas?: bigint;
928
+ maxPriorityFeePerGas?: bigint;
929
+ nonce?: number;
930
+ value?: bigint;
931
+ }): Promise<`0x${string}`> {
932
+ if (!this.contract.write) {
933
+ throw new Error('Wallet client is required for write operations');
934
+ }
935
+ return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
936
+ }
937
+
938
+ /**
939
+ * transferFrom
940
+ * nonpayable
941
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
942
+ */
943
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
944
+ accessList?: import('viem').AccessList;
945
+ authorizationList?: import('viem').AuthorizationList;
946
+ chain?: import('viem').Chain | null;
947
+ dataSuffix?: `0x${string}`;
948
+ gas?: bigint;
949
+ gasPrice?: bigint;
950
+ maxFeePerGas?: bigint;
951
+ maxPriorityFeePerGas?: bigint;
952
+ nonce?: number;
953
+ value?: bigint;
954
+ }): Promise<`0x${string}`> {
955
+ if (!this.contract.write) {
956
+ throw new Error('Wallet client is required for write operations');
957
+ }
958
+ return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
959
+ }
960
+
961
+
962
+
963
+ /**
964
+ * Simulate contract write operations (dry-run without sending transaction)
965
+ *
966
+ * @example
967
+ * const result = await contract.simulate.transfer('0x...', 1000n);
968
+ * console.log('Gas estimate:', result.request.gas);
969
+ * console.log('Would succeed:', result.result);
970
+ */
971
+ get simulate() {
972
+ const contract = this.contract;
973
+ if (!contract.simulate) {
974
+ throw new Error('Public client is required for simulation');
975
+ }
976
+ return {
977
+ /**
978
+ * Simulate addBots
979
+ * Returns gas estimate and result without sending transaction
980
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
981
+ */
982
+ async addBots(bots_: `0x${string}`[], options?: {
983
+ accessList?: import('viem').AccessList;
984
+ authorizationList?: import('viem').AuthorizationList;
985
+ chain?: import('viem').Chain | null;
986
+ dataSuffix?: `0x${string}`;
987
+ gas?: bigint;
988
+ gasPrice?: bigint;
989
+ maxFeePerGas?: bigint;
990
+ maxPriorityFeePerGas?: bigint;
991
+ nonce?: number;
992
+ value?: bigint;
993
+ }): Promise<void> {
994
+ return contract.simulate.addBots([bots_] as const, options) as Promise<void>;
995
+ },
996
+ /**
997
+ * Simulate approve
998
+ * Returns gas estimate and result without sending transaction
999
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1000
+ */
1001
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
1002
+ accessList?: import('viem').AccessList;
1003
+ authorizationList?: import('viem').AuthorizationList;
1004
+ chain?: import('viem').Chain | null;
1005
+ dataSuffix?: `0x${string}`;
1006
+ gas?: bigint;
1007
+ gasPrice?: bigint;
1008
+ maxFeePerGas?: bigint;
1009
+ maxPriorityFeePerGas?: bigint;
1010
+ nonce?: number;
1011
+ value?: bigint;
1012
+ }): Promise<boolean> {
1013
+ return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
1014
+ },
1015
+ /**
1016
+ * Simulate delBots
1017
+ * Returns gas estimate and result without sending transaction
1018
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1019
+ */
1020
+ async delBots(notbot: `0x${string}`[], options?: {
1021
+ accessList?: import('viem').AccessList;
1022
+ authorizationList?: import('viem').AuthorizationList;
1023
+ chain?: import('viem').Chain | null;
1024
+ dataSuffix?: `0x${string}`;
1025
+ gas?: bigint;
1026
+ gasPrice?: bigint;
1027
+ maxFeePerGas?: bigint;
1028
+ maxPriorityFeePerGas?: bigint;
1029
+ nonce?: number;
1030
+ value?: bigint;
1031
+ }): Promise<void> {
1032
+ return contract.simulate.delBots([notbot] as const, options) as Promise<void>;
1033
+ },
1034
+ /**
1035
+ * Simulate manualSwap
1036
+ * Returns gas estimate and result without sending transaction
1037
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1038
+ */
1039
+ async manualSwap(options?: {
1040
+ accessList?: import('viem').AccessList;
1041
+ authorizationList?: import('viem').AuthorizationList;
1042
+ chain?: import('viem').Chain | null;
1043
+ dataSuffix?: `0x${string}`;
1044
+ gas?: bigint;
1045
+ gasPrice?: bigint;
1046
+ maxFeePerGas?: bigint;
1047
+ maxPriorityFeePerGas?: bigint;
1048
+ nonce?: number;
1049
+ value?: bigint;
1050
+ }): Promise<void> {
1051
+ return contract.simulate.manualSwap(options) as Promise<void>;
1052
+ },
1053
+ /**
1054
+ * Simulate openTrading
1055
+ * Returns gas estimate and result without sending transaction
1056
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1057
+ */
1058
+ async openTrading(options?: {
1059
+ accessList?: import('viem').AccessList;
1060
+ authorizationList?: import('viem').AuthorizationList;
1061
+ chain?: import('viem').Chain | null;
1062
+ dataSuffix?: `0x${string}`;
1063
+ gas?: bigint;
1064
+ gasPrice?: bigint;
1065
+ maxFeePerGas?: bigint;
1066
+ maxPriorityFeePerGas?: bigint;
1067
+ nonce?: number;
1068
+ value?: bigint;
1069
+ }): Promise<void> {
1070
+ return contract.simulate.openTrading(options) as Promise<void>;
1071
+ },
1072
+ /**
1073
+ * Simulate reduceFee
1074
+ * Returns gas estimate and result without sending transaction
1075
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1076
+ */
1077
+ async reduceFee(_newFee: bigint, options?: {
1078
+ accessList?: import('viem').AccessList;
1079
+ authorizationList?: import('viem').AuthorizationList;
1080
+ chain?: import('viem').Chain | null;
1081
+ dataSuffix?: `0x${string}`;
1082
+ gas?: bigint;
1083
+ gasPrice?: bigint;
1084
+ maxFeePerGas?: bigint;
1085
+ maxPriorityFeePerGas?: bigint;
1086
+ nonce?: number;
1087
+ value?: bigint;
1088
+ }): Promise<void> {
1089
+ return contract.simulate.reduceFee([_newFee] as const, options) as Promise<void>;
1090
+ },
1091
+ /**
1092
+ * Simulate removeLimits
1093
+ * Returns gas estimate and result without sending transaction
1094
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1095
+ */
1096
+ async removeLimits(options?: {
1097
+ accessList?: import('viem').AccessList;
1098
+ authorizationList?: import('viem').AuthorizationList;
1099
+ chain?: import('viem').Chain | null;
1100
+ dataSuffix?: `0x${string}`;
1101
+ gas?: bigint;
1102
+ gasPrice?: bigint;
1103
+ maxFeePerGas?: bigint;
1104
+ maxPriorityFeePerGas?: bigint;
1105
+ nonce?: number;
1106
+ value?: bigint;
1107
+ }): Promise<void> {
1108
+ return contract.simulate.removeLimits(options) as Promise<void>;
1109
+ },
1110
+ /**
1111
+ * Simulate removeTransferTax
1112
+ * Returns gas estimate and result without sending transaction
1113
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1114
+ */
1115
+ async removeTransferTax(options?: {
1116
+ accessList?: import('viem').AccessList;
1117
+ authorizationList?: import('viem').AuthorizationList;
1118
+ chain?: import('viem').Chain | null;
1119
+ dataSuffix?: `0x${string}`;
1120
+ gas?: bigint;
1121
+ gasPrice?: bigint;
1122
+ maxFeePerGas?: bigint;
1123
+ maxPriorityFeePerGas?: bigint;
1124
+ nonce?: number;
1125
+ value?: bigint;
1126
+ }): Promise<void> {
1127
+ return contract.simulate.removeTransferTax(options) as Promise<void>;
1128
+ },
1129
+ /**
1130
+ * Simulate renounceOwnership
1131
+ * Returns gas estimate and result without sending transaction
1132
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1133
+ */
1134
+ async renounceOwnership(options?: {
1135
+ accessList?: import('viem').AccessList;
1136
+ authorizationList?: import('viem').AuthorizationList;
1137
+ chain?: import('viem').Chain | null;
1138
+ dataSuffix?: `0x${string}`;
1139
+ gas?: bigint;
1140
+ gasPrice?: bigint;
1141
+ maxFeePerGas?: bigint;
1142
+ maxPriorityFeePerGas?: bigint;
1143
+ nonce?: number;
1144
+ value?: bigint;
1145
+ }): Promise<void> {
1146
+ return contract.simulate.renounceOwnership(options) as Promise<void>;
1147
+ },
1148
+ /**
1149
+ * Simulate transfer
1150
+ * Returns gas estimate and result without sending transaction
1151
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1152
+ */
1153
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
1154
+ accessList?: import('viem').AccessList;
1155
+ authorizationList?: import('viem').AuthorizationList;
1156
+ chain?: import('viem').Chain | null;
1157
+ dataSuffix?: `0x${string}`;
1158
+ gas?: bigint;
1159
+ gasPrice?: bigint;
1160
+ maxFeePerGas?: bigint;
1161
+ maxPriorityFeePerGas?: bigint;
1162
+ nonce?: number;
1163
+ value?: bigint;
1164
+ }): Promise<boolean> {
1165
+ return contract.simulate.transfer([recipient, amount] as const, options) as Promise<boolean>;
1166
+ },
1167
+ /**
1168
+ * Simulate transferFrom
1169
+ * Returns gas estimate and result without sending transaction
1170
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1171
+ */
1172
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1173
+ accessList?: import('viem').AccessList;
1174
+ authorizationList?: import('viem').AuthorizationList;
1175
+ chain?: import('viem').Chain | null;
1176
+ dataSuffix?: `0x${string}`;
1177
+ gas?: bigint;
1178
+ gasPrice?: bigint;
1179
+ maxFeePerGas?: bigint;
1180
+ maxPriorityFeePerGas?: bigint;
1181
+ nonce?: number;
1182
+ value?: bigint;
1183
+ }): Promise<boolean> {
1184
+ return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
1185
+ }
1186
+ };
1187
+ }
1188
+
1189
+ /**
1190
+ * Watch contract events
1191
+ *
1192
+ * @example
1193
+ * // Watch all Transfer events
1194
+ * const unwatch = contract.watch.Transfer((event) => {
1195
+ * console.log('Transfer:', event);
1196
+ * });
1197
+ *
1198
+ * // Stop watching
1199
+ * unwatch();
1200
+ */
1201
+ get watch() {
1202
+ return {
1203
+ /**
1204
+ * Watch Approval events
1205
+ * @param callback Function to call when event is emitted
1206
+ * @param filter Optional filter for indexed parameters
1207
+ * @returns Unwatch function to stop listening
1208
+ */
1209
+ Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1210
+ return this.publicClient.watchContractEvent({
1211
+ address: this.contractAddress,
1212
+ abi: JustAChillGuy_jsonAbi,
1213
+ eventName: 'Approval',
1214
+ args: filter,
1215
+ onLogs: (logs: any[]) => {
1216
+ logs.forEach((log: any) => {
1217
+ callback(log.args as any);
1218
+ });
1219
+ },
1220
+ }) as () => void;
1221
+ },
1222
+ /**
1223
+ * Watch MaxTxAmountUpdated events
1224
+ * @param callback Function to call when event is emitted
1225
+ * @param filter Optional filter for indexed parameters
1226
+ * @returns Unwatch function to stop listening
1227
+ */
1228
+ MaxTxAmountUpdated: (callback: (event: { _maxTxAmount: bigint }) => void) => {
1229
+ return this.publicClient.watchContractEvent({
1230
+ address: this.contractAddress,
1231
+ abi: JustAChillGuy_jsonAbi,
1232
+ eventName: 'MaxTxAmountUpdated',
1233
+
1234
+ onLogs: (logs: any[]) => {
1235
+ logs.forEach((log: any) => {
1236
+ callback(log.args as any);
1237
+ });
1238
+ },
1239
+ }) as () => void;
1240
+ },
1241
+ /**
1242
+ * Watch OwnershipTransferred events
1243
+ * @param callback Function to call when event is emitted
1244
+ * @param filter Optional filter for indexed parameters
1245
+ * @returns Unwatch function to stop listening
1246
+ */
1247
+ OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1248
+ return this.publicClient.watchContractEvent({
1249
+ address: this.contractAddress,
1250
+ abi: JustAChillGuy_jsonAbi,
1251
+ eventName: 'OwnershipTransferred',
1252
+ args: filter,
1253
+ onLogs: (logs: any[]) => {
1254
+ logs.forEach((log: any) => {
1255
+ callback(log.args as any);
1256
+ });
1257
+ },
1258
+ }) as () => void;
1259
+ },
1260
+ /**
1261
+ * Watch Transfer events
1262
+ * @param callback Function to call when event is emitted
1263
+ * @param filter Optional filter for indexed parameters
1264
+ * @returns Unwatch function to stop listening
1265
+ */
1266
+ Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1267
+ return this.publicClient.watchContractEvent({
1268
+ address: this.contractAddress,
1269
+ abi: JustAChillGuy_jsonAbi,
1270
+ eventName: 'Transfer',
1271
+ args: filter,
1272
+ onLogs: (logs: any[]) => {
1273
+ logs.forEach((log: any) => {
1274
+ callback(log.args as any);
1275
+ });
1276
+ },
1277
+ }) as () => void;
1278
+ },
1279
+ /**
1280
+ * Watch TransferTaxUpdated events
1281
+ * @param callback Function to call when event is emitted
1282
+ * @param filter Optional filter for indexed parameters
1283
+ * @returns Unwatch function to stop listening
1284
+ */
1285
+ TransferTaxUpdated: (callback: (event: { _tax: bigint }) => void) => {
1286
+ return this.publicClient.watchContractEvent({
1287
+ address: this.contractAddress,
1288
+ abi: JustAChillGuy_jsonAbi,
1289
+ eventName: 'TransferTaxUpdated',
1290
+
1291
+ onLogs: (logs: any[]) => {
1292
+ logs.forEach((log: any) => {
1293
+ callback(log.args as any);
1294
+ });
1295
+ },
1296
+ }) as () => void;
1297
+ }
1298
+ };
1299
+ }
1300
+ }