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