@gitmyabi/aix 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,983 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * AIX ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const AIXAbi: 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: "_amount";
25
+ readonly type: "uint256";
26
+ }];
27
+ readonly name: "approve";
28
+ readonly outputs: readonly [{
29
+ readonly name: "success";
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: "creationBlock";
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: true;
48
+ readonly inputs: readonly [];
49
+ readonly name: "totalSupply";
50
+ readonly outputs: readonly [{
51
+ readonly name: "";
52
+ readonly type: "uint256";
53
+ }];
54
+ readonly payable: false;
55
+ readonly stateMutability: "view";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly constant: false;
59
+ readonly inputs: readonly [{
60
+ readonly name: "_from";
61
+ readonly type: "address";
62
+ }, {
63
+ readonly name: "_to";
64
+ readonly type: "address";
65
+ }, {
66
+ readonly name: "_amount";
67
+ readonly type: "uint256";
68
+ }];
69
+ readonly name: "transferFrom";
70
+ readonly outputs: readonly [{
71
+ readonly name: "success";
72
+ readonly type: "bool";
73
+ }];
74
+ readonly payable: false;
75
+ readonly stateMutability: "nonpayable";
76
+ readonly type: "function";
77
+ }, {
78
+ readonly constant: true;
79
+ readonly inputs: readonly [];
80
+ readonly name: "decimals";
81
+ readonly outputs: readonly [{
82
+ readonly name: "";
83
+ readonly type: "uint8";
84
+ }];
85
+ readonly payable: false;
86
+ readonly stateMutability: "view";
87
+ readonly type: "function";
88
+ }, {
89
+ readonly constant: false;
90
+ readonly inputs: readonly [{
91
+ readonly name: "_newController";
92
+ readonly type: "address";
93
+ }];
94
+ readonly name: "changeController";
95
+ readonly outputs: readonly [];
96
+ readonly payable: false;
97
+ readonly stateMutability: "nonpayable";
98
+ readonly type: "function";
99
+ }, {
100
+ readonly constant: true;
101
+ readonly inputs: readonly [{
102
+ readonly name: "_owner";
103
+ readonly type: "address";
104
+ }, {
105
+ readonly name: "_blockNumber";
106
+ readonly type: "uint256";
107
+ }];
108
+ readonly name: "balanceOfAt";
109
+ readonly outputs: readonly [{
110
+ readonly name: "";
111
+ readonly type: "uint256";
112
+ }];
113
+ readonly payable: false;
114
+ readonly stateMutability: "view";
115
+ readonly type: "function";
116
+ }, {
117
+ readonly constant: true;
118
+ readonly inputs: readonly [];
119
+ readonly name: "version";
120
+ readonly outputs: readonly [{
121
+ readonly name: "";
122
+ readonly type: "string";
123
+ }];
124
+ readonly payable: false;
125
+ readonly stateMutability: "view";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly constant: false;
129
+ readonly inputs: readonly [{
130
+ readonly name: "_cloneTokenName";
131
+ readonly type: "string";
132
+ }, {
133
+ readonly name: "_cloneDecimalUnits";
134
+ readonly type: "uint8";
135
+ }, {
136
+ readonly name: "_cloneTokenSymbol";
137
+ readonly type: "string";
138
+ }, {
139
+ readonly name: "_snapshotBlock";
140
+ readonly type: "uint256";
141
+ }, {
142
+ readonly name: "_transfersEnabled";
143
+ readonly type: "bool";
144
+ }];
145
+ readonly name: "createCloneToken";
146
+ readonly outputs: readonly [{
147
+ readonly name: "";
148
+ readonly type: "address";
149
+ }];
150
+ readonly payable: false;
151
+ readonly stateMutability: "nonpayable";
152
+ readonly type: "function";
153
+ }, {
154
+ readonly constant: true;
155
+ readonly inputs: readonly [{
156
+ readonly name: "_owner";
157
+ readonly type: "address";
158
+ }];
159
+ readonly name: "balanceOf";
160
+ readonly outputs: readonly [{
161
+ readonly name: "balance";
162
+ readonly type: "uint256";
163
+ }];
164
+ readonly payable: false;
165
+ readonly stateMutability: "view";
166
+ readonly type: "function";
167
+ }, {
168
+ readonly constant: true;
169
+ readonly inputs: readonly [];
170
+ readonly name: "parentToken";
171
+ readonly outputs: readonly [{
172
+ readonly name: "";
173
+ readonly type: "address";
174
+ }];
175
+ readonly payable: false;
176
+ readonly stateMutability: "view";
177
+ readonly type: "function";
178
+ }, {
179
+ readonly constant: false;
180
+ readonly inputs: readonly [{
181
+ readonly name: "_owner";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly name: "_amount";
185
+ readonly type: "uint256";
186
+ }];
187
+ readonly name: "generateTokens";
188
+ readonly outputs: readonly [{
189
+ readonly name: "";
190
+ readonly type: "bool";
191
+ }];
192
+ readonly payable: false;
193
+ readonly stateMutability: "nonpayable";
194
+ readonly type: "function";
195
+ }, {
196
+ readonly constant: true;
197
+ readonly inputs: readonly [];
198
+ readonly name: "symbol";
199
+ readonly outputs: readonly [{
200
+ readonly name: "";
201
+ readonly type: "string";
202
+ }];
203
+ readonly payable: false;
204
+ readonly stateMutability: "view";
205
+ readonly type: "function";
206
+ }, {
207
+ readonly constant: true;
208
+ readonly inputs: readonly [{
209
+ readonly name: "_blockNumber";
210
+ readonly type: "uint256";
211
+ }];
212
+ readonly name: "totalSupplyAt";
213
+ readonly outputs: readonly [{
214
+ readonly name: "";
215
+ readonly type: "uint256";
216
+ }];
217
+ readonly payable: false;
218
+ readonly stateMutability: "view";
219
+ readonly type: "function";
220
+ }, {
221
+ readonly constant: false;
222
+ readonly inputs: readonly [{
223
+ readonly name: "_to";
224
+ readonly type: "address";
225
+ }, {
226
+ readonly name: "_amount";
227
+ readonly type: "uint256";
228
+ }];
229
+ readonly name: "transfer";
230
+ readonly outputs: readonly [{
231
+ readonly name: "success";
232
+ readonly type: "bool";
233
+ }];
234
+ readonly payable: false;
235
+ readonly stateMutability: "nonpayable";
236
+ readonly type: "function";
237
+ }, {
238
+ readonly constant: true;
239
+ readonly inputs: readonly [];
240
+ readonly name: "transfersEnabled";
241
+ readonly outputs: readonly [{
242
+ readonly name: "";
243
+ readonly type: "bool";
244
+ }];
245
+ readonly payable: false;
246
+ readonly stateMutability: "view";
247
+ readonly type: "function";
248
+ }, {
249
+ readonly constant: true;
250
+ readonly inputs: readonly [];
251
+ readonly name: "parentSnapShotBlock";
252
+ readonly outputs: readonly [{
253
+ readonly name: "";
254
+ readonly type: "uint256";
255
+ }];
256
+ readonly payable: false;
257
+ readonly stateMutability: "view";
258
+ readonly type: "function";
259
+ }, {
260
+ readonly constant: false;
261
+ readonly inputs: readonly [{
262
+ readonly name: "_spender";
263
+ readonly type: "address";
264
+ }, {
265
+ readonly name: "_amount";
266
+ readonly type: "uint256";
267
+ }, {
268
+ readonly name: "_extraData";
269
+ readonly type: "bytes";
270
+ }];
271
+ readonly name: "approveAndCall";
272
+ readonly outputs: readonly [{
273
+ readonly name: "success";
274
+ readonly type: "bool";
275
+ }];
276
+ readonly payable: false;
277
+ readonly stateMutability: "nonpayable";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly constant: false;
281
+ readonly inputs: readonly [{
282
+ readonly name: "_owner";
283
+ readonly type: "address";
284
+ }, {
285
+ readonly name: "_amount";
286
+ readonly type: "uint256";
287
+ }];
288
+ readonly name: "destroyTokens";
289
+ readonly outputs: readonly [{
290
+ readonly name: "";
291
+ readonly type: "bool";
292
+ }];
293
+ readonly payable: false;
294
+ readonly stateMutability: "nonpayable";
295
+ readonly type: "function";
296
+ }, {
297
+ readonly constant: true;
298
+ readonly inputs: readonly [{
299
+ readonly name: "_owner";
300
+ readonly type: "address";
301
+ }, {
302
+ readonly name: "_spender";
303
+ readonly type: "address";
304
+ }];
305
+ readonly name: "allowance";
306
+ readonly outputs: readonly [{
307
+ readonly name: "remaining";
308
+ readonly type: "uint256";
309
+ }];
310
+ readonly payable: false;
311
+ readonly stateMutability: "view";
312
+ readonly type: "function";
313
+ }, {
314
+ readonly constant: false;
315
+ readonly inputs: readonly [{
316
+ readonly name: "_token";
317
+ readonly type: "address";
318
+ }];
319
+ readonly name: "claimTokens";
320
+ readonly outputs: readonly [];
321
+ readonly payable: false;
322
+ readonly stateMutability: "nonpayable";
323
+ readonly type: "function";
324
+ }, {
325
+ readonly constant: true;
326
+ readonly inputs: readonly [];
327
+ readonly name: "tokenFactory";
328
+ readonly outputs: readonly [{
329
+ readonly name: "";
330
+ readonly type: "address";
331
+ }];
332
+ readonly payable: false;
333
+ readonly stateMutability: "view";
334
+ readonly type: "function";
335
+ }, {
336
+ readonly constant: false;
337
+ readonly inputs: readonly [{
338
+ readonly name: "_transfersEnabled";
339
+ readonly type: "bool";
340
+ }];
341
+ readonly name: "enableTransfers";
342
+ readonly outputs: readonly [];
343
+ readonly payable: false;
344
+ readonly stateMutability: "nonpayable";
345
+ readonly type: "function";
346
+ }, {
347
+ readonly constant: true;
348
+ readonly inputs: readonly [];
349
+ readonly name: "controller";
350
+ readonly outputs: readonly [{
351
+ readonly name: "";
352
+ readonly type: "address";
353
+ }];
354
+ readonly payable: false;
355
+ readonly stateMutability: "view";
356
+ readonly type: "function";
357
+ }, {
358
+ readonly inputs: readonly [{
359
+ readonly name: "_tokenFactory";
360
+ readonly type: "address";
361
+ }];
362
+ readonly payable: false;
363
+ readonly stateMutability: "nonpayable";
364
+ readonly type: "constructor";
365
+ }, {
366
+ readonly payable: true;
367
+ readonly stateMutability: "payable";
368
+ readonly type: "fallback";
369
+ }, {
370
+ readonly anonymous: false;
371
+ readonly inputs: readonly [{
372
+ readonly indexed: true;
373
+ readonly name: "_token";
374
+ readonly type: "address";
375
+ }, {
376
+ readonly indexed: true;
377
+ readonly name: "_controller";
378
+ readonly type: "address";
379
+ }, {
380
+ readonly indexed: false;
381
+ readonly name: "_amount";
382
+ readonly type: "uint256";
383
+ }];
384
+ readonly name: "ClaimedTokens";
385
+ readonly type: "event";
386
+ }, {
387
+ readonly anonymous: false;
388
+ readonly inputs: readonly [{
389
+ readonly indexed: true;
390
+ readonly name: "_from";
391
+ readonly type: "address";
392
+ }, {
393
+ readonly indexed: true;
394
+ readonly name: "_to";
395
+ readonly type: "address";
396
+ }, {
397
+ readonly indexed: false;
398
+ readonly name: "_amount";
399
+ readonly type: "uint256";
400
+ }];
401
+ readonly name: "Transfer";
402
+ readonly type: "event";
403
+ }, {
404
+ readonly anonymous: false;
405
+ readonly inputs: readonly [{
406
+ readonly indexed: true;
407
+ readonly name: "_cloneToken";
408
+ readonly type: "address";
409
+ }, {
410
+ readonly indexed: false;
411
+ readonly name: "_snapshotBlock";
412
+ readonly type: "uint256";
413
+ }];
414
+ readonly name: "NewCloneToken";
415
+ readonly type: "event";
416
+ }, {
417
+ readonly anonymous: false;
418
+ readonly inputs: readonly [{
419
+ readonly indexed: true;
420
+ readonly name: "_owner";
421
+ readonly type: "address";
422
+ }, {
423
+ readonly indexed: true;
424
+ readonly name: "_spender";
425
+ readonly type: "address";
426
+ }, {
427
+ readonly indexed: false;
428
+ readonly name: "_amount";
429
+ readonly type: "uint256";
430
+ }];
431
+ readonly name: "Approval";
432
+ readonly type: "event";
433
+ }];
434
+ /**
435
+ * Type-safe ABI for AIX
436
+ */
437
+ export type AIXAbi = typeof AIXAbi;
438
+ /**
439
+ * Contract instance type for AIX
440
+ */
441
+ export type AIXContract = any;
442
+ /**
443
+ * AIX Contract Class
444
+ *
445
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
446
+ *
447
+ * @example
448
+ * ```typescript
449
+ * import { createPublicClient, createWalletClient, http } from 'viem';
450
+ * import { mainnet } from 'viem/chains';
451
+ * import { AIX } from 'AIX';
452
+ *
453
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
454
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
455
+ *
456
+ * const contract = new AIX('0x...', { publicClient, walletClient });
457
+ *
458
+ * // Read functions
459
+ * const result = await contract.balanceOf('0x...');
460
+ *
461
+ * // Write functions
462
+ * const hash = await contract.transfer('0x...', 1000n);
463
+ *
464
+ * // Simulate transactions (dry-run)
465
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
466
+ * console.log('Gas estimate:', simulation.request.gas);
467
+ *
468
+ * // Watch events
469
+ * const unwatch = contract.watch.Transfer((event) => {
470
+ * console.log('Transfer event:', event);
471
+ * });
472
+ * ```
473
+ */
474
+ export declare class AIX {
475
+ private contract;
476
+ private contractAddress;
477
+ private publicClient;
478
+ constructor(address: Address, clients: {
479
+ publicClient: PublicClient;
480
+ walletClient?: WalletClient;
481
+ });
482
+ /**
483
+ * Get the contract address
484
+ */
485
+ get address(): Address;
486
+ /**
487
+ * Get the underlying viem contract instance.
488
+ */
489
+ getContract(): AIXContract;
490
+ /**
491
+ * name
492
+ * view
493
+ */
494
+ name(): Promise<string>;
495
+ /**
496
+ * creationBlock
497
+ * view
498
+ */
499
+ creationBlock(): Promise<bigint>;
500
+ /**
501
+ * totalSupply
502
+ * view
503
+ */
504
+ totalSupply(): Promise<bigint>;
505
+ /**
506
+ * decimals
507
+ * view
508
+ */
509
+ decimals(): Promise<bigint>;
510
+ /**
511
+ * balanceOfAt
512
+ * view
513
+ */
514
+ balanceOfAt(_owner: `0x${string}`, _blockNumber: bigint): Promise<bigint>;
515
+ /**
516
+ * version
517
+ * view
518
+ */
519
+ version(): Promise<string>;
520
+ /**
521
+ * balanceOf
522
+ * view
523
+ */
524
+ balanceOf(_owner: `0x${string}`): Promise<bigint>;
525
+ /**
526
+ * parentToken
527
+ * view
528
+ */
529
+ parentToken(): Promise<`0x${string}`>;
530
+ /**
531
+ * symbol
532
+ * view
533
+ */
534
+ symbol(): Promise<string>;
535
+ /**
536
+ * totalSupplyAt
537
+ * view
538
+ */
539
+ totalSupplyAt(_blockNumber: bigint): Promise<bigint>;
540
+ /**
541
+ * transfersEnabled
542
+ * view
543
+ */
544
+ transfersEnabled(): Promise<boolean>;
545
+ /**
546
+ * parentSnapShotBlock
547
+ * view
548
+ */
549
+ parentSnapShotBlock(): Promise<bigint>;
550
+ /**
551
+ * allowance
552
+ * view
553
+ */
554
+ allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
555
+ /**
556
+ * tokenFactory
557
+ * view
558
+ */
559
+ tokenFactory(): Promise<`0x${string}`>;
560
+ /**
561
+ * controller
562
+ * view
563
+ */
564
+ controller(): Promise<`0x${string}`>;
565
+ /**
566
+ * approve
567
+ * nonpayable
568
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
569
+ */
570
+ approve(_spender: `0x${string}`, _amount: bigint, options?: {
571
+ accessList?: import('viem').AccessList;
572
+ authorizationList?: import('viem').AuthorizationList;
573
+ chain?: import('viem').Chain | null;
574
+ dataSuffix?: `0x${string}`;
575
+ gas?: bigint;
576
+ gasPrice?: bigint;
577
+ maxFeePerGas?: bigint;
578
+ maxPriorityFeePerGas?: bigint;
579
+ nonce?: number;
580
+ value?: bigint;
581
+ }): Promise<`0x${string}`>;
582
+ /**
583
+ * transferFrom
584
+ * nonpayable
585
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
586
+ */
587
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _amount: bigint, options?: {
588
+ accessList?: import('viem').AccessList;
589
+ authorizationList?: import('viem').AuthorizationList;
590
+ chain?: import('viem').Chain | null;
591
+ dataSuffix?: `0x${string}`;
592
+ gas?: bigint;
593
+ gasPrice?: bigint;
594
+ maxFeePerGas?: bigint;
595
+ maxPriorityFeePerGas?: bigint;
596
+ nonce?: number;
597
+ value?: bigint;
598
+ }): Promise<`0x${string}`>;
599
+ /**
600
+ * changeController
601
+ * nonpayable
602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
603
+ */
604
+ changeController(_newController: `0x${string}`, 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
+ * createCloneToken
618
+ * nonpayable
619
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
620
+ */
621
+ createCloneToken(_cloneTokenName: string, _cloneDecimalUnits: bigint, _cloneTokenSymbol: string, _snapshotBlock: bigint, _transfersEnabled: boolean, 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
+ * generateTokens
635
+ * nonpayable
636
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
637
+ */
638
+ generateTokens(_owner: `0x${string}`, _amount: 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
+ * transfer
652
+ * nonpayable
653
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
654
+ */
655
+ transfer(_to: `0x${string}`, _amount: bigint, 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
+ * approveAndCall
669
+ * nonpayable
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ approveAndCall(_spender: `0x${string}`, _amount: bigint, _extraData: `0x${string}`, 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
+ * destroyTokens
686
+ * nonpayable
687
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
688
+ */
689
+ destroyTokens(_owner: `0x${string}`, _amount: 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
+ * claimTokens
703
+ * nonpayable
704
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
705
+ */
706
+ claimTokens(_token: `0x${string}`, 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
+ * enableTransfers
720
+ * nonpayable
721
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
722
+ */
723
+ enableTransfers(_transfersEnabled: boolean, 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
+ * Simulate contract write operations (dry-run without sending transaction)
737
+ *
738
+ * @example
739
+ * const result = await contract.simulate.transfer('0x...', 1000n);
740
+ * console.log('Gas estimate:', result.request.gas);
741
+ * console.log('Would succeed:', result.result);
742
+ */
743
+ get simulate(): {
744
+ /**
745
+ * Simulate approve
746
+ * Returns gas estimate and result without sending transaction
747
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
+ */
749
+ approve(_spender: `0x${string}`, _amount: bigint, options?: {
750
+ accessList?: import("viem").AccessList;
751
+ authorizationList?: import("viem").AuthorizationList;
752
+ chain?: import("viem").Chain | null;
753
+ dataSuffix?: `0x${string}`;
754
+ gas?: bigint;
755
+ gasPrice?: bigint;
756
+ maxFeePerGas?: bigint;
757
+ maxPriorityFeePerGas?: bigint;
758
+ nonce?: number;
759
+ value?: bigint;
760
+ }): Promise<boolean>;
761
+ /**
762
+ * Simulate transferFrom
763
+ * Returns gas estimate and result without sending transaction
764
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
765
+ */
766
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _amount: 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 changeController
780
+ * Returns gas estimate and result without sending transaction
781
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
782
+ */
783
+ changeController(_newController: `0x${string}`, 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 createCloneToken
797
+ * Returns gas estimate and result without sending transaction
798
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
799
+ */
800
+ createCloneToken(_cloneTokenName: string, _cloneDecimalUnits: bigint, _cloneTokenSymbol: string, _snapshotBlock: bigint, _transfersEnabled: boolean, 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<`0x${string}`>;
812
+ /**
813
+ * Simulate generateTokens
814
+ * Returns gas estimate and result without sending transaction
815
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
816
+ */
817
+ generateTokens(_owner: `0x${string}`, _amount: bigint, 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<boolean>;
829
+ /**
830
+ * Simulate transfer
831
+ * Returns gas estimate and result without sending transaction
832
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
833
+ */
834
+ transfer(_to: `0x${string}`, _amount: bigint, 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<boolean>;
846
+ /**
847
+ * Simulate approveAndCall
848
+ * Returns gas estimate and result without sending transaction
849
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
850
+ */
851
+ approveAndCall(_spender: `0x${string}`, _amount: bigint, _extraData: `0x${string}`, 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<boolean>;
863
+ /**
864
+ * Simulate destroyTokens
865
+ * Returns gas estimate and result without sending transaction
866
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
867
+ */
868
+ destroyTokens(_owner: `0x${string}`, _amount: 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 claimTokens
882
+ * Returns gas estimate and result without sending transaction
883
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
884
+ */
885
+ claimTokens(_token: `0x${string}`, 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<void>;
897
+ /**
898
+ * Simulate enableTransfers
899
+ * Returns gas estimate and result without sending transaction
900
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
901
+ */
902
+ enableTransfers(_transfersEnabled: boolean, 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 ClaimedTokens 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
+ ClaimedTokens: (callback: (event: {
935
+ _token: `0x${string}`;
936
+ _controller: `0x${string}`;
937
+ _amount: bigint;
938
+ }) => void, filter?: {
939
+ _token?: `0x${string}` | `0x${string}`[] | null;
940
+ _controller?: `0x${string}` | `0x${string}`[] | null;
941
+ }) => () => void;
942
+ /**
943
+ * Watch Transfer 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
+ Transfer: (callback: (event: {
949
+ _from: `0x${string}`;
950
+ _to: `0x${string}`;
951
+ _amount: bigint;
952
+ }) => void, filter?: {
953
+ _from?: `0x${string}` | `0x${string}`[] | null;
954
+ _to?: `0x${string}` | `0x${string}`[] | null;
955
+ }) => () => void;
956
+ /**
957
+ * Watch NewCloneToken events
958
+ * @param callback Function to call when event is emitted
959
+ * @param filter Optional filter for indexed parameters
960
+ * @returns Unwatch function to stop listening
961
+ */
962
+ NewCloneToken: (callback: (event: {
963
+ _cloneToken: `0x${string}`;
964
+ _snapshotBlock: bigint;
965
+ }) => void, filter?: {
966
+ _cloneToken?: `0x${string}` | `0x${string}`[] | null;
967
+ }) => () => void;
968
+ /**
969
+ * Watch Approval events
970
+ * @param callback Function to call when event is emitted
971
+ * @param filter Optional filter for indexed parameters
972
+ * @returns Unwatch function to stop listening
973
+ */
974
+ Approval: (callback: (event: {
975
+ _owner: `0x${string}`;
976
+ _spender: `0x${string}`;
977
+ _amount: bigint;
978
+ }) => void, filter?: {
979
+ _owner?: `0x${string}` | `0x${string}`[] | null;
980
+ _spender?: `0x${string}` | `0x${string}`[] | null;
981
+ }) => () => void;
982
+ };
983
+ }