@gitmyabi/usdt 1.0.29 → 1.0.30

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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **USDT**
4
4
 
5
- - **Build ID**: `etherscan-usdt-0a0081ec-1788977046521`
5
+ - **Build ID**: `etherscan-usdt-83f3eaa5-1789024380631`
6
6
  - **Build Number**: 1
7
- - **Commit**: `d4c2f70`
7
+ - **Commit**: `193e573`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **USDT**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/usdt@1.0.29
15
+ npm install @gitmyabi/usdt@1.0.30
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -0,0 +1,689 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * MyNewToken_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const MyNewToken_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: "uint256";
18
+ readonly name: "initialSupply";
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: "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: "OwnershipTransferred";
137
+ readonly type: "event";
138
+ }, {
139
+ readonly anonymous: false;
140
+ readonly inputs: readonly [{
141
+ readonly indexed: true;
142
+ readonly internalType: "address";
143
+ readonly name: "from";
144
+ readonly type: "address";
145
+ }, {
146
+ readonly indexed: true;
147
+ readonly internalType: "address";
148
+ readonly name: "to";
149
+ readonly type: "address";
150
+ }, {
151
+ readonly indexed: false;
152
+ readonly internalType: "uint256";
153
+ readonly name: "value";
154
+ readonly type: "uint256";
155
+ }];
156
+ readonly name: "Transfer";
157
+ readonly type: "event";
158
+ }, {
159
+ readonly inputs: readonly [{
160
+ readonly internalType: "address";
161
+ readonly name: "owner";
162
+ readonly type: "address";
163
+ }, {
164
+ readonly internalType: "address";
165
+ readonly name: "spender";
166
+ readonly type: "address";
167
+ }];
168
+ readonly name: "allowance";
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 internalType: "address";
179
+ readonly name: "spender";
180
+ readonly type: "address";
181
+ }, {
182
+ readonly internalType: "uint256";
183
+ readonly name: "value";
184
+ readonly type: "uint256";
185
+ }];
186
+ readonly name: "approve";
187
+ readonly outputs: readonly [{
188
+ readonly internalType: "bool";
189
+ readonly name: "";
190
+ readonly type: "bool";
191
+ }];
192
+ readonly stateMutability: "nonpayable";
193
+ readonly type: "function";
194
+ }, {
195
+ readonly inputs: readonly [{
196
+ readonly internalType: "address";
197
+ readonly name: "account";
198
+ readonly type: "address";
199
+ }];
200
+ readonly name: "balanceOf";
201
+ readonly outputs: readonly [{
202
+ readonly internalType: "uint256";
203
+ readonly name: "";
204
+ readonly type: "uint256";
205
+ }];
206
+ readonly stateMutability: "view";
207
+ readonly type: "function";
208
+ }, {
209
+ readonly inputs: readonly [];
210
+ readonly name: "decimals";
211
+ readonly outputs: readonly [{
212
+ readonly internalType: "uint8";
213
+ readonly name: "";
214
+ readonly type: "uint8";
215
+ }];
216
+ readonly stateMutability: "view";
217
+ readonly type: "function";
218
+ }, {
219
+ readonly inputs: readonly [{
220
+ readonly internalType: "address";
221
+ readonly name: "to";
222
+ readonly type: "address";
223
+ }, {
224
+ readonly internalType: "uint256";
225
+ readonly name: "amount";
226
+ readonly type: "uint256";
227
+ }];
228
+ readonly name: "mint";
229
+ readonly outputs: readonly [];
230
+ readonly stateMutability: "nonpayable";
231
+ readonly type: "function";
232
+ }, {
233
+ readonly inputs: readonly [];
234
+ readonly name: "name";
235
+ readonly outputs: readonly [{
236
+ readonly internalType: "string";
237
+ readonly name: "";
238
+ readonly type: "string";
239
+ }];
240
+ readonly stateMutability: "view";
241
+ readonly type: "function";
242
+ }, {
243
+ readonly inputs: readonly [];
244
+ readonly name: "owner";
245
+ readonly outputs: readonly [{
246
+ readonly internalType: "address";
247
+ readonly name: "";
248
+ readonly type: "address";
249
+ }];
250
+ readonly stateMutability: "view";
251
+ readonly type: "function";
252
+ }, {
253
+ readonly inputs: readonly [];
254
+ readonly name: "renounceOwnership";
255
+ readonly outputs: readonly [];
256
+ readonly stateMutability: "nonpayable";
257
+ readonly type: "function";
258
+ }, {
259
+ readonly inputs: readonly [];
260
+ readonly name: "symbol";
261
+ readonly outputs: readonly [{
262
+ readonly internalType: "string";
263
+ readonly name: "";
264
+ readonly type: "string";
265
+ }];
266
+ readonly stateMutability: "view";
267
+ readonly type: "function";
268
+ }, {
269
+ readonly inputs: readonly [];
270
+ readonly name: "totalSupply";
271
+ readonly outputs: readonly [{
272
+ readonly internalType: "uint256";
273
+ readonly name: "";
274
+ readonly type: "uint256";
275
+ }];
276
+ readonly stateMutability: "view";
277
+ readonly type: "function";
278
+ }, {
279
+ readonly inputs: readonly [{
280
+ readonly internalType: "address";
281
+ readonly name: "to";
282
+ readonly type: "address";
283
+ }, {
284
+ readonly internalType: "uint256";
285
+ readonly name: "value";
286
+ readonly type: "uint256";
287
+ }];
288
+ readonly name: "transfer";
289
+ readonly outputs: readonly [{
290
+ readonly internalType: "bool";
291
+ readonly name: "";
292
+ readonly type: "bool";
293
+ }];
294
+ readonly stateMutability: "nonpayable";
295
+ readonly type: "function";
296
+ }, {
297
+ readonly inputs: readonly [{
298
+ readonly internalType: "address";
299
+ readonly name: "from";
300
+ readonly type: "address";
301
+ }, {
302
+ readonly internalType: "address";
303
+ readonly name: "to";
304
+ readonly type: "address";
305
+ }, {
306
+ readonly internalType: "uint256";
307
+ readonly name: "value";
308
+ readonly type: "uint256";
309
+ }];
310
+ readonly name: "transferFrom";
311
+ readonly outputs: readonly [{
312
+ readonly internalType: "bool";
313
+ readonly name: "";
314
+ readonly type: "bool";
315
+ }];
316
+ readonly stateMutability: "nonpayable";
317
+ readonly type: "function";
318
+ }, {
319
+ readonly inputs: readonly [{
320
+ readonly internalType: "address";
321
+ readonly name: "newOwner";
322
+ readonly type: "address";
323
+ }];
324
+ readonly name: "transferOwnership";
325
+ readonly outputs: readonly [];
326
+ readonly stateMutability: "nonpayable";
327
+ readonly type: "function";
328
+ }];
329
+ /**
330
+ * Type-safe ABI for MyNewToken_json
331
+ */
332
+ export type MyNewToken_jsonAbi = typeof MyNewToken_jsonAbi;
333
+ /**
334
+ * Contract instance type for MyNewToken_json
335
+ */
336
+ export type MyNewToken_jsonContract = any;
337
+ /**
338
+ * MyNewToken_json Contract Class
339
+ *
340
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
341
+ *
342
+ * @example
343
+ * ```typescript
344
+ * import { createPublicClient, createWalletClient, http } from 'viem';
345
+ * import { mainnet } from 'viem/chains';
346
+ * import { MyNewToken_json } from 'MyNewToken_json';
347
+ *
348
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
349
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
350
+ *
351
+ * const contract = new MyNewToken_json('0x...', { publicClient, walletClient });
352
+ *
353
+ * // Read functions
354
+ * const result = await contract.balanceOf('0x...');
355
+ *
356
+ * // Write functions
357
+ * const hash = await contract.transfer('0x...', 1000n);
358
+ *
359
+ * // Simulate transactions (dry-run)
360
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
361
+ * console.log('Gas estimate:', simulation.request.gas);
362
+ *
363
+ * // Watch events
364
+ * const unwatch = contract.watch.Transfer((event) => {
365
+ * console.log('Transfer event:', event);
366
+ * });
367
+ * ```
368
+ */
369
+ export declare class MyNewToken_json {
370
+ private contract;
371
+ private contractAddress;
372
+ private publicClient;
373
+ constructor(address: Address, clients: {
374
+ publicClient: PublicClient;
375
+ walletClient?: WalletClient;
376
+ });
377
+ /**
378
+ * Get the contract address
379
+ */
380
+ get address(): Address;
381
+ /**
382
+ * Get the underlying viem contract instance
383
+ */
384
+ getContract(): MyNewToken_jsonContract;
385
+ /**
386
+ * allowance
387
+ * view
388
+ */
389
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
390
+ /**
391
+ * balanceOf
392
+ * view
393
+ */
394
+ balanceOf(account: `0x${string}`): Promise<bigint>;
395
+ /**
396
+ * decimals
397
+ * view
398
+ */
399
+ decimals(): Promise<bigint>;
400
+ /**
401
+ * name
402
+ * view
403
+ */
404
+ name(): Promise<string>;
405
+ /**
406
+ * owner
407
+ * view
408
+ */
409
+ owner(): Promise<`0x${string}`>;
410
+ /**
411
+ * symbol
412
+ * view
413
+ */
414
+ symbol(): Promise<string>;
415
+ /**
416
+ * totalSupply
417
+ * view
418
+ */
419
+ totalSupply(): Promise<bigint>;
420
+ /**
421
+ * approve
422
+ * nonpayable
423
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
424
+ */
425
+ approve(spender: `0x${string}`, value: bigint, options?: {
426
+ accessList?: import('viem').AccessList;
427
+ authorizationList?: import('viem').AuthorizationList;
428
+ chain?: import('viem').Chain | null;
429
+ dataSuffix?: `0x${string}`;
430
+ gas?: bigint;
431
+ gasPrice?: bigint;
432
+ maxFeePerGas?: bigint;
433
+ maxPriorityFeePerGas?: bigint;
434
+ nonce?: number;
435
+ value?: bigint;
436
+ }): Promise<`0x${string}`>;
437
+ /**
438
+ * mint
439
+ * nonpayable
440
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
441
+ */
442
+ mint(to: `0x${string}`, amount: bigint, options?: {
443
+ accessList?: import('viem').AccessList;
444
+ authorizationList?: import('viem').AuthorizationList;
445
+ chain?: import('viem').Chain | null;
446
+ dataSuffix?: `0x${string}`;
447
+ gas?: bigint;
448
+ gasPrice?: bigint;
449
+ maxFeePerGas?: bigint;
450
+ maxPriorityFeePerGas?: bigint;
451
+ nonce?: number;
452
+ value?: bigint;
453
+ }): Promise<`0x${string}`>;
454
+ /**
455
+ * renounceOwnership
456
+ * nonpayable
457
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
458
+ */
459
+ renounceOwnership(options?: {
460
+ accessList?: import('viem').AccessList;
461
+ authorizationList?: import('viem').AuthorizationList;
462
+ chain?: import('viem').Chain | null;
463
+ dataSuffix?: `0x${string}`;
464
+ gas?: bigint;
465
+ gasPrice?: bigint;
466
+ maxFeePerGas?: bigint;
467
+ maxPriorityFeePerGas?: bigint;
468
+ nonce?: number;
469
+ value?: bigint;
470
+ }): Promise<`0x${string}`>;
471
+ /**
472
+ * transfer
473
+ * nonpayable
474
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
475
+ */
476
+ transfer(to: `0x${string}`, value: bigint, options?: {
477
+ accessList?: import('viem').AccessList;
478
+ authorizationList?: import('viem').AuthorizationList;
479
+ chain?: import('viem').Chain | null;
480
+ dataSuffix?: `0x${string}`;
481
+ gas?: bigint;
482
+ gasPrice?: bigint;
483
+ maxFeePerGas?: bigint;
484
+ maxPriorityFeePerGas?: bigint;
485
+ nonce?: number;
486
+ value?: bigint;
487
+ }): Promise<`0x${string}`>;
488
+ /**
489
+ * transferFrom
490
+ * nonpayable
491
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
492
+ */
493
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
494
+ accessList?: import('viem').AccessList;
495
+ authorizationList?: import('viem').AuthorizationList;
496
+ chain?: import('viem').Chain | null;
497
+ dataSuffix?: `0x${string}`;
498
+ gas?: bigint;
499
+ gasPrice?: bigint;
500
+ maxFeePerGas?: bigint;
501
+ maxPriorityFeePerGas?: bigint;
502
+ nonce?: number;
503
+ value?: bigint;
504
+ }): Promise<`0x${string}`>;
505
+ /**
506
+ * transferOwnership
507
+ * nonpayable
508
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
509
+ */
510
+ transferOwnership(newOwner: `0x${string}`, options?: {
511
+ accessList?: import('viem').AccessList;
512
+ authorizationList?: import('viem').AuthorizationList;
513
+ chain?: import('viem').Chain | null;
514
+ dataSuffix?: `0x${string}`;
515
+ gas?: bigint;
516
+ gasPrice?: bigint;
517
+ maxFeePerGas?: bigint;
518
+ maxPriorityFeePerGas?: bigint;
519
+ nonce?: number;
520
+ value?: bigint;
521
+ }): Promise<`0x${string}`>;
522
+ /**
523
+ * Simulate contract write operations (dry-run without sending transaction)
524
+ *
525
+ * @example
526
+ * const result = await contract.simulate.transfer('0x...', 1000n);
527
+ * console.log('Gas estimate:', result.request.gas);
528
+ * console.log('Would succeed:', result.result);
529
+ */
530
+ get simulate(): {
531
+ /**
532
+ * Simulate approve
533
+ * Returns gas estimate and result without sending transaction
534
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
535
+ */
536
+ approve(spender: `0x${string}`, value: bigint, options?: {
537
+ accessList?: import("viem").AccessList;
538
+ authorizationList?: import("viem").AuthorizationList;
539
+ chain?: import("viem").Chain | null;
540
+ dataSuffix?: `0x${string}`;
541
+ gas?: bigint;
542
+ gasPrice?: bigint;
543
+ maxFeePerGas?: bigint;
544
+ maxPriorityFeePerGas?: bigint;
545
+ nonce?: number;
546
+ value?: bigint;
547
+ }): Promise<boolean>;
548
+ /**
549
+ * Simulate mint
550
+ * Returns gas estimate and result without sending transaction
551
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
552
+ */
553
+ mint(to: `0x${string}`, amount: bigint, options?: {
554
+ accessList?: import("viem").AccessList;
555
+ authorizationList?: import("viem").AuthorizationList;
556
+ chain?: import("viem").Chain | null;
557
+ dataSuffix?: `0x${string}`;
558
+ gas?: bigint;
559
+ gasPrice?: bigint;
560
+ maxFeePerGas?: bigint;
561
+ maxPriorityFeePerGas?: bigint;
562
+ nonce?: number;
563
+ value?: bigint;
564
+ }): Promise<void>;
565
+ /**
566
+ * Simulate renounceOwnership
567
+ * Returns gas estimate and result without sending transaction
568
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
569
+ */
570
+ renounceOwnership(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<void>;
582
+ /**
583
+ * Simulate transfer
584
+ * Returns gas estimate and result without sending transaction
585
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
586
+ */
587
+ transfer(to: `0x${string}`, value: 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<boolean>;
599
+ /**
600
+ * Simulate transferFrom
601
+ * Returns gas estimate and result without sending transaction
602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
603
+ */
604
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
605
+ accessList?: import("viem").AccessList;
606
+ authorizationList?: import("viem").AuthorizationList;
607
+ chain?: import("viem").Chain | null;
608
+ dataSuffix?: `0x${string}`;
609
+ gas?: bigint;
610
+ gasPrice?: bigint;
611
+ maxFeePerGas?: bigint;
612
+ maxPriorityFeePerGas?: bigint;
613
+ nonce?: number;
614
+ value?: bigint;
615
+ }): Promise<boolean>;
616
+ /**
617
+ * Simulate transferOwnership
618
+ * Returns gas estimate and result without sending transaction
619
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
620
+ */
621
+ transferOwnership(newOwner: `0x${string}`, 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<void>;
633
+ };
634
+ /**
635
+ * Watch contract events
636
+ *
637
+ * @example
638
+ * // Watch all Transfer events
639
+ * const unwatch = contract.watch.Transfer((event) => {
640
+ * console.log('Transfer:', event);
641
+ * });
642
+ *
643
+ * // Stop watching
644
+ * unwatch();
645
+ */
646
+ get watch(): {
647
+ /**
648
+ * Watch Approval events
649
+ * @param callback Function to call when event is emitted
650
+ * @param filter Optional filter for indexed parameters
651
+ * @returns Unwatch function to stop listening
652
+ */
653
+ Approval: (callback: (event: {
654
+ owner: `0x${string}`;
655
+ spender: `0x${string}`;
656
+ value: bigint;
657
+ }) => void, filter?: {
658
+ owner: `0x${string}`;
659
+ spender: `0x${string}`;
660
+ }) => () => void;
661
+ /**
662
+ * Watch OwnershipTransferred events
663
+ * @param callback Function to call when event is emitted
664
+ * @param filter Optional filter for indexed parameters
665
+ * @returns Unwatch function to stop listening
666
+ */
667
+ OwnershipTransferred: (callback: (event: {
668
+ previousOwner: `0x${string}`;
669
+ newOwner: `0x${string}`;
670
+ }) => void, filter?: {
671
+ previousOwner: `0x${string}`;
672
+ newOwner: `0x${string}`;
673
+ }) => () => void;
674
+ /**
675
+ * Watch Transfer events
676
+ * @param callback Function to call when event is emitted
677
+ * @param filter Optional filter for indexed parameters
678
+ * @returns Unwatch function to stop listening
679
+ */
680
+ Transfer: (callback: (event: {
681
+ from: `0x${string}`;
682
+ to: `0x${string}`;
683
+ value: bigint;
684
+ }) => void, filter?: {
685
+ from: `0x${string}`;
686
+ to: `0x${string}`;
687
+ }) => () => void;
688
+ };
689
+ }