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