@gitmyabi/bax 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.
@@ -2,23 +2,23 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * BAX_Token_2022_json ABI
5
+ * BaxToken_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const BAX_Token_2022_jsonAbi = [
9
+ export const BaxToken_jsonAbi = [
10
10
  {
11
- "constant": false,
12
- "inputs": [
11
+ "constant": true,
12
+ "inputs": [],
13
+ "name": "mintingFinished",
14
+ "outputs": [
13
15
  {
14
- "name": "_blackListedUser",
15
- "type": "address"
16
+ "name": "",
17
+ "type": "bool"
16
18
  }
17
19
  ],
18
- "name": "destroyFrozenFunds",
19
- "outputs": [],
20
20
  "payable": false,
21
- "stateMutability": "nonpayable",
21
+ "stateMutability": "view",
22
22
  "type": "function"
23
23
  },
24
24
  {
@@ -35,20 +35,6 @@ export const BAX_Token_2022_jsonAbi = [
35
35
  "stateMutability": "view",
36
36
  "type": "function"
37
37
  },
38
- {
39
- "constant": false,
40
- "inputs": [
41
- {
42
- "name": "_upgradeContract",
43
- "type": "address"
44
- }
45
- ],
46
- "name": "upgrade",
47
- "outputs": [],
48
- "payable": false,
49
- "stateMutability": "nonpayable",
50
- "type": "function"
51
- },
52
38
  {
53
39
  "constant": false,
54
40
  "inputs": [
@@ -62,15 +48,6 @@ export const BAX_Token_2022_jsonAbi = [
62
48
  }
63
49
  ],
64
50
  "name": "approve",
65
- "outputs": [],
66
- "payable": false,
67
- "stateMutability": "nonpayable",
68
- "type": "function"
69
- },
70
- {
71
- "constant": true,
72
- "inputs": [],
73
- "name": "upgradeApplied",
74
51
  "outputs": [
75
52
  {
76
53
  "name": "",
@@ -78,7 +55,7 @@ export const BAX_Token_2022_jsonAbi = [
78
55
  }
79
56
  ],
80
57
  "payable": false,
81
- "stateMutability": "view",
58
+ "stateMutability": "nonpayable",
82
59
  "type": "function"
83
60
  },
84
61
  {
@@ -95,20 +72,6 @@ export const BAX_Token_2022_jsonAbi = [
95
72
  "stateMutability": "view",
96
73
  "type": "function"
97
74
  },
98
- {
99
- "constant": true,
100
- "inputs": [],
101
- "name": "upgradeContract",
102
- "outputs": [
103
- {
104
- "name": "",
105
- "type": "address"
106
- }
107
- ],
108
- "payable": false,
109
- "stateMutability": "view",
110
- "type": "function"
111
- },
112
75
  {
113
76
  "constant": false,
114
77
  "inputs": [
@@ -126,43 +89,24 @@ export const BAX_Token_2022_jsonAbi = [
126
89
  }
127
90
  ],
128
91
  "name": "transferFrom",
129
- "outputs": [],
130
- "payable": false,
131
- "stateMutability": "nonpayable",
132
- "type": "function"
133
- },
134
- {
135
- "constant": true,
136
- "inputs": [
137
- {
138
- "name": "",
139
- "type": "address"
140
- }
141
- ],
142
- "name": "balances",
143
92
  "outputs": [
144
93
  {
145
94
  "name": "",
146
- "type": "uint256"
95
+ "type": "bool"
147
96
  }
148
97
  ],
149
98
  "payable": false,
150
- "stateMutability": "view",
99
+ "stateMutability": "nonpayable",
151
100
  "type": "function"
152
101
  },
153
102
  {
154
103
  "constant": true,
155
- "inputs": [
156
- {
157
- "name": "",
158
- "type": "address"
159
- }
160
- ],
161
- "name": "checkFrozenAlt",
104
+ "inputs": [],
105
+ "name": "decimals",
162
106
  "outputs": [
163
107
  {
164
108
  "name": "",
165
- "type": "bool"
109
+ "type": "uint8"
166
110
  }
167
111
  ],
168
112
  "payable": false,
@@ -172,7 +116,7 @@ export const BAX_Token_2022_jsonAbi = [
172
116
  {
173
117
  "constant": true,
174
118
  "inputs": [],
175
- "name": "decimals",
119
+ "name": "cap",
176
120
  "outputs": [
177
121
  {
178
122
  "name": "",
@@ -183,25 +127,25 @@ export const BAX_Token_2022_jsonAbi = [
183
127
  "stateMutability": "view",
184
128
  "type": "function"
185
129
  },
186
- {
187
- "constant": false,
188
- "inputs": [],
189
- "name": "unpause",
190
- "outputs": [],
191
- "payable": false,
192
- "stateMutability": "nonpayable",
193
- "type": "function"
194
- },
195
130
  {
196
131
  "constant": false,
197
132
  "inputs": [
198
133
  {
199
- "name": "amount",
134
+ "name": "_to",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "name": "_amount",
200
139
  "type": "uint256"
201
140
  }
202
141
  ],
203
- "name": "burn",
204
- "outputs": [],
142
+ "name": "mint",
143
+ "outputs": [
144
+ {
145
+ "name": "",
146
+ "type": "bool"
147
+ }
148
+ ],
205
149
  "payable": false,
206
150
  "stateMutability": "nonpayable",
207
151
  "type": "function"
@@ -210,67 +154,35 @@ export const BAX_Token_2022_jsonAbi = [
210
154
  "constant": false,
211
155
  "inputs": [
212
156
  {
213
- "name": "newBasisPoints",
214
- "type": "uint256"
215
- },
216
- {
217
- "name": "newMaxFee",
157
+ "name": "_value",
218
158
  "type": "uint256"
219
159
  }
220
160
  ],
221
- "name": "setFee",
161
+ "name": "burn",
222
162
  "outputs": [],
223
163
  "payable": false,
224
164
  "stateMutability": "nonpayable",
225
165
  "type": "function"
226
166
  },
227
167
  {
228
- "constant": true,
229
- "inputs": [],
230
- "name": "feeLimit",
231
- "outputs": [
232
- {
233
- "name": "",
234
- "type": "uint256"
235
- }
236
- ],
237
- "payable": false,
238
- "stateMutability": "view",
239
- "type": "function"
240
- },
241
- {
242
- "constant": true,
168
+ "constant": false,
243
169
  "inputs": [
244
170
  {
245
- "name": "",
171
+ "name": "_spender",
246
172
  "type": "address"
247
173
  },
248
174
  {
249
- "name": "",
250
- "type": "address"
175
+ "name": "_subtractedValue",
176
+ "type": "uint256"
251
177
  }
252
178
  ],
253
- "name": "allowed",
179
+ "name": "decreaseApproval",
254
180
  "outputs": [
255
181
  {
256
182
  "name": "",
257
- "type": "uint256"
258
- }
259
- ],
260
- "payable": false,
261
- "stateMutability": "view",
262
- "type": "function"
263
- },
264
- {
265
- "constant": false,
266
- "inputs": [
267
- {
268
- "name": "_clearedUser",
269
- "type": "address"
183
+ "type": "bool"
270
184
  }
271
185
  ],
272
- "name": "unfreezeWallet",
273
- "outputs": [],
274
186
  "payable": false,
275
187
  "stateMutability": "nonpayable",
276
188
  "type": "function"
@@ -279,14 +191,14 @@ export const BAX_Token_2022_jsonAbi = [
279
191
  "constant": true,
280
192
  "inputs": [
281
193
  {
282
- "name": "who",
194
+ "name": "_owner",
283
195
  "type": "address"
284
196
  }
285
197
  ],
286
198
  "name": "balanceOf",
287
199
  "outputs": [
288
200
  {
289
- "name": "",
201
+ "name": "balance",
290
202
  "type": "uint256"
291
203
  }
292
204
  ],
@@ -297,16 +209,7 @@ export const BAX_Token_2022_jsonAbi = [
297
209
  {
298
210
  "constant": false,
299
211
  "inputs": [],
300
- "name": "pause",
301
- "outputs": [],
302
- "payable": false,
303
- "stateMutability": "nonpayable",
304
- "type": "function"
305
- },
306
- {
307
- "constant": true,
308
- "inputs": [],
309
- "name": "contractPaused",
212
+ "name": "finishMinting",
310
213
  "outputs": [
311
214
  {
312
215
  "name": "",
@@ -314,7 +217,7 @@ export const BAX_Token_2022_jsonAbi = [
314
217
  }
315
218
  ],
316
219
  "payable": false,
317
- "stateMutability": "view",
220
+ "stateMutability": "nonpayable",
318
221
  "type": "function"
319
222
  },
320
223
  {
@@ -345,43 +248,19 @@ export const BAX_Token_2022_jsonAbi = [
345
248
  "stateMutability": "view",
346
249
  "type": "function"
347
250
  },
348
- {
349
- "constant": true,
350
- "inputs": [],
351
- "name": "feeRate",
352
- "outputs": [
353
- {
354
- "name": "",
355
- "type": "uint256"
356
- }
357
- ],
358
- "payable": false,
359
- "stateMutability": "view",
360
- "type": "function"
361
- },
362
251
  {
363
252
  "constant": false,
364
253
  "inputs": [
365
254
  {
366
- "name": "_evilUser",
255
+ "name": "_to",
367
256
  "type": "address"
368
- }
369
- ],
370
- "name": "freezeWallet",
371
- "outputs": [],
372
- "payable": false,
373
- "stateMutability": "nonpayable",
374
- "type": "function"
375
- },
376
- {
377
- "constant": true,
378
- "inputs": [
257
+ },
379
258
  {
380
- "name": "_maker",
381
- "type": "address"
259
+ "name": "_value",
260
+ "type": "uint256"
382
261
  }
383
262
  ],
384
- "name": "checkFrozen",
263
+ "name": "transfer",
385
264
  "outputs": [
386
265
  {
387
266
  "name": "",
@@ -389,20 +268,6 @@ export const BAX_Token_2022_jsonAbi = [
389
268
  }
390
269
  ],
391
270
  "payable": false,
392
- "stateMutability": "view",
393
- "type": "function"
394
- },
395
- {
396
- "constant": false,
397
- "inputs": [
398
- {
399
- "name": "amount",
400
- "type": "uint256"
401
- }
402
- ],
403
- "name": "mint",
404
- "outputs": [],
405
- "payable": false,
406
271
  "stateMutability": "nonpayable",
407
272
  "type": "function"
408
273
  },
@@ -410,46 +275,23 @@ export const BAX_Token_2022_jsonAbi = [
410
275
  "constant": false,
411
276
  "inputs": [
412
277
  {
413
- "name": "_to",
278
+ "name": "_spender",
414
279
  "type": "address"
415
280
  },
416
281
  {
417
- "name": "_value",
282
+ "name": "_addedValue",
418
283
  "type": "uint256"
419
284
  }
420
285
  ],
421
- "name": "transfer",
422
- "outputs": [],
423
- "payable": false,
424
- "stateMutability": "nonpayable",
425
- "type": "function"
426
- },
427
- {
428
- "constant": true,
429
- "inputs": [],
430
- "name": "ownerAlt",
431
- "outputs": [
432
- {
433
- "name": "",
434
- "type": "address"
435
- }
436
- ],
437
- "payable": false,
438
- "stateMutability": "view",
439
- "type": "function"
440
- },
441
- {
442
- "constant": true,
443
- "inputs": [],
444
- "name": "MAX_CAP",
286
+ "name": "increaseApproval",
445
287
  "outputs": [
446
288
  {
447
289
  "name": "",
448
- "type": "uint256"
290
+ "type": "bool"
449
291
  }
450
292
  ],
451
293
  "payable": false,
452
- "stateMutability": "view",
294
+ "stateMutability": "nonpayable",
453
295
  "type": "function"
454
296
  },
455
297
  {
@@ -465,34 +307,6 @@ export const BAX_Token_2022_jsonAbi = [
465
307
  }
466
308
  ],
467
309
  "name": "allowance",
468
- "outputs": [
469
- {
470
- "name": "remaining",
471
- "type": "uint256"
472
- }
473
- ],
474
- "payable": false,
475
- "stateMutability": "view",
476
- "type": "function"
477
- },
478
- {
479
- "constant": true,
480
- "inputs": [],
481
- "name": "totalSupplyAlt",
482
- "outputs": [
483
- {
484
- "name": "",
485
- "type": "uint256"
486
- }
487
- ],
488
- "payable": false,
489
- "stateMutability": "view",
490
- "type": "function"
491
- },
492
- {
493
- "constant": true,
494
- "inputs": [],
495
- "name": "MAX_UINT",
496
310
  "outputs": [
497
311
  {
498
312
  "name": "",
@@ -518,24 +332,7 @@ export const BAX_Token_2022_jsonAbi = [
518
332
  "type": "function"
519
333
  },
520
334
  {
521
- "inputs": [
522
- {
523
- "name": "_initialSupply",
524
- "type": "uint256"
525
- },
526
- {
527
- "name": "_name",
528
- "type": "string"
529
- },
530
- {
531
- "name": "_symbol",
532
- "type": "string"
533
- },
534
- {
535
- "name": "_decimals",
536
- "type": "uint256"
537
- }
538
- ],
335
+ "inputs": [],
539
336
  "payable": false,
540
337
  "stateMutability": "nonpayable",
541
338
  "type": "constructor"
@@ -543,6 +340,11 @@ export const BAX_Token_2022_jsonAbi = [
543
340
  {
544
341
  "anonymous": false,
545
342
  "inputs": [
343
+ {
344
+ "indexed": true,
345
+ "name": "to",
346
+ "type": "address"
347
+ },
546
348
  {
547
349
  "indexed": false,
548
350
  "name": "amount",
@@ -554,84 +356,42 @@ export const BAX_Token_2022_jsonAbi = [
554
356
  },
555
357
  {
556
358
  "anonymous": false,
557
- "inputs": [
558
- {
559
- "indexed": false,
560
- "name": "amount",
561
- "type": "uint256"
562
- }
563
- ],
564
- "name": "Burn",
359
+ "inputs": [],
360
+ "name": "MintFinished",
565
361
  "type": "event"
566
362
  },
567
363
  {
568
364
  "anonymous": false,
569
365
  "inputs": [
570
366
  {
571
- "indexed": false,
572
- "name": "newAddress",
367
+ "indexed": true,
368
+ "name": "previousOwner",
573
369
  "type": "address"
574
- }
575
- ],
576
- "name": "Upgrade",
577
- "type": "event"
578
- },
579
- {
580
- "anonymous": false,
581
- "inputs": [
582
- {
583
- "indexed": false,
584
- "name": "feeBasisPoints",
585
- "type": "uint256"
586
370
  },
587
371
  {
588
- "indexed": false,
589
- "name": "maxFee",
590
- "type": "uint256"
372
+ "indexed": true,
373
+ "name": "newOwner",
374
+ "type": "address"
591
375
  }
592
376
  ],
593
- "name": "Params",
377
+ "name": "OwnershipTransferred",
594
378
  "type": "event"
595
379
  },
596
380
  {
597
381
  "anonymous": false,
598
382
  "inputs": [
599
383
  {
600
- "indexed": false,
601
- "name": "_blackListedUser",
384
+ "indexed": true,
385
+ "name": "burner",
602
386
  "type": "address"
603
387
  },
604
388
  {
605
389
  "indexed": false,
606
- "name": "_balance",
390
+ "name": "value",
607
391
  "type": "uint256"
608
392
  }
609
393
  ],
610
- "name": "DestroyedFrozenFunds",
611
- "type": "event"
612
- },
613
- {
614
- "anonymous": false,
615
- "inputs": [
616
- {
617
- "indexed": false,
618
- "name": "_user",
619
- "type": "address"
620
- }
621
- ],
622
- "name": "WalletFrozen",
623
- "type": "event"
624
- },
625
- {
626
- "anonymous": false,
627
- "inputs": [
628
- {
629
- "indexed": false,
630
- "name": "_user",
631
- "type": "address"
632
- }
633
- ],
634
- "name": "WalletUnfrozen",
394
+ "name": "Burn",
635
395
  "type": "event"
636
396
  },
637
397
  {
@@ -677,35 +437,23 @@ export const BAX_Token_2022_jsonAbi = [
677
437
  ],
678
438
  "name": "Transfer",
679
439
  "type": "event"
680
- },
681
- {
682
- "anonymous": false,
683
- "inputs": [],
684
- "name": "Pause",
685
- "type": "event"
686
- },
687
- {
688
- "anonymous": false,
689
- "inputs": [],
690
- "name": "Unpause",
691
- "type": "event"
692
440
  }
693
441
  ] as const satisfies Abi;
694
442
 
695
443
  /**
696
- * Type-safe ABI for BAX_Token_2022_json
444
+ * Type-safe ABI for BaxToken_json
697
445
  */
698
- export type BAX_Token_2022_jsonAbi = typeof BAX_Token_2022_jsonAbi;
446
+ export type BaxToken_jsonAbi = typeof BaxToken_jsonAbi;
699
447
 
700
448
  /**
701
- * Contract instance type for BAX_Token_2022_json
449
+ * Contract instance type for BaxToken_json
702
450
  */
703
451
  // Use any for contract type to avoid complex viem type issues
704
452
  // The runtime behavior is type-safe through viem's ABI typing
705
- export type BAX_Token_2022_jsonContract = any;
453
+ export type BaxToken_jsonContract = any;
706
454
 
707
455
  /**
708
- * BAX_Token_2022_json Contract Class
456
+ * BaxToken_json Contract Class
709
457
  *
710
458
  * Provides a class-based API similar to TypeChain for interacting with the contract.
711
459
  *
@@ -713,12 +461,12 @@ export type BAX_Token_2022_jsonContract = any;
713
461
  * ```typescript
714
462
  * import { createPublicClient, createWalletClient, http } from 'viem';
715
463
  * import { mainnet } from 'viem/chains';
716
- * import { BAX_Token_2022_json } from 'BAX_Token_2022_json';
464
+ * import { BaxToken_json } from 'BaxToken_json';
717
465
  *
718
466
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
719
467
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
720
468
  *
721
- * const contract = new BAX_Token_2022_json('0x...', { publicClient, walletClient });
469
+ * const contract = new BaxToken_json('0x...', { publicClient, walletClient });
722
470
  *
723
471
  * // Read functions
724
472
  * const result = await contract.balanceOf('0x...');
@@ -736,8 +484,8 @@ export type BAX_Token_2022_jsonContract = any;
736
484
  * });
737
485
  * ```
738
486
  */
739
- export class BAX_Token_2022_json {
740
- private contract: BAX_Token_2022_jsonContract;
487
+ export class BaxToken_json {
488
+ private contract: BaxToken_jsonContract;
741
489
  private contractAddress: Address;
742
490
  private publicClient: PublicClient;
743
491
 
@@ -752,7 +500,7 @@ export class BAX_Token_2022_json {
752
500
  this.publicClient = clients.publicClient;
753
501
  this.contract = getContract({
754
502
  address,
755
- abi: BAX_Token_2022_jsonAbi,
503
+ abi: BaxToken_jsonAbi,
756
504
  client: {
757
505
  public: clients.publicClient,
758
506
  wallet: clients.walletClient,
@@ -770,24 +518,24 @@ export class BAX_Token_2022_json {
770
518
  /**
771
519
  * Get the underlying viem contract instance
772
520
  */
773
- getContract(): BAX_Token_2022_jsonContract {
521
+ getContract(): BaxToken_jsonContract {
774
522
  return this.contract;
775
523
  }
776
524
 
777
525
  /**
778
- * name
526
+ * mintingFinished
779
527
  * view
780
528
  */
781
- async name(): Promise<string> {
782
- return this.contract.read.name() as Promise<string>;
529
+ async mintingFinished(): Promise<boolean> {
530
+ return this.contract.read.mintingFinished() as Promise<boolean>;
783
531
  }
784
532
 
785
533
  /**
786
- * upgradeApplied
534
+ * name
787
535
  * view
788
536
  */
789
- async upgradeApplied(): Promise<boolean> {
790
- return this.contract.read.upgradeApplied() as Promise<boolean>;
537
+ async name(): Promise<string> {
538
+ return this.contract.read.name() as Promise<string>;
791
539
  }
792
540
 
793
541
  /**
@@ -798,30 +546,6 @@ export class BAX_Token_2022_json {
798
546
  return this.contract.read.totalSupply() as Promise<bigint>;
799
547
  }
800
548
 
801
- /**
802
- * upgradeContract
803
- * view
804
- */
805
- async upgradeContract(): Promise<`0x${string}`> {
806
- return this.contract.read.upgradeContract() as Promise<`0x${string}`>;
807
- }
808
-
809
- /**
810
- * balances
811
- * view
812
- */
813
- async balances(arg0: `0x${string}`): Promise<bigint> {
814
- return this.contract.read.balances([arg0] as const) as Promise<bigint>;
815
- }
816
-
817
- /**
818
- * checkFrozenAlt
819
- * view
820
- */
821
- async checkFrozenAlt(arg0: `0x${string}`): Promise<boolean> {
822
- return this.contract.read.checkFrozenAlt([arg0] as const) as Promise<boolean>;
823
- }
824
-
825
549
  /**
826
550
  * decimals
827
551
  * view
@@ -831,153 +555,43 @@ export class BAX_Token_2022_json {
831
555
  }
832
556
 
833
557
  /**
834
- * feeLimit
835
- * view
836
- */
837
- async feeLimit(): Promise<bigint> {
838
- return this.contract.read.feeLimit() as Promise<bigint>;
839
- }
840
-
841
- /**
842
- * allowed
843
- * view
844
- */
845
- async allowed(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
846
- return this.contract.read.allowed([arg0, arg1] as const) as Promise<bigint>;
847
- }
848
-
849
- /**
850
- * balanceOf
851
- * view
852
- */
853
- async balanceOf(who: `0x${string}`): Promise<bigint> {
854
- return this.contract.read.balanceOf([who] as const) as Promise<bigint>;
855
- }
856
-
857
- /**
858
- * contractPaused
859
- * view
860
- */
861
- async contractPaused(): Promise<boolean> {
862
- return this.contract.read.contractPaused() as Promise<boolean>;
863
- }
864
-
865
- /**
866
- * owner
867
- * view
868
- */
869
- async owner(): Promise<`0x${string}`> {
870
- return this.contract.read.owner() as Promise<`0x${string}`>;
871
- }
872
-
873
- /**
874
- * symbol
875
- * view
876
- */
877
- async symbol(): Promise<string> {
878
- return this.contract.read.symbol() as Promise<string>;
879
- }
880
-
881
- /**
882
- * feeRate
883
- * view
884
- */
885
- async feeRate(): Promise<bigint> {
886
- return this.contract.read.feeRate() as Promise<bigint>;
887
- }
888
-
889
- /**
890
- * checkFrozen
891
- * view
892
- */
893
- async checkFrozen(_maker: `0x${string}`): Promise<boolean> {
894
- return this.contract.read.checkFrozen([_maker] as const) as Promise<boolean>;
895
- }
896
-
897
- /**
898
- * ownerAlt
899
- * view
900
- */
901
- async ownerAlt(): Promise<`0x${string}`> {
902
- return this.contract.read.ownerAlt() as Promise<`0x${string}`>;
903
- }
904
-
905
- /**
906
- * MAX_CAP
907
- * view
908
- */
909
- async MAX_CAP(): Promise<bigint> {
910
- return this.contract.read.MAX_CAP() as Promise<bigint>;
911
- }
912
-
913
- /**
914
- * allowance
558
+ * cap
915
559
  * view
916
560
  */
917
- async allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint> {
918
- return this.contract.read.allowance([_owner, _spender] as const) as Promise<bigint>;
561
+ async cap(): Promise<bigint> {
562
+ return this.contract.read.cap() as Promise<bigint>;
919
563
  }
920
564
 
921
565
  /**
922
- * totalSupplyAlt
566
+ * balanceOf
923
567
  * view
924
568
  */
925
- async totalSupplyAlt(): Promise<bigint> {
926
- return this.contract.read.totalSupplyAlt() as Promise<bigint>;
569
+ async balanceOf(_owner: `0x${string}`): Promise<bigint> {
570
+ return this.contract.read.balanceOf([_owner] as const) as Promise<bigint>;
927
571
  }
928
572
 
929
573
  /**
930
- * MAX_UINT
574
+ * owner
931
575
  * view
932
576
  */
933
- async MAX_UINT(): Promise<bigint> {
934
- return this.contract.read.MAX_UINT() as Promise<bigint>;
577
+ async owner(): Promise<`0x${string}`> {
578
+ return this.contract.read.owner() as Promise<`0x${string}`>;
935
579
  }
936
580
 
937
581
  /**
938
- * destroyFrozenFunds
939
- * nonpayable
940
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
582
+ * symbol
583
+ * view
941
584
  */
942
- async destroyFrozenFunds(_blackListedUser: `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<`0x${string}`> {
954
- if (!this.contract.write) {
955
- throw new Error('Wallet client is required for write operations');
956
- }
957
- return this.contract.write.destroyFrozenFunds([_blackListedUser] as const, options) as Promise<`0x${string}`>;
585
+ async symbol(): Promise<string> {
586
+ return this.contract.read.symbol() as Promise<string>;
958
587
  }
959
588
 
960
589
  /**
961
- * upgrade
962
- * nonpayable
963
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
590
+ * allowance
591
+ * view
964
592
  */
965
- async upgrade(_upgradeContract: `0x${string}`, options?: {
966
- accessList?: import('viem').AccessList;
967
- authorizationList?: import('viem').AuthorizationList;
968
- chain?: import('viem').Chain | null;
969
- dataSuffix?: `0x${string}`;
970
- gas?: bigint;
971
- gasPrice?: bigint;
972
- maxFeePerGas?: bigint;
973
- maxPriorityFeePerGas?: bigint;
974
- nonce?: number;
975
- value?: bigint;
976
- }): Promise<`0x${string}`> {
977
- if (!this.contract.write) {
978
- throw new Error('Wallet client is required for write operations');
979
- }
980
- return this.contract.write.upgrade([_upgradeContract] as const, options) as Promise<`0x${string}`>;
593
+ async allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint> {
594
+ return this.contract.read.allowance([_owner, _spender] as const) as Promise<bigint>;
981
595
  }
982
596
 
983
597
  /**
@@ -1027,11 +641,11 @@ export class BAX_Token_2022_json {
1027
641
  }
1028
642
 
1029
643
  /**
1030
- * unpause
644
+ * mint
1031
645
  * nonpayable
1032
646
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1033
647
  */
1034
- async unpause(options?: {
648
+ async mint(_to: `0x${string}`, _amount: bigint, options?: {
1035
649
  accessList?: import('viem').AccessList;
1036
650
  authorizationList?: import('viem').AuthorizationList;
1037
651
  chain?: import('viem').Chain | null;
@@ -1046,7 +660,7 @@ export class BAX_Token_2022_json {
1046
660
  if (!this.contract.write) {
1047
661
  throw new Error('Wallet client is required for write operations');
1048
662
  }
1049
- return this.contract.write.unpause(options) as Promise<`0x${string}`>;
663
+ return this.contract.write.mint([_to, _amount] as const, options) as Promise<`0x${string}`>;
1050
664
  }
1051
665
 
1052
666
  /**
@@ -1054,53 +668,7 @@ export class BAX_Token_2022_json {
1054
668
  * nonpayable
1055
669
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1056
670
  */
1057
- async burn(amount: bigint, options?: {
1058
- accessList?: import('viem').AccessList;
1059
- authorizationList?: import('viem').AuthorizationList;
1060
- chain?: import('viem').Chain | null;
1061
- dataSuffix?: `0x${string}`;
1062
- gas?: bigint;
1063
- gasPrice?: bigint;
1064
- maxFeePerGas?: bigint;
1065
- maxPriorityFeePerGas?: bigint;
1066
- nonce?: number;
1067
- value?: bigint;
1068
- }): Promise<`0x${string}`> {
1069
- if (!this.contract.write) {
1070
- throw new Error('Wallet client is required for write operations');
1071
- }
1072
- return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
1073
- }
1074
-
1075
- /**
1076
- * setFee
1077
- * nonpayable
1078
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1079
- */
1080
- async setFee(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1081
- accessList?: import('viem').AccessList;
1082
- authorizationList?: import('viem').AuthorizationList;
1083
- chain?: import('viem').Chain | null;
1084
- dataSuffix?: `0x${string}`;
1085
- gas?: bigint;
1086
- gasPrice?: bigint;
1087
- maxFeePerGas?: bigint;
1088
- maxPriorityFeePerGas?: bigint;
1089
- nonce?: number;
1090
- value?: bigint;
1091
- }): Promise<`0x${string}`> {
1092
- if (!this.contract.write) {
1093
- throw new Error('Wallet client is required for write operations');
1094
- }
1095
- return this.contract.write.setFee([newBasisPoints, newMaxFee] as const, options) as Promise<`0x${string}`>;
1096
- }
1097
-
1098
- /**
1099
- * unfreezeWallet
1100
- * nonpayable
1101
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1102
- */
1103
- async unfreezeWallet(_clearedUser: `0x${string}`, options?: {
671
+ async burn(_value: bigint, options?: {
1104
672
  accessList?: import('viem').AccessList;
1105
673
  authorizationList?: import('viem').AuthorizationList;
1106
674
  chain?: import('viem').Chain | null;
@@ -1115,15 +683,15 @@ export class BAX_Token_2022_json {
1115
683
  if (!this.contract.write) {
1116
684
  throw new Error('Wallet client is required for write operations');
1117
685
  }
1118
- return this.contract.write.unfreezeWallet([_clearedUser] as const, options) as Promise<`0x${string}`>;
686
+ return this.contract.write.burn([_value] as const, options) as Promise<`0x${string}`>;
1119
687
  }
1120
688
 
1121
689
  /**
1122
- * pause
690
+ * decreaseApproval
1123
691
  * nonpayable
1124
692
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1125
693
  */
1126
- async pause(options?: {
694
+ async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
1127
695
  accessList?: import('viem').AccessList;
1128
696
  authorizationList?: import('viem').AuthorizationList;
1129
697
  chain?: import('viem').Chain | null;
@@ -1138,15 +706,15 @@ export class BAX_Token_2022_json {
1138
706
  if (!this.contract.write) {
1139
707
  throw new Error('Wallet client is required for write operations');
1140
708
  }
1141
- return this.contract.write.pause(options) as Promise<`0x${string}`>;
709
+ return this.contract.write.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<`0x${string}`>;
1142
710
  }
1143
711
 
1144
712
  /**
1145
- * freezeWallet
713
+ * finishMinting
1146
714
  * nonpayable
1147
715
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1148
716
  */
1149
- async freezeWallet(_evilUser: `0x${string}`, options?: {
717
+ async finishMinting(options?: {
1150
718
  accessList?: import('viem').AccessList;
1151
719
  authorizationList?: import('viem').AuthorizationList;
1152
720
  chain?: import('viem').Chain | null;
@@ -1161,15 +729,15 @@ export class BAX_Token_2022_json {
1161
729
  if (!this.contract.write) {
1162
730
  throw new Error('Wallet client is required for write operations');
1163
731
  }
1164
- return this.contract.write.freezeWallet([_evilUser] as const, options) as Promise<`0x${string}`>;
732
+ return this.contract.write.finishMinting(options) as Promise<`0x${string}`>;
1165
733
  }
1166
734
 
1167
735
  /**
1168
- * mint
736
+ * transfer
1169
737
  * nonpayable
1170
738
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1171
739
  */
1172
- async mint(amount: bigint, options?: {
740
+ async transfer(_to: `0x${string}`, _value: bigint, options?: {
1173
741
  accessList?: import('viem').AccessList;
1174
742
  authorizationList?: import('viem').AuthorizationList;
1175
743
  chain?: import('viem').Chain | null;
@@ -1184,15 +752,15 @@ export class BAX_Token_2022_json {
1184
752
  if (!this.contract.write) {
1185
753
  throw new Error('Wallet client is required for write operations');
1186
754
  }
1187
- return this.contract.write.mint([amount] as const, options) as Promise<`0x${string}`>;
755
+ return this.contract.write.transfer([_to, _value] as const, options) as Promise<`0x${string}`>;
1188
756
  }
1189
757
 
1190
758
  /**
1191
- * transfer
759
+ * increaseApproval
1192
760
  * nonpayable
1193
761
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1194
762
  */
1195
- async transfer(_to: `0x${string}`, _value: bigint, options?: {
763
+ async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
1196
764
  accessList?: import('viem').AccessList;
1197
765
  authorizationList?: import('viem').AuthorizationList;
1198
766
  chain?: import('viem').Chain | null;
@@ -1207,7 +775,7 @@ export class BAX_Token_2022_json {
1207
775
  if (!this.contract.write) {
1208
776
  throw new Error('Wallet client is required for write operations');
1209
777
  }
1210
- return this.contract.write.transfer([_to, _value] as const, options) as Promise<`0x${string}`>;
778
+ return this.contract.write.increaseApproval([_spender, _addedValue] as const, options) as Promise<`0x${string}`>;
1211
779
  }
1212
780
 
1213
781
  /**
@@ -1249,44 +817,6 @@ export class BAX_Token_2022_json {
1249
817
  throw new Error('Public client is required for simulation');
1250
818
  }
1251
819
  return {
1252
- /**
1253
- * Simulate destroyFrozenFunds
1254
- * Returns gas estimate and result without sending transaction
1255
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1256
- */
1257
- async destroyFrozenFunds(_blackListedUser: `0x${string}`, options?: {
1258
- accessList?: import('viem').AccessList;
1259
- authorizationList?: import('viem').AuthorizationList;
1260
- chain?: import('viem').Chain | null;
1261
- dataSuffix?: `0x${string}`;
1262
- gas?: bigint;
1263
- gasPrice?: bigint;
1264
- maxFeePerGas?: bigint;
1265
- maxPriorityFeePerGas?: bigint;
1266
- nonce?: number;
1267
- value?: bigint;
1268
- }): Promise<void> {
1269
- return contract.simulate.destroyFrozenFunds([_blackListedUser] as const, options) as Promise<void>;
1270
- },
1271
- /**
1272
- * Simulate upgrade
1273
- * Returns gas estimate and result without sending transaction
1274
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1275
- */
1276
- async upgrade(_upgradeContract: `0x${string}`, options?: {
1277
- accessList?: import('viem').AccessList;
1278
- authorizationList?: import('viem').AuthorizationList;
1279
- chain?: import('viem').Chain | null;
1280
- dataSuffix?: `0x${string}`;
1281
- gas?: bigint;
1282
- gasPrice?: bigint;
1283
- maxFeePerGas?: bigint;
1284
- maxPriorityFeePerGas?: bigint;
1285
- nonce?: number;
1286
- value?: bigint;
1287
- }): Promise<void> {
1288
- return contract.simulate.upgrade([_upgradeContract] as const, options) as Promise<void>;
1289
- },
1290
820
  /**
1291
821
  * Simulate approve
1292
822
  * Returns gas estimate and result without sending transaction
@@ -1303,8 +833,8 @@ export class BAX_Token_2022_json {
1303
833
  maxPriorityFeePerGas?: bigint;
1304
834
  nonce?: number;
1305
835
  value?: bigint;
1306
- }): Promise<void> {
1307
- return contract.simulate.approve([_spender, _value] as const, options) as Promise<void>;
836
+ }): Promise<boolean> {
837
+ return contract.simulate.approve([_spender, _value] as const, options) as Promise<boolean>;
1308
838
  },
1309
839
  /**
1310
840
  * Simulate transferFrom
@@ -1322,15 +852,15 @@ export class BAX_Token_2022_json {
1322
852
  maxPriorityFeePerGas?: bigint;
1323
853
  nonce?: number;
1324
854
  value?: bigint;
1325
- }): Promise<void> {
1326
- return contract.simulate.transferFrom([_from, _to, _value] as const, options) as Promise<void>;
855
+ }): Promise<boolean> {
856
+ return contract.simulate.transferFrom([_from, _to, _value] as const, options) as Promise<boolean>;
1327
857
  },
1328
858
  /**
1329
- * Simulate unpause
859
+ * Simulate mint
1330
860
  * Returns gas estimate and result without sending transaction
1331
861
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1332
862
  */
1333
- async unpause(options?: {
863
+ async mint(_to: `0x${string}`, _amount: bigint, options?: {
1334
864
  accessList?: import('viem').AccessList;
1335
865
  authorizationList?: import('viem').AuthorizationList;
1336
866
  chain?: import('viem').Chain | null;
@@ -1341,53 +871,15 @@ export class BAX_Token_2022_json {
1341
871
  maxPriorityFeePerGas?: bigint;
1342
872
  nonce?: number;
1343
873
  value?: bigint;
1344
- }): Promise<void> {
1345
- return contract.simulate.unpause(options) as Promise<void>;
874
+ }): Promise<boolean> {
875
+ return contract.simulate.mint([_to, _amount] as const, options) as Promise<boolean>;
1346
876
  },
1347
877
  /**
1348
878
  * Simulate burn
1349
879
  * Returns gas estimate and result without sending transaction
1350
880
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1351
881
  */
1352
- async burn(amount: bigint, options?: {
1353
- accessList?: import('viem').AccessList;
1354
- authorizationList?: import('viem').AuthorizationList;
1355
- chain?: import('viem').Chain | null;
1356
- dataSuffix?: `0x${string}`;
1357
- gas?: bigint;
1358
- gasPrice?: bigint;
1359
- maxFeePerGas?: bigint;
1360
- maxPriorityFeePerGas?: bigint;
1361
- nonce?: number;
1362
- value?: bigint;
1363
- }): Promise<void> {
1364
- return contract.simulate.burn([amount] as const, options) as Promise<void>;
1365
- },
1366
- /**
1367
- * Simulate setFee
1368
- * Returns gas estimate and result without sending transaction
1369
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1370
- */
1371
- async setFee(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1372
- accessList?: import('viem').AccessList;
1373
- authorizationList?: import('viem').AuthorizationList;
1374
- chain?: import('viem').Chain | null;
1375
- dataSuffix?: `0x${string}`;
1376
- gas?: bigint;
1377
- gasPrice?: bigint;
1378
- maxFeePerGas?: bigint;
1379
- maxPriorityFeePerGas?: bigint;
1380
- nonce?: number;
1381
- value?: bigint;
1382
- }): Promise<void> {
1383
- return contract.simulate.setFee([newBasisPoints, newMaxFee] as const, options) as Promise<void>;
1384
- },
1385
- /**
1386
- * Simulate unfreezeWallet
1387
- * Returns gas estimate and result without sending transaction
1388
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1389
- */
1390
- async unfreezeWallet(_clearedUser: `0x${string}`, options?: {
882
+ async burn(_value: bigint, options?: {
1391
883
  accessList?: import('viem').AccessList;
1392
884
  authorizationList?: import('viem').AuthorizationList;
1393
885
  chain?: import('viem').Chain | null;
@@ -1399,14 +891,14 @@ export class BAX_Token_2022_json {
1399
891
  nonce?: number;
1400
892
  value?: bigint;
1401
893
  }): Promise<void> {
1402
- return contract.simulate.unfreezeWallet([_clearedUser] as const, options) as Promise<void>;
894
+ return contract.simulate.burn([_value] as const, options) as Promise<void>;
1403
895
  },
1404
896
  /**
1405
- * Simulate pause
897
+ * Simulate decreaseApproval
1406
898
  * Returns gas estimate and result without sending transaction
1407
899
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1408
900
  */
1409
- async pause(options?: {
901
+ async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
1410
902
  accessList?: import('viem').AccessList;
1411
903
  authorizationList?: import('viem').AuthorizationList;
1412
904
  chain?: import('viem').Chain | null;
@@ -1417,15 +909,15 @@ export class BAX_Token_2022_json {
1417
909
  maxPriorityFeePerGas?: bigint;
1418
910
  nonce?: number;
1419
911
  value?: bigint;
1420
- }): Promise<void> {
1421
- return contract.simulate.pause(options) as Promise<void>;
912
+ }): Promise<boolean> {
913
+ return contract.simulate.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<boolean>;
1422
914
  },
1423
915
  /**
1424
- * Simulate freezeWallet
916
+ * Simulate finishMinting
1425
917
  * Returns gas estimate and result without sending transaction
1426
918
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1427
919
  */
1428
- async freezeWallet(_evilUser: `0x${string}`, options?: {
920
+ async finishMinting(options?: {
1429
921
  accessList?: import('viem').AccessList;
1430
922
  authorizationList?: import('viem').AuthorizationList;
1431
923
  chain?: import('viem').Chain | null;
@@ -1436,15 +928,15 @@ export class BAX_Token_2022_json {
1436
928
  maxPriorityFeePerGas?: bigint;
1437
929
  nonce?: number;
1438
930
  value?: bigint;
1439
- }): Promise<void> {
1440
- return contract.simulate.freezeWallet([_evilUser] as const, options) as Promise<void>;
931
+ }): Promise<boolean> {
932
+ return contract.simulate.finishMinting(options) as Promise<boolean>;
1441
933
  },
1442
934
  /**
1443
- * Simulate mint
935
+ * Simulate transfer
1444
936
  * Returns gas estimate and result without sending transaction
1445
937
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1446
938
  */
1447
- async mint(amount: bigint, options?: {
939
+ async transfer(_to: `0x${string}`, _value: bigint, options?: {
1448
940
  accessList?: import('viem').AccessList;
1449
941
  authorizationList?: import('viem').AuthorizationList;
1450
942
  chain?: import('viem').Chain | null;
@@ -1455,15 +947,15 @@ export class BAX_Token_2022_json {
1455
947
  maxPriorityFeePerGas?: bigint;
1456
948
  nonce?: number;
1457
949
  value?: bigint;
1458
- }): Promise<void> {
1459
- return contract.simulate.mint([amount] as const, options) as Promise<void>;
950
+ }): Promise<boolean> {
951
+ return contract.simulate.transfer([_to, _value] as const, options) as Promise<boolean>;
1460
952
  },
1461
953
  /**
1462
- * Simulate transfer
954
+ * Simulate increaseApproval
1463
955
  * Returns gas estimate and result without sending transaction
1464
956
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1465
957
  */
1466
- async transfer(_to: `0x${string}`, _value: bigint, options?: {
958
+ async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
1467
959
  accessList?: import('viem').AccessList;
1468
960
  authorizationList?: import('viem').AuthorizationList;
1469
961
  chain?: import('viem').Chain | null;
@@ -1474,8 +966,8 @@ export class BAX_Token_2022_json {
1474
966
  maxPriorityFeePerGas?: bigint;
1475
967
  nonce?: number;
1476
968
  value?: bigint;
1477
- }): Promise<void> {
1478
- return contract.simulate.transfer([_to, _value] as const, options) as Promise<void>;
969
+ }): Promise<boolean> {
970
+ return contract.simulate.increaseApproval([_spender, _addedValue] as const, options) as Promise<boolean>;
1479
971
  },
1480
972
  /**
1481
973
  * Simulate transferOwnership
@@ -1519,69 +1011,12 @@ export class BAX_Token_2022_json {
1519
1011
  * @param filter Optional filter for indexed parameters
1520
1012
  * @returns Unwatch function to stop listening
1521
1013
  */
1522
- Mint: (callback: (event: { amount: bigint }) => void) => {
1014
+ Mint: (callback: (event: { to: `0x${string}`; amount: bigint }) => void, filter?: { to: `0x${string}` }) => {
1523
1015
  return this.publicClient.watchContractEvent({
1524
1016
  address: this.contractAddress,
1525
- abi: BAX_Token_2022_jsonAbi,
1017
+ abi: BaxToken_jsonAbi,
1526
1018
  eventName: 'Mint',
1527
-
1528
- onLogs: (logs: any[]) => {
1529
- logs.forEach((log: any) => {
1530
- callback(log.args as any);
1531
- });
1532
- },
1533
- }) as () => void;
1534
- },
1535
- /**
1536
- * Watch Burn events
1537
- * @param callback Function to call when event is emitted
1538
- * @param filter Optional filter for indexed parameters
1539
- * @returns Unwatch function to stop listening
1540
- */
1541
- Burn: (callback: (event: { amount: bigint }) => void) => {
1542
- return this.publicClient.watchContractEvent({
1543
- address: this.contractAddress,
1544
- abi: BAX_Token_2022_jsonAbi,
1545
- eventName: 'Burn',
1546
-
1547
- onLogs: (logs: any[]) => {
1548
- logs.forEach((log: any) => {
1549
- callback(log.args as any);
1550
- });
1551
- },
1552
- }) as () => void;
1553
- },
1554
- /**
1555
- * Watch Upgrade events
1556
- * @param callback Function to call when event is emitted
1557
- * @param filter Optional filter for indexed parameters
1558
- * @returns Unwatch function to stop listening
1559
- */
1560
- Upgrade: (callback: (event: { newAddress: `0x${string}` }) => void) => {
1561
- return this.publicClient.watchContractEvent({
1562
- address: this.contractAddress,
1563
- abi: BAX_Token_2022_jsonAbi,
1564
- eventName: 'Upgrade',
1565
-
1566
- onLogs: (logs: any[]) => {
1567
- logs.forEach((log: any) => {
1568
- callback(log.args as any);
1569
- });
1570
- },
1571
- }) as () => void;
1572
- },
1573
- /**
1574
- * Watch Params events
1575
- * @param callback Function to call when event is emitted
1576
- * @param filter Optional filter for indexed parameters
1577
- * @returns Unwatch function to stop listening
1578
- */
1579
- Params: (callback: (event: { feeBasisPoints: bigint; maxFee: bigint }) => void) => {
1580
- return this.publicClient.watchContractEvent({
1581
- address: this.contractAddress,
1582
- abi: BAX_Token_2022_jsonAbi,
1583
- eventName: 'Params',
1584
-
1019
+ args: filter,
1585
1020
  onLogs: (logs: any[]) => {
1586
1021
  logs.forEach((log: any) => {
1587
1022
  callback(log.args as any);
@@ -1590,16 +1025,16 @@ export class BAX_Token_2022_json {
1590
1025
  }) as () => void;
1591
1026
  },
1592
1027
  /**
1593
- * Watch DestroyedFrozenFunds events
1028
+ * Watch MintFinished events
1594
1029
  * @param callback Function to call when event is emitted
1595
1030
  * @param filter Optional filter for indexed parameters
1596
1031
  * @returns Unwatch function to stop listening
1597
1032
  */
1598
- DestroyedFrozenFunds: (callback: (event: { _blackListedUser: `0x${string}`; _balance: bigint }) => void) => {
1033
+ MintFinished: (callback: (event: { }) => void) => {
1599
1034
  return this.publicClient.watchContractEvent({
1600
1035
  address: this.contractAddress,
1601
- abi: BAX_Token_2022_jsonAbi,
1602
- eventName: 'DestroyedFrozenFunds',
1036
+ abi: BaxToken_jsonAbi,
1037
+ eventName: 'MintFinished',
1603
1038
 
1604
1039
  onLogs: (logs: any[]) => {
1605
1040
  logs.forEach((log: any) => {
@@ -1609,17 +1044,17 @@ export class BAX_Token_2022_json {
1609
1044
  }) as () => void;
1610
1045
  },
1611
1046
  /**
1612
- * Watch WalletFrozen events
1047
+ * Watch OwnershipTransferred events
1613
1048
  * @param callback Function to call when event is emitted
1614
1049
  * @param filter Optional filter for indexed parameters
1615
1050
  * @returns Unwatch function to stop listening
1616
1051
  */
1617
- WalletFrozen: (callback: (event: { _user: `0x${string}` }) => void) => {
1052
+ OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1618
1053
  return this.publicClient.watchContractEvent({
1619
1054
  address: this.contractAddress,
1620
- abi: BAX_Token_2022_jsonAbi,
1621
- eventName: 'WalletFrozen',
1622
-
1055
+ abi: BaxToken_jsonAbi,
1056
+ eventName: 'OwnershipTransferred',
1057
+ args: filter,
1623
1058
  onLogs: (logs: any[]) => {
1624
1059
  logs.forEach((log: any) => {
1625
1060
  callback(log.args as any);
@@ -1628,17 +1063,17 @@ export class BAX_Token_2022_json {
1628
1063
  }) as () => void;
1629
1064
  },
1630
1065
  /**
1631
- * Watch WalletUnfrozen events
1066
+ * Watch Burn events
1632
1067
  * @param callback Function to call when event is emitted
1633
1068
  * @param filter Optional filter for indexed parameters
1634
1069
  * @returns Unwatch function to stop listening
1635
1070
  */
1636
- WalletUnfrozen: (callback: (event: { _user: `0x${string}` }) => void) => {
1071
+ Burn: (callback: (event: { burner: `0x${string}`; value: bigint }) => void, filter?: { burner: `0x${string}` }) => {
1637
1072
  return this.publicClient.watchContractEvent({
1638
1073
  address: this.contractAddress,
1639
- abi: BAX_Token_2022_jsonAbi,
1640
- eventName: 'WalletUnfrozen',
1641
-
1074
+ abi: BaxToken_jsonAbi,
1075
+ eventName: 'Burn',
1076
+ args: filter,
1642
1077
  onLogs: (logs: any[]) => {
1643
1078
  logs.forEach((log: any) => {
1644
1079
  callback(log.args as any);
@@ -1655,7 +1090,7 @@ export class BAX_Token_2022_json {
1655
1090
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1656
1091
  return this.publicClient.watchContractEvent({
1657
1092
  address: this.contractAddress,
1658
- abi: BAX_Token_2022_jsonAbi,
1093
+ abi: BaxToken_jsonAbi,
1659
1094
  eventName: 'Approval',
1660
1095
  args: filter,
1661
1096
  onLogs: (logs: any[]) => {
@@ -1674,47 +1109,9 @@ export class BAX_Token_2022_json {
1674
1109
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1675
1110
  return this.publicClient.watchContractEvent({
1676
1111
  address: this.contractAddress,
1677
- abi: BAX_Token_2022_jsonAbi,
1112
+ abi: BaxToken_jsonAbi,
1678
1113
  eventName: 'Transfer',
1679
1114
  args: filter,
1680
- onLogs: (logs: any[]) => {
1681
- logs.forEach((log: any) => {
1682
- callback(log.args as any);
1683
- });
1684
- },
1685
- }) as () => void;
1686
- },
1687
- /**
1688
- * Watch Pause events
1689
- * @param callback Function to call when event is emitted
1690
- * @param filter Optional filter for indexed parameters
1691
- * @returns Unwatch function to stop listening
1692
- */
1693
- Pause: (callback: (event: { }) => void) => {
1694
- return this.publicClient.watchContractEvent({
1695
- address: this.contractAddress,
1696
- abi: BAX_Token_2022_jsonAbi,
1697
- eventName: 'Pause',
1698
-
1699
- onLogs: (logs: any[]) => {
1700
- logs.forEach((log: any) => {
1701
- callback(log.args as any);
1702
- });
1703
- },
1704
- }) as () => void;
1705
- },
1706
- /**
1707
- * Watch Unpause events
1708
- * @param callback Function to call when event is emitted
1709
- * @param filter Optional filter for indexed parameters
1710
- * @returns Unwatch function to stop listening
1711
- */
1712
- Unpause: (callback: (event: { }) => void) => {
1713
- return this.publicClient.watchContractEvent({
1714
- address: this.contractAddress,
1715
- abi: BAX_Token_2022_jsonAbi,
1716
- eventName: 'Unpause',
1717
-
1718
1115
  onLogs: (logs: any[]) => {
1719
1116
  logs.forEach((log: any) => {
1720
1117
  callback(log.args as any);