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