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