@gitmyabi/zc 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.
@@ -8,25 +8,41 @@ import { getContract } from 'viem';
8
8
  */
9
9
  export const LaunchToken_jsonAbi = [
10
10
  {
11
- "inputs": [],
11
+ "inputs": [
12
+ {
13
+ "internalType": "string",
14
+ "name": "name_",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "internalType": "string",
19
+ "name": "symbol_",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "internalType": "string",
24
+ "name": "metadataUri_",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "internalType": "address",
29
+ "name": "creator_",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "internalType": "address",
34
+ "name": "recipient",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "internalType": "address",
39
+ "name": "distributor_",
40
+ "type": "address"
41
+ }
42
+ ],
12
43
  "stateMutability": "nonpayable",
13
44
  "type": "constructor"
14
45
  },
15
- {
16
- "inputs": [],
17
- "name": "AlreadyInitialised",
18
- "type": "error"
19
- },
20
- {
21
- "inputs": [],
22
- "name": "BuyCapExceeded",
23
- "type": "error"
24
- },
25
- {
26
- "inputs": [],
27
- "name": "CreatorOnlyBlock",
28
- "type": "error"
29
- },
30
46
  {
31
47
  "inputs": [
32
48
  {
@@ -113,47 +129,6 @@ export const LaunchToken_jsonAbi = [
113
129
  "name": "ERC20InvalidSpender",
114
130
  "type": "error"
115
131
  },
116
- {
117
- "inputs": [],
118
- "name": "HoldCapExceeded",
119
- "type": "error"
120
- },
121
- {
122
- "inputs": [],
123
- "name": "MarketAlreadySet",
124
- "type": "error"
125
- },
126
- {
127
- "inputs": [],
128
- "name": "NoEligibleSupply",
129
- "type": "error"
130
- },
131
- {
132
- "inputs": [],
133
- "name": "NothingToClaim",
134
- "type": "error"
135
- },
136
- {
137
- "inputs": [],
138
- "name": "OnlyFactory",
139
- "type": "error"
140
- },
141
- {
142
- "inputs": [],
143
- "name": "RewardTransferFailed",
144
- "type": "error"
145
- },
146
- {
147
- "inputs": [
148
- {
149
- "internalType": "address",
150
- "name": "token",
151
- "type": "address"
152
- }
153
- ],
154
- "name": "SafeERC20FailedOperation",
155
- "type": "error"
156
- },
157
132
  {
158
133
  "anonymous": false,
159
134
  "inputs": [
@@ -179,76 +154,6 @@ export const LaunchToken_jsonAbi = [
179
154
  "name": "Approval",
180
155
  "type": "event"
181
156
  },
182
- {
183
- "anonymous": false,
184
- "inputs": [
185
- {
186
- "indexed": true,
187
- "internalType": "address",
188
- "name": "rewardToken",
189
- "type": "address"
190
- }
191
- ],
192
- "name": "HolderFeesEnabled",
193
- "type": "event"
194
- },
195
- {
196
- "anonymous": false,
197
- "inputs": [
198
- {
199
- "indexed": false,
200
- "internalType": "uint256",
201
- "name": "amount",
202
- "type": "uint256"
203
- },
204
- {
205
- "indexed": false,
206
- "internalType": "uint256",
207
- "name": "accRewardPerToken",
208
- "type": "uint256"
209
- }
210
- ],
211
- "name": "RewardAdded",
212
- "type": "event"
213
- },
214
- {
215
- "anonymous": false,
216
- "inputs": [
217
- {
218
- "indexed": false,
219
- "internalType": "uint256",
220
- "name": "amount",
221
- "type": "uint256"
222
- },
223
- {
224
- "indexed": false,
225
- "internalType": "uint256",
226
- "name": "totalCarried",
227
- "type": "uint256"
228
- }
229
- ],
230
- "name": "RewardCarried",
231
- "type": "event"
232
- },
233
- {
234
- "anonymous": false,
235
- "inputs": [
236
- {
237
- "indexed": true,
238
- "internalType": "address",
239
- "name": "holder",
240
- "type": "address"
241
- },
242
- {
243
- "indexed": false,
244
- "internalType": "uint256",
245
- "name": "amount",
246
- "type": "uint256"
247
- }
248
- ],
249
- "name": "RewardClaimed",
250
- "type": "event"
251
- },
252
157
  {
253
158
  "anonymous": false,
254
159
  "inputs": [
@@ -276,64 +181,12 @@ export const LaunchToken_jsonAbi = [
276
181
  },
277
182
  {
278
183
  "inputs": [],
279
- "name": "GUARD_BLOCKS",
280
- "outputs": [
281
- {
282
- "internalType": "uint256",
283
- "name": "",
284
- "type": "uint256"
285
- }
286
- ],
287
- "stateMutability": "view",
288
- "type": "function"
289
- },
290
- {
291
- "inputs": [],
292
- "name": "MAX_BUY",
293
- "outputs": [
294
- {
295
- "internalType": "uint256",
296
- "name": "",
297
- "type": "uint256"
298
- }
299
- ],
300
- "stateMutability": "view",
301
- "type": "function"
302
- },
303
- {
304
- "inputs": [],
305
- "name": "MAX_HOLD",
306
- "outputs": [
307
- {
308
- "internalType": "uint256",
309
- "name": "",
310
- "type": "uint256"
311
- }
312
- ],
313
- "stateMutability": "view",
314
- "type": "function"
315
- },
316
- {
317
- "inputs": [],
318
- "name": "RAMP_BLOCKS",
319
- "outputs": [
320
- {
321
- "internalType": "uint256",
322
- "name": "",
323
- "type": "uint256"
324
- }
325
- ],
326
- "stateMutability": "view",
327
- "type": "function"
328
- },
329
- {
330
- "inputs": [],
331
- "name": "RAMP_START",
184
+ "name": "DESCRIPTION",
332
185
  "outputs": [
333
186
  {
334
- "internalType": "uint256",
187
+ "internalType": "string",
335
188
  "name": "",
336
- "type": "uint256"
189
+ "type": "string"
337
190
  }
338
191
  ],
339
192
  "stateMutability": "view",
@@ -352,19 +205,6 @@ export const LaunchToken_jsonAbi = [
352
205
  "stateMutability": "view",
353
206
  "type": "function"
354
207
  },
355
- {
356
- "inputs": [],
357
- "name": "accRewardPerToken",
358
- "outputs": [
359
- {
360
- "internalType": "uint256",
361
- "name": "",
362
- "type": "uint256"
363
- }
364
- ],
365
- "stateMutability": "view",
366
- "type": "function"
367
- },
368
208
  {
369
209
  "inputs": [
370
210
  {
@@ -434,12 +274,12 @@ export const LaunchToken_jsonAbi = [
434
274
  },
435
275
  {
436
276
  "inputs": [],
437
- "name": "carriedReward",
277
+ "name": "creator",
438
278
  "outputs": [
439
279
  {
440
- "internalType": "uint256",
280
+ "internalType": "address",
441
281
  "name": "",
442
- "type": "uint256"
282
+ "type": "address"
443
283
  }
444
284
  ],
445
285
  "stateMutability": "view",
@@ -447,20 +287,20 @@ export const LaunchToken_jsonAbi = [
447
287
  },
448
288
  {
449
289
  "inputs": [],
450
- "name": "claim",
290
+ "name": "decimals",
451
291
  "outputs": [
452
292
  {
453
- "internalType": "uint256",
454
- "name": "amount",
455
- "type": "uint256"
293
+ "internalType": "uint8",
294
+ "name": "",
295
+ "type": "uint8"
456
296
  }
457
297
  ],
458
- "stateMutability": "nonpayable",
298
+ "stateMutability": "view",
459
299
  "type": "function"
460
300
  },
461
301
  {
462
302
  "inputs": [],
463
- "name": "creator",
303
+ "name": "distributor",
464
304
  "outputs": [
465
305
  {
466
306
  "internalType": "address",
@@ -473,12 +313,12 @@ export const LaunchToken_jsonAbi = [
473
313
  },
474
314
  {
475
315
  "inputs": [],
476
- "name": "currentBuyCap",
316
+ "name": "factory",
477
317
  "outputs": [
478
318
  {
479
- "internalType": "uint256",
319
+ "internalType": "address",
480
320
  "name": "",
481
- "type": "uint256"
321
+ "type": "address"
482
322
  }
483
323
  ],
484
324
  "stateMutability": "view",
@@ -486,12 +326,12 @@ export const LaunchToken_jsonAbi = [
486
326
  },
487
327
  {
488
328
  "inputs": [],
489
- "name": "decimals",
329
+ "name": "metadataUri",
490
330
  "outputs": [
491
331
  {
492
- "internalType": "uint8",
332
+ "internalType": "string",
493
333
  "name": "",
494
- "type": "uint8"
334
+ "type": "string"
495
335
  }
496
336
  ],
497
337
  "stateMutability": "view",
@@ -499,43 +339,25 @@ export const LaunchToken_jsonAbi = [
499
339
  },
500
340
  {
501
341
  "inputs": [],
502
- "name": "eligibleSupply",
342
+ "name": "name",
503
343
  "outputs": [
504
344
  {
505
- "internalType": "uint256",
345
+ "internalType": "string",
506
346
  "name": "",
507
- "type": "uint256"
347
+ "type": "string"
508
348
  }
509
349
  ],
510
350
  "stateMutability": "view",
511
351
  "type": "function"
512
352
  },
513
- {
514
- "inputs": [
515
- {
516
- "internalType": "address",
517
- "name": "rewardToken_",
518
- "type": "address"
519
- },
520
- {
521
- "internalType": "address",
522
- "name": "rewardSource_",
523
- "type": "address"
524
- }
525
- ],
526
- "name": "enableHolderFees",
527
- "outputs": [],
528
- "stateMutability": "nonpayable",
529
- "type": "function"
530
- },
531
353
  {
532
354
  "inputs": [],
533
- "name": "factory",
355
+ "name": "symbol",
534
356
  "outputs": [
535
357
  {
536
- "internalType": "address",
358
+ "internalType": "string",
537
359
  "name": "",
538
- "type": "address"
360
+ "type": "string"
539
361
  }
540
362
  ],
541
363
  "stateMutability": "view",
@@ -543,254 +365,19 @@ export const LaunchToken_jsonAbi = [
543
365
  },
544
366
  {
545
367
  "inputs": [],
546
- "name": "guardActive",
368
+ "name": "totalSupply",
547
369
  "outputs": [
548
370
  {
549
- "internalType": "bool",
371
+ "internalType": "uint256",
550
372
  "name": "",
551
- "type": "bool"
373
+ "type": "uint256"
552
374
  }
553
375
  ],
554
376
  "stateMutability": "view",
555
377
  "type": "function"
556
378
  },
557
379
  {
558
- "inputs": [],
559
- "name": "guardEndsAtBlock",
560
- "outputs": [
561
- {
562
- "internalType": "uint256",
563
- "name": "",
564
- "type": "uint256"
565
- }
566
- ],
567
- "stateMutability": "view",
568
- "type": "function"
569
- },
570
- {
571
- "inputs": [],
572
- "name": "holderFeesEnabled",
573
- "outputs": [
574
- {
575
- "internalType": "bool",
576
- "name": "",
577
- "type": "bool"
578
- }
579
- ],
580
- "stateMutability": "view",
581
- "type": "function"
582
- },
583
- {
584
- "inputs": [
585
- {
586
- "internalType": "string",
587
- "name": "name_",
588
- "type": "string"
589
- },
590
- {
591
- "internalType": "string",
592
- "name": "symbol_",
593
- "type": "string"
594
- },
595
- {
596
- "internalType": "string",
597
- "name": "metadataURI_",
598
- "type": "string"
599
- },
600
- {
601
- "internalType": "address",
602
- "name": "creator_",
603
- "type": "address"
604
- }
605
- ],
606
- "name": "initialize",
607
- "outputs": [],
608
- "stateMutability": "nonpayable",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [],
613
- "name": "launchBlock",
614
- "outputs": [
615
- {
616
- "internalType": "uint256",
617
- "name": "",
618
- "type": "uint256"
619
- }
620
- ],
621
- "stateMutability": "view",
622
- "type": "function"
623
- },
624
- {
625
- "inputs": [],
626
- "name": "market",
627
- "outputs": [
628
- {
629
- "internalType": "address",
630
- "name": "",
631
- "type": "address"
632
- }
633
- ],
634
- "stateMutability": "view",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [],
639
- "name": "metadataURI",
640
- "outputs": [
641
- {
642
- "internalType": "string",
643
- "name": "",
644
- "type": "string"
645
- }
646
- ],
647
- "stateMutability": "view",
648
- "type": "function"
649
- },
650
- {
651
- "inputs": [],
652
- "name": "name",
653
- "outputs": [
654
- {
655
- "internalType": "string",
656
- "name": "",
657
- "type": "string"
658
- }
659
- ],
660
- "stateMutability": "view",
661
- "type": "function"
662
- },
663
- {
664
- "inputs": [
665
- {
666
- "internalType": "uint256",
667
- "name": "amount",
668
- "type": "uint256"
669
- }
670
- ],
671
- "name": "notifyReward",
672
- "outputs": [],
673
- "stateMutability": "payable",
674
- "type": "function"
675
- },
676
- {
677
- "inputs": [
678
- {
679
- "internalType": "address",
680
- "name": "holder",
681
- "type": "address"
682
- }
683
- ],
684
- "name": "pendingReward",
685
- "outputs": [
686
- {
687
- "internalType": "uint256",
688
- "name": "",
689
- "type": "uint256"
690
- }
691
- ],
692
- "stateMutability": "view",
693
- "type": "function"
694
- },
695
- {
696
- "inputs": [],
697
- "name": "rampEndsAtBlock",
698
- "outputs": [
699
- {
700
- "internalType": "uint256",
701
- "name": "",
702
- "type": "uint256"
703
- }
704
- ],
705
- "stateMutability": "view",
706
- "type": "function"
707
- },
708
- {
709
- "inputs": [
710
- {
711
- "internalType": "address",
712
- "name": "",
713
- "type": "address"
714
- }
715
- ],
716
- "name": "rewardExcluded",
717
- "outputs": [
718
- {
719
- "internalType": "bool",
720
- "name": "",
721
- "type": "bool"
722
- }
723
- ],
724
- "stateMutability": "view",
725
- "type": "function"
726
- },
727
- {
728
- "inputs": [],
729
- "name": "rewardSource",
730
- "outputs": [
731
- {
732
- "internalType": "address",
733
- "name": "",
734
- "type": "address"
735
- }
736
- ],
737
- "stateMutability": "view",
738
- "type": "function"
739
- },
740
- {
741
- "inputs": [],
742
- "name": "rewardToken",
743
- "outputs": [
744
- {
745
- "internalType": "address",
746
- "name": "",
747
- "type": "address"
748
- }
749
- ],
750
- "stateMutability": "view",
751
- "type": "function"
752
- },
753
- {
754
- "inputs": [
755
- {
756
- "internalType": "address",
757
- "name": "market_",
758
- "type": "address"
759
- }
760
- ],
761
- "name": "setMarket",
762
- "outputs": [],
763
- "stateMutability": "nonpayable",
764
- "type": "function"
765
- },
766
- {
767
- "inputs": [],
768
- "name": "symbol",
769
- "outputs": [
770
- {
771
- "internalType": "string",
772
- "name": "",
773
- "type": "string"
774
- }
775
- ],
776
- "stateMutability": "view",
777
- "type": "function"
778
- },
779
- {
780
- "inputs": [],
781
- "name": "totalSupply",
782
- "outputs": [
783
- {
784
- "internalType": "uint256",
785
- "name": "",
786
- "type": "uint256"
787
- }
788
- ],
789
- "stateMutability": "view",
790
- "type": "function"
791
- },
792
- {
793
- "inputs": [
380
+ "inputs": [
794
381
  {
795
382
  "internalType": "address",
796
383
  "name": "to",
@@ -841,29 +428,6 @@ export const LaunchToken_jsonAbi = [
841
428
  ],
842
429
  "stateMutability": "nonpayable",
843
430
  "type": "function"
844
- },
845
- {
846
- "inputs": [
847
- {
848
- "internalType": "address",
849
- "name": "",
850
- "type": "address"
851
- }
852
- ],
853
- "name": "unclaimed",
854
- "outputs": [
855
- {
856
- "internalType": "uint256",
857
- "name": "",
858
- "type": "uint256"
859
- }
860
- ],
861
- "stateMutability": "view",
862
- "type": "function"
863
- },
864
- {
865
- "stateMutability": "payable",
866
- "type": "receive"
867
431
  }
868
432
  ] as const satisfies Abi;
869
433
 
@@ -950,43 +514,11 @@ export class LaunchToken_json {
950
514
  }
951
515
 
952
516
  /**
953
- * GUARD_BLOCKS
954
- * view
955
- */
956
- async GUARD_BLOCKS(): Promise<bigint> {
957
- return this.contract.read.GUARD_BLOCKS() as Promise<bigint>;
958
- }
959
-
960
- /**
961
- * MAX_BUY
962
- * view
963
- */
964
- async MAX_BUY(): Promise<bigint> {
965
- return this.contract.read.MAX_BUY() as Promise<bigint>;
966
- }
967
-
968
- /**
969
- * MAX_HOLD
517
+ * DESCRIPTION
970
518
  * view
971
519
  */
972
- async MAX_HOLD(): Promise<bigint> {
973
- return this.contract.read.MAX_HOLD() as Promise<bigint>;
974
- }
975
-
976
- /**
977
- * RAMP_BLOCKS
978
- * view
979
- */
980
- async RAMP_BLOCKS(): Promise<bigint> {
981
- return this.contract.read.RAMP_BLOCKS() as Promise<bigint>;
982
- }
983
-
984
- /**
985
- * RAMP_START
986
- * view
987
- */
988
- async RAMP_START(): Promise<bigint> {
989
- return this.contract.read.RAMP_START() as Promise<bigint>;
520
+ async DESCRIPTION(): Promise<string> {
521
+ return this.contract.read.DESCRIPTION() as Promise<string>;
990
522
  }
991
523
 
992
524
  /**
@@ -997,14 +529,6 @@ export class LaunchToken_json {
997
529
  return this.contract.read.TOTAL_SUPPLY() as Promise<bigint>;
998
530
  }
999
531
 
1000
- /**
1001
- * accRewardPerToken
1002
- * view
1003
- */
1004
- async accRewardPerToken(): Promise<bigint> {
1005
- return this.contract.read.accRewardPerToken() as Promise<bigint>;
1006
- }
1007
-
1008
532
  /**
1009
533
  * allowance
1010
534
  * view
@@ -1022,147 +546,51 @@ export class LaunchToken_json {
1022
546
  }
1023
547
 
1024
548
  /**
1025
- * carriedReward
1026
- * view
1027
- */
1028
- async carriedReward(): Promise<bigint> {
1029
- return this.contract.read.carriedReward() as Promise<bigint>;
1030
- }
1031
-
1032
- /**
1033
- * creator
1034
- * view
1035
- */
1036
- async creator(): Promise<`0x${string}`> {
1037
- return this.contract.read.creator() as Promise<`0x${string}`>;
1038
- }
1039
-
1040
- /**
1041
- * currentBuyCap
1042
- * view
1043
- */
1044
- async currentBuyCap(): Promise<bigint> {
1045
- return this.contract.read.currentBuyCap() as Promise<bigint>;
1046
- }
1047
-
1048
- /**
1049
- * decimals
1050
- * view
1051
- */
1052
- async decimals(): Promise<bigint> {
1053
- return this.contract.read.decimals() as Promise<bigint>;
1054
- }
1055
-
1056
- /**
1057
- * eligibleSupply
1058
- * view
1059
- */
1060
- async eligibleSupply(): Promise<bigint> {
1061
- return this.contract.read.eligibleSupply() as Promise<bigint>;
1062
- }
1063
-
1064
- /**
1065
- * factory
1066
- * view
1067
- */
1068
- async factory(): Promise<`0x${string}`> {
1069
- return this.contract.read.factory() as Promise<`0x${string}`>;
1070
- }
1071
-
1072
- /**
1073
- * guardActive
1074
- * view
1075
- */
1076
- async guardActive(): Promise<boolean> {
1077
- return this.contract.read.guardActive() as Promise<boolean>;
1078
- }
1079
-
1080
- /**
1081
- * guardEndsAtBlock
1082
- * view
1083
- */
1084
- async guardEndsAtBlock(): Promise<bigint> {
1085
- return this.contract.read.guardEndsAtBlock() as Promise<bigint>;
1086
- }
1087
-
1088
- /**
1089
- * holderFeesEnabled
1090
- * view
1091
- */
1092
- async holderFeesEnabled(): Promise<boolean> {
1093
- return this.contract.read.holderFeesEnabled() as Promise<boolean>;
1094
- }
1095
-
1096
- /**
1097
- * launchBlock
1098
- * view
1099
- */
1100
- async launchBlock(): Promise<bigint> {
1101
- return this.contract.read.launchBlock() as Promise<bigint>;
1102
- }
1103
-
1104
- /**
1105
- * market
1106
- * view
1107
- */
1108
- async market(): Promise<`0x${string}`> {
1109
- return this.contract.read.market() as Promise<`0x${string}`>;
1110
- }
1111
-
1112
- /**
1113
- * metadataURI
1114
- * view
1115
- */
1116
- async metadataURI(): Promise<string> {
1117
- return this.contract.read.metadataURI() as Promise<string>;
1118
- }
1119
-
1120
- /**
1121
- * name
549
+ * creator
1122
550
  * view
1123
551
  */
1124
- async name(): Promise<string> {
1125
- return this.contract.read.name() as Promise<string>;
552
+ async creator(): Promise<`0x${string}`> {
553
+ return this.contract.read.creator() as Promise<`0x${string}`>;
1126
554
  }
1127
555
 
1128
556
  /**
1129
- * pendingReward
557
+ * decimals
1130
558
  * view
1131
559
  */
1132
- async pendingReward(holder: `0x${string}`): Promise<bigint> {
1133
- return this.contract.read.pendingReward([holder] as const) as Promise<bigint>;
560
+ async decimals(): Promise<bigint> {
561
+ return this.contract.read.decimals() as Promise<bigint>;
1134
562
  }
1135
563
 
1136
564
  /**
1137
- * rampEndsAtBlock
565
+ * distributor
1138
566
  * view
1139
567
  */
1140
- async rampEndsAtBlock(): Promise<bigint> {
1141
- return this.contract.read.rampEndsAtBlock() as Promise<bigint>;
568
+ async distributor(): Promise<`0x${string}`> {
569
+ return this.contract.read.distributor() as Promise<`0x${string}`>;
1142
570
  }
1143
571
 
1144
572
  /**
1145
- * rewardExcluded
573
+ * factory
1146
574
  * view
1147
575
  */
1148
- async rewardExcluded(arg0: `0x${string}`): Promise<boolean> {
1149
- return this.contract.read.rewardExcluded([arg0] as const) as Promise<boolean>;
576
+ async factory(): Promise<`0x${string}`> {
577
+ return this.contract.read.factory() as Promise<`0x${string}`>;
1150
578
  }
1151
579
 
1152
580
  /**
1153
- * rewardSource
581
+ * metadataUri
1154
582
  * view
1155
583
  */
1156
- async rewardSource(): Promise<`0x${string}`> {
1157
- return this.contract.read.rewardSource() as Promise<`0x${string}`>;
584
+ async metadataUri(): Promise<string> {
585
+ return this.contract.read.metadataUri() as Promise<string>;
1158
586
  }
1159
587
 
1160
588
  /**
1161
- * rewardToken
589
+ * name
1162
590
  * view
1163
591
  */
1164
- async rewardToken(): Promise<`0x${string}`> {
1165
- return this.contract.read.rewardToken() as Promise<`0x${string}`>;
592
+ async name(): Promise<string> {
593
+ return this.contract.read.name() as Promise<string>;
1166
594
  }
1167
595
 
1168
596
  /**
@@ -1181,14 +609,6 @@ export class LaunchToken_json {
1181
609
  return this.contract.read.totalSupply() as Promise<bigint>;
1182
610
  }
1183
611
 
1184
- /**
1185
- * unclaimed
1186
- * view
1187
- */
1188
- async unclaimed(arg0: `0x${string}`): Promise<bigint> {
1189
- return this.contract.read.unclaimed([arg0] as const) as Promise<bigint>;
1190
- }
1191
-
1192
612
  /**
1193
613
  * approve
1194
614
  * nonpayable
@@ -1212,121 +632,6 @@ export class LaunchToken_json {
1212
632
  return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
1213
633
  }
1214
634
 
1215
- /**
1216
- * claim
1217
- * nonpayable
1218
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1219
- */
1220
- async claim(options?: {
1221
- accessList?: import('viem').AccessList;
1222
- authorizationList?: import('viem').AuthorizationList;
1223
- chain?: import('viem').Chain | null;
1224
- dataSuffix?: `0x${string}`;
1225
- gas?: bigint;
1226
- gasPrice?: bigint;
1227
- maxFeePerGas?: bigint;
1228
- maxPriorityFeePerGas?: bigint;
1229
- nonce?: number;
1230
- value?: bigint;
1231
- }): Promise<`0x${string}`> {
1232
- if (!this.contract.write) {
1233
- throw new Error('Wallet client is required for write operations');
1234
- }
1235
- return this.contract.write.claim(options) as Promise<`0x${string}`>;
1236
- }
1237
-
1238
- /**
1239
- * enableHolderFees
1240
- * nonpayable
1241
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1242
- */
1243
- async enableHolderFees(rewardToken_: `0x${string}`, rewardSource_: `0x${string}`, options?: {
1244
- accessList?: import('viem').AccessList;
1245
- authorizationList?: import('viem').AuthorizationList;
1246
- chain?: import('viem').Chain | null;
1247
- dataSuffix?: `0x${string}`;
1248
- gas?: bigint;
1249
- gasPrice?: bigint;
1250
- maxFeePerGas?: bigint;
1251
- maxPriorityFeePerGas?: bigint;
1252
- nonce?: number;
1253
- value?: bigint;
1254
- }): Promise<`0x${string}`> {
1255
- if (!this.contract.write) {
1256
- throw new Error('Wallet client is required for write operations');
1257
- }
1258
- return this.contract.write.enableHolderFees([rewardToken_, rewardSource_] as const, options) as Promise<`0x${string}`>;
1259
- }
1260
-
1261
- /**
1262
- * initialize
1263
- * nonpayable
1264
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1265
- */
1266
- async initialize(name_: string, symbol_: string, metadataURI_: string, creator_: `0x${string}`, options?: {
1267
- accessList?: import('viem').AccessList;
1268
- authorizationList?: import('viem').AuthorizationList;
1269
- chain?: import('viem').Chain | null;
1270
- dataSuffix?: `0x${string}`;
1271
- gas?: bigint;
1272
- gasPrice?: bigint;
1273
- maxFeePerGas?: bigint;
1274
- maxPriorityFeePerGas?: bigint;
1275
- nonce?: number;
1276
- value?: bigint;
1277
- }): Promise<`0x${string}`> {
1278
- if (!this.contract.write) {
1279
- throw new Error('Wallet client is required for write operations');
1280
- }
1281
- return this.contract.write.initialize([name_, symbol_, metadataURI_, creator_] as const, options) as Promise<`0x${string}`>;
1282
- }
1283
-
1284
- /**
1285
- * notifyReward
1286
- * payable
1287
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1288
- */
1289
- async notifyReward(amount: bigint, options?: {
1290
- accessList?: import('viem').AccessList;
1291
- authorizationList?: import('viem').AuthorizationList;
1292
- chain?: import('viem').Chain | null;
1293
- dataSuffix?: `0x${string}`;
1294
- gas?: bigint;
1295
- gasPrice?: bigint;
1296
- maxFeePerGas?: bigint;
1297
- maxPriorityFeePerGas?: bigint;
1298
- nonce?: number;
1299
- value?: bigint;
1300
- }): Promise<`0x${string}`> {
1301
- if (!this.contract.write) {
1302
- throw new Error('Wallet client is required for write operations');
1303
- }
1304
- return this.contract.write.notifyReward([amount] as const, options) as Promise<`0x${string}`>;
1305
- }
1306
-
1307
- /**
1308
- * setMarket
1309
- * nonpayable
1310
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1311
- */
1312
- async setMarket(market_: `0x${string}`, options?: {
1313
- accessList?: import('viem').AccessList;
1314
- authorizationList?: import('viem').AuthorizationList;
1315
- chain?: import('viem').Chain | null;
1316
- dataSuffix?: `0x${string}`;
1317
- gas?: bigint;
1318
- gasPrice?: bigint;
1319
- maxFeePerGas?: bigint;
1320
- maxPriorityFeePerGas?: bigint;
1321
- nonce?: number;
1322
- value?: bigint;
1323
- }): Promise<`0x${string}`> {
1324
- if (!this.contract.write) {
1325
- throw new Error('Wallet client is required for write operations');
1326
- }
1327
- return this.contract.write.setMarket([market_] as const, options) as Promise<`0x${string}`>;
1328
- }
1329
-
1330
635
  /**
1331
636
  * transfer
1332
637
  * nonpayable
@@ -1408,101 +713,6 @@ export class LaunchToken_json {
1408
713
  }): Promise<boolean> {
1409
714
  return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
1410
715
  },
1411
- /**
1412
- * Simulate claim
1413
- * Returns gas estimate and result without sending transaction
1414
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1415
- */
1416
- async claim(options?: {
1417
- accessList?: import('viem').AccessList;
1418
- authorizationList?: import('viem').AuthorizationList;
1419
- chain?: import('viem').Chain | null;
1420
- dataSuffix?: `0x${string}`;
1421
- gas?: bigint;
1422
- gasPrice?: bigint;
1423
- maxFeePerGas?: bigint;
1424
- maxPriorityFeePerGas?: bigint;
1425
- nonce?: number;
1426
- value?: bigint;
1427
- }): Promise<bigint> {
1428
- return contract.simulate.claim(options) as Promise<bigint>;
1429
- },
1430
- /**
1431
- * Simulate enableHolderFees
1432
- * Returns gas estimate and result without sending transaction
1433
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1434
- */
1435
- async enableHolderFees(rewardToken_: `0x${string}`, rewardSource_: `0x${string}`, options?: {
1436
- accessList?: import('viem').AccessList;
1437
- authorizationList?: import('viem').AuthorizationList;
1438
- chain?: import('viem').Chain | null;
1439
- dataSuffix?: `0x${string}`;
1440
- gas?: bigint;
1441
- gasPrice?: bigint;
1442
- maxFeePerGas?: bigint;
1443
- maxPriorityFeePerGas?: bigint;
1444
- nonce?: number;
1445
- value?: bigint;
1446
- }): Promise<void> {
1447
- return contract.simulate.enableHolderFees([rewardToken_, rewardSource_] as const, options) as Promise<void>;
1448
- },
1449
- /**
1450
- * Simulate initialize
1451
- * Returns gas estimate and result without sending transaction
1452
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1453
- */
1454
- async initialize(name_: string, symbol_: string, metadataURI_: string, creator_: `0x${string}`, options?: {
1455
- accessList?: import('viem').AccessList;
1456
- authorizationList?: import('viem').AuthorizationList;
1457
- chain?: import('viem').Chain | null;
1458
- dataSuffix?: `0x${string}`;
1459
- gas?: bigint;
1460
- gasPrice?: bigint;
1461
- maxFeePerGas?: bigint;
1462
- maxPriorityFeePerGas?: bigint;
1463
- nonce?: number;
1464
- value?: bigint;
1465
- }): Promise<void> {
1466
- return contract.simulate.initialize([name_, symbol_, metadataURI_, creator_] as const, options) as Promise<void>;
1467
- },
1468
- /**
1469
- * Simulate notifyReward
1470
- * Returns gas estimate and result without sending transaction
1471
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1472
- */
1473
- async notifyReward(amount: bigint, options?: {
1474
- accessList?: import('viem').AccessList;
1475
- authorizationList?: import('viem').AuthorizationList;
1476
- chain?: import('viem').Chain | null;
1477
- dataSuffix?: `0x${string}`;
1478
- gas?: bigint;
1479
- gasPrice?: bigint;
1480
- maxFeePerGas?: bigint;
1481
- maxPriorityFeePerGas?: bigint;
1482
- nonce?: number;
1483
- value?: bigint;
1484
- }): Promise<void> {
1485
- return contract.simulate.notifyReward([amount] as const, options) as Promise<void>;
1486
- },
1487
- /**
1488
- * Simulate setMarket
1489
- * Returns gas estimate and result without sending transaction
1490
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1491
- */
1492
- async setMarket(market_: `0x${string}`, options?: {
1493
- accessList?: import('viem').AccessList;
1494
- authorizationList?: import('viem').AuthorizationList;
1495
- chain?: import('viem').Chain | null;
1496
- dataSuffix?: `0x${string}`;
1497
- gas?: bigint;
1498
- gasPrice?: bigint;
1499
- maxFeePerGas?: bigint;
1500
- maxPriorityFeePerGas?: bigint;
1501
- nonce?: number;
1502
- value?: bigint;
1503
- }): Promise<void> {
1504
- return contract.simulate.setMarket([market_] as const, options) as Promise<void>;
1505
- },
1506
716
  /**
1507
717
  * Simulate transfer
1508
718
  * Returns gas estimate and result without sending transaction
@@ -1577,82 +787,6 @@ export class LaunchToken_json {
1577
787
  },
1578
788
  }) as () => void;
1579
789
  },
1580
- /**
1581
- * Watch HolderFeesEnabled events
1582
- * @param callback Function to call when event is emitted
1583
- * @param filter Optional filter for indexed parameters
1584
- * @returns Unwatch function to stop listening
1585
- */
1586
- HolderFeesEnabled: (callback: (event: { rewardToken: `0x${string}` }) => void, filter?: { rewardToken: `0x${string}` }) => {
1587
- return this.publicClient.watchContractEvent({
1588
- address: this.contractAddress,
1589
- abi: LaunchToken_jsonAbi,
1590
- eventName: 'HolderFeesEnabled',
1591
- args: filter,
1592
- onLogs: (logs: any[]) => {
1593
- logs.forEach((log: any) => {
1594
- callback(log.args as any);
1595
- });
1596
- },
1597
- }) as () => void;
1598
- },
1599
- /**
1600
- * Watch RewardAdded events
1601
- * @param callback Function to call when event is emitted
1602
- * @param filter Optional filter for indexed parameters
1603
- * @returns Unwatch function to stop listening
1604
- */
1605
- RewardAdded: (callback: (event: { amount: bigint; accRewardPerToken: bigint }) => void) => {
1606
- return this.publicClient.watchContractEvent({
1607
- address: this.contractAddress,
1608
- abi: LaunchToken_jsonAbi,
1609
- eventName: 'RewardAdded',
1610
-
1611
- onLogs: (logs: any[]) => {
1612
- logs.forEach((log: any) => {
1613
- callback(log.args as any);
1614
- });
1615
- },
1616
- }) as () => void;
1617
- },
1618
- /**
1619
- * Watch RewardCarried events
1620
- * @param callback Function to call when event is emitted
1621
- * @param filter Optional filter for indexed parameters
1622
- * @returns Unwatch function to stop listening
1623
- */
1624
- RewardCarried: (callback: (event: { amount: bigint; totalCarried: bigint }) => void) => {
1625
- return this.publicClient.watchContractEvent({
1626
- address: this.contractAddress,
1627
- abi: LaunchToken_jsonAbi,
1628
- eventName: 'RewardCarried',
1629
-
1630
- onLogs: (logs: any[]) => {
1631
- logs.forEach((log: any) => {
1632
- callback(log.args as any);
1633
- });
1634
- },
1635
- }) as () => void;
1636
- },
1637
- /**
1638
- * Watch RewardClaimed events
1639
- * @param callback Function to call when event is emitted
1640
- * @param filter Optional filter for indexed parameters
1641
- * @returns Unwatch function to stop listening
1642
- */
1643
- RewardClaimed: (callback: (event: { holder: `0x${string}`; amount: bigint }) => void, filter?: { holder: `0x${string}` }) => {
1644
- return this.publicClient.watchContractEvent({
1645
- address: this.contractAddress,
1646
- abi: LaunchToken_jsonAbi,
1647
- eventName: 'RewardClaimed',
1648
- args: filter,
1649
- onLogs: (logs: any[]) => {
1650
- logs.forEach((log: any) => {
1651
- callback(log.args as any);
1652
- });
1653
- },
1654
- }) as () => void;
1655
- },
1656
790
  /**
1657
791
  * Watch Transfer events
1658
792
  * @param callback Function to call when event is emitted