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