@gitmyabi/artlr 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,816 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * Aartaler_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const Aartaler_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "string";
10
+ readonly name: "name_";
11
+ readonly type: "string";
12
+ }, {
13
+ readonly internalType: "string";
14
+ readonly name: "symbol_";
15
+ readonly type: "string";
16
+ }, {
17
+ readonly internalType: "address";
18
+ readonly name: "initialOwner_";
19
+ readonly type: "address";
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: "previousOwner";
129
+ readonly type: "address";
130
+ }, {
131
+ readonly indexed: true;
132
+ readonly internalType: "address";
133
+ readonly name: "newOwner";
134
+ readonly type: "address";
135
+ }];
136
+ readonly name: "OwnershipTransferStarted";
137
+ readonly type: "event";
138
+ }, {
139
+ readonly anonymous: false;
140
+ readonly inputs: readonly [{
141
+ readonly indexed: true;
142
+ readonly internalType: "address";
143
+ readonly name: "previousOwner";
144
+ readonly type: "address";
145
+ }, {
146
+ readonly indexed: true;
147
+ readonly internalType: "address";
148
+ readonly name: "newOwner";
149
+ readonly type: "address";
150
+ }];
151
+ readonly name: "OwnershipTransferred";
152
+ readonly type: "event";
153
+ }, {
154
+ readonly anonymous: false;
155
+ readonly inputs: readonly [{
156
+ readonly indexed: true;
157
+ readonly internalType: "address";
158
+ readonly name: "from";
159
+ readonly type: "address";
160
+ }, {
161
+ readonly indexed: true;
162
+ readonly internalType: "address";
163
+ readonly name: "to";
164
+ readonly type: "address";
165
+ }, {
166
+ readonly indexed: false;
167
+ readonly internalType: "uint256";
168
+ readonly name: "value";
169
+ readonly type: "uint256";
170
+ }];
171
+ readonly name: "Transfer";
172
+ readonly type: "event";
173
+ }, {
174
+ readonly inputs: readonly [];
175
+ readonly name: "acceptOwnership";
176
+ readonly outputs: readonly [];
177
+ readonly stateMutability: "nonpayable";
178
+ readonly type: "function";
179
+ }, {
180
+ readonly inputs: readonly [{
181
+ readonly internalType: "address";
182
+ readonly name: "owner";
183
+ readonly type: "address";
184
+ }, {
185
+ readonly internalType: "address";
186
+ readonly name: "spender";
187
+ readonly type: "address";
188
+ }];
189
+ readonly name: "allowance";
190
+ readonly outputs: readonly [{
191
+ readonly internalType: "uint256";
192
+ readonly name: "";
193
+ readonly type: "uint256";
194
+ }];
195
+ readonly stateMutability: "view";
196
+ readonly type: "function";
197
+ }, {
198
+ readonly inputs: readonly [{
199
+ readonly internalType: "address";
200
+ readonly name: "spender";
201
+ readonly type: "address";
202
+ }, {
203
+ readonly internalType: "uint256";
204
+ readonly name: "value";
205
+ readonly type: "uint256";
206
+ }];
207
+ readonly name: "approve";
208
+ readonly outputs: readonly [{
209
+ readonly internalType: "bool";
210
+ readonly name: "";
211
+ readonly type: "bool";
212
+ }];
213
+ readonly stateMutability: "nonpayable";
214
+ readonly type: "function";
215
+ }, {
216
+ readonly inputs: readonly [{
217
+ readonly internalType: "address";
218
+ readonly name: "account";
219
+ readonly type: "address";
220
+ }];
221
+ readonly name: "balanceOf";
222
+ readonly outputs: readonly [{
223
+ readonly internalType: "uint256";
224
+ readonly name: "";
225
+ readonly type: "uint256";
226
+ }];
227
+ readonly stateMutability: "view";
228
+ readonly type: "function";
229
+ }, {
230
+ readonly inputs: readonly [{
231
+ readonly internalType: "uint256";
232
+ readonly name: "amount";
233
+ readonly type: "uint256";
234
+ }];
235
+ readonly name: "burn";
236
+ readonly outputs: readonly [];
237
+ readonly stateMutability: "nonpayable";
238
+ readonly type: "function";
239
+ }, {
240
+ readonly inputs: readonly [];
241
+ readonly name: "decimals";
242
+ readonly outputs: readonly [{
243
+ readonly internalType: "uint8";
244
+ readonly name: "";
245
+ readonly type: "uint8";
246
+ }];
247
+ readonly stateMutability: "pure";
248
+ readonly type: "function";
249
+ }, {
250
+ readonly inputs: readonly [{
251
+ readonly internalType: "address";
252
+ readonly name: "to";
253
+ readonly type: "address";
254
+ }, {
255
+ readonly internalType: "uint256";
256
+ readonly name: "amount";
257
+ readonly type: "uint256";
258
+ }];
259
+ readonly name: "mint";
260
+ readonly outputs: readonly [];
261
+ readonly stateMutability: "nonpayable";
262
+ readonly type: "function";
263
+ }, {
264
+ readonly inputs: readonly [];
265
+ readonly name: "name";
266
+ readonly outputs: readonly [{
267
+ readonly internalType: "string";
268
+ readonly name: "";
269
+ readonly type: "string";
270
+ }];
271
+ readonly stateMutability: "view";
272
+ readonly type: "function";
273
+ }, {
274
+ readonly inputs: readonly [];
275
+ readonly name: "owner";
276
+ readonly outputs: readonly [{
277
+ readonly internalType: "address";
278
+ readonly name: "";
279
+ readonly type: "address";
280
+ }];
281
+ readonly stateMutability: "view";
282
+ readonly type: "function";
283
+ }, {
284
+ readonly inputs: readonly [];
285
+ readonly name: "pendingOwner";
286
+ readonly outputs: readonly [{
287
+ readonly internalType: "address";
288
+ readonly name: "";
289
+ readonly type: "address";
290
+ }];
291
+ readonly stateMutability: "view";
292
+ readonly type: "function";
293
+ }, {
294
+ readonly inputs: readonly [];
295
+ readonly name: "renounceOwnership";
296
+ readonly outputs: readonly [];
297
+ readonly stateMutability: "nonpayable";
298
+ readonly type: "function";
299
+ }, {
300
+ readonly inputs: readonly [];
301
+ readonly name: "symbol";
302
+ readonly outputs: readonly [{
303
+ readonly internalType: "string";
304
+ readonly name: "";
305
+ readonly type: "string";
306
+ }];
307
+ readonly stateMutability: "view";
308
+ readonly type: "function";
309
+ }, {
310
+ readonly inputs: readonly [];
311
+ readonly name: "totalSupply";
312
+ readonly outputs: readonly [{
313
+ readonly internalType: "uint256";
314
+ readonly name: "";
315
+ readonly type: "uint256";
316
+ }];
317
+ readonly stateMutability: "view";
318
+ readonly type: "function";
319
+ }, {
320
+ readonly inputs: readonly [{
321
+ readonly internalType: "address";
322
+ readonly name: "to";
323
+ readonly type: "address";
324
+ }, {
325
+ readonly internalType: "uint256";
326
+ readonly name: "value";
327
+ readonly type: "uint256";
328
+ }];
329
+ readonly name: "transfer";
330
+ readonly outputs: readonly [{
331
+ readonly internalType: "bool";
332
+ readonly name: "";
333
+ readonly type: "bool";
334
+ }];
335
+ readonly stateMutability: "nonpayable";
336
+ readonly type: "function";
337
+ }, {
338
+ readonly inputs: readonly [{
339
+ readonly internalType: "address";
340
+ readonly name: "from";
341
+ readonly type: "address";
342
+ }, {
343
+ readonly internalType: "address";
344
+ readonly name: "to";
345
+ readonly type: "address";
346
+ }, {
347
+ readonly internalType: "uint256";
348
+ readonly name: "value";
349
+ readonly type: "uint256";
350
+ }];
351
+ readonly name: "transferFrom";
352
+ readonly outputs: readonly [{
353
+ readonly internalType: "bool";
354
+ readonly name: "";
355
+ readonly type: "bool";
356
+ }];
357
+ readonly stateMutability: "nonpayable";
358
+ readonly type: "function";
359
+ }, {
360
+ readonly inputs: readonly [{
361
+ readonly internalType: "address";
362
+ readonly name: "newOwner";
363
+ readonly type: "address";
364
+ }];
365
+ readonly name: "transferOwnership";
366
+ readonly outputs: readonly [];
367
+ readonly stateMutability: "nonpayable";
368
+ readonly type: "function";
369
+ }];
370
+ /**
371
+ * Type-safe ABI for Aartaler_json
372
+ */
373
+ export type Aartaler_jsonAbi = typeof Aartaler_jsonAbi;
374
+ /**
375
+ * Contract instance type for Aartaler_json
376
+ */
377
+ export type Aartaler_jsonContract = any;
378
+ /**
379
+ * Aartaler_json Contract Class
380
+ *
381
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
382
+ *
383
+ * @example
384
+ * ```typescript
385
+ * import { createPublicClient, createWalletClient, http } from 'viem';
386
+ * import { mainnet } from 'viem/chains';
387
+ * import { Aartaler_json } from 'Aartaler_json';
388
+ *
389
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
390
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
391
+ *
392
+ * const contract = new Aartaler_json('0x...', { publicClient, walletClient });
393
+ *
394
+ * // Read functions
395
+ * const result = await contract.balanceOf('0x...');
396
+ *
397
+ * // Write functions
398
+ * const hash = await contract.transfer('0x...', 1000n);
399
+ *
400
+ * // Simulate transactions (dry-run)
401
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
402
+ * console.log('Gas estimate:', simulation.request.gas);
403
+ *
404
+ * // Watch events
405
+ * const unwatch = contract.watch.Transfer((event) => {
406
+ * console.log('Transfer event:', event);
407
+ * });
408
+ * ```
409
+ */
410
+ export declare class Aartaler_json {
411
+ private contract;
412
+ private contractAddress;
413
+ private publicClient;
414
+ constructor(address: Address, clients: {
415
+ publicClient: PublicClient;
416
+ walletClient?: WalletClient;
417
+ });
418
+ /**
419
+ * Get the contract address
420
+ */
421
+ get address(): Address;
422
+ /**
423
+ * Get the underlying viem contract instance
424
+ */
425
+ getContract(): Aartaler_jsonContract;
426
+ /**
427
+ * allowance
428
+ * view
429
+ */
430
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
431
+ /**
432
+ * balanceOf
433
+ * view
434
+ */
435
+ balanceOf(account: `0x${string}`): Promise<bigint>;
436
+ /**
437
+ * decimals
438
+ * pure
439
+ */
440
+ decimals(): Promise<bigint>;
441
+ /**
442
+ * name
443
+ * view
444
+ */
445
+ name(): Promise<string>;
446
+ /**
447
+ * owner
448
+ * view
449
+ */
450
+ owner(): Promise<`0x${string}`>;
451
+ /**
452
+ * pendingOwner
453
+ * view
454
+ */
455
+ pendingOwner(): Promise<`0x${string}`>;
456
+ /**
457
+ * symbol
458
+ * view
459
+ */
460
+ symbol(): Promise<string>;
461
+ /**
462
+ * totalSupply
463
+ * view
464
+ */
465
+ totalSupply(): Promise<bigint>;
466
+ /**
467
+ * acceptOwnership
468
+ * nonpayable
469
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
470
+ */
471
+ acceptOwnership(options?: {
472
+ accessList?: import('viem').AccessList;
473
+ authorizationList?: import('viem').AuthorizationList;
474
+ chain?: import('viem').Chain | null;
475
+ dataSuffix?: `0x${string}`;
476
+ gas?: bigint;
477
+ gasPrice?: bigint;
478
+ maxFeePerGas?: bigint;
479
+ maxPriorityFeePerGas?: bigint;
480
+ nonce?: number;
481
+ value?: bigint;
482
+ }): Promise<`0x${string}`>;
483
+ /**
484
+ * approve
485
+ * nonpayable
486
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
487
+ */
488
+ approve(spender: `0x${string}`, value: bigint, options?: {
489
+ accessList?: import('viem').AccessList;
490
+ authorizationList?: import('viem').AuthorizationList;
491
+ chain?: import('viem').Chain | null;
492
+ dataSuffix?: `0x${string}`;
493
+ gas?: bigint;
494
+ gasPrice?: bigint;
495
+ maxFeePerGas?: bigint;
496
+ maxPriorityFeePerGas?: bigint;
497
+ nonce?: number;
498
+ value?: bigint;
499
+ }): Promise<`0x${string}`>;
500
+ /**
501
+ * burn
502
+ * nonpayable
503
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
504
+ */
505
+ burn(amount: bigint, options?: {
506
+ accessList?: import('viem').AccessList;
507
+ authorizationList?: import('viem').AuthorizationList;
508
+ chain?: import('viem').Chain | null;
509
+ dataSuffix?: `0x${string}`;
510
+ gas?: bigint;
511
+ gasPrice?: bigint;
512
+ maxFeePerGas?: bigint;
513
+ maxPriorityFeePerGas?: bigint;
514
+ nonce?: number;
515
+ value?: bigint;
516
+ }): Promise<`0x${string}`>;
517
+ /**
518
+ * mint
519
+ * nonpayable
520
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
521
+ */
522
+ mint(to: `0x${string}`, amount: bigint, options?: {
523
+ accessList?: import('viem').AccessList;
524
+ authorizationList?: import('viem').AuthorizationList;
525
+ chain?: import('viem').Chain | null;
526
+ dataSuffix?: `0x${string}`;
527
+ gas?: bigint;
528
+ gasPrice?: bigint;
529
+ maxFeePerGas?: bigint;
530
+ maxPriorityFeePerGas?: bigint;
531
+ nonce?: number;
532
+ value?: bigint;
533
+ }): Promise<`0x${string}`>;
534
+ /**
535
+ * renounceOwnership
536
+ * nonpayable
537
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
538
+ */
539
+ renounceOwnership(options?: {
540
+ accessList?: import('viem').AccessList;
541
+ authorizationList?: import('viem').AuthorizationList;
542
+ chain?: import('viem').Chain | null;
543
+ dataSuffix?: `0x${string}`;
544
+ gas?: bigint;
545
+ gasPrice?: bigint;
546
+ maxFeePerGas?: bigint;
547
+ maxPriorityFeePerGas?: bigint;
548
+ nonce?: number;
549
+ value?: bigint;
550
+ }): Promise<`0x${string}`>;
551
+ /**
552
+ * transfer
553
+ * nonpayable
554
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
555
+ */
556
+ transfer(to: `0x${string}`, value: bigint, options?: {
557
+ accessList?: import('viem').AccessList;
558
+ authorizationList?: import('viem').AuthorizationList;
559
+ chain?: import('viem').Chain | null;
560
+ dataSuffix?: `0x${string}`;
561
+ gas?: bigint;
562
+ gasPrice?: bigint;
563
+ maxFeePerGas?: bigint;
564
+ maxPriorityFeePerGas?: bigint;
565
+ nonce?: number;
566
+ value?: bigint;
567
+ }): Promise<`0x${string}`>;
568
+ /**
569
+ * transferFrom
570
+ * nonpayable
571
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
572
+ */
573
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
574
+ accessList?: import('viem').AccessList;
575
+ authorizationList?: import('viem').AuthorizationList;
576
+ chain?: import('viem').Chain | null;
577
+ dataSuffix?: `0x${string}`;
578
+ gas?: bigint;
579
+ gasPrice?: bigint;
580
+ maxFeePerGas?: bigint;
581
+ maxPriorityFeePerGas?: bigint;
582
+ nonce?: number;
583
+ value?: bigint;
584
+ }): Promise<`0x${string}`>;
585
+ /**
586
+ * transferOwnership
587
+ * nonpayable
588
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
589
+ */
590
+ transferOwnership(newOwner: `0x${string}`, options?: {
591
+ accessList?: import('viem').AccessList;
592
+ authorizationList?: import('viem').AuthorizationList;
593
+ chain?: import('viem').Chain | null;
594
+ dataSuffix?: `0x${string}`;
595
+ gas?: bigint;
596
+ gasPrice?: bigint;
597
+ maxFeePerGas?: bigint;
598
+ maxPriorityFeePerGas?: bigint;
599
+ nonce?: number;
600
+ value?: bigint;
601
+ }): Promise<`0x${string}`>;
602
+ /**
603
+ * Simulate contract write operations (dry-run without sending transaction)
604
+ *
605
+ * @example
606
+ * const result = await contract.simulate.transfer('0x...', 1000n);
607
+ * console.log('Gas estimate:', result.request.gas);
608
+ * console.log('Would succeed:', result.result);
609
+ */
610
+ get simulate(): {
611
+ /**
612
+ * Simulate acceptOwnership
613
+ * Returns gas estimate and result without sending transaction
614
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
615
+ */
616
+ acceptOwnership(options?: {
617
+ accessList?: import("viem").AccessList;
618
+ authorizationList?: import("viem").AuthorizationList;
619
+ chain?: import("viem").Chain | null;
620
+ dataSuffix?: `0x${string}`;
621
+ gas?: bigint;
622
+ gasPrice?: bigint;
623
+ maxFeePerGas?: bigint;
624
+ maxPriorityFeePerGas?: bigint;
625
+ nonce?: number;
626
+ value?: bigint;
627
+ }): Promise<void>;
628
+ /**
629
+ * Simulate approve
630
+ * Returns gas estimate and result without sending transaction
631
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
632
+ */
633
+ approve(spender: `0x${string}`, value: bigint, options?: {
634
+ accessList?: import("viem").AccessList;
635
+ authorizationList?: import("viem").AuthorizationList;
636
+ chain?: import("viem").Chain | null;
637
+ dataSuffix?: `0x${string}`;
638
+ gas?: bigint;
639
+ gasPrice?: bigint;
640
+ maxFeePerGas?: bigint;
641
+ maxPriorityFeePerGas?: bigint;
642
+ nonce?: number;
643
+ value?: bigint;
644
+ }): Promise<boolean>;
645
+ /**
646
+ * Simulate burn
647
+ * Returns gas estimate and result without sending transaction
648
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
649
+ */
650
+ burn(amount: bigint, options?: {
651
+ accessList?: import("viem").AccessList;
652
+ authorizationList?: import("viem").AuthorizationList;
653
+ chain?: import("viem").Chain | null;
654
+ dataSuffix?: `0x${string}`;
655
+ gas?: bigint;
656
+ gasPrice?: bigint;
657
+ maxFeePerGas?: bigint;
658
+ maxPriorityFeePerGas?: bigint;
659
+ nonce?: number;
660
+ value?: bigint;
661
+ }): Promise<void>;
662
+ /**
663
+ * Simulate mint
664
+ * Returns gas estimate and result without sending transaction
665
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
666
+ */
667
+ mint(to: `0x${string}`, amount: bigint, options?: {
668
+ accessList?: import("viem").AccessList;
669
+ authorizationList?: import("viem").AuthorizationList;
670
+ chain?: import("viem").Chain | null;
671
+ dataSuffix?: `0x${string}`;
672
+ gas?: bigint;
673
+ gasPrice?: bigint;
674
+ maxFeePerGas?: bigint;
675
+ maxPriorityFeePerGas?: bigint;
676
+ nonce?: number;
677
+ value?: bigint;
678
+ }): Promise<void>;
679
+ /**
680
+ * Simulate renounceOwnership
681
+ * Returns gas estimate and result without sending transaction
682
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
683
+ */
684
+ renounceOwnership(options?: {
685
+ accessList?: import("viem").AccessList;
686
+ authorizationList?: import("viem").AuthorizationList;
687
+ chain?: import("viem").Chain | null;
688
+ dataSuffix?: `0x${string}`;
689
+ gas?: bigint;
690
+ gasPrice?: bigint;
691
+ maxFeePerGas?: bigint;
692
+ maxPriorityFeePerGas?: bigint;
693
+ nonce?: number;
694
+ value?: bigint;
695
+ }): Promise<void>;
696
+ /**
697
+ * Simulate transfer
698
+ * Returns gas estimate and result without sending transaction
699
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
700
+ */
701
+ transfer(to: `0x${string}`, value: bigint, options?: {
702
+ accessList?: import("viem").AccessList;
703
+ authorizationList?: import("viem").AuthorizationList;
704
+ chain?: import("viem").Chain | null;
705
+ dataSuffix?: `0x${string}`;
706
+ gas?: bigint;
707
+ gasPrice?: bigint;
708
+ maxFeePerGas?: bigint;
709
+ maxPriorityFeePerGas?: bigint;
710
+ nonce?: number;
711
+ value?: bigint;
712
+ }): Promise<boolean>;
713
+ /**
714
+ * Simulate transferFrom
715
+ * Returns gas estimate and result without sending transaction
716
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
717
+ */
718
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
719
+ accessList?: import("viem").AccessList;
720
+ authorizationList?: import("viem").AuthorizationList;
721
+ chain?: import("viem").Chain | null;
722
+ dataSuffix?: `0x${string}`;
723
+ gas?: bigint;
724
+ gasPrice?: bigint;
725
+ maxFeePerGas?: bigint;
726
+ maxPriorityFeePerGas?: bigint;
727
+ nonce?: number;
728
+ value?: bigint;
729
+ }): Promise<boolean>;
730
+ /**
731
+ * Simulate transferOwnership
732
+ * Returns gas estimate and result without sending transaction
733
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
734
+ */
735
+ transferOwnership(newOwner: `0x${string}`, options?: {
736
+ accessList?: import("viem").AccessList;
737
+ authorizationList?: import("viem").AuthorizationList;
738
+ chain?: import("viem").Chain | null;
739
+ dataSuffix?: `0x${string}`;
740
+ gas?: bigint;
741
+ gasPrice?: bigint;
742
+ maxFeePerGas?: bigint;
743
+ maxPriorityFeePerGas?: bigint;
744
+ nonce?: number;
745
+ value?: bigint;
746
+ }): Promise<void>;
747
+ };
748
+ /**
749
+ * Watch contract events
750
+ *
751
+ * @example
752
+ * // Watch all Transfer events
753
+ * const unwatch = contract.watch.Transfer((event) => {
754
+ * console.log('Transfer:', event);
755
+ * });
756
+ *
757
+ * // Stop watching
758
+ * unwatch();
759
+ */
760
+ get watch(): {
761
+ /**
762
+ * Watch Approval events
763
+ * @param callback Function to call when event is emitted
764
+ * @param filter Optional filter for indexed parameters
765
+ * @returns Unwatch function to stop listening
766
+ */
767
+ Approval: (callback: (event: {
768
+ owner: `0x${string}`;
769
+ spender: `0x${string}`;
770
+ value: bigint;
771
+ }) => void, filter?: {
772
+ owner: `0x${string}`;
773
+ spender: `0x${string}`;
774
+ }) => () => void;
775
+ /**
776
+ * Watch OwnershipTransferStarted events
777
+ * @param callback Function to call when event is emitted
778
+ * @param filter Optional filter for indexed parameters
779
+ * @returns Unwatch function to stop listening
780
+ */
781
+ OwnershipTransferStarted: (callback: (event: {
782
+ previousOwner: `0x${string}`;
783
+ newOwner: `0x${string}`;
784
+ }) => void, filter?: {
785
+ previousOwner: `0x${string}`;
786
+ newOwner: `0x${string}`;
787
+ }) => () => void;
788
+ /**
789
+ * Watch OwnershipTransferred events
790
+ * @param callback Function to call when event is emitted
791
+ * @param filter Optional filter for indexed parameters
792
+ * @returns Unwatch function to stop listening
793
+ */
794
+ OwnershipTransferred: (callback: (event: {
795
+ previousOwner: `0x${string}`;
796
+ newOwner: `0x${string}`;
797
+ }) => void, filter?: {
798
+ previousOwner: `0x${string}`;
799
+ newOwner: `0x${string}`;
800
+ }) => () => void;
801
+ /**
802
+ * Watch Transfer events
803
+ * @param callback Function to call when event is emitted
804
+ * @param filter Optional filter for indexed parameters
805
+ * @returns Unwatch function to stop listening
806
+ */
807
+ Transfer: (callback: (event: {
808
+ from: `0x${string}`;
809
+ to: `0x${string}`;
810
+ value: bigint;
811
+ }) => void, filter?: {
812
+ from: `0x${string}`;
813
+ to: `0x${string}`;
814
+ }) => () => void;
815
+ };
816
+ }