@gitmyabi/peak 1.0.1

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