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