@gitmyabi/mtbill 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1086 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * mTBILL ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const mTBILLAbi: readonly [{
8
+ readonly anonymous: false;
9
+ readonly inputs: readonly [{
10
+ readonly indexed: true;
11
+ readonly internalType: "address";
12
+ readonly name: "owner";
13
+ readonly type: "address";
14
+ }, {
15
+ readonly indexed: true;
16
+ readonly internalType: "address";
17
+ readonly name: "spender";
18
+ readonly type: "address";
19
+ }, {
20
+ readonly indexed: false;
21
+ readonly internalType: "uint256";
22
+ readonly name: "value";
23
+ readonly type: "uint256";
24
+ }];
25
+ readonly name: "Approval";
26
+ readonly type: "event";
27
+ }, {
28
+ readonly anonymous: false;
29
+ readonly inputs: readonly [{
30
+ readonly indexed: false;
31
+ readonly internalType: "uint8";
32
+ readonly name: "version";
33
+ readonly type: "uint8";
34
+ }];
35
+ readonly name: "Initialized";
36
+ readonly type: "event";
37
+ }, {
38
+ readonly anonymous: false;
39
+ readonly inputs: readonly [{
40
+ readonly indexed: false;
41
+ readonly internalType: "address";
42
+ readonly name: "account";
43
+ readonly type: "address";
44
+ }];
45
+ readonly name: "Paused";
46
+ readonly type: "event";
47
+ }, {
48
+ readonly anonymous: false;
49
+ readonly inputs: readonly [{
50
+ readonly indexed: true;
51
+ readonly internalType: "address";
52
+ readonly name: "from";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly indexed: true;
56
+ readonly internalType: "address";
57
+ readonly name: "to";
58
+ readonly type: "address";
59
+ }, {
60
+ readonly indexed: false;
61
+ readonly internalType: "uint256";
62
+ readonly name: "value";
63
+ readonly type: "uint256";
64
+ }];
65
+ readonly name: "Transfer";
66
+ readonly type: "event";
67
+ }, {
68
+ readonly anonymous: false;
69
+ readonly inputs: readonly [{
70
+ readonly indexed: false;
71
+ readonly internalType: "address";
72
+ readonly name: "account";
73
+ readonly type: "address";
74
+ }];
75
+ readonly name: "Unpaused";
76
+ readonly type: "event";
77
+ }, {
78
+ readonly inputs: readonly [];
79
+ readonly name: "BLACKLISTED_ROLE";
80
+ readonly outputs: readonly [{
81
+ readonly internalType: "bytes32";
82
+ readonly name: "";
83
+ readonly type: "bytes32";
84
+ }];
85
+ readonly stateMutability: "view";
86
+ readonly type: "function";
87
+ }, {
88
+ readonly inputs: readonly [];
89
+ readonly name: "BLACKLIST_OPERATOR_ROLE";
90
+ readonly outputs: readonly [{
91
+ readonly internalType: "bytes32";
92
+ readonly name: "";
93
+ readonly type: "bytes32";
94
+ }];
95
+ readonly stateMutability: "view";
96
+ readonly type: "function";
97
+ }, {
98
+ readonly inputs: readonly [];
99
+ readonly name: "DEFAULT_ADMIN_ROLE";
100
+ readonly outputs: readonly [{
101
+ readonly internalType: "bytes32";
102
+ readonly name: "";
103
+ readonly type: "bytes32";
104
+ }];
105
+ readonly stateMutability: "view";
106
+ readonly type: "function";
107
+ }, {
108
+ readonly inputs: readonly [];
109
+ readonly name: "DEPOSIT_VAULT_ADMIN_ROLE";
110
+ readonly outputs: readonly [{
111
+ readonly internalType: "bytes32";
112
+ readonly name: "";
113
+ readonly type: "bytes32";
114
+ }];
115
+ readonly stateMutability: "view";
116
+ readonly type: "function";
117
+ }, {
118
+ readonly inputs: readonly [];
119
+ readonly name: "GREENLISTED_ROLE";
120
+ readonly outputs: readonly [{
121
+ readonly internalType: "bytes32";
122
+ readonly name: "";
123
+ readonly type: "bytes32";
124
+ }];
125
+ readonly stateMutability: "view";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly inputs: readonly [];
129
+ readonly name: "GREENLIST_OPERATOR_ROLE";
130
+ readonly outputs: readonly [{
131
+ readonly internalType: "bytes32";
132
+ readonly name: "";
133
+ readonly type: "bytes32";
134
+ }];
135
+ readonly stateMutability: "view";
136
+ readonly type: "function";
137
+ }, {
138
+ readonly inputs: readonly [];
139
+ readonly name: "M_TBILL_BURN_OPERATOR_ROLE";
140
+ readonly outputs: readonly [{
141
+ readonly internalType: "bytes32";
142
+ readonly name: "";
143
+ readonly type: "bytes32";
144
+ }];
145
+ readonly stateMutability: "view";
146
+ readonly type: "function";
147
+ }, {
148
+ readonly inputs: readonly [];
149
+ readonly name: "M_TBILL_MINT_OPERATOR_ROLE";
150
+ readonly outputs: readonly [{
151
+ readonly internalType: "bytes32";
152
+ readonly name: "";
153
+ readonly type: "bytes32";
154
+ }];
155
+ readonly stateMutability: "view";
156
+ readonly type: "function";
157
+ }, {
158
+ readonly inputs: readonly [];
159
+ readonly name: "M_TBILL_PAUSE_OPERATOR_ROLE";
160
+ readonly outputs: readonly [{
161
+ readonly internalType: "bytes32";
162
+ readonly name: "";
163
+ readonly type: "bytes32";
164
+ }];
165
+ readonly stateMutability: "view";
166
+ readonly type: "function";
167
+ }, {
168
+ readonly inputs: readonly [];
169
+ readonly name: "REDEMPTION_VAULT_ADMIN_ROLE";
170
+ readonly outputs: readonly [{
171
+ readonly internalType: "bytes32";
172
+ readonly name: "";
173
+ readonly type: "bytes32";
174
+ }];
175
+ readonly stateMutability: "view";
176
+ readonly type: "function";
177
+ }, {
178
+ readonly inputs: readonly [];
179
+ readonly name: "accessControl";
180
+ readonly outputs: readonly [{
181
+ readonly internalType: "contract MidasAccessControl";
182
+ readonly name: "";
183
+ readonly type: "address";
184
+ }];
185
+ readonly stateMutability: "view";
186
+ readonly type: "function";
187
+ }, {
188
+ readonly inputs: readonly [{
189
+ readonly internalType: "address";
190
+ readonly name: "owner";
191
+ readonly type: "address";
192
+ }, {
193
+ readonly internalType: "address";
194
+ readonly name: "spender";
195
+ readonly type: "address";
196
+ }];
197
+ readonly name: "allowance";
198
+ readonly outputs: readonly [{
199
+ readonly internalType: "uint256";
200
+ readonly name: "";
201
+ readonly type: "uint256";
202
+ }];
203
+ readonly stateMutability: "view";
204
+ readonly type: "function";
205
+ }, {
206
+ readonly inputs: readonly [{
207
+ readonly internalType: "address";
208
+ readonly name: "spender";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly internalType: "uint256";
212
+ readonly name: "amount";
213
+ readonly type: "uint256";
214
+ }];
215
+ readonly name: "approve";
216
+ readonly outputs: readonly [{
217
+ readonly internalType: "bool";
218
+ readonly name: "";
219
+ readonly type: "bool";
220
+ }];
221
+ readonly stateMutability: "nonpayable";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [{
225
+ readonly internalType: "address";
226
+ readonly name: "account";
227
+ readonly type: "address";
228
+ }];
229
+ readonly name: "balanceOf";
230
+ readonly outputs: readonly [{
231
+ readonly internalType: "uint256";
232
+ readonly name: "";
233
+ readonly type: "uint256";
234
+ }];
235
+ readonly stateMutability: "view";
236
+ readonly type: "function";
237
+ }, {
238
+ readonly inputs: readonly [{
239
+ readonly internalType: "address";
240
+ readonly name: "from";
241
+ readonly type: "address";
242
+ }, {
243
+ readonly internalType: "uint256";
244
+ readonly name: "amount";
245
+ readonly type: "uint256";
246
+ }];
247
+ readonly name: "burn";
248
+ readonly outputs: readonly [];
249
+ readonly stateMutability: "nonpayable";
250
+ readonly type: "function";
251
+ }, {
252
+ readonly inputs: readonly [];
253
+ readonly name: "decimals";
254
+ readonly outputs: readonly [{
255
+ readonly internalType: "uint8";
256
+ readonly name: "";
257
+ readonly type: "uint8";
258
+ }];
259
+ readonly stateMutability: "view";
260
+ readonly type: "function";
261
+ }, {
262
+ readonly inputs: readonly [{
263
+ readonly internalType: "address";
264
+ readonly name: "spender";
265
+ readonly type: "address";
266
+ }, {
267
+ readonly internalType: "uint256";
268
+ readonly name: "subtractedValue";
269
+ readonly type: "uint256";
270
+ }];
271
+ readonly name: "decreaseAllowance";
272
+ readonly outputs: readonly [{
273
+ readonly internalType: "bool";
274
+ readonly name: "";
275
+ readonly type: "bool";
276
+ }];
277
+ readonly stateMutability: "nonpayable";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "address";
282
+ readonly name: "spender";
283
+ readonly type: "address";
284
+ }, {
285
+ readonly internalType: "uint256";
286
+ readonly name: "addedValue";
287
+ readonly type: "uint256";
288
+ }];
289
+ readonly name: "increaseAllowance";
290
+ readonly outputs: readonly [{
291
+ readonly internalType: "bool";
292
+ readonly name: "";
293
+ readonly type: "bool";
294
+ }];
295
+ readonly stateMutability: "nonpayable";
296
+ readonly type: "function";
297
+ }, {
298
+ readonly inputs: readonly [{
299
+ readonly internalType: "address";
300
+ readonly name: "_accessControl";
301
+ readonly type: "address";
302
+ }];
303
+ readonly name: "initialize";
304
+ readonly outputs: readonly [];
305
+ readonly stateMutability: "nonpayable";
306
+ readonly type: "function";
307
+ }, {
308
+ readonly inputs: readonly [];
309
+ readonly name: "initializeV2";
310
+ readonly outputs: readonly [];
311
+ readonly stateMutability: "nonpayable";
312
+ readonly type: "function";
313
+ }, {
314
+ readonly inputs: readonly [{
315
+ readonly internalType: "bytes32";
316
+ readonly name: "";
317
+ readonly type: "bytes32";
318
+ }];
319
+ readonly name: "metadata";
320
+ readonly outputs: readonly [{
321
+ readonly internalType: "bytes";
322
+ readonly name: "";
323
+ readonly type: "bytes";
324
+ }];
325
+ readonly stateMutability: "view";
326
+ readonly type: "function";
327
+ }, {
328
+ readonly inputs: readonly [{
329
+ readonly internalType: "address";
330
+ readonly name: "to";
331
+ readonly type: "address";
332
+ }, {
333
+ readonly internalType: "uint256";
334
+ readonly name: "amount";
335
+ readonly type: "uint256";
336
+ }];
337
+ readonly name: "mint";
338
+ readonly outputs: readonly [];
339
+ readonly stateMutability: "nonpayable";
340
+ readonly type: "function";
341
+ }, {
342
+ readonly inputs: readonly [];
343
+ readonly name: "name";
344
+ readonly outputs: readonly [{
345
+ readonly internalType: "string";
346
+ readonly name: "";
347
+ readonly type: "string";
348
+ }];
349
+ readonly stateMutability: "view";
350
+ readonly type: "function";
351
+ }, {
352
+ readonly inputs: readonly [];
353
+ readonly name: "pause";
354
+ readonly outputs: readonly [];
355
+ readonly stateMutability: "nonpayable";
356
+ readonly type: "function";
357
+ }, {
358
+ readonly inputs: readonly [];
359
+ readonly name: "paused";
360
+ readonly outputs: readonly [{
361
+ readonly internalType: "bool";
362
+ readonly name: "";
363
+ readonly type: "bool";
364
+ }];
365
+ readonly stateMutability: "view";
366
+ readonly type: "function";
367
+ }, {
368
+ readonly inputs: readonly [{
369
+ readonly internalType: "bytes32";
370
+ readonly name: "key";
371
+ readonly type: "bytes32";
372
+ }, {
373
+ readonly internalType: "bytes";
374
+ readonly name: "data";
375
+ readonly type: "bytes";
376
+ }];
377
+ readonly name: "setMetadata";
378
+ readonly outputs: readonly [];
379
+ readonly stateMutability: "nonpayable";
380
+ readonly type: "function";
381
+ }, {
382
+ readonly inputs: readonly [];
383
+ readonly name: "symbol";
384
+ readonly outputs: readonly [{
385
+ readonly internalType: "string";
386
+ readonly name: "";
387
+ readonly type: "string";
388
+ }];
389
+ readonly stateMutability: "view";
390
+ readonly type: "function";
391
+ }, {
392
+ readonly inputs: readonly [];
393
+ readonly name: "totalSupply";
394
+ readonly outputs: readonly [{
395
+ readonly internalType: "uint256";
396
+ readonly name: "";
397
+ readonly type: "uint256";
398
+ }];
399
+ readonly stateMutability: "view";
400
+ readonly type: "function";
401
+ }, {
402
+ readonly inputs: readonly [{
403
+ readonly internalType: "address";
404
+ readonly name: "to";
405
+ readonly type: "address";
406
+ }, {
407
+ readonly internalType: "uint256";
408
+ readonly name: "amount";
409
+ readonly type: "uint256";
410
+ }];
411
+ readonly name: "transfer";
412
+ readonly outputs: readonly [{
413
+ readonly internalType: "bool";
414
+ readonly name: "";
415
+ readonly type: "bool";
416
+ }];
417
+ readonly stateMutability: "nonpayable";
418
+ readonly type: "function";
419
+ }, {
420
+ readonly inputs: readonly [{
421
+ readonly internalType: "address";
422
+ readonly name: "from";
423
+ readonly type: "address";
424
+ }, {
425
+ readonly internalType: "address";
426
+ readonly name: "to";
427
+ readonly type: "address";
428
+ }, {
429
+ readonly internalType: "uint256";
430
+ readonly name: "amount";
431
+ readonly type: "uint256";
432
+ }];
433
+ readonly name: "transferFrom";
434
+ readonly outputs: readonly [{
435
+ readonly internalType: "bool";
436
+ readonly name: "";
437
+ readonly type: "bool";
438
+ }];
439
+ readonly stateMutability: "nonpayable";
440
+ readonly type: "function";
441
+ }, {
442
+ readonly inputs: readonly [];
443
+ readonly name: "unpause";
444
+ readonly outputs: readonly [];
445
+ readonly stateMutability: "nonpayable";
446
+ readonly type: "function";
447
+ }];
448
+ /**
449
+ * Type-safe ABI for mTBILL
450
+ */
451
+ export type mTBILLAbi = typeof mTBILLAbi;
452
+ /**
453
+ * Contract instance type for mTBILL
454
+ */
455
+ export type mTBILLContract = any;
456
+ /**
457
+ * mTBILL Contract Class
458
+ *
459
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
460
+ *
461
+ * @example
462
+ * ```typescript
463
+ * import { createPublicClient, createWalletClient, http } from 'viem';
464
+ * import { mainnet } from 'viem/chains';
465
+ * import { mTBILL } from 'mTBILL';
466
+ *
467
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
468
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
469
+ *
470
+ * const contract = new mTBILL('0x...', { publicClient, walletClient });
471
+ *
472
+ * // Read functions
473
+ * const result = await contract.balanceOf('0x...');
474
+ *
475
+ * // Write functions
476
+ * const hash = await contract.transfer('0x...', 1000n);
477
+ *
478
+ * // Simulate transactions (dry-run)
479
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
480
+ * console.log('Gas estimate:', simulation.request.gas);
481
+ *
482
+ * // Watch events
483
+ * const unwatch = contract.watch.Transfer((event) => {
484
+ * console.log('Transfer event:', event);
485
+ * });
486
+ * ```
487
+ */
488
+ export declare class mTBILL {
489
+ private contract;
490
+ private contractAddress;
491
+ private publicClient;
492
+ constructor(address: Address, clients: {
493
+ publicClient: PublicClient;
494
+ walletClient?: WalletClient;
495
+ });
496
+ /**
497
+ * Get the contract address
498
+ */
499
+ get address(): Address;
500
+ /**
501
+ * Get the underlying viem contract instance.
502
+ */
503
+ getContract(): mTBILLContract;
504
+ /**
505
+ * BLACKLISTED_ROLE
506
+ * view
507
+ */
508
+ BLACKLISTED_ROLE(): Promise<`0x${string}`>;
509
+ /**
510
+ * BLACKLIST_OPERATOR_ROLE
511
+ * view
512
+ */
513
+ BLACKLIST_OPERATOR_ROLE(): Promise<`0x${string}`>;
514
+ /**
515
+ * DEFAULT_ADMIN_ROLE
516
+ * view
517
+ */
518
+ DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
519
+ /**
520
+ * DEPOSIT_VAULT_ADMIN_ROLE
521
+ * view
522
+ */
523
+ DEPOSIT_VAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
524
+ /**
525
+ * GREENLISTED_ROLE
526
+ * view
527
+ */
528
+ GREENLISTED_ROLE(): Promise<`0x${string}`>;
529
+ /**
530
+ * GREENLIST_OPERATOR_ROLE
531
+ * view
532
+ */
533
+ GREENLIST_OPERATOR_ROLE(): Promise<`0x${string}`>;
534
+ /**
535
+ * M_TBILL_BURN_OPERATOR_ROLE
536
+ * view
537
+ */
538
+ M_TBILL_BURN_OPERATOR_ROLE(): Promise<`0x${string}`>;
539
+ /**
540
+ * M_TBILL_MINT_OPERATOR_ROLE
541
+ * view
542
+ */
543
+ M_TBILL_MINT_OPERATOR_ROLE(): Promise<`0x${string}`>;
544
+ /**
545
+ * M_TBILL_PAUSE_OPERATOR_ROLE
546
+ * view
547
+ */
548
+ M_TBILL_PAUSE_OPERATOR_ROLE(): Promise<`0x${string}`>;
549
+ /**
550
+ * REDEMPTION_VAULT_ADMIN_ROLE
551
+ * view
552
+ */
553
+ REDEMPTION_VAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
554
+ /**
555
+ * accessControl
556
+ * view
557
+ */
558
+ accessControl(): Promise<`0x${string}`>;
559
+ /**
560
+ * allowance
561
+ * view
562
+ */
563
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
564
+ /**
565
+ * balanceOf
566
+ * view
567
+ */
568
+ balanceOf(account: `0x${string}`): Promise<bigint>;
569
+ /**
570
+ * decimals
571
+ * view
572
+ */
573
+ decimals(): Promise<bigint>;
574
+ /**
575
+ * metadata
576
+ * view
577
+ */
578
+ metadata(arg0: `0x${string}`): Promise<`0x${string}`>;
579
+ /**
580
+ * name
581
+ * view
582
+ */
583
+ name(): Promise<string>;
584
+ /**
585
+ * paused
586
+ * view
587
+ */
588
+ paused(): Promise<boolean>;
589
+ /**
590
+ * symbol
591
+ * view
592
+ */
593
+ symbol(): Promise<string>;
594
+ /**
595
+ * totalSupply
596
+ * view
597
+ */
598
+ totalSupply(): Promise<bigint>;
599
+ /**
600
+ * approve
601
+ * nonpayable
602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
603
+ */
604
+ approve(spender: `0x${string}`, amount: bigint, options?: {
605
+ accessList?: import('viem').AccessList;
606
+ authorizationList?: import('viem').AuthorizationList;
607
+ chain?: import('viem').Chain | null;
608
+ dataSuffix?: `0x${string}`;
609
+ gas?: bigint;
610
+ gasPrice?: bigint;
611
+ maxFeePerGas?: bigint;
612
+ maxPriorityFeePerGas?: bigint;
613
+ nonce?: number;
614
+ value?: bigint;
615
+ }): Promise<`0x${string}`>;
616
+ /**
617
+ * burn
618
+ * nonpayable
619
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
620
+ */
621
+ burn(from: `0x${string}`, amount: bigint, options?: {
622
+ accessList?: import('viem').AccessList;
623
+ authorizationList?: import('viem').AuthorizationList;
624
+ chain?: import('viem').Chain | null;
625
+ dataSuffix?: `0x${string}`;
626
+ gas?: bigint;
627
+ gasPrice?: bigint;
628
+ maxFeePerGas?: bigint;
629
+ maxPriorityFeePerGas?: bigint;
630
+ nonce?: number;
631
+ value?: bigint;
632
+ }): Promise<`0x${string}`>;
633
+ /**
634
+ * decreaseAllowance
635
+ * nonpayable
636
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
637
+ */
638
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
639
+ accessList?: import('viem').AccessList;
640
+ authorizationList?: import('viem').AuthorizationList;
641
+ chain?: import('viem').Chain | null;
642
+ dataSuffix?: `0x${string}`;
643
+ gas?: bigint;
644
+ gasPrice?: bigint;
645
+ maxFeePerGas?: bigint;
646
+ maxPriorityFeePerGas?: bigint;
647
+ nonce?: number;
648
+ value?: bigint;
649
+ }): Promise<`0x${string}`>;
650
+ /**
651
+ * increaseAllowance
652
+ * nonpayable
653
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
654
+ */
655
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
656
+ accessList?: import('viem').AccessList;
657
+ authorizationList?: import('viem').AuthorizationList;
658
+ chain?: import('viem').Chain | null;
659
+ dataSuffix?: `0x${string}`;
660
+ gas?: bigint;
661
+ gasPrice?: bigint;
662
+ maxFeePerGas?: bigint;
663
+ maxPriorityFeePerGas?: bigint;
664
+ nonce?: number;
665
+ value?: bigint;
666
+ }): Promise<`0x${string}`>;
667
+ /**
668
+ * initialize
669
+ * nonpayable
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ initialize(_accessControl: `0x${string}`, options?: {
673
+ accessList?: import('viem').AccessList;
674
+ authorizationList?: import('viem').AuthorizationList;
675
+ chain?: import('viem').Chain | null;
676
+ dataSuffix?: `0x${string}`;
677
+ gas?: bigint;
678
+ gasPrice?: bigint;
679
+ maxFeePerGas?: bigint;
680
+ maxPriorityFeePerGas?: bigint;
681
+ nonce?: number;
682
+ value?: bigint;
683
+ }): Promise<`0x${string}`>;
684
+ /**
685
+ * initializeV2
686
+ * nonpayable
687
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
688
+ */
689
+ initializeV2(options?: {
690
+ accessList?: import('viem').AccessList;
691
+ authorizationList?: import('viem').AuthorizationList;
692
+ chain?: import('viem').Chain | null;
693
+ dataSuffix?: `0x${string}`;
694
+ gas?: bigint;
695
+ gasPrice?: bigint;
696
+ maxFeePerGas?: bigint;
697
+ maxPriorityFeePerGas?: bigint;
698
+ nonce?: number;
699
+ value?: bigint;
700
+ }): Promise<`0x${string}`>;
701
+ /**
702
+ * mint
703
+ * nonpayable
704
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
705
+ */
706
+ mint(to: `0x${string}`, amount: bigint, options?: {
707
+ accessList?: import('viem').AccessList;
708
+ authorizationList?: import('viem').AuthorizationList;
709
+ chain?: import('viem').Chain | null;
710
+ dataSuffix?: `0x${string}`;
711
+ gas?: bigint;
712
+ gasPrice?: bigint;
713
+ maxFeePerGas?: bigint;
714
+ maxPriorityFeePerGas?: bigint;
715
+ nonce?: number;
716
+ value?: bigint;
717
+ }): Promise<`0x${string}`>;
718
+ /**
719
+ * pause
720
+ * nonpayable
721
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
722
+ */
723
+ pause(options?: {
724
+ accessList?: import('viem').AccessList;
725
+ authorizationList?: import('viem').AuthorizationList;
726
+ chain?: import('viem').Chain | null;
727
+ dataSuffix?: `0x${string}`;
728
+ gas?: bigint;
729
+ gasPrice?: bigint;
730
+ maxFeePerGas?: bigint;
731
+ maxPriorityFeePerGas?: bigint;
732
+ nonce?: number;
733
+ value?: bigint;
734
+ }): Promise<`0x${string}`>;
735
+ /**
736
+ * setMetadata
737
+ * nonpayable
738
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
739
+ */
740
+ setMetadata(key: `0x${string}`, data: `0x${string}`, options?: {
741
+ accessList?: import('viem').AccessList;
742
+ authorizationList?: import('viem').AuthorizationList;
743
+ chain?: import('viem').Chain | null;
744
+ dataSuffix?: `0x${string}`;
745
+ gas?: bigint;
746
+ gasPrice?: bigint;
747
+ maxFeePerGas?: bigint;
748
+ maxPriorityFeePerGas?: bigint;
749
+ nonce?: number;
750
+ value?: bigint;
751
+ }): Promise<`0x${string}`>;
752
+ /**
753
+ * transfer
754
+ * nonpayable
755
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
756
+ */
757
+ transfer(to: `0x${string}`, amount: bigint, options?: {
758
+ accessList?: import('viem').AccessList;
759
+ authorizationList?: import('viem').AuthorizationList;
760
+ chain?: import('viem').Chain | null;
761
+ dataSuffix?: `0x${string}`;
762
+ gas?: bigint;
763
+ gasPrice?: bigint;
764
+ maxFeePerGas?: bigint;
765
+ maxPriorityFeePerGas?: bigint;
766
+ nonce?: number;
767
+ value?: bigint;
768
+ }): Promise<`0x${string}`>;
769
+ /**
770
+ * transferFrom
771
+ * nonpayable
772
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
773
+ */
774
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
775
+ accessList?: import('viem').AccessList;
776
+ authorizationList?: import('viem').AuthorizationList;
777
+ chain?: import('viem').Chain | null;
778
+ dataSuffix?: `0x${string}`;
779
+ gas?: bigint;
780
+ gasPrice?: bigint;
781
+ maxFeePerGas?: bigint;
782
+ maxPriorityFeePerGas?: bigint;
783
+ nonce?: number;
784
+ value?: bigint;
785
+ }): Promise<`0x${string}`>;
786
+ /**
787
+ * unpause
788
+ * nonpayable
789
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
790
+ */
791
+ unpause(options?: {
792
+ accessList?: import('viem').AccessList;
793
+ authorizationList?: import('viem').AuthorizationList;
794
+ chain?: import('viem').Chain | null;
795
+ dataSuffix?: `0x${string}`;
796
+ gas?: bigint;
797
+ gasPrice?: bigint;
798
+ maxFeePerGas?: bigint;
799
+ maxPriorityFeePerGas?: bigint;
800
+ nonce?: number;
801
+ value?: bigint;
802
+ }): Promise<`0x${string}`>;
803
+ /**
804
+ * Simulate contract write operations (dry-run without sending transaction)
805
+ *
806
+ * @example
807
+ * const result = await contract.simulate.transfer('0x...', 1000n);
808
+ * console.log('Gas estimate:', result.request.gas);
809
+ * console.log('Would succeed:', result.result);
810
+ */
811
+ get simulate(): {
812
+ /**
813
+ * Simulate approve
814
+ * Returns gas estimate and result without sending transaction
815
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
816
+ */
817
+ approve(spender: `0x${string}`, amount: bigint, options?: {
818
+ accessList?: import("viem").AccessList;
819
+ authorizationList?: import("viem").AuthorizationList;
820
+ chain?: import("viem").Chain | null;
821
+ dataSuffix?: `0x${string}`;
822
+ gas?: bigint;
823
+ gasPrice?: bigint;
824
+ maxFeePerGas?: bigint;
825
+ maxPriorityFeePerGas?: bigint;
826
+ nonce?: number;
827
+ value?: bigint;
828
+ }): Promise<boolean>;
829
+ /**
830
+ * Simulate burn
831
+ * Returns gas estimate and result without sending transaction
832
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
833
+ */
834
+ burn(from: `0x${string}`, amount: bigint, options?: {
835
+ accessList?: import("viem").AccessList;
836
+ authorizationList?: import("viem").AuthorizationList;
837
+ chain?: import("viem").Chain | null;
838
+ dataSuffix?: `0x${string}`;
839
+ gas?: bigint;
840
+ gasPrice?: bigint;
841
+ maxFeePerGas?: bigint;
842
+ maxPriorityFeePerGas?: bigint;
843
+ nonce?: number;
844
+ value?: bigint;
845
+ }): Promise<void>;
846
+ /**
847
+ * Simulate decreaseAllowance
848
+ * Returns gas estimate and result without sending transaction
849
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
850
+ */
851
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
852
+ accessList?: import("viem").AccessList;
853
+ authorizationList?: import("viem").AuthorizationList;
854
+ chain?: import("viem").Chain | null;
855
+ dataSuffix?: `0x${string}`;
856
+ gas?: bigint;
857
+ gasPrice?: bigint;
858
+ maxFeePerGas?: bigint;
859
+ maxPriorityFeePerGas?: bigint;
860
+ nonce?: number;
861
+ value?: bigint;
862
+ }): Promise<boolean>;
863
+ /**
864
+ * Simulate increaseAllowance
865
+ * Returns gas estimate and result without sending transaction
866
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
867
+ */
868
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
869
+ accessList?: import("viem").AccessList;
870
+ authorizationList?: import("viem").AuthorizationList;
871
+ chain?: import("viem").Chain | null;
872
+ dataSuffix?: `0x${string}`;
873
+ gas?: bigint;
874
+ gasPrice?: bigint;
875
+ maxFeePerGas?: bigint;
876
+ maxPriorityFeePerGas?: bigint;
877
+ nonce?: number;
878
+ value?: bigint;
879
+ }): Promise<boolean>;
880
+ /**
881
+ * Simulate initialize
882
+ * Returns gas estimate and result without sending transaction
883
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
884
+ */
885
+ initialize(_accessControl: `0x${string}`, options?: {
886
+ accessList?: import("viem").AccessList;
887
+ authorizationList?: import("viem").AuthorizationList;
888
+ chain?: import("viem").Chain | null;
889
+ dataSuffix?: `0x${string}`;
890
+ gas?: bigint;
891
+ gasPrice?: bigint;
892
+ maxFeePerGas?: bigint;
893
+ maxPriorityFeePerGas?: bigint;
894
+ nonce?: number;
895
+ value?: bigint;
896
+ }): Promise<void>;
897
+ /**
898
+ * Simulate initializeV2
899
+ * Returns gas estimate and result without sending transaction
900
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
901
+ */
902
+ initializeV2(options?: {
903
+ accessList?: import("viem").AccessList;
904
+ authorizationList?: import("viem").AuthorizationList;
905
+ chain?: import("viem").Chain | null;
906
+ dataSuffix?: `0x${string}`;
907
+ gas?: bigint;
908
+ gasPrice?: bigint;
909
+ maxFeePerGas?: bigint;
910
+ maxPriorityFeePerGas?: bigint;
911
+ nonce?: number;
912
+ value?: bigint;
913
+ }): Promise<void>;
914
+ /**
915
+ * Simulate mint
916
+ * Returns gas estimate and result without sending transaction
917
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
918
+ */
919
+ mint(to: `0x${string}`, amount: bigint, options?: {
920
+ accessList?: import("viem").AccessList;
921
+ authorizationList?: import("viem").AuthorizationList;
922
+ chain?: import("viem").Chain | null;
923
+ dataSuffix?: `0x${string}`;
924
+ gas?: bigint;
925
+ gasPrice?: bigint;
926
+ maxFeePerGas?: bigint;
927
+ maxPriorityFeePerGas?: bigint;
928
+ nonce?: number;
929
+ value?: bigint;
930
+ }): Promise<void>;
931
+ /**
932
+ * Simulate pause
933
+ * Returns gas estimate and result without sending transaction
934
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
935
+ */
936
+ pause(options?: {
937
+ accessList?: import("viem").AccessList;
938
+ authorizationList?: import("viem").AuthorizationList;
939
+ chain?: import("viem").Chain | null;
940
+ dataSuffix?: `0x${string}`;
941
+ gas?: bigint;
942
+ gasPrice?: bigint;
943
+ maxFeePerGas?: bigint;
944
+ maxPriorityFeePerGas?: bigint;
945
+ nonce?: number;
946
+ value?: bigint;
947
+ }): Promise<void>;
948
+ /**
949
+ * Simulate setMetadata
950
+ * Returns gas estimate and result without sending transaction
951
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
952
+ */
953
+ setMetadata(key: `0x${string}`, data: `0x${string}`, options?: {
954
+ accessList?: import("viem").AccessList;
955
+ authorizationList?: import("viem").AuthorizationList;
956
+ chain?: import("viem").Chain | null;
957
+ dataSuffix?: `0x${string}`;
958
+ gas?: bigint;
959
+ gasPrice?: bigint;
960
+ maxFeePerGas?: bigint;
961
+ maxPriorityFeePerGas?: bigint;
962
+ nonce?: number;
963
+ value?: bigint;
964
+ }): Promise<void>;
965
+ /**
966
+ * Simulate transfer
967
+ * Returns gas estimate and result without sending transaction
968
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
969
+ */
970
+ transfer(to: `0x${string}`, amount: bigint, options?: {
971
+ accessList?: import("viem").AccessList;
972
+ authorizationList?: import("viem").AuthorizationList;
973
+ chain?: import("viem").Chain | null;
974
+ dataSuffix?: `0x${string}`;
975
+ gas?: bigint;
976
+ gasPrice?: bigint;
977
+ maxFeePerGas?: bigint;
978
+ maxPriorityFeePerGas?: bigint;
979
+ nonce?: number;
980
+ value?: bigint;
981
+ }): Promise<boolean>;
982
+ /**
983
+ * Simulate transferFrom
984
+ * Returns gas estimate and result without sending transaction
985
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
986
+ */
987
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
988
+ accessList?: import("viem").AccessList;
989
+ authorizationList?: import("viem").AuthorizationList;
990
+ chain?: import("viem").Chain | null;
991
+ dataSuffix?: `0x${string}`;
992
+ gas?: bigint;
993
+ gasPrice?: bigint;
994
+ maxFeePerGas?: bigint;
995
+ maxPriorityFeePerGas?: bigint;
996
+ nonce?: number;
997
+ value?: bigint;
998
+ }): Promise<boolean>;
999
+ /**
1000
+ * Simulate unpause
1001
+ * Returns gas estimate and result without sending transaction
1002
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1003
+ */
1004
+ unpause(options?: {
1005
+ accessList?: import("viem").AccessList;
1006
+ authorizationList?: import("viem").AuthorizationList;
1007
+ chain?: import("viem").Chain | null;
1008
+ dataSuffix?: `0x${string}`;
1009
+ gas?: bigint;
1010
+ gasPrice?: bigint;
1011
+ maxFeePerGas?: bigint;
1012
+ maxPriorityFeePerGas?: bigint;
1013
+ nonce?: number;
1014
+ value?: bigint;
1015
+ }): Promise<void>;
1016
+ };
1017
+ /**
1018
+ * Watch contract events
1019
+ *
1020
+ * @example
1021
+ * // Watch all Transfer events
1022
+ * const unwatch = contract.watch.Transfer((event) => {
1023
+ * console.log('Transfer:', event);
1024
+ * });
1025
+ *
1026
+ * // Stop watching
1027
+ * unwatch();
1028
+ */
1029
+ get watch(): {
1030
+ /**
1031
+ * Watch Approval events
1032
+ * @param callback Function to call when event is emitted
1033
+ * @param filter Optional filter for indexed parameters
1034
+ * @returns Unwatch function to stop listening
1035
+ */
1036
+ Approval: (callback: (event: {
1037
+ owner: `0x${string}`;
1038
+ spender: `0x${string}`;
1039
+ value: bigint;
1040
+ }) => void, filter?: {
1041
+ owner?: `0x${string}` | `0x${string}`[] | null;
1042
+ spender?: `0x${string}` | `0x${string}`[] | null;
1043
+ }) => () => void;
1044
+ /**
1045
+ * Watch Initialized events
1046
+ * @param callback Function to call when event is emitted
1047
+ * @param filter Optional filter for indexed parameters
1048
+ * @returns Unwatch function to stop listening
1049
+ */
1050
+ Initialized: (callback: (event: {
1051
+ version: bigint;
1052
+ }) => void) => () => void;
1053
+ /**
1054
+ * Watch Paused events
1055
+ * @param callback Function to call when event is emitted
1056
+ * @param filter Optional filter for indexed parameters
1057
+ * @returns Unwatch function to stop listening
1058
+ */
1059
+ Paused: (callback: (event: {
1060
+ account: `0x${string}`;
1061
+ }) => void) => () => void;
1062
+ /**
1063
+ * Watch Transfer events
1064
+ * @param callback Function to call when event is emitted
1065
+ * @param filter Optional filter for indexed parameters
1066
+ * @returns Unwatch function to stop listening
1067
+ */
1068
+ Transfer: (callback: (event: {
1069
+ from: `0x${string}`;
1070
+ to: `0x${string}`;
1071
+ value: bigint;
1072
+ }) => void, filter?: {
1073
+ from?: `0x${string}` | `0x${string}`[] | null;
1074
+ to?: `0x${string}` | `0x${string}`[] | null;
1075
+ }) => () => void;
1076
+ /**
1077
+ * Watch Unpaused events
1078
+ * @param callback Function to call when event is emitted
1079
+ * @param filter Optional filter for indexed parameters
1080
+ * @returns Unwatch function to stop listening
1081
+ */
1082
+ Unpaused: (callback: (event: {
1083
+ account: `0x${string}`;
1084
+ }) => void) => () => void;
1085
+ };
1086
+ }