@gitmyabi/addressesregistry 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,1025 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * IAddressesRegistry.AddressVars struct type
4
+ */
5
+ export type IAddressesRegistry_AddressVars = {
6
+ collToken: `0x${string}`;
7
+ borrowerOperations: `0x${string}`;
8
+ troveManager: `0x${string}`;
9
+ troveNFT: `0x${string}`;
10
+ metadataNFT: `0x${string}`;
11
+ stabilityPool: `0x${string}`;
12
+ priceFeed: `0x${string}`;
13
+ activePool: `0x${string}`;
14
+ defaultPool: `0x${string}`;
15
+ gasPoolAddress: `0x${string}`;
16
+ collSurplusPool: `0x${string}`;
17
+ sortedTroves: `0x${string}`;
18
+ interestRouter: `0x${string}`;
19
+ hintHelpers: `0x${string}`;
20
+ multiTroveGetter: `0x${string}`;
21
+ collateralRegistry: `0x${string}`;
22
+ boldToken: `0x${string}`;
23
+ WETH: `0x${string}`;
24
+ };
25
+ /**
26
+ * AddressesRegistry ABI
27
+ *
28
+ * This ABI is typed using viem's type system for full type safety.
29
+ */
30
+ export declare const AddressesRegistryAbi: readonly [{
31
+ readonly inputs: readonly [{
32
+ readonly internalType: "address";
33
+ readonly name: "_owner";
34
+ readonly type: "address";
35
+ }, {
36
+ readonly internalType: "uint256";
37
+ readonly name: "_ccr";
38
+ readonly type: "uint256";
39
+ }, {
40
+ readonly internalType: "uint256";
41
+ readonly name: "_mcr";
42
+ readonly type: "uint256";
43
+ }, {
44
+ readonly internalType: "uint256";
45
+ readonly name: "_scr";
46
+ readonly type: "uint256";
47
+ }, {
48
+ readonly internalType: "uint256";
49
+ readonly name: "_liquidationPenaltySP";
50
+ readonly type: "uint256";
51
+ }, {
52
+ readonly internalType: "uint256";
53
+ readonly name: "_liquidationPenaltyRedistribution";
54
+ readonly type: "uint256";
55
+ }];
56
+ readonly stateMutability: "nonpayable";
57
+ readonly type: "constructor";
58
+ }, {
59
+ readonly inputs: readonly [];
60
+ readonly name: "InvalidCCR";
61
+ readonly type: "error";
62
+ }, {
63
+ readonly inputs: readonly [];
64
+ readonly name: "InvalidMCR";
65
+ readonly type: "error";
66
+ }, {
67
+ readonly inputs: readonly [];
68
+ readonly name: "InvalidSCR";
69
+ readonly type: "error";
70
+ }, {
71
+ readonly inputs: readonly [];
72
+ readonly name: "RedistPenaltyTooHigh";
73
+ readonly type: "error";
74
+ }, {
75
+ readonly inputs: readonly [];
76
+ readonly name: "SPPenaltyGtRedist";
77
+ readonly type: "error";
78
+ }, {
79
+ readonly inputs: readonly [];
80
+ readonly name: "SPPenaltyTooLow";
81
+ readonly type: "error";
82
+ }, {
83
+ readonly anonymous: false;
84
+ readonly inputs: readonly [{
85
+ readonly indexed: false;
86
+ readonly internalType: "address";
87
+ readonly name: "_activePoolAddress";
88
+ readonly type: "address";
89
+ }];
90
+ readonly name: "ActivePoolAddressChanged";
91
+ readonly type: "event";
92
+ }, {
93
+ readonly anonymous: false;
94
+ readonly inputs: readonly [{
95
+ readonly indexed: false;
96
+ readonly internalType: "address";
97
+ readonly name: "_boldTokenAddress";
98
+ readonly type: "address";
99
+ }];
100
+ readonly name: "BoldTokenAddressChanged";
101
+ readonly type: "event";
102
+ }, {
103
+ readonly anonymous: false;
104
+ readonly inputs: readonly [{
105
+ readonly indexed: false;
106
+ readonly internalType: "address";
107
+ readonly name: "_borrowerOperationsAddress";
108
+ readonly type: "address";
109
+ }];
110
+ readonly name: "BorrowerOperationsAddressChanged";
111
+ readonly type: "event";
112
+ }, {
113
+ readonly anonymous: false;
114
+ readonly inputs: readonly [{
115
+ readonly indexed: false;
116
+ readonly internalType: "address";
117
+ readonly name: "_collSurplusPoolAddress";
118
+ readonly type: "address";
119
+ }];
120
+ readonly name: "CollSurplusPoolAddressChanged";
121
+ readonly type: "event";
122
+ }, {
123
+ readonly anonymous: false;
124
+ readonly inputs: readonly [{
125
+ readonly indexed: false;
126
+ readonly internalType: "address";
127
+ readonly name: "_collTokenAddress";
128
+ readonly type: "address";
129
+ }];
130
+ readonly name: "CollTokenAddressChanged";
131
+ readonly type: "event";
132
+ }, {
133
+ readonly anonymous: false;
134
+ readonly inputs: readonly [{
135
+ readonly indexed: false;
136
+ readonly internalType: "address";
137
+ readonly name: "_collateralRegistryAddress";
138
+ readonly type: "address";
139
+ }];
140
+ readonly name: "CollateralRegistryAddressChanged";
141
+ readonly type: "event";
142
+ }, {
143
+ readonly anonymous: false;
144
+ readonly inputs: readonly [{
145
+ readonly indexed: false;
146
+ readonly internalType: "address";
147
+ readonly name: "_defaultPoolAddress";
148
+ readonly type: "address";
149
+ }];
150
+ readonly name: "DefaultPoolAddressChanged";
151
+ readonly type: "event";
152
+ }, {
153
+ readonly anonymous: false;
154
+ readonly inputs: readonly [{
155
+ readonly indexed: false;
156
+ readonly internalType: "address";
157
+ readonly name: "_gasPoolAddress";
158
+ readonly type: "address";
159
+ }];
160
+ readonly name: "GasPoolAddressChanged";
161
+ readonly type: "event";
162
+ }, {
163
+ readonly anonymous: false;
164
+ readonly inputs: readonly [{
165
+ readonly indexed: false;
166
+ readonly internalType: "address";
167
+ readonly name: "_hintHelpersAddress";
168
+ readonly type: "address";
169
+ }];
170
+ readonly name: "HintHelpersAddressChanged";
171
+ readonly type: "event";
172
+ }, {
173
+ readonly anonymous: false;
174
+ readonly inputs: readonly [{
175
+ readonly indexed: false;
176
+ readonly internalType: "address";
177
+ readonly name: "_interestRouterAddress";
178
+ readonly type: "address";
179
+ }];
180
+ readonly name: "InterestRouterAddressChanged";
181
+ readonly type: "event";
182
+ }, {
183
+ readonly anonymous: false;
184
+ readonly inputs: readonly [{
185
+ readonly indexed: false;
186
+ readonly internalType: "address";
187
+ readonly name: "_metadataNFTAddress";
188
+ readonly type: "address";
189
+ }];
190
+ readonly name: "MetadataNFTAddressChanged";
191
+ readonly type: "event";
192
+ }, {
193
+ readonly anonymous: false;
194
+ readonly inputs: readonly [{
195
+ readonly indexed: false;
196
+ readonly internalType: "address";
197
+ readonly name: "_multiTroveGetterAddress";
198
+ readonly type: "address";
199
+ }];
200
+ readonly name: "MultiTroveGetterAddressChanged";
201
+ readonly type: "event";
202
+ }, {
203
+ readonly anonymous: false;
204
+ readonly inputs: readonly [{
205
+ readonly indexed: true;
206
+ readonly internalType: "address";
207
+ readonly name: "previousOwner";
208
+ readonly type: "address";
209
+ }, {
210
+ readonly indexed: true;
211
+ readonly internalType: "address";
212
+ readonly name: "newOwner";
213
+ readonly type: "address";
214
+ }];
215
+ readonly name: "OwnershipTransferred";
216
+ readonly type: "event";
217
+ }, {
218
+ readonly anonymous: false;
219
+ readonly inputs: readonly [{
220
+ readonly indexed: false;
221
+ readonly internalType: "address";
222
+ readonly name: "_priceFeedAddress";
223
+ readonly type: "address";
224
+ }];
225
+ readonly name: "PriceFeedAddressChanged";
226
+ readonly type: "event";
227
+ }, {
228
+ readonly anonymous: false;
229
+ readonly inputs: readonly [{
230
+ readonly indexed: false;
231
+ readonly internalType: "address";
232
+ readonly name: "_sortedTrovesAddress";
233
+ readonly type: "address";
234
+ }];
235
+ readonly name: "SortedTrovesAddressChanged";
236
+ readonly type: "event";
237
+ }, {
238
+ readonly anonymous: false;
239
+ readonly inputs: readonly [{
240
+ readonly indexed: false;
241
+ readonly internalType: "address";
242
+ readonly name: "_stabilityPoolAddress";
243
+ readonly type: "address";
244
+ }];
245
+ readonly name: "StabilityPoolAddressChanged";
246
+ readonly type: "event";
247
+ }, {
248
+ readonly anonymous: false;
249
+ readonly inputs: readonly [{
250
+ readonly indexed: false;
251
+ readonly internalType: "address";
252
+ readonly name: "_troveManagerAddress";
253
+ readonly type: "address";
254
+ }];
255
+ readonly name: "TroveManagerAddressChanged";
256
+ readonly type: "event";
257
+ }, {
258
+ readonly anonymous: false;
259
+ readonly inputs: readonly [{
260
+ readonly indexed: false;
261
+ readonly internalType: "address";
262
+ readonly name: "_troveNFTAddress";
263
+ readonly type: "address";
264
+ }];
265
+ readonly name: "TroveNFTAddressChanged";
266
+ readonly type: "event";
267
+ }, {
268
+ readonly anonymous: false;
269
+ readonly inputs: readonly [{
270
+ readonly indexed: false;
271
+ readonly internalType: "address";
272
+ readonly name: "_wethAddress";
273
+ readonly type: "address";
274
+ }];
275
+ readonly name: "WETHAddressChanged";
276
+ readonly type: "event";
277
+ }, {
278
+ readonly inputs: readonly [];
279
+ readonly name: "CCR";
280
+ readonly outputs: readonly [{
281
+ readonly internalType: "uint256";
282
+ readonly name: "";
283
+ readonly type: "uint256";
284
+ }];
285
+ readonly stateMutability: "view";
286
+ readonly type: "function";
287
+ }, {
288
+ readonly inputs: readonly [];
289
+ readonly name: "LIQUIDATION_PENALTY_REDISTRIBUTION";
290
+ readonly outputs: readonly [{
291
+ readonly internalType: "uint256";
292
+ readonly name: "";
293
+ readonly type: "uint256";
294
+ }];
295
+ readonly stateMutability: "view";
296
+ readonly type: "function";
297
+ }, {
298
+ readonly inputs: readonly [];
299
+ readonly name: "LIQUIDATION_PENALTY_SP";
300
+ readonly outputs: readonly [{
301
+ readonly internalType: "uint256";
302
+ readonly name: "";
303
+ readonly type: "uint256";
304
+ }];
305
+ readonly stateMutability: "view";
306
+ readonly type: "function";
307
+ }, {
308
+ readonly inputs: readonly [];
309
+ readonly name: "MCR";
310
+ readonly outputs: readonly [{
311
+ readonly internalType: "uint256";
312
+ readonly name: "";
313
+ readonly type: "uint256";
314
+ }];
315
+ readonly stateMutability: "view";
316
+ readonly type: "function";
317
+ }, {
318
+ readonly inputs: readonly [];
319
+ readonly name: "SCR";
320
+ readonly outputs: readonly [{
321
+ readonly internalType: "uint256";
322
+ readonly name: "";
323
+ readonly type: "uint256";
324
+ }];
325
+ readonly stateMutability: "view";
326
+ readonly type: "function";
327
+ }, {
328
+ readonly inputs: readonly [];
329
+ readonly name: "WETH";
330
+ readonly outputs: readonly [{
331
+ readonly internalType: "contract IWETH";
332
+ readonly name: "";
333
+ readonly type: "address";
334
+ }];
335
+ readonly stateMutability: "view";
336
+ readonly type: "function";
337
+ }, {
338
+ readonly inputs: readonly [];
339
+ readonly name: "activePool";
340
+ readonly outputs: readonly [{
341
+ readonly internalType: "contract IActivePool";
342
+ readonly name: "";
343
+ readonly type: "address";
344
+ }];
345
+ readonly stateMutability: "view";
346
+ readonly type: "function";
347
+ }, {
348
+ readonly inputs: readonly [];
349
+ readonly name: "boldToken";
350
+ readonly outputs: readonly [{
351
+ readonly internalType: "contract IBoldToken";
352
+ readonly name: "";
353
+ readonly type: "address";
354
+ }];
355
+ readonly stateMutability: "view";
356
+ readonly type: "function";
357
+ }, {
358
+ readonly inputs: readonly [];
359
+ readonly name: "borrowerOperations";
360
+ readonly outputs: readonly [{
361
+ readonly internalType: "contract IBorrowerOperations";
362
+ readonly name: "";
363
+ readonly type: "address";
364
+ }];
365
+ readonly stateMutability: "view";
366
+ readonly type: "function";
367
+ }, {
368
+ readonly inputs: readonly [];
369
+ readonly name: "collSurplusPool";
370
+ readonly outputs: readonly [{
371
+ readonly internalType: "contract ICollSurplusPool";
372
+ readonly name: "";
373
+ readonly type: "address";
374
+ }];
375
+ readonly stateMutability: "view";
376
+ readonly type: "function";
377
+ }, {
378
+ readonly inputs: readonly [];
379
+ readonly name: "collToken";
380
+ readonly outputs: readonly [{
381
+ readonly internalType: "contract IERC20Metadata";
382
+ readonly name: "";
383
+ readonly type: "address";
384
+ }];
385
+ readonly stateMutability: "view";
386
+ readonly type: "function";
387
+ }, {
388
+ readonly inputs: readonly [];
389
+ readonly name: "collateralRegistry";
390
+ readonly outputs: readonly [{
391
+ readonly internalType: "contract ICollateralRegistry";
392
+ readonly name: "";
393
+ readonly type: "address";
394
+ }];
395
+ readonly stateMutability: "view";
396
+ readonly type: "function";
397
+ }, {
398
+ readonly inputs: readonly [];
399
+ readonly name: "defaultPool";
400
+ readonly outputs: readonly [{
401
+ readonly internalType: "contract IDefaultPool";
402
+ readonly name: "";
403
+ readonly type: "address";
404
+ }];
405
+ readonly stateMutability: "view";
406
+ readonly type: "function";
407
+ }, {
408
+ readonly inputs: readonly [];
409
+ readonly name: "gasPoolAddress";
410
+ readonly outputs: readonly [{
411
+ readonly internalType: "address";
412
+ readonly name: "";
413
+ readonly type: "address";
414
+ }];
415
+ readonly stateMutability: "view";
416
+ readonly type: "function";
417
+ }, {
418
+ readonly inputs: readonly [];
419
+ readonly name: "hintHelpers";
420
+ readonly outputs: readonly [{
421
+ readonly internalType: "contract IHintHelpers";
422
+ readonly name: "";
423
+ readonly type: "address";
424
+ }];
425
+ readonly stateMutability: "view";
426
+ readonly type: "function";
427
+ }, {
428
+ readonly inputs: readonly [];
429
+ readonly name: "interestRouter";
430
+ readonly outputs: readonly [{
431
+ readonly internalType: "contract IInterestRouter";
432
+ readonly name: "";
433
+ readonly type: "address";
434
+ }];
435
+ readonly stateMutability: "view";
436
+ readonly type: "function";
437
+ }, {
438
+ readonly inputs: readonly [];
439
+ readonly name: "isOwner";
440
+ readonly outputs: readonly [{
441
+ readonly internalType: "bool";
442
+ readonly name: "";
443
+ readonly type: "bool";
444
+ }];
445
+ readonly stateMutability: "view";
446
+ readonly type: "function";
447
+ }, {
448
+ readonly inputs: readonly [];
449
+ readonly name: "metadataNFT";
450
+ readonly outputs: readonly [{
451
+ readonly internalType: "contract IMetadataNFT";
452
+ readonly name: "";
453
+ readonly type: "address";
454
+ }];
455
+ readonly stateMutability: "view";
456
+ readonly type: "function";
457
+ }, {
458
+ readonly inputs: readonly [];
459
+ readonly name: "multiTroveGetter";
460
+ readonly outputs: readonly [{
461
+ readonly internalType: "contract IMultiTroveGetter";
462
+ readonly name: "";
463
+ readonly type: "address";
464
+ }];
465
+ readonly stateMutability: "view";
466
+ readonly type: "function";
467
+ }, {
468
+ readonly inputs: readonly [];
469
+ readonly name: "owner";
470
+ readonly outputs: readonly [{
471
+ readonly internalType: "address";
472
+ readonly name: "";
473
+ readonly type: "address";
474
+ }];
475
+ readonly stateMutability: "view";
476
+ readonly type: "function";
477
+ }, {
478
+ readonly inputs: readonly [];
479
+ readonly name: "priceFeed";
480
+ readonly outputs: readonly [{
481
+ readonly internalType: "contract IPriceFeed";
482
+ readonly name: "";
483
+ readonly type: "address";
484
+ }];
485
+ readonly stateMutability: "view";
486
+ readonly type: "function";
487
+ }, {
488
+ readonly inputs: readonly [{
489
+ readonly components: readonly [{
490
+ readonly internalType: "contract IERC20Metadata";
491
+ readonly name: "collToken";
492
+ readonly type: "address";
493
+ }, {
494
+ readonly internalType: "contract IBorrowerOperations";
495
+ readonly name: "borrowerOperations";
496
+ readonly type: "address";
497
+ }, {
498
+ readonly internalType: "contract ITroveManager";
499
+ readonly name: "troveManager";
500
+ readonly type: "address";
501
+ }, {
502
+ readonly internalType: "contract ITroveNFT";
503
+ readonly name: "troveNFT";
504
+ readonly type: "address";
505
+ }, {
506
+ readonly internalType: "contract IMetadataNFT";
507
+ readonly name: "metadataNFT";
508
+ readonly type: "address";
509
+ }, {
510
+ readonly internalType: "contract IStabilityPool";
511
+ readonly name: "stabilityPool";
512
+ readonly type: "address";
513
+ }, {
514
+ readonly internalType: "contract IPriceFeed";
515
+ readonly name: "priceFeed";
516
+ readonly type: "address";
517
+ }, {
518
+ readonly internalType: "contract IActivePool";
519
+ readonly name: "activePool";
520
+ readonly type: "address";
521
+ }, {
522
+ readonly internalType: "contract IDefaultPool";
523
+ readonly name: "defaultPool";
524
+ readonly type: "address";
525
+ }, {
526
+ readonly internalType: "address";
527
+ readonly name: "gasPoolAddress";
528
+ readonly type: "address";
529
+ }, {
530
+ readonly internalType: "contract ICollSurplusPool";
531
+ readonly name: "collSurplusPool";
532
+ readonly type: "address";
533
+ }, {
534
+ readonly internalType: "contract ISortedTroves";
535
+ readonly name: "sortedTroves";
536
+ readonly type: "address";
537
+ }, {
538
+ readonly internalType: "contract IInterestRouter";
539
+ readonly name: "interestRouter";
540
+ readonly type: "address";
541
+ }, {
542
+ readonly internalType: "contract IHintHelpers";
543
+ readonly name: "hintHelpers";
544
+ readonly type: "address";
545
+ }, {
546
+ readonly internalType: "contract IMultiTroveGetter";
547
+ readonly name: "multiTroveGetter";
548
+ readonly type: "address";
549
+ }, {
550
+ readonly internalType: "contract ICollateralRegistry";
551
+ readonly name: "collateralRegistry";
552
+ readonly type: "address";
553
+ }, {
554
+ readonly internalType: "contract IBoldToken";
555
+ readonly name: "boldToken";
556
+ readonly type: "address";
557
+ }, {
558
+ readonly internalType: "contract IWETH";
559
+ readonly name: "WETH";
560
+ readonly type: "address";
561
+ }];
562
+ readonly internalType: "struct IAddressesRegistry.AddressVars";
563
+ readonly name: "_vars";
564
+ readonly type: "tuple";
565
+ }];
566
+ readonly name: "setAddresses";
567
+ readonly outputs: readonly [];
568
+ readonly stateMutability: "nonpayable";
569
+ readonly type: "function";
570
+ }, {
571
+ readonly inputs: readonly [];
572
+ readonly name: "sortedTroves";
573
+ readonly outputs: readonly [{
574
+ readonly internalType: "contract ISortedTroves";
575
+ readonly name: "";
576
+ readonly type: "address";
577
+ }];
578
+ readonly stateMutability: "view";
579
+ readonly type: "function";
580
+ }, {
581
+ readonly inputs: readonly [];
582
+ readonly name: "stabilityPool";
583
+ readonly outputs: readonly [{
584
+ readonly internalType: "contract IStabilityPool";
585
+ readonly name: "";
586
+ readonly type: "address";
587
+ }];
588
+ readonly stateMutability: "view";
589
+ readonly type: "function";
590
+ }, {
591
+ readonly inputs: readonly [];
592
+ readonly name: "troveManager";
593
+ readonly outputs: readonly [{
594
+ readonly internalType: "contract ITroveManager";
595
+ readonly name: "";
596
+ readonly type: "address";
597
+ }];
598
+ readonly stateMutability: "view";
599
+ readonly type: "function";
600
+ }, {
601
+ readonly inputs: readonly [];
602
+ readonly name: "troveNFT";
603
+ readonly outputs: readonly [{
604
+ readonly internalType: "contract ITroveNFT";
605
+ readonly name: "";
606
+ readonly type: "address";
607
+ }];
608
+ readonly stateMutability: "view";
609
+ readonly type: "function";
610
+ }];
611
+ /**
612
+ * Type-safe ABI for AddressesRegistry
613
+ */
614
+ export type AddressesRegistryAbi = typeof AddressesRegistryAbi;
615
+ /**
616
+ * Contract instance type for AddressesRegistry
617
+ */
618
+ export type AddressesRegistryContract = any;
619
+ /**
620
+ * AddressesRegistry Contract Class
621
+ *
622
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
623
+ *
624
+ * @example
625
+ * ```typescript
626
+ * import { createPublicClient, createWalletClient, http } from 'viem';
627
+ * import { mainnet } from 'viem/chains';
628
+ * import { AddressesRegistry } from 'AddressesRegistry';
629
+ *
630
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
631
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
632
+ *
633
+ * const contract = new AddressesRegistry('0x...', { publicClient, walletClient });
634
+ *
635
+ * // Read functions
636
+ * const result = await contract.balanceOf('0x...');
637
+ *
638
+ * // Write functions
639
+ * const hash = await contract.transfer('0x...', 1000n);
640
+ *
641
+ * // Simulate transactions (dry-run)
642
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
643
+ * console.log('Gas estimate:', simulation.request.gas);
644
+ *
645
+ * // Watch events
646
+ * const unwatch = contract.watch.Transfer((event) => {
647
+ * console.log('Transfer event:', event);
648
+ * });
649
+ * ```
650
+ */
651
+ export declare class AddressesRegistry {
652
+ private contract;
653
+ private contractAddress;
654
+ private publicClient;
655
+ constructor(address: Address, clients: {
656
+ publicClient: PublicClient;
657
+ walletClient?: WalletClient;
658
+ });
659
+ /**
660
+ * Get the contract address
661
+ */
662
+ get address(): Address;
663
+ /**
664
+ * Get the underlying viem contract instance.
665
+ */
666
+ getContract(): AddressesRegistryContract;
667
+ /**
668
+ * CCR
669
+ * view
670
+ */
671
+ CCR(): Promise<bigint>;
672
+ /**
673
+ * LIQUIDATION_PENALTY_REDISTRIBUTION
674
+ * view
675
+ */
676
+ LIQUIDATION_PENALTY_REDISTRIBUTION(): Promise<bigint>;
677
+ /**
678
+ * LIQUIDATION_PENALTY_SP
679
+ * view
680
+ */
681
+ LIQUIDATION_PENALTY_SP(): Promise<bigint>;
682
+ /**
683
+ * MCR
684
+ * view
685
+ */
686
+ MCR(): Promise<bigint>;
687
+ /**
688
+ * SCR
689
+ * view
690
+ */
691
+ SCR(): Promise<bigint>;
692
+ /**
693
+ * WETH
694
+ * view
695
+ */
696
+ WETH(): Promise<`0x${string}`>;
697
+ /**
698
+ * activePool
699
+ * view
700
+ */
701
+ activePool(): Promise<`0x${string}`>;
702
+ /**
703
+ * boldToken
704
+ * view
705
+ */
706
+ boldToken(): Promise<`0x${string}`>;
707
+ /**
708
+ * borrowerOperations
709
+ * view
710
+ */
711
+ borrowerOperations(): Promise<`0x${string}`>;
712
+ /**
713
+ * collSurplusPool
714
+ * view
715
+ */
716
+ collSurplusPool(): Promise<`0x${string}`>;
717
+ /**
718
+ * collToken
719
+ * view
720
+ */
721
+ collToken(): Promise<`0x${string}`>;
722
+ /**
723
+ * collateralRegistry
724
+ * view
725
+ */
726
+ collateralRegistry(): Promise<`0x${string}`>;
727
+ /**
728
+ * defaultPool
729
+ * view
730
+ */
731
+ defaultPool(): Promise<`0x${string}`>;
732
+ /**
733
+ * gasPoolAddress
734
+ * view
735
+ */
736
+ gasPoolAddress(): Promise<`0x${string}`>;
737
+ /**
738
+ * hintHelpers
739
+ * view
740
+ */
741
+ hintHelpers(): Promise<`0x${string}`>;
742
+ /**
743
+ * interestRouter
744
+ * view
745
+ */
746
+ interestRouter(): Promise<`0x${string}`>;
747
+ /**
748
+ * isOwner
749
+ * view
750
+ */
751
+ isOwner(): Promise<boolean>;
752
+ /**
753
+ * metadataNFT
754
+ * view
755
+ */
756
+ metadataNFT(): Promise<`0x${string}`>;
757
+ /**
758
+ * multiTroveGetter
759
+ * view
760
+ */
761
+ multiTroveGetter(): Promise<`0x${string}`>;
762
+ /**
763
+ * owner
764
+ * view
765
+ */
766
+ owner(): Promise<`0x${string}`>;
767
+ /**
768
+ * priceFeed
769
+ * view
770
+ */
771
+ priceFeed(): Promise<`0x${string}`>;
772
+ /**
773
+ * sortedTroves
774
+ * view
775
+ */
776
+ sortedTroves(): Promise<`0x${string}`>;
777
+ /**
778
+ * stabilityPool
779
+ * view
780
+ */
781
+ stabilityPool(): Promise<`0x${string}`>;
782
+ /**
783
+ * troveManager
784
+ * view
785
+ */
786
+ troveManager(): Promise<`0x${string}`>;
787
+ /**
788
+ * troveNFT
789
+ * view
790
+ */
791
+ troveNFT(): Promise<`0x${string}`>;
792
+ /**
793
+ * setAddresses
794
+ * nonpayable
795
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
796
+ */
797
+ setAddresses(_vars: IAddressesRegistry_AddressVars, options?: {
798
+ accessList?: import('viem').AccessList;
799
+ authorizationList?: import('viem').AuthorizationList;
800
+ chain?: import('viem').Chain | null;
801
+ dataSuffix?: `0x${string}`;
802
+ gas?: bigint;
803
+ gasPrice?: bigint;
804
+ maxFeePerGas?: bigint;
805
+ maxPriorityFeePerGas?: bigint;
806
+ nonce?: number;
807
+ value?: bigint;
808
+ }): Promise<`0x${string}`>;
809
+ /**
810
+ * Simulate contract write operations (dry-run without sending transaction)
811
+ *
812
+ * @example
813
+ * const result = await contract.simulate.transfer('0x...', 1000n);
814
+ * console.log('Gas estimate:', result.request.gas);
815
+ * console.log('Would succeed:', result.result);
816
+ */
817
+ get simulate(): {
818
+ /**
819
+ * Simulate setAddresses
820
+ * Returns gas estimate and result without sending transaction
821
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
822
+ */
823
+ setAddresses(_vars: IAddressesRegistry_AddressVars, 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<void>;
835
+ };
836
+ /**
837
+ * Watch contract events
838
+ *
839
+ * @example
840
+ * // Watch all Transfer events
841
+ * const unwatch = contract.watch.Transfer((event) => {
842
+ * console.log('Transfer:', event);
843
+ * });
844
+ *
845
+ * // Stop watching
846
+ * unwatch();
847
+ */
848
+ get watch(): {
849
+ /**
850
+ * Watch ActivePoolAddressChanged 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
+ ActivePoolAddressChanged: (callback: (event: {
856
+ _activePoolAddress: `0x${string}`;
857
+ }) => void) => () => void;
858
+ /**
859
+ * Watch BoldTokenAddressChanged 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
+ BoldTokenAddressChanged: (callback: (event: {
865
+ _boldTokenAddress: `0x${string}`;
866
+ }) => void) => () => void;
867
+ /**
868
+ * Watch BorrowerOperationsAddressChanged events
869
+ * @param callback Function to call when event is emitted
870
+ * @param filter Optional filter for indexed parameters
871
+ * @returns Unwatch function to stop listening
872
+ */
873
+ BorrowerOperationsAddressChanged: (callback: (event: {
874
+ _borrowerOperationsAddress: `0x${string}`;
875
+ }) => void) => () => void;
876
+ /**
877
+ * Watch CollSurplusPoolAddressChanged events
878
+ * @param callback Function to call when event is emitted
879
+ * @param filter Optional filter for indexed parameters
880
+ * @returns Unwatch function to stop listening
881
+ */
882
+ CollSurplusPoolAddressChanged: (callback: (event: {
883
+ _collSurplusPoolAddress: `0x${string}`;
884
+ }) => void) => () => void;
885
+ /**
886
+ * Watch CollTokenAddressChanged events
887
+ * @param callback Function to call when event is emitted
888
+ * @param filter Optional filter for indexed parameters
889
+ * @returns Unwatch function to stop listening
890
+ */
891
+ CollTokenAddressChanged: (callback: (event: {
892
+ _collTokenAddress: `0x${string}`;
893
+ }) => void) => () => void;
894
+ /**
895
+ * Watch CollateralRegistryAddressChanged events
896
+ * @param callback Function to call when event is emitted
897
+ * @param filter Optional filter for indexed parameters
898
+ * @returns Unwatch function to stop listening
899
+ */
900
+ CollateralRegistryAddressChanged: (callback: (event: {
901
+ _collateralRegistryAddress: `0x${string}`;
902
+ }) => void) => () => void;
903
+ /**
904
+ * Watch DefaultPoolAddressChanged events
905
+ * @param callback Function to call when event is emitted
906
+ * @param filter Optional filter for indexed parameters
907
+ * @returns Unwatch function to stop listening
908
+ */
909
+ DefaultPoolAddressChanged: (callback: (event: {
910
+ _defaultPoolAddress: `0x${string}`;
911
+ }) => void) => () => void;
912
+ /**
913
+ * Watch GasPoolAddressChanged events
914
+ * @param callback Function to call when event is emitted
915
+ * @param filter Optional filter for indexed parameters
916
+ * @returns Unwatch function to stop listening
917
+ */
918
+ GasPoolAddressChanged: (callback: (event: {
919
+ _gasPoolAddress: `0x${string}`;
920
+ }) => void) => () => void;
921
+ /**
922
+ * Watch HintHelpersAddressChanged events
923
+ * @param callback Function to call when event is emitted
924
+ * @param filter Optional filter for indexed parameters
925
+ * @returns Unwatch function to stop listening
926
+ */
927
+ HintHelpersAddressChanged: (callback: (event: {
928
+ _hintHelpersAddress: `0x${string}`;
929
+ }) => void) => () => void;
930
+ /**
931
+ * Watch InterestRouterAddressChanged events
932
+ * @param callback Function to call when event is emitted
933
+ * @param filter Optional filter for indexed parameters
934
+ * @returns Unwatch function to stop listening
935
+ */
936
+ InterestRouterAddressChanged: (callback: (event: {
937
+ _interestRouterAddress: `0x${string}`;
938
+ }) => void) => () => void;
939
+ /**
940
+ * Watch MetadataNFTAddressChanged events
941
+ * @param callback Function to call when event is emitted
942
+ * @param filter Optional filter for indexed parameters
943
+ * @returns Unwatch function to stop listening
944
+ */
945
+ MetadataNFTAddressChanged: (callback: (event: {
946
+ _metadataNFTAddress: `0x${string}`;
947
+ }) => void) => () => void;
948
+ /**
949
+ * Watch MultiTroveGetterAddressChanged events
950
+ * @param callback Function to call when event is emitted
951
+ * @param filter Optional filter for indexed parameters
952
+ * @returns Unwatch function to stop listening
953
+ */
954
+ MultiTroveGetterAddressChanged: (callback: (event: {
955
+ _multiTroveGetterAddress: `0x${string}`;
956
+ }) => void) => () => void;
957
+ /**
958
+ * Watch OwnershipTransferred events
959
+ * @param callback Function to call when event is emitted
960
+ * @param filter Optional filter for indexed parameters
961
+ * @returns Unwatch function to stop listening
962
+ */
963
+ OwnershipTransferred: (callback: (event: {
964
+ previousOwner: `0x${string}`;
965
+ newOwner: `0x${string}`;
966
+ }) => void, filter?: {
967
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
968
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
969
+ }) => () => void;
970
+ /**
971
+ * Watch PriceFeedAddressChanged events
972
+ * @param callback Function to call when event is emitted
973
+ * @param filter Optional filter for indexed parameters
974
+ * @returns Unwatch function to stop listening
975
+ */
976
+ PriceFeedAddressChanged: (callback: (event: {
977
+ _priceFeedAddress: `0x${string}`;
978
+ }) => void) => () => void;
979
+ /**
980
+ * Watch SortedTrovesAddressChanged events
981
+ * @param callback Function to call when event is emitted
982
+ * @param filter Optional filter for indexed parameters
983
+ * @returns Unwatch function to stop listening
984
+ */
985
+ SortedTrovesAddressChanged: (callback: (event: {
986
+ _sortedTrovesAddress: `0x${string}`;
987
+ }) => void) => () => void;
988
+ /**
989
+ * Watch StabilityPoolAddressChanged events
990
+ * @param callback Function to call when event is emitted
991
+ * @param filter Optional filter for indexed parameters
992
+ * @returns Unwatch function to stop listening
993
+ */
994
+ StabilityPoolAddressChanged: (callback: (event: {
995
+ _stabilityPoolAddress: `0x${string}`;
996
+ }) => void) => () => void;
997
+ /**
998
+ * Watch TroveManagerAddressChanged events
999
+ * @param callback Function to call when event is emitted
1000
+ * @param filter Optional filter for indexed parameters
1001
+ * @returns Unwatch function to stop listening
1002
+ */
1003
+ TroveManagerAddressChanged: (callback: (event: {
1004
+ _troveManagerAddress: `0x${string}`;
1005
+ }) => void) => () => void;
1006
+ /**
1007
+ * Watch TroveNFTAddressChanged events
1008
+ * @param callback Function to call when event is emitted
1009
+ * @param filter Optional filter for indexed parameters
1010
+ * @returns Unwatch function to stop listening
1011
+ */
1012
+ TroveNFTAddressChanged: (callback: (event: {
1013
+ _troveNFTAddress: `0x${string}`;
1014
+ }) => void) => () => void;
1015
+ /**
1016
+ * Watch WETHAddressChanged events
1017
+ * @param callback Function to call when event is emitted
1018
+ * @param filter Optional filter for indexed parameters
1019
+ * @returns Unwatch function to stop listening
1020
+ */
1021
+ WETHAddressChanged: (callback: (event: {
1022
+ _wethAddress: `0x${string}`;
1023
+ }) => void) => () => void;
1024
+ };
1025
+ }