@gitmyabi/based 1.0.0 → 1.0.1

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,911 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * UFragments ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const UFragmentsAbi: readonly [{
8
+ readonly constant: true;
9
+ readonly inputs: readonly [];
10
+ readonly name: "name";
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "string";
14
+ }];
15
+ readonly payable: false;
16
+ readonly stateMutability: "view";
17
+ readonly type: "function";
18
+ }, {
19
+ readonly constant: false;
20
+ readonly inputs: readonly [{
21
+ readonly name: "spender";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly name: "value";
25
+ readonly type: "uint256";
26
+ }];
27
+ readonly name: "approve";
28
+ readonly outputs: readonly [{
29
+ readonly name: "";
30
+ readonly type: "bool";
31
+ }];
32
+ readonly payable: false;
33
+ readonly stateMutability: "nonpayable";
34
+ readonly type: "function";
35
+ }, {
36
+ readonly constant: true;
37
+ readonly inputs: readonly [];
38
+ readonly name: "totalSupply";
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "uint256";
42
+ }];
43
+ readonly payable: false;
44
+ readonly stateMutability: "view";
45
+ readonly type: "function";
46
+ }, {
47
+ readonly constant: false;
48
+ readonly inputs: readonly [{
49
+ readonly name: "from";
50
+ readonly type: "address";
51
+ }, {
52
+ readonly name: "to";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly name: "value";
56
+ readonly type: "uint256";
57
+ }];
58
+ readonly name: "transferFrom";
59
+ readonly outputs: readonly [{
60
+ readonly name: "";
61
+ readonly type: "bool";
62
+ }];
63
+ readonly payable: false;
64
+ readonly stateMutability: "nonpayable";
65
+ readonly type: "function";
66
+ }, {
67
+ readonly constant: true;
68
+ readonly inputs: readonly [];
69
+ readonly name: "decimals";
70
+ readonly outputs: readonly [{
71
+ readonly name: "";
72
+ readonly type: "uint8";
73
+ }];
74
+ readonly payable: false;
75
+ readonly stateMutability: "view";
76
+ readonly type: "function";
77
+ }, {
78
+ readonly constant: false;
79
+ readonly inputs: readonly [{
80
+ readonly name: "spender";
81
+ readonly type: "address";
82
+ }, {
83
+ readonly name: "addedValue";
84
+ readonly type: "uint256";
85
+ }];
86
+ readonly name: "increaseAllowance";
87
+ readonly outputs: readonly [{
88
+ readonly name: "";
89
+ readonly type: "bool";
90
+ }];
91
+ readonly payable: false;
92
+ readonly stateMutability: "nonpayable";
93
+ readonly type: "function";
94
+ }, {
95
+ readonly constant: true;
96
+ readonly inputs: readonly [{
97
+ readonly name: "who";
98
+ readonly type: "address";
99
+ }];
100
+ readonly name: "balanceOf";
101
+ readonly outputs: readonly [{
102
+ readonly name: "";
103
+ readonly type: "uint256";
104
+ }];
105
+ readonly payable: false;
106
+ readonly stateMutability: "view";
107
+ readonly type: "function";
108
+ }, {
109
+ readonly constant: false;
110
+ readonly inputs: readonly [];
111
+ readonly name: "renounceOwnership";
112
+ readonly outputs: readonly [];
113
+ readonly payable: false;
114
+ readonly stateMutability: "nonpayable";
115
+ readonly type: "function";
116
+ }, {
117
+ readonly constant: false;
118
+ readonly inputs: readonly [{
119
+ readonly name: "epoch";
120
+ readonly type: "uint256";
121
+ }, {
122
+ readonly name: "supplyDelta";
123
+ readonly type: "int256";
124
+ }];
125
+ readonly name: "rebase";
126
+ readonly outputs: readonly [{
127
+ readonly name: "";
128
+ readonly type: "uint256";
129
+ }];
130
+ readonly payable: false;
131
+ readonly stateMutability: "nonpayable";
132
+ readonly type: "function";
133
+ }, {
134
+ readonly constant: false;
135
+ readonly inputs: readonly [{
136
+ readonly name: "monetaryPolicy_";
137
+ readonly type: "address";
138
+ }];
139
+ readonly name: "setMonetaryPolicy";
140
+ readonly outputs: readonly [];
141
+ readonly payable: false;
142
+ readonly stateMutability: "nonpayable";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly constant: true;
146
+ readonly inputs: readonly [];
147
+ readonly name: "owner";
148
+ readonly outputs: readonly [{
149
+ readonly name: "";
150
+ readonly type: "address";
151
+ }];
152
+ readonly payable: false;
153
+ readonly stateMutability: "view";
154
+ readonly type: "function";
155
+ }, {
156
+ readonly constant: true;
157
+ readonly inputs: readonly [];
158
+ readonly name: "monetaryPolicy";
159
+ readonly outputs: readonly [{
160
+ readonly name: "";
161
+ readonly type: "address";
162
+ }];
163
+ readonly payable: false;
164
+ readonly stateMutability: "view";
165
+ readonly type: "function";
166
+ }, {
167
+ readonly constant: true;
168
+ readonly inputs: readonly [];
169
+ readonly name: "isOwner";
170
+ readonly outputs: readonly [{
171
+ readonly name: "";
172
+ readonly type: "bool";
173
+ }];
174
+ readonly payable: false;
175
+ readonly stateMutability: "view";
176
+ readonly type: "function";
177
+ }, {
178
+ readonly constant: true;
179
+ readonly inputs: readonly [];
180
+ readonly name: "symbol";
181
+ readonly outputs: readonly [{
182
+ readonly name: "";
183
+ readonly type: "string";
184
+ }];
185
+ readonly payable: false;
186
+ readonly stateMutability: "view";
187
+ readonly type: "function";
188
+ }, {
189
+ readonly constant: false;
190
+ readonly inputs: readonly [{
191
+ readonly name: "spender";
192
+ readonly type: "address";
193
+ }, {
194
+ readonly name: "subtractedValue";
195
+ readonly type: "uint256";
196
+ }];
197
+ readonly name: "decreaseAllowance";
198
+ readonly outputs: readonly [{
199
+ readonly name: "";
200
+ readonly type: "bool";
201
+ }];
202
+ readonly payable: false;
203
+ readonly stateMutability: "nonpayable";
204
+ readonly type: "function";
205
+ }, {
206
+ readonly constant: false;
207
+ readonly inputs: readonly [{
208
+ readonly name: "to";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly name: "value";
212
+ readonly type: "uint256";
213
+ }];
214
+ readonly name: "transfer";
215
+ readonly outputs: readonly [{
216
+ readonly name: "";
217
+ readonly type: "bool";
218
+ }];
219
+ readonly payable: false;
220
+ readonly stateMutability: "nonpayable";
221
+ readonly type: "function";
222
+ }, {
223
+ readonly constant: true;
224
+ readonly inputs: readonly [];
225
+ readonly name: "deployer";
226
+ readonly outputs: readonly [{
227
+ readonly name: "";
228
+ readonly type: "address";
229
+ }];
230
+ readonly payable: false;
231
+ readonly stateMutability: "view";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly constant: false;
235
+ readonly inputs: readonly [{
236
+ readonly name: "name_";
237
+ readonly type: "string";
238
+ }, {
239
+ readonly name: "symbol_";
240
+ readonly type: "string";
241
+ }, {
242
+ readonly name: "owner_";
243
+ readonly type: "address";
244
+ }, {
245
+ readonly name: "migrator_";
246
+ readonly type: "address";
247
+ }, {
248
+ readonly name: "pool1_";
249
+ readonly type: "address";
250
+ }];
251
+ readonly name: "initialize";
252
+ readonly outputs: readonly [];
253
+ readonly payable: false;
254
+ readonly stateMutability: "nonpayable";
255
+ readonly type: "function";
256
+ }, {
257
+ readonly constant: true;
258
+ readonly inputs: readonly [{
259
+ readonly name: "owner_";
260
+ readonly type: "address";
261
+ }, {
262
+ readonly name: "spender";
263
+ readonly type: "address";
264
+ }];
265
+ readonly name: "allowance";
266
+ readonly outputs: readonly [{
267
+ readonly name: "";
268
+ readonly type: "uint256";
269
+ }];
270
+ readonly payable: false;
271
+ readonly stateMutability: "view";
272
+ readonly type: "function";
273
+ }, {
274
+ readonly constant: false;
275
+ readonly inputs: readonly [{
276
+ readonly name: "newOwner";
277
+ readonly type: "address";
278
+ }];
279
+ readonly name: "transferOwnership";
280
+ readonly outputs: readonly [];
281
+ readonly payable: false;
282
+ readonly stateMutability: "nonpayable";
283
+ readonly type: "function";
284
+ }, {
285
+ readonly inputs: readonly [];
286
+ readonly payable: false;
287
+ readonly stateMutability: "nonpayable";
288
+ readonly type: "constructor";
289
+ }, {
290
+ readonly anonymous: false;
291
+ readonly inputs: readonly [{
292
+ readonly indexed: true;
293
+ readonly name: "epoch";
294
+ readonly type: "uint256";
295
+ }, {
296
+ readonly indexed: false;
297
+ readonly name: "totalSupply";
298
+ readonly type: "uint256";
299
+ }];
300
+ readonly name: "LogRebase";
301
+ readonly type: "event";
302
+ }, {
303
+ readonly anonymous: false;
304
+ readonly inputs: readonly [{
305
+ readonly indexed: false;
306
+ readonly name: "monetaryPolicy";
307
+ readonly type: "address";
308
+ }];
309
+ readonly name: "LogMonetaryPolicyUpdated";
310
+ readonly type: "event";
311
+ }, {
312
+ readonly anonymous: false;
313
+ readonly inputs: readonly [{
314
+ readonly indexed: true;
315
+ readonly name: "previousOwner";
316
+ readonly type: "address";
317
+ }];
318
+ readonly name: "OwnershipRenounced";
319
+ readonly type: "event";
320
+ }, {
321
+ readonly anonymous: false;
322
+ readonly inputs: readonly [{
323
+ readonly indexed: true;
324
+ readonly name: "previousOwner";
325
+ readonly type: "address";
326
+ }, {
327
+ readonly indexed: true;
328
+ readonly name: "newOwner";
329
+ readonly type: "address";
330
+ }];
331
+ readonly name: "OwnershipTransferred";
332
+ readonly type: "event";
333
+ }, {
334
+ readonly anonymous: false;
335
+ readonly inputs: readonly [{
336
+ readonly indexed: true;
337
+ readonly name: "from";
338
+ readonly type: "address";
339
+ }, {
340
+ readonly indexed: true;
341
+ readonly name: "to";
342
+ readonly type: "address";
343
+ }, {
344
+ readonly indexed: false;
345
+ readonly name: "value";
346
+ readonly type: "uint256";
347
+ }];
348
+ readonly name: "Transfer";
349
+ readonly type: "event";
350
+ }, {
351
+ readonly anonymous: false;
352
+ readonly inputs: readonly [{
353
+ readonly indexed: true;
354
+ readonly name: "owner";
355
+ readonly type: "address";
356
+ }, {
357
+ readonly indexed: true;
358
+ readonly name: "spender";
359
+ readonly type: "address";
360
+ }, {
361
+ readonly indexed: false;
362
+ readonly name: "value";
363
+ readonly type: "uint256";
364
+ }];
365
+ readonly name: "Approval";
366
+ readonly type: "event";
367
+ }];
368
+ /**
369
+ * Type-safe ABI for UFragments
370
+ */
371
+ export type UFragmentsAbi = typeof UFragmentsAbi;
372
+ /**
373
+ * Contract instance type for UFragments
374
+ */
375
+ export type UFragmentsContract = any;
376
+ /**
377
+ * UFragments Contract Class
378
+ *
379
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
380
+ *
381
+ * @example
382
+ * ```typescript
383
+ * import { createPublicClient, createWalletClient, http } from 'viem';
384
+ * import { mainnet } from 'viem/chains';
385
+ * import { UFragments } from 'UFragments';
386
+ *
387
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
388
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
389
+ *
390
+ * const contract = new UFragments('0x...', { publicClient, walletClient });
391
+ *
392
+ * // Read functions
393
+ * const result = await contract.balanceOf('0x...');
394
+ *
395
+ * // Write functions
396
+ * const hash = await contract.transfer('0x...', 1000n);
397
+ *
398
+ * // Simulate transactions (dry-run)
399
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
400
+ * console.log('Gas estimate:', simulation.request.gas);
401
+ *
402
+ * // Watch events
403
+ * const unwatch = contract.watch.Transfer((event) => {
404
+ * console.log('Transfer event:', event);
405
+ * });
406
+ * ```
407
+ */
408
+ export declare class UFragments {
409
+ private contract;
410
+ private contractAddress;
411
+ private publicClient;
412
+ constructor(address: Address, clients: {
413
+ publicClient: PublicClient;
414
+ walletClient?: WalletClient;
415
+ });
416
+ /**
417
+ * Get the contract address
418
+ */
419
+ get address(): Address;
420
+ /**
421
+ * Get the underlying viem contract instance.
422
+ */
423
+ getContract(): UFragmentsContract;
424
+ /**
425
+ * name
426
+ * view
427
+ */
428
+ name(): Promise<string>;
429
+ /**
430
+ * totalSupply
431
+ * view
432
+ */
433
+ totalSupply(): Promise<bigint>;
434
+ /**
435
+ * decimals
436
+ * view
437
+ */
438
+ decimals(): Promise<bigint>;
439
+ /**
440
+ * balanceOf
441
+ * view
442
+ */
443
+ balanceOf(who: `0x${string}`): Promise<bigint>;
444
+ /**
445
+ * owner
446
+ * view
447
+ */
448
+ owner(): Promise<`0x${string}`>;
449
+ /**
450
+ * monetaryPolicy
451
+ * view
452
+ */
453
+ monetaryPolicy(): Promise<`0x${string}`>;
454
+ /**
455
+ * isOwner
456
+ * view
457
+ */
458
+ isOwner(): Promise<boolean>;
459
+ /**
460
+ * symbol
461
+ * view
462
+ */
463
+ symbol(): Promise<string>;
464
+ /**
465
+ * deployer
466
+ * view
467
+ */
468
+ deployer(): Promise<`0x${string}`>;
469
+ /**
470
+ * allowance
471
+ * view
472
+ */
473
+ allowance(owner_: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
474
+ /**
475
+ * approve
476
+ * nonpayable
477
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
478
+ */
479
+ approve(spender: `0x${string}`, value: bigint, options?: {
480
+ accessList?: import('viem').AccessList;
481
+ authorizationList?: import('viem').AuthorizationList;
482
+ chain?: import('viem').Chain | null;
483
+ dataSuffix?: `0x${string}`;
484
+ gas?: bigint;
485
+ gasPrice?: bigint;
486
+ maxFeePerGas?: bigint;
487
+ maxPriorityFeePerGas?: bigint;
488
+ nonce?: number;
489
+ value?: bigint;
490
+ }): Promise<`0x${string}`>;
491
+ /**
492
+ * transferFrom
493
+ * nonpayable
494
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
495
+ */
496
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
497
+ accessList?: import('viem').AccessList;
498
+ authorizationList?: import('viem').AuthorizationList;
499
+ chain?: import('viem').Chain | null;
500
+ dataSuffix?: `0x${string}`;
501
+ gas?: bigint;
502
+ gasPrice?: bigint;
503
+ maxFeePerGas?: bigint;
504
+ maxPriorityFeePerGas?: bigint;
505
+ nonce?: number;
506
+ value?: bigint;
507
+ }): Promise<`0x${string}`>;
508
+ /**
509
+ * increaseAllowance
510
+ * nonpayable
511
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
512
+ */
513
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
514
+ accessList?: import('viem').AccessList;
515
+ authorizationList?: import('viem').AuthorizationList;
516
+ chain?: import('viem').Chain | null;
517
+ dataSuffix?: `0x${string}`;
518
+ gas?: bigint;
519
+ gasPrice?: bigint;
520
+ maxFeePerGas?: bigint;
521
+ maxPriorityFeePerGas?: bigint;
522
+ nonce?: number;
523
+ value?: bigint;
524
+ }): Promise<`0x${string}`>;
525
+ /**
526
+ * renounceOwnership
527
+ * nonpayable
528
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
529
+ */
530
+ renounceOwnership(options?: {
531
+ accessList?: import('viem').AccessList;
532
+ authorizationList?: import('viem').AuthorizationList;
533
+ chain?: import('viem').Chain | null;
534
+ dataSuffix?: `0x${string}`;
535
+ gas?: bigint;
536
+ gasPrice?: bigint;
537
+ maxFeePerGas?: bigint;
538
+ maxPriorityFeePerGas?: bigint;
539
+ nonce?: number;
540
+ value?: bigint;
541
+ }): Promise<`0x${string}`>;
542
+ /**
543
+ * rebase
544
+ * nonpayable
545
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
546
+ */
547
+ rebase(epoch: bigint, supplyDelta: bigint, options?: {
548
+ accessList?: import('viem').AccessList;
549
+ authorizationList?: import('viem').AuthorizationList;
550
+ chain?: import('viem').Chain | null;
551
+ dataSuffix?: `0x${string}`;
552
+ gas?: bigint;
553
+ gasPrice?: bigint;
554
+ maxFeePerGas?: bigint;
555
+ maxPriorityFeePerGas?: bigint;
556
+ nonce?: number;
557
+ value?: bigint;
558
+ }): Promise<`0x${string}`>;
559
+ /**
560
+ * setMonetaryPolicy
561
+ * nonpayable
562
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
563
+ */
564
+ setMonetaryPolicy(monetaryPolicy_: `0x${string}`, options?: {
565
+ accessList?: import('viem').AccessList;
566
+ authorizationList?: import('viem').AuthorizationList;
567
+ chain?: import('viem').Chain | null;
568
+ dataSuffix?: `0x${string}`;
569
+ gas?: bigint;
570
+ gasPrice?: bigint;
571
+ maxFeePerGas?: bigint;
572
+ maxPriorityFeePerGas?: bigint;
573
+ nonce?: number;
574
+ value?: bigint;
575
+ }): Promise<`0x${string}`>;
576
+ /**
577
+ * decreaseAllowance
578
+ * nonpayable
579
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
580
+ */
581
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
582
+ accessList?: import('viem').AccessList;
583
+ authorizationList?: import('viem').AuthorizationList;
584
+ chain?: import('viem').Chain | null;
585
+ dataSuffix?: `0x${string}`;
586
+ gas?: bigint;
587
+ gasPrice?: bigint;
588
+ maxFeePerGas?: bigint;
589
+ maxPriorityFeePerGas?: bigint;
590
+ nonce?: number;
591
+ value?: bigint;
592
+ }): Promise<`0x${string}`>;
593
+ /**
594
+ * transfer
595
+ * nonpayable
596
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
597
+ */
598
+ transfer(to: `0x${string}`, value: bigint, options?: {
599
+ accessList?: import('viem').AccessList;
600
+ authorizationList?: import('viem').AuthorizationList;
601
+ chain?: import('viem').Chain | null;
602
+ dataSuffix?: `0x${string}`;
603
+ gas?: bigint;
604
+ gasPrice?: bigint;
605
+ maxFeePerGas?: bigint;
606
+ maxPriorityFeePerGas?: bigint;
607
+ nonce?: number;
608
+ value?: bigint;
609
+ }): Promise<`0x${string}`>;
610
+ /**
611
+ * initialize
612
+ * nonpayable
613
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
614
+ */
615
+ initialize(name_: string, symbol_: string, owner_: `0x${string}`, migrator_: `0x${string}`, pool1_: `0x${string}`, options?: {
616
+ accessList?: import('viem').AccessList;
617
+ authorizationList?: import('viem').AuthorizationList;
618
+ chain?: import('viem').Chain | null;
619
+ dataSuffix?: `0x${string}`;
620
+ gas?: bigint;
621
+ gasPrice?: bigint;
622
+ maxFeePerGas?: bigint;
623
+ maxPriorityFeePerGas?: bigint;
624
+ nonce?: number;
625
+ value?: bigint;
626
+ }): Promise<`0x${string}`>;
627
+ /**
628
+ * transferOwnership
629
+ * nonpayable
630
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
631
+ */
632
+ transferOwnership(newOwner: `0x${string}`, options?: {
633
+ accessList?: import('viem').AccessList;
634
+ authorizationList?: import('viem').AuthorizationList;
635
+ chain?: import('viem').Chain | null;
636
+ dataSuffix?: `0x${string}`;
637
+ gas?: bigint;
638
+ gasPrice?: bigint;
639
+ maxFeePerGas?: bigint;
640
+ maxPriorityFeePerGas?: bigint;
641
+ nonce?: number;
642
+ value?: bigint;
643
+ }): Promise<`0x${string}`>;
644
+ /**
645
+ * Simulate contract write operations (dry-run without sending transaction)
646
+ *
647
+ * @example
648
+ * const result = await contract.simulate.transfer('0x...', 1000n);
649
+ * console.log('Gas estimate:', result.request.gas);
650
+ * console.log('Would succeed:', result.result);
651
+ */
652
+ get simulate(): {
653
+ /**
654
+ * Simulate approve
655
+ * Returns gas estimate and result without sending transaction
656
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
657
+ */
658
+ approve(spender: `0x${string}`, value: bigint, options?: {
659
+ accessList?: import("viem").AccessList;
660
+ authorizationList?: import("viem").AuthorizationList;
661
+ chain?: import("viem").Chain | null;
662
+ dataSuffix?: `0x${string}`;
663
+ gas?: bigint;
664
+ gasPrice?: bigint;
665
+ maxFeePerGas?: bigint;
666
+ maxPriorityFeePerGas?: bigint;
667
+ nonce?: number;
668
+ value?: bigint;
669
+ }): Promise<boolean>;
670
+ /**
671
+ * Simulate transferFrom
672
+ * Returns gas estimate and result without sending transaction
673
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
674
+ */
675
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
676
+ accessList?: import("viem").AccessList;
677
+ authorizationList?: import("viem").AuthorizationList;
678
+ chain?: import("viem").Chain | null;
679
+ dataSuffix?: `0x${string}`;
680
+ gas?: bigint;
681
+ gasPrice?: bigint;
682
+ maxFeePerGas?: bigint;
683
+ maxPriorityFeePerGas?: bigint;
684
+ nonce?: number;
685
+ value?: bigint;
686
+ }): Promise<boolean>;
687
+ /**
688
+ * Simulate increaseAllowance
689
+ * Returns gas estimate and result without sending transaction
690
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
691
+ */
692
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
693
+ accessList?: import("viem").AccessList;
694
+ authorizationList?: import("viem").AuthorizationList;
695
+ chain?: import("viem").Chain | null;
696
+ dataSuffix?: `0x${string}`;
697
+ gas?: bigint;
698
+ gasPrice?: bigint;
699
+ maxFeePerGas?: bigint;
700
+ maxPriorityFeePerGas?: bigint;
701
+ nonce?: number;
702
+ value?: bigint;
703
+ }): Promise<boolean>;
704
+ /**
705
+ * Simulate renounceOwnership
706
+ * Returns gas estimate and result without sending transaction
707
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
708
+ */
709
+ renounceOwnership(options?: {
710
+ accessList?: import("viem").AccessList;
711
+ authorizationList?: import("viem").AuthorizationList;
712
+ chain?: import("viem").Chain | null;
713
+ dataSuffix?: `0x${string}`;
714
+ gas?: bigint;
715
+ gasPrice?: bigint;
716
+ maxFeePerGas?: bigint;
717
+ maxPriorityFeePerGas?: bigint;
718
+ nonce?: number;
719
+ value?: bigint;
720
+ }): Promise<void>;
721
+ /**
722
+ * Simulate rebase
723
+ * Returns gas estimate and result without sending transaction
724
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
725
+ */
726
+ rebase(epoch: bigint, supplyDelta: bigint, options?: {
727
+ accessList?: import("viem").AccessList;
728
+ authorizationList?: import("viem").AuthorizationList;
729
+ chain?: import("viem").Chain | null;
730
+ dataSuffix?: `0x${string}`;
731
+ gas?: bigint;
732
+ gasPrice?: bigint;
733
+ maxFeePerGas?: bigint;
734
+ maxPriorityFeePerGas?: bigint;
735
+ nonce?: number;
736
+ value?: bigint;
737
+ }): Promise<bigint>;
738
+ /**
739
+ * Simulate setMonetaryPolicy
740
+ * Returns gas estimate and result without sending transaction
741
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
742
+ */
743
+ setMonetaryPolicy(monetaryPolicy_: `0x${string}`, options?: {
744
+ accessList?: import("viem").AccessList;
745
+ authorizationList?: import("viem").AuthorizationList;
746
+ chain?: import("viem").Chain | null;
747
+ dataSuffix?: `0x${string}`;
748
+ gas?: bigint;
749
+ gasPrice?: bigint;
750
+ maxFeePerGas?: bigint;
751
+ maxPriorityFeePerGas?: bigint;
752
+ nonce?: number;
753
+ value?: bigint;
754
+ }): Promise<void>;
755
+ /**
756
+ * Simulate decreaseAllowance
757
+ * Returns gas estimate and result without sending transaction
758
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
759
+ */
760
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
761
+ accessList?: import("viem").AccessList;
762
+ authorizationList?: import("viem").AuthorizationList;
763
+ chain?: import("viem").Chain | null;
764
+ dataSuffix?: `0x${string}`;
765
+ gas?: bigint;
766
+ gasPrice?: bigint;
767
+ maxFeePerGas?: bigint;
768
+ maxPriorityFeePerGas?: bigint;
769
+ nonce?: number;
770
+ value?: bigint;
771
+ }): Promise<boolean>;
772
+ /**
773
+ * Simulate transfer
774
+ * Returns gas estimate and result without sending transaction
775
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
776
+ */
777
+ transfer(to: `0x${string}`, value: bigint, options?: {
778
+ accessList?: import("viem").AccessList;
779
+ authorizationList?: import("viem").AuthorizationList;
780
+ chain?: import("viem").Chain | null;
781
+ dataSuffix?: `0x${string}`;
782
+ gas?: bigint;
783
+ gasPrice?: bigint;
784
+ maxFeePerGas?: bigint;
785
+ maxPriorityFeePerGas?: bigint;
786
+ nonce?: number;
787
+ value?: bigint;
788
+ }): Promise<boolean>;
789
+ /**
790
+ * Simulate initialize
791
+ * Returns gas estimate and result without sending transaction
792
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
793
+ */
794
+ initialize(name_: string, symbol_: string, owner_: `0x${string}`, migrator_: `0x${string}`, pool1_: `0x${string}`, options?: {
795
+ accessList?: import("viem").AccessList;
796
+ authorizationList?: import("viem").AuthorizationList;
797
+ chain?: import("viem").Chain | null;
798
+ dataSuffix?: `0x${string}`;
799
+ gas?: bigint;
800
+ gasPrice?: bigint;
801
+ maxFeePerGas?: bigint;
802
+ maxPriorityFeePerGas?: bigint;
803
+ nonce?: number;
804
+ value?: bigint;
805
+ }): Promise<void>;
806
+ /**
807
+ * Simulate transferOwnership
808
+ * Returns gas estimate and result without sending transaction
809
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
810
+ */
811
+ transferOwnership(newOwner: `0x${string}`, options?: {
812
+ accessList?: import("viem").AccessList;
813
+ authorizationList?: import("viem").AuthorizationList;
814
+ chain?: import("viem").Chain | null;
815
+ dataSuffix?: `0x${string}`;
816
+ gas?: bigint;
817
+ gasPrice?: bigint;
818
+ maxFeePerGas?: bigint;
819
+ maxPriorityFeePerGas?: bigint;
820
+ nonce?: number;
821
+ value?: bigint;
822
+ }): Promise<void>;
823
+ };
824
+ /**
825
+ * Watch contract events
826
+ *
827
+ * @example
828
+ * // Watch all Transfer events
829
+ * const unwatch = contract.watch.Transfer((event) => {
830
+ * console.log('Transfer:', event);
831
+ * });
832
+ *
833
+ * // Stop watching
834
+ * unwatch();
835
+ */
836
+ get watch(): {
837
+ /**
838
+ * Watch LogRebase events
839
+ * @param callback Function to call when event is emitted
840
+ * @param filter Optional filter for indexed parameters
841
+ * @returns Unwatch function to stop listening
842
+ */
843
+ LogRebase: (callback: (event: {
844
+ epoch: bigint;
845
+ totalSupply: bigint;
846
+ }) => void, filter?: {
847
+ epoch?: bigint | bigint[] | null;
848
+ }) => () => void;
849
+ /**
850
+ * Watch LogMonetaryPolicyUpdated events
851
+ * @param callback Function to call when event is emitted
852
+ * @param filter Optional filter for indexed parameters
853
+ * @returns Unwatch function to stop listening
854
+ */
855
+ LogMonetaryPolicyUpdated: (callback: (event: {
856
+ monetaryPolicy: `0x${string}`;
857
+ }) => void) => () => void;
858
+ /**
859
+ * Watch OwnershipRenounced events
860
+ * @param callback Function to call when event is emitted
861
+ * @param filter Optional filter for indexed parameters
862
+ * @returns Unwatch function to stop listening
863
+ */
864
+ OwnershipRenounced: (callback: (event: {
865
+ previousOwner: `0x${string}`;
866
+ }) => void, filter?: {
867
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
868
+ }) => () => void;
869
+ /**
870
+ * Watch OwnershipTransferred events
871
+ * @param callback Function to call when event is emitted
872
+ * @param filter Optional filter for indexed parameters
873
+ * @returns Unwatch function to stop listening
874
+ */
875
+ OwnershipTransferred: (callback: (event: {
876
+ previousOwner: `0x${string}`;
877
+ newOwner: `0x${string}`;
878
+ }) => void, filter?: {
879
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
880
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
881
+ }) => () => void;
882
+ /**
883
+ * Watch Transfer events
884
+ * @param callback Function to call when event is emitted
885
+ * @param filter Optional filter for indexed parameters
886
+ * @returns Unwatch function to stop listening
887
+ */
888
+ Transfer: (callback: (event: {
889
+ from: `0x${string}`;
890
+ to: `0x${string}`;
891
+ value: bigint;
892
+ }) => void, filter?: {
893
+ from?: `0x${string}` | `0x${string}`[] | null;
894
+ to?: `0x${string}` | `0x${string}`[] | null;
895
+ }) => () => void;
896
+ /**
897
+ * Watch Approval events
898
+ * @param callback Function to call when event is emitted
899
+ * @param filter Optional filter for indexed parameters
900
+ * @returns Unwatch function to stop listening
901
+ */
902
+ Approval: (callback: (event: {
903
+ owner: `0x${string}`;
904
+ spender: `0x${string}`;
905
+ value: bigint;
906
+ }) => void, filter?: {
907
+ owner?: `0x${string}` | `0x${string}`[] | null;
908
+ spender?: `0x${string}` | `0x${string}`[] | null;
909
+ }) => () => void;
910
+ };
911
+ }