@gitmyabi/cas 0.0.0-stage → 1.0.0

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