@gitmyabi-stg/uqc 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,1246 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * UquidCoin ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const UquidCoinAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "uint256";
10
+ readonly name: "_initialSupply";
11
+ readonly type: "uint256";
12
+ }, {
13
+ readonly internalType: "string";
14
+ readonly name: "_name";
15
+ readonly type: "string";
16
+ }, {
17
+ readonly internalType: "string";
18
+ readonly name: "_symbol";
19
+ readonly type: "string";
20
+ }, {
21
+ readonly internalType: "uint256";
22
+ readonly name: "_decimals";
23
+ readonly type: "uint256";
24
+ }];
25
+ readonly stateMutability: "nonpayable";
26
+ readonly type: "constructor";
27
+ }, {
28
+ readonly anonymous: false;
29
+ readonly inputs: readonly [{
30
+ readonly indexed: false;
31
+ readonly internalType: "address";
32
+ readonly name: "_user";
33
+ readonly type: "address";
34
+ }];
35
+ readonly name: "AddedBlackList";
36
+ readonly type: "event";
37
+ }, {
38
+ readonly anonymous: false;
39
+ readonly inputs: readonly [{
40
+ readonly indexed: true;
41
+ readonly internalType: "address";
42
+ readonly name: "owner";
43
+ readonly type: "address";
44
+ }, {
45
+ readonly indexed: true;
46
+ readonly internalType: "address";
47
+ readonly name: "spender";
48
+ readonly type: "address";
49
+ }, {
50
+ readonly indexed: false;
51
+ readonly internalType: "uint256";
52
+ readonly name: "value";
53
+ readonly type: "uint256";
54
+ }];
55
+ readonly name: "Approval";
56
+ readonly type: "event";
57
+ }, {
58
+ readonly anonymous: false;
59
+ readonly inputs: readonly [{
60
+ readonly indexed: false;
61
+ readonly internalType: "address";
62
+ readonly name: "newAddress";
63
+ readonly type: "address";
64
+ }];
65
+ readonly name: "Deprecate";
66
+ readonly type: "event";
67
+ }, {
68
+ readonly anonymous: false;
69
+ readonly inputs: readonly [{
70
+ readonly indexed: false;
71
+ readonly internalType: "address";
72
+ readonly name: "_blackListedUser";
73
+ readonly type: "address";
74
+ }, {
75
+ readonly indexed: false;
76
+ readonly internalType: "uint256";
77
+ readonly name: "_balance";
78
+ readonly type: "uint256";
79
+ }];
80
+ readonly name: "DestroyedBlackFunds";
81
+ readonly type: "event";
82
+ }, {
83
+ readonly anonymous: false;
84
+ readonly inputs: readonly [{
85
+ readonly indexed: false;
86
+ readonly internalType: "uint256";
87
+ readonly name: "amount";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly name: "Issue";
91
+ readonly type: "event";
92
+ }, {
93
+ readonly anonymous: false;
94
+ readonly inputs: readonly [{
95
+ readonly indexed: false;
96
+ readonly internalType: "uint256";
97
+ readonly name: "feeBasisPoints";
98
+ readonly type: "uint256";
99
+ }, {
100
+ readonly indexed: false;
101
+ readonly internalType: "uint256";
102
+ readonly name: "maxFee";
103
+ readonly type: "uint256";
104
+ }];
105
+ readonly name: "Params";
106
+ readonly type: "event";
107
+ }, {
108
+ readonly anonymous: false;
109
+ readonly inputs: readonly [];
110
+ readonly name: "Pause";
111
+ readonly type: "event";
112
+ }, {
113
+ readonly anonymous: false;
114
+ readonly inputs: readonly [{
115
+ readonly indexed: false;
116
+ readonly internalType: "uint256";
117
+ readonly name: "amount";
118
+ readonly type: "uint256";
119
+ }];
120
+ readonly name: "Redeem";
121
+ readonly type: "event";
122
+ }, {
123
+ readonly anonymous: false;
124
+ readonly inputs: readonly [{
125
+ readonly indexed: false;
126
+ readonly internalType: "address";
127
+ readonly name: "_user";
128
+ readonly type: "address";
129
+ }];
130
+ readonly name: "RemovedBlackList";
131
+ readonly type: "event";
132
+ }, {
133
+ readonly anonymous: false;
134
+ readonly inputs: readonly [{
135
+ readonly indexed: true;
136
+ readonly internalType: "address";
137
+ readonly name: "from";
138
+ readonly type: "address";
139
+ }, {
140
+ readonly indexed: true;
141
+ readonly internalType: "address";
142
+ readonly name: "to";
143
+ readonly type: "address";
144
+ }, {
145
+ readonly indexed: false;
146
+ readonly internalType: "uint256";
147
+ readonly name: "value";
148
+ readonly type: "uint256";
149
+ }];
150
+ readonly name: "Transfer";
151
+ readonly type: "event";
152
+ }, {
153
+ readonly anonymous: false;
154
+ readonly inputs: readonly [];
155
+ readonly name: "Unpause";
156
+ readonly type: "event";
157
+ }, {
158
+ readonly inputs: readonly [];
159
+ readonly name: "MAX_UINT";
160
+ readonly outputs: readonly [{
161
+ readonly internalType: "uint256";
162
+ readonly name: "";
163
+ readonly type: "uint256";
164
+ }];
165
+ readonly stateMutability: "view";
166
+ readonly type: "function";
167
+ }, {
168
+ readonly inputs: readonly [];
169
+ readonly name: "_totalSupply";
170
+ readonly outputs: readonly [{
171
+ readonly internalType: "uint256";
172
+ readonly name: "";
173
+ readonly type: "uint256";
174
+ }];
175
+ readonly stateMutability: "view";
176
+ readonly type: "function";
177
+ }, {
178
+ readonly inputs: readonly [{
179
+ readonly internalType: "address";
180
+ readonly name: "_evilUser";
181
+ readonly type: "address";
182
+ }];
183
+ readonly name: "addBlackList";
184
+ readonly outputs: readonly [];
185
+ readonly stateMutability: "nonpayable";
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: "remaining";
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: "";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly internalType: "address";
212
+ readonly name: "";
213
+ readonly type: "address";
214
+ }];
215
+ readonly name: "allowed";
216
+ readonly outputs: readonly [{
217
+ readonly internalType: "uint256";
218
+ readonly name: "";
219
+ readonly type: "uint256";
220
+ }];
221
+ readonly stateMutability: "view";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [{
225
+ readonly internalType: "address";
226
+ readonly name: "_spender";
227
+ readonly type: "address";
228
+ }, {
229
+ readonly internalType: "uint256";
230
+ readonly name: "_value";
231
+ readonly type: "uint256";
232
+ }];
233
+ readonly name: "approve";
234
+ readonly outputs: readonly [];
235
+ readonly stateMutability: "nonpayable";
236
+ readonly type: "function";
237
+ }, {
238
+ readonly inputs: readonly [{
239
+ readonly internalType: "address";
240
+ readonly name: "who";
241
+ readonly type: "address";
242
+ }];
243
+ readonly name: "balanceOf";
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: "";
255
+ readonly type: "address";
256
+ }];
257
+ readonly name: "balances";
258
+ readonly outputs: readonly [{
259
+ readonly internalType: "uint256";
260
+ readonly name: "";
261
+ readonly type: "uint256";
262
+ }];
263
+ readonly stateMutability: "view";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly inputs: readonly [];
267
+ readonly name: "basisPointsRate";
268
+ readonly outputs: readonly [{
269
+ readonly internalType: "uint256";
270
+ readonly name: "";
271
+ readonly type: "uint256";
272
+ }];
273
+ readonly stateMutability: "view";
274
+ readonly type: "function";
275
+ }, {
276
+ readonly inputs: readonly [];
277
+ readonly name: "decimals";
278
+ readonly outputs: readonly [{
279
+ readonly internalType: "uint256";
280
+ readonly name: "";
281
+ readonly type: "uint256";
282
+ }];
283
+ readonly stateMutability: "view";
284
+ readonly type: "function";
285
+ }, {
286
+ readonly inputs: readonly [{
287
+ readonly internalType: "address";
288
+ readonly name: "_upgradedAddress";
289
+ readonly type: "address";
290
+ }];
291
+ readonly name: "deprecate";
292
+ readonly outputs: readonly [];
293
+ readonly stateMutability: "nonpayable";
294
+ readonly type: "function";
295
+ }, {
296
+ readonly inputs: readonly [];
297
+ readonly name: "deprecated";
298
+ readonly outputs: readonly [{
299
+ readonly internalType: "bool";
300
+ readonly name: "";
301
+ readonly type: "bool";
302
+ }];
303
+ readonly stateMutability: "view";
304
+ readonly type: "function";
305
+ }, {
306
+ readonly inputs: readonly [{
307
+ readonly internalType: "address";
308
+ readonly name: "_blackListedUser";
309
+ readonly type: "address";
310
+ }];
311
+ readonly name: "destroyBlackFunds";
312
+ readonly outputs: readonly [];
313
+ readonly stateMutability: "nonpayable";
314
+ readonly type: "function";
315
+ }, {
316
+ readonly inputs: readonly [{
317
+ readonly internalType: "address";
318
+ readonly name: "_maker";
319
+ readonly type: "address";
320
+ }];
321
+ readonly name: "getBlackListStatus";
322
+ readonly outputs: readonly [{
323
+ readonly internalType: "bool";
324
+ readonly name: "";
325
+ readonly type: "bool";
326
+ }];
327
+ readonly stateMutability: "view";
328
+ readonly type: "function";
329
+ }, {
330
+ readonly inputs: readonly [];
331
+ readonly name: "getOwner";
332
+ readonly outputs: readonly [{
333
+ readonly internalType: "address";
334
+ readonly name: "";
335
+ readonly type: "address";
336
+ }];
337
+ readonly stateMutability: "view";
338
+ readonly type: "function";
339
+ }, {
340
+ readonly inputs: readonly [{
341
+ readonly internalType: "address";
342
+ readonly name: "";
343
+ readonly type: "address";
344
+ }];
345
+ readonly name: "isBlackListed";
346
+ readonly outputs: readonly [{
347
+ readonly internalType: "bool";
348
+ readonly name: "";
349
+ readonly type: "bool";
350
+ }];
351
+ readonly stateMutability: "view";
352
+ readonly type: "function";
353
+ }, {
354
+ readonly inputs: readonly [{
355
+ readonly internalType: "uint256";
356
+ readonly name: "amount";
357
+ readonly type: "uint256";
358
+ }];
359
+ readonly name: "issue";
360
+ readonly outputs: readonly [];
361
+ readonly stateMutability: "nonpayable";
362
+ readonly type: "function";
363
+ }, {
364
+ readonly inputs: readonly [];
365
+ readonly name: "maximumFee";
366
+ readonly outputs: readonly [{
367
+ readonly internalType: "uint256";
368
+ readonly name: "";
369
+ readonly type: "uint256";
370
+ }];
371
+ readonly stateMutability: "view";
372
+ readonly type: "function";
373
+ }, {
374
+ readonly inputs: readonly [];
375
+ readonly name: "name";
376
+ readonly outputs: readonly [{
377
+ readonly internalType: "string";
378
+ readonly name: "";
379
+ readonly type: "string";
380
+ }];
381
+ readonly stateMutability: "view";
382
+ readonly type: "function";
383
+ }, {
384
+ readonly inputs: readonly [];
385
+ readonly name: "owner";
386
+ readonly outputs: readonly [{
387
+ readonly internalType: "address";
388
+ readonly name: "";
389
+ readonly type: "address";
390
+ }];
391
+ readonly stateMutability: "view";
392
+ readonly type: "function";
393
+ }, {
394
+ readonly inputs: readonly [];
395
+ readonly name: "pause";
396
+ readonly outputs: readonly [];
397
+ readonly stateMutability: "nonpayable";
398
+ readonly type: "function";
399
+ }, {
400
+ readonly inputs: readonly [];
401
+ readonly name: "paused";
402
+ readonly outputs: readonly [{
403
+ readonly internalType: "bool";
404
+ readonly name: "";
405
+ readonly type: "bool";
406
+ }];
407
+ readonly stateMutability: "view";
408
+ readonly type: "function";
409
+ }, {
410
+ readonly inputs: readonly [{
411
+ readonly internalType: "uint256";
412
+ readonly name: "amount";
413
+ readonly type: "uint256";
414
+ }];
415
+ readonly name: "redeem";
416
+ readonly outputs: readonly [];
417
+ readonly stateMutability: "nonpayable";
418
+ readonly type: "function";
419
+ }, {
420
+ readonly inputs: readonly [{
421
+ readonly internalType: "address";
422
+ readonly name: "_clearedUser";
423
+ readonly type: "address";
424
+ }];
425
+ readonly name: "removeBlackList";
426
+ readonly outputs: readonly [];
427
+ readonly stateMutability: "nonpayable";
428
+ readonly type: "function";
429
+ }, {
430
+ readonly inputs: readonly [{
431
+ readonly internalType: "uint256";
432
+ readonly name: "newBasisPoints";
433
+ readonly type: "uint256";
434
+ }, {
435
+ readonly internalType: "uint256";
436
+ readonly name: "newMaxFee";
437
+ readonly type: "uint256";
438
+ }];
439
+ readonly name: "setParams";
440
+ readonly outputs: readonly [];
441
+ readonly stateMutability: "nonpayable";
442
+ readonly type: "function";
443
+ }, {
444
+ readonly inputs: readonly [];
445
+ readonly name: "symbol";
446
+ readonly outputs: readonly [{
447
+ readonly internalType: "string";
448
+ readonly name: "";
449
+ readonly type: "string";
450
+ }];
451
+ readonly stateMutability: "view";
452
+ readonly type: "function";
453
+ }, {
454
+ readonly inputs: readonly [];
455
+ readonly name: "totalSupply";
456
+ readonly outputs: readonly [{
457
+ readonly internalType: "uint256";
458
+ readonly name: "";
459
+ readonly type: "uint256";
460
+ }];
461
+ readonly stateMutability: "view";
462
+ readonly type: "function";
463
+ }, {
464
+ readonly inputs: readonly [{
465
+ readonly internalType: "address";
466
+ readonly name: "_to";
467
+ readonly type: "address";
468
+ }, {
469
+ readonly internalType: "uint256";
470
+ readonly name: "_value";
471
+ readonly type: "uint256";
472
+ }];
473
+ readonly name: "transfer";
474
+ readonly outputs: readonly [];
475
+ readonly stateMutability: "nonpayable";
476
+ readonly type: "function";
477
+ }, {
478
+ readonly inputs: readonly [{
479
+ readonly internalType: "address";
480
+ readonly name: "_from";
481
+ readonly type: "address";
482
+ }, {
483
+ readonly internalType: "address";
484
+ readonly name: "_to";
485
+ readonly type: "address";
486
+ }, {
487
+ readonly internalType: "uint256";
488
+ readonly name: "_value";
489
+ readonly type: "uint256";
490
+ }];
491
+ readonly name: "transferFrom";
492
+ readonly outputs: readonly [];
493
+ readonly stateMutability: "nonpayable";
494
+ readonly type: "function";
495
+ }, {
496
+ readonly inputs: readonly [{
497
+ readonly internalType: "address";
498
+ readonly name: "newOwner";
499
+ readonly type: "address";
500
+ }];
501
+ readonly name: "transferOwnership";
502
+ readonly outputs: readonly [];
503
+ readonly stateMutability: "nonpayable";
504
+ readonly type: "function";
505
+ }, {
506
+ readonly inputs: readonly [];
507
+ readonly name: "unpause";
508
+ readonly outputs: readonly [];
509
+ readonly stateMutability: "nonpayable";
510
+ readonly type: "function";
511
+ }, {
512
+ readonly inputs: readonly [];
513
+ readonly name: "upgradedAddress";
514
+ readonly outputs: readonly [{
515
+ readonly internalType: "address";
516
+ readonly name: "";
517
+ readonly type: "address";
518
+ }];
519
+ readonly stateMutability: "view";
520
+ readonly type: "function";
521
+ }];
522
+ /**
523
+ * Type-safe ABI for UquidCoin
524
+ */
525
+ export type UquidCoinAbi = typeof UquidCoinAbi;
526
+ /**
527
+ * Contract instance type for UquidCoin
528
+ */
529
+ export type UquidCoinContract = any;
530
+ /**
531
+ * UquidCoin Contract Class
532
+ *
533
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
534
+ *
535
+ * @example
536
+ * ```typescript
537
+ * import { createPublicClient, createWalletClient, http } from 'viem';
538
+ * import { mainnet } from 'viem/chains';
539
+ * import { UquidCoin } from 'UquidCoin';
540
+ *
541
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
542
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
543
+ *
544
+ * const contract = new UquidCoin('0x...', { publicClient, walletClient });
545
+ *
546
+ * // Read functions
547
+ * const result = await contract.balanceOf('0x...');
548
+ *
549
+ * // Write functions
550
+ * const hash = await contract.transfer('0x...', 1000n);
551
+ *
552
+ * // Simulate transactions (dry-run)
553
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
554
+ * console.log('Gas estimate:', simulation.request.gas);
555
+ *
556
+ * // Watch events
557
+ * const unwatch = contract.watch.Transfer((event) => {
558
+ * console.log('Transfer event:', event);
559
+ * });
560
+ * ```
561
+ */
562
+ export declare class UquidCoin {
563
+ private contract;
564
+ private contractAddress;
565
+ private publicClient;
566
+ constructor(address: Address, clients: {
567
+ publicClient: PublicClient;
568
+ walletClient?: WalletClient;
569
+ });
570
+ /**
571
+ * Get the contract address
572
+ */
573
+ get address(): Address;
574
+ /**
575
+ * Get the underlying viem contract instance.
576
+ */
577
+ getContract(): UquidCoinContract;
578
+ /**
579
+ * MAX_UINT
580
+ * view
581
+ */
582
+ MAX_UINT(): Promise<bigint>;
583
+ /**
584
+ * _totalSupply
585
+ * view
586
+ */
587
+ _totalSupply(): Promise<bigint>;
588
+ /**
589
+ * allowance
590
+ * view
591
+ */
592
+ allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
593
+ /**
594
+ * allowed
595
+ * view
596
+ */
597
+ allowed(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
598
+ /**
599
+ * balanceOf
600
+ * view
601
+ */
602
+ balanceOf(who: `0x${string}`): Promise<bigint>;
603
+ /**
604
+ * balances
605
+ * view
606
+ */
607
+ balances(arg0: `0x${string}`): Promise<bigint>;
608
+ /**
609
+ * basisPointsRate
610
+ * view
611
+ */
612
+ basisPointsRate(): Promise<bigint>;
613
+ /**
614
+ * decimals
615
+ * view
616
+ */
617
+ decimals(): Promise<bigint>;
618
+ /**
619
+ * deprecated
620
+ * view
621
+ */
622
+ deprecated(): Promise<boolean>;
623
+ /**
624
+ * getBlackListStatus
625
+ * view
626
+ */
627
+ getBlackListStatus(_maker: `0x${string}`): Promise<boolean>;
628
+ /**
629
+ * getOwner
630
+ * view
631
+ */
632
+ getOwner(): Promise<`0x${string}`>;
633
+ /**
634
+ * isBlackListed
635
+ * view
636
+ */
637
+ isBlackListed(arg0: `0x${string}`): Promise<boolean>;
638
+ /**
639
+ * maximumFee
640
+ * view
641
+ */
642
+ maximumFee(): Promise<bigint>;
643
+ /**
644
+ * name
645
+ * view
646
+ */
647
+ name(): Promise<string>;
648
+ /**
649
+ * owner
650
+ * view
651
+ */
652
+ owner(): Promise<`0x${string}`>;
653
+ /**
654
+ * paused
655
+ * view
656
+ */
657
+ paused(): Promise<boolean>;
658
+ /**
659
+ * symbol
660
+ * view
661
+ */
662
+ symbol(): Promise<string>;
663
+ /**
664
+ * totalSupply
665
+ * view
666
+ */
667
+ totalSupply(): Promise<bigint>;
668
+ /**
669
+ * upgradedAddress
670
+ * view
671
+ */
672
+ upgradedAddress(): Promise<`0x${string}`>;
673
+ /**
674
+ * addBlackList
675
+ * nonpayable
676
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
677
+ */
678
+ addBlackList(_evilUser: `0x${string}`, 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<`0x${string}`>;
690
+ /**
691
+ * approve
692
+ * nonpayable
693
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
694
+ */
695
+ approve(_spender: `0x${string}`, _value: 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<`0x${string}`>;
707
+ /**
708
+ * deprecate
709
+ * nonpayable
710
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
711
+ */
712
+ deprecate(_upgradedAddress: `0x${string}`, 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<`0x${string}`>;
724
+ /**
725
+ * destroyBlackFunds
726
+ * nonpayable
727
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
728
+ */
729
+ destroyBlackFunds(_blackListedUser: `0x${string}`, 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<`0x${string}`>;
741
+ /**
742
+ * issue
743
+ * nonpayable
744
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
745
+ */
746
+ issue(amount: bigint, 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<`0x${string}`>;
758
+ /**
759
+ * pause
760
+ * nonpayable
761
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
762
+ */
763
+ pause(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<`0x${string}`>;
775
+ /**
776
+ * redeem
777
+ * nonpayable
778
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
779
+ */
780
+ redeem(amount: bigint, options?: {
781
+ accessList?: import('viem').AccessList;
782
+ authorizationList?: import('viem').AuthorizationList;
783
+ chain?: import('viem').Chain | null;
784
+ dataSuffix?: `0x${string}`;
785
+ gas?: bigint;
786
+ gasPrice?: bigint;
787
+ maxFeePerGas?: bigint;
788
+ maxPriorityFeePerGas?: bigint;
789
+ nonce?: number;
790
+ value?: bigint;
791
+ }): Promise<`0x${string}`>;
792
+ /**
793
+ * removeBlackList
794
+ * nonpayable
795
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
796
+ */
797
+ removeBlackList(_clearedUser: `0x${string}`, options?: {
798
+ accessList?: import('viem').AccessList;
799
+ authorizationList?: import('viem').AuthorizationList;
800
+ chain?: import('viem').Chain | null;
801
+ dataSuffix?: `0x${string}`;
802
+ gas?: bigint;
803
+ gasPrice?: bigint;
804
+ maxFeePerGas?: bigint;
805
+ maxPriorityFeePerGas?: bigint;
806
+ nonce?: number;
807
+ value?: bigint;
808
+ }): Promise<`0x${string}`>;
809
+ /**
810
+ * setParams
811
+ * nonpayable
812
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
813
+ */
814
+ setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
815
+ accessList?: import('viem').AccessList;
816
+ authorizationList?: import('viem').AuthorizationList;
817
+ chain?: import('viem').Chain | null;
818
+ dataSuffix?: `0x${string}`;
819
+ gas?: bigint;
820
+ gasPrice?: bigint;
821
+ maxFeePerGas?: bigint;
822
+ maxPriorityFeePerGas?: bigint;
823
+ nonce?: number;
824
+ value?: bigint;
825
+ }): Promise<`0x${string}`>;
826
+ /**
827
+ * transfer
828
+ * nonpayable
829
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
830
+ */
831
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
832
+ accessList?: import('viem').AccessList;
833
+ authorizationList?: import('viem').AuthorizationList;
834
+ chain?: import('viem').Chain | null;
835
+ dataSuffix?: `0x${string}`;
836
+ gas?: bigint;
837
+ gasPrice?: bigint;
838
+ maxFeePerGas?: bigint;
839
+ maxPriorityFeePerGas?: bigint;
840
+ nonce?: number;
841
+ value?: bigint;
842
+ }): Promise<`0x${string}`>;
843
+ /**
844
+ * transferFrom
845
+ * nonpayable
846
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
847
+ */
848
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
849
+ accessList?: import('viem').AccessList;
850
+ authorizationList?: import('viem').AuthorizationList;
851
+ chain?: import('viem').Chain | null;
852
+ dataSuffix?: `0x${string}`;
853
+ gas?: bigint;
854
+ gasPrice?: bigint;
855
+ maxFeePerGas?: bigint;
856
+ maxPriorityFeePerGas?: bigint;
857
+ nonce?: number;
858
+ value?: bigint;
859
+ }): Promise<`0x${string}`>;
860
+ /**
861
+ * transferOwnership
862
+ * nonpayable
863
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
864
+ */
865
+ transferOwnership(newOwner: `0x${string}`, options?: {
866
+ accessList?: import('viem').AccessList;
867
+ authorizationList?: import('viem').AuthorizationList;
868
+ chain?: import('viem').Chain | null;
869
+ dataSuffix?: `0x${string}`;
870
+ gas?: bigint;
871
+ gasPrice?: bigint;
872
+ maxFeePerGas?: bigint;
873
+ maxPriorityFeePerGas?: bigint;
874
+ nonce?: number;
875
+ value?: bigint;
876
+ }): Promise<`0x${string}`>;
877
+ /**
878
+ * unpause
879
+ * nonpayable
880
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
881
+ */
882
+ unpause(options?: {
883
+ accessList?: import('viem').AccessList;
884
+ authorizationList?: import('viem').AuthorizationList;
885
+ chain?: import('viem').Chain | null;
886
+ dataSuffix?: `0x${string}`;
887
+ gas?: bigint;
888
+ gasPrice?: bigint;
889
+ maxFeePerGas?: bigint;
890
+ maxPriorityFeePerGas?: bigint;
891
+ nonce?: number;
892
+ value?: bigint;
893
+ }): Promise<`0x${string}`>;
894
+ /**
895
+ * Simulate contract write operations (dry-run without sending transaction)
896
+ *
897
+ * @example
898
+ * const result = await contract.simulate.transfer('0x...', 1000n);
899
+ * console.log('Gas estimate:', result.request.gas);
900
+ * console.log('Would succeed:', result.result);
901
+ */
902
+ get simulate(): {
903
+ /**
904
+ * Simulate addBlackList
905
+ * Returns gas estimate and result without sending transaction
906
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
907
+ */
908
+ addBlackList(_evilUser: `0x${string}`, options?: {
909
+ accessList?: import("viem").AccessList;
910
+ authorizationList?: import("viem").AuthorizationList;
911
+ chain?: import("viem").Chain | null;
912
+ dataSuffix?: `0x${string}`;
913
+ gas?: bigint;
914
+ gasPrice?: bigint;
915
+ maxFeePerGas?: bigint;
916
+ maxPriorityFeePerGas?: bigint;
917
+ nonce?: number;
918
+ value?: bigint;
919
+ }): Promise<void>;
920
+ /**
921
+ * Simulate approve
922
+ * Returns gas estimate and result without sending transaction
923
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
924
+ */
925
+ approve(_spender: `0x${string}`, _value: bigint, options?: {
926
+ accessList?: import("viem").AccessList;
927
+ authorizationList?: import("viem").AuthorizationList;
928
+ chain?: import("viem").Chain | null;
929
+ dataSuffix?: `0x${string}`;
930
+ gas?: bigint;
931
+ gasPrice?: bigint;
932
+ maxFeePerGas?: bigint;
933
+ maxPriorityFeePerGas?: bigint;
934
+ nonce?: number;
935
+ value?: bigint;
936
+ }): Promise<void>;
937
+ /**
938
+ * Simulate deprecate
939
+ * Returns gas estimate and result without sending transaction
940
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
941
+ */
942
+ deprecate(_upgradedAddress: `0x${string}`, options?: {
943
+ accessList?: import("viem").AccessList;
944
+ authorizationList?: import("viem").AuthorizationList;
945
+ chain?: import("viem").Chain | null;
946
+ dataSuffix?: `0x${string}`;
947
+ gas?: bigint;
948
+ gasPrice?: bigint;
949
+ maxFeePerGas?: bigint;
950
+ maxPriorityFeePerGas?: bigint;
951
+ nonce?: number;
952
+ value?: bigint;
953
+ }): Promise<void>;
954
+ /**
955
+ * Simulate destroyBlackFunds
956
+ * Returns gas estimate and result without sending transaction
957
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
958
+ */
959
+ destroyBlackFunds(_blackListedUser: `0x${string}`, options?: {
960
+ accessList?: import("viem").AccessList;
961
+ authorizationList?: import("viem").AuthorizationList;
962
+ chain?: import("viem").Chain | null;
963
+ dataSuffix?: `0x${string}`;
964
+ gas?: bigint;
965
+ gasPrice?: bigint;
966
+ maxFeePerGas?: bigint;
967
+ maxPriorityFeePerGas?: bigint;
968
+ nonce?: number;
969
+ value?: bigint;
970
+ }): Promise<void>;
971
+ /**
972
+ * Simulate issue
973
+ * Returns gas estimate and result without sending transaction
974
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
975
+ */
976
+ issue(amount: bigint, options?: {
977
+ accessList?: import("viem").AccessList;
978
+ authorizationList?: import("viem").AuthorizationList;
979
+ chain?: import("viem").Chain | null;
980
+ dataSuffix?: `0x${string}`;
981
+ gas?: bigint;
982
+ gasPrice?: bigint;
983
+ maxFeePerGas?: bigint;
984
+ maxPriorityFeePerGas?: bigint;
985
+ nonce?: number;
986
+ value?: bigint;
987
+ }): Promise<void>;
988
+ /**
989
+ * Simulate pause
990
+ * Returns gas estimate and result without sending transaction
991
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
992
+ */
993
+ pause(options?: {
994
+ accessList?: import("viem").AccessList;
995
+ authorizationList?: import("viem").AuthorizationList;
996
+ chain?: import("viem").Chain | null;
997
+ dataSuffix?: `0x${string}`;
998
+ gas?: bigint;
999
+ gasPrice?: bigint;
1000
+ maxFeePerGas?: bigint;
1001
+ maxPriorityFeePerGas?: bigint;
1002
+ nonce?: number;
1003
+ value?: bigint;
1004
+ }): Promise<void>;
1005
+ /**
1006
+ * Simulate redeem
1007
+ * Returns gas estimate and result without sending transaction
1008
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1009
+ */
1010
+ redeem(amount: bigint, options?: {
1011
+ accessList?: import("viem").AccessList;
1012
+ authorizationList?: import("viem").AuthorizationList;
1013
+ chain?: import("viem").Chain | null;
1014
+ dataSuffix?: `0x${string}`;
1015
+ gas?: bigint;
1016
+ gasPrice?: bigint;
1017
+ maxFeePerGas?: bigint;
1018
+ maxPriorityFeePerGas?: bigint;
1019
+ nonce?: number;
1020
+ value?: bigint;
1021
+ }): Promise<void>;
1022
+ /**
1023
+ * Simulate removeBlackList
1024
+ * Returns gas estimate and result without sending transaction
1025
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1026
+ */
1027
+ removeBlackList(_clearedUser: `0x${string}`, options?: {
1028
+ accessList?: import("viem").AccessList;
1029
+ authorizationList?: import("viem").AuthorizationList;
1030
+ chain?: import("viem").Chain | null;
1031
+ dataSuffix?: `0x${string}`;
1032
+ gas?: bigint;
1033
+ gasPrice?: bigint;
1034
+ maxFeePerGas?: bigint;
1035
+ maxPriorityFeePerGas?: bigint;
1036
+ nonce?: number;
1037
+ value?: bigint;
1038
+ }): Promise<void>;
1039
+ /**
1040
+ * Simulate setParams
1041
+ * Returns gas estimate and result without sending transaction
1042
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1043
+ */
1044
+ setParams(newBasisPoints: bigint, newMaxFee: bigint, options?: {
1045
+ accessList?: import("viem").AccessList;
1046
+ authorizationList?: import("viem").AuthorizationList;
1047
+ chain?: import("viem").Chain | null;
1048
+ dataSuffix?: `0x${string}`;
1049
+ gas?: bigint;
1050
+ gasPrice?: bigint;
1051
+ maxFeePerGas?: bigint;
1052
+ maxPriorityFeePerGas?: bigint;
1053
+ nonce?: number;
1054
+ value?: bigint;
1055
+ }): Promise<void>;
1056
+ /**
1057
+ * Simulate transfer
1058
+ * Returns gas estimate and result without sending transaction
1059
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1060
+ */
1061
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
1062
+ accessList?: import("viem").AccessList;
1063
+ authorizationList?: import("viem").AuthorizationList;
1064
+ chain?: import("viem").Chain | null;
1065
+ dataSuffix?: `0x${string}`;
1066
+ gas?: bigint;
1067
+ gasPrice?: bigint;
1068
+ maxFeePerGas?: bigint;
1069
+ maxPriorityFeePerGas?: bigint;
1070
+ nonce?: number;
1071
+ value?: bigint;
1072
+ }): Promise<void>;
1073
+ /**
1074
+ * Simulate transferFrom
1075
+ * Returns gas estimate and result without sending transaction
1076
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1077
+ */
1078
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
1079
+ accessList?: import("viem").AccessList;
1080
+ authorizationList?: import("viem").AuthorizationList;
1081
+ chain?: import("viem").Chain | null;
1082
+ dataSuffix?: `0x${string}`;
1083
+ gas?: bigint;
1084
+ gasPrice?: bigint;
1085
+ maxFeePerGas?: bigint;
1086
+ maxPriorityFeePerGas?: bigint;
1087
+ nonce?: number;
1088
+ value?: bigint;
1089
+ }): Promise<void>;
1090
+ /**
1091
+ * Simulate transferOwnership
1092
+ * Returns gas estimate and result without sending transaction
1093
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1094
+ */
1095
+ transferOwnership(newOwner: `0x${string}`, options?: {
1096
+ accessList?: import("viem").AccessList;
1097
+ authorizationList?: import("viem").AuthorizationList;
1098
+ chain?: import("viem").Chain | null;
1099
+ dataSuffix?: `0x${string}`;
1100
+ gas?: bigint;
1101
+ gasPrice?: bigint;
1102
+ maxFeePerGas?: bigint;
1103
+ maxPriorityFeePerGas?: bigint;
1104
+ nonce?: number;
1105
+ value?: bigint;
1106
+ }): Promise<void>;
1107
+ /**
1108
+ * Simulate unpause
1109
+ * Returns gas estimate and result without sending transaction
1110
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1111
+ */
1112
+ unpause(options?: {
1113
+ accessList?: import("viem").AccessList;
1114
+ authorizationList?: import("viem").AuthorizationList;
1115
+ chain?: import("viem").Chain | null;
1116
+ dataSuffix?: `0x${string}`;
1117
+ gas?: bigint;
1118
+ gasPrice?: bigint;
1119
+ maxFeePerGas?: bigint;
1120
+ maxPriorityFeePerGas?: bigint;
1121
+ nonce?: number;
1122
+ value?: bigint;
1123
+ }): Promise<void>;
1124
+ };
1125
+ /**
1126
+ * Watch contract events
1127
+ *
1128
+ * @example
1129
+ * // Watch all Transfer events
1130
+ * const unwatch = contract.watch.Transfer((event) => {
1131
+ * console.log('Transfer:', event);
1132
+ * });
1133
+ *
1134
+ * // Stop watching
1135
+ * unwatch();
1136
+ */
1137
+ get watch(): {
1138
+ /**
1139
+ * Watch AddedBlackList events
1140
+ * @param callback Function to call when event is emitted
1141
+ * @param filter Optional filter for indexed parameters
1142
+ * @returns Unwatch function to stop listening
1143
+ */
1144
+ AddedBlackList: (callback: (event: {
1145
+ _user: `0x${string}`;
1146
+ }) => void) => () => void;
1147
+ /**
1148
+ * Watch Approval events
1149
+ * @param callback Function to call when event is emitted
1150
+ * @param filter Optional filter for indexed parameters
1151
+ * @returns Unwatch function to stop listening
1152
+ */
1153
+ Approval: (callback: (event: {
1154
+ owner: `0x${string}`;
1155
+ spender: `0x${string}`;
1156
+ value: bigint;
1157
+ }) => void, filter?: {
1158
+ owner?: `0x${string}` | `0x${string}`[] | null;
1159
+ spender?: `0x${string}` | `0x${string}`[] | null;
1160
+ }) => () => void;
1161
+ /**
1162
+ * Watch Deprecate events
1163
+ * @param callback Function to call when event is emitted
1164
+ * @param filter Optional filter for indexed parameters
1165
+ * @returns Unwatch function to stop listening
1166
+ */
1167
+ Deprecate: (callback: (event: {
1168
+ newAddress: `0x${string}`;
1169
+ }) => void) => () => void;
1170
+ /**
1171
+ * Watch DestroyedBlackFunds events
1172
+ * @param callback Function to call when event is emitted
1173
+ * @param filter Optional filter for indexed parameters
1174
+ * @returns Unwatch function to stop listening
1175
+ */
1176
+ DestroyedBlackFunds: (callback: (event: {
1177
+ _blackListedUser: `0x${string}`;
1178
+ _balance: bigint;
1179
+ }) => void) => () => void;
1180
+ /**
1181
+ * Watch Issue events
1182
+ * @param callback Function to call when event is emitted
1183
+ * @param filter Optional filter for indexed parameters
1184
+ * @returns Unwatch function to stop listening
1185
+ */
1186
+ Issue: (callback: (event: {
1187
+ amount: bigint;
1188
+ }) => void) => () => void;
1189
+ /**
1190
+ * Watch Params events
1191
+ * @param callback Function to call when event is emitted
1192
+ * @param filter Optional filter for indexed parameters
1193
+ * @returns Unwatch function to stop listening
1194
+ */
1195
+ Params: (callback: (event: {
1196
+ feeBasisPoints: bigint;
1197
+ maxFee: bigint;
1198
+ }) => void) => () => void;
1199
+ /**
1200
+ * Watch Pause events
1201
+ * @param callback Function to call when event is emitted
1202
+ * @param filter Optional filter for indexed parameters
1203
+ * @returns Unwatch function to stop listening
1204
+ */
1205
+ Pause: (callback: (event: {}) => void) => () => void;
1206
+ /**
1207
+ * Watch Redeem events
1208
+ * @param callback Function to call when event is emitted
1209
+ * @param filter Optional filter for indexed parameters
1210
+ * @returns Unwatch function to stop listening
1211
+ */
1212
+ Redeem: (callback: (event: {
1213
+ amount: bigint;
1214
+ }) => void) => () => void;
1215
+ /**
1216
+ * Watch RemovedBlackList events
1217
+ * @param callback Function to call when event is emitted
1218
+ * @param filter Optional filter for indexed parameters
1219
+ * @returns Unwatch function to stop listening
1220
+ */
1221
+ RemovedBlackList: (callback: (event: {
1222
+ _user: `0x${string}`;
1223
+ }) => void) => () => void;
1224
+ /**
1225
+ * Watch Transfer events
1226
+ * @param callback Function to call when event is emitted
1227
+ * @param filter Optional filter for indexed parameters
1228
+ * @returns Unwatch function to stop listening
1229
+ */
1230
+ Transfer: (callback: (event: {
1231
+ from: `0x${string}`;
1232
+ to: `0x${string}`;
1233
+ value: bigint;
1234
+ }) => void, filter?: {
1235
+ from?: `0x${string}` | `0x${string}`[] | null;
1236
+ to?: `0x${string}` | `0x${string}`[] | null;
1237
+ }) => () => void;
1238
+ /**
1239
+ * Watch Unpause events
1240
+ * @param callback Function to call when event is emitted
1241
+ * @param filter Optional filter for indexed parameters
1242
+ * @returns Unwatch function to stop listening
1243
+ */
1244
+ Unpause: (callback: (event: {}) => void) => () => void;
1245
+ };
1246
+ }