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