@gitmyabi/1-up 1.0.0

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.
@@ -0,0 +1,1651 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OneUp_json = exports.OneUp_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * OneUp_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.OneUp_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ {
17
+ "anonymous": false,
18
+ "inputs": [
19
+ {
20
+ "indexed": true,
21
+ "internalType": "address",
22
+ "name": "owner",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "indexed": true,
27
+ "internalType": "address",
28
+ "name": "spender",
29
+ "type": "address"
30
+ },
31
+ {
32
+ "indexed": false,
33
+ "internalType": "uint256",
34
+ "name": "value",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "Approval",
39
+ "type": "event"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": true,
46
+ "internalType": "address",
47
+ "name": "previousOwner",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "indexed": true,
52
+ "internalType": "address",
53
+ "name": "newOwner",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "OwnershipTransferred",
58
+ "type": "event"
59
+ },
60
+ {
61
+ "anonymous": false,
62
+ "inputs": [
63
+ {
64
+ "indexed": false,
65
+ "internalType": "address",
66
+ "name": "account",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "name": "Paused",
71
+ "type": "event"
72
+ },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": true,
78
+ "internalType": "bytes32",
79
+ "name": "role",
80
+ "type": "bytes32"
81
+ },
82
+ {
83
+ "indexed": true,
84
+ "internalType": "bytes32",
85
+ "name": "previousAdminRole",
86
+ "type": "bytes32"
87
+ },
88
+ {
89
+ "indexed": true,
90
+ "internalType": "bytes32",
91
+ "name": "newAdminRole",
92
+ "type": "bytes32"
93
+ }
94
+ ],
95
+ "name": "RoleAdminChanged",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": true,
103
+ "internalType": "bytes32",
104
+ "name": "role",
105
+ "type": "bytes32"
106
+ },
107
+ {
108
+ "indexed": true,
109
+ "internalType": "address",
110
+ "name": "account",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": true,
115
+ "internalType": "address",
116
+ "name": "sender",
117
+ "type": "address"
118
+ }
119
+ ],
120
+ "name": "RoleGranted",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": true,
128
+ "internalType": "bytes32",
129
+ "name": "role",
130
+ "type": "bytes32"
131
+ },
132
+ {
133
+ "indexed": true,
134
+ "internalType": "address",
135
+ "name": "account",
136
+ "type": "address"
137
+ },
138
+ {
139
+ "indexed": true,
140
+ "internalType": "address",
141
+ "name": "sender",
142
+ "type": "address"
143
+ }
144
+ ],
145
+ "name": "RoleRevoked",
146
+ "type": "event"
147
+ },
148
+ {
149
+ "anonymous": false,
150
+ "inputs": [
151
+ {
152
+ "indexed": true,
153
+ "internalType": "address",
154
+ "name": "from",
155
+ "type": "address"
156
+ },
157
+ {
158
+ "indexed": true,
159
+ "internalType": "address",
160
+ "name": "to",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "indexed": false,
165
+ "internalType": "uint256",
166
+ "name": "value",
167
+ "type": "uint256"
168
+ }
169
+ ],
170
+ "name": "Transfer",
171
+ "type": "event"
172
+ },
173
+ {
174
+ "anonymous": false,
175
+ "inputs": [
176
+ {
177
+ "indexed": false,
178
+ "internalType": "address",
179
+ "name": "account",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "Unpaused",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "inputs": [],
188
+ "name": "DEFAULT_ADMIN_ROLE",
189
+ "outputs": [
190
+ {
191
+ "internalType": "bytes32",
192
+ "name": "",
193
+ "type": "bytes32"
194
+ }
195
+ ],
196
+ "stateMutability": "view",
197
+ "type": "function"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "MAX_ALLOWED_TOKENS",
202
+ "outputs": [
203
+ {
204
+ "internalType": "uint256",
205
+ "name": "",
206
+ "type": "uint256"
207
+ }
208
+ ],
209
+ "stateMutability": "view",
210
+ "type": "function"
211
+ },
212
+ {
213
+ "inputs": [],
214
+ "name": "MAX_SUPPLY",
215
+ "outputs": [
216
+ {
217
+ "internalType": "uint256",
218
+ "name": "",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [],
227
+ "name": "MINTER_ROLE",
228
+ "outputs": [
229
+ {
230
+ "internalType": "bytes32",
231
+ "name": "",
232
+ "type": "bytes32"
233
+ }
234
+ ],
235
+ "stateMutability": "view",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "PAUSER_ROLE",
241
+ "outputs": [
242
+ {
243
+ "internalType": "bytes32",
244
+ "name": "",
245
+ "type": "bytes32"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [],
253
+ "name": "RESTRICTED_TRANSFER_DELAY",
254
+ "outputs": [
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "",
258
+ "type": "uint256"
259
+ }
260
+ ],
261
+ "stateMutability": "view",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [
266
+ {
267
+ "internalType": "address",
268
+ "name": "owner",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "internalType": "address",
273
+ "name": "spender",
274
+ "type": "address"
275
+ }
276
+ ],
277
+ "name": "allowance",
278
+ "outputs": [
279
+ {
280
+ "internalType": "uint256",
281
+ "name": "",
282
+ "type": "uint256"
283
+ }
284
+ ],
285
+ "stateMutability": "view",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [
290
+ {
291
+ "internalType": "address",
292
+ "name": "spender",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "amount",
298
+ "type": "uint256"
299
+ }
300
+ ],
301
+ "name": "approve",
302
+ "outputs": [
303
+ {
304
+ "internalType": "bool",
305
+ "name": "",
306
+ "type": "bool"
307
+ }
308
+ ],
309
+ "stateMutability": "nonpayable",
310
+ "type": "function"
311
+ },
312
+ {
313
+ "inputs": [
314
+ {
315
+ "internalType": "address",
316
+ "name": "account",
317
+ "type": "address"
318
+ }
319
+ ],
320
+ "name": "balanceOf",
321
+ "outputs": [
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "stateMutability": "view",
329
+ "type": "function"
330
+ },
331
+ {
332
+ "inputs": [
333
+ {
334
+ "internalType": "uint256",
335
+ "name": "amount",
336
+ "type": "uint256"
337
+ }
338
+ ],
339
+ "name": "burn",
340
+ "outputs": [],
341
+ "stateMutability": "nonpayable",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [
346
+ {
347
+ "internalType": "address",
348
+ "name": "account",
349
+ "type": "address"
350
+ },
351
+ {
352
+ "internalType": "uint256",
353
+ "name": "amount",
354
+ "type": "uint256"
355
+ }
356
+ ],
357
+ "name": "burnFrom",
358
+ "outputs": [],
359
+ "stateMutability": "nonpayable",
360
+ "type": "function"
361
+ },
362
+ {
363
+ "inputs": [],
364
+ "name": "decimals",
365
+ "outputs": [
366
+ {
367
+ "internalType": "uint8",
368
+ "name": "",
369
+ "type": "uint8"
370
+ }
371
+ ],
372
+ "stateMutability": "view",
373
+ "type": "function"
374
+ },
375
+ {
376
+ "inputs": [
377
+ {
378
+ "internalType": "address",
379
+ "name": "spender",
380
+ "type": "address"
381
+ },
382
+ {
383
+ "internalType": "uint256",
384
+ "name": "subtractedValue",
385
+ "type": "uint256"
386
+ }
387
+ ],
388
+ "name": "decreaseAllowance",
389
+ "outputs": [
390
+ {
391
+ "internalType": "bool",
392
+ "name": "",
393
+ "type": "bool"
394
+ }
395
+ ],
396
+ "stateMutability": "nonpayable",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "newDelay",
404
+ "type": "uint256"
405
+ }
406
+ ],
407
+ "name": "decreaseDelayBetweenTx",
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable",
410
+ "type": "function"
411
+ },
412
+ {
413
+ "inputs": [],
414
+ "name": "delayBetweenTx",
415
+ "outputs": [
416
+ {
417
+ "internalType": "uint256",
418
+ "name": "",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "stateMutability": "view",
423
+ "type": "function"
424
+ },
425
+ {
426
+ "inputs": [
427
+ {
428
+ "internalType": "bytes32",
429
+ "name": "role",
430
+ "type": "bytes32"
431
+ }
432
+ ],
433
+ "name": "getRoleAdmin",
434
+ "outputs": [
435
+ {
436
+ "internalType": "bytes32",
437
+ "name": "",
438
+ "type": "bytes32"
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [
446
+ {
447
+ "internalType": "bytes32",
448
+ "name": "role",
449
+ "type": "bytes32"
450
+ },
451
+ {
452
+ "internalType": "uint256",
453
+ "name": "index",
454
+ "type": "uint256"
455
+ }
456
+ ],
457
+ "name": "getRoleMember",
458
+ "outputs": [
459
+ {
460
+ "internalType": "address",
461
+ "name": "",
462
+ "type": "address"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
470
+ {
471
+ "internalType": "bytes32",
472
+ "name": "role",
473
+ "type": "bytes32"
474
+ }
475
+ ],
476
+ "name": "getRoleMemberCount",
477
+ "outputs": [
478
+ {
479
+ "internalType": "uint256",
480
+ "name": "",
481
+ "type": "uint256"
482
+ }
483
+ ],
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "bytes32",
491
+ "name": "role",
492
+ "type": "bytes32"
493
+ },
494
+ {
495
+ "internalType": "address",
496
+ "name": "account",
497
+ "type": "address"
498
+ }
499
+ ],
500
+ "name": "grantRole",
501
+ "outputs": [],
502
+ "stateMutability": "nonpayable",
503
+ "type": "function"
504
+ },
505
+ {
506
+ "inputs": [
507
+ {
508
+ "internalType": "bytes32",
509
+ "name": "role",
510
+ "type": "bytes32"
511
+ },
512
+ {
513
+ "internalType": "address",
514
+ "name": "account",
515
+ "type": "address"
516
+ }
517
+ ],
518
+ "name": "hasRole",
519
+ "outputs": [
520
+ {
521
+ "internalType": "bool",
522
+ "name": "",
523
+ "type": "bool"
524
+ }
525
+ ],
526
+ "stateMutability": "view",
527
+ "type": "function"
528
+ },
529
+ {
530
+ "inputs": [
531
+ {
532
+ "internalType": "address",
533
+ "name": "spender",
534
+ "type": "address"
535
+ },
536
+ {
537
+ "internalType": "uint256",
538
+ "name": "addedValue",
539
+ "type": "uint256"
540
+ }
541
+ ],
542
+ "name": "increaseAllowance",
543
+ "outputs": [
544
+ {
545
+ "internalType": "bool",
546
+ "name": "",
547
+ "type": "bool"
548
+ }
549
+ ],
550
+ "stateMutability": "nonpayable",
551
+ "type": "function"
552
+ },
553
+ {
554
+ "inputs": [
555
+ {
556
+ "internalType": "address",
557
+ "name": "account",
558
+ "type": "address"
559
+ }
560
+ ],
561
+ "name": "isWhitelisted",
562
+ "outputs": [
563
+ {
564
+ "internalType": "bool",
565
+ "name": "",
566
+ "type": "bool"
567
+ }
568
+ ],
569
+ "stateMutability": "view",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ {
575
+ "internalType": "address",
576
+ "name": "account",
577
+ "type": "address"
578
+ }
579
+ ],
580
+ "name": "lastTx",
581
+ "outputs": [
582
+ {
583
+ "internalType": "uint256",
584
+ "name": "",
585
+ "type": "uint256"
586
+ }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [
593
+ {
594
+ "internalType": "address",
595
+ "name": "to",
596
+ "type": "address"
597
+ },
598
+ {
599
+ "internalType": "uint256",
600
+ "name": "amount",
601
+ "type": "uint256"
602
+ }
603
+ ],
604
+ "name": "mint",
605
+ "outputs": [],
606
+ "stateMutability": "nonpayable",
607
+ "type": "function"
608
+ },
609
+ {
610
+ "inputs": [],
611
+ "name": "name",
612
+ "outputs": [
613
+ {
614
+ "internalType": "string",
615
+ "name": "",
616
+ "type": "string"
617
+ }
618
+ ],
619
+ "stateMutability": "view",
620
+ "type": "function"
621
+ },
622
+ {
623
+ "inputs": [],
624
+ "name": "owner",
625
+ "outputs": [
626
+ {
627
+ "internalType": "address",
628
+ "name": "",
629
+ "type": "address"
630
+ }
631
+ ],
632
+ "stateMutability": "view",
633
+ "type": "function"
634
+ },
635
+ {
636
+ "inputs": [],
637
+ "name": "pause",
638
+ "outputs": [],
639
+ "stateMutability": "nonpayable",
640
+ "type": "function"
641
+ },
642
+ {
643
+ "inputs": [],
644
+ "name": "paused",
645
+ "outputs": [
646
+ {
647
+ "internalType": "bool",
648
+ "name": "",
649
+ "type": "bool"
650
+ }
651
+ ],
652
+ "stateMutability": "view",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [
657
+ {
658
+ "internalType": "address",
659
+ "name": "account",
660
+ "type": "address"
661
+ }
662
+ ],
663
+ "name": "removeWhitelistedAccount",
664
+ "outputs": [],
665
+ "stateMutability": "nonpayable",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "inputs": [],
670
+ "name": "renounceOwnership",
671
+ "outputs": [],
672
+ "stateMutability": "nonpayable",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ {
678
+ "internalType": "bytes32",
679
+ "name": "role",
680
+ "type": "bytes32"
681
+ },
682
+ {
683
+ "internalType": "address",
684
+ "name": "account",
685
+ "type": "address"
686
+ }
687
+ ],
688
+ "name": "renounceRole",
689
+ "outputs": [],
690
+ "stateMutability": "nonpayable",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [],
695
+ "name": "restrictionLiftTime",
696
+ "outputs": [
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "",
700
+ "type": "uint256"
701
+ }
702
+ ],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [
708
+ {
709
+ "internalType": "bytes32",
710
+ "name": "role",
711
+ "type": "bytes32"
712
+ },
713
+ {
714
+ "internalType": "address",
715
+ "name": "account",
716
+ "type": "address"
717
+ }
718
+ ],
719
+ "name": "revokeRole",
720
+ "outputs": [],
721
+ "stateMutability": "nonpayable",
722
+ "type": "function"
723
+ },
724
+ {
725
+ "inputs": [
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "time",
729
+ "type": "uint256"
730
+ }
731
+ ],
732
+ "name": "setTradingStart",
733
+ "outputs": [],
734
+ "stateMutability": "nonpayable",
735
+ "type": "function"
736
+ },
737
+ {
738
+ "inputs": [
739
+ {
740
+ "internalType": "bytes4",
741
+ "name": "interfaceId",
742
+ "type": "bytes4"
743
+ }
744
+ ],
745
+ "name": "supportsInterface",
746
+ "outputs": [
747
+ {
748
+ "internalType": "bool",
749
+ "name": "",
750
+ "type": "bool"
751
+ }
752
+ ],
753
+ "stateMutability": "view",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "inputs": [],
758
+ "name": "symbol",
759
+ "outputs": [
760
+ {
761
+ "internalType": "string",
762
+ "name": "",
763
+ "type": "string"
764
+ }
765
+ ],
766
+ "stateMutability": "view",
767
+ "type": "function"
768
+ },
769
+ {
770
+ "inputs": [],
771
+ "name": "totalSupply",
772
+ "outputs": [
773
+ {
774
+ "internalType": "uint256",
775
+ "name": "",
776
+ "type": "uint256"
777
+ }
778
+ ],
779
+ "stateMutability": "view",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [],
784
+ "name": "tradingTime",
785
+ "outputs": [
786
+ {
787
+ "internalType": "uint256",
788
+ "name": "",
789
+ "type": "uint256"
790
+ }
791
+ ],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [
797
+ {
798
+ "internalType": "address",
799
+ "name": "recipient",
800
+ "type": "address"
801
+ },
802
+ {
803
+ "internalType": "uint256",
804
+ "name": "amount",
805
+ "type": "uint256"
806
+ }
807
+ ],
808
+ "name": "transfer",
809
+ "outputs": [
810
+ {
811
+ "internalType": "bool",
812
+ "name": "",
813
+ "type": "bool"
814
+ }
815
+ ],
816
+ "stateMutability": "nonpayable",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [
821
+ {
822
+ "internalType": "address",
823
+ "name": "sender",
824
+ "type": "address"
825
+ },
826
+ {
827
+ "internalType": "address",
828
+ "name": "recipient",
829
+ "type": "address"
830
+ },
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "amount",
834
+ "type": "uint256"
835
+ }
836
+ ],
837
+ "name": "transferFrom",
838
+ "outputs": [
839
+ {
840
+ "internalType": "bool",
841
+ "name": "",
842
+ "type": "bool"
843
+ }
844
+ ],
845
+ "stateMutability": "nonpayable",
846
+ "type": "function"
847
+ },
848
+ {
849
+ "inputs": [
850
+ {
851
+ "internalType": "address",
852
+ "name": "newOwner",
853
+ "type": "address"
854
+ }
855
+ ],
856
+ "name": "transferOwnership",
857
+ "outputs": [],
858
+ "stateMutability": "nonpayable",
859
+ "type": "function"
860
+ },
861
+ {
862
+ "inputs": [],
863
+ "name": "unpause",
864
+ "outputs": [],
865
+ "stateMutability": "nonpayable",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [
870
+ {
871
+ "internalType": "address",
872
+ "name": "account",
873
+ "type": "address"
874
+ }
875
+ ],
876
+ "name": "whitelistAccount",
877
+ "outputs": [],
878
+ "stateMutability": "nonpayable",
879
+ "type": "function"
880
+ }
881
+ ];
882
+ /**
883
+ * OneUp_json Contract Class
884
+ *
885
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
886
+ *
887
+ * @example
888
+ * ```typescript
889
+ * import { createPublicClient, createWalletClient, http } from 'viem';
890
+ * import { mainnet } from 'viem/chains';
891
+ * import { OneUp_json } from 'OneUp_json';
892
+ *
893
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
894
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
895
+ *
896
+ * const contract = new OneUp_json('0x...', { publicClient, walletClient });
897
+ *
898
+ * // Read functions
899
+ * const result = await contract.balanceOf('0x...');
900
+ *
901
+ * // Write functions
902
+ * const hash = await contract.transfer('0x...', 1000n);
903
+ *
904
+ * // Simulate transactions (dry-run)
905
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
906
+ * console.log('Gas estimate:', simulation.request.gas);
907
+ *
908
+ * // Watch events
909
+ * const unwatch = contract.watch.Transfer((event) => {
910
+ * console.log('Transfer event:', event);
911
+ * });
912
+ * ```
913
+ */
914
+ class OneUp_json {
915
+ constructor(address, clients) {
916
+ this.contractAddress = address;
917
+ this.publicClient = clients.publicClient;
918
+ this.contract = (0, viem_1.getContract)({
919
+ address,
920
+ abi: exports.OneUp_jsonAbi,
921
+ client: {
922
+ public: clients.publicClient,
923
+ wallet: clients.walletClient,
924
+ },
925
+ });
926
+ }
927
+ /**
928
+ * Get the contract address
929
+ */
930
+ get address() {
931
+ return this.contractAddress;
932
+ }
933
+ /**
934
+ * Get the underlying viem contract instance
935
+ */
936
+ getContract() {
937
+ return this.contract;
938
+ }
939
+ /**
940
+ * DEFAULT_ADMIN_ROLE
941
+ * view
942
+ */
943
+ async DEFAULT_ADMIN_ROLE() {
944
+ return this.contract.read.DEFAULT_ADMIN_ROLE();
945
+ }
946
+ /**
947
+ * MAX_ALLOWED_TOKENS
948
+ * view
949
+ */
950
+ async MAX_ALLOWED_TOKENS() {
951
+ return this.contract.read.MAX_ALLOWED_TOKENS();
952
+ }
953
+ /**
954
+ * MAX_SUPPLY
955
+ * view
956
+ */
957
+ async MAX_SUPPLY() {
958
+ return this.contract.read.MAX_SUPPLY();
959
+ }
960
+ /**
961
+ * MINTER_ROLE
962
+ * view
963
+ */
964
+ async MINTER_ROLE() {
965
+ return this.contract.read.MINTER_ROLE();
966
+ }
967
+ /**
968
+ * PAUSER_ROLE
969
+ * view
970
+ */
971
+ async PAUSER_ROLE() {
972
+ return this.contract.read.PAUSER_ROLE();
973
+ }
974
+ /**
975
+ * RESTRICTED_TRANSFER_DELAY
976
+ * view
977
+ */
978
+ async RESTRICTED_TRANSFER_DELAY() {
979
+ return this.contract.read.RESTRICTED_TRANSFER_DELAY();
980
+ }
981
+ /**
982
+ * allowance
983
+ * view
984
+ */
985
+ async allowance(owner, spender) {
986
+ return this.contract.read.allowance([owner, spender]);
987
+ }
988
+ /**
989
+ * balanceOf
990
+ * view
991
+ */
992
+ async balanceOf(account) {
993
+ return this.contract.read.balanceOf([account]);
994
+ }
995
+ /**
996
+ * decimals
997
+ * view
998
+ */
999
+ async decimals() {
1000
+ return this.contract.read.decimals();
1001
+ }
1002
+ /**
1003
+ * delayBetweenTx
1004
+ * view
1005
+ */
1006
+ async delayBetweenTx() {
1007
+ return this.contract.read.delayBetweenTx();
1008
+ }
1009
+ /**
1010
+ * getRoleAdmin
1011
+ * view
1012
+ */
1013
+ async getRoleAdmin(role) {
1014
+ return this.contract.read.getRoleAdmin([role]);
1015
+ }
1016
+ /**
1017
+ * getRoleMember
1018
+ * view
1019
+ */
1020
+ async getRoleMember(role, index) {
1021
+ return this.contract.read.getRoleMember([role, index]);
1022
+ }
1023
+ /**
1024
+ * getRoleMemberCount
1025
+ * view
1026
+ */
1027
+ async getRoleMemberCount(role) {
1028
+ return this.contract.read.getRoleMemberCount([role]);
1029
+ }
1030
+ /**
1031
+ * hasRole
1032
+ * view
1033
+ */
1034
+ async hasRole(role, account) {
1035
+ return this.contract.read.hasRole([role, account]);
1036
+ }
1037
+ /**
1038
+ * isWhitelisted
1039
+ * view
1040
+ */
1041
+ async isWhitelisted(account) {
1042
+ return this.contract.read.isWhitelisted([account]);
1043
+ }
1044
+ /**
1045
+ * lastTx
1046
+ * view
1047
+ */
1048
+ async lastTx(account) {
1049
+ return this.contract.read.lastTx([account]);
1050
+ }
1051
+ /**
1052
+ * name
1053
+ * view
1054
+ */
1055
+ async name() {
1056
+ return this.contract.read.name();
1057
+ }
1058
+ /**
1059
+ * owner
1060
+ * view
1061
+ */
1062
+ async owner() {
1063
+ return this.contract.read.owner();
1064
+ }
1065
+ /**
1066
+ * paused
1067
+ * view
1068
+ */
1069
+ async paused() {
1070
+ return this.contract.read.paused();
1071
+ }
1072
+ /**
1073
+ * restrictionLiftTime
1074
+ * view
1075
+ */
1076
+ async restrictionLiftTime() {
1077
+ return this.contract.read.restrictionLiftTime();
1078
+ }
1079
+ /**
1080
+ * supportsInterface
1081
+ * view
1082
+ */
1083
+ async supportsInterface(interfaceId) {
1084
+ return this.contract.read.supportsInterface([interfaceId]);
1085
+ }
1086
+ /**
1087
+ * symbol
1088
+ * view
1089
+ */
1090
+ async symbol() {
1091
+ return this.contract.read.symbol();
1092
+ }
1093
+ /**
1094
+ * totalSupply
1095
+ * view
1096
+ */
1097
+ async totalSupply() {
1098
+ return this.contract.read.totalSupply();
1099
+ }
1100
+ /**
1101
+ * tradingTime
1102
+ * view
1103
+ */
1104
+ async tradingTime() {
1105
+ return this.contract.read.tradingTime();
1106
+ }
1107
+ /**
1108
+ * approve
1109
+ * nonpayable
1110
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1111
+ */
1112
+ async approve(spender, amount, options) {
1113
+ if (!this.contract.write) {
1114
+ throw new Error('Wallet client is required for write operations');
1115
+ }
1116
+ return this.contract.write.approve([spender, amount], options);
1117
+ }
1118
+ /**
1119
+ * burn
1120
+ * nonpayable
1121
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1122
+ */
1123
+ async burn(amount, options) {
1124
+ if (!this.contract.write) {
1125
+ throw new Error('Wallet client is required for write operations');
1126
+ }
1127
+ return this.contract.write.burn([amount], options);
1128
+ }
1129
+ /**
1130
+ * burnFrom
1131
+ * nonpayable
1132
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1133
+ */
1134
+ async burnFrom(account, amount, options) {
1135
+ if (!this.contract.write) {
1136
+ throw new Error('Wallet client is required for write operations');
1137
+ }
1138
+ return this.contract.write.burnFrom([account, amount], options);
1139
+ }
1140
+ /**
1141
+ * decreaseAllowance
1142
+ * nonpayable
1143
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1144
+ */
1145
+ async decreaseAllowance(spender, subtractedValue, options) {
1146
+ if (!this.contract.write) {
1147
+ throw new Error('Wallet client is required for write operations');
1148
+ }
1149
+ return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
1150
+ }
1151
+ /**
1152
+ * decreaseDelayBetweenTx
1153
+ * nonpayable
1154
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1155
+ */
1156
+ async decreaseDelayBetweenTx(newDelay, options) {
1157
+ if (!this.contract.write) {
1158
+ throw new Error('Wallet client is required for write operations');
1159
+ }
1160
+ return this.contract.write.decreaseDelayBetweenTx([newDelay], options);
1161
+ }
1162
+ /**
1163
+ * grantRole
1164
+ * nonpayable
1165
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1166
+ */
1167
+ async grantRole(role, account, options) {
1168
+ if (!this.contract.write) {
1169
+ throw new Error('Wallet client is required for write operations');
1170
+ }
1171
+ return this.contract.write.grantRole([role, account], options);
1172
+ }
1173
+ /**
1174
+ * increaseAllowance
1175
+ * nonpayable
1176
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1177
+ */
1178
+ async increaseAllowance(spender, addedValue, options) {
1179
+ if (!this.contract.write) {
1180
+ throw new Error('Wallet client is required for write operations');
1181
+ }
1182
+ return this.contract.write.increaseAllowance([spender, addedValue], options);
1183
+ }
1184
+ /**
1185
+ * mint
1186
+ * nonpayable
1187
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1188
+ */
1189
+ async mint(to, amount, options) {
1190
+ if (!this.contract.write) {
1191
+ throw new Error('Wallet client is required for write operations');
1192
+ }
1193
+ return this.contract.write.mint([to, amount], options);
1194
+ }
1195
+ /**
1196
+ * pause
1197
+ * nonpayable
1198
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1199
+ */
1200
+ async pause(options) {
1201
+ if (!this.contract.write) {
1202
+ throw new Error('Wallet client is required for write operations');
1203
+ }
1204
+ return this.contract.write.pause(options);
1205
+ }
1206
+ /**
1207
+ * removeWhitelistedAccount
1208
+ * nonpayable
1209
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1210
+ */
1211
+ async removeWhitelistedAccount(account, options) {
1212
+ if (!this.contract.write) {
1213
+ throw new Error('Wallet client is required for write operations');
1214
+ }
1215
+ return this.contract.write.removeWhitelistedAccount([account], options);
1216
+ }
1217
+ /**
1218
+ * renounceOwnership
1219
+ * nonpayable
1220
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1221
+ */
1222
+ async renounceOwnership(options) {
1223
+ if (!this.contract.write) {
1224
+ throw new Error('Wallet client is required for write operations');
1225
+ }
1226
+ return this.contract.write.renounceOwnership(options);
1227
+ }
1228
+ /**
1229
+ * renounceRole
1230
+ * nonpayable
1231
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1232
+ */
1233
+ async renounceRole(role, account, options) {
1234
+ if (!this.contract.write) {
1235
+ throw new Error('Wallet client is required for write operations');
1236
+ }
1237
+ return this.contract.write.renounceRole([role, account], options);
1238
+ }
1239
+ /**
1240
+ * revokeRole
1241
+ * nonpayable
1242
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1243
+ */
1244
+ async revokeRole(role, account, options) {
1245
+ if (!this.contract.write) {
1246
+ throw new Error('Wallet client is required for write operations');
1247
+ }
1248
+ return this.contract.write.revokeRole([role, account], options);
1249
+ }
1250
+ /**
1251
+ * setTradingStart
1252
+ * nonpayable
1253
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1254
+ */
1255
+ async setTradingStart(time, options) {
1256
+ if (!this.contract.write) {
1257
+ throw new Error('Wallet client is required for write operations');
1258
+ }
1259
+ return this.contract.write.setTradingStart([time], options);
1260
+ }
1261
+ /**
1262
+ * transfer
1263
+ * nonpayable
1264
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1265
+ */
1266
+ async transfer(recipient, amount, options) {
1267
+ if (!this.contract.write) {
1268
+ throw new Error('Wallet client is required for write operations');
1269
+ }
1270
+ return this.contract.write.transfer([recipient, amount], options);
1271
+ }
1272
+ /**
1273
+ * transferFrom
1274
+ * nonpayable
1275
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1276
+ */
1277
+ async transferFrom(sender, recipient, amount, options) {
1278
+ if (!this.contract.write) {
1279
+ throw new Error('Wallet client is required for write operations');
1280
+ }
1281
+ return this.contract.write.transferFrom([sender, recipient, amount], options);
1282
+ }
1283
+ /**
1284
+ * transferOwnership
1285
+ * nonpayable
1286
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1287
+ */
1288
+ async transferOwnership(newOwner, options) {
1289
+ if (!this.contract.write) {
1290
+ throw new Error('Wallet client is required for write operations');
1291
+ }
1292
+ return this.contract.write.transferOwnership([newOwner], options);
1293
+ }
1294
+ /**
1295
+ * unpause
1296
+ * nonpayable
1297
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1298
+ */
1299
+ async unpause(options) {
1300
+ if (!this.contract.write) {
1301
+ throw new Error('Wallet client is required for write operations');
1302
+ }
1303
+ return this.contract.write.unpause(options);
1304
+ }
1305
+ /**
1306
+ * whitelistAccount
1307
+ * nonpayable
1308
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1309
+ */
1310
+ async whitelistAccount(account, options) {
1311
+ if (!this.contract.write) {
1312
+ throw new Error('Wallet client is required for write operations');
1313
+ }
1314
+ return this.contract.write.whitelistAccount([account], options);
1315
+ }
1316
+ /**
1317
+ * Simulate contract write operations (dry-run without sending transaction)
1318
+ *
1319
+ * @example
1320
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1321
+ * console.log('Gas estimate:', result.request.gas);
1322
+ * console.log('Would succeed:', result.result);
1323
+ */
1324
+ get simulate() {
1325
+ const contract = this.contract;
1326
+ if (!contract.simulate) {
1327
+ throw new Error('Public client is required for simulation');
1328
+ }
1329
+ return {
1330
+ /**
1331
+ * Simulate approve
1332
+ * Returns gas estimate and result without sending transaction
1333
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1334
+ */
1335
+ async approve(spender, amount, options) {
1336
+ return contract.simulate.approve([spender, amount], options);
1337
+ },
1338
+ /**
1339
+ * Simulate burn
1340
+ * Returns gas estimate and result without sending transaction
1341
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1342
+ */
1343
+ async burn(amount, options) {
1344
+ return contract.simulate.burn([amount], options);
1345
+ },
1346
+ /**
1347
+ * Simulate burnFrom
1348
+ * Returns gas estimate and result without sending transaction
1349
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1350
+ */
1351
+ async burnFrom(account, amount, options) {
1352
+ return contract.simulate.burnFrom([account, amount], options);
1353
+ },
1354
+ /**
1355
+ * Simulate decreaseAllowance
1356
+ * Returns gas estimate and result without sending transaction
1357
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1358
+ */
1359
+ async decreaseAllowance(spender, subtractedValue, options) {
1360
+ return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
1361
+ },
1362
+ /**
1363
+ * Simulate decreaseDelayBetweenTx
1364
+ * Returns gas estimate and result without sending transaction
1365
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1366
+ */
1367
+ async decreaseDelayBetweenTx(newDelay, options) {
1368
+ return contract.simulate.decreaseDelayBetweenTx([newDelay], options);
1369
+ },
1370
+ /**
1371
+ * Simulate grantRole
1372
+ * Returns gas estimate and result without sending transaction
1373
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1374
+ */
1375
+ async grantRole(role, account, options) {
1376
+ return contract.simulate.grantRole([role, account], options);
1377
+ },
1378
+ /**
1379
+ * Simulate increaseAllowance
1380
+ * Returns gas estimate and result without sending transaction
1381
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1382
+ */
1383
+ async increaseAllowance(spender, addedValue, options) {
1384
+ return contract.simulate.increaseAllowance([spender, addedValue], options);
1385
+ },
1386
+ /**
1387
+ * Simulate mint
1388
+ * Returns gas estimate and result without sending transaction
1389
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1390
+ */
1391
+ async mint(to, amount, options) {
1392
+ return contract.simulate.mint([to, amount], options);
1393
+ },
1394
+ /**
1395
+ * Simulate pause
1396
+ * Returns gas estimate and result without sending transaction
1397
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1398
+ */
1399
+ async pause(options) {
1400
+ return contract.simulate.pause(options);
1401
+ },
1402
+ /**
1403
+ * Simulate removeWhitelistedAccount
1404
+ * Returns gas estimate and result without sending transaction
1405
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1406
+ */
1407
+ async removeWhitelistedAccount(account, options) {
1408
+ return contract.simulate.removeWhitelistedAccount([account], options);
1409
+ },
1410
+ /**
1411
+ * Simulate renounceOwnership
1412
+ * Returns gas estimate and result without sending transaction
1413
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1414
+ */
1415
+ async renounceOwnership(options) {
1416
+ return contract.simulate.renounceOwnership(options);
1417
+ },
1418
+ /**
1419
+ * Simulate renounceRole
1420
+ * Returns gas estimate and result without sending transaction
1421
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1422
+ */
1423
+ async renounceRole(role, account, options) {
1424
+ return contract.simulate.renounceRole([role, account], options);
1425
+ },
1426
+ /**
1427
+ * Simulate revokeRole
1428
+ * Returns gas estimate and result without sending transaction
1429
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1430
+ */
1431
+ async revokeRole(role, account, options) {
1432
+ return contract.simulate.revokeRole([role, account], options);
1433
+ },
1434
+ /**
1435
+ * Simulate setTradingStart
1436
+ * Returns gas estimate and result without sending transaction
1437
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1438
+ */
1439
+ async setTradingStart(time, options) {
1440
+ return contract.simulate.setTradingStart([time], options);
1441
+ },
1442
+ /**
1443
+ * Simulate transfer
1444
+ * Returns gas estimate and result without sending transaction
1445
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1446
+ */
1447
+ async transfer(recipient, amount, options) {
1448
+ return contract.simulate.transfer([recipient, amount], options);
1449
+ },
1450
+ /**
1451
+ * Simulate transferFrom
1452
+ * Returns gas estimate and result without sending transaction
1453
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1454
+ */
1455
+ async transferFrom(sender, recipient, amount, options) {
1456
+ return contract.simulate.transferFrom([sender, recipient, amount], options);
1457
+ },
1458
+ /**
1459
+ * Simulate transferOwnership
1460
+ * Returns gas estimate and result without sending transaction
1461
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1462
+ */
1463
+ async transferOwnership(newOwner, options) {
1464
+ return contract.simulate.transferOwnership([newOwner], options);
1465
+ },
1466
+ /**
1467
+ * Simulate unpause
1468
+ * Returns gas estimate and result without sending transaction
1469
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1470
+ */
1471
+ async unpause(options) {
1472
+ return contract.simulate.unpause(options);
1473
+ },
1474
+ /**
1475
+ * Simulate whitelistAccount
1476
+ * Returns gas estimate and result without sending transaction
1477
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1478
+ */
1479
+ async whitelistAccount(account, options) {
1480
+ return contract.simulate.whitelistAccount([account], options);
1481
+ }
1482
+ };
1483
+ }
1484
+ /**
1485
+ * Watch contract events
1486
+ *
1487
+ * @example
1488
+ * // Watch all Transfer events
1489
+ * const unwatch = contract.watch.Transfer((event) => {
1490
+ * console.log('Transfer:', event);
1491
+ * });
1492
+ *
1493
+ * // Stop watching
1494
+ * unwatch();
1495
+ */
1496
+ get watch() {
1497
+ return {
1498
+ /**
1499
+ * Watch Approval events
1500
+ * @param callback Function to call when event is emitted
1501
+ * @param filter Optional filter for indexed parameters
1502
+ * @returns Unwatch function to stop listening
1503
+ */
1504
+ Approval: (callback, filter) => {
1505
+ return this.publicClient.watchContractEvent({
1506
+ address: this.contractAddress,
1507
+ abi: exports.OneUp_jsonAbi,
1508
+ eventName: 'Approval',
1509
+ args: filter,
1510
+ onLogs: (logs) => {
1511
+ logs.forEach((log) => {
1512
+ callback(log.args);
1513
+ });
1514
+ },
1515
+ });
1516
+ },
1517
+ /**
1518
+ * Watch OwnershipTransferred events
1519
+ * @param callback Function to call when event is emitted
1520
+ * @param filter Optional filter for indexed parameters
1521
+ * @returns Unwatch function to stop listening
1522
+ */
1523
+ OwnershipTransferred: (callback, filter) => {
1524
+ return this.publicClient.watchContractEvent({
1525
+ address: this.contractAddress,
1526
+ abi: exports.OneUp_jsonAbi,
1527
+ eventName: 'OwnershipTransferred',
1528
+ args: filter,
1529
+ onLogs: (logs) => {
1530
+ logs.forEach((log) => {
1531
+ callback(log.args);
1532
+ });
1533
+ },
1534
+ });
1535
+ },
1536
+ /**
1537
+ * Watch Paused events
1538
+ * @param callback Function to call when event is emitted
1539
+ * @param filter Optional filter for indexed parameters
1540
+ * @returns Unwatch function to stop listening
1541
+ */
1542
+ Paused: (callback) => {
1543
+ return this.publicClient.watchContractEvent({
1544
+ address: this.contractAddress,
1545
+ abi: exports.OneUp_jsonAbi,
1546
+ eventName: 'Paused',
1547
+ onLogs: (logs) => {
1548
+ logs.forEach((log) => {
1549
+ callback(log.args);
1550
+ });
1551
+ },
1552
+ });
1553
+ },
1554
+ /**
1555
+ * Watch RoleAdminChanged 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
+ RoleAdminChanged: (callback, filter) => {
1561
+ return this.publicClient.watchContractEvent({
1562
+ address: this.contractAddress,
1563
+ abi: exports.OneUp_jsonAbi,
1564
+ eventName: 'RoleAdminChanged',
1565
+ args: filter,
1566
+ onLogs: (logs) => {
1567
+ logs.forEach((log) => {
1568
+ callback(log.args);
1569
+ });
1570
+ },
1571
+ });
1572
+ },
1573
+ /**
1574
+ * Watch RoleGranted 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
+ RoleGranted: (callback, filter) => {
1580
+ return this.publicClient.watchContractEvent({
1581
+ address: this.contractAddress,
1582
+ abi: exports.OneUp_jsonAbi,
1583
+ eventName: 'RoleGranted',
1584
+ args: filter,
1585
+ onLogs: (logs) => {
1586
+ logs.forEach((log) => {
1587
+ callback(log.args);
1588
+ });
1589
+ },
1590
+ });
1591
+ },
1592
+ /**
1593
+ * Watch RoleRevoked events
1594
+ * @param callback Function to call when event is emitted
1595
+ * @param filter Optional filter for indexed parameters
1596
+ * @returns Unwatch function to stop listening
1597
+ */
1598
+ RoleRevoked: (callback, filter) => {
1599
+ return this.publicClient.watchContractEvent({
1600
+ address: this.contractAddress,
1601
+ abi: exports.OneUp_jsonAbi,
1602
+ eventName: 'RoleRevoked',
1603
+ args: filter,
1604
+ onLogs: (logs) => {
1605
+ logs.forEach((log) => {
1606
+ callback(log.args);
1607
+ });
1608
+ },
1609
+ });
1610
+ },
1611
+ /**
1612
+ * Watch Transfer events
1613
+ * @param callback Function to call when event is emitted
1614
+ * @param filter Optional filter for indexed parameters
1615
+ * @returns Unwatch function to stop listening
1616
+ */
1617
+ Transfer: (callback, filter) => {
1618
+ return this.publicClient.watchContractEvent({
1619
+ address: this.contractAddress,
1620
+ abi: exports.OneUp_jsonAbi,
1621
+ eventName: 'Transfer',
1622
+ args: filter,
1623
+ onLogs: (logs) => {
1624
+ logs.forEach((log) => {
1625
+ callback(log.args);
1626
+ });
1627
+ },
1628
+ });
1629
+ },
1630
+ /**
1631
+ * Watch Unpaused events
1632
+ * @param callback Function to call when event is emitted
1633
+ * @param filter Optional filter for indexed parameters
1634
+ * @returns Unwatch function to stop listening
1635
+ */
1636
+ Unpaused: (callback) => {
1637
+ return this.publicClient.watchContractEvent({
1638
+ address: this.contractAddress,
1639
+ abi: exports.OneUp_jsonAbi,
1640
+ eventName: 'Unpaused',
1641
+ onLogs: (logs) => {
1642
+ logs.forEach((log) => {
1643
+ callback(log.args);
1644
+ });
1645
+ },
1646
+ });
1647
+ }
1648
+ };
1649
+ }
1650
+ }
1651
+ exports.OneUp_json = OneUp_json;