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