@gitmyabi/bfi 0.0.0-stage → 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.
package/README.md CHANGED
@@ -1,3 +1,108 @@
1
- # Temporary Holding Version
1
+ # @gitmyabi/bfi
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Auto-generated TypeScript type bindings for **BFI**
4
+
5
+ - **Build ID**: `etherscan-bfi-ded7f871-1796345295735`
6
+ - **Build Number**: 1
7
+ - **Commit**: `2ed4529`
8
+ - **Branch**: `etherscan`
9
+ - **Target**: `ethers-v6`
10
+ - **Contracts**: 1
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install @gitmyabi/bfi@1.0.0
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ### Class-based API (TypeChain-like)
21
+
22
+ ```typescript
23
+ import { createPublicClient, createWalletClient, http } from 'viem';
24
+ import { mainnet } from 'viem/chains';
25
+ import { YourContract } from '@gitmyabi/bfi';
26
+
27
+ const publicClient = createPublicClient({ chain: mainnet, transport: http() });
28
+ const walletClient = createWalletClient({ chain: mainnet, transport: http() });
29
+
30
+ // Create contract instance
31
+ const contract = new YourContract('0x...', { publicClient, walletClient });
32
+
33
+ // Read functions - call directly like TypeChain!
34
+ const result = await contract.yourMethod(param1, param2);
35
+
36
+ // Write functions - also call directly!
37
+ const hash = await contract.transfer('0x...', 1000n);
38
+ ```
39
+
40
+ ### With viem directly
41
+
42
+ ```typescript
43
+ import { createPublicClient, http } from 'viem';
44
+ import { mainnet } from 'viem/chains';
45
+ import { YourContractAbi } from '@gitmyabi/bfi';
46
+
47
+ const client = createPublicClient({
48
+ chain: mainnet,
49
+ transport: http(),
50
+ });
51
+
52
+ // Fully typed contract read
53
+ const result = await client.readContract({
54
+ address: '0x...',
55
+ abi: YourContractAbi,
56
+ functionName: 'yourMethod',
57
+ args: [param1, param2],
58
+ });
59
+
60
+ // Fully typed contract write
61
+ const hash = await client.writeContract({
62
+ address: '0x...',
63
+ abi: YourContractAbi,
64
+ functionName: 'yourMethod',
65
+ args: [param1, param2],
66
+ });
67
+ ```
68
+
69
+ ### With wagmi
70
+
71
+ ```typescript
72
+ import { useReadContract, useWriteContract } from 'wagmi';
73
+ import { YourContractAbi } from '@gitmyabi/bfi';
74
+
75
+ function MyComponent() {
76
+ const { data } = useReadContract({
77
+ address: '0x...',
78
+ abi: YourContractAbi,
79
+ functionName: 'yourMethod',
80
+ args: [param1, param2],
81
+ });
82
+
83
+ const { writeContract } = useWriteContract();
84
+
85
+ const handleWrite = () => {
86
+ writeContract({
87
+ address: '0x...',
88
+ abi: YourContractAbi,
89
+ functionName: 'yourMethod',
90
+ args: [param1, param2],
91
+ });
92
+ };
93
+
94
+ return <button onClick={handleWrite}>Call Contract</button>;
95
+ }
96
+ ```
97
+
98
+ ## Type Safety
99
+
100
+ This package provides full TypeScript type safety for all contract methods, events, and parameters using viem's type system. All ABIs are exported as `const` assertions for maximum type inference.
101
+
102
+ ## Generated Contracts
103
+
104
+ This package includes type bindings for 1 contract(s) generated from ABI artifacts.
105
+
106
+ ## License
107
+
108
+ Apache License 2.0
@@ -0,0 +1,586 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * BETFI ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const BETFIAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "string";
10
+ readonly name: "name";
11
+ readonly type: "string";
12
+ }, {
13
+ readonly internalType: "string";
14
+ readonly name: "symbol";
15
+ readonly type: "string";
16
+ }, {
17
+ readonly internalType: "address";
18
+ readonly name: "owner";
19
+ readonly type: "address";
20
+ }];
21
+ readonly stateMutability: "nonpayable";
22
+ readonly type: "constructor";
23
+ }, {
24
+ readonly anonymous: false;
25
+ readonly inputs: readonly [{
26
+ readonly indexed: true;
27
+ readonly internalType: "address";
28
+ readonly name: "owner";
29
+ readonly type: "address";
30
+ }, {
31
+ readonly indexed: true;
32
+ readonly internalType: "address";
33
+ readonly name: "spender";
34
+ readonly type: "address";
35
+ }, {
36
+ readonly indexed: false;
37
+ readonly internalType: "uint256";
38
+ readonly name: "value";
39
+ readonly type: "uint256";
40
+ }];
41
+ readonly name: "Approval";
42
+ readonly type: "event";
43
+ }, {
44
+ readonly anonymous: false;
45
+ readonly inputs: readonly [{
46
+ readonly indexed: true;
47
+ readonly internalType: "address";
48
+ readonly name: "from";
49
+ readonly type: "address";
50
+ }, {
51
+ readonly indexed: true;
52
+ readonly internalType: "address";
53
+ readonly name: "to";
54
+ readonly type: "address";
55
+ }, {
56
+ readonly indexed: false;
57
+ readonly internalType: "uint256";
58
+ readonly name: "value";
59
+ readonly type: "uint256";
60
+ }];
61
+ readonly name: "Transfer";
62
+ readonly type: "event";
63
+ }, {
64
+ readonly inputs: readonly [{
65
+ readonly internalType: "address";
66
+ readonly name: "owner";
67
+ readonly type: "address";
68
+ }, {
69
+ readonly internalType: "address";
70
+ readonly name: "spender";
71
+ readonly type: "address";
72
+ }];
73
+ readonly name: "allowance";
74
+ readonly outputs: readonly [{
75
+ readonly internalType: "uint256";
76
+ readonly name: "";
77
+ readonly type: "uint256";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }, {
82
+ readonly inputs: readonly [{
83
+ readonly internalType: "address";
84
+ readonly name: "spender";
85
+ readonly type: "address";
86
+ }, {
87
+ readonly internalType: "uint256";
88
+ readonly name: "amount";
89
+ readonly type: "uint256";
90
+ }];
91
+ readonly name: "approve";
92
+ readonly outputs: readonly [{
93
+ readonly internalType: "bool";
94
+ readonly name: "";
95
+ readonly type: "bool";
96
+ }];
97
+ readonly stateMutability: "nonpayable";
98
+ readonly type: "function";
99
+ }, {
100
+ readonly inputs: readonly [{
101
+ readonly internalType: "address";
102
+ readonly name: "account";
103
+ readonly type: "address";
104
+ }];
105
+ readonly name: "balanceOf";
106
+ readonly outputs: readonly [{
107
+ readonly internalType: "uint256";
108
+ readonly name: "";
109
+ readonly type: "uint256";
110
+ }];
111
+ readonly stateMutability: "view";
112
+ readonly type: "function";
113
+ }, {
114
+ readonly inputs: readonly [{
115
+ readonly internalType: "uint256";
116
+ readonly name: "amount";
117
+ readonly type: "uint256";
118
+ }];
119
+ readonly name: "burn";
120
+ readonly outputs: readonly [{
121
+ readonly internalType: "bool";
122
+ readonly name: "";
123
+ readonly type: "bool";
124
+ }];
125
+ readonly stateMutability: "nonpayable";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly inputs: readonly [];
129
+ readonly name: "decimals";
130
+ readonly outputs: readonly [{
131
+ readonly internalType: "uint8";
132
+ readonly name: "";
133
+ readonly type: "uint8";
134
+ }];
135
+ readonly stateMutability: "view";
136
+ readonly type: "function";
137
+ }, {
138
+ readonly inputs: readonly [{
139
+ readonly internalType: "address";
140
+ readonly name: "spender";
141
+ readonly type: "address";
142
+ }, {
143
+ readonly internalType: "uint256";
144
+ readonly name: "subtractedValue";
145
+ readonly type: "uint256";
146
+ }];
147
+ readonly name: "decreaseAllowance";
148
+ readonly outputs: readonly [{
149
+ readonly internalType: "bool";
150
+ readonly name: "";
151
+ readonly type: "bool";
152
+ }];
153
+ readonly stateMutability: "nonpayable";
154
+ readonly type: "function";
155
+ }, {
156
+ readonly inputs: readonly [{
157
+ readonly internalType: "address";
158
+ readonly name: "spender";
159
+ readonly type: "address";
160
+ }, {
161
+ readonly internalType: "uint256";
162
+ readonly name: "addedValue";
163
+ readonly type: "uint256";
164
+ }];
165
+ readonly name: "increaseAllowance";
166
+ readonly outputs: readonly [{
167
+ readonly internalType: "bool";
168
+ readonly name: "";
169
+ readonly type: "bool";
170
+ }];
171
+ readonly stateMutability: "nonpayable";
172
+ readonly type: "function";
173
+ }, {
174
+ readonly inputs: readonly [];
175
+ readonly name: "name";
176
+ readonly outputs: readonly [{
177
+ readonly internalType: "string";
178
+ readonly name: "";
179
+ readonly type: "string";
180
+ }];
181
+ readonly stateMutability: "view";
182
+ readonly type: "function";
183
+ }, {
184
+ readonly inputs: readonly [];
185
+ readonly name: "symbol";
186
+ readonly outputs: readonly [{
187
+ readonly internalType: "string";
188
+ readonly name: "";
189
+ readonly type: "string";
190
+ }];
191
+ readonly stateMutability: "view";
192
+ readonly type: "function";
193
+ }, {
194
+ readonly inputs: readonly [];
195
+ readonly name: "totalSupply";
196
+ readonly outputs: readonly [{
197
+ readonly internalType: "uint256";
198
+ readonly name: "";
199
+ readonly type: "uint256";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ readonly type: "function";
203
+ }, {
204
+ readonly inputs: readonly [{
205
+ readonly internalType: "address";
206
+ readonly name: "recipient";
207
+ readonly type: "address";
208
+ }, {
209
+ readonly internalType: "uint256";
210
+ readonly name: "amount";
211
+ readonly type: "uint256";
212
+ }];
213
+ readonly name: "transfer";
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 internalType: "address";
224
+ readonly name: "sender";
225
+ readonly type: "address";
226
+ }, {
227
+ readonly internalType: "address";
228
+ readonly name: "recipient";
229
+ readonly type: "address";
230
+ }, {
231
+ readonly internalType: "uint256";
232
+ readonly name: "amount";
233
+ readonly type: "uint256";
234
+ }];
235
+ readonly name: "transferFrom";
236
+ readonly outputs: readonly [{
237
+ readonly internalType: "bool";
238
+ readonly name: "";
239
+ readonly type: "bool";
240
+ }];
241
+ readonly stateMutability: "nonpayable";
242
+ readonly type: "function";
243
+ }];
244
+ /**
245
+ * Type-safe ABI for BETFI
246
+ */
247
+ export type BETFIAbi = typeof BETFIAbi;
248
+ /**
249
+ * Contract instance type for BETFI
250
+ */
251
+ export type BETFIContract = any;
252
+ /**
253
+ * BETFI Contract Class
254
+ *
255
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
256
+ *
257
+ * @example
258
+ * ```typescript
259
+ * import { createPublicClient, createWalletClient, http } from 'viem';
260
+ * import { mainnet } from 'viem/chains';
261
+ * import { BETFI } from 'BETFI';
262
+ *
263
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
264
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
265
+ *
266
+ * const contract = new BETFI('0x...', { publicClient, walletClient });
267
+ *
268
+ * // Read functions
269
+ * const result = await contract.balanceOf('0x...');
270
+ *
271
+ * // Write functions
272
+ * const hash = await contract.transfer('0x...', 1000n);
273
+ *
274
+ * // Simulate transactions (dry-run)
275
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
276
+ * console.log('Gas estimate:', simulation.request.gas);
277
+ *
278
+ * // Watch events
279
+ * const unwatch = contract.watch.Transfer((event) => {
280
+ * console.log('Transfer event:', event);
281
+ * });
282
+ * ```
283
+ */
284
+ export declare class BETFI {
285
+ private contract;
286
+ private contractAddress;
287
+ private publicClient;
288
+ constructor(address: Address, clients: {
289
+ publicClient: PublicClient;
290
+ walletClient?: WalletClient;
291
+ });
292
+ /**
293
+ * Get the contract address
294
+ */
295
+ get address(): Address;
296
+ /**
297
+ * Get the underlying viem contract instance.
298
+ */
299
+ getContract(): BETFIContract;
300
+ /**
301
+ * allowance
302
+ * view
303
+ */
304
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
305
+ /**
306
+ * balanceOf
307
+ * view
308
+ */
309
+ balanceOf(account: `0x${string}`): Promise<bigint>;
310
+ /**
311
+ * decimals
312
+ * view
313
+ */
314
+ decimals(): Promise<bigint>;
315
+ /**
316
+ * name
317
+ * view
318
+ */
319
+ name(): Promise<string>;
320
+ /**
321
+ * symbol
322
+ * view
323
+ */
324
+ symbol(): Promise<string>;
325
+ /**
326
+ * totalSupply
327
+ * view
328
+ */
329
+ totalSupply(): Promise<bigint>;
330
+ /**
331
+ * approve
332
+ * nonpayable
333
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
334
+ */
335
+ approve(spender: `0x${string}`, amount: bigint, options?: {
336
+ accessList?: import('viem').AccessList;
337
+ authorizationList?: import('viem').AuthorizationList;
338
+ chain?: import('viem').Chain | null;
339
+ dataSuffix?: `0x${string}`;
340
+ gas?: bigint;
341
+ gasPrice?: bigint;
342
+ maxFeePerGas?: bigint;
343
+ maxPriorityFeePerGas?: bigint;
344
+ nonce?: number;
345
+ value?: bigint;
346
+ }): Promise<`0x${string}`>;
347
+ /**
348
+ * burn
349
+ * nonpayable
350
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
351
+ */
352
+ burn(amount: bigint, options?: {
353
+ accessList?: import('viem').AccessList;
354
+ authorizationList?: import('viem').AuthorizationList;
355
+ chain?: import('viem').Chain | null;
356
+ dataSuffix?: `0x${string}`;
357
+ gas?: bigint;
358
+ gasPrice?: bigint;
359
+ maxFeePerGas?: bigint;
360
+ maxPriorityFeePerGas?: bigint;
361
+ nonce?: number;
362
+ value?: bigint;
363
+ }): Promise<`0x${string}`>;
364
+ /**
365
+ * decreaseAllowance
366
+ * nonpayable
367
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
368
+ */
369
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
370
+ accessList?: import('viem').AccessList;
371
+ authorizationList?: import('viem').AuthorizationList;
372
+ chain?: import('viem').Chain | null;
373
+ dataSuffix?: `0x${string}`;
374
+ gas?: bigint;
375
+ gasPrice?: bigint;
376
+ maxFeePerGas?: bigint;
377
+ maxPriorityFeePerGas?: bigint;
378
+ nonce?: number;
379
+ value?: bigint;
380
+ }): Promise<`0x${string}`>;
381
+ /**
382
+ * increaseAllowance
383
+ * nonpayable
384
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
385
+ */
386
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
387
+ accessList?: import('viem').AccessList;
388
+ authorizationList?: import('viem').AuthorizationList;
389
+ chain?: import('viem').Chain | null;
390
+ dataSuffix?: `0x${string}`;
391
+ gas?: bigint;
392
+ gasPrice?: bigint;
393
+ maxFeePerGas?: bigint;
394
+ maxPriorityFeePerGas?: bigint;
395
+ nonce?: number;
396
+ value?: bigint;
397
+ }): Promise<`0x${string}`>;
398
+ /**
399
+ * transfer
400
+ * nonpayable
401
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
402
+ */
403
+ transfer(recipient: `0x${string}`, amount: bigint, options?: {
404
+ accessList?: import('viem').AccessList;
405
+ authorizationList?: import('viem').AuthorizationList;
406
+ chain?: import('viem').Chain | null;
407
+ dataSuffix?: `0x${string}`;
408
+ gas?: bigint;
409
+ gasPrice?: bigint;
410
+ maxFeePerGas?: bigint;
411
+ maxPriorityFeePerGas?: bigint;
412
+ nonce?: number;
413
+ value?: bigint;
414
+ }): Promise<`0x${string}`>;
415
+ /**
416
+ * transferFrom
417
+ * nonpayable
418
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
419
+ */
420
+ transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
421
+ accessList?: import('viem').AccessList;
422
+ authorizationList?: import('viem').AuthorizationList;
423
+ chain?: import('viem').Chain | null;
424
+ dataSuffix?: `0x${string}`;
425
+ gas?: bigint;
426
+ gasPrice?: bigint;
427
+ maxFeePerGas?: bigint;
428
+ maxPriorityFeePerGas?: bigint;
429
+ nonce?: number;
430
+ value?: bigint;
431
+ }): Promise<`0x${string}`>;
432
+ /**
433
+ * Simulate contract write operations (dry-run without sending transaction)
434
+ *
435
+ * @example
436
+ * const result = await contract.simulate.transfer('0x...', 1000n);
437
+ * console.log('Gas estimate:', result.request.gas);
438
+ * console.log('Would succeed:', result.result);
439
+ */
440
+ get simulate(): {
441
+ /**
442
+ * Simulate approve
443
+ * Returns gas estimate and result without sending transaction
444
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
445
+ */
446
+ approve(spender: `0x${string}`, amount: bigint, options?: {
447
+ accessList?: import("viem").AccessList;
448
+ authorizationList?: import("viem").AuthorizationList;
449
+ chain?: import("viem").Chain | null;
450
+ dataSuffix?: `0x${string}`;
451
+ gas?: bigint;
452
+ gasPrice?: bigint;
453
+ maxFeePerGas?: bigint;
454
+ maxPriorityFeePerGas?: bigint;
455
+ nonce?: number;
456
+ value?: bigint;
457
+ }): Promise<boolean>;
458
+ /**
459
+ * Simulate burn
460
+ * Returns gas estimate and result without sending transaction
461
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
462
+ */
463
+ burn(amount: bigint, options?: {
464
+ accessList?: import("viem").AccessList;
465
+ authorizationList?: import("viem").AuthorizationList;
466
+ chain?: import("viem").Chain | null;
467
+ dataSuffix?: `0x${string}`;
468
+ gas?: bigint;
469
+ gasPrice?: bigint;
470
+ maxFeePerGas?: bigint;
471
+ maxPriorityFeePerGas?: bigint;
472
+ nonce?: number;
473
+ value?: bigint;
474
+ }): Promise<boolean>;
475
+ /**
476
+ * Simulate decreaseAllowance
477
+ * Returns gas estimate and result without sending transaction
478
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
479
+ */
480
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
481
+ accessList?: import("viem").AccessList;
482
+ authorizationList?: import("viem").AuthorizationList;
483
+ chain?: import("viem").Chain | null;
484
+ dataSuffix?: `0x${string}`;
485
+ gas?: bigint;
486
+ gasPrice?: bigint;
487
+ maxFeePerGas?: bigint;
488
+ maxPriorityFeePerGas?: bigint;
489
+ nonce?: number;
490
+ value?: bigint;
491
+ }): Promise<boolean>;
492
+ /**
493
+ * Simulate increaseAllowance
494
+ * Returns gas estimate and result without sending transaction
495
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
496
+ */
497
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
498
+ accessList?: import("viem").AccessList;
499
+ authorizationList?: import("viem").AuthorizationList;
500
+ chain?: import("viem").Chain | null;
501
+ dataSuffix?: `0x${string}`;
502
+ gas?: bigint;
503
+ gasPrice?: bigint;
504
+ maxFeePerGas?: bigint;
505
+ maxPriorityFeePerGas?: bigint;
506
+ nonce?: number;
507
+ value?: bigint;
508
+ }): Promise<boolean>;
509
+ /**
510
+ * Simulate transfer
511
+ * Returns gas estimate and result without sending transaction
512
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
513
+ */
514
+ transfer(recipient: `0x${string}`, amount: bigint, options?: {
515
+ accessList?: import("viem").AccessList;
516
+ authorizationList?: import("viem").AuthorizationList;
517
+ chain?: import("viem").Chain | null;
518
+ dataSuffix?: `0x${string}`;
519
+ gas?: bigint;
520
+ gasPrice?: bigint;
521
+ maxFeePerGas?: bigint;
522
+ maxPriorityFeePerGas?: bigint;
523
+ nonce?: number;
524
+ value?: bigint;
525
+ }): Promise<boolean>;
526
+ /**
527
+ * Simulate transferFrom
528
+ * Returns gas estimate and result without sending transaction
529
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
530
+ */
531
+ transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
532
+ accessList?: import("viem").AccessList;
533
+ authorizationList?: import("viem").AuthorizationList;
534
+ chain?: import("viem").Chain | null;
535
+ dataSuffix?: `0x${string}`;
536
+ gas?: bigint;
537
+ gasPrice?: bigint;
538
+ maxFeePerGas?: bigint;
539
+ maxPriorityFeePerGas?: bigint;
540
+ nonce?: number;
541
+ value?: bigint;
542
+ }): Promise<boolean>;
543
+ };
544
+ /**
545
+ * Watch contract events
546
+ *
547
+ * @example
548
+ * // Watch all Transfer events
549
+ * const unwatch = contract.watch.Transfer((event) => {
550
+ * console.log('Transfer:', event);
551
+ * });
552
+ *
553
+ * // Stop watching
554
+ * unwatch();
555
+ */
556
+ get watch(): {
557
+ /**
558
+ * Watch Approval events
559
+ * @param callback Function to call when event is emitted
560
+ * @param filter Optional filter for indexed parameters
561
+ * @returns Unwatch function to stop listening
562
+ */
563
+ Approval: (callback: (event: {
564
+ owner: `0x${string}`;
565
+ spender: `0x${string}`;
566
+ value: bigint;
567
+ }) => void, filter?: {
568
+ owner?: `0x${string}` | `0x${string}`[] | null;
569
+ spender?: `0x${string}` | `0x${string}`[] | null;
570
+ }) => () => void;
571
+ /**
572
+ * Watch Transfer events
573
+ * @param callback Function to call when event is emitted
574
+ * @param filter Optional filter for indexed parameters
575
+ * @returns Unwatch function to stop listening
576
+ */
577
+ Transfer: (callback: (event: {
578
+ from: `0x${string}`;
579
+ to: `0x${string}`;
580
+ value: bigint;
581
+ }) => void, filter?: {
582
+ from?: `0x${string}` | `0x${string}`[] | null;
583
+ to?: `0x${string}` | `0x${string}`[] | null;
584
+ }) => () => void;
585
+ };
586
+ }