@gitmyabi/xai 1.0.0 → 1.0.1

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