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