@gitmyabi/hyb 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,1330 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * ShareToken ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const ShareTokenAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "uint8";
10
+ readonly name: "decimals_";
11
+ readonly type: "uint8";
12
+ }];
13
+ readonly stateMutability: "nonpayable";
14
+ readonly type: "constructor";
15
+ }, {
16
+ readonly inputs: readonly [];
17
+ readonly name: "ExceedsMaxSupply";
18
+ readonly type: "error";
19
+ }, {
20
+ readonly inputs: readonly [];
21
+ readonly name: "FileUnrecognizedParam";
22
+ readonly type: "error";
23
+ }, {
24
+ readonly inputs: readonly [];
25
+ readonly name: "InsufficientAllowance";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [];
29
+ readonly name: "InsufficientBalance";
30
+ readonly type: "error";
31
+ }, {
32
+ readonly inputs: readonly [];
33
+ readonly name: "InvalidAddress";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "InvalidPermit";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "InvalidSigner";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly inputs: readonly [];
45
+ readonly name: "NotAuthorized";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [];
49
+ readonly name: "NotAuthorizedOrHook";
50
+ readonly type: "error";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "PermitExpired";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [];
57
+ readonly name: "RestrictionsFailed";
58
+ readonly type: "error";
59
+ }, {
60
+ readonly inputs: readonly [];
61
+ readonly name: "Uint128_Overflow";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly anonymous: false;
65
+ readonly inputs: readonly [{
66
+ readonly indexed: true;
67
+ readonly internalType: "address";
68
+ readonly name: "owner";
69
+ readonly type: "address";
70
+ }, {
71
+ readonly indexed: true;
72
+ readonly internalType: "address";
73
+ readonly name: "spender";
74
+ readonly type: "address";
75
+ }, {
76
+ readonly indexed: false;
77
+ readonly internalType: "uint256";
78
+ readonly name: "value";
79
+ readonly type: "uint256";
80
+ }];
81
+ readonly name: "Approval";
82
+ readonly type: "event";
83
+ }, {
84
+ readonly anonymous: false;
85
+ readonly inputs: readonly [{
86
+ readonly indexed: true;
87
+ readonly internalType: "address";
88
+ readonly name: "user";
89
+ readonly type: "address";
90
+ }];
91
+ readonly name: "Deny";
92
+ readonly type: "event";
93
+ }, {
94
+ readonly anonymous: false;
95
+ readonly inputs: readonly [{
96
+ readonly indexed: true;
97
+ readonly internalType: "bytes32";
98
+ readonly name: "what";
99
+ readonly type: "bytes32";
100
+ }, {
101
+ readonly indexed: false;
102
+ readonly internalType: "address";
103
+ readonly name: "data";
104
+ readonly type: "address";
105
+ }];
106
+ readonly name: "File";
107
+ readonly type: "event";
108
+ }, {
109
+ readonly anonymous: false;
110
+ readonly inputs: readonly [{
111
+ readonly indexed: true;
112
+ readonly internalType: "bytes32";
113
+ readonly name: "what";
114
+ readonly type: "bytes32";
115
+ }, {
116
+ readonly indexed: false;
117
+ readonly internalType: "string";
118
+ readonly name: "data";
119
+ readonly type: "string";
120
+ }];
121
+ readonly name: "File";
122
+ readonly type: "event";
123
+ }, {
124
+ readonly anonymous: false;
125
+ readonly inputs: readonly [{
126
+ readonly indexed: true;
127
+ readonly internalType: "address";
128
+ readonly name: "user";
129
+ readonly type: "address";
130
+ }];
131
+ readonly name: "Rely";
132
+ readonly type: "event";
133
+ }, {
134
+ readonly anonymous: false;
135
+ readonly inputs: readonly [{
136
+ readonly indexed: true;
137
+ readonly internalType: "address";
138
+ readonly name: "user";
139
+ readonly type: "address";
140
+ }, {
141
+ readonly indexed: false;
142
+ readonly internalType: "bytes16";
143
+ readonly name: "data";
144
+ readonly type: "bytes16";
145
+ }];
146
+ readonly name: "SetHookData";
147
+ readonly type: "event";
148
+ }, {
149
+ readonly anonymous: false;
150
+ readonly inputs: readonly [{
151
+ readonly indexed: true;
152
+ readonly internalType: "address";
153
+ readonly name: "from";
154
+ readonly type: "address";
155
+ }, {
156
+ readonly indexed: true;
157
+ readonly internalType: "address";
158
+ readonly name: "to";
159
+ readonly type: "address";
160
+ }, {
161
+ readonly indexed: false;
162
+ readonly internalType: "uint256";
163
+ readonly name: "value";
164
+ readonly type: "uint256";
165
+ }];
166
+ readonly name: "Transfer";
167
+ readonly type: "event";
168
+ }, {
169
+ readonly anonymous: false;
170
+ readonly inputs: readonly [{
171
+ readonly indexed: true;
172
+ readonly internalType: "address";
173
+ readonly name: "asset";
174
+ readonly type: "address";
175
+ }, {
176
+ readonly indexed: false;
177
+ readonly internalType: "address";
178
+ readonly name: "vault";
179
+ readonly type: "address";
180
+ }];
181
+ readonly name: "VaultUpdate";
182
+ readonly type: "event";
183
+ }, {
184
+ readonly inputs: readonly [];
185
+ readonly name: "DOMAIN_SEPARATOR";
186
+ readonly outputs: readonly [{
187
+ readonly internalType: "bytes32";
188
+ readonly name: "";
189
+ readonly type: "bytes32";
190
+ }];
191
+ readonly stateMutability: "view";
192
+ readonly type: "function";
193
+ }, {
194
+ readonly inputs: readonly [];
195
+ readonly name: "PERMIT_TYPEHASH";
196
+ readonly outputs: readonly [{
197
+ readonly internalType: "bytes32";
198
+ readonly name: "";
199
+ readonly type: "bytes32";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ readonly type: "function";
203
+ }, {
204
+ readonly inputs: readonly [{
205
+ readonly internalType: "address";
206
+ readonly name: "";
207
+ readonly type: "address";
208
+ }, {
209
+ readonly internalType: "address";
210
+ readonly name: "";
211
+ readonly type: "address";
212
+ }];
213
+ readonly name: "allowance";
214
+ readonly outputs: readonly [{
215
+ readonly internalType: "uint256";
216
+ readonly name: "";
217
+ readonly type: "uint256";
218
+ }];
219
+ readonly stateMutability: "view";
220
+ readonly type: "function";
221
+ }, {
222
+ readonly inputs: readonly [{
223
+ readonly internalType: "address";
224
+ readonly name: "spender";
225
+ readonly type: "address";
226
+ }, {
227
+ readonly internalType: "uint256";
228
+ readonly name: "value";
229
+ readonly type: "uint256";
230
+ }];
231
+ readonly name: "approve";
232
+ readonly outputs: readonly [{
233
+ readonly internalType: "bool";
234
+ readonly name: "";
235
+ readonly type: "bool";
236
+ }];
237
+ readonly stateMutability: "nonpayable";
238
+ readonly type: "function";
239
+ }, {
240
+ readonly inputs: readonly [{
241
+ readonly internalType: "address";
242
+ readonly name: "sender";
243
+ readonly type: "address";
244
+ }, {
245
+ readonly internalType: "address";
246
+ readonly name: "from";
247
+ readonly type: "address";
248
+ }, {
249
+ readonly internalType: "address";
250
+ readonly name: "to";
251
+ readonly type: "address";
252
+ }, {
253
+ readonly internalType: "uint256";
254
+ readonly name: "value";
255
+ readonly type: "uint256";
256
+ }];
257
+ readonly name: "authTransferFrom";
258
+ readonly outputs: readonly [{
259
+ readonly internalType: "bool";
260
+ readonly name: "success";
261
+ readonly type: "bool";
262
+ }];
263
+ readonly stateMutability: "nonpayable";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly inputs: readonly [{
267
+ readonly internalType: "address";
268
+ readonly name: "user";
269
+ readonly type: "address";
270
+ }];
271
+ readonly name: "balanceOf";
272
+ readonly outputs: readonly [{
273
+ readonly internalType: "uint256";
274
+ readonly name: "";
275
+ readonly type: "uint256";
276
+ }];
277
+ readonly stateMutability: "view";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "address";
282
+ readonly name: "from";
283
+ readonly type: "address";
284
+ }, {
285
+ readonly internalType: "uint256";
286
+ readonly name: "value";
287
+ readonly type: "uint256";
288
+ }];
289
+ readonly name: "burn";
290
+ readonly outputs: readonly [];
291
+ readonly stateMutability: "nonpayable";
292
+ readonly type: "function";
293
+ }, {
294
+ readonly inputs: readonly [{
295
+ readonly internalType: "address";
296
+ readonly name: "from";
297
+ readonly type: "address";
298
+ }, {
299
+ readonly internalType: "address";
300
+ readonly name: "to";
301
+ readonly type: "address";
302
+ }, {
303
+ readonly internalType: "uint256";
304
+ readonly name: "value";
305
+ readonly type: "uint256";
306
+ }];
307
+ readonly name: "checkTransferRestriction";
308
+ readonly outputs: readonly [{
309
+ readonly internalType: "bool";
310
+ readonly name: "";
311
+ readonly type: "bool";
312
+ }];
313
+ readonly stateMutability: "view";
314
+ readonly type: "function";
315
+ }, {
316
+ readonly inputs: readonly [];
317
+ readonly name: "decimals";
318
+ readonly outputs: readonly [{
319
+ readonly internalType: "uint8";
320
+ readonly name: "";
321
+ readonly type: "uint8";
322
+ }];
323
+ readonly stateMutability: "view";
324
+ readonly type: "function";
325
+ }, {
326
+ readonly inputs: readonly [{
327
+ readonly internalType: "address";
328
+ readonly name: "user";
329
+ readonly type: "address";
330
+ }];
331
+ readonly name: "deny";
332
+ readonly outputs: readonly [];
333
+ readonly stateMutability: "nonpayable";
334
+ readonly type: "function";
335
+ }, {
336
+ readonly inputs: readonly [];
337
+ readonly name: "deploymentChainId";
338
+ readonly outputs: readonly [{
339
+ readonly internalType: "uint256";
340
+ readonly name: "";
341
+ readonly type: "uint256";
342
+ }];
343
+ readonly stateMutability: "view";
344
+ readonly type: "function";
345
+ }, {
346
+ readonly inputs: readonly [{
347
+ readonly internalType: "address";
348
+ readonly name: "from";
349
+ readonly type: "address";
350
+ }, {
351
+ readonly internalType: "address";
352
+ readonly name: "to";
353
+ readonly type: "address";
354
+ }, {
355
+ readonly internalType: "uint256";
356
+ readonly name: "value";
357
+ readonly type: "uint256";
358
+ }];
359
+ readonly name: "detectTransferRestriction";
360
+ readonly outputs: readonly [{
361
+ readonly internalType: "uint8";
362
+ readonly name: "";
363
+ readonly type: "uint8";
364
+ }];
365
+ readonly stateMutability: "view";
366
+ readonly type: "function";
367
+ }, {
368
+ readonly inputs: readonly [{
369
+ readonly internalType: "bytes32";
370
+ readonly name: "what";
371
+ readonly type: "bytes32";
372
+ }, {
373
+ readonly internalType: "string";
374
+ readonly name: "data";
375
+ readonly type: "string";
376
+ }];
377
+ readonly name: "file";
378
+ readonly outputs: readonly [];
379
+ readonly stateMutability: "nonpayable";
380
+ readonly type: "function";
381
+ }, {
382
+ readonly inputs: readonly [{
383
+ readonly internalType: "bytes32";
384
+ readonly name: "what";
385
+ readonly type: "bytes32";
386
+ }, {
387
+ readonly internalType: "address";
388
+ readonly name: "data";
389
+ readonly type: "address";
390
+ }];
391
+ readonly name: "file";
392
+ readonly outputs: readonly [];
393
+ readonly stateMutability: "nonpayable";
394
+ readonly type: "function";
395
+ }, {
396
+ readonly inputs: readonly [];
397
+ readonly name: "hook";
398
+ readonly outputs: readonly [{
399
+ readonly internalType: "address";
400
+ readonly name: "";
401
+ readonly type: "address";
402
+ }];
403
+ readonly stateMutability: "view";
404
+ readonly type: "function";
405
+ }, {
406
+ readonly inputs: readonly [{
407
+ readonly internalType: "address";
408
+ readonly name: "user";
409
+ readonly type: "address";
410
+ }];
411
+ readonly name: "hookDataOf";
412
+ readonly outputs: readonly [{
413
+ readonly internalType: "bytes16";
414
+ readonly name: "";
415
+ readonly type: "bytes16";
416
+ }];
417
+ readonly stateMutability: "view";
418
+ readonly type: "function";
419
+ }, {
420
+ readonly inputs: readonly [{
421
+ readonly internalType: "uint8";
422
+ readonly name: "restrictionCode";
423
+ readonly type: "uint8";
424
+ }];
425
+ readonly name: "messageForTransferRestriction";
426
+ readonly outputs: readonly [{
427
+ readonly internalType: "string";
428
+ readonly name: "";
429
+ readonly type: "string";
430
+ }];
431
+ readonly stateMutability: "pure";
432
+ readonly type: "function";
433
+ }, {
434
+ readonly inputs: readonly [{
435
+ readonly internalType: "address";
436
+ readonly name: "to";
437
+ readonly type: "address";
438
+ }, {
439
+ readonly internalType: "uint256";
440
+ readonly name: "value";
441
+ readonly type: "uint256";
442
+ }];
443
+ readonly name: "mint";
444
+ readonly outputs: readonly [];
445
+ readonly stateMutability: "nonpayable";
446
+ readonly type: "function";
447
+ }, {
448
+ readonly inputs: readonly [];
449
+ readonly name: "name";
450
+ readonly outputs: readonly [{
451
+ readonly internalType: "string";
452
+ readonly name: "";
453
+ readonly type: "string";
454
+ }];
455
+ readonly stateMutability: "view";
456
+ readonly type: "function";
457
+ }, {
458
+ readonly inputs: readonly [{
459
+ readonly internalType: "address";
460
+ readonly name: "";
461
+ readonly type: "address";
462
+ }];
463
+ readonly name: "nonces";
464
+ readonly outputs: readonly [{
465
+ readonly internalType: "uint256";
466
+ readonly name: "";
467
+ readonly type: "uint256";
468
+ }];
469
+ readonly stateMutability: "view";
470
+ readonly type: "function";
471
+ }, {
472
+ readonly inputs: readonly [{
473
+ readonly internalType: "address";
474
+ readonly name: "owner";
475
+ readonly type: "address";
476
+ }, {
477
+ readonly internalType: "address";
478
+ readonly name: "spender";
479
+ readonly type: "address";
480
+ }, {
481
+ readonly internalType: "uint256";
482
+ readonly name: "value";
483
+ readonly type: "uint256";
484
+ }, {
485
+ readonly internalType: "uint256";
486
+ readonly name: "deadline";
487
+ readonly type: "uint256";
488
+ }, {
489
+ readonly internalType: "bytes";
490
+ readonly name: "signature";
491
+ readonly type: "bytes";
492
+ }];
493
+ readonly name: "permit";
494
+ readonly outputs: readonly [];
495
+ readonly stateMutability: "nonpayable";
496
+ readonly type: "function";
497
+ }, {
498
+ readonly inputs: readonly [{
499
+ readonly internalType: "address";
500
+ readonly name: "owner";
501
+ readonly type: "address";
502
+ }, {
503
+ readonly internalType: "address";
504
+ readonly name: "spender";
505
+ readonly type: "address";
506
+ }, {
507
+ readonly internalType: "uint256";
508
+ readonly name: "value";
509
+ readonly type: "uint256";
510
+ }, {
511
+ readonly internalType: "uint256";
512
+ readonly name: "deadline";
513
+ readonly type: "uint256";
514
+ }, {
515
+ readonly internalType: "uint8";
516
+ readonly name: "v";
517
+ readonly type: "uint8";
518
+ }, {
519
+ readonly internalType: "bytes32";
520
+ readonly name: "r";
521
+ readonly type: "bytes32";
522
+ }, {
523
+ readonly internalType: "bytes32";
524
+ readonly name: "s";
525
+ readonly type: "bytes32";
526
+ }];
527
+ readonly name: "permit";
528
+ readonly outputs: readonly [];
529
+ readonly stateMutability: "nonpayable";
530
+ readonly type: "function";
531
+ }, {
532
+ readonly inputs: readonly [{
533
+ readonly internalType: "address";
534
+ readonly name: "user";
535
+ readonly type: "address";
536
+ }];
537
+ readonly name: "rely";
538
+ readonly outputs: readonly [];
539
+ readonly stateMutability: "nonpayable";
540
+ readonly type: "function";
541
+ }, {
542
+ readonly inputs: readonly [{
543
+ readonly internalType: "address";
544
+ readonly name: "user";
545
+ readonly type: "address";
546
+ }, {
547
+ readonly internalType: "bytes16";
548
+ readonly name: "hookData";
549
+ readonly type: "bytes16";
550
+ }];
551
+ readonly name: "setHookData";
552
+ readonly outputs: readonly [];
553
+ readonly stateMutability: "nonpayable";
554
+ readonly type: "function";
555
+ }, {
556
+ readonly inputs: readonly [{
557
+ readonly internalType: "bytes4";
558
+ readonly name: "interfaceId";
559
+ readonly type: "bytes4";
560
+ }];
561
+ readonly name: "supportsInterface";
562
+ readonly outputs: readonly [{
563
+ readonly internalType: "bool";
564
+ readonly name: "";
565
+ readonly type: "bool";
566
+ }];
567
+ readonly stateMutability: "pure";
568
+ readonly type: "function";
569
+ }, {
570
+ readonly inputs: readonly [];
571
+ readonly name: "symbol";
572
+ readonly outputs: readonly [{
573
+ readonly internalType: "string";
574
+ readonly name: "";
575
+ readonly type: "string";
576
+ }];
577
+ readonly stateMutability: "view";
578
+ readonly type: "function";
579
+ }, {
580
+ readonly inputs: readonly [];
581
+ readonly name: "totalSupply";
582
+ readonly outputs: readonly [{
583
+ readonly internalType: "uint256";
584
+ readonly name: "";
585
+ readonly type: "uint256";
586
+ }];
587
+ readonly stateMutability: "view";
588
+ readonly type: "function";
589
+ }, {
590
+ readonly inputs: readonly [{
591
+ readonly internalType: "address";
592
+ readonly name: "to";
593
+ readonly type: "address";
594
+ }, {
595
+ readonly internalType: "uint256";
596
+ readonly name: "value";
597
+ readonly type: "uint256";
598
+ }];
599
+ readonly name: "transfer";
600
+ readonly outputs: readonly [{
601
+ readonly internalType: "bool";
602
+ readonly name: "success";
603
+ readonly type: "bool";
604
+ }];
605
+ readonly stateMutability: "nonpayable";
606
+ readonly type: "function";
607
+ }, {
608
+ readonly inputs: readonly [{
609
+ readonly internalType: "address";
610
+ readonly name: "from";
611
+ readonly type: "address";
612
+ }, {
613
+ readonly internalType: "address";
614
+ readonly name: "to";
615
+ readonly type: "address";
616
+ }, {
617
+ readonly internalType: "uint256";
618
+ readonly name: "value";
619
+ readonly type: "uint256";
620
+ }];
621
+ readonly name: "transferFrom";
622
+ readonly outputs: readonly [{
623
+ readonly internalType: "bool";
624
+ readonly name: "success";
625
+ readonly type: "bool";
626
+ }];
627
+ readonly stateMutability: "nonpayable";
628
+ readonly type: "function";
629
+ }, {
630
+ readonly inputs: readonly [{
631
+ readonly internalType: "address";
632
+ readonly name: "asset";
633
+ readonly type: "address";
634
+ }, {
635
+ readonly internalType: "address";
636
+ readonly name: "vault_";
637
+ readonly type: "address";
638
+ }];
639
+ readonly name: "updateVault";
640
+ readonly outputs: readonly [];
641
+ readonly stateMutability: "nonpayable";
642
+ readonly type: "function";
643
+ }, {
644
+ readonly inputs: readonly [{
645
+ readonly internalType: "address";
646
+ readonly name: "asset";
647
+ readonly type: "address";
648
+ }];
649
+ readonly name: "vault";
650
+ readonly outputs: readonly [{
651
+ readonly internalType: "address";
652
+ readonly name: "";
653
+ readonly type: "address";
654
+ }];
655
+ readonly stateMutability: "view";
656
+ readonly type: "function";
657
+ }, {
658
+ readonly inputs: readonly [{
659
+ readonly internalType: "address";
660
+ readonly name: "";
661
+ readonly type: "address";
662
+ }];
663
+ readonly name: "wards";
664
+ readonly outputs: readonly [{
665
+ readonly internalType: "uint256";
666
+ readonly name: "";
667
+ readonly type: "uint256";
668
+ }];
669
+ readonly stateMutability: "view";
670
+ readonly type: "function";
671
+ }];
672
+ /**
673
+ * Type-safe ABI for ShareToken
674
+ */
675
+ export type ShareTokenAbi = typeof ShareTokenAbi;
676
+ /**
677
+ * Contract instance type for ShareToken
678
+ */
679
+ export type ShareTokenContract = any;
680
+ /**
681
+ * ShareToken Contract Class
682
+ *
683
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
684
+ *
685
+ * @example
686
+ * ```typescript
687
+ * import { createPublicClient, createWalletClient, http } from 'viem';
688
+ * import { mainnet } from 'viem/chains';
689
+ * import { ShareToken } from 'ShareToken';
690
+ *
691
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
692
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
693
+ *
694
+ * const contract = new ShareToken('0x...', { publicClient, walletClient });
695
+ *
696
+ * // Read functions
697
+ * const result = await contract.balanceOf('0x...');
698
+ *
699
+ * // Write functions
700
+ * const hash = await contract.transfer('0x...', 1000n);
701
+ *
702
+ * // Simulate transactions (dry-run)
703
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
704
+ * console.log('Gas estimate:', simulation.request.gas);
705
+ *
706
+ * // Watch events
707
+ * const unwatch = contract.watch.Transfer((event) => {
708
+ * console.log('Transfer event:', event);
709
+ * });
710
+ * ```
711
+ */
712
+ export declare class ShareToken {
713
+ private contract;
714
+ private contractAddress;
715
+ private publicClient;
716
+ constructor(address: Address, clients: {
717
+ publicClient: PublicClient;
718
+ walletClient?: WalletClient;
719
+ });
720
+ /**
721
+ * Get the contract address
722
+ */
723
+ get address(): Address;
724
+ /**
725
+ * Get the underlying viem contract instance.
726
+ */
727
+ getContract(): ShareTokenContract;
728
+ /**
729
+ * DOMAIN_SEPARATOR
730
+ * view
731
+ */
732
+ DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
733
+ /**
734
+ * PERMIT_TYPEHASH
735
+ * view
736
+ */
737
+ PERMIT_TYPEHASH(): Promise<`0x${string}`>;
738
+ /**
739
+ * allowance
740
+ * view
741
+ */
742
+ allowance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
743
+ /**
744
+ * balanceOf
745
+ * view
746
+ */
747
+ balanceOf(user: `0x${string}`): Promise<bigint>;
748
+ /**
749
+ * checkTransferRestriction
750
+ * view
751
+ */
752
+ checkTransferRestriction(from: `0x${string}`, to: `0x${string}`, value: bigint): Promise<boolean>;
753
+ /**
754
+ * decimals
755
+ * view
756
+ */
757
+ decimals(): Promise<bigint>;
758
+ /**
759
+ * deploymentChainId
760
+ * view
761
+ */
762
+ deploymentChainId(): Promise<bigint>;
763
+ /**
764
+ * detectTransferRestriction
765
+ * view
766
+ */
767
+ detectTransferRestriction(from: `0x${string}`, to: `0x${string}`, value: bigint): Promise<bigint>;
768
+ /**
769
+ * hook
770
+ * view
771
+ */
772
+ hook(): Promise<`0x${string}`>;
773
+ /**
774
+ * hookDataOf
775
+ * view
776
+ */
777
+ hookDataOf(user: `0x${string}`): Promise<`0x${string}`>;
778
+ /**
779
+ * messageForTransferRestriction
780
+ * pure
781
+ */
782
+ messageForTransferRestriction(restrictionCode: bigint): Promise<string>;
783
+ /**
784
+ * name
785
+ * view
786
+ */
787
+ name(): Promise<string>;
788
+ /**
789
+ * nonces
790
+ * view
791
+ */
792
+ nonces(arg0: `0x${string}`): Promise<bigint>;
793
+ /**
794
+ * supportsInterface
795
+ * pure
796
+ */
797
+ supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
798
+ /**
799
+ * symbol
800
+ * view
801
+ */
802
+ symbol(): Promise<string>;
803
+ /**
804
+ * totalSupply
805
+ * view
806
+ */
807
+ totalSupply(): Promise<bigint>;
808
+ /**
809
+ * vault
810
+ * view
811
+ */
812
+ vault(asset: `0x${string}`): Promise<`0x${string}`>;
813
+ /**
814
+ * wards
815
+ * view
816
+ */
817
+ wards(arg0: `0x${string}`): Promise<bigint>;
818
+ /**
819
+ * approve
820
+ * nonpayable
821
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
822
+ */
823
+ approve(spender: `0x${string}`, value: bigint, options?: {
824
+ accessList?: import('viem').AccessList;
825
+ authorizationList?: import('viem').AuthorizationList;
826
+ chain?: import('viem').Chain | null;
827
+ dataSuffix?: `0x${string}`;
828
+ gas?: bigint;
829
+ gasPrice?: bigint;
830
+ maxFeePerGas?: bigint;
831
+ maxPriorityFeePerGas?: bigint;
832
+ nonce?: number;
833
+ value?: bigint;
834
+ }): Promise<`0x${string}`>;
835
+ /**
836
+ * authTransferFrom
837
+ * nonpayable
838
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
839
+ */
840
+ authTransferFrom(sender: `0x${string}`, from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
841
+ accessList?: import('viem').AccessList;
842
+ authorizationList?: import('viem').AuthorizationList;
843
+ chain?: import('viem').Chain | null;
844
+ dataSuffix?: `0x${string}`;
845
+ gas?: bigint;
846
+ gasPrice?: bigint;
847
+ maxFeePerGas?: bigint;
848
+ maxPriorityFeePerGas?: bigint;
849
+ nonce?: number;
850
+ value?: bigint;
851
+ }): Promise<`0x${string}`>;
852
+ /**
853
+ * burn
854
+ * nonpayable
855
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
856
+ */
857
+ burn(from: `0x${string}`, value: bigint, options?: {
858
+ accessList?: import('viem').AccessList;
859
+ authorizationList?: import('viem').AuthorizationList;
860
+ chain?: import('viem').Chain | null;
861
+ dataSuffix?: `0x${string}`;
862
+ gas?: bigint;
863
+ gasPrice?: bigint;
864
+ maxFeePerGas?: bigint;
865
+ maxPriorityFeePerGas?: bigint;
866
+ nonce?: number;
867
+ value?: bigint;
868
+ }): Promise<`0x${string}`>;
869
+ /**
870
+ * deny
871
+ * nonpayable
872
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
873
+ */
874
+ deny(user: `0x${string}`, options?: {
875
+ accessList?: import('viem').AccessList;
876
+ authorizationList?: import('viem').AuthorizationList;
877
+ chain?: import('viem').Chain | null;
878
+ dataSuffix?: `0x${string}`;
879
+ gas?: bigint;
880
+ gasPrice?: bigint;
881
+ maxFeePerGas?: bigint;
882
+ maxPriorityFeePerGas?: bigint;
883
+ nonce?: number;
884
+ value?: bigint;
885
+ }): Promise<`0x${string}`>;
886
+ file(what: `0x${string}`, data: string, options?: {
887
+ accessList?: import('viem').AccessList;
888
+ authorizationList?: import('viem').AuthorizationList;
889
+ chain?: import('viem').Chain | null;
890
+ dataSuffix?: `0x${string}`;
891
+ gas?: bigint;
892
+ gasPrice?: bigint;
893
+ maxFeePerGas?: bigint;
894
+ maxPriorityFeePerGas?: bigint;
895
+ nonce?: number;
896
+ value?: bigint;
897
+ }): Promise<`0x${string}`>;
898
+ file(what: `0x${string}`, data: `0x${string}`, options?: {
899
+ accessList?: import('viem').AccessList;
900
+ authorizationList?: import('viem').AuthorizationList;
901
+ chain?: import('viem').Chain | null;
902
+ dataSuffix?: `0x${string}`;
903
+ gas?: bigint;
904
+ gasPrice?: bigint;
905
+ maxFeePerGas?: bigint;
906
+ maxPriorityFeePerGas?: bigint;
907
+ nonce?: number;
908
+ value?: bigint;
909
+ }): Promise<`0x${string}`>;
910
+ /**
911
+ * mint
912
+ * nonpayable
913
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
914
+ */
915
+ mint(to: `0x${string}`, value: bigint, options?: {
916
+ accessList?: import('viem').AccessList;
917
+ authorizationList?: import('viem').AuthorizationList;
918
+ chain?: import('viem').Chain | null;
919
+ dataSuffix?: `0x${string}`;
920
+ gas?: bigint;
921
+ gasPrice?: bigint;
922
+ maxFeePerGas?: bigint;
923
+ maxPriorityFeePerGas?: bigint;
924
+ nonce?: number;
925
+ value?: bigint;
926
+ }): Promise<`0x${string}`>;
927
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, signature: `0x${string}`, options?: {
928
+ accessList?: import('viem').AccessList;
929
+ authorizationList?: import('viem').AuthorizationList;
930
+ chain?: import('viem').Chain | null;
931
+ dataSuffix?: `0x${string}`;
932
+ gas?: bigint;
933
+ gasPrice?: bigint;
934
+ maxFeePerGas?: bigint;
935
+ maxPriorityFeePerGas?: bigint;
936
+ nonce?: number;
937
+ value?: bigint;
938
+ }): Promise<`0x${string}`>;
939
+ permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
940
+ accessList?: import('viem').AccessList;
941
+ authorizationList?: import('viem').AuthorizationList;
942
+ chain?: import('viem').Chain | null;
943
+ dataSuffix?: `0x${string}`;
944
+ gas?: bigint;
945
+ gasPrice?: bigint;
946
+ maxFeePerGas?: bigint;
947
+ maxPriorityFeePerGas?: bigint;
948
+ nonce?: number;
949
+ value?: bigint;
950
+ }): Promise<`0x${string}`>;
951
+ /**
952
+ * rely
953
+ * nonpayable
954
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
955
+ */
956
+ rely(user: `0x${string}`, options?: {
957
+ accessList?: import('viem').AccessList;
958
+ authorizationList?: import('viem').AuthorizationList;
959
+ chain?: import('viem').Chain | null;
960
+ dataSuffix?: `0x${string}`;
961
+ gas?: bigint;
962
+ gasPrice?: bigint;
963
+ maxFeePerGas?: bigint;
964
+ maxPriorityFeePerGas?: bigint;
965
+ nonce?: number;
966
+ value?: bigint;
967
+ }): Promise<`0x${string}`>;
968
+ /**
969
+ * setHookData
970
+ * nonpayable
971
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
972
+ */
973
+ setHookData(user: `0x${string}`, hookData: `0x${string}`, options?: {
974
+ accessList?: import('viem').AccessList;
975
+ authorizationList?: import('viem').AuthorizationList;
976
+ chain?: import('viem').Chain | null;
977
+ dataSuffix?: `0x${string}`;
978
+ gas?: bigint;
979
+ gasPrice?: bigint;
980
+ maxFeePerGas?: bigint;
981
+ maxPriorityFeePerGas?: bigint;
982
+ nonce?: number;
983
+ value?: bigint;
984
+ }): Promise<`0x${string}`>;
985
+ /**
986
+ * transfer
987
+ * nonpayable
988
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
989
+ */
990
+ transfer(to: `0x${string}`, value: bigint, options?: {
991
+ accessList?: import('viem').AccessList;
992
+ authorizationList?: import('viem').AuthorizationList;
993
+ chain?: import('viem').Chain | null;
994
+ dataSuffix?: `0x${string}`;
995
+ gas?: bigint;
996
+ gasPrice?: bigint;
997
+ maxFeePerGas?: bigint;
998
+ maxPriorityFeePerGas?: bigint;
999
+ nonce?: number;
1000
+ value?: bigint;
1001
+ }): Promise<`0x${string}`>;
1002
+ /**
1003
+ * transferFrom
1004
+ * nonpayable
1005
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1006
+ */
1007
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1008
+ accessList?: import('viem').AccessList;
1009
+ authorizationList?: import('viem').AuthorizationList;
1010
+ chain?: import('viem').Chain | null;
1011
+ dataSuffix?: `0x${string}`;
1012
+ gas?: bigint;
1013
+ gasPrice?: bigint;
1014
+ maxFeePerGas?: bigint;
1015
+ maxPriorityFeePerGas?: bigint;
1016
+ nonce?: number;
1017
+ value?: bigint;
1018
+ }): Promise<`0x${string}`>;
1019
+ /**
1020
+ * updateVault
1021
+ * nonpayable
1022
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1023
+ */
1024
+ updateVault(asset: `0x${string}`, vault_: `0x${string}`, options?: {
1025
+ accessList?: import('viem').AccessList;
1026
+ authorizationList?: import('viem').AuthorizationList;
1027
+ chain?: import('viem').Chain | null;
1028
+ dataSuffix?: `0x${string}`;
1029
+ gas?: bigint;
1030
+ gasPrice?: bigint;
1031
+ maxFeePerGas?: bigint;
1032
+ maxPriorityFeePerGas?: bigint;
1033
+ nonce?: number;
1034
+ value?: bigint;
1035
+ }): Promise<`0x${string}`>;
1036
+ /**
1037
+ * Simulate contract write operations (dry-run without sending transaction)
1038
+ *
1039
+ * @example
1040
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1041
+ * console.log('Gas estimate:', result.request.gas);
1042
+ * console.log('Would succeed:', result.result);
1043
+ */
1044
+ get simulate(): {
1045
+ /**
1046
+ * Simulate approve
1047
+ * Returns gas estimate and result without sending transaction
1048
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1049
+ */
1050
+ approve(spender: `0x${string}`, value: bigint, options?: {
1051
+ accessList?: import("viem").AccessList;
1052
+ authorizationList?: import("viem").AuthorizationList;
1053
+ chain?: import("viem").Chain | null;
1054
+ dataSuffix?: `0x${string}`;
1055
+ gas?: bigint;
1056
+ gasPrice?: bigint;
1057
+ maxFeePerGas?: bigint;
1058
+ maxPriorityFeePerGas?: bigint;
1059
+ nonce?: number;
1060
+ value?: bigint;
1061
+ }): Promise<boolean>;
1062
+ /**
1063
+ * Simulate authTransferFrom
1064
+ * Returns gas estimate and result without sending transaction
1065
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1066
+ */
1067
+ authTransferFrom(sender: `0x${string}`, from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1068
+ accessList?: import("viem").AccessList;
1069
+ authorizationList?: import("viem").AuthorizationList;
1070
+ chain?: import("viem").Chain | null;
1071
+ dataSuffix?: `0x${string}`;
1072
+ gas?: bigint;
1073
+ gasPrice?: bigint;
1074
+ maxFeePerGas?: bigint;
1075
+ maxPriorityFeePerGas?: bigint;
1076
+ nonce?: number;
1077
+ value?: bigint;
1078
+ }): Promise<boolean>;
1079
+ /**
1080
+ * Simulate burn
1081
+ * Returns gas estimate and result without sending transaction
1082
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1083
+ */
1084
+ burn(from: `0x${string}`, value: bigint, options?: {
1085
+ accessList?: import("viem").AccessList;
1086
+ authorizationList?: import("viem").AuthorizationList;
1087
+ chain?: import("viem").Chain | null;
1088
+ dataSuffix?: `0x${string}`;
1089
+ gas?: bigint;
1090
+ gasPrice?: bigint;
1091
+ maxFeePerGas?: bigint;
1092
+ maxPriorityFeePerGas?: bigint;
1093
+ nonce?: number;
1094
+ value?: bigint;
1095
+ }): Promise<void>;
1096
+ /**
1097
+ * Simulate deny
1098
+ * Returns gas estimate and result without sending transaction
1099
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1100
+ */
1101
+ deny(user: `0x${string}`, options?: {
1102
+ accessList?: import("viem").AccessList;
1103
+ authorizationList?: import("viem").AuthorizationList;
1104
+ chain?: import("viem").Chain | null;
1105
+ dataSuffix?: `0x${string}`;
1106
+ gas?: bigint;
1107
+ gasPrice?: bigint;
1108
+ maxFeePerGas?: bigint;
1109
+ maxPriorityFeePerGas?: bigint;
1110
+ nonce?: number;
1111
+ value?: bigint;
1112
+ }): Promise<void>;
1113
+ /**
1114
+ * Simulate file
1115
+ * Returns gas estimate and result without sending transaction
1116
+ * Supports multiple overloads: (bytes32, string), (bytes32, address)
1117
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1118
+ */
1119
+ file(...args: any[]): Promise<any>;
1120
+ /**
1121
+ * Simulate mint
1122
+ * Returns gas estimate and result without sending transaction
1123
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1124
+ */
1125
+ mint(to: `0x${string}`, value: bigint, options?: {
1126
+ accessList?: import("viem").AccessList;
1127
+ authorizationList?: import("viem").AuthorizationList;
1128
+ chain?: import("viem").Chain | null;
1129
+ dataSuffix?: `0x${string}`;
1130
+ gas?: bigint;
1131
+ gasPrice?: bigint;
1132
+ maxFeePerGas?: bigint;
1133
+ maxPriorityFeePerGas?: bigint;
1134
+ nonce?: number;
1135
+ value?: bigint;
1136
+ }): Promise<void>;
1137
+ /**
1138
+ * Simulate permit
1139
+ * Returns gas estimate and result without sending transaction
1140
+ * Supports multiple overloads: (address, address, uint256, uint256, bytes), (address, address, uint256, uint256, uint8, bytes32, bytes32)
1141
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1142
+ */
1143
+ permit(...args: any[]): Promise<any>;
1144
+ /**
1145
+ * Simulate rely
1146
+ * Returns gas estimate and result without sending transaction
1147
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1148
+ */
1149
+ rely(user: `0x${string}`, options?: {
1150
+ accessList?: import("viem").AccessList;
1151
+ authorizationList?: import("viem").AuthorizationList;
1152
+ chain?: import("viem").Chain | null;
1153
+ dataSuffix?: `0x${string}`;
1154
+ gas?: bigint;
1155
+ gasPrice?: bigint;
1156
+ maxFeePerGas?: bigint;
1157
+ maxPriorityFeePerGas?: bigint;
1158
+ nonce?: number;
1159
+ value?: bigint;
1160
+ }): Promise<void>;
1161
+ /**
1162
+ * Simulate setHookData
1163
+ * Returns gas estimate and result without sending transaction
1164
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1165
+ */
1166
+ setHookData(user: `0x${string}`, hookData: `0x${string}`, options?: {
1167
+ accessList?: import("viem").AccessList;
1168
+ authorizationList?: import("viem").AuthorizationList;
1169
+ chain?: import("viem").Chain | null;
1170
+ dataSuffix?: `0x${string}`;
1171
+ gas?: bigint;
1172
+ gasPrice?: bigint;
1173
+ maxFeePerGas?: bigint;
1174
+ maxPriorityFeePerGas?: bigint;
1175
+ nonce?: number;
1176
+ value?: bigint;
1177
+ }): Promise<void>;
1178
+ /**
1179
+ * Simulate transfer
1180
+ * Returns gas estimate and result without sending transaction
1181
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1182
+ */
1183
+ transfer(to: `0x${string}`, value: bigint, options?: {
1184
+ accessList?: import("viem").AccessList;
1185
+ authorizationList?: import("viem").AuthorizationList;
1186
+ chain?: import("viem").Chain | null;
1187
+ dataSuffix?: `0x${string}`;
1188
+ gas?: bigint;
1189
+ gasPrice?: bigint;
1190
+ maxFeePerGas?: bigint;
1191
+ maxPriorityFeePerGas?: bigint;
1192
+ nonce?: number;
1193
+ value?: bigint;
1194
+ }): Promise<boolean>;
1195
+ /**
1196
+ * Simulate transferFrom
1197
+ * Returns gas estimate and result without sending transaction
1198
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1199
+ */
1200
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1201
+ accessList?: import("viem").AccessList;
1202
+ authorizationList?: import("viem").AuthorizationList;
1203
+ chain?: import("viem").Chain | null;
1204
+ dataSuffix?: `0x${string}`;
1205
+ gas?: bigint;
1206
+ gasPrice?: bigint;
1207
+ maxFeePerGas?: bigint;
1208
+ maxPriorityFeePerGas?: bigint;
1209
+ nonce?: number;
1210
+ value?: bigint;
1211
+ }): Promise<boolean>;
1212
+ /**
1213
+ * Simulate updateVault
1214
+ * Returns gas estimate and result without sending transaction
1215
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1216
+ */
1217
+ updateVault(asset: `0x${string}`, vault_: `0x${string}`, options?: {
1218
+ accessList?: import("viem").AccessList;
1219
+ authorizationList?: import("viem").AuthorizationList;
1220
+ chain?: import("viem").Chain | null;
1221
+ dataSuffix?: `0x${string}`;
1222
+ gas?: bigint;
1223
+ gasPrice?: bigint;
1224
+ maxFeePerGas?: bigint;
1225
+ maxPriorityFeePerGas?: bigint;
1226
+ nonce?: number;
1227
+ value?: bigint;
1228
+ }): Promise<void>;
1229
+ };
1230
+ /**
1231
+ * Watch contract events
1232
+ *
1233
+ * @example
1234
+ * // Watch all Transfer events
1235
+ * const unwatch = contract.watch.Transfer((event) => {
1236
+ * console.log('Transfer:', event);
1237
+ * });
1238
+ *
1239
+ * // Stop watching
1240
+ * unwatch();
1241
+ */
1242
+ get watch(): {
1243
+ /**
1244
+ * Watch Approval events
1245
+ * @param callback Function to call when event is emitted
1246
+ * @param filter Optional filter for indexed parameters
1247
+ * @returns Unwatch function to stop listening
1248
+ */
1249
+ Approval: (callback: (event: {
1250
+ owner: `0x${string}`;
1251
+ spender: `0x${string}`;
1252
+ value: bigint;
1253
+ }) => void, filter?: {
1254
+ owner?: `0x${string}` | `0x${string}`[] | null;
1255
+ spender?: `0x${string}` | `0x${string}`[] | null;
1256
+ }) => () => void;
1257
+ /**
1258
+ * Watch Deny events
1259
+ * @param callback Function to call when event is emitted
1260
+ * @param filter Optional filter for indexed parameters
1261
+ * @returns Unwatch function to stop listening
1262
+ */
1263
+ Deny: (callback: (event: {
1264
+ user: `0x${string}`;
1265
+ }) => void, filter?: {
1266
+ user?: `0x${string}` | `0x${string}`[] | null;
1267
+ }) => () => void;
1268
+ /**
1269
+ * Watch File events
1270
+ * @param callback Function to call when event is emitted
1271
+ * @param filter Optional filter for indexed parameters
1272
+ * @returns Unwatch function to stop listening
1273
+ */
1274
+ File: (callback: (event: {
1275
+ what: `0x${string}`;
1276
+ data: `0x${string}`;
1277
+ }) => void, filter?: {
1278
+ what?: `0x${string}` | `0x${string}`[] | null;
1279
+ }) => () => void;
1280
+ /**
1281
+ * Watch Rely events
1282
+ * @param callback Function to call when event is emitted
1283
+ * @param filter Optional filter for indexed parameters
1284
+ * @returns Unwatch function to stop listening
1285
+ */
1286
+ Rely: (callback: (event: {
1287
+ user: `0x${string}`;
1288
+ }) => void, filter?: {
1289
+ user?: `0x${string}` | `0x${string}`[] | null;
1290
+ }) => () => void;
1291
+ /**
1292
+ * Watch SetHookData events
1293
+ * @param callback Function to call when event is emitted
1294
+ * @param filter Optional filter for indexed parameters
1295
+ * @returns Unwatch function to stop listening
1296
+ */
1297
+ SetHookData: (callback: (event: {
1298
+ user: `0x${string}`;
1299
+ data: `0x${string}`;
1300
+ }) => void, filter?: {
1301
+ user?: `0x${string}` | `0x${string}`[] | null;
1302
+ }) => () => void;
1303
+ /**
1304
+ * Watch Transfer events
1305
+ * @param callback Function to call when event is emitted
1306
+ * @param filter Optional filter for indexed parameters
1307
+ * @returns Unwatch function to stop listening
1308
+ */
1309
+ Transfer: (callback: (event: {
1310
+ from: `0x${string}`;
1311
+ to: `0x${string}`;
1312
+ value: bigint;
1313
+ }) => void, filter?: {
1314
+ from?: `0x${string}` | `0x${string}`[] | null;
1315
+ to?: `0x${string}` | `0x${string}`[] | null;
1316
+ }) => () => void;
1317
+ /**
1318
+ * Watch VaultUpdate events
1319
+ * @param callback Function to call when event is emitted
1320
+ * @param filter Optional filter for indexed parameters
1321
+ * @returns Unwatch function to stop listening
1322
+ */
1323
+ VaultUpdate: (callback: (event: {
1324
+ asset: `0x${string}`;
1325
+ vault: `0x${string}`;
1326
+ }) => void, filter?: {
1327
+ asset?: `0x${string}` | `0x${string}`[] | null;
1328
+ }) => () => void;
1329
+ };
1330
+ }