@gitmyabi/xai 1.0.1 → 1.0.2

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.
@@ -37,38 +37,6 @@ export const XAI_jsonAbi = [
37
37
  "name": "Approval",
38
38
  "type": "event"
39
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
40
  {
73
41
  "anonymous": false,
74
42
  "inputs": [
@@ -94,64 +62,6 @@ export const XAI_jsonAbi = [
94
62
  "name": "Transfer",
95
63
  "type": "event"
96
64
  },
97
- {
98
- "inputs": [
99
- {
100
- "internalType": "address",
101
- "name": "",
102
- "type": "address"
103
- }
104
- ],
105
- "name": "_buyMap",
106
- "outputs": [
107
- {
108
- "internalType": "uint256",
109
- "name": "",
110
- "type": "uint256"
111
- }
112
- ],
113
- "stateMutability": "view",
114
- "type": "function"
115
- },
116
- {
117
- "inputs": [],
118
- "name": "_maxTxAmount",
119
- "outputs": [
120
- {
121
- "internalType": "uint256",
122
- "name": "",
123
- "type": "uint256"
124
- }
125
- ],
126
- "stateMutability": "view",
127
- "type": "function"
128
- },
129
- {
130
- "inputs": [],
131
- "name": "_maxWalletSize",
132
- "outputs": [
133
- {
134
- "internalType": "uint256",
135
- "name": "",
136
- "type": "uint256"
137
- }
138
- ],
139
- "stateMutability": "view",
140
- "type": "function"
141
- },
142
- {
143
- "inputs": [],
144
- "name": "_swapTokensAtAmount",
145
- "outputs": [
146
- {
147
- "internalType": "uint256",
148
- "name": "",
149
- "type": "uint256"
150
- }
151
- ],
152
- "stateMutability": "view",
153
- "type": "function"
154
- },
155
65
  {
156
66
  "inputs": [
157
67
  {
@@ -222,12 +132,12 @@ export const XAI_jsonAbi = [
222
132
  {
223
133
  "inputs": [
224
134
  {
225
- "internalType": "address[]",
226
- "name": "bots_",
227
- "type": "address[]"
135
+ "internalType": "uint256",
136
+ "name": "amount",
137
+ "type": "uint256"
228
138
  }
229
139
  ],
230
- "name": "blockBots",
140
+ "name": "burn",
231
141
  "outputs": [],
232
142
  "stateMutability": "nonpayable",
233
143
  "type": "function"
@@ -236,19 +146,18 @@ export const XAI_jsonAbi = [
236
146
  "inputs": [
237
147
  {
238
148
  "internalType": "address",
239
- "name": "",
149
+ "name": "account",
240
150
  "type": "address"
241
- }
242
- ],
243
- "name": "bots",
244
- "outputs": [
151
+ },
245
152
  {
246
- "internalType": "bool",
247
- "name": "",
248
- "type": "bool"
153
+ "internalType": "uint256",
154
+ "name": "amount",
155
+ "type": "uint256"
249
156
  }
250
157
  ],
251
- "stateMutability": "view",
158
+ "name": "burnFrom",
159
+ "outputs": [],
160
+ "stateMutability": "nonpayable",
252
161
  "type": "function"
253
162
  },
254
163
  {
@@ -261,157 +170,60 @@ export const XAI_jsonAbi = [
261
170
  "type": "uint8"
262
171
  }
263
172
  ],
264
- "stateMutability": "pure",
173
+ "stateMutability": "view",
265
174
  "type": "function"
266
175
  },
267
176
  {
268
177
  "inputs": [
269
- {
270
- "internalType": "address[]",
271
- "name": "accounts",
272
- "type": "address[]"
273
- },
274
- {
275
- "internalType": "bool",
276
- "name": "excluded",
277
- "type": "bool"
278
- }
279
- ],
280
- "name": "excludeMultipleAccountsFromFees",
281
- "outputs": [],
282
- "stateMutability": "nonpayable",
283
- "type": "function"
284
- },
285
- {
286
- "inputs": [],
287
- "name": "manualsend",
288
- "outputs": [],
289
- "stateMutability": "nonpayable",
290
- "type": "function"
291
- },
292
- {
293
- "inputs": [],
294
- "name": "manualswap",
295
- "outputs": [],
296
- "stateMutability": "nonpayable",
297
- "type": "function"
298
- },
299
- {
300
- "inputs": [],
301
- "name": "name",
302
- "outputs": [
303
- {
304
- "internalType": "string",
305
- "name": "",
306
- "type": "string"
307
- }
308
- ],
309
- "stateMutability": "pure",
310
- "type": "function"
311
- },
312
- {
313
- "inputs": [],
314
- "name": "owner",
315
- "outputs": [
316
178
  {
317
179
  "internalType": "address",
318
- "name": "",
180
+ "name": "spender",
319
181
  "type": "address"
320
- }
321
- ],
322
- "stateMutability": "view",
323
- "type": "function"
324
- },
325
- {
326
- "inputs": [],
327
- "name": "renounceOwnership",
328
- "outputs": [],
329
- "stateMutability": "nonpayable",
330
- "type": "function"
331
- },
332
- {
333
- "inputs": [
334
- {
335
- "internalType": "uint256",
336
- "name": "redisFeeOnBuy",
337
- "type": "uint256"
338
- },
339
- {
340
- "internalType": "uint256",
341
- "name": "redisFeeOnSell",
342
- "type": "uint256"
343
- },
344
- {
345
- "internalType": "uint256",
346
- "name": "taxFeeOnBuy",
347
- "type": "uint256"
348
182
  },
349
183
  {
350
184
  "internalType": "uint256",
351
- "name": "taxFeeOnSell",
185
+ "name": "subtractedValue",
352
186
  "type": "uint256"
353
187
  }
354
188
  ],
355
- "name": "setFee",
356
- "outputs": [],
357
- "stateMutability": "nonpayable",
358
- "type": "function"
359
- },
360
- {
361
- "inputs": [
189
+ "name": "decreaseAllowance",
190
+ "outputs": [
362
191
  {
363
- "internalType": "uint256",
364
- "name": "maxTxAmount",
365
- "type": "uint256"
192
+ "internalType": "bool",
193
+ "name": "",
194
+ "type": "bool"
366
195
  }
367
196
  ],
368
- "name": "setMaxTxnAmount",
369
- "outputs": [],
370
197
  "stateMutability": "nonpayable",
371
198
  "type": "function"
372
199
  },
373
200
  {
374
201
  "inputs": [
375
202
  {
376
- "internalType": "uint256",
377
- "name": "maxWalletSize",
378
- "type": "uint256"
379
- }
380
- ],
381
- "name": "setMaxWalletSize",
382
- "outputs": [],
383
- "stateMutability": "nonpayable",
384
- "type": "function"
385
- },
386
- {
387
- "inputs": [
203
+ "internalType": "address",
204
+ "name": "spender",
205
+ "type": "address"
206
+ },
388
207
  {
389
208
  "internalType": "uint256",
390
- "name": "swapTokensAtAmount",
209
+ "name": "addedValue",
391
210
  "type": "uint256"
392
211
  }
393
212
  ],
394
- "name": "setMinSwapTokensThreshold",
395
- "outputs": [],
396
- "stateMutability": "nonpayable",
397
- "type": "function"
398
- },
399
- {
400
- "inputs": [
213
+ "name": "increaseAllowance",
214
+ "outputs": [
401
215
  {
402
216
  "internalType": "bool",
403
- "name": "_tradingOpen",
217
+ "name": "",
404
218
  "type": "bool"
405
219
  }
406
220
  ],
407
- "name": "setTrading",
408
- "outputs": [],
409
221
  "stateMutability": "nonpayable",
410
222
  "type": "function"
411
223
  },
412
224
  {
413
225
  "inputs": [],
414
- "name": "symbol",
226
+ "name": "name",
415
227
  "outputs": [
416
228
  {
417
229
  "internalType": "string",
@@ -419,20 +231,20 @@ export const XAI_jsonAbi = [
419
231
  "type": "string"
420
232
  }
421
233
  ],
422
- "stateMutability": "pure",
234
+ "stateMutability": "view",
423
235
  "type": "function"
424
236
  },
425
237
  {
426
- "inputs": [
238
+ "inputs": [],
239
+ "name": "symbol",
240
+ "outputs": [
427
241
  {
428
- "internalType": "bool",
429
- "name": "_swapEnabled",
430
- "type": "bool"
242
+ "internalType": "string",
243
+ "name": "",
244
+ "type": "string"
431
245
  }
432
246
  ],
433
- "name": "toggleSwap",
434
- "outputs": [],
435
- "stateMutability": "nonpayable",
247
+ "stateMutability": "view",
436
248
  "type": "function"
437
249
  },
438
250
  {
@@ -445,7 +257,7 @@ export const XAI_jsonAbi = [
445
257
  "type": "uint256"
446
258
  }
447
259
  ],
448
- "stateMutability": "pure",
260
+ "stateMutability": "view",
449
261
  "type": "function"
450
262
  },
451
263
  {
@@ -500,62 +312,6 @@ export const XAI_jsonAbi = [
500
312
  ],
501
313
  "stateMutability": "nonpayable",
502
314
  "type": "function"
503
- },
504
- {
505
- "inputs": [
506
- {
507
- "internalType": "address",
508
- "name": "newOwner",
509
- "type": "address"
510
- }
511
- ],
512
- "name": "transferOwnership",
513
- "outputs": [],
514
- "stateMutability": "nonpayable",
515
- "type": "function"
516
- },
517
- {
518
- "inputs": [
519
- {
520
- "internalType": "address",
521
- "name": "notbot",
522
- "type": "address"
523
- }
524
- ],
525
- "name": "unblockBot",
526
- "outputs": [],
527
- "stateMutability": "nonpayable",
528
- "type": "function"
529
- },
530
- {
531
- "inputs": [],
532
- "name": "uniswapV2Pair",
533
- "outputs": [
534
- {
535
- "internalType": "address",
536
- "name": "",
537
- "type": "address"
538
- }
539
- ],
540
- "stateMutability": "view",
541
- "type": "function"
542
- },
543
- {
544
- "inputs": [],
545
- "name": "uniswapV2Router",
546
- "outputs": [
547
- {
548
- "internalType": "contract IUniswapV2Router02",
549
- "name": "",
550
- "type": "address"
551
- }
552
- ],
553
- "stateMutability": "view",
554
- "type": "function"
555
- },
556
- {
557
- "stateMutability": "payable",
558
- "type": "receive"
559
315
  }
560
316
  ] as const satisfies Abi;
561
317
 
@@ -641,38 +397,6 @@ export class XAI_json {
641
397
  return this.contract;
642
398
  }
643
399
 
644
- /**
645
- * _buyMap
646
- * view
647
- */
648
- async _buyMap(arg0: `0x${string}`): Promise<bigint> {
649
- return this.contract.read._buyMap([arg0] as const) as Promise<bigint>;
650
- }
651
-
652
- /**
653
- * _maxTxAmount
654
- * view
655
- */
656
- async _maxTxAmount(): Promise<bigint> {
657
- return this.contract.read._maxTxAmount() as Promise<bigint>;
658
- }
659
-
660
- /**
661
- * _maxWalletSize
662
- * view
663
- */
664
- async _maxWalletSize(): Promise<bigint> {
665
- return this.contract.read._maxWalletSize() as Promise<bigint>;
666
- }
667
-
668
- /**
669
- * _swapTokensAtAmount
670
- * view
671
- */
672
- async _swapTokensAtAmount(): Promise<bigint> {
673
- return this.contract.read._swapTokensAtAmount() as Promise<bigint>;
674
- }
675
-
676
400
  /**
677
401
  * allowance
678
402
  * view
@@ -689,283 +413,44 @@ export class XAI_json {
689
413
  return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
690
414
  }
691
415
 
692
- /**
693
- * bots
694
- * view
695
- */
696
- async bots(arg0: `0x${string}`): Promise<boolean> {
697
- return this.contract.read.bots([arg0] as const) as Promise<boolean>;
698
- }
699
-
700
416
  /**
701
417
  * decimals
702
- * pure
703
- */
704
- async decimals(): Promise<bigint> {
705
- return this.contract.read.decimals() as Promise<bigint>;
706
- }
707
-
708
- /**
709
- * name
710
- * pure
711
- */
712
- async name(): Promise<string> {
713
- return this.contract.read.name() as Promise<string>;
714
- }
715
-
716
- /**
717
- * owner
718
- * view
719
- */
720
- async owner(): Promise<`0x${string}`> {
721
- return this.contract.read.owner() as Promise<`0x${string}`>;
722
- }
723
-
724
- /**
725
- * symbol
726
- * pure
727
- */
728
- async symbol(): Promise<string> {
729
- return this.contract.read.symbol() as Promise<string>;
730
- }
731
-
732
- /**
733
- * totalSupply
734
- * pure
735
- */
736
- async totalSupply(): Promise<bigint> {
737
- return this.contract.read.totalSupply() as Promise<bigint>;
738
- }
739
-
740
- /**
741
- * uniswapV2Pair
742
- * view
743
- */
744
- async uniswapV2Pair(): Promise<`0x${string}`> {
745
- return this.contract.read.uniswapV2Pair() as Promise<`0x${string}`>;
746
- }
747
-
748
- /**
749
- * uniswapV2Router
750
418
  * view
751
419
  */
752
- async uniswapV2Router(): Promise<`0x${string}`> {
753
- return this.contract.read.uniswapV2Router() as Promise<`0x${string}`>;
754
- }
755
-
756
- /**
757
- * approve
758
- * nonpayable
759
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
760
- */
761
- async approve(spender: `0x${string}`, amount: bigint, options?: {
762
- accessList?: import('viem').AccessList;
763
- authorizationList?: import('viem').AuthorizationList;
764
- chain?: import('viem').Chain | null;
765
- dataSuffix?: `0x${string}`;
766
- gas?: bigint;
767
- gasPrice?: bigint;
768
- maxFeePerGas?: bigint;
769
- maxPriorityFeePerGas?: bigint;
770
- nonce?: number;
771
- value?: bigint;
772
- }): Promise<`0x${string}`> {
773
- if (!this.contract.write) {
774
- throw new Error('Wallet client is required for write operations');
775
- }
776
- return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
777
- }
778
-
779
- /**
780
- * blockBots
781
- * nonpayable
782
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
783
- */
784
- async blockBots(bots_: `0x${string}`[], options?: {
785
- accessList?: import('viem').AccessList;
786
- authorizationList?: import('viem').AuthorizationList;
787
- chain?: import('viem').Chain | null;
788
- dataSuffix?: `0x${string}`;
789
- gas?: bigint;
790
- gasPrice?: bigint;
791
- maxFeePerGas?: bigint;
792
- maxPriorityFeePerGas?: bigint;
793
- nonce?: number;
794
- value?: bigint;
795
- }): Promise<`0x${string}`> {
796
- if (!this.contract.write) {
797
- throw new Error('Wallet client is required for write operations');
798
- }
799
- return this.contract.write.blockBots([bots_] as const, options) as Promise<`0x${string}`>;
800
- }
801
-
802
- /**
803
- * excludeMultipleAccountsFromFees
804
- * nonpayable
805
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
806
- */
807
- async excludeMultipleAccountsFromFees(accounts: `0x${string}`[], excluded: boolean, options?: {
808
- accessList?: import('viem').AccessList;
809
- authorizationList?: import('viem').AuthorizationList;
810
- chain?: import('viem').Chain | null;
811
- dataSuffix?: `0x${string}`;
812
- gas?: bigint;
813
- gasPrice?: bigint;
814
- maxFeePerGas?: bigint;
815
- maxPriorityFeePerGas?: bigint;
816
- nonce?: number;
817
- value?: bigint;
818
- }): Promise<`0x${string}`> {
819
- if (!this.contract.write) {
820
- throw new Error('Wallet client is required for write operations');
821
- }
822
- return this.contract.write.excludeMultipleAccountsFromFees([accounts, excluded] as const, options) as Promise<`0x${string}`>;
823
- }
824
-
825
- /**
826
- * manualsend
827
- * nonpayable
828
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
829
- */
830
- async manualsend(options?: {
831
- accessList?: import('viem').AccessList;
832
- authorizationList?: import('viem').AuthorizationList;
833
- chain?: import('viem').Chain | null;
834
- dataSuffix?: `0x${string}`;
835
- gas?: bigint;
836
- gasPrice?: bigint;
837
- maxFeePerGas?: bigint;
838
- maxPriorityFeePerGas?: bigint;
839
- nonce?: number;
840
- value?: bigint;
841
- }): Promise<`0x${string}`> {
842
- if (!this.contract.write) {
843
- throw new Error('Wallet client is required for write operations');
844
- }
845
- return this.contract.write.manualsend(options) as Promise<`0x${string}`>;
846
- }
847
-
848
- /**
849
- * manualswap
850
- * nonpayable
851
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
852
- */
853
- async manualswap(options?: {
854
- accessList?: import('viem').AccessList;
855
- authorizationList?: import('viem').AuthorizationList;
856
- chain?: import('viem').Chain | null;
857
- dataSuffix?: `0x${string}`;
858
- gas?: bigint;
859
- gasPrice?: bigint;
860
- maxFeePerGas?: bigint;
861
- maxPriorityFeePerGas?: bigint;
862
- nonce?: number;
863
- value?: bigint;
864
- }): Promise<`0x${string}`> {
865
- if (!this.contract.write) {
866
- throw new Error('Wallet client is required for write operations');
867
- }
868
- return this.contract.write.manualswap(options) as Promise<`0x${string}`>;
869
- }
870
-
871
- /**
872
- * renounceOwnership
873
- * nonpayable
874
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
875
- */
876
- async renounceOwnership(options?: {
877
- accessList?: import('viem').AccessList;
878
- authorizationList?: import('viem').AuthorizationList;
879
- chain?: import('viem').Chain | null;
880
- dataSuffix?: `0x${string}`;
881
- gas?: bigint;
882
- gasPrice?: bigint;
883
- maxFeePerGas?: bigint;
884
- maxPriorityFeePerGas?: bigint;
885
- nonce?: number;
886
- value?: bigint;
887
- }): Promise<`0x${string}`> {
888
- if (!this.contract.write) {
889
- throw new Error('Wallet client is required for write operations');
890
- }
891
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
420
+ async decimals(): Promise<bigint> {
421
+ return this.contract.read.decimals() as Promise<bigint>;
892
422
  }
893
423
 
894
424
  /**
895
- * setFee
896
- * nonpayable
897
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
425
+ * name
426
+ * view
898
427
  */
899
- async setFee(redisFeeOnBuy: bigint, redisFeeOnSell: bigint, taxFeeOnBuy: bigint, taxFeeOnSell: bigint, options?: {
900
- accessList?: import('viem').AccessList;
901
- authorizationList?: import('viem').AuthorizationList;
902
- chain?: import('viem').Chain | null;
903
- dataSuffix?: `0x${string}`;
904
- gas?: bigint;
905
- gasPrice?: bigint;
906
- maxFeePerGas?: bigint;
907
- maxPriorityFeePerGas?: bigint;
908
- nonce?: number;
909
- value?: bigint;
910
- }): Promise<`0x${string}`> {
911
- if (!this.contract.write) {
912
- throw new Error('Wallet client is required for write operations');
913
- }
914
- return this.contract.write.setFee([redisFeeOnBuy, redisFeeOnSell, taxFeeOnBuy, taxFeeOnSell] as const, options) as Promise<`0x${string}`>;
428
+ async name(): Promise<string> {
429
+ return this.contract.read.name() as Promise<string>;
915
430
  }
916
431
 
917
432
  /**
918
- * setMaxTxnAmount
919
- * nonpayable
920
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
433
+ * symbol
434
+ * view
921
435
  */
922
- async setMaxTxnAmount(maxTxAmount: bigint, options?: {
923
- accessList?: import('viem').AccessList;
924
- authorizationList?: import('viem').AuthorizationList;
925
- chain?: import('viem').Chain | null;
926
- dataSuffix?: `0x${string}`;
927
- gas?: bigint;
928
- gasPrice?: bigint;
929
- maxFeePerGas?: bigint;
930
- maxPriorityFeePerGas?: bigint;
931
- nonce?: number;
932
- value?: bigint;
933
- }): Promise<`0x${string}`> {
934
- if (!this.contract.write) {
935
- throw new Error('Wallet client is required for write operations');
936
- }
937
- return this.contract.write.setMaxTxnAmount([maxTxAmount] as const, options) as Promise<`0x${string}`>;
436
+ async symbol(): Promise<string> {
437
+ return this.contract.read.symbol() as Promise<string>;
938
438
  }
939
439
 
940
440
  /**
941
- * setMaxWalletSize
942
- * nonpayable
943
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
441
+ * totalSupply
442
+ * view
944
443
  */
945
- async setMaxWalletSize(maxWalletSize: bigint, options?: {
946
- accessList?: import('viem').AccessList;
947
- authorizationList?: import('viem').AuthorizationList;
948
- chain?: import('viem').Chain | null;
949
- dataSuffix?: `0x${string}`;
950
- gas?: bigint;
951
- gasPrice?: bigint;
952
- maxFeePerGas?: bigint;
953
- maxPriorityFeePerGas?: bigint;
954
- nonce?: number;
955
- value?: bigint;
956
- }): Promise<`0x${string}`> {
957
- if (!this.contract.write) {
958
- throw new Error('Wallet client is required for write operations');
959
- }
960
- return this.contract.write.setMaxWalletSize([maxWalletSize] as const, options) as Promise<`0x${string}`>;
444
+ async totalSupply(): Promise<bigint> {
445
+ return this.contract.read.totalSupply() as Promise<bigint>;
961
446
  }
962
447
 
963
448
  /**
964
- * setMinSwapTokensThreshold
449
+ * approve
965
450
  * nonpayable
966
451
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
967
452
  */
968
- async setMinSwapTokensThreshold(swapTokensAtAmount: bigint, options?: {
453
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
969
454
  accessList?: import('viem').AccessList;
970
455
  authorizationList?: import('viem').AuthorizationList;
971
456
  chain?: import('viem').Chain | null;
@@ -980,15 +465,15 @@ export class XAI_json {
980
465
  if (!this.contract.write) {
981
466
  throw new Error('Wallet client is required for write operations');
982
467
  }
983
- return this.contract.write.setMinSwapTokensThreshold([swapTokensAtAmount] as const, options) as Promise<`0x${string}`>;
468
+ return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
984
469
  }
985
470
 
986
471
  /**
987
- * setTrading
472
+ * burn
988
473
  * nonpayable
989
474
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
990
475
  */
991
- async setTrading(_tradingOpen: boolean, options?: {
476
+ async burn(amount: bigint, options?: {
992
477
  accessList?: import('viem').AccessList;
993
478
  authorizationList?: import('viem').AuthorizationList;
994
479
  chain?: import('viem').Chain | null;
@@ -1003,15 +488,15 @@ export class XAI_json {
1003
488
  if (!this.contract.write) {
1004
489
  throw new Error('Wallet client is required for write operations');
1005
490
  }
1006
- return this.contract.write.setTrading([_tradingOpen] as const, options) as Promise<`0x${string}`>;
491
+ return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
1007
492
  }
1008
493
 
1009
494
  /**
1010
- * toggleSwap
495
+ * burnFrom
1011
496
  * nonpayable
1012
497
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1013
498
  */
1014
- async toggleSwap(_swapEnabled: boolean, options?: {
499
+ async burnFrom(account: `0x${string}`, amount: bigint, options?: {
1015
500
  accessList?: import('viem').AccessList;
1016
501
  authorizationList?: import('viem').AuthorizationList;
1017
502
  chain?: import('viem').Chain | null;
@@ -1026,15 +511,15 @@ export class XAI_json {
1026
511
  if (!this.contract.write) {
1027
512
  throw new Error('Wallet client is required for write operations');
1028
513
  }
1029
- return this.contract.write.toggleSwap([_swapEnabled] as const, options) as Promise<`0x${string}`>;
514
+ return this.contract.write.burnFrom([account, amount] as const, options) as Promise<`0x${string}`>;
1030
515
  }
1031
516
 
1032
517
  /**
1033
- * transfer
518
+ * decreaseAllowance
1034
519
  * nonpayable
1035
520
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1036
521
  */
1037
- async transfer(recipient: `0x${string}`, amount: bigint, options?: {
522
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1038
523
  accessList?: import('viem').AccessList;
1039
524
  authorizationList?: import('viem').AuthorizationList;
1040
525
  chain?: import('viem').Chain | null;
@@ -1049,15 +534,15 @@ export class XAI_json {
1049
534
  if (!this.contract.write) {
1050
535
  throw new Error('Wallet client is required for write operations');
1051
536
  }
1052
- return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
537
+ return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
1053
538
  }
1054
539
 
1055
540
  /**
1056
- * transferFrom
541
+ * increaseAllowance
1057
542
  * nonpayable
1058
543
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1059
544
  */
1060
- async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
545
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1061
546
  accessList?: import('viem').AccessList;
1062
547
  authorizationList?: import('viem').AuthorizationList;
1063
548
  chain?: import('viem').Chain | null;
@@ -1072,15 +557,15 @@ export class XAI_json {
1072
557
  if (!this.contract.write) {
1073
558
  throw new Error('Wallet client is required for write operations');
1074
559
  }
1075
- return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
560
+ return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
1076
561
  }
1077
562
 
1078
563
  /**
1079
- * transferOwnership
564
+ * transfer
1080
565
  * nonpayable
1081
566
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1082
567
  */
1083
- async transferOwnership(newOwner: `0x${string}`, options?: {
568
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
1084
569
  accessList?: import('viem').AccessList;
1085
570
  authorizationList?: import('viem').AuthorizationList;
1086
571
  chain?: import('viem').Chain | null;
@@ -1095,15 +580,15 @@ export class XAI_json {
1095
580
  if (!this.contract.write) {
1096
581
  throw new Error('Wallet client is required for write operations');
1097
582
  }
1098
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
583
+ return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
1099
584
  }
1100
585
 
1101
586
  /**
1102
- * unblockBot
587
+ * transferFrom
1103
588
  * nonpayable
1104
589
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1105
590
  */
1106
- async unblockBot(notbot: `0x${string}`, options?: {
591
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1107
592
  accessList?: import('viem').AccessList;
1108
593
  authorizationList?: import('viem').AuthorizationList;
1109
594
  chain?: import('viem').Chain | null;
@@ -1118,7 +603,7 @@ export class XAI_json {
1118
603
  if (!this.contract.write) {
1119
604
  throw new Error('Wallet client is required for write operations');
1120
605
  }
1121
- return this.contract.write.unblockBot([notbot] as const, options) as Promise<`0x${string}`>;
606
+ return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
1122
607
  }
1123
608
 
1124
609
 
@@ -1157,144 +642,11 @@ export class XAI_json {
1157
642
  return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
1158
643
  },
1159
644
  /**
1160
- * Simulate blockBots
1161
- * Returns gas estimate and result without sending transaction
1162
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1163
- */
1164
- async blockBots(bots_: `0x${string}`[], options?: {
1165
- accessList?: import('viem').AccessList;
1166
- authorizationList?: import('viem').AuthorizationList;
1167
- chain?: import('viem').Chain | null;
1168
- dataSuffix?: `0x${string}`;
1169
- gas?: bigint;
1170
- gasPrice?: bigint;
1171
- maxFeePerGas?: bigint;
1172
- maxPriorityFeePerGas?: bigint;
1173
- nonce?: number;
1174
- value?: bigint;
1175
- }): Promise<void> {
1176
- return contract.simulate.blockBots([bots_] as const, options) as Promise<void>;
1177
- },
1178
- /**
1179
- * Simulate excludeMultipleAccountsFromFees
1180
- * Returns gas estimate and result without sending transaction
1181
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1182
- */
1183
- async excludeMultipleAccountsFromFees(accounts: `0x${string}`[], excluded: boolean, options?: {
1184
- accessList?: import('viem').AccessList;
1185
- authorizationList?: import('viem').AuthorizationList;
1186
- chain?: import('viem').Chain | null;
1187
- dataSuffix?: `0x${string}`;
1188
- gas?: bigint;
1189
- gasPrice?: bigint;
1190
- maxFeePerGas?: bigint;
1191
- maxPriorityFeePerGas?: bigint;
1192
- nonce?: number;
1193
- value?: bigint;
1194
- }): Promise<void> {
1195
- return contract.simulate.excludeMultipleAccountsFromFees([accounts, excluded] as const, options) as Promise<void>;
1196
- },
1197
- /**
1198
- * Simulate manualsend
1199
- * Returns gas estimate and result without sending transaction
1200
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1201
- */
1202
- async manualsend(options?: {
1203
- accessList?: import('viem').AccessList;
1204
- authorizationList?: import('viem').AuthorizationList;
1205
- chain?: import('viem').Chain | null;
1206
- dataSuffix?: `0x${string}`;
1207
- gas?: bigint;
1208
- gasPrice?: bigint;
1209
- maxFeePerGas?: bigint;
1210
- maxPriorityFeePerGas?: bigint;
1211
- nonce?: number;
1212
- value?: bigint;
1213
- }): Promise<void> {
1214
- return contract.simulate.manualsend(options) as Promise<void>;
1215
- },
1216
- /**
1217
- * Simulate manualswap
1218
- * Returns gas estimate and result without sending transaction
1219
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1220
- */
1221
- async manualswap(options?: {
1222
- accessList?: import('viem').AccessList;
1223
- authorizationList?: import('viem').AuthorizationList;
1224
- chain?: import('viem').Chain | null;
1225
- dataSuffix?: `0x${string}`;
1226
- gas?: bigint;
1227
- gasPrice?: bigint;
1228
- maxFeePerGas?: bigint;
1229
- maxPriorityFeePerGas?: bigint;
1230
- nonce?: number;
1231
- value?: bigint;
1232
- }): Promise<void> {
1233
- return contract.simulate.manualswap(options) as Promise<void>;
1234
- },
1235
- /**
1236
- * Simulate renounceOwnership
1237
- * Returns gas estimate and result without sending transaction
1238
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1239
- */
1240
- async renounceOwnership(options?: {
1241
- accessList?: import('viem').AccessList;
1242
- authorizationList?: import('viem').AuthorizationList;
1243
- chain?: import('viem').Chain | null;
1244
- dataSuffix?: `0x${string}`;
1245
- gas?: bigint;
1246
- gasPrice?: bigint;
1247
- maxFeePerGas?: bigint;
1248
- maxPriorityFeePerGas?: bigint;
1249
- nonce?: number;
1250
- value?: bigint;
1251
- }): Promise<void> {
1252
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1253
- },
1254
- /**
1255
- * Simulate setFee
1256
- * Returns gas estimate and result without sending transaction
1257
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1258
- */
1259
- async setFee(redisFeeOnBuy: bigint, redisFeeOnSell: bigint, taxFeeOnBuy: bigint, taxFeeOnSell: bigint, options?: {
1260
- accessList?: import('viem').AccessList;
1261
- authorizationList?: import('viem').AuthorizationList;
1262
- chain?: import('viem').Chain | null;
1263
- dataSuffix?: `0x${string}`;
1264
- gas?: bigint;
1265
- gasPrice?: bigint;
1266
- maxFeePerGas?: bigint;
1267
- maxPriorityFeePerGas?: bigint;
1268
- nonce?: number;
1269
- value?: bigint;
1270
- }): Promise<void> {
1271
- return contract.simulate.setFee([redisFeeOnBuy, redisFeeOnSell, taxFeeOnBuy, taxFeeOnSell] as const, options) as Promise<void>;
1272
- },
1273
- /**
1274
- * Simulate setMaxTxnAmount
1275
- * Returns gas estimate and result without sending transaction
1276
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1277
- */
1278
- async setMaxTxnAmount(maxTxAmount: bigint, options?: {
1279
- accessList?: import('viem').AccessList;
1280
- authorizationList?: import('viem').AuthorizationList;
1281
- chain?: import('viem').Chain | null;
1282
- dataSuffix?: `0x${string}`;
1283
- gas?: bigint;
1284
- gasPrice?: bigint;
1285
- maxFeePerGas?: bigint;
1286
- maxPriorityFeePerGas?: bigint;
1287
- nonce?: number;
1288
- value?: bigint;
1289
- }): Promise<void> {
1290
- return contract.simulate.setMaxTxnAmount([maxTxAmount] as const, options) as Promise<void>;
1291
- },
1292
- /**
1293
- * Simulate setMaxWalletSize
645
+ * Simulate burn
1294
646
  * Returns gas estimate and result without sending transaction
1295
647
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1296
648
  */
1297
- async setMaxWalletSize(maxWalletSize: bigint, options?: {
649
+ async burn(amount: bigint, options?: {
1298
650
  accessList?: import('viem').AccessList;
1299
651
  authorizationList?: import('viem').AuthorizationList;
1300
652
  chain?: import('viem').Chain | null;
@@ -1306,14 +658,14 @@ export class XAI_json {
1306
658
  nonce?: number;
1307
659
  value?: bigint;
1308
660
  }): Promise<void> {
1309
- return contract.simulate.setMaxWalletSize([maxWalletSize] as const, options) as Promise<void>;
661
+ return contract.simulate.burn([amount] as const, options) as Promise<void>;
1310
662
  },
1311
663
  /**
1312
- * Simulate setMinSwapTokensThreshold
664
+ * Simulate burnFrom
1313
665
  * Returns gas estimate and result without sending transaction
1314
666
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1315
667
  */
1316
- async setMinSwapTokensThreshold(swapTokensAtAmount: bigint, options?: {
668
+ async burnFrom(account: `0x${string}`, amount: bigint, options?: {
1317
669
  accessList?: import('viem').AccessList;
1318
670
  authorizationList?: import('viem').AuthorizationList;
1319
671
  chain?: import('viem').Chain | null;
@@ -1325,14 +677,14 @@ export class XAI_json {
1325
677
  nonce?: number;
1326
678
  value?: bigint;
1327
679
  }): Promise<void> {
1328
- return contract.simulate.setMinSwapTokensThreshold([swapTokensAtAmount] as const, options) as Promise<void>;
680
+ return contract.simulate.burnFrom([account, amount] as const, options) as Promise<void>;
1329
681
  },
1330
682
  /**
1331
- * Simulate setTrading
683
+ * Simulate decreaseAllowance
1332
684
  * Returns gas estimate and result without sending transaction
1333
685
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1334
686
  */
1335
- async setTrading(_tradingOpen: boolean, options?: {
687
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1336
688
  accessList?: import('viem').AccessList;
1337
689
  authorizationList?: import('viem').AuthorizationList;
1338
690
  chain?: import('viem').Chain | null;
@@ -1343,15 +695,15 @@ export class XAI_json {
1343
695
  maxPriorityFeePerGas?: bigint;
1344
696
  nonce?: number;
1345
697
  value?: bigint;
1346
- }): Promise<void> {
1347
- return contract.simulate.setTrading([_tradingOpen] as const, options) as Promise<void>;
698
+ }): Promise<boolean> {
699
+ return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
1348
700
  },
1349
701
  /**
1350
- * Simulate toggleSwap
702
+ * Simulate increaseAllowance
1351
703
  * Returns gas estimate and result without sending transaction
1352
704
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1353
705
  */
1354
- async toggleSwap(_swapEnabled: boolean, options?: {
706
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1355
707
  accessList?: import('viem').AccessList;
1356
708
  authorizationList?: import('viem').AuthorizationList;
1357
709
  chain?: import('viem').Chain | null;
@@ -1362,8 +714,8 @@ export class XAI_json {
1362
714
  maxPriorityFeePerGas?: bigint;
1363
715
  nonce?: number;
1364
716
  value?: bigint;
1365
- }): Promise<void> {
1366
- return contract.simulate.toggleSwap([_swapEnabled] as const, options) as Promise<void>;
717
+ }): Promise<boolean> {
718
+ return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
1367
719
  },
1368
720
  /**
1369
721
  * Simulate transfer
@@ -1402,44 +754,6 @@ export class XAI_json {
1402
754
  value?: bigint;
1403
755
  }): Promise<boolean> {
1404
756
  return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
1405
- },
1406
- /**
1407
- * Simulate transferOwnership
1408
- * Returns gas estimate and result without sending transaction
1409
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1410
- */
1411
- async transferOwnership(newOwner: `0x${string}`, options?: {
1412
- accessList?: import('viem').AccessList;
1413
- authorizationList?: import('viem').AuthorizationList;
1414
- chain?: import('viem').Chain | null;
1415
- dataSuffix?: `0x${string}`;
1416
- gas?: bigint;
1417
- gasPrice?: bigint;
1418
- maxFeePerGas?: bigint;
1419
- maxPriorityFeePerGas?: bigint;
1420
- nonce?: number;
1421
- value?: bigint;
1422
- }): Promise<void> {
1423
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1424
- },
1425
- /**
1426
- * Simulate unblockBot
1427
- * Returns gas estimate and result without sending transaction
1428
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1429
- */
1430
- async unblockBot(notbot: `0x${string}`, options?: {
1431
- accessList?: import('viem').AccessList;
1432
- authorizationList?: import('viem').AuthorizationList;
1433
- chain?: import('viem').Chain | null;
1434
- dataSuffix?: `0x${string}`;
1435
- gas?: bigint;
1436
- gasPrice?: bigint;
1437
- maxFeePerGas?: bigint;
1438
- maxPriorityFeePerGas?: bigint;
1439
- nonce?: number;
1440
- value?: bigint;
1441
- }): Promise<void> {
1442
- return contract.simulate.unblockBot([notbot] as const, options) as Promise<void>;
1443
757
  }
1444
758
  };
1445
759
  }
@@ -1477,44 +791,6 @@ export class XAI_json {
1477
791
  },
1478
792
  }) as () => void;
1479
793
  },
1480
- /**
1481
- * Watch MaxTxAmountUpdated events
1482
- * @param callback Function to call when event is emitted
1483
- * @param filter Optional filter for indexed parameters
1484
- * @returns Unwatch function to stop listening
1485
- */
1486
- MaxTxAmountUpdated: (callback: (event: { _maxTxAmount: bigint }) => void) => {
1487
- return this.publicClient.watchContractEvent({
1488
- address: this.contractAddress,
1489
- abi: XAI_jsonAbi,
1490
- eventName: 'MaxTxAmountUpdated',
1491
-
1492
- onLogs: (logs: any[]) => {
1493
- logs.forEach((log: any) => {
1494
- callback(log.args as any);
1495
- });
1496
- },
1497
- }) as () => void;
1498
- },
1499
- /**
1500
- * Watch OwnershipTransferred events
1501
- * @param callback Function to call when event is emitted
1502
- * @param filter Optional filter for indexed parameters
1503
- * @returns Unwatch function to stop listening
1504
- */
1505
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1506
- return this.publicClient.watchContractEvent({
1507
- address: this.contractAddress,
1508
- abi: XAI_jsonAbi,
1509
- eventName: 'OwnershipTransferred',
1510
- args: filter,
1511
- onLogs: (logs: any[]) => {
1512
- logs.forEach((log: any) => {
1513
- callback(log.args as any);
1514
- });
1515
- },
1516
- }) as () => void;
1517
- },
1518
794
  /**
1519
795
  * Watch Transfer events
1520
796
  * @param callback Function to call when event is emitted