@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.
@@ -2,130 +2,16 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * SDSHD_json ABI
5
+ * XAI_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const SDSHD_jsonAbi = [
9
+ export const XAI_jsonAbi = [
10
10
  {
11
- "inputs": [
12
- {
13
- "internalType": "address",
14
- "name": "swapRouter_",
15
- "type": "address"
16
- }
17
- ],
11
+ "inputs": [],
18
12
  "stateMutability": "nonpayable",
19
13
  "type": "constructor"
20
14
  },
21
- {
22
- "inputs": [
23
- {
24
- "internalType": "address",
25
- "name": "spender",
26
- "type": "address"
27
- },
28
- {
29
- "internalType": "uint256",
30
- "name": "allowance",
31
- "type": "uint256"
32
- },
33
- {
34
- "internalType": "uint256",
35
- "name": "needed",
36
- "type": "uint256"
37
- }
38
- ],
39
- "name": "ERC20InsufficientAllowance",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [
44
- {
45
- "internalType": "address",
46
- "name": "sender",
47
- "type": "address"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "balance",
52
- "type": "uint256"
53
- },
54
- {
55
- "internalType": "uint256",
56
- "name": "needed",
57
- "type": "uint256"
58
- }
59
- ],
60
- "name": "ERC20InsufficientBalance",
61
- "type": "error"
62
- },
63
- {
64
- "inputs": [
65
- {
66
- "internalType": "address",
67
- "name": "approver",
68
- "type": "address"
69
- }
70
- ],
71
- "name": "ERC20InvalidApprover",
72
- "type": "error"
73
- },
74
- {
75
- "inputs": [
76
- {
77
- "internalType": "address",
78
- "name": "receiver",
79
- "type": "address"
80
- }
81
- ],
82
- "name": "ERC20InvalidReceiver",
83
- "type": "error"
84
- },
85
- {
86
- "inputs": [
87
- {
88
- "internalType": "address",
89
- "name": "sender",
90
- "type": "address"
91
- }
92
- ],
93
- "name": "ERC20InvalidSender",
94
- "type": "error"
95
- },
96
- {
97
- "inputs": [
98
- {
99
- "internalType": "address",
100
- "name": "spender",
101
- "type": "address"
102
- }
103
- ],
104
- "name": "ERC20InvalidSpender",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [
109
- {
110
- "internalType": "address",
111
- "name": "owner",
112
- "type": "address"
113
- }
114
- ],
115
- "name": "OwnableInvalidOwner",
116
- "type": "error"
117
- },
118
- {
119
- "inputs": [
120
- {
121
- "internalType": "address",
122
- "name": "account",
123
- "type": "address"
124
- }
125
- ],
126
- "name": "OwnableUnauthorizedAccount",
127
- "type": "error"
128
- },
129
15
  {
130
16
  "anonymous": false,
131
17
  "inputs": [
@@ -151,25 +37,6 @@ export const SDSHD_jsonAbi = [
151
37
  "name": "Approval",
152
38
  "type": "event"
153
39
  },
154
- {
155
- "anonymous": false,
156
- "inputs": [
157
- {
158
- "indexed": true,
159
- "internalType": "address",
160
- "name": "previousOwner",
161
- "type": "address"
162
- },
163
- {
164
- "indexed": true,
165
- "internalType": "address",
166
- "name": "newOwner",
167
- "type": "address"
168
- }
169
- ],
170
- "name": "OwnershipTransferred",
171
- "type": "event"
172
- },
173
40
  {
174
41
  "anonymous": false,
175
42
  "inputs": [
@@ -195,29 +62,16 @@ export const SDSHD_jsonAbi = [
195
62
  "name": "Transfer",
196
63
  "type": "event"
197
64
  },
198
- {
199
- "inputs": [
200
- {
201
- "internalType": "address[]",
202
- "name": "to",
203
- "type": "address[]"
204
- }
205
- ],
206
- "name": "airdrop",
207
- "outputs": [],
208
- "stateMutability": "nonpayable",
209
- "type": "function"
210
- },
211
65
  {
212
66
  "inputs": [
213
67
  {
214
68
  "internalType": "address",
215
- "name": "owner_",
69
+ "name": "owner",
216
70
  "type": "address"
217
71
  },
218
72
  {
219
73
  "internalType": "address",
220
- "name": "spender_",
74
+ "name": "spender",
221
75
  "type": "address"
222
76
  }
223
77
  ],
@@ -241,7 +95,7 @@ export const SDSHD_jsonAbi = [
241
95
  },
242
96
  {
243
97
  "internalType": "uint256",
244
- "name": "value",
98
+ "name": "amount",
245
99
  "type": "uint256"
246
100
  }
247
101
  ],
@@ -275,11 +129,24 @@ export const SDSHD_jsonAbi = [
275
129
  "stateMutability": "view",
276
130
  "type": "function"
277
131
  },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "internalType": "uint256",
136
+ "name": "amount",
137
+ "type": "uint256"
138
+ }
139
+ ],
140
+ "name": "burn",
141
+ "outputs": [],
142
+ "stateMutability": "nonpayable",
143
+ "type": "function"
144
+ },
278
145
  {
279
146
  "inputs": [
280
147
  {
281
148
  "internalType": "address",
282
- "name": "addr",
149
+ "name": "account",
283
150
  "type": "address"
284
151
  },
285
152
  {
@@ -288,7 +155,7 @@ export const SDSHD_jsonAbi = [
288
155
  "type": "uint256"
289
156
  }
290
157
  ],
291
- "name": "burn",
158
+ "name": "burnFrom",
292
159
  "outputs": [],
293
160
  "stateMutability": "nonpayable",
294
161
  "type": "function"
@@ -310,11 +177,16 @@ export const SDSHD_jsonAbi = [
310
177
  "inputs": [
311
178
  {
312
179
  "internalType": "address",
313
- "name": "addr",
180
+ "name": "spender",
314
181
  "type": "address"
182
+ },
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "subtractedValue",
186
+ "type": "uint256"
315
187
  }
316
188
  ],
317
- "name": "isInBlackList",
189
+ "name": "decreaseAllowance",
318
190
  "outputs": [
319
191
  {
320
192
  "internalType": "bool",
@@ -322,71 +194,36 @@ export const SDSHD_jsonAbi = [
322
194
  "type": "bool"
323
195
  }
324
196
  ],
325
- "stateMutability": "view",
326
- "type": "function"
327
- },
328
- {
329
- "inputs": [],
330
- "name": "name",
331
- "outputs": [
332
- {
333
- "internalType": "string",
334
- "name": "",
335
- "type": "string"
336
- }
337
- ],
338
- "stateMutability": "view",
197
+ "stateMutability": "nonpayable",
339
198
  "type": "function"
340
199
  },
341
200
  {
342
- "inputs": [],
343
- "name": "owner",
344
- "outputs": [
201
+ "inputs": [
345
202
  {
346
203
  "internalType": "address",
347
- "name": "",
204
+ "name": "spender",
348
205
  "type": "address"
206
+ },
207
+ {
208
+ "internalType": "uint256",
209
+ "name": "addedValue",
210
+ "type": "uint256"
349
211
  }
350
212
  ],
351
- "stateMutability": "view",
352
- "type": "function"
353
- },
354
- {
355
- "inputs": [],
356
- "name": "pairAddress",
213
+ "name": "increaseAllowance",
357
214
  "outputs": [
358
215
  {
359
- "internalType": "address",
216
+ "internalType": "bool",
360
217
  "name": "",
361
- "type": "address"
362
- }
363
- ],
364
- "stateMutability": "view",
365
- "type": "function"
366
- },
367
- {
368
- "inputs": [
369
- {
370
- "internalType": "address[]",
371
- "name": "addrs",
372
- "type": "address[]"
218
+ "type": "bool"
373
219
  }
374
220
  ],
375
- "name": "removeBlackList",
376
- "outputs": [],
377
- "stateMutability": "nonpayable",
378
- "type": "function"
379
- },
380
- {
381
- "inputs": [],
382
- "name": "renounceOwnership",
383
- "outputs": [],
384
221
  "stateMutability": "nonpayable",
385
222
  "type": "function"
386
223
  },
387
224
  {
388
225
  "inputs": [],
389
- "name": "symbol",
226
+ "name": "name",
390
227
  "outputs": [
391
228
  {
392
229
  "internalType": "string",
@@ -399,12 +236,12 @@ export const SDSHD_jsonAbi = [
399
236
  },
400
237
  {
401
238
  "inputs": [],
402
- "name": "taxReceiver",
239
+ "name": "symbol",
403
240
  "outputs": [
404
241
  {
405
- "internalType": "address",
242
+ "internalType": "string",
406
243
  "name": "",
407
- "type": "address"
244
+ "type": "string"
408
245
  }
409
246
  ],
410
247
  "stateMutability": "view",
@@ -427,12 +264,12 @@ export const SDSHD_jsonAbi = [
427
264
  "inputs": [
428
265
  {
429
266
  "internalType": "address",
430
- "name": "to",
267
+ "name": "recipient",
431
268
  "type": "address"
432
269
  },
433
270
  {
434
271
  "internalType": "uint256",
435
- "name": "value",
272
+ "name": "amount",
436
273
  "type": "uint256"
437
274
  }
438
275
  ],
@@ -451,17 +288,17 @@ export const SDSHD_jsonAbi = [
451
288
  "inputs": [
452
289
  {
453
290
  "internalType": "address",
454
- "name": "from",
291
+ "name": "sender",
455
292
  "type": "address"
456
293
  },
457
294
  {
458
295
  "internalType": "address",
459
- "name": "to",
296
+ "name": "recipient",
460
297
  "type": "address"
461
298
  },
462
299
  {
463
300
  "internalType": "uint256",
464
- "name": "value",
301
+ "name": "amount",
465
302
  "type": "uint256"
466
303
  }
467
304
  ],
@@ -475,71 +312,23 @@ export const SDSHD_jsonAbi = [
475
312
  ],
476
313
  "stateMutability": "nonpayable",
477
314
  "type": "function"
478
- },
479
- {
480
- "inputs": [
481
- {
482
- "internalType": "address",
483
- "name": "newOwner",
484
- "type": "address"
485
- }
486
- ],
487
- "name": "transferOwnership",
488
- "outputs": [],
489
- "stateMutability": "nonpayable",
490
- "type": "function"
491
- },
492
- {
493
- "inputs": [
494
- {
495
- "internalType": "address[]",
496
- "name": "addrs",
497
- "type": "address[]"
498
- },
499
- {
500
- "internalType": "bool[]",
501
- "name": "values",
502
- "type": "bool[]"
503
- }
504
- ],
505
- "name": "updateBlackList",
506
- "outputs": [],
507
- "stateMutability": "nonpayable",
508
- "type": "function"
509
- },
510
- {
511
- "inputs": [
512
- {
513
- "internalType": "address",
514
- "name": "_token",
515
- "type": "address"
516
- }
517
- ],
518
- "name": "withdraw",
519
- "outputs": [],
520
- "stateMutability": "nonpayable",
521
- "type": "function"
522
- },
523
- {
524
- "stateMutability": "payable",
525
- "type": "receive"
526
315
  }
527
316
  ] as const satisfies Abi;
528
317
 
529
318
  /**
530
- * Type-safe ABI for SDSHD_json
319
+ * Type-safe ABI for XAI_json
531
320
  */
532
- export type SDSHD_jsonAbi = typeof SDSHD_jsonAbi;
321
+ export type XAI_jsonAbi = typeof XAI_jsonAbi;
533
322
 
534
323
  /**
535
- * Contract instance type for SDSHD_json
324
+ * Contract instance type for XAI_json
536
325
  */
537
326
  // Use any for contract type to avoid complex viem type issues
538
327
  // The runtime behavior is type-safe through viem's ABI typing
539
- export type SDSHD_jsonContract = any;
328
+ export type XAI_jsonContract = any;
540
329
 
541
330
  /**
542
- * SDSHD_json Contract Class
331
+ * XAI_json Contract Class
543
332
  *
544
333
  * Provides a class-based API similar to TypeChain for interacting with the contract.
545
334
  *
@@ -547,12 +336,12 @@ export type SDSHD_jsonContract = any;
547
336
  * ```typescript
548
337
  * import { createPublicClient, createWalletClient, http } from 'viem';
549
338
  * import { mainnet } from 'viem/chains';
550
- * import { SDSHD_json } from 'SDSHD_json';
339
+ * import { XAI_json } from 'XAI_json';
551
340
  *
552
341
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
553
342
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
554
343
  *
555
- * const contract = new SDSHD_json('0x...', { publicClient, walletClient });
344
+ * const contract = new XAI_json('0x...', { publicClient, walletClient });
556
345
  *
557
346
  * // Read functions
558
347
  * const result = await contract.balanceOf('0x...');
@@ -570,8 +359,8 @@ export type SDSHD_jsonContract = any;
570
359
  * });
571
360
  * ```
572
361
  */
573
- export class SDSHD_json {
574
- private contract: SDSHD_jsonContract;
362
+ export class XAI_json {
363
+ private contract: XAI_jsonContract;
575
364
  private contractAddress: Address;
576
365
  private publicClient: PublicClient;
577
366
 
@@ -586,7 +375,7 @@ export class SDSHD_json {
586
375
  this.publicClient = clients.publicClient;
587
376
  this.contract = getContract({
588
377
  address,
589
- abi: SDSHD_jsonAbi,
378
+ abi: XAI_jsonAbi,
590
379
  client: {
591
380
  public: clients.publicClient,
592
381
  wallet: clients.walletClient,
@@ -604,7 +393,7 @@ export class SDSHD_json {
604
393
  /**
605
394
  * Get the underlying viem contract instance
606
395
  */
607
- getContract(): SDSHD_jsonContract {
396
+ getContract(): XAI_jsonContract {
608
397
  return this.contract;
609
398
  }
610
399
 
@@ -612,8 +401,8 @@ export class SDSHD_json {
612
401
  * allowance
613
402
  * view
614
403
  */
615
- async allowance(owner_: `0x${string}`, spender_: `0x${string}`): Promise<bigint> {
616
- return this.contract.read.allowance([owner_, spender_] as const) as Promise<bigint>;
404
+ async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
405
+ return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
617
406
  }
618
407
 
619
408
  /**
@@ -632,14 +421,6 @@ export class SDSHD_json {
632
421
  return this.contract.read.decimals() as Promise<bigint>;
633
422
  }
634
423
 
635
- /**
636
- * isInBlackList
637
- * view
638
- */
639
- async isInBlackList(addr: `0x${string}`): Promise<boolean> {
640
- return this.contract.read.isInBlackList([addr] as const) as Promise<boolean>;
641
- }
642
-
643
424
  /**
644
425
  * name
645
426
  * view
@@ -648,22 +429,6 @@ export class SDSHD_json {
648
429
  return this.contract.read.name() as Promise<string>;
649
430
  }
650
431
 
651
- /**
652
- * owner
653
- * view
654
- */
655
- async owner(): Promise<`0x${string}`> {
656
- return this.contract.read.owner() as Promise<`0x${string}`>;
657
- }
658
-
659
- /**
660
- * pairAddress
661
- * view
662
- */
663
- async pairAddress(): Promise<`0x${string}`> {
664
- return this.contract.read.pairAddress() as Promise<`0x${string}`>;
665
- }
666
-
667
432
  /**
668
433
  * symbol
669
434
  * view
@@ -672,14 +437,6 @@ export class SDSHD_json {
672
437
  return this.contract.read.symbol() as Promise<string>;
673
438
  }
674
439
 
675
- /**
676
- * taxReceiver
677
- * view
678
- */
679
- async taxReceiver(): Promise<`0x${string}`> {
680
- return this.contract.read.taxReceiver() as Promise<`0x${string}`>;
681
- }
682
-
683
440
  /**
684
441
  * totalSupply
685
442
  * view
@@ -688,35 +445,12 @@ export class SDSHD_json {
688
445
  return this.contract.read.totalSupply() as Promise<bigint>;
689
446
  }
690
447
 
691
- /**
692
- * airdrop
693
- * nonpayable
694
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
695
- */
696
- async airdrop(to: `0x${string}`[], options?: {
697
- accessList?: import('viem').AccessList;
698
- authorizationList?: import('viem').AuthorizationList;
699
- chain?: import('viem').Chain | null;
700
- dataSuffix?: `0x${string}`;
701
- gas?: bigint;
702
- gasPrice?: bigint;
703
- maxFeePerGas?: bigint;
704
- maxPriorityFeePerGas?: bigint;
705
- nonce?: number;
706
- value?: bigint;
707
- }): Promise<`0x${string}`> {
708
- if (!this.contract.write) {
709
- throw new Error('Wallet client is required for write operations');
710
- }
711
- return this.contract.write.airdrop([to] as const, options) as Promise<`0x${string}`>;
712
- }
713
-
714
448
  /**
715
449
  * approve
716
450
  * nonpayable
717
451
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
718
452
  */
719
- async approve(spender: `0x${string}`, value: bigint, options?: {
453
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
720
454
  accessList?: import('viem').AccessList;
721
455
  authorizationList?: import('viem').AuthorizationList;
722
456
  chain?: import('viem').Chain | null;
@@ -731,7 +465,7 @@ export class SDSHD_json {
731
465
  if (!this.contract.write) {
732
466
  throw new Error('Wallet client is required for write operations');
733
467
  }
734
- return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
468
+ return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
735
469
  }
736
470
 
737
471
  /**
@@ -739,30 +473,7 @@ export class SDSHD_json {
739
473
  * nonpayable
740
474
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
741
475
  */
742
- async burn(addr: `0x${string}`, amount: bigint, options?: {
743
- accessList?: import('viem').AccessList;
744
- authorizationList?: import('viem').AuthorizationList;
745
- chain?: import('viem').Chain | null;
746
- dataSuffix?: `0x${string}`;
747
- gas?: bigint;
748
- gasPrice?: bigint;
749
- maxFeePerGas?: bigint;
750
- maxPriorityFeePerGas?: bigint;
751
- nonce?: number;
752
- value?: bigint;
753
- }): Promise<`0x${string}`> {
754
- if (!this.contract.write) {
755
- throw new Error('Wallet client is required for write operations');
756
- }
757
- return this.contract.write.burn([addr, amount] as const, options) as Promise<`0x${string}`>;
758
- }
759
-
760
- /**
761
- * removeBlackList
762
- * nonpayable
763
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
764
- */
765
- async removeBlackList(addrs: `0x${string}`[], options?: {
476
+ async burn(amount: bigint, options?: {
766
477
  accessList?: import('viem').AccessList;
767
478
  authorizationList?: import('viem').AuthorizationList;
768
479
  chain?: import('viem').Chain | null;
@@ -777,38 +488,15 @@ export class SDSHD_json {
777
488
  if (!this.contract.write) {
778
489
  throw new Error('Wallet client is required for write operations');
779
490
  }
780
- return this.contract.write.removeBlackList([addrs] as const, options) as Promise<`0x${string}`>;
491
+ return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
781
492
  }
782
493
 
783
494
  /**
784
- * renounceOwnership
785
- * nonpayable
786
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
787
- */
788
- async renounceOwnership(options?: {
789
- accessList?: import('viem').AccessList;
790
- authorizationList?: import('viem').AuthorizationList;
791
- chain?: import('viem').Chain | null;
792
- dataSuffix?: `0x${string}`;
793
- gas?: bigint;
794
- gasPrice?: bigint;
795
- maxFeePerGas?: bigint;
796
- maxPriorityFeePerGas?: bigint;
797
- nonce?: number;
798
- value?: bigint;
799
- }): Promise<`0x${string}`> {
800
- if (!this.contract.write) {
801
- throw new Error('Wallet client is required for write operations');
802
- }
803
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
804
- }
805
-
806
- /**
807
- * transfer
495
+ * burnFrom
808
496
  * nonpayable
809
497
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
810
498
  */
811
- async transfer(to: `0x${string}`, value: bigint, options?: {
499
+ async burnFrom(account: `0x${string}`, amount: bigint, options?: {
812
500
  accessList?: import('viem').AccessList;
813
501
  authorizationList?: import('viem').AuthorizationList;
814
502
  chain?: import('viem').Chain | null;
@@ -823,15 +511,15 @@ export class SDSHD_json {
823
511
  if (!this.contract.write) {
824
512
  throw new Error('Wallet client is required for write operations');
825
513
  }
826
- return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
514
+ return this.contract.write.burnFrom([account, amount] as const, options) as Promise<`0x${string}`>;
827
515
  }
828
516
 
829
517
  /**
830
- * transferFrom
518
+ * decreaseAllowance
831
519
  * nonpayable
832
520
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
833
521
  */
834
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
522
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
835
523
  accessList?: import('viem').AccessList;
836
524
  authorizationList?: import('viem').AuthorizationList;
837
525
  chain?: import('viem').Chain | null;
@@ -846,15 +534,15 @@ export class SDSHD_json {
846
534
  if (!this.contract.write) {
847
535
  throw new Error('Wallet client is required for write operations');
848
536
  }
849
- return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
537
+ return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
850
538
  }
851
539
 
852
540
  /**
853
- * transferOwnership
541
+ * increaseAllowance
854
542
  * nonpayable
855
543
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
856
544
  */
857
- async transferOwnership(newOwner: `0x${string}`, options?: {
545
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
858
546
  accessList?: import('viem').AccessList;
859
547
  authorizationList?: import('viem').AuthorizationList;
860
548
  chain?: import('viem').Chain | null;
@@ -869,15 +557,15 @@ export class SDSHD_json {
869
557
  if (!this.contract.write) {
870
558
  throw new Error('Wallet client is required for write operations');
871
559
  }
872
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
560
+ return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
873
561
  }
874
562
 
875
563
  /**
876
- * updateBlackList
564
+ * transfer
877
565
  * nonpayable
878
566
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
879
567
  */
880
- async updateBlackList(addrs: `0x${string}`[], values: boolean[], options?: {
568
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
881
569
  accessList?: import('viem').AccessList;
882
570
  authorizationList?: import('viem').AuthorizationList;
883
571
  chain?: import('viem').Chain | null;
@@ -892,15 +580,15 @@ export class SDSHD_json {
892
580
  if (!this.contract.write) {
893
581
  throw new Error('Wallet client is required for write operations');
894
582
  }
895
- return this.contract.write.updateBlackList([addrs, values] as const, options) as Promise<`0x${string}`>;
583
+ return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
896
584
  }
897
585
 
898
586
  /**
899
- * withdraw
587
+ * transferFrom
900
588
  * nonpayable
901
589
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
902
590
  */
903
- async withdraw(_token: `0x${string}`, options?: {
591
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
904
592
  accessList?: import('viem').AccessList;
905
593
  authorizationList?: import('viem').AuthorizationList;
906
594
  chain?: import('viem').Chain | null;
@@ -915,7 +603,7 @@ export class SDSHD_json {
915
603
  if (!this.contract.write) {
916
604
  throw new Error('Wallet client is required for write operations');
917
605
  }
918
- return this.contract.write.withdraw([_token] as const, options) as Promise<`0x${string}`>;
606
+ return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
919
607
  }
920
608
 
921
609
 
@@ -934,31 +622,12 @@ export class SDSHD_json {
934
622
  throw new Error('Public client is required for simulation');
935
623
  }
936
624
  return {
937
- /**
938
- * Simulate airdrop
939
- * Returns gas estimate and result without sending transaction
940
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
941
- */
942
- async airdrop(to: `0x${string}`[], options?: {
943
- accessList?: import('viem').AccessList;
944
- authorizationList?: import('viem').AuthorizationList;
945
- chain?: import('viem').Chain | null;
946
- dataSuffix?: `0x${string}`;
947
- gas?: bigint;
948
- gasPrice?: bigint;
949
- maxFeePerGas?: bigint;
950
- maxPriorityFeePerGas?: bigint;
951
- nonce?: number;
952
- value?: bigint;
953
- }): Promise<void> {
954
- return contract.simulate.airdrop([to] as const, options) as Promise<void>;
955
- },
956
625
  /**
957
626
  * Simulate approve
958
627
  * Returns gas estimate and result without sending transaction
959
628
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
960
629
  */
961
- async approve(spender: `0x${string}`, value: bigint, options?: {
630
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
962
631
  accessList?: import('viem').AccessList;
963
632
  authorizationList?: import('viem').AuthorizationList;
964
633
  chain?: import('viem').Chain | null;
@@ -970,14 +639,14 @@ export class SDSHD_json {
970
639
  nonce?: number;
971
640
  value?: bigint;
972
641
  }): Promise<boolean> {
973
- return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
642
+ return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
974
643
  },
975
644
  /**
976
645
  * Simulate burn
977
646
  * Returns gas estimate and result without sending transaction
978
647
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
979
648
  */
980
- async burn(addr: `0x${string}`, amount: bigint, options?: {
649
+ async burn(amount: bigint, options?: {
981
650
  accessList?: import('viem').AccessList;
982
651
  authorizationList?: import('viem').AuthorizationList;
983
652
  chain?: import('viem').Chain | null;
@@ -989,14 +658,14 @@ export class SDSHD_json {
989
658
  nonce?: number;
990
659
  value?: bigint;
991
660
  }): Promise<void> {
992
- return contract.simulate.burn([addr, amount] as const, options) as Promise<void>;
661
+ return contract.simulate.burn([amount] as const, options) as Promise<void>;
993
662
  },
994
663
  /**
995
- * Simulate removeBlackList
664
+ * Simulate burnFrom
996
665
  * Returns gas estimate and result without sending transaction
997
666
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
998
667
  */
999
- async removeBlackList(addrs: `0x${string}`[], options?: {
668
+ async burnFrom(account: `0x${string}`, amount: bigint, options?: {
1000
669
  accessList?: import('viem').AccessList;
1001
670
  authorizationList?: import('viem').AuthorizationList;
1002
671
  chain?: import('viem').Chain | null;
@@ -1008,33 +677,14 @@ export class SDSHD_json {
1008
677
  nonce?: number;
1009
678
  value?: bigint;
1010
679
  }): Promise<void> {
1011
- return contract.simulate.removeBlackList([addrs] as const, options) as Promise<void>;
680
+ return contract.simulate.burnFrom([account, amount] as const, options) as Promise<void>;
1012
681
  },
1013
682
  /**
1014
- * Simulate renounceOwnership
683
+ * Simulate decreaseAllowance
1015
684
  * Returns gas estimate and result without sending transaction
1016
685
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1017
686
  */
1018
- async renounceOwnership(options?: {
1019
- accessList?: import('viem').AccessList;
1020
- authorizationList?: import('viem').AuthorizationList;
1021
- chain?: import('viem').Chain | null;
1022
- dataSuffix?: `0x${string}`;
1023
- gas?: bigint;
1024
- gasPrice?: bigint;
1025
- maxFeePerGas?: bigint;
1026
- maxPriorityFeePerGas?: bigint;
1027
- nonce?: number;
1028
- value?: bigint;
1029
- }): Promise<void> {
1030
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1031
- },
1032
- /**
1033
- * Simulate transfer
1034
- * Returns gas estimate and result without sending transaction
1035
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1036
- */
1037
- async transfer(to: `0x${string}`, value: bigint, options?: {
687
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1038
688
  accessList?: import('viem').AccessList;
1039
689
  authorizationList?: import('viem').AuthorizationList;
1040
690
  chain?: import('viem').Chain | null;
@@ -1046,14 +696,14 @@ export class SDSHD_json {
1046
696
  nonce?: number;
1047
697
  value?: bigint;
1048
698
  }): Promise<boolean> {
1049
- return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
699
+ return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
1050
700
  },
1051
701
  /**
1052
- * Simulate transferFrom
702
+ * Simulate increaseAllowance
1053
703
  * Returns gas estimate and result without sending transaction
1054
704
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1055
705
  */
1056
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
706
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1057
707
  accessList?: import('viem').AccessList;
1058
708
  authorizationList?: import('viem').AuthorizationList;
1059
709
  chain?: import('viem').Chain | null;
@@ -1065,33 +715,14 @@ export class SDSHD_json {
1065
715
  nonce?: number;
1066
716
  value?: bigint;
1067
717
  }): Promise<boolean> {
1068
- return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
718
+ return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
1069
719
  },
1070
720
  /**
1071
- * Simulate transferOwnership
1072
- * Returns gas estimate and result without sending transaction
1073
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1074
- */
1075
- async transferOwnership(newOwner: `0x${string}`, options?: {
1076
- accessList?: import('viem').AccessList;
1077
- authorizationList?: import('viem').AuthorizationList;
1078
- chain?: import('viem').Chain | null;
1079
- dataSuffix?: `0x${string}`;
1080
- gas?: bigint;
1081
- gasPrice?: bigint;
1082
- maxFeePerGas?: bigint;
1083
- maxPriorityFeePerGas?: bigint;
1084
- nonce?: number;
1085
- value?: bigint;
1086
- }): Promise<void> {
1087
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1088
- },
1089
- /**
1090
- * Simulate updateBlackList
721
+ * Simulate transfer
1091
722
  * Returns gas estimate and result without sending transaction
1092
723
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1093
724
  */
1094
- async updateBlackList(addrs: `0x${string}`[], values: boolean[], options?: {
725
+ async transfer(recipient: `0x${string}`, amount: bigint, options?: {
1095
726
  accessList?: import('viem').AccessList;
1096
727
  authorizationList?: import('viem').AuthorizationList;
1097
728
  chain?: import('viem').Chain | null;
@@ -1102,15 +733,15 @@ export class SDSHD_json {
1102
733
  maxPriorityFeePerGas?: bigint;
1103
734
  nonce?: number;
1104
735
  value?: bigint;
1105
- }): Promise<void> {
1106
- return contract.simulate.updateBlackList([addrs, values] as const, options) as Promise<void>;
736
+ }): Promise<boolean> {
737
+ return contract.simulate.transfer([recipient, amount] as const, options) as Promise<boolean>;
1107
738
  },
1108
739
  /**
1109
- * Simulate withdraw
740
+ * Simulate transferFrom
1110
741
  * Returns gas estimate and result without sending transaction
1111
742
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1112
743
  */
1113
- async withdraw(_token: `0x${string}`, options?: {
744
+ async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1114
745
  accessList?: import('viem').AccessList;
1115
746
  authorizationList?: import('viem').AuthorizationList;
1116
747
  chain?: import('viem').Chain | null;
@@ -1121,8 +752,8 @@ export class SDSHD_json {
1121
752
  maxPriorityFeePerGas?: bigint;
1122
753
  nonce?: number;
1123
754
  value?: bigint;
1124
- }): Promise<void> {
1125
- return contract.simulate.withdraw([_token] as const, options) as Promise<void>;
755
+ }): Promise<boolean> {
756
+ return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
1126
757
  }
1127
758
  };
1128
759
  }
@@ -1150,7 +781,7 @@ export class SDSHD_json {
1150
781
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1151
782
  return this.publicClient.watchContractEvent({
1152
783
  address: this.contractAddress,
1153
- abi: SDSHD_jsonAbi,
784
+ abi: XAI_jsonAbi,
1154
785
  eventName: 'Approval',
1155
786
  args: filter,
1156
787
  onLogs: (logs: any[]) => {
@@ -1160,25 +791,6 @@ export class SDSHD_json {
1160
791
  },
1161
792
  }) as () => void;
1162
793
  },
1163
- /**
1164
- * Watch OwnershipTransferred events
1165
- * @param callback Function to call when event is emitted
1166
- * @param filter Optional filter for indexed parameters
1167
- * @returns Unwatch function to stop listening
1168
- */
1169
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1170
- return this.publicClient.watchContractEvent({
1171
- address: this.contractAddress,
1172
- abi: SDSHD_jsonAbi,
1173
- eventName: 'OwnershipTransferred',
1174
- args: filter,
1175
- onLogs: (logs: any[]) => {
1176
- logs.forEach((log: any) => {
1177
- callback(log.args as any);
1178
- });
1179
- },
1180
- }) as () => void;
1181
- },
1182
794
  /**
1183
795
  * Watch Transfer events
1184
796
  * @param callback Function to call when event is emitted
@@ -1188,7 +800,7 @@ export class SDSHD_json {
1188
800
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1189
801
  return this.publicClient.watchContractEvent({
1190
802
  address: this.contractAddress,
1191
- abi: SDSHD_jsonAbi,
803
+ abi: XAI_jsonAbi,
1192
804
  eventName: 'Transfer',
1193
805
  args: filter,
1194
806
  onLogs: (logs: any[]) => {