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