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