@gitmyabi/zc 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * LaunchToken_json ABI
5
+ * RobinVistaToken_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const LaunchToken_jsonAbi = [
9
+ export const RobinVistaToken_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -14,17 +14,7 @@ export const LaunchToken_jsonAbi = [
14
14
  },
15
15
  {
16
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",
17
+ "name": "AlreadyInitialized",
28
18
  "type": "error"
29
19
  },
30
20
  {
@@ -115,43 +105,7 @@ export const LaunchToken_jsonAbi = [
115
105
  },
116
106
  {
117
107
  "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",
108
+ "name": "NotFactory",
155
109
  "type": "error"
156
110
  },
157
111
  {
@@ -179,76 +133,6 @@ export const LaunchToken_jsonAbi = [
179
133
  "name": "Approval",
180
134
  "type": "event"
181
135
  },
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
136
  {
253
137
  "anonymous": false,
254
138
  "inputs": [
@@ -274,97 +158,6 @@ export const LaunchToken_jsonAbi = [
274
158
  "name": "Transfer",
275
159
  "type": "event"
276
160
  },
277
- {
278
- "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",
332
- "outputs": [
333
- {
334
- "internalType": "uint256",
335
- "name": "",
336
- "type": "uint256"
337
- }
338
- ],
339
- "stateMutability": "view",
340
- "type": "function"
341
- },
342
- {
343
- "inputs": [],
344
- "name": "TOTAL_SUPPLY",
345
- "outputs": [
346
- {
347
- "internalType": "uint256",
348
- "name": "",
349
- "type": "uint256"
350
- }
351
- ],
352
- "stateMutability": "view",
353
- "type": "function"
354
- },
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
161
  {
369
162
  "inputs": [
370
163
  {
@@ -434,33 +227,7 @@ export const LaunchToken_jsonAbi = [
434
227
  },
435
228
  {
436
229
  "inputs": [],
437
- "name": "carriedReward",
438
- "outputs": [
439
- {
440
- "internalType": "uint256",
441
- "name": "",
442
- "type": "uint256"
443
- }
444
- ],
445
- "stateMutability": "view",
446
- "type": "function"
447
- },
448
- {
449
- "inputs": [],
450
- "name": "claim",
451
- "outputs": [
452
- {
453
- "internalType": "uint256",
454
- "name": "amount",
455
- "type": "uint256"
456
- }
457
- ],
458
- "stateMutability": "nonpayable",
459
- "type": "function"
460
- },
461
- {
462
- "inputs": [],
463
- "name": "creator",
230
+ "name": "baseToken",
464
231
  "outputs": [
465
232
  {
466
233
  "internalType": "address",
@@ -471,19 +238,6 @@ export const LaunchToken_jsonAbi = [
471
238
  "stateMutability": "view",
472
239
  "type": "function"
473
240
  },
474
- {
475
- "inputs": [],
476
- "name": "currentBuyCap",
477
- "outputs": [
478
- {
479
- "internalType": "uint256",
480
- "name": "",
481
- "type": "uint256"
482
- }
483
- ],
484
- "stateMutability": "view",
485
- "type": "function"
486
- },
487
241
  {
488
242
  "inputs": [],
489
243
  "name": "decimals",
@@ -499,33 +253,15 @@ export const LaunchToken_jsonAbi = [
499
253
  },
500
254
  {
501
255
  "inputs": [],
502
- "name": "eligibleSupply",
256
+ "name": "deployer",
503
257
  "outputs": [
504
- {
505
- "internalType": "uint256",
506
- "name": "",
507
- "type": "uint256"
508
- }
509
- ],
510
- "stateMutability": "view",
511
- "type": "function"
512
- },
513
- {
514
- "inputs": [
515
- {
516
- "internalType": "address",
517
- "name": "rewardToken_",
518
- "type": "address"
519
- },
520
258
  {
521
259
  "internalType": "address",
522
- "name": "rewardSource_",
260
+ "name": "",
523
261
  "type": "address"
524
262
  }
525
263
  ],
526
- "name": "enableHolderFees",
527
- "outputs": [],
528
- "stateMutability": "nonpayable",
264
+ "stateMutability": "view",
529
265
  "type": "function"
530
266
  },
531
267
  {
@@ -541,45 +277,6 @@ export const LaunchToken_jsonAbi = [
541
277
  "stateMutability": "view",
542
278
  "type": "function"
543
279
  },
544
- {
545
- "inputs": [],
546
- "name": "guardActive",
547
- "outputs": [
548
- {
549
- "internalType": "bool",
550
- "name": "",
551
- "type": "bool"
552
- }
553
- ],
554
- "stateMutability": "view",
555
- "type": "function"
556
- },
557
- {
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
280
  {
584
281
  "inputs": [
585
282
  {
@@ -599,39 +296,18 @@ export const LaunchToken_jsonAbi = [
599
296
  },
600
297
  {
601
298
  "internalType": "address",
602
- "name": "creator_",
299
+ "name": "deployer_",
603
300
  "type": "address"
604
- }
605
- ],
606
- "name": "initialize",
607
- "outputs": [],
608
- "stateMutability": "nonpayable",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [],
613
- "name": "launchBlock",
614
- "outputs": [
301
+ },
615
302
  {
616
303
  "internalType": "uint256",
617
- "name": "",
304
+ "name": "totalSupply_",
618
305
  "type": "uint256"
619
306
  }
620
307
  ],
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",
308
+ "name": "initialize",
309
+ "outputs": [],
310
+ "stateMutability": "nonpayable",
635
311
  "type": "function"
636
312
  },
637
313
  {
@@ -660,46 +336,14 @@ export const LaunchToken_jsonAbi = [
660
336
  "stateMutability": "view",
661
337
  "type": "function"
662
338
  },
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
339
  {
696
340
  "inputs": [],
697
- "name": "rampEndsAtBlock",
341
+ "name": "poolId",
698
342
  "outputs": [
699
343
  {
700
- "internalType": "uint256",
344
+ "internalType": "bytes32",
701
345
  "name": "",
702
- "type": "uint256"
346
+ "type": "bytes32"
703
347
  }
704
348
  ],
705
349
  "stateMutability": "view",
@@ -708,57 +352,17 @@ export const LaunchToken_jsonAbi = [
708
352
  {
709
353
  "inputs": [
710
354
  {
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": [
355
+ "internalType": "bytes32",
356
+ "name": "poolId_",
357
+ "type": "bytes32"
358
+ },
755
359
  {
756
360
  "internalType": "address",
757
- "name": "market_",
361
+ "name": "baseToken_",
758
362
  "type": "address"
759
363
  }
760
364
  ],
761
- "name": "setMarket",
365
+ "name": "setPool",
762
366
  "outputs": [],
763
367
  "stateMutability": "nonpayable",
764
368
  "type": "function"
@@ -841,46 +445,23 @@ export const LaunchToken_jsonAbi = [
841
445
  ],
842
446
  "stateMutability": "nonpayable",
843
447
  "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
448
  }
868
449
  ] as const satisfies Abi;
869
450
 
870
451
  /**
871
- * Type-safe ABI for LaunchToken_json
452
+ * Type-safe ABI for RobinVistaToken_json
872
453
  */
873
- export type LaunchToken_jsonAbi = typeof LaunchToken_jsonAbi;
454
+ export type RobinVistaToken_jsonAbi = typeof RobinVistaToken_jsonAbi;
874
455
 
875
456
  /**
876
- * Contract instance type for LaunchToken_json
457
+ * Contract instance type for RobinVistaToken_json
877
458
  */
878
459
  // Use any for contract type to avoid complex viem type issues
879
460
  // The runtime behavior is type-safe through viem's ABI typing
880
- export type LaunchToken_jsonContract = any;
461
+ export type RobinVistaToken_jsonContract = any;
881
462
 
882
463
  /**
883
- * LaunchToken_json Contract Class
464
+ * RobinVistaToken_json Contract Class
884
465
  *
885
466
  * Provides a class-based API similar to TypeChain for interacting with the contract.
886
467
  *
@@ -888,12 +469,12 @@ export type LaunchToken_jsonContract = any;
888
469
  * ```typescript
889
470
  * import { createPublicClient, createWalletClient, http } from 'viem';
890
471
  * import { mainnet } from 'viem/chains';
891
- * import { LaunchToken_json } from 'LaunchToken_json';
472
+ * import { RobinVistaToken_json } from 'RobinVistaToken_json';
892
473
  *
893
474
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
894
475
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
895
476
  *
896
- * const contract = new LaunchToken_json('0x...', { publicClient, walletClient });
477
+ * const contract = new RobinVistaToken_json('0x...', { publicClient, walletClient });
897
478
  *
898
479
  * // Read functions
899
480
  * const result = await contract.balanceOf('0x...');
@@ -907,102 +488,46 @@ export type LaunchToken_jsonContract = any;
907
488
  *
908
489
  * // Watch events
909
490
  * const unwatch = contract.watch.Transfer((event) => {
910
- * console.log('Transfer event:', event);
911
- * });
912
- * ```
913
- */
914
- export class LaunchToken_json {
915
- private contract: LaunchToken_jsonContract;
916
- private contractAddress: Address;
917
- private publicClient: PublicClient;
918
-
919
- constructor(
920
- address: Address,
921
- clients: {
922
- publicClient: PublicClient;
923
- walletClient?: WalletClient;
924
- }
925
- ) {
926
- this.contractAddress = address;
927
- this.publicClient = clients.publicClient;
928
- this.contract = getContract({
929
- address,
930
- abi: LaunchToken_jsonAbi,
931
- client: {
932
- public: clients.publicClient,
933
- wallet: clients.walletClient,
934
- },
935
- });
936
- }
937
-
938
- /**
939
- * Get the contract address
940
- */
941
- get address(): Address {
942
- return this.contractAddress;
943
- }
944
-
945
- /**
946
- * Get the underlying viem contract instance
947
- */
948
- getContract(): LaunchToken_jsonContract {
949
- return this.contract;
950
- }
951
-
952
- /**
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
970
- * view
971
- */
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
- }
491
+ * console.log('Transfer event:', event);
492
+ * });
493
+ * ```
494
+ */
495
+ export class RobinVistaToken_json {
496
+ private contract: RobinVistaToken_jsonContract;
497
+ private contractAddress: Address;
498
+ private publicClient: PublicClient;
983
499
 
984
- /**
985
- * RAMP_START
986
- * view
987
- */
988
- async RAMP_START(): Promise<bigint> {
989
- return this.contract.read.RAMP_START() as Promise<bigint>;
500
+ constructor(
501
+ address: Address,
502
+ clients: {
503
+ publicClient: PublicClient;
504
+ walletClient?: WalletClient;
505
+ }
506
+ ) {
507
+ this.contractAddress = address;
508
+ this.publicClient = clients.publicClient;
509
+ this.contract = getContract({
510
+ address,
511
+ abi: RobinVistaToken_jsonAbi,
512
+ client: {
513
+ public: clients.publicClient,
514
+ wallet: clients.walletClient,
515
+ },
516
+ });
990
517
  }
991
518
 
992
519
  /**
993
- * TOTAL_SUPPLY
994
- * view
520
+ * Get the contract address
995
521
  */
996
- async TOTAL_SUPPLY(): Promise<bigint> {
997
- return this.contract.read.TOTAL_SUPPLY() as Promise<bigint>;
522
+ get address(): Address {
523
+ return this.contractAddress;
998
524
  }
999
525
 
1000
526
  /**
1001
- * accRewardPerToken
1002
- * view
527
+ * Get the underlying viem contract instance
1003
528
  */
1004
- async accRewardPerToken(): Promise<bigint> {
1005
- return this.contract.read.accRewardPerToken() as Promise<bigint>;
529
+ getContract(): RobinVistaToken_jsonContract {
530
+ return this.contract;
1006
531
  }
1007
532
 
1008
533
  /**
@@ -1022,27 +547,11 @@ export class LaunchToken_json {
1022
547
  }
1023
548
 
1024
549
  /**
1025
- * carriedReward
550
+ * baseToken
1026
551
  * view
1027
552
  */
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>;
553
+ async baseToken(): Promise<`0x${string}`> {
554
+ return this.contract.read.baseToken() as Promise<`0x${string}`>;
1046
555
  }
1047
556
 
1048
557
  /**
@@ -1054,11 +563,11 @@ export class LaunchToken_json {
1054
563
  }
1055
564
 
1056
565
  /**
1057
- * eligibleSupply
566
+ * deployer
1058
567
  * view
1059
568
  */
1060
- async eligibleSupply(): Promise<bigint> {
1061
- return this.contract.read.eligibleSupply() as Promise<bigint>;
569
+ async deployer(): Promise<`0x${string}`> {
570
+ return this.contract.read.deployer() as Promise<`0x${string}`>;
1062
571
  }
1063
572
 
1064
573
  /**
@@ -1069,46 +578,6 @@ export class LaunchToken_json {
1069
578
  return this.contract.read.factory() as Promise<`0x${string}`>;
1070
579
  }
1071
580
 
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
581
  /**
1113
582
  * metadataURI
1114
583
  * view
@@ -1126,43 +595,11 @@ export class LaunchToken_json {
1126
595
  }
1127
596
 
1128
597
  /**
1129
- * pendingReward
1130
- * view
1131
- */
1132
- async pendingReward(holder: `0x${string}`): Promise<bigint> {
1133
- return this.contract.read.pendingReward([holder] as const) as Promise<bigint>;
1134
- }
1135
-
1136
- /**
1137
- * rampEndsAtBlock
1138
- * view
1139
- */
1140
- async rampEndsAtBlock(): Promise<bigint> {
1141
- return this.contract.read.rampEndsAtBlock() as Promise<bigint>;
1142
- }
1143
-
1144
- /**
1145
- * rewardExcluded
1146
- * view
1147
- */
1148
- async rewardExcluded(arg0: `0x${string}`): Promise<boolean> {
1149
- return this.contract.read.rewardExcluded([arg0] as const) as Promise<boolean>;
1150
- }
1151
-
1152
- /**
1153
- * rewardSource
1154
- * view
1155
- */
1156
- async rewardSource(): Promise<`0x${string}`> {
1157
- return this.contract.read.rewardSource() as Promise<`0x${string}`>;
1158
- }
1159
-
1160
- /**
1161
- * rewardToken
598
+ * poolId
1162
599
  * view
1163
600
  */
1164
- async rewardToken(): Promise<`0x${string}`> {
1165
- return this.contract.read.rewardToken() as Promise<`0x${string}`>;
601
+ async poolId(): Promise<`0x${string}`> {
602
+ return this.contract.read.poolId() as Promise<`0x${string}`>;
1166
603
  }
1167
604
 
1168
605
  /**
@@ -1181,14 +618,6 @@ export class LaunchToken_json {
1181
618
  return this.contract.read.totalSupply() as Promise<bigint>;
1182
619
  }
1183
620
 
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
621
  /**
1193
622
  * approve
1194
623
  * nonpayable
@@ -1212,81 +641,12 @@ export class LaunchToken_json {
1212
641
  return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
1213
642
  }
1214
643
 
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
644
  /**
1262
645
  * initialize
1263
646
  * nonpayable
1264
647
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1265
648
  */
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?: {
649
+ async initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
1290
650
  accessList?: import('viem').AccessList;
1291
651
  authorizationList?: import('viem').AuthorizationList;
1292
652
  chain?: import('viem').Chain | null;
@@ -1301,15 +661,15 @@ export class LaunchToken_json {
1301
661
  if (!this.contract.write) {
1302
662
  throw new Error('Wallet client is required for write operations');
1303
663
  }
1304
- return this.contract.write.notifyReward([amount] as const, options) as Promise<`0x${string}`>;
664
+ return this.contract.write.initialize([name_, symbol_, metadataURI_, deployer_, totalSupply_] as const, options) as Promise<`0x${string}`>;
1305
665
  }
1306
666
 
1307
667
  /**
1308
- * setMarket
668
+ * setPool
1309
669
  * nonpayable
1310
670
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1311
671
  */
1312
- async setMarket(market_: `0x${string}`, options?: {
672
+ async setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
1313
673
  accessList?: import('viem').AccessList;
1314
674
  authorizationList?: import('viem').AuthorizationList;
1315
675
  chain?: import('viem').Chain | null;
@@ -1324,7 +684,7 @@ export class LaunchToken_json {
1324
684
  if (!this.contract.write) {
1325
685
  throw new Error('Wallet client is required for write operations');
1326
686
  }
1327
- return this.contract.write.setMarket([market_] as const, options) as Promise<`0x${string}`>;
687
+ return this.contract.write.setPool([poolId_, baseToken_] as const, options) as Promise<`0x${string}`>;
1328
688
  }
1329
689
 
1330
690
  /**
@@ -1408,69 +768,12 @@ export class LaunchToken_json {
1408
768
  }): Promise<boolean> {
1409
769
  return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
1410
770
  },
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
771
  /**
1450
772
  * Simulate initialize
1451
773
  * Returns gas estimate and result without sending transaction
1452
774
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1453
775
  */
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?: {
776
+ async initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
1474
777
  accessList?: import('viem').AccessList;
1475
778
  authorizationList?: import('viem').AuthorizationList;
1476
779
  chain?: import('viem').Chain | null;
@@ -1482,14 +785,14 @@ export class LaunchToken_json {
1482
785
  nonce?: number;
1483
786
  value?: bigint;
1484
787
  }): Promise<void> {
1485
- return contract.simulate.notifyReward([amount] as const, options) as Promise<void>;
788
+ return contract.simulate.initialize([name_, symbol_, metadataURI_, deployer_, totalSupply_] as const, options) as Promise<void>;
1486
789
  },
1487
790
  /**
1488
- * Simulate setMarket
791
+ * Simulate setPool
1489
792
  * Returns gas estimate and result without sending transaction
1490
793
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1491
794
  */
1492
- async setMarket(market_: `0x${string}`, options?: {
795
+ async setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
1493
796
  accessList?: import('viem').AccessList;
1494
797
  authorizationList?: import('viem').AuthorizationList;
1495
798
  chain?: import('viem').Chain | null;
@@ -1501,7 +804,7 @@ export class LaunchToken_json {
1501
804
  nonce?: number;
1502
805
  value?: bigint;
1503
806
  }): Promise<void> {
1504
- return contract.simulate.setMarket([market_] as const, options) as Promise<void>;
807
+ return contract.simulate.setPool([poolId_, baseToken_] as const, options) as Promise<void>;
1505
808
  },
1506
809
  /**
1507
810
  * Simulate transfer
@@ -1567,7 +870,7 @@ export class LaunchToken_json {
1567
870
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1568
871
  return this.publicClient.watchContractEvent({
1569
872
  address: this.contractAddress,
1570
- abi: LaunchToken_jsonAbi,
873
+ abi: RobinVistaToken_jsonAbi,
1571
874
  eventName: 'Approval',
1572
875
  args: filter,
1573
876
  onLogs: (logs: any[]) => {
@@ -1577,82 +880,6 @@ export class LaunchToken_json {
1577
880
  },
1578
881
  }) as () => void;
1579
882
  },
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
883
  /**
1657
884
  * Watch Transfer events
1658
885
  * @param callback Function to call when event is emitted
@@ -1662,7 +889,7 @@ export class LaunchToken_json {
1662
889
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1663
890
  return this.publicClient.watchContractEvent({
1664
891
  address: this.contractAddress,
1665
- abi: LaunchToken_jsonAbi,
892
+ abi: RobinVistaToken_jsonAbi,
1666
893
  eventName: 'Transfer',
1667
894
  args: filter,
1668
895
  onLogs: (logs: any[]) => {