@gitmyabi/sx 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SXNetwork_json = exports.SXNetwork_jsonAbi = void 0;
3
+ exports.SportX_json = exports.SportX_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * SXNetwork_json ABI
6
+ * SportX_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.SXNetwork_jsonAbi = [
10
+ exports.SportX_jsonAbi = [
11
11
  {
12
- "inputs": [],
12
+ "inputs": [
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "_chainId",
16
+ "type": "uint256"
17
+ }
18
+ ],
13
19
  "stateMutability": "nonpayable",
14
20
  "type": "constructor"
15
21
  },
@@ -38,81 +44,6 @@ exports.SXNetwork_jsonAbi = [
38
44
  "name": "Approval",
39
45
  "type": "event"
40
46
  },
41
- {
42
- "anonymous": false,
43
- "inputs": [
44
- {
45
- "indexed": true,
46
- "internalType": "bytes32",
47
- "name": "role",
48
- "type": "bytes32"
49
- },
50
- {
51
- "indexed": true,
52
- "internalType": "bytes32",
53
- "name": "previousAdminRole",
54
- "type": "bytes32"
55
- },
56
- {
57
- "indexed": true,
58
- "internalType": "bytes32",
59
- "name": "newAdminRole",
60
- "type": "bytes32"
61
- }
62
- ],
63
- "name": "RoleAdminChanged",
64
- "type": "event"
65
- },
66
- {
67
- "anonymous": false,
68
- "inputs": [
69
- {
70
- "indexed": true,
71
- "internalType": "bytes32",
72
- "name": "role",
73
- "type": "bytes32"
74
- },
75
- {
76
- "indexed": true,
77
- "internalType": "address",
78
- "name": "account",
79
- "type": "address"
80
- },
81
- {
82
- "indexed": true,
83
- "internalType": "address",
84
- "name": "sender",
85
- "type": "address"
86
- }
87
- ],
88
- "name": "RoleGranted",
89
- "type": "event"
90
- },
91
- {
92
- "anonymous": false,
93
- "inputs": [
94
- {
95
- "indexed": true,
96
- "internalType": "bytes32",
97
- "name": "role",
98
- "type": "bytes32"
99
- },
100
- {
101
- "indexed": true,
102
- "internalType": "address",
103
- "name": "account",
104
- "type": "address"
105
- },
106
- {
107
- "indexed": true,
108
- "internalType": "address",
109
- "name": "sender",
110
- "type": "address"
111
- }
112
- ],
113
- "name": "RoleRevoked",
114
- "type": "event"
115
- },
116
47
  {
117
48
  "anonymous": false,
118
49
  "inputs": [
@@ -140,7 +71,7 @@ exports.SXNetwork_jsonAbi = [
140
71
  },
141
72
  {
142
73
  "inputs": [],
143
- "name": "DEFAULT_ADMIN_ROLE",
74
+ "name": "EIP712_DOMAIN_SEPARATOR",
144
75
  "outputs": [
145
76
  {
146
77
  "internalType": "bytes32",
@@ -153,7 +84,7 @@ exports.SXNetwork_jsonAbi = [
153
84
  },
154
85
  {
155
86
  "inputs": [],
156
- "name": "MINTER_ROLE",
87
+ "name": "PERMIT_TYPEHASH",
157
88
  "outputs": [
158
89
  {
159
90
  "internalType": "bytes32",
@@ -231,37 +162,6 @@ exports.SXNetwork_jsonAbi = [
231
162
  "stateMutability": "view",
232
163
  "type": "function"
233
164
  },
234
- {
235
- "inputs": [
236
- {
237
- "internalType": "uint256",
238
- "name": "amount",
239
- "type": "uint256"
240
- }
241
- ],
242
- "name": "burn",
243
- "outputs": [],
244
- "stateMutability": "nonpayable",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- {
250
- "internalType": "address",
251
- "name": "account",
252
- "type": "address"
253
- },
254
- {
255
- "internalType": "uint256",
256
- "name": "amount",
257
- "type": "uint256"
258
- }
259
- ],
260
- "name": "burnFrom",
261
- "outputs": [],
262
- "stateMutability": "nonpayable",
263
- "type": "function"
264
- },
265
165
  {
266
166
  "inputs": [],
267
167
  "name": "decimals",
@@ -302,72 +202,54 @@ exports.SXNetwork_jsonAbi = [
302
202
  {
303
203
  "inputs": [
304
204
  {
305
- "internalType": "bytes32",
306
- "name": "role",
307
- "type": "bytes32"
205
+ "internalType": "address",
206
+ "name": "spender",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "internalType": "uint256",
211
+ "name": "addedValue",
212
+ "type": "uint256"
308
213
  }
309
214
  ],
310
- "name": "getRoleAdmin",
215
+ "name": "increaseAllowance",
311
216
  "outputs": [
312
217
  {
313
- "internalType": "bytes32",
218
+ "internalType": "bool",
314
219
  "name": "",
315
- "type": "bytes32"
316
- }
317
- ],
318
- "stateMutability": "view",
319
- "type": "function"
320
- },
321
- {
322
- "inputs": [
323
- {
324
- "internalType": "address",
325
- "name": "account",
326
- "type": "address"
220
+ "type": "bool"
327
221
  }
328
222
  ],
329
- "name": "grantMinterRole",
330
- "outputs": [],
331
223
  "stateMutability": "nonpayable",
332
224
  "type": "function"
333
225
  },
334
226
  {
335
- "inputs": [
336
- {
337
- "internalType": "bytes32",
338
- "name": "role",
339
- "type": "bytes32"
340
- },
227
+ "inputs": [],
228
+ "name": "name",
229
+ "outputs": [
341
230
  {
342
- "internalType": "address",
343
- "name": "account",
344
- "type": "address"
231
+ "internalType": "string",
232
+ "name": "",
233
+ "type": "string"
345
234
  }
346
235
  ],
347
- "name": "grantRole",
348
- "outputs": [],
349
- "stateMutability": "nonpayable",
236
+ "stateMutability": "view",
350
237
  "type": "function"
351
238
  },
352
239
  {
353
240
  "inputs": [
354
- {
355
- "internalType": "bytes32",
356
- "name": "role",
357
- "type": "bytes32"
358
- },
359
241
  {
360
242
  "internalType": "address",
361
- "name": "account",
243
+ "name": "",
362
244
  "type": "address"
363
245
  }
364
246
  ],
365
- "name": "hasRole",
247
+ "name": "nonces",
366
248
  "outputs": [
367
249
  {
368
- "internalType": "bool",
250
+ "internalType": "uint256",
369
251
  "name": "",
370
- "type": "bool"
252
+ "type": "uint256"
371
253
  }
372
254
  ],
373
255
  "stateMutability": "view",
@@ -375,6 +257,11 @@ exports.SXNetwork_jsonAbi = [
375
257
  },
376
258
  {
377
259
  "inputs": [
260
+ {
261
+ "internalType": "address",
262
+ "name": "holder",
263
+ "type": "address"
264
+ },
378
265
  {
379
266
  "internalType": "address",
380
267
  "name": "spender",
@@ -382,120 +269,40 @@ exports.SXNetwork_jsonAbi = [
382
269
  },
383
270
  {
384
271
  "internalType": "uint256",
385
- "name": "addedValue",
272
+ "name": "nonce",
386
273
  "type": "uint256"
387
- }
388
- ],
389
- "name": "increaseAllowance",
390
- "outputs": [
391
- {
392
- "internalType": "bool",
393
- "name": "",
394
- "type": "bool"
395
- }
396
- ],
397
- "stateMutability": "nonpayable",
398
- "type": "function"
399
- },
400
- {
401
- "inputs": [
274
+ },
402
275
  {
403
- "internalType": "address",
404
- "name": "to",
405
- "type": "address"
276
+ "internalType": "uint256",
277
+ "name": "expiry",
278
+ "type": "uint256"
406
279
  },
407
280
  {
408
281
  "internalType": "uint256",
409
282
  "name": "amount",
410
283
  "type": "uint256"
411
- }
412
- ],
413
- "name": "mint",
414
- "outputs": [],
415
- "stateMutability": "nonpayable",
416
- "type": "function"
417
- },
418
- {
419
- "inputs": [],
420
- "name": "name",
421
- "outputs": [
284
+ },
422
285
  {
423
- "internalType": "string",
424
- "name": "",
425
- "type": "string"
426
- }
427
- ],
428
- "stateMutability": "view",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [
286
+ "internalType": "uint8",
287
+ "name": "v",
288
+ "type": "uint8"
289
+ },
433
290
  {
434
291
  "internalType": "bytes32",
435
- "name": "role",
292
+ "name": "r",
436
293
  "type": "bytes32"
437
294
  },
438
- {
439
- "internalType": "address",
440
- "name": "account",
441
- "type": "address"
442
- }
443
- ],
444
- "name": "renounceRole",
445
- "outputs": [],
446
- "stateMutability": "nonpayable",
447
- "type": "function"
448
- },
449
- {
450
- "inputs": [
451
- {
452
- "internalType": "address",
453
- "name": "account",
454
- "type": "address"
455
- }
456
- ],
457
- "name": "revokeMinterRole",
458
- "outputs": [],
459
- "stateMutability": "nonpayable",
460
- "type": "function"
461
- },
462
- {
463
- "inputs": [
464
295
  {
465
296
  "internalType": "bytes32",
466
- "name": "role",
297
+ "name": "s",
467
298
  "type": "bytes32"
468
- },
469
- {
470
- "internalType": "address",
471
- "name": "account",
472
- "type": "address"
473
299
  }
474
300
  ],
475
- "name": "revokeRole",
301
+ "name": "permit",
476
302
  "outputs": [],
477
303
  "stateMutability": "nonpayable",
478
304
  "type": "function"
479
305
  },
480
- {
481
- "inputs": [
482
- {
483
- "internalType": "bytes4",
484
- "name": "interfaceId",
485
- "type": "bytes4"
486
- }
487
- ],
488
- "name": "supportsInterface",
489
- "outputs": [
490
- {
491
- "internalType": "bool",
492
- "name": "",
493
- "type": "bool"
494
- }
495
- ],
496
- "stateMutability": "view",
497
- "type": "function"
498
- },
499
306
  {
500
307
  "inputs": [],
501
308
  "name": "symbol",
@@ -509,32 +316,6 @@ exports.SXNetwork_jsonAbi = [
509
316
  "stateMutability": "view",
510
317
  "type": "function"
511
318
  },
512
- {
513
- "inputs": [],
514
- "name": "tokenName",
515
- "outputs": [
516
- {
517
- "internalType": "string",
518
- "name": "",
519
- "type": "string"
520
- }
521
- ],
522
- "stateMutability": "view",
523
- "type": "function"
524
- },
525
- {
526
- "inputs": [],
527
- "name": "tokenSymbol",
528
- "outputs": [
529
- {
530
- "internalType": "string",
531
- "name": "",
532
- "type": "string"
533
- }
534
- ],
535
- "stateMutability": "view",
536
- "type": "function"
537
- },
538
319
  {
539
320
  "inputs": [],
540
321
  "name": "totalSupply",
@@ -552,7 +333,7 @@ exports.SXNetwork_jsonAbi = [
552
333
  "inputs": [
553
334
  {
554
335
  "internalType": "address",
555
- "name": "to",
336
+ "name": "recipient",
556
337
  "type": "address"
557
338
  },
558
339
  {
@@ -576,12 +357,12 @@ exports.SXNetwork_jsonAbi = [
576
357
  "inputs": [
577
358
  {
578
359
  "internalType": "address",
579
- "name": "from",
360
+ "name": "sender",
580
361
  "type": "address"
581
362
  },
582
363
  {
583
364
  "internalType": "address",
584
- "name": "to",
365
+ "name": "recipient",
585
366
  "type": "address"
586
367
  },
587
368
  {
@@ -600,10 +381,23 @@ exports.SXNetwork_jsonAbi = [
600
381
  ],
601
382
  "stateMutability": "nonpayable",
602
383
  "type": "function"
384
+ },
385
+ {
386
+ "inputs": [],
387
+ "name": "version",
388
+ "outputs": [
389
+ {
390
+ "internalType": "string",
391
+ "name": "",
392
+ "type": "string"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
603
397
  }
604
398
  ];
605
399
  /**
606
- * SXNetwork_json Contract Class
400
+ * SportX_json Contract Class
607
401
  *
608
402
  * Provides a class-based API similar to TypeChain for interacting with the contract.
609
403
  *
@@ -611,12 +405,12 @@ exports.SXNetwork_jsonAbi = [
611
405
  * ```typescript
612
406
  * import { createPublicClient, createWalletClient, http } from 'viem';
613
407
  * import { mainnet } from 'viem/chains';
614
- * import { SXNetwork_json } from 'SXNetwork_json';
408
+ * import { SportX_json } from 'SportX_json';
615
409
  *
616
410
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
617
411
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
618
412
  *
619
- * const contract = new SXNetwork_json('0x...', { publicClient, walletClient });
413
+ * const contract = new SportX_json('0x...', { publicClient, walletClient });
620
414
  *
621
415
  * // Read functions
622
416
  * const result = await contract.balanceOf('0x...');
@@ -634,13 +428,13 @@ exports.SXNetwork_jsonAbi = [
634
428
  * });
635
429
  * ```
636
430
  */
637
- class SXNetwork_json {
431
+ class SportX_json {
638
432
  constructor(address, clients) {
639
433
  this.contractAddress = address;
640
434
  this.publicClient = clients.publicClient;
641
435
  this.contract = (0, viem_1.getContract)({
642
436
  address,
643
- abi: exports.SXNetwork_jsonAbi,
437
+ abi: exports.SportX_jsonAbi,
644
438
  client: {
645
439
  public: clients.publicClient,
646
440
  wallet: clients.walletClient,
@@ -660,18 +454,18 @@ class SXNetwork_json {
660
454
  return this.contract;
661
455
  }
662
456
  /**
663
- * DEFAULT_ADMIN_ROLE
457
+ * EIP712_DOMAIN_SEPARATOR
664
458
  * view
665
459
  */
666
- async DEFAULT_ADMIN_ROLE() {
667
- return this.contract.read.DEFAULT_ADMIN_ROLE();
460
+ async EIP712_DOMAIN_SEPARATOR() {
461
+ return this.contract.read.EIP712_DOMAIN_SEPARATOR();
668
462
  }
669
463
  /**
670
- * MINTER_ROLE
464
+ * PERMIT_TYPEHASH
671
465
  * view
672
466
  */
673
- async MINTER_ROLE() {
674
- return this.contract.read.MINTER_ROLE();
467
+ async PERMIT_TYPEHASH() {
468
+ return this.contract.read.PERMIT_TYPEHASH();
675
469
  }
676
470
  /**
677
471
  * allowance
@@ -694,20 +488,6 @@ class SXNetwork_json {
694
488
  async decimals() {
695
489
  return this.contract.read.decimals();
696
490
  }
697
- /**
698
- * getRoleAdmin
699
- * view
700
- */
701
- async getRoleAdmin(role) {
702
- return this.contract.read.getRoleAdmin([role]);
703
- }
704
- /**
705
- * hasRole
706
- * view
707
- */
708
- async hasRole(role, account) {
709
- return this.contract.read.hasRole([role, account]);
710
- }
711
491
  /**
712
492
  * name
713
493
  * view
@@ -716,11 +496,11 @@ class SXNetwork_json {
716
496
  return this.contract.read.name();
717
497
  }
718
498
  /**
719
- * supportsInterface
499
+ * nonces
720
500
  * view
721
501
  */
722
- async supportsInterface(interfaceId) {
723
- return this.contract.read.supportsInterface([interfaceId]);
502
+ async nonces(arg0) {
503
+ return this.contract.read.nonces([arg0]);
724
504
  }
725
505
  /**
726
506
  * symbol
@@ -730,25 +510,18 @@ class SXNetwork_json {
730
510
  return this.contract.read.symbol();
731
511
  }
732
512
  /**
733
- * tokenName
513
+ * totalSupply
734
514
  * view
735
515
  */
736
- async tokenName() {
737
- return this.contract.read.tokenName();
516
+ async totalSupply() {
517
+ return this.contract.read.totalSupply();
738
518
  }
739
519
  /**
740
- * tokenSymbol
520
+ * version
741
521
  * view
742
522
  */
743
- async tokenSymbol() {
744
- return this.contract.read.tokenSymbol();
745
- }
746
- /**
747
- * totalSupply
748
- * view
749
- */
750
- async totalSupply() {
751
- return this.contract.read.totalSupply();
523
+ async version() {
524
+ return this.contract.read.version();
752
525
  }
753
526
  /**
754
527
  * approve
@@ -761,28 +534,6 @@ class SXNetwork_json {
761
534
  }
762
535
  return this.contract.write.approve([spender, amount], options);
763
536
  }
764
- /**
765
- * burn
766
- * nonpayable
767
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
768
- */
769
- async burn(amount, options) {
770
- if (!this.contract.write) {
771
- throw new Error('Wallet client is required for write operations');
772
- }
773
- return this.contract.write.burn([amount], options);
774
- }
775
- /**
776
- * burnFrom
777
- * nonpayable
778
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
779
- */
780
- async burnFrom(account, amount, options) {
781
- if (!this.contract.write) {
782
- throw new Error('Wallet client is required for write operations');
783
- }
784
- return this.contract.write.burnFrom([account, amount], options);
785
- }
786
537
  /**
787
538
  * decreaseAllowance
788
539
  * nonpayable
@@ -794,28 +545,6 @@ class SXNetwork_json {
794
545
  }
795
546
  return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
796
547
  }
797
- /**
798
- * grantMinterRole
799
- * nonpayable
800
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
801
- */
802
- async grantMinterRole(account, options) {
803
- if (!this.contract.write) {
804
- throw new Error('Wallet client is required for write operations');
805
- }
806
- return this.contract.write.grantMinterRole([account], options);
807
- }
808
- /**
809
- * grantRole
810
- * nonpayable
811
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
812
- */
813
- async grantRole(role, account, options) {
814
- if (!this.contract.write) {
815
- throw new Error('Wallet client is required for write operations');
816
- }
817
- return this.contract.write.grantRole([role, account], options);
818
- }
819
548
  /**
820
549
  * increaseAllowance
821
550
  * nonpayable
@@ -828,70 +557,37 @@ class SXNetwork_json {
828
557
  return this.contract.write.increaseAllowance([spender, addedValue], options);
829
558
  }
830
559
  /**
831
- * mint
832
- * nonpayable
833
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
834
- */
835
- async mint(to, amount, options) {
836
- if (!this.contract.write) {
837
- throw new Error('Wallet client is required for write operations');
838
- }
839
- return this.contract.write.mint([to, amount], options);
840
- }
841
- /**
842
- * renounceRole
843
- * nonpayable
844
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
845
- */
846
- async renounceRole(role, account, options) {
847
- if (!this.contract.write) {
848
- throw new Error('Wallet client is required for write operations');
849
- }
850
- return this.contract.write.renounceRole([role, account], options);
851
- }
852
- /**
853
- * revokeMinterRole
854
- * nonpayable
855
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
856
- */
857
- async revokeMinterRole(account, options) {
858
- if (!this.contract.write) {
859
- throw new Error('Wallet client is required for write operations');
860
- }
861
- return this.contract.write.revokeMinterRole([account], options);
862
- }
863
- /**
864
- * revokeRole
560
+ * permit
865
561
  * nonpayable
866
562
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
867
563
  */
868
- async revokeRole(role, account, options) {
564
+ async permit(holder, spender, nonce, expiry, amount, v, r, s, options) {
869
565
  if (!this.contract.write) {
870
566
  throw new Error('Wallet client is required for write operations');
871
567
  }
872
- return this.contract.write.revokeRole([role, account], options);
568
+ return this.contract.write.permit([holder, spender, nonce, expiry, amount, v, r, s], options);
873
569
  }
874
570
  /**
875
571
  * transfer
876
572
  * nonpayable
877
573
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
878
574
  */
879
- async transfer(to, amount, options) {
575
+ async transfer(recipient, amount, options) {
880
576
  if (!this.contract.write) {
881
577
  throw new Error('Wallet client is required for write operations');
882
578
  }
883
- return this.contract.write.transfer([to, amount], options);
579
+ return this.contract.write.transfer([recipient, amount], options);
884
580
  }
885
581
  /**
886
582
  * transferFrom
887
583
  * nonpayable
888
584
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
889
585
  */
890
- async transferFrom(from, to, amount, options) {
586
+ async transferFrom(sender, recipient, amount, options) {
891
587
  if (!this.contract.write) {
892
588
  throw new Error('Wallet client is required for write operations');
893
589
  }
894
- return this.contract.write.transferFrom([from, to, amount], options);
590
+ return this.contract.write.transferFrom([sender, recipient, amount], options);
895
591
  }
896
592
  /**
897
593
  * Simulate contract write operations (dry-run without sending transaction)
@@ -915,22 +611,6 @@ class SXNetwork_json {
915
611
  async approve(spender, amount, options) {
916
612
  return contract.simulate.approve([spender, amount], options);
917
613
  },
918
- /**
919
- * Simulate burn
920
- * Returns gas estimate and result without sending transaction
921
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
922
- */
923
- async burn(amount, options) {
924
- return contract.simulate.burn([amount], options);
925
- },
926
- /**
927
- * Simulate burnFrom
928
- * Returns gas estimate and result without sending transaction
929
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
930
- */
931
- async burnFrom(account, amount, options) {
932
- return contract.simulate.burnFrom([account, amount], options);
933
- },
934
614
  /**
935
615
  * Simulate decreaseAllowance
936
616
  * Returns gas estimate and result without sending transaction
@@ -939,22 +619,6 @@ class SXNetwork_json {
939
619
  async decreaseAllowance(spender, subtractedValue, options) {
940
620
  return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
941
621
  },
942
- /**
943
- * Simulate grantMinterRole
944
- * Returns gas estimate and result without sending transaction
945
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
946
- */
947
- async grantMinterRole(account, options) {
948
- return contract.simulate.grantMinterRole([account], options);
949
- },
950
- /**
951
- * Simulate grantRole
952
- * Returns gas estimate and result without sending transaction
953
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
954
- */
955
- async grantRole(role, account, options) {
956
- return contract.simulate.grantRole([role, account], options);
957
- },
958
622
  /**
959
623
  * Simulate increaseAllowance
960
624
  * Returns gas estimate and result without sending transaction
@@ -964,52 +628,28 @@ class SXNetwork_json {
964
628
  return contract.simulate.increaseAllowance([spender, addedValue], options);
965
629
  },
966
630
  /**
967
- * Simulate mint
968
- * Returns gas estimate and result without sending transaction
969
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
970
- */
971
- async mint(to, amount, options) {
972
- return contract.simulate.mint([to, amount], options);
973
- },
974
- /**
975
- * Simulate renounceRole
631
+ * Simulate permit
976
632
  * Returns gas estimate and result without sending transaction
977
633
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
978
634
  */
979
- async renounceRole(role, account, options) {
980
- return contract.simulate.renounceRole([role, account], options);
981
- },
982
- /**
983
- * Simulate revokeMinterRole
984
- * Returns gas estimate and result without sending transaction
985
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
986
- */
987
- async revokeMinterRole(account, options) {
988
- return contract.simulate.revokeMinterRole([account], options);
989
- },
990
- /**
991
- * Simulate revokeRole
992
- * Returns gas estimate and result without sending transaction
993
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
994
- */
995
- async revokeRole(role, account, options) {
996
- return contract.simulate.revokeRole([role, account], options);
635
+ async permit(holder, spender, nonce, expiry, amount, v, r, s, options) {
636
+ return contract.simulate.permit([holder, spender, nonce, expiry, amount, v, r, s], options);
997
637
  },
998
638
  /**
999
639
  * Simulate transfer
1000
640
  * Returns gas estimate and result without sending transaction
1001
641
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1002
642
  */
1003
- async transfer(to, amount, options) {
1004
- return contract.simulate.transfer([to, amount], options);
643
+ async transfer(recipient, amount, options) {
644
+ return contract.simulate.transfer([recipient, amount], options);
1005
645
  },
1006
646
  /**
1007
647
  * Simulate transferFrom
1008
648
  * Returns gas estimate and result without sending transaction
1009
649
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1010
650
  */
1011
- async transferFrom(from, to, amount, options) {
1012
- return contract.simulate.transferFrom([from, to, amount], options);
651
+ async transferFrom(sender, recipient, amount, options) {
652
+ return contract.simulate.transferFrom([sender, recipient, amount], options);
1013
653
  }
1014
654
  };
1015
655
  }
@@ -1036,7 +676,7 @@ class SXNetwork_json {
1036
676
  Approval: (callback, filter) => {
1037
677
  return this.publicClient.watchContractEvent({
1038
678
  address: this.contractAddress,
1039
- abi: exports.SXNetwork_jsonAbi,
679
+ abi: exports.SportX_jsonAbi,
1040
680
  eventName: 'Approval',
1041
681
  args: filter,
1042
682
  onLogs: (logs) => {
@@ -1046,63 +686,6 @@ class SXNetwork_json {
1046
686
  },
1047
687
  });
1048
688
  },
1049
- /**
1050
- * Watch RoleAdminChanged events
1051
- * @param callback Function to call when event is emitted
1052
- * @param filter Optional filter for indexed parameters
1053
- * @returns Unwatch function to stop listening
1054
- */
1055
- RoleAdminChanged: (callback, filter) => {
1056
- return this.publicClient.watchContractEvent({
1057
- address: this.contractAddress,
1058
- abi: exports.SXNetwork_jsonAbi,
1059
- eventName: 'RoleAdminChanged',
1060
- args: filter,
1061
- onLogs: (logs) => {
1062
- logs.forEach((log) => {
1063
- callback(log.args);
1064
- });
1065
- },
1066
- });
1067
- },
1068
- /**
1069
- * Watch RoleGranted events
1070
- * @param callback Function to call when event is emitted
1071
- * @param filter Optional filter for indexed parameters
1072
- * @returns Unwatch function to stop listening
1073
- */
1074
- RoleGranted: (callback, filter) => {
1075
- return this.publicClient.watchContractEvent({
1076
- address: this.contractAddress,
1077
- abi: exports.SXNetwork_jsonAbi,
1078
- eventName: 'RoleGranted',
1079
- args: filter,
1080
- onLogs: (logs) => {
1081
- logs.forEach((log) => {
1082
- callback(log.args);
1083
- });
1084
- },
1085
- });
1086
- },
1087
- /**
1088
- * Watch RoleRevoked events
1089
- * @param callback Function to call when event is emitted
1090
- * @param filter Optional filter for indexed parameters
1091
- * @returns Unwatch function to stop listening
1092
- */
1093
- RoleRevoked: (callback, filter) => {
1094
- return this.publicClient.watchContractEvent({
1095
- address: this.contractAddress,
1096
- abi: exports.SXNetwork_jsonAbi,
1097
- eventName: 'RoleRevoked',
1098
- args: filter,
1099
- onLogs: (logs) => {
1100
- logs.forEach((log) => {
1101
- callback(log.args);
1102
- });
1103
- },
1104
- });
1105
- },
1106
689
  /**
1107
690
  * Watch Transfer events
1108
691
  * @param callback Function to call when event is emitted
@@ -1112,7 +695,7 @@ class SXNetwork_json {
1112
695
  Transfer: (callback, filter) => {
1113
696
  return this.publicClient.watchContractEvent({
1114
697
  address: this.contractAddress,
1115
- abi: exports.SXNetwork_jsonAbi,
698
+ abi: exports.SportX_jsonAbi,
1116
699
  eventName: 'Transfer',
1117
700
  args: filter,
1118
701
  onLogs: (logs) => {
@@ -1125,4 +708,4 @@ class SXNetwork_json {
1125
708
  };
1126
709
  }
1127
710
  }
1128
- exports.SXNetwork_json = SXNetwork_json;
711
+ exports.SportX_json = SportX_json;