@gitmyabi/usdt 1.0.19 → 1.0.21

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.
@@ -1,773 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * USDToken_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const USDToken_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: "string";
36
- readonly name: "newName";
37
- readonly type: "string";
38
- }];
39
- readonly name: "NameChanged";
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 name: "OwnershipRenounced";
50
- readonly type: "event";
51
- }, {
52
- readonly anonymous: false;
53
- readonly inputs: readonly [{
54
- readonly indexed: false;
55
- readonly internalType: "string";
56
- readonly name: "newSymbol";
57
- readonly type: "string";
58
- }];
59
- readonly name: "SymbolChanged";
60
- readonly type: "event";
61
- }, {
62
- readonly anonymous: false;
63
- readonly inputs: readonly [{
64
- readonly indexed: true;
65
- readonly internalType: "address";
66
- readonly name: "from";
67
- readonly type: "address";
68
- }, {
69
- readonly indexed: true;
70
- readonly internalType: "address";
71
- readonly name: "to";
72
- readonly type: "address";
73
- }, {
74
- readonly indexed: false;
75
- readonly internalType: "uint256";
76
- readonly name: "value";
77
- readonly type: "uint256";
78
- }];
79
- readonly name: "Transfer";
80
- readonly type: "event";
81
- }, {
82
- readonly inputs: readonly [{
83
- readonly internalType: "address";
84
- readonly name: "";
85
- readonly type: "address";
86
- }, {
87
- readonly internalType: "address";
88
- readonly name: "";
89
- readonly type: "address";
90
- }];
91
- readonly name: "allowance";
92
- readonly outputs: readonly [{
93
- readonly internalType: "uint256";
94
- readonly name: "";
95
- readonly type: "uint256";
96
- }];
97
- readonly stateMutability: "view";
98
- readonly type: "function";
99
- }, {
100
- readonly inputs: readonly [{
101
- readonly internalType: "address";
102
- readonly name: "spender";
103
- readonly type: "address";
104
- }, {
105
- readonly internalType: "uint256";
106
- readonly name: "amount";
107
- readonly type: "uint256";
108
- }];
109
- readonly name: "approve";
110
- readonly outputs: readonly [{
111
- readonly internalType: "bool";
112
- readonly name: "";
113
- readonly type: "bool";
114
- }];
115
- readonly stateMutability: "nonpayable";
116
- readonly type: "function";
117
- }, {
118
- readonly inputs: readonly [{
119
- readonly internalType: "address";
120
- readonly name: "";
121
- readonly type: "address";
122
- }];
123
- readonly name: "balanceOf";
124
- readonly outputs: readonly [{
125
- readonly internalType: "uint256";
126
- readonly name: "";
127
- readonly type: "uint256";
128
- }];
129
- readonly stateMutability: "view";
130
- readonly type: "function";
131
- }, {
132
- readonly inputs: readonly [];
133
- readonly name: "decimals";
134
- readonly outputs: readonly [{
135
- readonly internalType: "uint8";
136
- readonly name: "";
137
- readonly type: "uint8";
138
- }];
139
- readonly stateMutability: "view";
140
- readonly type: "function";
141
- }, {
142
- readonly inputs: readonly [{
143
- readonly internalType: "address";
144
- readonly name: "spender";
145
- readonly type: "address";
146
- }, {
147
- readonly internalType: "uint256";
148
- readonly name: "subtractedValue";
149
- readonly type: "uint256";
150
- }];
151
- readonly name: "decreaseAllowance";
152
- readonly outputs: readonly [{
153
- readonly internalType: "bool";
154
- readonly name: "";
155
- readonly type: "bool";
156
- }];
157
- readonly stateMutability: "nonpayable";
158
- readonly type: "function";
159
- }, {
160
- readonly inputs: readonly [{
161
- readonly internalType: "address";
162
- readonly name: "spender";
163
- readonly type: "address";
164
- }, {
165
- readonly internalType: "uint256";
166
- readonly name: "addedValue";
167
- readonly type: "uint256";
168
- }];
169
- readonly name: "increaseAllowance";
170
- readonly outputs: readonly [{
171
- readonly internalType: "bool";
172
- readonly name: "";
173
- readonly type: "bool";
174
- }];
175
- readonly stateMutability: "nonpayable";
176
- readonly type: "function";
177
- }, {
178
- readonly inputs: readonly [];
179
- readonly name: "isRenounced";
180
- readonly outputs: readonly [{
181
- readonly internalType: "bool";
182
- readonly name: "";
183
- readonly type: "bool";
184
- }];
185
- readonly stateMutability: "view";
186
- readonly type: "function";
187
- }, {
188
- readonly inputs: readonly [];
189
- readonly name: "name";
190
- readonly outputs: readonly [{
191
- readonly internalType: "string";
192
- readonly name: "";
193
- readonly type: "string";
194
- }];
195
- readonly stateMutability: "view";
196
- readonly type: "function";
197
- }, {
198
- readonly inputs: readonly [];
199
- readonly name: "owner";
200
- readonly outputs: readonly [{
201
- readonly internalType: "address";
202
- readonly name: "";
203
- readonly type: "address";
204
- }];
205
- readonly stateMutability: "view";
206
- readonly type: "function";
207
- }, {
208
- readonly inputs: readonly [];
209
- readonly name: "renounceOwnership";
210
- readonly outputs: readonly [];
211
- readonly stateMutability: "nonpayable";
212
- readonly type: "function";
213
- }, {
214
- readonly inputs: readonly [];
215
- readonly name: "renounced";
216
- readonly outputs: readonly [{
217
- readonly internalType: "bool";
218
- readonly name: "";
219
- readonly type: "bool";
220
- }];
221
- readonly stateMutability: "view";
222
- readonly type: "function";
223
- }, {
224
- readonly inputs: readonly [{
225
- readonly internalType: "string";
226
- readonly name: "newName";
227
- readonly type: "string";
228
- }];
229
- readonly name: "setName";
230
- readonly outputs: readonly [];
231
- readonly stateMutability: "nonpayable";
232
- readonly type: "function";
233
- }, {
234
- readonly inputs: readonly [{
235
- readonly internalType: "string";
236
- readonly name: "newSymbol";
237
- readonly type: "string";
238
- }];
239
- readonly name: "setSymbol";
240
- readonly outputs: readonly [];
241
- readonly stateMutability: "nonpayable";
242
- readonly type: "function";
243
- }, {
244
- readonly inputs: readonly [];
245
- readonly name: "symbol";
246
- readonly outputs: readonly [{
247
- readonly internalType: "string";
248
- readonly name: "";
249
- readonly type: "string";
250
- }];
251
- readonly stateMutability: "view";
252
- readonly type: "function";
253
- }, {
254
- readonly inputs: readonly [];
255
- readonly name: "tokenImage";
256
- readonly outputs: readonly [{
257
- readonly internalType: "string";
258
- readonly name: "";
259
- readonly type: "string";
260
- }];
261
- readonly stateMutability: "pure";
262
- readonly type: "function";
263
- }, {
264
- readonly inputs: readonly [];
265
- readonly name: "totalSupply";
266
- readonly outputs: readonly [{
267
- readonly internalType: "uint256";
268
- readonly name: "";
269
- readonly type: "uint256";
270
- }];
271
- readonly stateMutability: "view";
272
- readonly type: "function";
273
- }, {
274
- readonly inputs: readonly [{
275
- readonly internalType: "address";
276
- readonly name: "to";
277
- readonly type: "address";
278
- }, {
279
- readonly internalType: "uint256";
280
- readonly name: "amount";
281
- readonly type: "uint256";
282
- }];
283
- readonly name: "transfer";
284
- readonly outputs: readonly [{
285
- readonly internalType: "bool";
286
- readonly name: "";
287
- readonly type: "bool";
288
- }];
289
- readonly stateMutability: "nonpayable";
290
- readonly type: "function";
291
- }, {
292
- readonly inputs: readonly [{
293
- readonly internalType: "address";
294
- readonly name: "from";
295
- readonly type: "address";
296
- }, {
297
- readonly internalType: "address";
298
- readonly name: "to";
299
- readonly type: "address";
300
- }, {
301
- readonly internalType: "uint256";
302
- readonly name: "amount";
303
- readonly type: "uint256";
304
- }];
305
- readonly name: "transferFrom";
306
- readonly outputs: readonly [{
307
- readonly internalType: "bool";
308
- readonly name: "";
309
- readonly type: "bool";
310
- }];
311
- readonly stateMutability: "nonpayable";
312
- readonly type: "function";
313
- }];
314
- /**
315
- * Type-safe ABI for USDToken_json
316
- */
317
- export type USDToken_jsonAbi = typeof USDToken_jsonAbi;
318
- /**
319
- * Contract instance type for USDToken_json
320
- */
321
- export type USDToken_jsonContract = any;
322
- /**
323
- * USDToken_json Contract Class
324
- *
325
- * Provides a class-based API similar to TypeChain for interacting with the contract.
326
- *
327
- * @example
328
- * ```typescript
329
- * import { createPublicClient, createWalletClient, http } from 'viem';
330
- * import { mainnet } from 'viem/chains';
331
- * import { USDToken_json } from 'USDToken_json';
332
- *
333
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
334
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
335
- *
336
- * const contract = new USDToken_json('0x...', { publicClient, walletClient });
337
- *
338
- * // Read functions
339
- * const result = await contract.balanceOf('0x...');
340
- *
341
- * // Write functions
342
- * const hash = await contract.transfer('0x...', 1000n);
343
- *
344
- * // Simulate transactions (dry-run)
345
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
346
- * console.log('Gas estimate:', simulation.request.gas);
347
- *
348
- * // Watch events
349
- * const unwatch = contract.watch.Transfer((event) => {
350
- * console.log('Transfer event:', event);
351
- * });
352
- * ```
353
- */
354
- export declare class USDToken_json {
355
- private contract;
356
- private contractAddress;
357
- private publicClient;
358
- constructor(address: Address, clients: {
359
- publicClient: PublicClient;
360
- walletClient?: WalletClient;
361
- });
362
- /**
363
- * Get the contract address
364
- */
365
- get address(): Address;
366
- /**
367
- * Get the underlying viem contract instance
368
- */
369
- getContract(): USDToken_jsonContract;
370
- /**
371
- * allowance
372
- * view
373
- */
374
- allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
375
- /**
376
- * balanceOf
377
- * view
378
- */
379
- balanceOf(arg0: `0x${string}`): Promise<bigint>;
380
- /**
381
- * decimals
382
- * view
383
- */
384
- decimals(): Promise<bigint>;
385
- /**
386
- * isRenounced
387
- * view
388
- */
389
- isRenounced(): Promise<boolean>;
390
- /**
391
- * name
392
- * view
393
- */
394
- name(): Promise<string>;
395
- /**
396
- * owner
397
- * view
398
- */
399
- owner(): Promise<`0x${string}`>;
400
- /**
401
- * renounced
402
- * view
403
- */
404
- renounced(): Promise<boolean>;
405
- /**
406
- * symbol
407
- * view
408
- */
409
- symbol(): Promise<string>;
410
- /**
411
- * tokenImage
412
- * pure
413
- */
414
- tokenImage(): 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}`, amount: 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
- * decreaseAllowance
439
- * nonpayable
440
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
441
- */
442
- decreaseAllowance(spender: `0x${string}`, subtractedValue: 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
- * increaseAllowance
456
- * nonpayable
457
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
458
- */
459
- increaseAllowance(spender: `0x${string}`, addedValue: bigint, 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
- * renounceOwnership
473
- * nonpayable
474
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
475
- */
476
- renounceOwnership(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
- * setName
490
- * nonpayable
491
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
492
- */
493
- setName(newName: string, 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
- * setSymbol
507
- * nonpayable
508
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
509
- */
510
- setSymbol(newSymbol: 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
- * transfer
524
- * nonpayable
525
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
526
- */
527
- transfer(to: `0x${string}`, amount: bigint, options?: {
528
- accessList?: import('viem').AccessList;
529
- authorizationList?: import('viem').AuthorizationList;
530
- chain?: import('viem').Chain | null;
531
- dataSuffix?: `0x${string}`;
532
- gas?: bigint;
533
- gasPrice?: bigint;
534
- maxFeePerGas?: bigint;
535
- maxPriorityFeePerGas?: bigint;
536
- nonce?: number;
537
- value?: bigint;
538
- }): Promise<`0x${string}`>;
539
- /**
540
- * transferFrom
541
- * nonpayable
542
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
543
- */
544
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
545
- accessList?: import('viem').AccessList;
546
- authorizationList?: import('viem').AuthorizationList;
547
- chain?: import('viem').Chain | null;
548
- dataSuffix?: `0x${string}`;
549
- gas?: bigint;
550
- gasPrice?: bigint;
551
- maxFeePerGas?: bigint;
552
- maxPriorityFeePerGas?: bigint;
553
- nonce?: number;
554
- value?: bigint;
555
- }): Promise<`0x${string}`>;
556
- /**
557
- * Simulate contract write operations (dry-run without sending transaction)
558
- *
559
- * @example
560
- * const result = await contract.simulate.transfer('0x...', 1000n);
561
- * console.log('Gas estimate:', result.request.gas);
562
- * console.log('Would succeed:', result.result);
563
- */
564
- get simulate(): {
565
- /**
566
- * Simulate approve
567
- * Returns gas estimate and result without sending transaction
568
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
569
- */
570
- approve(spender: `0x${string}`, amount: bigint, options?: {
571
- accessList?: import("viem").AccessList;
572
- authorizationList?: import("viem").AuthorizationList;
573
- chain?: import("viem").Chain | null;
574
- dataSuffix?: `0x${string}`;
575
- gas?: bigint;
576
- gasPrice?: bigint;
577
- maxFeePerGas?: bigint;
578
- maxPriorityFeePerGas?: bigint;
579
- nonce?: number;
580
- value?: bigint;
581
- }): Promise<boolean>;
582
- /**
583
- * Simulate decreaseAllowance
584
- * Returns gas estimate and result without sending transaction
585
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
586
- */
587
- decreaseAllowance(spender: `0x${string}`, subtractedValue: 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 increaseAllowance
601
- * Returns gas estimate and result without sending transaction
602
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
603
- */
604
- increaseAllowance(spender: `0x${string}`, addedValue: 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 renounceOwnership
618
- * Returns gas estimate and result without sending transaction
619
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
620
- */
621
- renounceOwnership(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
- * Simulate setName
635
- * Returns gas estimate and result without sending transaction
636
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
637
- */
638
- setName(newName: string, options?: {
639
- accessList?: import("viem").AccessList;
640
- authorizationList?: import("viem").AuthorizationList;
641
- chain?: import("viem").Chain | null;
642
- dataSuffix?: `0x${string}`;
643
- gas?: bigint;
644
- gasPrice?: bigint;
645
- maxFeePerGas?: bigint;
646
- maxPriorityFeePerGas?: bigint;
647
- nonce?: number;
648
- value?: bigint;
649
- }): Promise<void>;
650
- /**
651
- * Simulate setSymbol
652
- * Returns gas estimate and result without sending transaction
653
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
654
- */
655
- setSymbol(newSymbol: string, options?: {
656
- accessList?: import("viem").AccessList;
657
- authorizationList?: import("viem").AuthorizationList;
658
- chain?: import("viem").Chain | null;
659
- dataSuffix?: `0x${string}`;
660
- gas?: bigint;
661
- gasPrice?: bigint;
662
- maxFeePerGas?: bigint;
663
- maxPriorityFeePerGas?: bigint;
664
- nonce?: number;
665
- value?: bigint;
666
- }): Promise<void>;
667
- /**
668
- * Simulate transfer
669
- * Returns gas estimate and result without sending transaction
670
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
- */
672
- transfer(to: `0x${string}`, amount: bigint, options?: {
673
- accessList?: import("viem").AccessList;
674
- authorizationList?: import("viem").AuthorizationList;
675
- chain?: import("viem").Chain | null;
676
- dataSuffix?: `0x${string}`;
677
- gas?: bigint;
678
- gasPrice?: bigint;
679
- maxFeePerGas?: bigint;
680
- maxPriorityFeePerGas?: bigint;
681
- nonce?: number;
682
- value?: bigint;
683
- }): Promise<boolean>;
684
- /**
685
- * Simulate transferFrom
686
- * Returns gas estimate and result without sending transaction
687
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
688
- */
689
- transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
690
- accessList?: import("viem").AccessList;
691
- authorizationList?: import("viem").AuthorizationList;
692
- chain?: import("viem").Chain | null;
693
- dataSuffix?: `0x${string}`;
694
- gas?: bigint;
695
- gasPrice?: bigint;
696
- maxFeePerGas?: bigint;
697
- maxPriorityFeePerGas?: bigint;
698
- nonce?: number;
699
- value?: bigint;
700
- }): Promise<boolean>;
701
- };
702
- /**
703
- * Watch contract events
704
- *
705
- * @example
706
- * // Watch all Transfer events
707
- * const unwatch = contract.watch.Transfer((event) => {
708
- * console.log('Transfer:', event);
709
- * });
710
- *
711
- * // Stop watching
712
- * unwatch();
713
- */
714
- get watch(): {
715
- /**
716
- * Watch Approval events
717
- * @param callback Function to call when event is emitted
718
- * @param filter Optional filter for indexed parameters
719
- * @returns Unwatch function to stop listening
720
- */
721
- Approval: (callback: (event: {
722
- owner: `0x${string}`;
723
- spender: `0x${string}`;
724
- value: bigint;
725
- }) => void, filter?: {
726
- owner: `0x${string}`;
727
- spender: `0x${string}`;
728
- }) => () => void;
729
- /**
730
- * Watch NameChanged events
731
- * @param callback Function to call when event is emitted
732
- * @param filter Optional filter for indexed parameters
733
- * @returns Unwatch function to stop listening
734
- */
735
- NameChanged: (callback: (event: {
736
- newName: string;
737
- }) => void) => () => void;
738
- /**
739
- * Watch OwnershipRenounced events
740
- * @param callback Function to call when event is emitted
741
- * @param filter Optional filter for indexed parameters
742
- * @returns Unwatch function to stop listening
743
- */
744
- OwnershipRenounced: (callback: (event: {
745
- previousOwner: `0x${string}`;
746
- }) => void, filter?: {
747
- previousOwner: `0x${string}`;
748
- }) => () => void;
749
- /**
750
- * Watch SymbolChanged events
751
- * @param callback Function to call when event is emitted
752
- * @param filter Optional filter for indexed parameters
753
- * @returns Unwatch function to stop listening
754
- */
755
- SymbolChanged: (callback: (event: {
756
- newSymbol: string;
757
- }) => void) => () => void;
758
- /**
759
- * Watch Transfer events
760
- * @param callback Function to call when event is emitted
761
- * @param filter Optional filter for indexed parameters
762
- * @returns Unwatch function to stop listening
763
- */
764
- Transfer: (callback: (event: {
765
- from: `0x${string}`;
766
- to: `0x${string}`;
767
- value: bigint;
768
- }) => void, filter?: {
769
- from: `0x${string}`;
770
- to: `0x${string}`;
771
- }) => () => void;
772
- };
773
- }