@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.
- package/README.md +3 -3
- package/contracts/{LaunchToken_json.d.ts → RobinVistaToken_json.d.ts} +43 -605
- package/contracts/RobinVistaToken_json.js +751 -0
- package/contracts/{LaunchToken_json.ts → RobinVistaToken_json.ts} +82 -855
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
- package/contracts/LaunchToken_json.js +0 -1434
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* RobinVistaToken_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const RobinVistaToken_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [];
|
|
9
9
|
readonly stateMutability: "nonpayable";
|
|
10
10
|
readonly type: "constructor";
|
|
11
11
|
}, {
|
|
12
12
|
readonly inputs: readonly [];
|
|
13
|
-
readonly name: "
|
|
14
|
-
readonly type: "error";
|
|
15
|
-
}, {
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly name: "BuyCapExceeded";
|
|
18
|
-
readonly type: "error";
|
|
19
|
-
}, {
|
|
20
|
-
readonly inputs: readonly [];
|
|
21
|
-
readonly name: "CreatorOnlyBlock";
|
|
13
|
+
readonly name: "AlreadyInitialized";
|
|
22
14
|
readonly type: "error";
|
|
23
15
|
}, {
|
|
24
16
|
readonly inputs: readonly [{
|
|
@@ -86,35 +78,7 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
86
78
|
readonly type: "error";
|
|
87
79
|
}, {
|
|
88
80
|
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "
|
|
90
|
-
readonly type: "error";
|
|
91
|
-
}, {
|
|
92
|
-
readonly inputs: readonly [];
|
|
93
|
-
readonly name: "MarketAlreadySet";
|
|
94
|
-
readonly type: "error";
|
|
95
|
-
}, {
|
|
96
|
-
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "NoEligibleSupply";
|
|
98
|
-
readonly type: "error";
|
|
99
|
-
}, {
|
|
100
|
-
readonly inputs: readonly [];
|
|
101
|
-
readonly name: "NothingToClaim";
|
|
102
|
-
readonly type: "error";
|
|
103
|
-
}, {
|
|
104
|
-
readonly inputs: readonly [];
|
|
105
|
-
readonly name: "OnlyFactory";
|
|
106
|
-
readonly type: "error";
|
|
107
|
-
}, {
|
|
108
|
-
readonly inputs: readonly [];
|
|
109
|
-
readonly name: "RewardTransferFailed";
|
|
110
|
-
readonly type: "error";
|
|
111
|
-
}, {
|
|
112
|
-
readonly inputs: readonly [{
|
|
113
|
-
readonly internalType: "address";
|
|
114
|
-
readonly name: "token";
|
|
115
|
-
readonly type: "address";
|
|
116
|
-
}];
|
|
117
|
-
readonly name: "SafeERC20FailedOperation";
|
|
81
|
+
readonly name: "NotFactory";
|
|
118
82
|
readonly type: "error";
|
|
119
83
|
}, {
|
|
120
84
|
readonly anonymous: false;
|
|
@@ -136,61 +100,6 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
136
100
|
}];
|
|
137
101
|
readonly name: "Approval";
|
|
138
102
|
readonly type: "event";
|
|
139
|
-
}, {
|
|
140
|
-
readonly anonymous: false;
|
|
141
|
-
readonly inputs: readonly [{
|
|
142
|
-
readonly indexed: true;
|
|
143
|
-
readonly internalType: "address";
|
|
144
|
-
readonly name: "rewardToken";
|
|
145
|
-
readonly type: "address";
|
|
146
|
-
}];
|
|
147
|
-
readonly name: "HolderFeesEnabled";
|
|
148
|
-
readonly type: "event";
|
|
149
|
-
}, {
|
|
150
|
-
readonly anonymous: false;
|
|
151
|
-
readonly inputs: readonly [{
|
|
152
|
-
readonly indexed: false;
|
|
153
|
-
readonly internalType: "uint256";
|
|
154
|
-
readonly name: "amount";
|
|
155
|
-
readonly type: "uint256";
|
|
156
|
-
}, {
|
|
157
|
-
readonly indexed: false;
|
|
158
|
-
readonly internalType: "uint256";
|
|
159
|
-
readonly name: "accRewardPerToken";
|
|
160
|
-
readonly type: "uint256";
|
|
161
|
-
}];
|
|
162
|
-
readonly name: "RewardAdded";
|
|
163
|
-
readonly type: "event";
|
|
164
|
-
}, {
|
|
165
|
-
readonly anonymous: false;
|
|
166
|
-
readonly inputs: readonly [{
|
|
167
|
-
readonly indexed: false;
|
|
168
|
-
readonly internalType: "uint256";
|
|
169
|
-
readonly name: "amount";
|
|
170
|
-
readonly type: "uint256";
|
|
171
|
-
}, {
|
|
172
|
-
readonly indexed: false;
|
|
173
|
-
readonly internalType: "uint256";
|
|
174
|
-
readonly name: "totalCarried";
|
|
175
|
-
readonly type: "uint256";
|
|
176
|
-
}];
|
|
177
|
-
readonly name: "RewardCarried";
|
|
178
|
-
readonly type: "event";
|
|
179
|
-
}, {
|
|
180
|
-
readonly anonymous: false;
|
|
181
|
-
readonly inputs: readonly [{
|
|
182
|
-
readonly indexed: true;
|
|
183
|
-
readonly internalType: "address";
|
|
184
|
-
readonly name: "holder";
|
|
185
|
-
readonly type: "address";
|
|
186
|
-
}, {
|
|
187
|
-
readonly indexed: false;
|
|
188
|
-
readonly internalType: "uint256";
|
|
189
|
-
readonly name: "amount";
|
|
190
|
-
readonly type: "uint256";
|
|
191
|
-
}];
|
|
192
|
-
readonly name: "RewardClaimed";
|
|
193
|
-
readonly type: "event";
|
|
194
103
|
}, {
|
|
195
104
|
readonly anonymous: false;
|
|
196
105
|
readonly inputs: readonly [{
|
|
@@ -211,76 +120,6 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
211
120
|
}];
|
|
212
121
|
readonly name: "Transfer";
|
|
213
122
|
readonly type: "event";
|
|
214
|
-
}, {
|
|
215
|
-
readonly inputs: readonly [];
|
|
216
|
-
readonly name: "GUARD_BLOCKS";
|
|
217
|
-
readonly outputs: readonly [{
|
|
218
|
-
readonly internalType: "uint256";
|
|
219
|
-
readonly name: "";
|
|
220
|
-
readonly type: "uint256";
|
|
221
|
-
}];
|
|
222
|
-
readonly stateMutability: "view";
|
|
223
|
-
readonly type: "function";
|
|
224
|
-
}, {
|
|
225
|
-
readonly inputs: readonly [];
|
|
226
|
-
readonly name: "MAX_BUY";
|
|
227
|
-
readonly outputs: readonly [{
|
|
228
|
-
readonly internalType: "uint256";
|
|
229
|
-
readonly name: "";
|
|
230
|
-
readonly type: "uint256";
|
|
231
|
-
}];
|
|
232
|
-
readonly stateMutability: "view";
|
|
233
|
-
readonly type: "function";
|
|
234
|
-
}, {
|
|
235
|
-
readonly inputs: readonly [];
|
|
236
|
-
readonly name: "MAX_HOLD";
|
|
237
|
-
readonly outputs: readonly [{
|
|
238
|
-
readonly internalType: "uint256";
|
|
239
|
-
readonly name: "";
|
|
240
|
-
readonly type: "uint256";
|
|
241
|
-
}];
|
|
242
|
-
readonly stateMutability: "view";
|
|
243
|
-
readonly type: "function";
|
|
244
|
-
}, {
|
|
245
|
-
readonly inputs: readonly [];
|
|
246
|
-
readonly name: "RAMP_BLOCKS";
|
|
247
|
-
readonly outputs: readonly [{
|
|
248
|
-
readonly internalType: "uint256";
|
|
249
|
-
readonly name: "";
|
|
250
|
-
readonly type: "uint256";
|
|
251
|
-
}];
|
|
252
|
-
readonly stateMutability: "view";
|
|
253
|
-
readonly type: "function";
|
|
254
|
-
}, {
|
|
255
|
-
readonly inputs: readonly [];
|
|
256
|
-
readonly name: "RAMP_START";
|
|
257
|
-
readonly outputs: readonly [{
|
|
258
|
-
readonly internalType: "uint256";
|
|
259
|
-
readonly name: "";
|
|
260
|
-
readonly type: "uint256";
|
|
261
|
-
}];
|
|
262
|
-
readonly stateMutability: "view";
|
|
263
|
-
readonly type: "function";
|
|
264
|
-
}, {
|
|
265
|
-
readonly inputs: readonly [];
|
|
266
|
-
readonly name: "TOTAL_SUPPLY";
|
|
267
|
-
readonly outputs: readonly [{
|
|
268
|
-
readonly internalType: "uint256";
|
|
269
|
-
readonly name: "";
|
|
270
|
-
readonly type: "uint256";
|
|
271
|
-
}];
|
|
272
|
-
readonly stateMutability: "view";
|
|
273
|
-
readonly type: "function";
|
|
274
|
-
}, {
|
|
275
|
-
readonly inputs: readonly [];
|
|
276
|
-
readonly name: "accRewardPerToken";
|
|
277
|
-
readonly outputs: readonly [{
|
|
278
|
-
readonly internalType: "uint256";
|
|
279
|
-
readonly name: "";
|
|
280
|
-
readonly type: "uint256";
|
|
281
|
-
}];
|
|
282
|
-
readonly stateMutability: "view";
|
|
283
|
-
readonly type: "function";
|
|
284
123
|
}, {
|
|
285
124
|
readonly inputs: readonly [{
|
|
286
125
|
readonly internalType: "address";
|
|
@@ -333,27 +172,7 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
333
172
|
readonly type: "function";
|
|
334
173
|
}, {
|
|
335
174
|
readonly inputs: readonly [];
|
|
336
|
-
readonly name: "
|
|
337
|
-
readonly outputs: readonly [{
|
|
338
|
-
readonly internalType: "uint256";
|
|
339
|
-
readonly name: "";
|
|
340
|
-
readonly type: "uint256";
|
|
341
|
-
}];
|
|
342
|
-
readonly stateMutability: "view";
|
|
343
|
-
readonly type: "function";
|
|
344
|
-
}, {
|
|
345
|
-
readonly inputs: readonly [];
|
|
346
|
-
readonly name: "claim";
|
|
347
|
-
readonly outputs: readonly [{
|
|
348
|
-
readonly internalType: "uint256";
|
|
349
|
-
readonly name: "amount";
|
|
350
|
-
readonly type: "uint256";
|
|
351
|
-
}];
|
|
352
|
-
readonly stateMutability: "nonpayable";
|
|
353
|
-
readonly type: "function";
|
|
354
|
-
}, {
|
|
355
|
-
readonly inputs: readonly [];
|
|
356
|
-
readonly name: "creator";
|
|
175
|
+
readonly name: "baseToken";
|
|
357
176
|
readonly outputs: readonly [{
|
|
358
177
|
readonly internalType: "address";
|
|
359
178
|
readonly name: "";
|
|
@@ -361,16 +180,6 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
361
180
|
}];
|
|
362
181
|
readonly stateMutability: "view";
|
|
363
182
|
readonly type: "function";
|
|
364
|
-
}, {
|
|
365
|
-
readonly inputs: readonly [];
|
|
366
|
-
readonly name: "currentBuyCap";
|
|
367
|
-
readonly outputs: readonly [{
|
|
368
|
-
readonly internalType: "uint256";
|
|
369
|
-
readonly name: "";
|
|
370
|
-
readonly type: "uint256";
|
|
371
|
-
}];
|
|
372
|
-
readonly stateMutability: "view";
|
|
373
|
-
readonly type: "function";
|
|
374
183
|
}, {
|
|
375
184
|
readonly inputs: readonly [];
|
|
376
185
|
readonly name: "decimals";
|
|
@@ -383,27 +192,13 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
383
192
|
readonly type: "function";
|
|
384
193
|
}, {
|
|
385
194
|
readonly inputs: readonly [];
|
|
386
|
-
readonly name: "
|
|
195
|
+
readonly name: "deployer";
|
|
387
196
|
readonly outputs: readonly [{
|
|
388
|
-
readonly internalType: "uint256";
|
|
389
|
-
readonly name: "";
|
|
390
|
-
readonly type: "uint256";
|
|
391
|
-
}];
|
|
392
|
-
readonly stateMutability: "view";
|
|
393
|
-
readonly type: "function";
|
|
394
|
-
}, {
|
|
395
|
-
readonly inputs: readonly [{
|
|
396
197
|
readonly internalType: "address";
|
|
397
|
-
readonly name: "
|
|
398
|
-
readonly type: "address";
|
|
399
|
-
}, {
|
|
400
|
-
readonly internalType: "address";
|
|
401
|
-
readonly name: "rewardSource_";
|
|
198
|
+
readonly name: "";
|
|
402
199
|
readonly type: "address";
|
|
403
200
|
}];
|
|
404
|
-
readonly
|
|
405
|
-
readonly outputs: readonly [];
|
|
406
|
-
readonly stateMutability: "nonpayable";
|
|
201
|
+
readonly stateMutability: "view";
|
|
407
202
|
readonly type: "function";
|
|
408
203
|
}, {
|
|
409
204
|
readonly inputs: readonly [];
|
|
@@ -415,36 +210,6 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
415
210
|
}];
|
|
416
211
|
readonly stateMutability: "view";
|
|
417
212
|
readonly type: "function";
|
|
418
|
-
}, {
|
|
419
|
-
readonly inputs: readonly [];
|
|
420
|
-
readonly name: "guardActive";
|
|
421
|
-
readonly outputs: readonly [{
|
|
422
|
-
readonly internalType: "bool";
|
|
423
|
-
readonly name: "";
|
|
424
|
-
readonly type: "bool";
|
|
425
|
-
}];
|
|
426
|
-
readonly stateMutability: "view";
|
|
427
|
-
readonly type: "function";
|
|
428
|
-
}, {
|
|
429
|
-
readonly inputs: readonly [];
|
|
430
|
-
readonly name: "guardEndsAtBlock";
|
|
431
|
-
readonly outputs: readonly [{
|
|
432
|
-
readonly internalType: "uint256";
|
|
433
|
-
readonly name: "";
|
|
434
|
-
readonly type: "uint256";
|
|
435
|
-
}];
|
|
436
|
-
readonly stateMutability: "view";
|
|
437
|
-
readonly type: "function";
|
|
438
|
-
}, {
|
|
439
|
-
readonly inputs: readonly [];
|
|
440
|
-
readonly name: "holderFeesEnabled";
|
|
441
|
-
readonly outputs: readonly [{
|
|
442
|
-
readonly internalType: "bool";
|
|
443
|
-
readonly name: "";
|
|
444
|
-
readonly type: "bool";
|
|
445
|
-
}];
|
|
446
|
-
readonly stateMutability: "view";
|
|
447
|
-
readonly type: "function";
|
|
448
213
|
}, {
|
|
449
214
|
readonly inputs: readonly [{
|
|
450
215
|
readonly internalType: "string";
|
|
@@ -460,33 +225,17 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
460
225
|
readonly type: "string";
|
|
461
226
|
}, {
|
|
462
227
|
readonly internalType: "address";
|
|
463
|
-
readonly name: "
|
|
228
|
+
readonly name: "deployer_";
|
|
464
229
|
readonly type: "address";
|
|
230
|
+
}, {
|
|
231
|
+
readonly internalType: "uint256";
|
|
232
|
+
readonly name: "totalSupply_";
|
|
233
|
+
readonly type: "uint256";
|
|
465
234
|
}];
|
|
466
235
|
readonly name: "initialize";
|
|
467
236
|
readonly outputs: readonly [];
|
|
468
237
|
readonly stateMutability: "nonpayable";
|
|
469
238
|
readonly type: "function";
|
|
470
|
-
}, {
|
|
471
|
-
readonly inputs: readonly [];
|
|
472
|
-
readonly name: "launchBlock";
|
|
473
|
-
readonly outputs: readonly [{
|
|
474
|
-
readonly internalType: "uint256";
|
|
475
|
-
readonly name: "";
|
|
476
|
-
readonly type: "uint256";
|
|
477
|
-
}];
|
|
478
|
-
readonly stateMutability: "view";
|
|
479
|
-
readonly type: "function";
|
|
480
|
-
}, {
|
|
481
|
-
readonly inputs: readonly [];
|
|
482
|
-
readonly name: "market";
|
|
483
|
-
readonly outputs: readonly [{
|
|
484
|
-
readonly internalType: "address";
|
|
485
|
-
readonly name: "";
|
|
486
|
-
readonly type: "address";
|
|
487
|
-
}];
|
|
488
|
-
readonly stateMutability: "view";
|
|
489
|
-
readonly type: "function";
|
|
490
239
|
}, {
|
|
491
240
|
readonly inputs: readonly [];
|
|
492
241
|
readonly name: "metadataURI";
|
|
@@ -507,81 +256,27 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
507
256
|
}];
|
|
508
257
|
readonly stateMutability: "view";
|
|
509
258
|
readonly type: "function";
|
|
510
|
-
}, {
|
|
511
|
-
readonly inputs: readonly [{
|
|
512
|
-
readonly internalType: "uint256";
|
|
513
|
-
readonly name: "amount";
|
|
514
|
-
readonly type: "uint256";
|
|
515
|
-
}];
|
|
516
|
-
readonly name: "notifyReward";
|
|
517
|
-
readonly outputs: readonly [];
|
|
518
|
-
readonly stateMutability: "payable";
|
|
519
|
-
readonly type: "function";
|
|
520
|
-
}, {
|
|
521
|
-
readonly inputs: readonly [{
|
|
522
|
-
readonly internalType: "address";
|
|
523
|
-
readonly name: "holder";
|
|
524
|
-
readonly type: "address";
|
|
525
|
-
}];
|
|
526
|
-
readonly name: "pendingReward";
|
|
527
|
-
readonly outputs: readonly [{
|
|
528
|
-
readonly internalType: "uint256";
|
|
529
|
-
readonly name: "";
|
|
530
|
-
readonly type: "uint256";
|
|
531
|
-
}];
|
|
532
|
-
readonly stateMutability: "view";
|
|
533
|
-
readonly type: "function";
|
|
534
|
-
}, {
|
|
535
|
-
readonly inputs: readonly [];
|
|
536
|
-
readonly name: "rampEndsAtBlock";
|
|
537
|
-
readonly outputs: readonly [{
|
|
538
|
-
readonly internalType: "uint256";
|
|
539
|
-
readonly name: "";
|
|
540
|
-
readonly type: "uint256";
|
|
541
|
-
}];
|
|
542
|
-
readonly stateMutability: "view";
|
|
543
|
-
readonly type: "function";
|
|
544
|
-
}, {
|
|
545
|
-
readonly inputs: readonly [{
|
|
546
|
-
readonly internalType: "address";
|
|
547
|
-
readonly name: "";
|
|
548
|
-
readonly type: "address";
|
|
549
|
-
}];
|
|
550
|
-
readonly name: "rewardExcluded";
|
|
551
|
-
readonly outputs: readonly [{
|
|
552
|
-
readonly internalType: "bool";
|
|
553
|
-
readonly name: "";
|
|
554
|
-
readonly type: "bool";
|
|
555
|
-
}];
|
|
556
|
-
readonly stateMutability: "view";
|
|
557
|
-
readonly type: "function";
|
|
558
259
|
}, {
|
|
559
260
|
readonly inputs: readonly [];
|
|
560
|
-
readonly name: "
|
|
261
|
+
readonly name: "poolId";
|
|
561
262
|
readonly outputs: readonly [{
|
|
562
|
-
readonly internalType: "
|
|
263
|
+
readonly internalType: "bytes32";
|
|
563
264
|
readonly name: "";
|
|
564
|
-
readonly type: "
|
|
565
|
-
}];
|
|
566
|
-
readonly stateMutability: "view";
|
|
567
|
-
readonly type: "function";
|
|
568
|
-
}, {
|
|
569
|
-
readonly inputs: readonly [];
|
|
570
|
-
readonly name: "rewardToken";
|
|
571
|
-
readonly outputs: readonly [{
|
|
572
|
-
readonly internalType: "address";
|
|
573
|
-
readonly name: "";
|
|
574
|
-
readonly type: "address";
|
|
265
|
+
readonly type: "bytes32";
|
|
575
266
|
}];
|
|
576
267
|
readonly stateMutability: "view";
|
|
577
268
|
readonly type: "function";
|
|
578
269
|
}, {
|
|
579
270
|
readonly inputs: readonly [{
|
|
271
|
+
readonly internalType: "bytes32";
|
|
272
|
+
readonly name: "poolId_";
|
|
273
|
+
readonly type: "bytes32";
|
|
274
|
+
}, {
|
|
580
275
|
readonly internalType: "address";
|
|
581
|
-
readonly name: "
|
|
276
|
+
readonly name: "baseToken_";
|
|
582
277
|
readonly type: "address";
|
|
583
278
|
}];
|
|
584
|
-
readonly name: "
|
|
279
|
+
readonly name: "setPool";
|
|
585
280
|
readonly outputs: readonly [];
|
|
586
281
|
readonly stateMutability: "nonpayable";
|
|
587
282
|
readonly type: "function";
|
|
@@ -645,34 +340,17 @@ export declare const LaunchToken_jsonAbi: readonly [{
|
|
|
645
340
|
}];
|
|
646
341
|
readonly stateMutability: "nonpayable";
|
|
647
342
|
readonly type: "function";
|
|
648
|
-
}, {
|
|
649
|
-
readonly inputs: readonly [{
|
|
650
|
-
readonly internalType: "address";
|
|
651
|
-
readonly name: "";
|
|
652
|
-
readonly type: "address";
|
|
653
|
-
}];
|
|
654
|
-
readonly name: "unclaimed";
|
|
655
|
-
readonly outputs: readonly [{
|
|
656
|
-
readonly internalType: "uint256";
|
|
657
|
-
readonly name: "";
|
|
658
|
-
readonly type: "uint256";
|
|
659
|
-
}];
|
|
660
|
-
readonly stateMutability: "view";
|
|
661
|
-
readonly type: "function";
|
|
662
|
-
}, {
|
|
663
|
-
readonly stateMutability: "payable";
|
|
664
|
-
readonly type: "receive";
|
|
665
343
|
}];
|
|
666
344
|
/**
|
|
667
|
-
* Type-safe ABI for
|
|
345
|
+
* Type-safe ABI for RobinVistaToken_json
|
|
668
346
|
*/
|
|
669
|
-
export type
|
|
347
|
+
export type RobinVistaToken_jsonAbi = typeof RobinVistaToken_jsonAbi;
|
|
670
348
|
/**
|
|
671
|
-
* Contract instance type for
|
|
349
|
+
* Contract instance type for RobinVistaToken_json
|
|
672
350
|
*/
|
|
673
|
-
export type
|
|
351
|
+
export type RobinVistaToken_jsonContract = any;
|
|
674
352
|
/**
|
|
675
|
-
*
|
|
353
|
+
* RobinVistaToken_json Contract Class
|
|
676
354
|
*
|
|
677
355
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
678
356
|
*
|
|
@@ -680,12 +358,12 @@ export type LaunchToken_jsonContract = any;
|
|
|
680
358
|
* ```typescript
|
|
681
359
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
682
360
|
* import { mainnet } from 'viem/chains';
|
|
683
|
-
* import {
|
|
361
|
+
* import { RobinVistaToken_json } from 'RobinVistaToken_json';
|
|
684
362
|
*
|
|
685
363
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
686
364
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
687
365
|
*
|
|
688
|
-
* const contract = new
|
|
366
|
+
* const contract = new RobinVistaToken_json('0x...', { publicClient, walletClient });
|
|
689
367
|
*
|
|
690
368
|
* // Read functions
|
|
691
369
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -703,7 +381,7 @@ export type LaunchToken_jsonContract = any;
|
|
|
703
381
|
* });
|
|
704
382
|
* ```
|
|
705
383
|
*/
|
|
706
|
-
export declare class
|
|
384
|
+
export declare class RobinVistaToken_json {
|
|
707
385
|
private contract;
|
|
708
386
|
private contractAddress;
|
|
709
387
|
private publicClient;
|
|
@@ -718,42 +396,7 @@ export declare class LaunchToken_json {
|
|
|
718
396
|
/**
|
|
719
397
|
* Get the underlying viem contract instance
|
|
720
398
|
*/
|
|
721
|
-
getContract():
|
|
722
|
-
/**
|
|
723
|
-
* GUARD_BLOCKS
|
|
724
|
-
* view
|
|
725
|
-
*/
|
|
726
|
-
GUARD_BLOCKS(): Promise<bigint>;
|
|
727
|
-
/**
|
|
728
|
-
* MAX_BUY
|
|
729
|
-
* view
|
|
730
|
-
*/
|
|
731
|
-
MAX_BUY(): Promise<bigint>;
|
|
732
|
-
/**
|
|
733
|
-
* MAX_HOLD
|
|
734
|
-
* view
|
|
735
|
-
*/
|
|
736
|
-
MAX_HOLD(): Promise<bigint>;
|
|
737
|
-
/**
|
|
738
|
-
* RAMP_BLOCKS
|
|
739
|
-
* view
|
|
740
|
-
*/
|
|
741
|
-
RAMP_BLOCKS(): Promise<bigint>;
|
|
742
|
-
/**
|
|
743
|
-
* RAMP_START
|
|
744
|
-
* view
|
|
745
|
-
*/
|
|
746
|
-
RAMP_START(): Promise<bigint>;
|
|
747
|
-
/**
|
|
748
|
-
* TOTAL_SUPPLY
|
|
749
|
-
* view
|
|
750
|
-
*/
|
|
751
|
-
TOTAL_SUPPLY(): Promise<bigint>;
|
|
752
|
-
/**
|
|
753
|
-
* accRewardPerToken
|
|
754
|
-
* view
|
|
755
|
-
*/
|
|
756
|
-
accRewardPerToken(): Promise<bigint>;
|
|
399
|
+
getContract(): RobinVistaToken_jsonContract;
|
|
757
400
|
/**
|
|
758
401
|
* allowance
|
|
759
402
|
* view
|
|
@@ -765,60 +408,25 @@ export declare class LaunchToken_json {
|
|
|
765
408
|
*/
|
|
766
409
|
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
767
410
|
/**
|
|
768
|
-
*
|
|
769
|
-
* view
|
|
770
|
-
*/
|
|
771
|
-
carriedReward(): Promise<bigint>;
|
|
772
|
-
/**
|
|
773
|
-
* creator
|
|
774
|
-
* view
|
|
775
|
-
*/
|
|
776
|
-
creator(): Promise<`0x${string}`>;
|
|
777
|
-
/**
|
|
778
|
-
* currentBuyCap
|
|
411
|
+
* baseToken
|
|
779
412
|
* view
|
|
780
413
|
*/
|
|
781
|
-
|
|
414
|
+
baseToken(): Promise<`0x${string}`>;
|
|
782
415
|
/**
|
|
783
416
|
* decimals
|
|
784
417
|
* view
|
|
785
418
|
*/
|
|
786
419
|
decimals(): Promise<bigint>;
|
|
787
420
|
/**
|
|
788
|
-
*
|
|
421
|
+
* deployer
|
|
789
422
|
* view
|
|
790
423
|
*/
|
|
791
|
-
|
|
424
|
+
deployer(): Promise<`0x${string}`>;
|
|
792
425
|
/**
|
|
793
426
|
* factory
|
|
794
427
|
* view
|
|
795
428
|
*/
|
|
796
429
|
factory(): Promise<`0x${string}`>;
|
|
797
|
-
/**
|
|
798
|
-
* guardActive
|
|
799
|
-
* view
|
|
800
|
-
*/
|
|
801
|
-
guardActive(): Promise<boolean>;
|
|
802
|
-
/**
|
|
803
|
-
* guardEndsAtBlock
|
|
804
|
-
* view
|
|
805
|
-
*/
|
|
806
|
-
guardEndsAtBlock(): Promise<bigint>;
|
|
807
|
-
/**
|
|
808
|
-
* holderFeesEnabled
|
|
809
|
-
* view
|
|
810
|
-
*/
|
|
811
|
-
holderFeesEnabled(): Promise<boolean>;
|
|
812
|
-
/**
|
|
813
|
-
* launchBlock
|
|
814
|
-
* view
|
|
815
|
-
*/
|
|
816
|
-
launchBlock(): Promise<bigint>;
|
|
817
|
-
/**
|
|
818
|
-
* market
|
|
819
|
-
* view
|
|
820
|
-
*/
|
|
821
|
-
market(): Promise<`0x${string}`>;
|
|
822
430
|
/**
|
|
823
431
|
* metadataURI
|
|
824
432
|
* view
|
|
@@ -830,30 +438,10 @@ export declare class LaunchToken_json {
|
|
|
830
438
|
*/
|
|
831
439
|
name(): Promise<string>;
|
|
832
440
|
/**
|
|
833
|
-
*
|
|
834
|
-
* view
|
|
835
|
-
*/
|
|
836
|
-
pendingReward(holder: `0x${string}`): Promise<bigint>;
|
|
837
|
-
/**
|
|
838
|
-
* rampEndsAtBlock
|
|
839
|
-
* view
|
|
840
|
-
*/
|
|
841
|
-
rampEndsAtBlock(): Promise<bigint>;
|
|
842
|
-
/**
|
|
843
|
-
* rewardExcluded
|
|
441
|
+
* poolId
|
|
844
442
|
* view
|
|
845
443
|
*/
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* rewardSource
|
|
849
|
-
* view
|
|
850
|
-
*/
|
|
851
|
-
rewardSource(): Promise<`0x${string}`>;
|
|
852
|
-
/**
|
|
853
|
-
* rewardToken
|
|
854
|
-
* view
|
|
855
|
-
*/
|
|
856
|
-
rewardToken(): Promise<`0x${string}`>;
|
|
444
|
+
poolId(): Promise<`0x${string}`>;
|
|
857
445
|
/**
|
|
858
446
|
* symbol
|
|
859
447
|
* view
|
|
@@ -864,11 +452,6 @@ export declare class LaunchToken_json {
|
|
|
864
452
|
* view
|
|
865
453
|
*/
|
|
866
454
|
totalSupply(): Promise<bigint>;
|
|
867
|
-
/**
|
|
868
|
-
* unclaimed
|
|
869
|
-
* view
|
|
870
|
-
*/
|
|
871
|
-
unclaimed(arg0: `0x${string}`): Promise<bigint>;
|
|
872
455
|
/**
|
|
873
456
|
* approve
|
|
874
457
|
* nonpayable
|
|
@@ -886,63 +469,12 @@ export declare class LaunchToken_json {
|
|
|
886
469
|
nonce?: number;
|
|
887
470
|
value?: bigint;
|
|
888
471
|
}): Promise<`0x${string}`>;
|
|
889
|
-
/**
|
|
890
|
-
* claim
|
|
891
|
-
* nonpayable
|
|
892
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
893
|
-
*/
|
|
894
|
-
claim(options?: {
|
|
895
|
-
accessList?: import('viem').AccessList;
|
|
896
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
897
|
-
chain?: import('viem').Chain | null;
|
|
898
|
-
dataSuffix?: `0x${string}`;
|
|
899
|
-
gas?: bigint;
|
|
900
|
-
gasPrice?: bigint;
|
|
901
|
-
maxFeePerGas?: bigint;
|
|
902
|
-
maxPriorityFeePerGas?: bigint;
|
|
903
|
-
nonce?: number;
|
|
904
|
-
value?: bigint;
|
|
905
|
-
}): Promise<`0x${string}`>;
|
|
906
|
-
/**
|
|
907
|
-
* enableHolderFees
|
|
908
|
-
* nonpayable
|
|
909
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
910
|
-
*/
|
|
911
|
-
enableHolderFees(rewardToken_: `0x${string}`, rewardSource_: `0x${string}`, options?: {
|
|
912
|
-
accessList?: import('viem').AccessList;
|
|
913
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
914
|
-
chain?: import('viem').Chain | null;
|
|
915
|
-
dataSuffix?: `0x${string}`;
|
|
916
|
-
gas?: bigint;
|
|
917
|
-
gasPrice?: bigint;
|
|
918
|
-
maxFeePerGas?: bigint;
|
|
919
|
-
maxPriorityFeePerGas?: bigint;
|
|
920
|
-
nonce?: number;
|
|
921
|
-
value?: bigint;
|
|
922
|
-
}): Promise<`0x${string}`>;
|
|
923
472
|
/**
|
|
924
473
|
* initialize
|
|
925
474
|
* nonpayable
|
|
926
475
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
927
476
|
*/
|
|
928
|
-
initialize(name_: string, symbol_: string, metadataURI_: string,
|
|
929
|
-
accessList?: import('viem').AccessList;
|
|
930
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
931
|
-
chain?: import('viem').Chain | null;
|
|
932
|
-
dataSuffix?: `0x${string}`;
|
|
933
|
-
gas?: bigint;
|
|
934
|
-
gasPrice?: bigint;
|
|
935
|
-
maxFeePerGas?: bigint;
|
|
936
|
-
maxPriorityFeePerGas?: bigint;
|
|
937
|
-
nonce?: number;
|
|
938
|
-
value?: bigint;
|
|
939
|
-
}): Promise<`0x${string}`>;
|
|
940
|
-
/**
|
|
941
|
-
* notifyReward
|
|
942
|
-
* payable
|
|
943
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
944
|
-
*/
|
|
945
|
-
notifyReward(amount: bigint, options?: {
|
|
477
|
+
initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
|
|
946
478
|
accessList?: import('viem').AccessList;
|
|
947
479
|
authorizationList?: import('viem').AuthorizationList;
|
|
948
480
|
chain?: import('viem').Chain | null;
|
|
@@ -955,11 +487,11 @@ export declare class LaunchToken_json {
|
|
|
955
487
|
value?: bigint;
|
|
956
488
|
}): Promise<`0x${string}`>;
|
|
957
489
|
/**
|
|
958
|
-
*
|
|
490
|
+
* setPool
|
|
959
491
|
* nonpayable
|
|
960
492
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
961
493
|
*/
|
|
962
|
-
|
|
494
|
+
setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
|
|
963
495
|
accessList?: import('viem').AccessList;
|
|
964
496
|
authorizationList?: import('viem').AuthorizationList;
|
|
965
497
|
chain?: import('viem').Chain | null;
|
|
@@ -1031,46 +563,12 @@ export declare class LaunchToken_json {
|
|
|
1031
563
|
nonce?: number;
|
|
1032
564
|
value?: bigint;
|
|
1033
565
|
}): Promise<boolean>;
|
|
1034
|
-
/**
|
|
1035
|
-
* Simulate claim
|
|
1036
|
-
* Returns gas estimate and result without sending transaction
|
|
1037
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1038
|
-
*/
|
|
1039
|
-
claim(options?: {
|
|
1040
|
-
accessList?: import("viem").AccessList;
|
|
1041
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1042
|
-
chain?: import("viem").Chain | null;
|
|
1043
|
-
dataSuffix?: `0x${string}`;
|
|
1044
|
-
gas?: bigint;
|
|
1045
|
-
gasPrice?: bigint;
|
|
1046
|
-
maxFeePerGas?: bigint;
|
|
1047
|
-
maxPriorityFeePerGas?: bigint;
|
|
1048
|
-
nonce?: number;
|
|
1049
|
-
value?: bigint;
|
|
1050
|
-
}): Promise<bigint>;
|
|
1051
|
-
/**
|
|
1052
|
-
* Simulate enableHolderFees
|
|
1053
|
-
* Returns gas estimate and result without sending transaction
|
|
1054
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1055
|
-
*/
|
|
1056
|
-
enableHolderFees(rewardToken_: `0x${string}`, rewardSource_: `0x${string}`, options?: {
|
|
1057
|
-
accessList?: import("viem").AccessList;
|
|
1058
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1059
|
-
chain?: import("viem").Chain | null;
|
|
1060
|
-
dataSuffix?: `0x${string}`;
|
|
1061
|
-
gas?: bigint;
|
|
1062
|
-
gasPrice?: bigint;
|
|
1063
|
-
maxFeePerGas?: bigint;
|
|
1064
|
-
maxPriorityFeePerGas?: bigint;
|
|
1065
|
-
nonce?: number;
|
|
1066
|
-
value?: bigint;
|
|
1067
|
-
}): Promise<void>;
|
|
1068
566
|
/**
|
|
1069
567
|
* Simulate initialize
|
|
1070
568
|
* Returns gas estimate and result without sending transaction
|
|
1071
569
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1072
570
|
*/
|
|
1073
|
-
initialize(name_: string, symbol_: string, metadataURI_: string,
|
|
571
|
+
initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
|
|
1074
572
|
accessList?: import("viem").AccessList;
|
|
1075
573
|
authorizationList?: import("viem").AuthorizationList;
|
|
1076
574
|
chain?: import("viem").Chain | null;
|
|
@@ -1083,28 +581,11 @@ export declare class LaunchToken_json {
|
|
|
1083
581
|
value?: bigint;
|
|
1084
582
|
}): Promise<void>;
|
|
1085
583
|
/**
|
|
1086
|
-
* Simulate
|
|
584
|
+
* Simulate setPool
|
|
1087
585
|
* Returns gas estimate and result without sending transaction
|
|
1088
586
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1089
587
|
*/
|
|
1090
|
-
|
|
1091
|
-
accessList?: import("viem").AccessList;
|
|
1092
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1093
|
-
chain?: import("viem").Chain | null;
|
|
1094
|
-
dataSuffix?: `0x${string}`;
|
|
1095
|
-
gas?: bigint;
|
|
1096
|
-
gasPrice?: bigint;
|
|
1097
|
-
maxFeePerGas?: bigint;
|
|
1098
|
-
maxPriorityFeePerGas?: bigint;
|
|
1099
|
-
nonce?: number;
|
|
1100
|
-
value?: bigint;
|
|
1101
|
-
}): Promise<void>;
|
|
1102
|
-
/**
|
|
1103
|
-
* Simulate setMarket
|
|
1104
|
-
* Returns gas estimate and result without sending transaction
|
|
1105
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1106
|
-
*/
|
|
1107
|
-
setMarket(market_: `0x${string}`, options?: {
|
|
588
|
+
setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
|
|
1108
589
|
accessList?: import("viem").AccessList;
|
|
1109
590
|
authorizationList?: import("viem").AuthorizationList;
|
|
1110
591
|
chain?: import("viem").Chain | null;
|
|
@@ -1178,49 +659,6 @@ export declare class LaunchToken_json {
|
|
|
1178
659
|
owner: `0x${string}`;
|
|
1179
660
|
spender: `0x${string}`;
|
|
1180
661
|
}) => () => void;
|
|
1181
|
-
/**
|
|
1182
|
-
* Watch HolderFeesEnabled events
|
|
1183
|
-
* @param callback Function to call when event is emitted
|
|
1184
|
-
* @param filter Optional filter for indexed parameters
|
|
1185
|
-
* @returns Unwatch function to stop listening
|
|
1186
|
-
*/
|
|
1187
|
-
HolderFeesEnabled: (callback: (event: {
|
|
1188
|
-
rewardToken: `0x${string}`;
|
|
1189
|
-
}) => void, filter?: {
|
|
1190
|
-
rewardToken: `0x${string}`;
|
|
1191
|
-
}) => () => void;
|
|
1192
|
-
/**
|
|
1193
|
-
* Watch RewardAdded events
|
|
1194
|
-
* @param callback Function to call when event is emitted
|
|
1195
|
-
* @param filter Optional filter for indexed parameters
|
|
1196
|
-
* @returns Unwatch function to stop listening
|
|
1197
|
-
*/
|
|
1198
|
-
RewardAdded: (callback: (event: {
|
|
1199
|
-
amount: bigint;
|
|
1200
|
-
accRewardPerToken: bigint;
|
|
1201
|
-
}) => void) => () => void;
|
|
1202
|
-
/**
|
|
1203
|
-
* Watch RewardCarried events
|
|
1204
|
-
* @param callback Function to call when event is emitted
|
|
1205
|
-
* @param filter Optional filter for indexed parameters
|
|
1206
|
-
* @returns Unwatch function to stop listening
|
|
1207
|
-
*/
|
|
1208
|
-
RewardCarried: (callback: (event: {
|
|
1209
|
-
amount: bigint;
|
|
1210
|
-
totalCarried: bigint;
|
|
1211
|
-
}) => void) => () => void;
|
|
1212
|
-
/**
|
|
1213
|
-
* Watch RewardClaimed events
|
|
1214
|
-
* @param callback Function to call when event is emitted
|
|
1215
|
-
* @param filter Optional filter for indexed parameters
|
|
1216
|
-
* @returns Unwatch function to stop listening
|
|
1217
|
-
*/
|
|
1218
|
-
RewardClaimed: (callback: (event: {
|
|
1219
|
-
holder: `0x${string}`;
|
|
1220
|
-
amount: bigint;
|
|
1221
|
-
}) => void, filter?: {
|
|
1222
|
-
holder: `0x${string}`;
|
|
1223
|
-
}) => () => void;
|
|
1224
662
|
/**
|
|
1225
663
|
* Watch Transfer events
|
|
1226
664
|
* @param callback Function to call when event is emitted
|