@gitmyabi/xai 1.0.0 → 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.
@@ -1,132 +1,18 @@
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
- {
23
- "inputs": [
24
- {
25
- "internalType": "address",
26
- "name": "spender",
27
- "type": "address"
28
- },
29
- {
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
- {
46
- "internalType": "address",
47
- "name": "sender",
48
- "type": "address"
49
- },
50
- {
51
- "internalType": "uint256",
52
- "name": "balance",
53
- "type": "uint256"
54
- },
55
- {
56
- "internalType": "uint256",
57
- "name": "needed",
58
- "type": "uint256"
59
- }
60
- ],
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"
129
- },
130
16
  {
131
17
  "anonymous": false,
132
18
  "inputs": [
@@ -152,25 +38,6 @@ exports.SDSHD_jsonAbi = [
152
38
  "name": "Approval",
153
39
  "type": "event"
154
40
  },
155
- {
156
- "anonymous": false,
157
- "inputs": [
158
- {
159
- "indexed": true,
160
- "internalType": "address",
161
- "name": "previousOwner",
162
- "type": "address"
163
- },
164
- {
165
- "indexed": true,
166
- "internalType": "address",
167
- "name": "newOwner",
168
- "type": "address"
169
- }
170
- ],
171
- "name": "OwnershipTransferred",
172
- "type": "event"
173
- },
174
41
  {
175
42
  "anonymous": false,
176
43
  "inputs": [
@@ -196,29 +63,16 @@ exports.SDSHD_jsonAbi = [
196
63
  "name": "Transfer",
197
64
  "type": "event"
198
65
  },
199
- {
200
- "inputs": [
201
- {
202
- "internalType": "address[]",
203
- "name": "to",
204
- "type": "address[]"
205
- }
206
- ],
207
- "name": "airdrop",
208
- "outputs": [],
209
- "stateMutability": "nonpayable",
210
- "type": "function"
211
- },
212
66
  {
213
67
  "inputs": [
214
68
  {
215
69
  "internalType": "address",
216
- "name": "owner_",
70
+ "name": "owner",
217
71
  "type": "address"
218
72
  },
219
73
  {
220
74
  "internalType": "address",
221
- "name": "spender_",
75
+ "name": "spender",
222
76
  "type": "address"
223
77
  }
224
78
  ],
@@ -242,7 +96,7 @@ exports.SDSHD_jsonAbi = [
242
96
  },
243
97
  {
244
98
  "internalType": "uint256",
245
- "name": "value",
99
+ "name": "amount",
246
100
  "type": "uint256"
247
101
  }
248
102
  ],
@@ -276,11 +130,24 @@ exports.SDSHD_jsonAbi = [
276
130
  "stateMutability": "view",
277
131
  "type": "function"
278
132
  },
133
+ {
134
+ "inputs": [
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "amount",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "burn",
142
+ "outputs": [],
143
+ "stateMutability": "nonpayable",
144
+ "type": "function"
145
+ },
279
146
  {
280
147
  "inputs": [
281
148
  {
282
149
  "internalType": "address",
283
- "name": "addr",
150
+ "name": "account",
284
151
  "type": "address"
285
152
  },
286
153
  {
@@ -289,7 +156,7 @@ exports.SDSHD_jsonAbi = [
289
156
  "type": "uint256"
290
157
  }
291
158
  ],
292
- "name": "burn",
159
+ "name": "burnFrom",
293
160
  "outputs": [],
294
161
  "stateMutability": "nonpayable",
295
162
  "type": "function"
@@ -311,11 +178,16 @@ exports.SDSHD_jsonAbi = [
311
178
  "inputs": [
312
179
  {
313
180
  "internalType": "address",
314
- "name": "addr",
181
+ "name": "spender",
315
182
  "type": "address"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "subtractedValue",
187
+ "type": "uint256"
316
188
  }
317
189
  ],
318
- "name": "isInBlackList",
190
+ "name": "decreaseAllowance",
319
191
  "outputs": [
320
192
  {
321
193
  "internalType": "bool",
@@ -323,71 +195,36 @@ exports.SDSHD_jsonAbi = [
323
195
  "type": "bool"
324
196
  }
325
197
  ],
326
- "stateMutability": "view",
327
- "type": "function"
328
- },
329
- {
330
- "inputs": [],
331
- "name": "name",
332
- "outputs": [
333
- {
334
- "internalType": "string",
335
- "name": "",
336
- "type": "string"
337
- }
338
- ],
339
- "stateMutability": "view",
198
+ "stateMutability": "nonpayable",
340
199
  "type": "function"
341
200
  },
342
201
  {
343
- "inputs": [],
344
- "name": "owner",
345
- "outputs": [
202
+ "inputs": [
346
203
  {
347
204
  "internalType": "address",
348
- "name": "",
205
+ "name": "spender",
349
206
  "type": "address"
207
+ },
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "addedValue",
211
+ "type": "uint256"
350
212
  }
351
213
  ],
352
- "stateMutability": "view",
353
- "type": "function"
354
- },
355
- {
356
- "inputs": [],
357
- "name": "pairAddress",
214
+ "name": "increaseAllowance",
358
215
  "outputs": [
359
216
  {
360
- "internalType": "address",
217
+ "internalType": "bool",
361
218
  "name": "",
362
- "type": "address"
363
- }
364
- ],
365
- "stateMutability": "view",
366
- "type": "function"
367
- },
368
- {
369
- "inputs": [
370
- {
371
- "internalType": "address[]",
372
- "name": "addrs",
373
- "type": "address[]"
219
+ "type": "bool"
374
220
  }
375
221
  ],
376
- "name": "removeBlackList",
377
- "outputs": [],
378
- "stateMutability": "nonpayable",
379
- "type": "function"
380
- },
381
- {
382
- "inputs": [],
383
- "name": "renounceOwnership",
384
- "outputs": [],
385
222
  "stateMutability": "nonpayable",
386
223
  "type": "function"
387
224
  },
388
225
  {
389
226
  "inputs": [],
390
- "name": "symbol",
227
+ "name": "name",
391
228
  "outputs": [
392
229
  {
393
230
  "internalType": "string",
@@ -400,12 +237,12 @@ exports.SDSHD_jsonAbi = [
400
237
  },
401
238
  {
402
239
  "inputs": [],
403
- "name": "taxReceiver",
240
+ "name": "symbol",
404
241
  "outputs": [
405
242
  {
406
- "internalType": "address",
243
+ "internalType": "string",
407
244
  "name": "",
408
- "type": "address"
245
+ "type": "string"
409
246
  }
410
247
  ],
411
248
  "stateMutability": "view",
@@ -428,12 +265,12 @@ exports.SDSHD_jsonAbi = [
428
265
  "inputs": [
429
266
  {
430
267
  "internalType": "address",
431
- "name": "to",
268
+ "name": "recipient",
432
269
  "type": "address"
433
270
  },
434
271
  {
435
272
  "internalType": "uint256",
436
- "name": "value",
273
+ "name": "amount",
437
274
  "type": "uint256"
438
275
  }
439
276
  ],
@@ -452,17 +289,17 @@ exports.SDSHD_jsonAbi = [
452
289
  "inputs": [
453
290
  {
454
291
  "internalType": "address",
455
- "name": "from",
292
+ "name": "sender",
456
293
  "type": "address"
457
294
  },
458
295
  {
459
296
  "internalType": "address",
460
- "name": "to",
297
+ "name": "recipient",
461
298
  "type": "address"
462
299
  },
463
300
  {
464
301
  "internalType": "uint256",
465
- "name": "value",
302
+ "name": "amount",
466
303
  "type": "uint256"
467
304
  }
468
305
  ],
@@ -476,58 +313,10 @@ exports.SDSHD_jsonAbi = [
476
313
  ],
477
314
  "stateMutability": "nonpayable",
478
315
  "type": "function"
479
- },
480
- {
481
- "inputs": [
482
- {
483
- "internalType": "address",
484
- "name": "newOwner",
485
- "type": "address"
486
- }
487
- ],
488
- "name": "transferOwnership",
489
- "outputs": [],
490
- "stateMutability": "nonpayable",
491
- "type": "function"
492
- },
493
- {
494
- "inputs": [
495
- {
496
- "internalType": "address[]",
497
- "name": "addrs",
498
- "type": "address[]"
499
- },
500
- {
501
- "internalType": "bool[]",
502
- "name": "values",
503
- "type": "bool[]"
504
- }
505
- ],
506
- "name": "updateBlackList",
507
- "outputs": [],
508
- "stateMutability": "nonpayable",
509
- "type": "function"
510
- },
511
- {
512
- "inputs": [
513
- {
514
- "internalType": "address",
515
- "name": "_token",
516
- "type": "address"
517
- }
518
- ],
519
- "name": "withdraw",
520
- "outputs": [],
521
- "stateMutability": "nonpayable",
522
- "type": "function"
523
- },
524
- {
525
- "stateMutability": "payable",
526
- "type": "receive"
527
316
  }
528
317
  ];
529
318
  /**
530
- * SDSHD_json Contract Class
319
+ * XAI_json Contract Class
531
320
  *
532
321
  * Provides a class-based API similar to TypeChain for interacting with the contract.
533
322
  *
@@ -535,12 +324,12 @@ exports.SDSHD_jsonAbi = [
535
324
  * ```typescript
536
325
  * import { createPublicClient, createWalletClient, http } from 'viem';
537
326
  * import { mainnet } from 'viem/chains';
538
- * import { SDSHD_json } from 'SDSHD_json';
327
+ * import { XAI_json } from 'XAI_json';
539
328
  *
540
329
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
541
330
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
542
331
  *
543
- * const contract = new SDSHD_json('0x...', { publicClient, walletClient });
332
+ * const contract = new XAI_json('0x...', { publicClient, walletClient });
544
333
  *
545
334
  * // Read functions
546
335
  * const result = await contract.balanceOf('0x...');
@@ -558,13 +347,13 @@ exports.SDSHD_jsonAbi = [
558
347
  * });
559
348
  * ```
560
349
  */
561
- class SDSHD_json {
350
+ class XAI_json {
562
351
  constructor(address, clients) {
563
352
  this.contractAddress = address;
564
353
  this.publicClient = clients.publicClient;
565
354
  this.contract = (0, viem_1.getContract)({
566
355
  address,
567
- abi: exports.SDSHD_jsonAbi,
356
+ abi: exports.XAI_jsonAbi,
568
357
  client: {
569
358
  public: clients.publicClient,
570
359
  wallet: clients.walletClient,
@@ -587,8 +376,8 @@ class SDSHD_json {
587
376
  * allowance
588
377
  * view
589
378
  */
590
- async allowance(owner_, spender_) {
591
- return this.contract.read.allowance([owner_, spender_]);
379
+ async allowance(owner, spender) {
380
+ return this.contract.read.allowance([owner, spender]);
592
381
  }
593
382
  /**
594
383
  * balanceOf
@@ -604,13 +393,6 @@ class SDSHD_json {
604
393
  async decimals() {
605
394
  return this.contract.read.decimals();
606
395
  }
607
- /**
608
- * isInBlackList
609
- * view
610
- */
611
- async isInBlackList(addr) {
612
- return this.contract.read.isInBlackList([addr]);
613
- }
614
396
  /**
615
397
  * name
616
398
  * view
@@ -618,20 +400,6 @@ class SDSHD_json {
618
400
  async name() {
619
401
  return this.contract.read.name();
620
402
  }
621
- /**
622
- * owner
623
- * view
624
- */
625
- async owner() {
626
- return this.contract.read.owner();
627
- }
628
- /**
629
- * pairAddress
630
- * view
631
- */
632
- async pairAddress() {
633
- return this.contract.read.pairAddress();
634
- }
635
403
  /**
636
404
  * symbol
637
405
  * view
@@ -639,13 +407,6 @@ class SDSHD_json {
639
407
  async symbol() {
640
408
  return this.contract.read.symbol();
641
409
  }
642
- /**
643
- * taxReceiver
644
- * view
645
- */
646
- async taxReceiver() {
647
- return this.contract.read.taxReceiver();
648
- }
649
410
  /**
650
411
  * totalSupply
651
412
  * view
@@ -653,115 +414,82 @@ class SDSHD_json {
653
414
  async totalSupply() {
654
415
  return this.contract.read.totalSupply();
655
416
  }
656
- /**
657
- * airdrop
658
- * nonpayable
659
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
660
- */
661
- async airdrop(to, options) {
662
- if (!this.contract.write) {
663
- throw new Error('Wallet client is required for write operations');
664
- }
665
- return this.contract.write.airdrop([to], options);
666
- }
667
417
  /**
668
418
  * approve
669
419
  * nonpayable
670
420
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
421
  */
672
- async approve(spender, value, options) {
422
+ async approve(spender, amount, options) {
673
423
  if (!this.contract.write) {
674
424
  throw new Error('Wallet client is required for write operations');
675
425
  }
676
- return this.contract.write.approve([spender, value], options);
426
+ return this.contract.write.approve([spender, amount], options);
677
427
  }
678
428
  /**
679
429
  * burn
680
430
  * nonpayable
681
431
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
432
  */
683
- async burn(addr, amount, options) {
684
- if (!this.contract.write) {
685
- throw new Error('Wallet client is required for write operations');
686
- }
687
- return this.contract.write.burn([addr, amount], options);
688
- }
689
- /**
690
- * removeBlackList
691
- * nonpayable
692
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
693
- */
694
- async removeBlackList(addrs, options) {
433
+ async burn(amount, options) {
695
434
  if (!this.contract.write) {
696
435
  throw new Error('Wallet client is required for write operations');
697
436
  }
698
- return this.contract.write.removeBlackList([addrs], options);
437
+ return this.contract.write.burn([amount], options);
699
438
  }
700
439
  /**
701
- * renounceOwnership
440
+ * burnFrom
702
441
  * nonpayable
703
442
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
704
443
  */
705
- async renounceOwnership(options) {
444
+ async burnFrom(account, amount, options) {
706
445
  if (!this.contract.write) {
707
446
  throw new Error('Wallet client is required for write operations');
708
447
  }
709
- return this.contract.write.renounceOwnership(options);
448
+ return this.contract.write.burnFrom([account, amount], options);
710
449
  }
711
450
  /**
712
- * transfer
451
+ * decreaseAllowance
713
452
  * nonpayable
714
453
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
715
454
  */
716
- async transfer(to, value, options) {
455
+ async decreaseAllowance(spender, subtractedValue, options) {
717
456
  if (!this.contract.write) {
718
457
  throw new Error('Wallet client is required for write operations');
719
458
  }
720
- return this.contract.write.transfer([to, value], options);
459
+ return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
721
460
  }
722
461
  /**
723
- * transferFrom
462
+ * increaseAllowance
724
463
  * nonpayable
725
464
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
726
465
  */
727
- async transferFrom(from, to, value, options) {
466
+ async increaseAllowance(spender, addedValue, options) {
728
467
  if (!this.contract.write) {
729
468
  throw new Error('Wallet client is required for write operations');
730
469
  }
731
- return this.contract.write.transferFrom([from, to, value], options);
470
+ return this.contract.write.increaseAllowance([spender, addedValue], options);
732
471
  }
733
472
  /**
734
- * transferOwnership
735
- * nonpayable
736
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
737
- */
738
- async transferOwnership(newOwner, options) {
739
- if (!this.contract.write) {
740
- throw new Error('Wallet client is required for write operations');
741
- }
742
- return this.contract.write.transferOwnership([newOwner], options);
743
- }
744
- /**
745
- * updateBlackList
473
+ * transfer
746
474
  * nonpayable
747
475
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
476
  */
749
- async updateBlackList(addrs, values, options) {
477
+ async transfer(recipient, amount, options) {
750
478
  if (!this.contract.write) {
751
479
  throw new Error('Wallet client is required for write operations');
752
480
  }
753
- return this.contract.write.updateBlackList([addrs, values], options);
481
+ return this.contract.write.transfer([recipient, amount], options);
754
482
  }
755
483
  /**
756
- * withdraw
484
+ * transferFrom
757
485
  * nonpayable
758
486
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
759
487
  */
760
- async withdraw(_token, options) {
488
+ async transferFrom(sender, recipient, amount, options) {
761
489
  if (!this.contract.write) {
762
490
  throw new Error('Wallet client is required for write operations');
763
491
  }
764
- return this.contract.write.withdraw([_token], options);
492
+ return this.contract.write.transferFrom([sender, recipient, amount], options);
765
493
  }
766
494
  /**
767
495
  * Simulate contract write operations (dry-run without sending transaction)
@@ -777,85 +505,61 @@ class SDSHD_json {
777
505
  throw new Error('Public client is required for simulation');
778
506
  }
779
507
  return {
780
- /**
781
- * Simulate airdrop
782
- * Returns gas estimate and result without sending transaction
783
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
784
- */
785
- async airdrop(to, options) {
786
- return contract.simulate.airdrop([to], options);
787
- },
788
508
  /**
789
509
  * Simulate approve
790
510
  * Returns gas estimate and result without sending transaction
791
511
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
792
512
  */
793
- async approve(spender, value, options) {
794
- return contract.simulate.approve([spender, value], options);
513
+ async approve(spender, amount, options) {
514
+ return contract.simulate.approve([spender, amount], options);
795
515
  },
796
516
  /**
797
517
  * Simulate burn
798
518
  * Returns gas estimate and result without sending transaction
799
519
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
800
520
  */
801
- async burn(addr, amount, options) {
802
- return contract.simulate.burn([addr, amount], options);
521
+ async burn(amount, options) {
522
+ return contract.simulate.burn([amount], options);
803
523
  },
804
524
  /**
805
- * Simulate removeBlackList
525
+ * Simulate burnFrom
806
526
  * Returns gas estimate and result without sending transaction
807
527
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
808
528
  */
809
- async removeBlackList(addrs, options) {
810
- return contract.simulate.removeBlackList([addrs], options);
529
+ async burnFrom(account, amount, options) {
530
+ return contract.simulate.burnFrom([account, amount], options);
811
531
  },
812
532
  /**
813
- * Simulate renounceOwnership
533
+ * Simulate decreaseAllowance
814
534
  * Returns gas estimate and result without sending transaction
815
535
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
816
536
  */
817
- async renounceOwnership(options) {
818
- return contract.simulate.renounceOwnership(options);
537
+ async decreaseAllowance(spender, subtractedValue, options) {
538
+ return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
819
539
  },
820
540
  /**
821
- * Simulate transfer
822
- * Returns gas estimate and result without sending transaction
823
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
824
- */
825
- async transfer(to, value, options) {
826
- return contract.simulate.transfer([to, value], options);
827
- },
828
- /**
829
- * Simulate transferFrom
541
+ * Simulate increaseAllowance
830
542
  * Returns gas estimate and result without sending transaction
831
543
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
832
544
  */
833
- async transferFrom(from, to, value, options) {
834
- return contract.simulate.transferFrom([from, to, value], options);
545
+ async increaseAllowance(spender, addedValue, options) {
546
+ return contract.simulate.increaseAllowance([spender, addedValue], options);
835
547
  },
836
548
  /**
837
- * Simulate transferOwnership
838
- * Returns gas estimate and result without sending transaction
839
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
840
- */
841
- async transferOwnership(newOwner, options) {
842
- return contract.simulate.transferOwnership([newOwner], options);
843
- },
844
- /**
845
- * Simulate updateBlackList
549
+ * Simulate transfer
846
550
  * Returns gas estimate and result without sending transaction
847
551
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
848
552
  */
849
- async updateBlackList(addrs, values, options) {
850
- return contract.simulate.updateBlackList([addrs, values], options);
553
+ async transfer(recipient, amount, options) {
554
+ return contract.simulate.transfer([recipient, amount], options);
851
555
  },
852
556
  /**
853
- * Simulate withdraw
557
+ * Simulate transferFrom
854
558
  * Returns gas estimate and result without sending transaction
855
559
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
856
560
  */
857
- async withdraw(_token, options) {
858
- return contract.simulate.withdraw([_token], options);
561
+ async transferFrom(sender, recipient, amount, options) {
562
+ return contract.simulate.transferFrom([sender, recipient, amount], options);
859
563
  }
860
564
  };
861
565
  }
@@ -882,7 +586,7 @@ class SDSHD_json {
882
586
  Approval: (callback, filter) => {
883
587
  return this.publicClient.watchContractEvent({
884
588
  address: this.contractAddress,
885
- abi: exports.SDSHD_jsonAbi,
589
+ abi: exports.XAI_jsonAbi,
886
590
  eventName: 'Approval',
887
591
  args: filter,
888
592
  onLogs: (logs) => {
@@ -892,25 +596,6 @@ class SDSHD_json {
892
596
  },
893
597
  });
894
598
  },
895
- /**
896
- * Watch OwnershipTransferred events
897
- * @param callback Function to call when event is emitted
898
- * @param filter Optional filter for indexed parameters
899
- * @returns Unwatch function to stop listening
900
- */
901
- OwnershipTransferred: (callback, filter) => {
902
- return this.publicClient.watchContractEvent({
903
- address: this.contractAddress,
904
- abi: exports.SDSHD_jsonAbi,
905
- eventName: 'OwnershipTransferred',
906
- args: filter,
907
- onLogs: (logs) => {
908
- logs.forEach((log) => {
909
- callback(log.args);
910
- });
911
- },
912
- });
913
- },
914
599
  /**
915
600
  * Watch Transfer events
916
601
  * @param callback Function to call when event is emitted
@@ -920,7 +605,7 @@ class SDSHD_json {
920
605
  Transfer: (callback, filter) => {
921
606
  return this.publicClient.watchContractEvent({
922
607
  address: this.contractAddress,
923
- abi: exports.SDSHD_jsonAbi,
608
+ abi: exports.XAI_jsonAbi,
924
609
  eventName: 'Transfer',
925
610
  args: filter,
926
611
  onLogs: (logs) => {
@@ -933,4 +618,4 @@ class SDSHD_json {
933
618
  };
934
619
  }
935
620
  }
936
- exports.SDSHD_json = SDSHD_json;
621
+ exports.XAI_json = XAI_json;