@gitmyabi-stg/lpt 0.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.
@@ -0,0 +1,835 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * LivepeerToken ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const LivepeerTokenAbi: readonly [{
8
+ readonly constant: true;
9
+ readonly inputs: readonly [];
10
+ readonly name: "mintingFinished";
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "bool";
14
+ }];
15
+ readonly payable: false;
16
+ readonly stateMutability: "view";
17
+ readonly type: "function";
18
+ }, {
19
+ readonly constant: true;
20
+ readonly inputs: readonly [];
21
+ readonly name: "name";
22
+ readonly outputs: readonly [{
23
+ readonly name: "";
24
+ readonly type: "string";
25
+ }];
26
+ readonly payable: false;
27
+ readonly stateMutability: "view";
28
+ readonly type: "function";
29
+ }, {
30
+ readonly constant: false;
31
+ readonly inputs: readonly [{
32
+ readonly name: "_spender";
33
+ readonly type: "address";
34
+ }, {
35
+ readonly name: "_value";
36
+ readonly type: "uint256";
37
+ }];
38
+ readonly name: "approve";
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "bool";
42
+ }];
43
+ readonly payable: false;
44
+ readonly stateMutability: "nonpayable";
45
+ readonly type: "function";
46
+ }, {
47
+ readonly constant: true;
48
+ readonly inputs: readonly [];
49
+ readonly name: "totalSupply";
50
+ readonly outputs: readonly [{
51
+ readonly name: "";
52
+ readonly type: "uint256";
53
+ }];
54
+ readonly payable: false;
55
+ readonly stateMutability: "view";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly constant: false;
59
+ readonly inputs: readonly [{
60
+ readonly name: "_from";
61
+ readonly type: "address";
62
+ }, {
63
+ readonly name: "_to";
64
+ readonly type: "address";
65
+ }, {
66
+ readonly name: "_value";
67
+ readonly type: "uint256";
68
+ }];
69
+ readonly name: "transferFrom";
70
+ readonly outputs: readonly [{
71
+ readonly name: "";
72
+ readonly type: "bool";
73
+ }];
74
+ readonly payable: false;
75
+ readonly stateMutability: "nonpayable";
76
+ readonly type: "function";
77
+ }, {
78
+ readonly constant: true;
79
+ readonly inputs: readonly [];
80
+ readonly name: "decimals";
81
+ readonly outputs: readonly [{
82
+ readonly name: "";
83
+ readonly type: "uint8";
84
+ }];
85
+ readonly payable: false;
86
+ readonly stateMutability: "view";
87
+ readonly type: "function";
88
+ }, {
89
+ readonly constant: false;
90
+ readonly inputs: readonly [{
91
+ readonly name: "_to";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "_amount";
95
+ readonly type: "uint256";
96
+ }];
97
+ readonly name: "mint";
98
+ readonly outputs: readonly [{
99
+ readonly name: "";
100
+ readonly type: "bool";
101
+ }];
102
+ readonly payable: false;
103
+ readonly stateMutability: "nonpayable";
104
+ readonly type: "function";
105
+ }, {
106
+ readonly constant: false;
107
+ readonly inputs: readonly [{
108
+ readonly name: "_amount";
109
+ readonly type: "uint256";
110
+ }];
111
+ readonly name: "burn";
112
+ readonly outputs: readonly [];
113
+ readonly payable: false;
114
+ readonly stateMutability: "nonpayable";
115
+ readonly type: "function";
116
+ }, {
117
+ readonly constant: true;
118
+ readonly inputs: readonly [];
119
+ readonly name: "version";
120
+ readonly outputs: readonly [{
121
+ readonly name: "";
122
+ readonly type: "string";
123
+ }];
124
+ readonly payable: false;
125
+ readonly stateMutability: "view";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly constant: false;
129
+ readonly inputs: readonly [{
130
+ readonly name: "_spender";
131
+ readonly type: "address";
132
+ }, {
133
+ readonly name: "_subtractedValue";
134
+ readonly type: "uint256";
135
+ }];
136
+ readonly name: "decreaseApproval";
137
+ readonly outputs: readonly [{
138
+ readonly name: "";
139
+ readonly type: "bool";
140
+ }];
141
+ readonly payable: false;
142
+ readonly stateMutability: "nonpayable";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly constant: true;
146
+ readonly inputs: readonly [{
147
+ readonly name: "_owner";
148
+ readonly type: "address";
149
+ }];
150
+ readonly name: "balanceOf";
151
+ readonly outputs: readonly [{
152
+ readonly name: "balance";
153
+ readonly type: "uint256";
154
+ }];
155
+ readonly payable: false;
156
+ readonly stateMutability: "view";
157
+ readonly type: "function";
158
+ }, {
159
+ readonly constant: false;
160
+ readonly inputs: readonly [];
161
+ readonly name: "finishMinting";
162
+ readonly outputs: readonly [{
163
+ readonly name: "";
164
+ readonly type: "bool";
165
+ }];
166
+ readonly payable: false;
167
+ readonly stateMutability: "nonpayable";
168
+ readonly type: "function";
169
+ }, {
170
+ readonly constant: true;
171
+ readonly inputs: readonly [];
172
+ readonly name: "owner";
173
+ readonly outputs: readonly [{
174
+ readonly name: "";
175
+ readonly type: "address";
176
+ }];
177
+ readonly payable: false;
178
+ readonly stateMutability: "view";
179
+ readonly type: "function";
180
+ }, {
181
+ readonly constant: true;
182
+ readonly inputs: readonly [];
183
+ readonly name: "symbol";
184
+ readonly outputs: readonly [{
185
+ readonly name: "";
186
+ readonly type: "string";
187
+ }];
188
+ readonly payable: false;
189
+ readonly stateMutability: "view";
190
+ readonly type: "function";
191
+ }, {
192
+ readonly constant: false;
193
+ readonly inputs: readonly [{
194
+ readonly name: "_to";
195
+ readonly type: "address";
196
+ }, {
197
+ readonly name: "_value";
198
+ readonly type: "uint256";
199
+ }];
200
+ readonly name: "transfer";
201
+ readonly outputs: readonly [{
202
+ readonly name: "";
203
+ readonly type: "bool";
204
+ }];
205
+ readonly payable: false;
206
+ readonly stateMutability: "nonpayable";
207
+ readonly type: "function";
208
+ }, {
209
+ readonly constant: false;
210
+ readonly inputs: readonly [{
211
+ readonly name: "_spender";
212
+ readonly type: "address";
213
+ }, {
214
+ readonly name: "_addedValue";
215
+ readonly type: "uint256";
216
+ }];
217
+ readonly name: "increaseApproval";
218
+ readonly outputs: readonly [{
219
+ readonly name: "";
220
+ readonly type: "bool";
221
+ }];
222
+ readonly payable: false;
223
+ readonly stateMutability: "nonpayable";
224
+ readonly type: "function";
225
+ }, {
226
+ readonly constant: true;
227
+ readonly inputs: readonly [{
228
+ readonly name: "_owner";
229
+ readonly type: "address";
230
+ }, {
231
+ readonly name: "_spender";
232
+ readonly type: "address";
233
+ }];
234
+ readonly name: "allowance";
235
+ readonly outputs: readonly [{
236
+ readonly name: "";
237
+ readonly type: "uint256";
238
+ }];
239
+ readonly payable: false;
240
+ readonly stateMutability: "view";
241
+ readonly type: "function";
242
+ }, {
243
+ readonly constant: false;
244
+ readonly inputs: readonly [{
245
+ readonly name: "newOwner";
246
+ readonly type: "address";
247
+ }];
248
+ readonly name: "transferOwnership";
249
+ readonly outputs: readonly [];
250
+ readonly payable: false;
251
+ readonly stateMutability: "nonpayable";
252
+ readonly type: "function";
253
+ }, {
254
+ readonly anonymous: false;
255
+ readonly inputs: readonly [{
256
+ readonly indexed: true;
257
+ readonly name: "burner";
258
+ readonly type: "address";
259
+ }, {
260
+ readonly indexed: false;
261
+ readonly name: "value";
262
+ readonly type: "uint256";
263
+ }];
264
+ readonly name: "Burn";
265
+ readonly type: "event";
266
+ }, {
267
+ readonly anonymous: false;
268
+ readonly inputs: readonly [{
269
+ readonly indexed: true;
270
+ readonly name: "to";
271
+ readonly type: "address";
272
+ }, {
273
+ readonly indexed: false;
274
+ readonly name: "amount";
275
+ readonly type: "uint256";
276
+ }];
277
+ readonly name: "Mint";
278
+ readonly type: "event";
279
+ }, {
280
+ readonly anonymous: false;
281
+ readonly inputs: readonly [];
282
+ readonly name: "MintFinished";
283
+ readonly type: "event";
284
+ }, {
285
+ readonly anonymous: false;
286
+ readonly inputs: readonly [{
287
+ readonly indexed: true;
288
+ readonly name: "previousOwner";
289
+ readonly type: "address";
290
+ }, {
291
+ readonly indexed: true;
292
+ readonly name: "newOwner";
293
+ readonly type: "address";
294
+ }];
295
+ readonly name: "OwnershipTransferred";
296
+ readonly type: "event";
297
+ }, {
298
+ readonly anonymous: false;
299
+ readonly inputs: readonly [{
300
+ readonly indexed: true;
301
+ readonly name: "owner";
302
+ readonly type: "address";
303
+ }, {
304
+ readonly indexed: true;
305
+ readonly name: "spender";
306
+ readonly type: "address";
307
+ }, {
308
+ readonly indexed: false;
309
+ readonly name: "value";
310
+ readonly type: "uint256";
311
+ }];
312
+ readonly name: "Approval";
313
+ readonly type: "event";
314
+ }, {
315
+ readonly anonymous: false;
316
+ readonly inputs: readonly [{
317
+ readonly indexed: true;
318
+ readonly name: "from";
319
+ readonly type: "address";
320
+ }, {
321
+ readonly indexed: true;
322
+ readonly name: "to";
323
+ readonly type: "address";
324
+ }, {
325
+ readonly indexed: false;
326
+ readonly name: "value";
327
+ readonly type: "uint256";
328
+ }];
329
+ readonly name: "Transfer";
330
+ readonly type: "event";
331
+ }];
332
+ /**
333
+ * Type-safe ABI for LivepeerToken
334
+ */
335
+ export type LivepeerTokenAbi = typeof LivepeerTokenAbi;
336
+ /**
337
+ * Contract instance type for LivepeerToken
338
+ */
339
+ export type LivepeerTokenContract = any;
340
+ /**
341
+ * LivepeerToken Contract Class
342
+ *
343
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
344
+ *
345
+ * @example
346
+ * ```typescript
347
+ * import { createPublicClient, createWalletClient, http } from 'viem';
348
+ * import { mainnet } from 'viem/chains';
349
+ * import { LivepeerToken } from 'LivepeerToken';
350
+ *
351
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
352
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
353
+ *
354
+ * const contract = new LivepeerToken('0x...', { publicClient, walletClient });
355
+ *
356
+ * // Read functions
357
+ * const result = await contract.balanceOf('0x...');
358
+ *
359
+ * // Write functions
360
+ * const hash = await contract.transfer('0x...', 1000n);
361
+ *
362
+ * // Simulate transactions (dry-run)
363
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
364
+ * console.log('Gas estimate:', simulation.request.gas);
365
+ *
366
+ * // Watch events
367
+ * const unwatch = contract.watch.Transfer((event) => {
368
+ * console.log('Transfer event:', event);
369
+ * });
370
+ * ```
371
+ */
372
+ export declare class LivepeerToken {
373
+ private contract;
374
+ private contractAddress;
375
+ private publicClient;
376
+ constructor(address: Address, clients: {
377
+ publicClient: PublicClient;
378
+ walletClient?: WalletClient;
379
+ });
380
+ /**
381
+ * Get the contract address
382
+ */
383
+ get address(): Address;
384
+ /**
385
+ * Get the underlying viem contract instance.
386
+ */
387
+ getContract(): LivepeerTokenContract;
388
+ /**
389
+ * mintingFinished
390
+ * view
391
+ */
392
+ mintingFinished(): Promise<boolean>;
393
+ /**
394
+ * name
395
+ * view
396
+ */
397
+ name(): Promise<string>;
398
+ /**
399
+ * totalSupply
400
+ * view
401
+ */
402
+ totalSupply(): Promise<bigint>;
403
+ /**
404
+ * decimals
405
+ * view
406
+ */
407
+ decimals(): Promise<bigint>;
408
+ /**
409
+ * version
410
+ * view
411
+ */
412
+ version(): Promise<string>;
413
+ /**
414
+ * balanceOf
415
+ * view
416
+ */
417
+ balanceOf(_owner: `0x${string}`): Promise<bigint>;
418
+ /**
419
+ * owner
420
+ * view
421
+ */
422
+ owner(): Promise<`0x${string}`>;
423
+ /**
424
+ * symbol
425
+ * view
426
+ */
427
+ symbol(): Promise<string>;
428
+ /**
429
+ * allowance
430
+ * view
431
+ */
432
+ allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
433
+ /**
434
+ * approve
435
+ * nonpayable
436
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
437
+ */
438
+ approve(_spender: `0x${string}`, _value: bigint, options?: {
439
+ accessList?: import('viem').AccessList;
440
+ authorizationList?: import('viem').AuthorizationList;
441
+ chain?: import('viem').Chain | null;
442
+ dataSuffix?: `0x${string}`;
443
+ gas?: bigint;
444
+ gasPrice?: bigint;
445
+ maxFeePerGas?: bigint;
446
+ maxPriorityFeePerGas?: bigint;
447
+ nonce?: number;
448
+ value?: bigint;
449
+ }): Promise<`0x${string}`>;
450
+ /**
451
+ * transferFrom
452
+ * nonpayable
453
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
454
+ */
455
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
456
+ accessList?: import('viem').AccessList;
457
+ authorizationList?: import('viem').AuthorizationList;
458
+ chain?: import('viem').Chain | null;
459
+ dataSuffix?: `0x${string}`;
460
+ gas?: bigint;
461
+ gasPrice?: bigint;
462
+ maxFeePerGas?: bigint;
463
+ maxPriorityFeePerGas?: bigint;
464
+ nonce?: number;
465
+ value?: bigint;
466
+ }): Promise<`0x${string}`>;
467
+ /**
468
+ * mint
469
+ * nonpayable
470
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
471
+ */
472
+ mint(_to: `0x${string}`, _amount: bigint, options?: {
473
+ accessList?: import('viem').AccessList;
474
+ authorizationList?: import('viem').AuthorizationList;
475
+ chain?: import('viem').Chain | null;
476
+ dataSuffix?: `0x${string}`;
477
+ gas?: bigint;
478
+ gasPrice?: bigint;
479
+ maxFeePerGas?: bigint;
480
+ maxPriorityFeePerGas?: bigint;
481
+ nonce?: number;
482
+ value?: bigint;
483
+ }): Promise<`0x${string}`>;
484
+ /**
485
+ * burn
486
+ * nonpayable
487
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
488
+ */
489
+ burn(_amount: bigint, options?: {
490
+ accessList?: import('viem').AccessList;
491
+ authorizationList?: import('viem').AuthorizationList;
492
+ chain?: import('viem').Chain | null;
493
+ dataSuffix?: `0x${string}`;
494
+ gas?: bigint;
495
+ gasPrice?: bigint;
496
+ maxFeePerGas?: bigint;
497
+ maxPriorityFeePerGas?: bigint;
498
+ nonce?: number;
499
+ value?: bigint;
500
+ }): Promise<`0x${string}`>;
501
+ /**
502
+ * decreaseApproval
503
+ * nonpayable
504
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
505
+ */
506
+ decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
507
+ accessList?: import('viem').AccessList;
508
+ authorizationList?: import('viem').AuthorizationList;
509
+ chain?: import('viem').Chain | null;
510
+ dataSuffix?: `0x${string}`;
511
+ gas?: bigint;
512
+ gasPrice?: bigint;
513
+ maxFeePerGas?: bigint;
514
+ maxPriorityFeePerGas?: bigint;
515
+ nonce?: number;
516
+ value?: bigint;
517
+ }): Promise<`0x${string}`>;
518
+ /**
519
+ * finishMinting
520
+ * nonpayable
521
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
522
+ */
523
+ finishMinting(options?: {
524
+ accessList?: import('viem').AccessList;
525
+ authorizationList?: import('viem').AuthorizationList;
526
+ chain?: import('viem').Chain | null;
527
+ dataSuffix?: `0x${string}`;
528
+ gas?: bigint;
529
+ gasPrice?: bigint;
530
+ maxFeePerGas?: bigint;
531
+ maxPriorityFeePerGas?: bigint;
532
+ nonce?: number;
533
+ value?: bigint;
534
+ }): Promise<`0x${string}`>;
535
+ /**
536
+ * transfer
537
+ * nonpayable
538
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
539
+ */
540
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
541
+ accessList?: import('viem').AccessList;
542
+ authorizationList?: import('viem').AuthorizationList;
543
+ chain?: import('viem').Chain | null;
544
+ dataSuffix?: `0x${string}`;
545
+ gas?: bigint;
546
+ gasPrice?: bigint;
547
+ maxFeePerGas?: bigint;
548
+ maxPriorityFeePerGas?: bigint;
549
+ nonce?: number;
550
+ value?: bigint;
551
+ }): Promise<`0x${string}`>;
552
+ /**
553
+ * increaseApproval
554
+ * nonpayable
555
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
556
+ */
557
+ increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
558
+ accessList?: import('viem').AccessList;
559
+ authorizationList?: import('viem').AuthorizationList;
560
+ chain?: import('viem').Chain | null;
561
+ dataSuffix?: `0x${string}`;
562
+ gas?: bigint;
563
+ gasPrice?: bigint;
564
+ maxFeePerGas?: bigint;
565
+ maxPriorityFeePerGas?: bigint;
566
+ nonce?: number;
567
+ value?: bigint;
568
+ }): Promise<`0x${string}`>;
569
+ /**
570
+ * transferOwnership
571
+ * nonpayable
572
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
573
+ */
574
+ transferOwnership(newOwner: `0x${string}`, options?: {
575
+ accessList?: import('viem').AccessList;
576
+ authorizationList?: import('viem').AuthorizationList;
577
+ chain?: import('viem').Chain | null;
578
+ dataSuffix?: `0x${string}`;
579
+ gas?: bigint;
580
+ gasPrice?: bigint;
581
+ maxFeePerGas?: bigint;
582
+ maxPriorityFeePerGas?: bigint;
583
+ nonce?: number;
584
+ value?: bigint;
585
+ }): Promise<`0x${string}`>;
586
+ /**
587
+ * Simulate contract write operations (dry-run without sending transaction)
588
+ *
589
+ * @example
590
+ * const result = await contract.simulate.transfer('0x...', 1000n);
591
+ * console.log('Gas estimate:', result.request.gas);
592
+ * console.log('Would succeed:', result.result);
593
+ */
594
+ get simulate(): {
595
+ /**
596
+ * Simulate approve
597
+ * Returns gas estimate and result without sending transaction
598
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
599
+ */
600
+ approve(_spender: `0x${string}`, _value: bigint, options?: {
601
+ accessList?: import("viem").AccessList;
602
+ authorizationList?: import("viem").AuthorizationList;
603
+ chain?: import("viem").Chain | null;
604
+ dataSuffix?: `0x${string}`;
605
+ gas?: bigint;
606
+ gasPrice?: bigint;
607
+ maxFeePerGas?: bigint;
608
+ maxPriorityFeePerGas?: bigint;
609
+ nonce?: number;
610
+ value?: bigint;
611
+ }): Promise<boolean>;
612
+ /**
613
+ * Simulate transferFrom
614
+ * Returns gas estimate and result without sending transaction
615
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
616
+ */
617
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
618
+ accessList?: import("viem").AccessList;
619
+ authorizationList?: import("viem").AuthorizationList;
620
+ chain?: import("viem").Chain | null;
621
+ dataSuffix?: `0x${string}`;
622
+ gas?: bigint;
623
+ gasPrice?: bigint;
624
+ maxFeePerGas?: bigint;
625
+ maxPriorityFeePerGas?: bigint;
626
+ nonce?: number;
627
+ value?: bigint;
628
+ }): Promise<boolean>;
629
+ /**
630
+ * Simulate mint
631
+ * Returns gas estimate and result without sending transaction
632
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
633
+ */
634
+ mint(_to: `0x${string}`, _amount: bigint, options?: {
635
+ accessList?: import("viem").AccessList;
636
+ authorizationList?: import("viem").AuthorizationList;
637
+ chain?: import("viem").Chain | null;
638
+ dataSuffix?: `0x${string}`;
639
+ gas?: bigint;
640
+ gasPrice?: bigint;
641
+ maxFeePerGas?: bigint;
642
+ maxPriorityFeePerGas?: bigint;
643
+ nonce?: number;
644
+ value?: bigint;
645
+ }): Promise<boolean>;
646
+ /**
647
+ * Simulate burn
648
+ * Returns gas estimate and result without sending transaction
649
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
650
+ */
651
+ burn(_amount: bigint, options?: {
652
+ accessList?: import("viem").AccessList;
653
+ authorizationList?: import("viem").AuthorizationList;
654
+ chain?: import("viem").Chain | null;
655
+ dataSuffix?: `0x${string}`;
656
+ gas?: bigint;
657
+ gasPrice?: bigint;
658
+ maxFeePerGas?: bigint;
659
+ maxPriorityFeePerGas?: bigint;
660
+ nonce?: number;
661
+ value?: bigint;
662
+ }): Promise<void>;
663
+ /**
664
+ * Simulate decreaseApproval
665
+ * Returns gas estimate and result without sending transaction
666
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
667
+ */
668
+ decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
669
+ accessList?: import("viem").AccessList;
670
+ authorizationList?: import("viem").AuthorizationList;
671
+ chain?: import("viem").Chain | null;
672
+ dataSuffix?: `0x${string}`;
673
+ gas?: bigint;
674
+ gasPrice?: bigint;
675
+ maxFeePerGas?: bigint;
676
+ maxPriorityFeePerGas?: bigint;
677
+ nonce?: number;
678
+ value?: bigint;
679
+ }): Promise<boolean>;
680
+ /**
681
+ * Simulate finishMinting
682
+ * Returns gas estimate and result without sending transaction
683
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
684
+ */
685
+ finishMinting(options?: {
686
+ accessList?: import("viem").AccessList;
687
+ authorizationList?: import("viem").AuthorizationList;
688
+ chain?: import("viem").Chain | null;
689
+ dataSuffix?: `0x${string}`;
690
+ gas?: bigint;
691
+ gasPrice?: bigint;
692
+ maxFeePerGas?: bigint;
693
+ maxPriorityFeePerGas?: bigint;
694
+ nonce?: number;
695
+ value?: bigint;
696
+ }): Promise<boolean>;
697
+ /**
698
+ * Simulate transfer
699
+ * Returns gas estimate and result without sending transaction
700
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
701
+ */
702
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
703
+ accessList?: import("viem").AccessList;
704
+ authorizationList?: import("viem").AuthorizationList;
705
+ chain?: import("viem").Chain | null;
706
+ dataSuffix?: `0x${string}`;
707
+ gas?: bigint;
708
+ gasPrice?: bigint;
709
+ maxFeePerGas?: bigint;
710
+ maxPriorityFeePerGas?: bigint;
711
+ nonce?: number;
712
+ value?: bigint;
713
+ }): Promise<boolean>;
714
+ /**
715
+ * Simulate increaseApproval
716
+ * Returns gas estimate and result without sending transaction
717
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
718
+ */
719
+ increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
720
+ accessList?: import("viem").AccessList;
721
+ authorizationList?: import("viem").AuthorizationList;
722
+ chain?: import("viem").Chain | null;
723
+ dataSuffix?: `0x${string}`;
724
+ gas?: bigint;
725
+ gasPrice?: bigint;
726
+ maxFeePerGas?: bigint;
727
+ maxPriorityFeePerGas?: bigint;
728
+ nonce?: number;
729
+ value?: bigint;
730
+ }): Promise<boolean>;
731
+ /**
732
+ * Simulate transferOwnership
733
+ * Returns gas estimate and result without sending transaction
734
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
735
+ */
736
+ transferOwnership(newOwner: `0x${string}`, options?: {
737
+ accessList?: import("viem").AccessList;
738
+ authorizationList?: import("viem").AuthorizationList;
739
+ chain?: import("viem").Chain | null;
740
+ dataSuffix?: `0x${string}`;
741
+ gas?: bigint;
742
+ gasPrice?: bigint;
743
+ maxFeePerGas?: bigint;
744
+ maxPriorityFeePerGas?: bigint;
745
+ nonce?: number;
746
+ value?: bigint;
747
+ }): Promise<void>;
748
+ };
749
+ /**
750
+ * Watch contract events
751
+ *
752
+ * @example
753
+ * // Watch all Transfer events
754
+ * const unwatch = contract.watch.Transfer((event) => {
755
+ * console.log('Transfer:', event);
756
+ * });
757
+ *
758
+ * // Stop watching
759
+ * unwatch();
760
+ */
761
+ get watch(): {
762
+ /**
763
+ * Watch Burn events
764
+ * @param callback Function to call when event is emitted
765
+ * @param filter Optional filter for indexed parameters
766
+ * @returns Unwatch function to stop listening
767
+ */
768
+ Burn: (callback: (event: {
769
+ burner: `0x${string}`;
770
+ value: bigint;
771
+ }) => void, filter?: {
772
+ burner?: `0x${string}` | `0x${string}`[] | null;
773
+ }) => () => void;
774
+ /**
775
+ * Watch Mint events
776
+ * @param callback Function to call when event is emitted
777
+ * @param filter Optional filter for indexed parameters
778
+ * @returns Unwatch function to stop listening
779
+ */
780
+ Mint: (callback: (event: {
781
+ to: `0x${string}`;
782
+ amount: bigint;
783
+ }) => void, filter?: {
784
+ to?: `0x${string}` | `0x${string}`[] | null;
785
+ }) => () => void;
786
+ /**
787
+ * Watch MintFinished events
788
+ * @param callback Function to call when event is emitted
789
+ * @param filter Optional filter for indexed parameters
790
+ * @returns Unwatch function to stop listening
791
+ */
792
+ MintFinished: (callback: (event: {}) => void) => () => void;
793
+ /**
794
+ * Watch OwnershipTransferred events
795
+ * @param callback Function to call when event is emitted
796
+ * @param filter Optional filter for indexed parameters
797
+ * @returns Unwatch function to stop listening
798
+ */
799
+ OwnershipTransferred: (callback: (event: {
800
+ previousOwner: `0x${string}`;
801
+ newOwner: `0x${string}`;
802
+ }) => void, filter?: {
803
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
804
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
805
+ }) => () => void;
806
+ /**
807
+ * Watch Approval events
808
+ * @param callback Function to call when event is emitted
809
+ * @param filter Optional filter for indexed parameters
810
+ * @returns Unwatch function to stop listening
811
+ */
812
+ Approval: (callback: (event: {
813
+ owner: `0x${string}`;
814
+ spender: `0x${string}`;
815
+ value: bigint;
816
+ }) => void, filter?: {
817
+ owner?: `0x${string}` | `0x${string}`[] | null;
818
+ spender?: `0x${string}` | `0x${string}`[] | null;
819
+ }) => () => void;
820
+ /**
821
+ * Watch Transfer events
822
+ * @param callback Function to call when event is emitted
823
+ * @param filter Optional filter for indexed parameters
824
+ * @returns Unwatch function to stop listening
825
+ */
826
+ Transfer: (callback: (event: {
827
+ from: `0x${string}`;
828
+ to: `0x${string}`;
829
+ value: bigint;
830
+ }) => void, filter?: {
831
+ from?: `0x${string}` | `0x${string}`[] | null;
832
+ to?: `0x${string}` | `0x${string}`[] | null;
833
+ }) => () => void;
834
+ };
835
+ }