@mezo-org/passport 0.12.0-dev.0 → 0.12.0-dev.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.
Files changed (50) hide show
  1. package/package.json +1 -1
  2. package/dist/cjs/index.js +0 -68
  3. package/dist/cjs/index.js.map +0 -1
  4. package/dist/esm/index.js +0 -68
  5. package/dist/esm/index.js.map +0 -1
  6. package/dist/index.d.ts +0 -31
  7. package/dist/src/components/Dropdown/AccountAddress.d.ts +0 -8
  8. package/dist/src/components/Dropdown/AccountAddress.d.ts.map +0 -1
  9. package/dist/src/components/Dropdown/AccountAddress.js +0 -66
  10. package/dist/src/components/Dropdown/AccountAddress.js.map +0 -1
  11. package/dist/src/components/Dropdown/AccountAssets.d.ts +0 -13
  12. package/dist/src/components/Dropdown/AccountAssets.d.ts.map +0 -1
  13. package/dist/src/components/Dropdown/AccountAssets.js +0 -43
  14. package/dist/src/components/Dropdown/AccountAssets.js.map +0 -1
  15. package/dist/src/components/Dropdown/AccountBalance.d.ts +0 -7
  16. package/dist/src/components/Dropdown/AccountBalance.d.ts.map +0 -1
  17. package/dist/src/components/Dropdown/AccountBalance.js +0 -16
  18. package/dist/src/components/Dropdown/AccountBalance.js.map +0 -1
  19. package/dist/src/components/Dropdown/Root/AccountAssetItem.d.ts +0 -11
  20. package/dist/src/components/Dropdown/Root/AccountAssetItem.d.ts.map +0 -1
  21. package/dist/src/components/Dropdown/Root/AccountAssetItem.js +0 -9
  22. package/dist/src/components/Dropdown/Root/AccountAssetItem.js.map +0 -1
  23. package/dist/src/components/Dropdown/WelcomeBlock.d.ts +0 -8
  24. package/dist/src/components/Dropdown/WelcomeBlock.d.ts.map +0 -1
  25. package/dist/src/components/Dropdown/WelcomeBlock.js +0 -43
  26. package/dist/src/components/Dropdown/WelcomeBlock.js.map +0 -1
  27. package/dist/src/hooks/useAssetsUSDConversion.d.ts +0 -8
  28. package/dist/src/hooks/useAssetsUSDConversion.d.ts.map +0 -1
  29. package/dist/src/hooks/useAssetsUSDConversion.js +0 -21
  30. package/dist/src/hooks/useAssetsUSDConversion.js.map +0 -1
  31. package/dist/src/hooks/useDropdownData.d.ts +0 -47
  32. package/dist/src/hooks/useDropdownData.d.ts.map +0 -1
  33. package/dist/src/hooks/useDropdownData.js +0 -97
  34. package/dist/src/hooks/useDropdownData.js.map +0 -1
  35. package/dist/src/lib/contracts/priceOracle.d.ts +0 -43
  36. package/dist/src/lib/contracts/priceOracle.d.ts.map +0 -1
  37. package/dist/src/lib/contracts/priceOracle.js +0 -52
  38. package/dist/src/lib/contracts/priceOracle.js.map +0 -1
  39. package/dist/src/lib/contracts/troveManager.d.ts +0 -1401
  40. package/dist/src/lib/contracts/troveManager.d.ts.map +0 -1
  41. package/dist/src/lib/contracts/troveManager.js +0 -1820
  42. package/dist/src/lib/contracts/troveManager.js.map +0 -1
  43. package/dist/src/utils/cryptoAssets.d.ts +0 -44
  44. package/dist/src/utils/cryptoAssets.d.ts.map +0 -1
  45. package/dist/src/utils/cryptoAssets.js +0 -129
  46. package/dist/src/utils/cryptoAssets.js.map +0 -1
  47. package/dist/src/utils/cryptoAssets.test.d.ts +0 -2
  48. package/dist/src/utils/cryptoAssets.test.d.ts.map +0 -1
  49. package/dist/src/utils/cryptoAssets.test.js +0 -67
  50. package/dist/src/utils/cryptoAssets.test.js.map +0 -1
@@ -1,1820 +0,0 @@
1
- export default {
2
- address: {
3
- // TODO: Add proper address for mainnet
4
- mainnet: "0x8823Fa11b80cd43ea231492Aa0386Be067E21E65",
5
- testnet: "0x8823Fa11b80cd43ea231492Aa0386Be067E21E65",
6
- },
7
- abi: [
8
- {
9
- inputs: [],
10
- stateMutability: "nonpayable",
11
- type: "constructor",
12
- },
13
- {
14
- inputs: [],
15
- name: "InvalidInitialization",
16
- type: "error",
17
- },
18
- {
19
- inputs: [],
20
- name: "NotInitializing",
21
- type: "error",
22
- },
23
- {
24
- inputs: [
25
- {
26
- internalType: "address",
27
- name: "owner",
28
- type: "address",
29
- },
30
- ],
31
- name: "OwnableInvalidOwner",
32
- type: "error",
33
- },
34
- {
35
- inputs: [
36
- {
37
- internalType: "address",
38
- name: "account",
39
- type: "address",
40
- },
41
- ],
42
- name: "OwnableUnauthorizedAccount",
43
- type: "error",
44
- },
45
- {
46
- anonymous: false,
47
- inputs: [
48
- {
49
- indexed: false,
50
- internalType: "address",
51
- name: "_activePoolAddress",
52
- type: "address",
53
- },
54
- ],
55
- name: "ActivePoolAddressChanged",
56
- type: "event",
57
- },
58
- {
59
- anonymous: false,
60
- inputs: [
61
- {
62
- indexed: false,
63
- internalType: "uint256",
64
- name: "_baseRate",
65
- type: "uint256",
66
- },
67
- ],
68
- name: "BaseRateUpdated",
69
- type: "event",
70
- },
71
- {
72
- anonymous: false,
73
- inputs: [
74
- {
75
- indexed: false,
76
- internalType: "address",
77
- name: "_newBorrowerOperationsAddress",
78
- type: "address",
79
- },
80
- ],
81
- name: "BorrowerOperationsAddressChanged",
82
- type: "event",
83
- },
84
- {
85
- anonymous: false,
86
- inputs: [
87
- {
88
- indexed: false,
89
- internalType: "address",
90
- name: "_collSurplusPoolAddress",
91
- type: "address",
92
- },
93
- ],
94
- name: "CollSurplusPoolAddressChanged",
95
- type: "event",
96
- },
97
- {
98
- anonymous: false,
99
- inputs: [
100
- {
101
- indexed: false,
102
- internalType: "address",
103
- name: "_defaultPoolAddress",
104
- type: "address",
105
- },
106
- ],
107
- name: "DefaultPoolAddressChanged",
108
- type: "event",
109
- },
110
- {
111
- anonymous: false,
112
- inputs: [
113
- {
114
- indexed: false,
115
- internalType: "address",
116
- name: "_gasPoolAddress",
117
- type: "address",
118
- },
119
- ],
120
- name: "GasPoolAddressChanged",
121
- type: "event",
122
- },
123
- {
124
- anonymous: false,
125
- inputs: [
126
- {
127
- indexed: false,
128
- internalType: "address",
129
- name: "_governableVariablesAddress",
130
- type: "address",
131
- },
132
- ],
133
- name: "GovernableVariablesAddressChanged",
134
- type: "event",
135
- },
136
- {
137
- anonymous: false,
138
- inputs: [
139
- {
140
- indexed: false,
141
- internalType: "uint64",
142
- name: "version",
143
- type: "uint64",
144
- },
145
- ],
146
- name: "Initialized",
147
- type: "event",
148
- },
149
- {
150
- anonymous: false,
151
- inputs: [
152
- {
153
- indexed: false,
154
- internalType: "address",
155
- name: "_interestRateManagerAddress",
156
- type: "address",
157
- },
158
- ],
159
- name: "InterestRateManagerAddressChanged",
160
- type: "event",
161
- },
162
- {
163
- anonymous: false,
164
- inputs: [
165
- {
166
- indexed: false,
167
- internalType: "uint256",
168
- name: "_L_Collateral",
169
- type: "uint256",
170
- },
171
- {
172
- indexed: false,
173
- internalType: "uint256",
174
- name: "_L_Principal",
175
- type: "uint256",
176
- },
177
- {
178
- indexed: false,
179
- internalType: "uint256",
180
- name: "_L_Interest",
181
- type: "uint256",
182
- },
183
- ],
184
- name: "LTermsUpdated",
185
- type: "event",
186
- },
187
- {
188
- anonymous: false,
189
- inputs: [
190
- {
191
- indexed: false,
192
- internalType: "uint256",
193
- name: "_liquidatedPrincipal",
194
- type: "uint256",
195
- },
196
- {
197
- indexed: false,
198
- internalType: "uint256",
199
- name: "_liquidatedInterest",
200
- type: "uint256",
201
- },
202
- {
203
- indexed: false,
204
- internalType: "uint256",
205
- name: "_liquidatedColl",
206
- type: "uint256",
207
- },
208
- {
209
- indexed: false,
210
- internalType: "uint256",
211
- name: "_collGasCompensation",
212
- type: "uint256",
213
- },
214
- {
215
- indexed: false,
216
- internalType: "uint256",
217
- name: "_gasCompensation",
218
- type: "uint256",
219
- },
220
- ],
221
- name: "Liquidation",
222
- type: "event",
223
- },
224
- {
225
- anonymous: false,
226
- inputs: [
227
- {
228
- indexed: false,
229
- internalType: "address",
230
- name: "_newMUSDTokenAddress",
231
- type: "address",
232
- },
233
- ],
234
- name: "MUSDTokenAddressChanged",
235
- type: "event",
236
- },
237
- {
238
- anonymous: false,
239
- inputs: [
240
- {
241
- indexed: true,
242
- internalType: "address",
243
- name: "previousOwner",
244
- type: "address",
245
- },
246
- {
247
- indexed: true,
248
- internalType: "address",
249
- name: "newOwner",
250
- type: "address",
251
- },
252
- ],
253
- name: "OwnershipTransferred",
254
- type: "event",
255
- },
256
- {
257
- anonymous: false,
258
- inputs: [
259
- {
260
- indexed: false,
261
- internalType: "address",
262
- name: "_pcvAddress",
263
- type: "address",
264
- },
265
- ],
266
- name: "PCVAddressChanged",
267
- type: "event",
268
- },
269
- {
270
- anonymous: false,
271
- inputs: [
272
- {
273
- indexed: false,
274
- internalType: "address",
275
- name: "_newPriceFeedAddress",
276
- type: "address",
277
- },
278
- ],
279
- name: "PriceFeedAddressChanged",
280
- type: "event",
281
- },
282
- {
283
- anonymous: false,
284
- inputs: [
285
- {
286
- indexed: false,
287
- internalType: "uint256",
288
- name: "_attemptedAmount",
289
- type: "uint256",
290
- },
291
- {
292
- indexed: false,
293
- internalType: "uint256",
294
- name: "_actualAmount",
295
- type: "uint256",
296
- },
297
- {
298
- indexed: false,
299
- internalType: "uint256",
300
- name: "_collateralSent",
301
- type: "uint256",
302
- },
303
- {
304
- indexed: false,
305
- internalType: "uint256",
306
- name: "_collateralFee",
307
- type: "uint256",
308
- },
309
- ],
310
- name: "Redemption",
311
- type: "event",
312
- },
313
- {
314
- anonymous: false,
315
- inputs: [
316
- {
317
- indexed: false,
318
- internalType: "address",
319
- name: "_sortedTrovesAddress",
320
- type: "address",
321
- },
322
- ],
323
- name: "SortedTrovesAddressChanged",
324
- type: "event",
325
- },
326
- {
327
- anonymous: false,
328
- inputs: [
329
- {
330
- indexed: false,
331
- internalType: "address",
332
- name: "_stabilityPoolAddress",
333
- type: "address",
334
- },
335
- ],
336
- name: "StabilityPoolAddressChanged",
337
- type: "event",
338
- },
339
- {
340
- anonymous: false,
341
- inputs: [
342
- {
343
- indexed: false,
344
- internalType: "uint256",
345
- name: "_totalStakesSnapshot",
346
- type: "uint256",
347
- },
348
- {
349
- indexed: false,
350
- internalType: "uint256",
351
- name: "_totalCollateralSnapshot",
352
- type: "uint256",
353
- },
354
- ],
355
- name: "SystemSnapshotsUpdated",
356
- type: "event",
357
- },
358
- {
359
- anonymous: false,
360
- inputs: [
361
- {
362
- indexed: false,
363
- internalType: "uint256",
364
- name: "_newTotalStakes",
365
- type: "uint256",
366
- },
367
- ],
368
- name: "TotalStakesUpdated",
369
- type: "event",
370
- },
371
- {
372
- anonymous: false,
373
- inputs: [
374
- {
375
- indexed: false,
376
- internalType: "address",
377
- name: "_borrower",
378
- type: "address",
379
- },
380
- {
381
- indexed: false,
382
- internalType: "uint256",
383
- name: "_newIndex",
384
- type: "uint256",
385
- },
386
- ],
387
- name: "TroveIndexUpdated",
388
- type: "event",
389
- },
390
- {
391
- anonymous: false,
392
- inputs: [
393
- {
394
- indexed: true,
395
- internalType: "address",
396
- name: "_borrower",
397
- type: "address",
398
- },
399
- {
400
- indexed: false,
401
- internalType: "uint256",
402
- name: "_debt",
403
- type: "uint256",
404
- },
405
- {
406
- indexed: false,
407
- internalType: "uint256",
408
- name: "_coll",
409
- type: "uint256",
410
- },
411
- {
412
- indexed: false,
413
- internalType: "uint8",
414
- name: "operation",
415
- type: "uint8",
416
- },
417
- ],
418
- name: "TroveLiquidated",
419
- type: "event",
420
- },
421
- {
422
- anonymous: false,
423
- inputs: [
424
- {
425
- indexed: false,
426
- internalType: "uint256",
427
- name: "_L_Collateral",
428
- type: "uint256",
429
- },
430
- {
431
- indexed: false,
432
- internalType: "uint256",
433
- name: "_L_Principal",
434
- type: "uint256",
435
- },
436
- {
437
- indexed: false,
438
- internalType: "uint256",
439
- name: "_L_Interest",
440
- type: "uint256",
441
- },
442
- ],
443
- name: "TroveSnapshotsUpdated",
444
- type: "event",
445
- },
446
- {
447
- anonymous: false,
448
- inputs: [
449
- {
450
- indexed: true,
451
- internalType: "address",
452
- name: "_borrower",
453
- type: "address",
454
- },
455
- {
456
- indexed: false,
457
- internalType: "uint256",
458
- name: "_principal",
459
- type: "uint256",
460
- },
461
- {
462
- indexed: false,
463
- internalType: "uint256",
464
- name: "_interest",
465
- type: "uint256",
466
- },
467
- {
468
- indexed: false,
469
- internalType: "uint256",
470
- name: "_coll",
471
- type: "uint256",
472
- },
473
- {
474
- indexed: false,
475
- internalType: "uint256",
476
- name: "stake",
477
- type: "uint256",
478
- },
479
- {
480
- indexed: false,
481
- internalType: "uint8",
482
- name: "operation",
483
- type: "uint8",
484
- },
485
- ],
486
- name: "TroveUpdated",
487
- type: "event",
488
- },
489
- {
490
- inputs: [],
491
- name: "CCR",
492
- outputs: [
493
- {
494
- internalType: "uint256",
495
- name: "",
496
- type: "uint256",
497
- },
498
- ],
499
- stateMutability: "view",
500
- type: "function",
501
- },
502
- {
503
- inputs: [],
504
- name: "DECIMAL_PRECISION",
505
- outputs: [
506
- {
507
- internalType: "uint256",
508
- name: "",
509
- type: "uint256",
510
- },
511
- ],
512
- stateMutability: "view",
513
- type: "function",
514
- },
515
- {
516
- inputs: [],
517
- name: "L_Collateral",
518
- outputs: [
519
- {
520
- internalType: "uint256",
521
- name: "",
522
- type: "uint256",
523
- },
524
- ],
525
- stateMutability: "view",
526
- type: "function",
527
- },
528
- {
529
- inputs: [],
530
- name: "L_Interest",
531
- outputs: [
532
- {
533
- internalType: "uint256",
534
- name: "",
535
- type: "uint256",
536
- },
537
- ],
538
- stateMutability: "view",
539
- type: "function",
540
- },
541
- {
542
- inputs: [],
543
- name: "L_Principal",
544
- outputs: [
545
- {
546
- internalType: "uint256",
547
- name: "",
548
- type: "uint256",
549
- },
550
- ],
551
- stateMutability: "view",
552
- type: "function",
553
- },
554
- {
555
- inputs: [],
556
- name: "MCR",
557
- outputs: [
558
- {
559
- internalType: "uint256",
560
- name: "",
561
- type: "uint256",
562
- },
563
- ],
564
- stateMutability: "view",
565
- type: "function",
566
- },
567
- {
568
- inputs: [],
569
- name: "MUSD_GAS_COMPENSATION",
570
- outputs: [
571
- {
572
- internalType: "uint256",
573
- name: "",
574
- type: "uint256",
575
- },
576
- ],
577
- stateMutability: "view",
578
- type: "function",
579
- },
580
- {
581
- inputs: [],
582
- name: "PERCENT_DIVISOR",
583
- outputs: [
584
- {
585
- internalType: "uint256",
586
- name: "",
587
- type: "uint256",
588
- },
589
- ],
590
- stateMutability: "view",
591
- type: "function",
592
- },
593
- {
594
- inputs: [
595
- {
596
- internalType: "uint256",
597
- name: "",
598
- type: "uint256",
599
- },
600
- ],
601
- name: "TroveOwners",
602
- outputs: [
603
- {
604
- internalType: "address",
605
- name: "",
606
- type: "address",
607
- },
608
- ],
609
- stateMutability: "view",
610
- type: "function",
611
- },
612
- {
613
- inputs: [
614
- {
615
- internalType: "address",
616
- name: "",
617
- type: "address",
618
- },
619
- ],
620
- name: "Troves",
621
- outputs: [
622
- {
623
- internalType: "uint256",
624
- name: "coll",
625
- type: "uint256",
626
- },
627
- {
628
- internalType: "uint256",
629
- name: "principal",
630
- type: "uint256",
631
- },
632
- {
633
- internalType: "uint256",
634
- name: "interestOwed",
635
- type: "uint256",
636
- },
637
- {
638
- internalType: "uint256",
639
- name: "stake",
640
- type: "uint256",
641
- },
642
- {
643
- internalType: "enum ITroveManager.Status",
644
- name: "status",
645
- type: "uint8",
646
- },
647
- {
648
- internalType: "uint16",
649
- name: "interestRate",
650
- type: "uint16",
651
- },
652
- {
653
- internalType: "uint256",
654
- name: "lastInterestUpdateTime",
655
- type: "uint256",
656
- },
657
- {
658
- internalType: "uint256",
659
- name: "maxBorrowingCapacity",
660
- type: "uint256",
661
- },
662
- {
663
- internalType: "uint128",
664
- name: "arrayIndex",
665
- type: "uint128",
666
- },
667
- ],
668
- stateMutability: "view",
669
- type: "function",
670
- },
671
- {
672
- inputs: [],
673
- name: "_100pct",
674
- outputs: [
675
- {
676
- internalType: "uint256",
677
- name: "",
678
- type: "uint256",
679
- },
680
- ],
681
- stateMutability: "view",
682
- type: "function",
683
- },
684
- {
685
- inputs: [],
686
- name: "activePool",
687
- outputs: [
688
- {
689
- internalType: "contract IActivePool",
690
- name: "",
691
- type: "address",
692
- },
693
- ],
694
- stateMutability: "view",
695
- type: "function",
696
- },
697
- {
698
- inputs: [
699
- {
700
- internalType: "address",
701
- name: "_borrower",
702
- type: "address",
703
- },
704
- ],
705
- name: "addTroveOwnerToArray",
706
- outputs: [
707
- {
708
- internalType: "uint256",
709
- name: "index",
710
- type: "uint256",
711
- },
712
- ],
713
- stateMutability: "nonpayable",
714
- type: "function",
715
- },
716
- {
717
- inputs: [
718
- {
719
- internalType: "address",
720
- name: "_borrower",
721
- type: "address",
722
- },
723
- ],
724
- name: "applyPendingRewards",
725
- outputs: [],
726
- stateMutability: "nonpayable",
727
- type: "function",
728
- },
729
- {
730
- inputs: [
731
- {
732
- internalType: "address[]",
733
- name: "_troveArray",
734
- type: "address[]",
735
- },
736
- ],
737
- name: "batchLiquidateTroves",
738
- outputs: [],
739
- stateMutability: "nonpayable",
740
- type: "function",
741
- },
742
- {
743
- inputs: [],
744
- name: "borrowerOperations",
745
- outputs: [
746
- {
747
- internalType: "contract IBorrowerOperations",
748
- name: "",
749
- type: "address",
750
- },
751
- ],
752
- stateMutability: "view",
753
- type: "function",
754
- },
755
- {
756
- inputs: [
757
- {
758
- internalType: "uint256",
759
- name: "_price",
760
- type: "uint256",
761
- },
762
- ],
763
- name: "checkRecoveryMode",
764
- outputs: [
765
- {
766
- internalType: "bool",
767
- name: "",
768
- type: "bool",
769
- },
770
- ],
771
- stateMutability: "view",
772
- type: "function",
773
- },
774
- {
775
- inputs: [
776
- {
777
- internalType: "address",
778
- name: "_borrower",
779
- type: "address",
780
- },
781
- ],
782
- name: "closeTrove",
783
- outputs: [],
784
- stateMutability: "nonpayable",
785
- type: "function",
786
- },
787
- {
788
- inputs: [],
789
- name: "collSurplusPool",
790
- outputs: [
791
- {
792
- internalType: "contract ICollSurplusPool",
793
- name: "",
794
- type: "address",
795
- },
796
- ],
797
- stateMutability: "view",
798
- type: "function",
799
- },
800
- {
801
- inputs: [
802
- {
803
- internalType: "address",
804
- name: "_borrower",
805
- type: "address",
806
- },
807
- {
808
- internalType: "uint256",
809
- name: "_collDecrease",
810
- type: "uint256",
811
- },
812
- ],
813
- name: "decreaseTroveColl",
814
- outputs: [
815
- {
816
- internalType: "uint256",
817
- name: "",
818
- type: "uint256",
819
- },
820
- ],
821
- stateMutability: "nonpayable",
822
- type: "function",
823
- },
824
- {
825
- inputs: [
826
- {
827
- internalType: "address",
828
- name: "_borrower",
829
- type: "address",
830
- },
831
- {
832
- internalType: "uint256",
833
- name: "_debtDecrease",
834
- type: "uint256",
835
- },
836
- ],
837
- name: "decreaseTroveDebt",
838
- outputs: [
839
- {
840
- internalType: "uint256",
841
- name: "",
842
- type: "uint256",
843
- },
844
- {
845
- internalType: "uint256",
846
- name: "",
847
- type: "uint256",
848
- },
849
- ],
850
- stateMutability: "nonpayable",
851
- type: "function",
852
- },
853
- {
854
- inputs: [],
855
- name: "defaultPool",
856
- outputs: [
857
- {
858
- internalType: "contract IDefaultPool",
859
- name: "",
860
- type: "address",
861
- },
862
- ],
863
- stateMutability: "view",
864
- type: "function",
865
- },
866
- {
867
- inputs: [],
868
- name: "gasPoolAddress",
869
- outputs: [
870
- {
871
- internalType: "address",
872
- name: "",
873
- type: "address",
874
- },
875
- ],
876
- stateMutability: "view",
877
- type: "function",
878
- },
879
- {
880
- inputs: [
881
- {
882
- internalType: "address",
883
- name: "_borrower",
884
- type: "address",
885
- },
886
- {
887
- internalType: "uint256",
888
- name: "_price",
889
- type: "uint256",
890
- },
891
- ],
892
- name: "getCurrentICR",
893
- outputs: [
894
- {
895
- internalType: "uint256",
896
- name: "",
897
- type: "uint256",
898
- },
899
- ],
900
- stateMutability: "view",
901
- type: "function",
902
- },
903
- {
904
- inputs: [
905
- {
906
- internalType: "address",
907
- name: "_borrower",
908
- type: "address",
909
- },
910
- ],
911
- name: "getEntireDebtAndColl",
912
- outputs: [
913
- {
914
- internalType: "uint256",
915
- name: "coll",
916
- type: "uint256",
917
- },
918
- {
919
- internalType: "uint256",
920
- name: "principal",
921
- type: "uint256",
922
- },
923
- {
924
- internalType: "uint256",
925
- name: "interest",
926
- type: "uint256",
927
- },
928
- {
929
- internalType: "uint256",
930
- name: "pendingCollateral",
931
- type: "uint256",
932
- },
933
- {
934
- internalType: "uint256",
935
- name: "pendingPrincipal",
936
- type: "uint256",
937
- },
938
- {
939
- internalType: "uint256",
940
- name: "pendingInterest",
941
- type: "uint256",
942
- },
943
- ],
944
- stateMutability: "view",
945
- type: "function",
946
- },
947
- {
948
- inputs: [],
949
- name: "getEntireSystemColl",
950
- outputs: [
951
- {
952
- internalType: "uint256",
953
- name: "entireSystemColl",
954
- type: "uint256",
955
- },
956
- ],
957
- stateMutability: "view",
958
- type: "function",
959
- },
960
- {
961
- inputs: [],
962
- name: "getEntireSystemDebt",
963
- outputs: [
964
- {
965
- internalType: "uint256",
966
- name: "entireSystemDebt",
967
- type: "uint256",
968
- },
969
- ],
970
- stateMutability: "view",
971
- type: "function",
972
- },
973
- {
974
- inputs: [
975
- {
976
- internalType: "address",
977
- name: "_borrower",
978
- type: "address",
979
- },
980
- ],
981
- name: "getNominalICR",
982
- outputs: [
983
- {
984
- internalType: "uint256",
985
- name: "",
986
- type: "uint256",
987
- },
988
- ],
989
- stateMutability: "view",
990
- type: "function",
991
- },
992
- {
993
- inputs: [
994
- {
995
- internalType: "address",
996
- name: "_borrower",
997
- type: "address",
998
- },
999
- ],
1000
- name: "getPendingCollateral",
1001
- outputs: [
1002
- {
1003
- internalType: "uint256",
1004
- name: "",
1005
- type: "uint256",
1006
- },
1007
- ],
1008
- stateMutability: "view",
1009
- type: "function",
1010
- },
1011
- {
1012
- inputs: [
1013
- {
1014
- internalType: "address",
1015
- name: "_borrower",
1016
- type: "address",
1017
- },
1018
- ],
1019
- name: "getPendingDebt",
1020
- outputs: [
1021
- {
1022
- internalType: "uint256",
1023
- name: "pendingPrincipal",
1024
- type: "uint256",
1025
- },
1026
- {
1027
- internalType: "uint256",
1028
- name: "pendingInterest",
1029
- type: "uint256",
1030
- },
1031
- ],
1032
- stateMutability: "view",
1033
- type: "function",
1034
- },
1035
- {
1036
- inputs: [
1037
- {
1038
- internalType: "uint256",
1039
- name: "_price",
1040
- type: "uint256",
1041
- },
1042
- ],
1043
- name: "getTCR",
1044
- outputs: [
1045
- {
1046
- internalType: "uint256",
1047
- name: "",
1048
- type: "uint256",
1049
- },
1050
- ],
1051
- stateMutability: "view",
1052
- type: "function",
1053
- },
1054
- {
1055
- inputs: [
1056
- {
1057
- internalType: "address",
1058
- name: "_borrower",
1059
- type: "address",
1060
- },
1061
- ],
1062
- name: "getTroveColl",
1063
- outputs: [
1064
- {
1065
- internalType: "uint256",
1066
- name: "",
1067
- type: "uint256",
1068
- },
1069
- ],
1070
- stateMutability: "view",
1071
- type: "function",
1072
- },
1073
- {
1074
- inputs: [
1075
- {
1076
- internalType: "address",
1077
- name: "_borrower",
1078
- type: "address",
1079
- },
1080
- ],
1081
- name: "getTroveDebt",
1082
- outputs: [
1083
- {
1084
- internalType: "uint256",
1085
- name: "",
1086
- type: "uint256",
1087
- },
1088
- ],
1089
- stateMutability: "view",
1090
- type: "function",
1091
- },
1092
- {
1093
- inputs: [
1094
- {
1095
- internalType: "uint256",
1096
- name: "_index",
1097
- type: "uint256",
1098
- },
1099
- ],
1100
- name: "getTroveFromTroveOwnersArray",
1101
- outputs: [
1102
- {
1103
- internalType: "address",
1104
- name: "",
1105
- type: "address",
1106
- },
1107
- ],
1108
- stateMutability: "view",
1109
- type: "function",
1110
- },
1111
- {
1112
- inputs: [
1113
- {
1114
- internalType: "address",
1115
- name: "_borrower",
1116
- type: "address",
1117
- },
1118
- ],
1119
- name: "getTroveInterestOwed",
1120
- outputs: [
1121
- {
1122
- internalType: "uint256",
1123
- name: "",
1124
- type: "uint256",
1125
- },
1126
- ],
1127
- stateMutability: "view",
1128
- type: "function",
1129
- },
1130
- {
1131
- inputs: [
1132
- {
1133
- internalType: "address",
1134
- name: "_borrower",
1135
- type: "address",
1136
- },
1137
- ],
1138
- name: "getTroveInterestRate",
1139
- outputs: [
1140
- {
1141
- internalType: "uint16",
1142
- name: "",
1143
- type: "uint16",
1144
- },
1145
- ],
1146
- stateMutability: "view",
1147
- type: "function",
1148
- },
1149
- {
1150
- inputs: [
1151
- {
1152
- internalType: "address",
1153
- name: "_borrower",
1154
- type: "address",
1155
- },
1156
- ],
1157
- name: "getTroveLastInterestUpdateTime",
1158
- outputs: [
1159
- {
1160
- internalType: "uint256",
1161
- name: "",
1162
- type: "uint256",
1163
- },
1164
- ],
1165
- stateMutability: "view",
1166
- type: "function",
1167
- },
1168
- {
1169
- inputs: [
1170
- {
1171
- internalType: "address",
1172
- name: "_borrower",
1173
- type: "address",
1174
- },
1175
- ],
1176
- name: "getTroveMaxBorrowingCapacity",
1177
- outputs: [
1178
- {
1179
- internalType: "uint256",
1180
- name: "",
1181
- type: "uint256",
1182
- },
1183
- ],
1184
- stateMutability: "view",
1185
- type: "function",
1186
- },
1187
- {
1188
- inputs: [],
1189
- name: "getTroveOwnersCount",
1190
- outputs: [
1191
- {
1192
- internalType: "uint256",
1193
- name: "",
1194
- type: "uint256",
1195
- },
1196
- ],
1197
- stateMutability: "view",
1198
- type: "function",
1199
- },
1200
- {
1201
- inputs: [
1202
- {
1203
- internalType: "address",
1204
- name: "_borrower",
1205
- type: "address",
1206
- },
1207
- ],
1208
- name: "getTrovePrincipal",
1209
- outputs: [
1210
- {
1211
- internalType: "uint256",
1212
- name: "",
1213
- type: "uint256",
1214
- },
1215
- ],
1216
- stateMutability: "view",
1217
- type: "function",
1218
- },
1219
- {
1220
- inputs: [
1221
- {
1222
- internalType: "address",
1223
- name: "_borrower",
1224
- type: "address",
1225
- },
1226
- ],
1227
- name: "getTroveStake",
1228
- outputs: [
1229
- {
1230
- internalType: "uint256",
1231
- name: "",
1232
- type: "uint256",
1233
- },
1234
- ],
1235
- stateMutability: "view",
1236
- type: "function",
1237
- },
1238
- {
1239
- inputs: [
1240
- {
1241
- internalType: "address",
1242
- name: "_borrower",
1243
- type: "address",
1244
- },
1245
- ],
1246
- name: "getTroveStatus",
1247
- outputs: [
1248
- {
1249
- internalType: "enum ITroveManager.Status",
1250
- name: "",
1251
- type: "uint8",
1252
- },
1253
- ],
1254
- stateMutability: "view",
1255
- type: "function",
1256
- },
1257
- {
1258
- inputs: [],
1259
- name: "governableVariables",
1260
- outputs: [
1261
- {
1262
- internalType: "contract IGovernableVariables",
1263
- name: "",
1264
- type: "address",
1265
- },
1266
- ],
1267
- stateMutability: "view",
1268
- type: "function",
1269
- },
1270
- {
1271
- inputs: [
1272
- {
1273
- internalType: "address",
1274
- name: "_borrower",
1275
- type: "address",
1276
- },
1277
- ],
1278
- name: "hasPendingRewards",
1279
- outputs: [
1280
- {
1281
- internalType: "bool",
1282
- name: "",
1283
- type: "bool",
1284
- },
1285
- ],
1286
- stateMutability: "view",
1287
- type: "function",
1288
- },
1289
- {
1290
- inputs: [
1291
- {
1292
- internalType: "address",
1293
- name: "_borrower",
1294
- type: "address",
1295
- },
1296
- {
1297
- internalType: "uint256",
1298
- name: "_collIncrease",
1299
- type: "uint256",
1300
- },
1301
- ],
1302
- name: "increaseTroveColl",
1303
- outputs: [
1304
- {
1305
- internalType: "uint256",
1306
- name: "",
1307
- type: "uint256",
1308
- },
1309
- ],
1310
- stateMutability: "nonpayable",
1311
- type: "function",
1312
- },
1313
- {
1314
- inputs: [
1315
- {
1316
- internalType: "address",
1317
- name: "_borrower",
1318
- type: "address",
1319
- },
1320
- {
1321
- internalType: "uint256",
1322
- name: "_debtIncrease",
1323
- type: "uint256",
1324
- },
1325
- ],
1326
- name: "increaseTroveDebt",
1327
- outputs: [
1328
- {
1329
- internalType: "uint256",
1330
- name: "",
1331
- type: "uint256",
1332
- },
1333
- ],
1334
- stateMutability: "nonpayable",
1335
- type: "function",
1336
- },
1337
- {
1338
- inputs: [],
1339
- name: "initialize",
1340
- outputs: [],
1341
- stateMutability: "nonpayable",
1342
- type: "function",
1343
- },
1344
- {
1345
- inputs: [],
1346
- name: "interestRateManager",
1347
- outputs: [
1348
- {
1349
- internalType: "contract IInterestRateManager",
1350
- name: "",
1351
- type: "address",
1352
- },
1353
- ],
1354
- stateMutability: "view",
1355
- type: "function",
1356
- },
1357
- {
1358
- inputs: [],
1359
- name: "lastCollateralError_Redistribution",
1360
- outputs: [
1361
- {
1362
- internalType: "uint256",
1363
- name: "",
1364
- type: "uint256",
1365
- },
1366
- ],
1367
- stateMutability: "view",
1368
- type: "function",
1369
- },
1370
- {
1371
- inputs: [],
1372
- name: "lastInterestError_Redistribution",
1373
- outputs: [
1374
- {
1375
- internalType: "uint256",
1376
- name: "",
1377
- type: "uint256",
1378
- },
1379
- ],
1380
- stateMutability: "view",
1381
- type: "function",
1382
- },
1383
- {
1384
- inputs: [],
1385
- name: "lastPrincipalError_Redistribution",
1386
- outputs: [
1387
- {
1388
- internalType: "uint256",
1389
- name: "",
1390
- type: "uint256",
1391
- },
1392
- ],
1393
- stateMutability: "view",
1394
- type: "function",
1395
- },
1396
- {
1397
- inputs: [
1398
- {
1399
- internalType: "address",
1400
- name: "_borrower",
1401
- type: "address",
1402
- },
1403
- ],
1404
- name: "liquidate",
1405
- outputs: [],
1406
- stateMutability: "nonpayable",
1407
- type: "function",
1408
- },
1409
- {
1410
- inputs: [],
1411
- name: "musdToken",
1412
- outputs: [
1413
- {
1414
- internalType: "contract IMUSD",
1415
- name: "",
1416
- type: "address",
1417
- },
1418
- ],
1419
- stateMutability: "view",
1420
- type: "function",
1421
- },
1422
- {
1423
- inputs: [],
1424
- name: "owner",
1425
- outputs: [
1426
- {
1427
- internalType: "address",
1428
- name: "",
1429
- type: "address",
1430
- },
1431
- ],
1432
- stateMutability: "view",
1433
- type: "function",
1434
- },
1435
- {
1436
- inputs: [],
1437
- name: "pcv",
1438
- outputs: [
1439
- {
1440
- internalType: "contract IPCV",
1441
- name: "",
1442
- type: "address",
1443
- },
1444
- ],
1445
- stateMutability: "view",
1446
- type: "function",
1447
- },
1448
- {
1449
- inputs: [],
1450
- name: "priceFeed",
1451
- outputs: [
1452
- {
1453
- internalType: "contract IPriceFeed",
1454
- name: "",
1455
- type: "address",
1456
- },
1457
- ],
1458
- stateMutability: "view",
1459
- type: "function",
1460
- },
1461
- {
1462
- inputs: [
1463
- {
1464
- internalType: "uint256",
1465
- name: "_amount",
1466
- type: "uint256",
1467
- },
1468
- {
1469
- internalType: "address",
1470
- name: "_firstRedemptionHint",
1471
- type: "address",
1472
- },
1473
- {
1474
- internalType: "address",
1475
- name: "_upperPartialRedemptionHint",
1476
- type: "address",
1477
- },
1478
- {
1479
- internalType: "address",
1480
- name: "_lowerPartialRedemptionHint",
1481
- type: "address",
1482
- },
1483
- {
1484
- internalType: "uint256",
1485
- name: "_partialRedemptionHintNICR",
1486
- type: "uint256",
1487
- },
1488
- {
1489
- internalType: "uint256",
1490
- name: "_maxIterations",
1491
- type: "uint256",
1492
- },
1493
- ],
1494
- name: "redeemCollateral",
1495
- outputs: [],
1496
- stateMutability: "nonpayable",
1497
- type: "function",
1498
- },
1499
- {
1500
- inputs: [
1501
- {
1502
- internalType: "address",
1503
- name: "_borrower",
1504
- type: "address",
1505
- },
1506
- ],
1507
- name: "removeStake",
1508
- outputs: [],
1509
- stateMutability: "nonpayable",
1510
- type: "function",
1511
- },
1512
- {
1513
- inputs: [],
1514
- name: "renounceOwnership",
1515
- outputs: [],
1516
- stateMutability: "nonpayable",
1517
- type: "function",
1518
- },
1519
- {
1520
- inputs: [
1521
- {
1522
- internalType: "address",
1523
- name: "",
1524
- type: "address",
1525
- },
1526
- ],
1527
- name: "rewardSnapshots",
1528
- outputs: [
1529
- {
1530
- internalType: "uint256",
1531
- name: "collateral",
1532
- type: "uint256",
1533
- },
1534
- {
1535
- internalType: "uint256",
1536
- name: "principal",
1537
- type: "uint256",
1538
- },
1539
- {
1540
- internalType: "uint256",
1541
- name: "interest",
1542
- type: "uint256",
1543
- },
1544
- ],
1545
- stateMutability: "view",
1546
- type: "function",
1547
- },
1548
- {
1549
- inputs: [
1550
- {
1551
- internalType: "address",
1552
- name: "_activePoolAddress",
1553
- type: "address",
1554
- },
1555
- {
1556
- internalType: "address",
1557
- name: "_borrowerOperationsAddress",
1558
- type: "address",
1559
- },
1560
- {
1561
- internalType: "address",
1562
- name: "_collSurplusPoolAddress",
1563
- type: "address",
1564
- },
1565
- {
1566
- internalType: "address",
1567
- name: "_defaultPoolAddress",
1568
- type: "address",
1569
- },
1570
- {
1571
- internalType: "address",
1572
- name: "_gasPoolAddress",
1573
- type: "address",
1574
- },
1575
- {
1576
- internalType: "address",
1577
- name: "_governableVariablesAddress",
1578
- type: "address",
1579
- },
1580
- {
1581
- internalType: "address",
1582
- name: "_interestRateManagerAddress",
1583
- type: "address",
1584
- },
1585
- {
1586
- internalType: "address",
1587
- name: "_musdTokenAddress",
1588
- type: "address",
1589
- },
1590
- {
1591
- internalType: "address",
1592
- name: "_pcvAddress",
1593
- type: "address",
1594
- },
1595
- {
1596
- internalType: "address",
1597
- name: "_priceFeedAddress",
1598
- type: "address",
1599
- },
1600
- {
1601
- internalType: "address",
1602
- name: "_sortedTrovesAddress",
1603
- type: "address",
1604
- },
1605
- {
1606
- internalType: "address",
1607
- name: "_stabilityPoolAddress",
1608
- type: "address",
1609
- },
1610
- ],
1611
- name: "setAddresses",
1612
- outputs: [],
1613
- stateMutability: "nonpayable",
1614
- type: "function",
1615
- },
1616
- {
1617
- inputs: [
1618
- {
1619
- internalType: "address",
1620
- name: "_borrower",
1621
- type: "address",
1622
- },
1623
- {
1624
- internalType: "uint16",
1625
- name: "_rate",
1626
- type: "uint16",
1627
- },
1628
- ],
1629
- name: "setTroveInterestRate",
1630
- outputs: [],
1631
- stateMutability: "nonpayable",
1632
- type: "function",
1633
- },
1634
- {
1635
- inputs: [
1636
- {
1637
- internalType: "address",
1638
- name: "_borrower",
1639
- type: "address",
1640
- },
1641
- {
1642
- internalType: "uint256",
1643
- name: "_timestamp",
1644
- type: "uint256",
1645
- },
1646
- ],
1647
- name: "setTroveLastInterestUpdateTime",
1648
- outputs: [],
1649
- stateMutability: "nonpayable",
1650
- type: "function",
1651
- },
1652
- {
1653
- inputs: [
1654
- {
1655
- internalType: "address",
1656
- name: "_borrower",
1657
- type: "address",
1658
- },
1659
- {
1660
- internalType: "uint256",
1661
- name: "_maxBorrowingCapacity",
1662
- type: "uint256",
1663
- },
1664
- ],
1665
- name: "setTroveMaxBorrowingCapacity",
1666
- outputs: [],
1667
- stateMutability: "nonpayable",
1668
- type: "function",
1669
- },
1670
- {
1671
- inputs: [
1672
- {
1673
- internalType: "address",
1674
- name: "_borrower",
1675
- type: "address",
1676
- },
1677
- {
1678
- internalType: "enum ITroveManager.Status",
1679
- name: "_status",
1680
- type: "uint8",
1681
- },
1682
- ],
1683
- name: "setTroveStatus",
1684
- outputs: [],
1685
- stateMutability: "nonpayable",
1686
- type: "function",
1687
- },
1688
- {
1689
- inputs: [],
1690
- name: "sortedTroves",
1691
- outputs: [
1692
- {
1693
- internalType: "contract ISortedTroves",
1694
- name: "",
1695
- type: "address",
1696
- },
1697
- ],
1698
- stateMutability: "view",
1699
- type: "function",
1700
- },
1701
- {
1702
- inputs: [],
1703
- name: "stabilityPool",
1704
- outputs: [
1705
- {
1706
- internalType: "contract IStabilityPool",
1707
- name: "",
1708
- type: "address",
1709
- },
1710
- ],
1711
- stateMutability: "view",
1712
- type: "function",
1713
- },
1714
- {
1715
- inputs: [],
1716
- name: "totalCollateralSnapshot",
1717
- outputs: [
1718
- {
1719
- internalType: "uint256",
1720
- name: "",
1721
- type: "uint256",
1722
- },
1723
- ],
1724
- stateMutability: "view",
1725
- type: "function",
1726
- },
1727
- {
1728
- inputs: [],
1729
- name: "totalStakes",
1730
- outputs: [
1731
- {
1732
- internalType: "uint256",
1733
- name: "",
1734
- type: "uint256",
1735
- },
1736
- ],
1737
- stateMutability: "view",
1738
- type: "function",
1739
- },
1740
- {
1741
- inputs: [],
1742
- name: "totalStakesSnapshot",
1743
- outputs: [
1744
- {
1745
- internalType: "uint256",
1746
- name: "",
1747
- type: "uint256",
1748
- },
1749
- ],
1750
- stateMutability: "view",
1751
- type: "function",
1752
- },
1753
- {
1754
- inputs: [
1755
- {
1756
- internalType: "address",
1757
- name: "newOwner",
1758
- type: "address",
1759
- },
1760
- ],
1761
- name: "transferOwnership",
1762
- outputs: [],
1763
- stateMutability: "nonpayable",
1764
- type: "function",
1765
- },
1766
- {
1767
- inputs: [
1768
- {
1769
- internalType: "address",
1770
- name: "_borrower",
1771
- type: "address",
1772
- },
1773
- ],
1774
- name: "updateStakeAndTotalStakes",
1775
- outputs: [
1776
- {
1777
- internalType: "uint256",
1778
- name: "",
1779
- type: "uint256",
1780
- },
1781
- ],
1782
- stateMutability: "nonpayable",
1783
- type: "function",
1784
- },
1785
- {
1786
- inputs: [
1787
- {
1788
- internalType: "address",
1789
- name: "_borrower",
1790
- type: "address",
1791
- },
1792
- ],
1793
- name: "updateSystemAndTroveInterest",
1794
- outputs: [],
1795
- stateMutability: "nonpayable",
1796
- type: "function",
1797
- },
1798
- {
1799
- inputs: [],
1800
- name: "updateSystemInterest",
1801
- outputs: [],
1802
- stateMutability: "nonpayable",
1803
- type: "function",
1804
- },
1805
- {
1806
- inputs: [
1807
- {
1808
- internalType: "address",
1809
- name: "_borrower",
1810
- type: "address",
1811
- },
1812
- ],
1813
- name: "updateTroveRewardSnapshots",
1814
- outputs: [],
1815
- stateMutability: "nonpayable",
1816
- type: "function",
1817
- },
1818
- ],
1819
- };
1820
- //# sourceMappingURL=troveManager.js.map