curvance 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.
Files changed (47) hide show
  1. package/README.md +17 -0
  2. package/dist/abis/BaseCToken.json +1550 -0
  3. package/dist/abis/BorrowableCToken.json +2188 -0
  4. package/dist/abis/IDynamicIRM.json +158 -0
  5. package/dist/abis/MarketManagerIsolated.json +1587 -0
  6. package/dist/abis/ProtocolReader.json +767 -0
  7. package/dist/classes/CToken.d.ts +170 -0
  8. package/dist/classes/CToken.d.ts.map +1 -0
  9. package/dist/classes/CToken.js +292 -0
  10. package/dist/classes/CToken.js.map +1 -0
  11. package/dist/classes/CVE.d.ts +7 -0
  12. package/dist/classes/CVE.d.ts.map +1 -0
  13. package/dist/classes/CVE.js +7 -0
  14. package/dist/classes/CVE.js.map +1 -0
  15. package/dist/classes/ERC20.d.ts +35 -0
  16. package/dist/classes/ERC20.d.ts.map +1 -0
  17. package/dist/classes/ERC20.js +68 -0
  18. package/dist/classes/ERC20.js.map +1 -0
  19. package/dist/classes/Faucet.d.ts +25 -0
  20. package/dist/classes/Faucet.d.ts.map +1 -0
  21. package/dist/classes/Faucet.js +48 -0
  22. package/dist/classes/Faucet.js.map +1 -0
  23. package/dist/classes/Market.d.ts +68 -0
  24. package/dist/classes/Market.d.ts.map +1 -0
  25. package/dist/classes/Market.js +136 -0
  26. package/dist/classes/Market.js.map +1 -0
  27. package/dist/classes/OracleManager.d.ts +13 -0
  28. package/dist/classes/OracleManager.d.ts.map +1 -0
  29. package/dist/classes/OracleManager.js +34 -0
  30. package/dist/classes/OracleManager.js.map +1 -0
  31. package/dist/classes/ProtocolReader.d.ts +116 -0
  32. package/dist/classes/ProtocolReader.d.ts.map +1 -0
  33. package/dist/classes/ProtocolReader.js +136 -0
  34. package/dist/classes/ProtocolReader.js.map +1 -0
  35. package/dist/helpers.d.ts +20 -0
  36. package/dist/helpers.d.ts.map +1 -0
  37. package/dist/helpers.js +45 -0
  38. package/dist/helpers.js.map +1 -0
  39. package/dist/setup.d.ts +11 -0
  40. package/dist/setup.d.ts.map +1 -0
  41. package/dist/setup.js +28 -0
  42. package/dist/setup.js.map +1 -0
  43. package/dist/types.d.ts +10 -0
  44. package/dist/types.d.ts.map +1 -0
  45. package/dist/types.js +3 -0
  46. package/dist/types.js.map +1 -0
  47. package/package.json +31 -0
@@ -0,0 +1,1587 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "cr",
7
+ "type": "address",
8
+ "internalType": "contract ICentralRegistry"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "AUCTION_BUFFER",
16
+ "inputs": [],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "uint256",
21
+ "internalType": "uint256"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "MAX_BASE_CFACTOR",
29
+ "inputs": [],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "uint256",
34
+ "internalType": "uint256"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "MAX_COLLATERALIZATION_RATIO",
42
+ "inputs": [],
43
+ "outputs": [
44
+ {
45
+ "name": "",
46
+ "type": "uint256",
47
+ "internalType": "uint256"
48
+ }
49
+ ],
50
+ "stateMutability": "view"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "name": "MAX_COLLATERAL_REQUIREMENT",
55
+ "inputs": [],
56
+ "outputs": [
57
+ {
58
+ "name": "",
59
+ "type": "uint256",
60
+ "internalType": "uint256"
61
+ }
62
+ ],
63
+ "stateMutability": "view"
64
+ },
65
+ {
66
+ "type": "function",
67
+ "name": "MAX_LIQUIDATION_INCENTIVE",
68
+ "inputs": [],
69
+ "outputs": [
70
+ {
71
+ "name": "",
72
+ "type": "uint256",
73
+ "internalType": "uint256"
74
+ }
75
+ ],
76
+ "stateMutability": "view"
77
+ },
78
+ {
79
+ "type": "function",
80
+ "name": "MIN_ACTIVE_LOAN_SIZE",
81
+ "inputs": [],
82
+ "outputs": [
83
+ {
84
+ "name": "",
85
+ "type": "uint256",
86
+ "internalType": "uint256"
87
+ }
88
+ ],
89
+ "stateMutability": "view"
90
+ },
91
+ {
92
+ "type": "function",
93
+ "name": "MIN_BASE_CFACTOR",
94
+ "inputs": [],
95
+ "outputs": [
96
+ {
97
+ "name": "",
98
+ "type": "uint256",
99
+ "internalType": "uint256"
100
+ }
101
+ ],
102
+ "stateMutability": "view"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "name": "MIN_EXCESS_COLL_REQUIRED",
107
+ "inputs": [],
108
+ "outputs": [
109
+ {
110
+ "name": "",
111
+ "type": "uint256",
112
+ "internalType": "uint256"
113
+ }
114
+ ],
115
+ "stateMutability": "view"
116
+ },
117
+ {
118
+ "type": "function",
119
+ "name": "MIN_HOLD_PERIOD",
120
+ "inputs": [],
121
+ "outputs": [
122
+ {
123
+ "name": "",
124
+ "type": "uint256",
125
+ "internalType": "uint256"
126
+ }
127
+ ],
128
+ "stateMutability": "view"
129
+ },
130
+ {
131
+ "type": "function",
132
+ "name": "accountAssets",
133
+ "inputs": [
134
+ {
135
+ "name": "",
136
+ "type": "address",
137
+ "internalType": "address"
138
+ }
139
+ ],
140
+ "outputs": [
141
+ {
142
+ "name": "cooldownTimestamp",
143
+ "type": "uint256",
144
+ "internalType": "uint256"
145
+ }
146
+ ],
147
+ "stateMutability": "view"
148
+ },
149
+ {
150
+ "type": "function",
151
+ "name": "accountPositions",
152
+ "inputs": [
153
+ {
154
+ "name": "",
155
+ "type": "address",
156
+ "internalType": "address"
157
+ },
158
+ {
159
+ "name": "",
160
+ "type": "address",
161
+ "internalType": "address"
162
+ }
163
+ ],
164
+ "outputs": [
165
+ {
166
+ "name": "",
167
+ "type": "uint256",
168
+ "internalType": "uint256"
169
+ }
170
+ ],
171
+ "stateMutability": "view"
172
+ },
173
+ {
174
+ "type": "function",
175
+ "name": "actionsPaused",
176
+ "inputs": [
177
+ {
178
+ "name": "cToken",
179
+ "type": "address",
180
+ "internalType": "address"
181
+ }
182
+ ],
183
+ "outputs": [
184
+ {
185
+ "name": "mintPaused",
186
+ "type": "bool",
187
+ "internalType": "bool"
188
+ },
189
+ {
190
+ "name": "collateralizationPaused",
191
+ "type": "bool",
192
+ "internalType": "bool"
193
+ },
194
+ {
195
+ "name": "borrowPaused",
196
+ "type": "bool",
197
+ "internalType": "bool"
198
+ }
199
+ ],
200
+ "stateMutability": "view"
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "addPositionManager",
205
+ "inputs": [
206
+ {
207
+ "name": "newPM",
208
+ "type": "address",
209
+ "internalType": "address"
210
+ }
211
+ ],
212
+ "outputs": [],
213
+ "stateMutability": "nonpayable"
214
+ },
215
+ {
216
+ "type": "function",
217
+ "name": "assetsOf",
218
+ "inputs": [
219
+ {
220
+ "name": "account",
221
+ "type": "address",
222
+ "internalType": "address"
223
+ }
224
+ ],
225
+ "outputs": [
226
+ {
227
+ "name": "result",
228
+ "type": "address[]",
229
+ "internalType": "address[]"
230
+ }
231
+ ],
232
+ "stateMutability": "view"
233
+ },
234
+ {
235
+ "type": "function",
236
+ "name": "canBorrow",
237
+ "inputs": [
238
+ {
239
+ "name": "cToken",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ },
243
+ {
244
+ "name": "assets",
245
+ "type": "uint256",
246
+ "internalType": "uint256"
247
+ },
248
+ {
249
+ "name": "account",
250
+ "type": "address",
251
+ "internalType": "address"
252
+ },
253
+ {
254
+ "name": "newNetDebt",
255
+ "type": "uint256",
256
+ "internalType": "uint256"
257
+ }
258
+ ],
259
+ "outputs": [],
260
+ "stateMutability": "nonpayable"
261
+ },
262
+ {
263
+ "type": "function",
264
+ "name": "canBorrowWithNotify",
265
+ "inputs": [
266
+ {
267
+ "name": "cToken",
268
+ "type": "address",
269
+ "internalType": "address"
270
+ },
271
+ {
272
+ "name": "assets",
273
+ "type": "uint256",
274
+ "internalType": "uint256"
275
+ },
276
+ {
277
+ "name": "account",
278
+ "type": "address",
279
+ "internalType": "address"
280
+ },
281
+ {
282
+ "name": "newNetDebt",
283
+ "type": "uint256",
284
+ "internalType": "uint256"
285
+ }
286
+ ],
287
+ "outputs": [],
288
+ "stateMutability": "nonpayable"
289
+ },
290
+ {
291
+ "type": "function",
292
+ "name": "canCollateralize",
293
+ "inputs": [
294
+ {
295
+ "name": "collateralToken",
296
+ "type": "address",
297
+ "internalType": "address"
298
+ },
299
+ {
300
+ "name": "account",
301
+ "type": "address",
302
+ "internalType": "address"
303
+ },
304
+ {
305
+ "name": "newNetCollateral",
306
+ "type": "uint256",
307
+ "internalType": "uint256"
308
+ }
309
+ ],
310
+ "outputs": [],
311
+ "stateMutability": "nonpayable"
312
+ },
313
+ {
314
+ "type": "function",
315
+ "name": "canLiquidate",
316
+ "inputs": [
317
+ {
318
+ "name": "debtAmounts",
319
+ "type": "uint256[]",
320
+ "internalType": "uint256[]"
321
+ },
322
+ {
323
+ "name": "liquidator",
324
+ "type": "address",
325
+ "internalType": "address"
326
+ },
327
+ {
328
+ "name": "accounts",
329
+ "type": "address[]",
330
+ "internalType": "address[]"
331
+ },
332
+ {
333
+ "name": "action",
334
+ "type": "tuple",
335
+ "internalType": "struct IMarketManager.LiqAction",
336
+ "components": [
337
+ {
338
+ "name": "collateralToken",
339
+ "type": "address",
340
+ "internalType": "address"
341
+ },
342
+ {
343
+ "name": "debtToken",
344
+ "type": "address",
345
+ "internalType": "address"
346
+ },
347
+ {
348
+ "name": "numAccounts",
349
+ "type": "uint256",
350
+ "internalType": "uint256"
351
+ },
352
+ {
353
+ "name": "liquidateExact",
354
+ "type": "bool",
355
+ "internalType": "bool"
356
+ },
357
+ {
358
+ "name": "liquidatedShares",
359
+ "type": "uint256",
360
+ "internalType": "uint256"
361
+ },
362
+ {
363
+ "name": "debtRepaid",
364
+ "type": "uint256",
365
+ "internalType": "uint256"
366
+ },
367
+ {
368
+ "name": "badDebt",
369
+ "type": "uint256",
370
+ "internalType": "uint256"
371
+ }
372
+ ]
373
+ }
374
+ ],
375
+ "outputs": [
376
+ {
377
+ "name": "result",
378
+ "type": "tuple",
379
+ "internalType": "struct IMarketManager.LiqResult",
380
+ "components": [
381
+ {
382
+ "name": "liquidatedShares",
383
+ "type": "uint256[]",
384
+ "internalType": "uint256[]"
385
+ },
386
+ {
387
+ "name": "debtRepaid",
388
+ "type": "uint256",
389
+ "internalType": "uint256"
390
+ },
391
+ {
392
+ "name": "badDebtRealized",
393
+ "type": "uint256",
394
+ "internalType": "uint256"
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "name": "",
400
+ "type": "uint256[]",
401
+ "internalType": "uint256[]"
402
+ }
403
+ ],
404
+ "stateMutability": "view"
405
+ },
406
+ {
407
+ "type": "function",
408
+ "name": "canMint",
409
+ "inputs": [
410
+ {
411
+ "name": "cToken",
412
+ "type": "address",
413
+ "internalType": "address"
414
+ }
415
+ ],
416
+ "outputs": [],
417
+ "stateMutability": "view"
418
+ },
419
+ {
420
+ "type": "function",
421
+ "name": "canRedeem",
422
+ "inputs": [
423
+ {
424
+ "name": "cToken",
425
+ "type": "address",
426
+ "internalType": "address"
427
+ },
428
+ {
429
+ "name": "shares",
430
+ "type": "uint256",
431
+ "internalType": "uint256"
432
+ },
433
+ {
434
+ "name": "account",
435
+ "type": "address",
436
+ "internalType": "address"
437
+ }
438
+ ],
439
+ "outputs": [],
440
+ "stateMutability": "view"
441
+ },
442
+ {
443
+ "type": "function",
444
+ "name": "canRedeemWithCollateralRemoval",
445
+ "inputs": [
446
+ {
447
+ "name": "cToken",
448
+ "type": "address",
449
+ "internalType": "address"
450
+ },
451
+ {
452
+ "name": "shares",
453
+ "type": "uint256",
454
+ "internalType": "uint256"
455
+ },
456
+ {
457
+ "name": "account",
458
+ "type": "address",
459
+ "internalType": "address"
460
+ },
461
+ {
462
+ "name": "balanceOf",
463
+ "type": "uint256",
464
+ "internalType": "uint256"
465
+ },
466
+ {
467
+ "name": "collateralPosted",
468
+ "type": "uint256",
469
+ "internalType": "uint256"
470
+ },
471
+ {
472
+ "name": "forceRedeemCollateral",
473
+ "type": "bool",
474
+ "internalType": "bool"
475
+ }
476
+ ],
477
+ "outputs": [
478
+ {
479
+ "name": "",
480
+ "type": "uint256",
481
+ "internalType": "uint256"
482
+ }
483
+ ],
484
+ "stateMutability": "nonpayable"
485
+ },
486
+ {
487
+ "type": "function",
488
+ "name": "canRepay",
489
+ "inputs": [
490
+ {
491
+ "name": "cToken",
492
+ "type": "address",
493
+ "internalType": "address"
494
+ },
495
+ {
496
+ "name": "account",
497
+ "type": "address",
498
+ "internalType": "address"
499
+ }
500
+ ],
501
+ "outputs": [],
502
+ "stateMutability": "view"
503
+ },
504
+ {
505
+ "type": "function",
506
+ "name": "canSeize",
507
+ "inputs": [
508
+ {
509
+ "name": "collateralToken",
510
+ "type": "address",
511
+ "internalType": "address"
512
+ },
513
+ {
514
+ "name": "debtToken",
515
+ "type": "address",
516
+ "internalType": "address"
517
+ }
518
+ ],
519
+ "outputs": [],
520
+ "stateMutability": "view"
521
+ },
522
+ {
523
+ "type": "function",
524
+ "name": "canTransfer",
525
+ "inputs": [
526
+ {
527
+ "name": "cToken",
528
+ "type": "address",
529
+ "internalType": "address"
530
+ },
531
+ {
532
+ "name": "shares",
533
+ "type": "uint256",
534
+ "internalType": "uint256"
535
+ },
536
+ {
537
+ "name": "account",
538
+ "type": "address",
539
+ "internalType": "address"
540
+ },
541
+ {
542
+ "name": "balanceOf",
543
+ "type": "uint256",
544
+ "internalType": "uint256"
545
+ },
546
+ {
547
+ "name": "collateralPosted",
548
+ "type": "uint256",
549
+ "internalType": "uint256"
550
+ },
551
+ {
552
+ "name": "isCollateral",
553
+ "type": "bool",
554
+ "internalType": "bool"
555
+ }
556
+ ],
557
+ "outputs": [
558
+ {
559
+ "name": "",
560
+ "type": "uint256",
561
+ "internalType": "uint256"
562
+ }
563
+ ],
564
+ "stateMutability": "nonpayable"
565
+ },
566
+ {
567
+ "type": "function",
568
+ "name": "centralRegistry",
569
+ "inputs": [],
570
+ "outputs": [
571
+ {
572
+ "name": "",
573
+ "type": "address",
574
+ "internalType": "contract ICentralRegistry"
575
+ }
576
+ ],
577
+ "stateMutability": "view"
578
+ },
579
+ {
580
+ "type": "function",
581
+ "name": "collConfig",
582
+ "inputs": [
583
+ {
584
+ "name": "cToken",
585
+ "type": "address",
586
+ "internalType": "address"
587
+ }
588
+ ],
589
+ "outputs": [
590
+ {
591
+ "name": "",
592
+ "type": "uint256",
593
+ "internalType": "uint256"
594
+ },
595
+ {
596
+ "name": "",
597
+ "type": "uint256",
598
+ "internalType": "uint256"
599
+ },
600
+ {
601
+ "name": "",
602
+ "type": "uint256",
603
+ "internalType": "uint256"
604
+ }
605
+ ],
606
+ "stateMutability": "view"
607
+ },
608
+ {
609
+ "type": "function",
610
+ "name": "collateralCaps",
611
+ "inputs": [
612
+ {
613
+ "name": "",
614
+ "type": "address",
615
+ "internalType": "address"
616
+ }
617
+ ],
618
+ "outputs": [
619
+ {
620
+ "name": "",
621
+ "type": "uint256",
622
+ "internalType": "uint256"
623
+ }
624
+ ],
625
+ "stateMutability": "view"
626
+ },
627
+ {
628
+ "type": "function",
629
+ "name": "debtCaps",
630
+ "inputs": [
631
+ {
632
+ "name": "",
633
+ "type": "address",
634
+ "internalType": "address"
635
+ }
636
+ ],
637
+ "outputs": [
638
+ {
639
+ "name": "",
640
+ "type": "uint256",
641
+ "internalType": "uint256"
642
+ }
643
+ ],
644
+ "stateMutability": "view"
645
+ },
646
+ {
647
+ "type": "function",
648
+ "name": "getLiquidationConfig",
649
+ "inputs": [],
650
+ "outputs": [
651
+ {
652
+ "name": "incentive",
653
+ "type": "uint256",
654
+ "internalType": "uint256"
655
+ },
656
+ {
657
+ "name": "closeFactor",
658
+ "type": "uint256",
659
+ "internalType": "uint256"
660
+ }
661
+ ],
662
+ "stateMutability": "view"
663
+ },
664
+ {
665
+ "type": "function",
666
+ "name": "hypotheticalLiquidityOf",
667
+ "inputs": [
668
+ {
669
+ "name": "account",
670
+ "type": "address",
671
+ "internalType": "address"
672
+ },
673
+ {
674
+ "name": "cTokenModified",
675
+ "type": "address",
676
+ "internalType": "address"
677
+ },
678
+ {
679
+ "name": "redemptionShares",
680
+ "type": "uint256",
681
+ "internalType": "uint256"
682
+ },
683
+ {
684
+ "name": "borrowAssets",
685
+ "type": "uint256",
686
+ "internalType": "uint256"
687
+ }
688
+ ],
689
+ "outputs": [
690
+ {
691
+ "name": "",
692
+ "type": "uint256",
693
+ "internalType": "uint256"
694
+ },
695
+ {
696
+ "name": "",
697
+ "type": "uint256",
698
+ "internalType": "uint256"
699
+ },
700
+ {
701
+ "name": "",
702
+ "type": "bool[]",
703
+ "internalType": "bool[]"
704
+ }
705
+ ],
706
+ "stateMutability": "view"
707
+ },
708
+ {
709
+ "type": "function",
710
+ "name": "isListed",
711
+ "inputs": [
712
+ {
713
+ "name": "cToken",
714
+ "type": "address",
715
+ "internalType": "address"
716
+ }
717
+ ],
718
+ "outputs": [
719
+ {
720
+ "name": "result",
721
+ "type": "bool",
722
+ "internalType": "bool"
723
+ }
724
+ ],
725
+ "stateMutability": "view"
726
+ },
727
+ {
728
+ "type": "function",
729
+ "name": "isPositionManager",
730
+ "inputs": [
731
+ {
732
+ "name": "",
733
+ "type": "address",
734
+ "internalType": "address"
735
+ }
736
+ ],
737
+ "outputs": [
738
+ {
739
+ "name": "",
740
+ "type": "bool",
741
+ "internalType": "bool"
742
+ }
743
+ ],
744
+ "stateMutability": "view"
745
+ },
746
+ {
747
+ "type": "function",
748
+ "name": "liquidationConfig",
749
+ "inputs": [
750
+ {
751
+ "name": "cToken",
752
+ "type": "address",
753
+ "internalType": "address"
754
+ }
755
+ ],
756
+ "outputs": [
757
+ {
758
+ "name": "",
759
+ "type": "uint256",
760
+ "internalType": "uint256"
761
+ },
762
+ {
763
+ "name": "",
764
+ "type": "uint256",
765
+ "internalType": "uint256"
766
+ },
767
+ {
768
+ "name": "",
769
+ "type": "uint256",
770
+ "internalType": "uint256"
771
+ },
772
+ {
773
+ "name": "",
774
+ "type": "uint256",
775
+ "internalType": "uint256"
776
+ },
777
+ {
778
+ "name": "",
779
+ "type": "uint256",
780
+ "internalType": "uint256"
781
+ },
782
+ {
783
+ "name": "",
784
+ "type": "uint256",
785
+ "internalType": "uint256"
786
+ },
787
+ {
788
+ "name": "",
789
+ "type": "uint256",
790
+ "internalType": "uint256"
791
+ },
792
+ {
793
+ "name": "",
794
+ "type": "uint256",
795
+ "internalType": "uint256"
796
+ }
797
+ ],
798
+ "stateMutability": "view"
799
+ },
800
+ {
801
+ "type": "function",
802
+ "name": "liquidationPaused",
803
+ "inputs": [],
804
+ "outputs": [
805
+ {
806
+ "name": "",
807
+ "type": "uint8",
808
+ "internalType": "uint8"
809
+ }
810
+ ],
811
+ "stateMutability": "view"
812
+ },
813
+ {
814
+ "type": "function",
815
+ "name": "liquidationStatusOf",
816
+ "inputs": [
817
+ {
818
+ "name": "account",
819
+ "type": "address",
820
+ "internalType": "address"
821
+ },
822
+ {
823
+ "name": "collateralToken",
824
+ "type": "address",
825
+ "internalType": "address"
826
+ },
827
+ {
828
+ "name": "debtToken",
829
+ "type": "address",
830
+ "internalType": "address"
831
+ }
832
+ ],
833
+ "outputs": [
834
+ {
835
+ "name": "lfactor",
836
+ "type": "uint256",
837
+ "internalType": "uint256"
838
+ },
839
+ {
840
+ "name": "collateralPrice",
841
+ "type": "uint256",
842
+ "internalType": "uint256"
843
+ },
844
+ {
845
+ "name": "debtPrice",
846
+ "type": "uint256",
847
+ "internalType": "uint256"
848
+ }
849
+ ],
850
+ "stateMutability": "view"
851
+ },
852
+ {
853
+ "type": "function",
854
+ "name": "liquidationValuesOf",
855
+ "inputs": [
856
+ {
857
+ "name": "account",
858
+ "type": "address",
859
+ "internalType": "address"
860
+ }
861
+ ],
862
+ "outputs": [
863
+ {
864
+ "name": "",
865
+ "type": "uint256",
866
+ "internalType": "uint256"
867
+ },
868
+ {
869
+ "name": "",
870
+ "type": "uint256",
871
+ "internalType": "uint256"
872
+ },
873
+ {
874
+ "name": "",
875
+ "type": "uint256",
876
+ "internalType": "uint256"
877
+ }
878
+ ],
879
+ "stateMutability": "view"
880
+ },
881
+ {
882
+ "type": "function",
883
+ "name": "listTokens",
884
+ "inputs": [
885
+ {
886
+ "name": "token0",
887
+ "type": "address",
888
+ "internalType": "address"
889
+ },
890
+ {
891
+ "name": "token1",
892
+ "type": "address",
893
+ "internalType": "address"
894
+ }
895
+ ],
896
+ "outputs": [],
897
+ "stateMutability": "nonpayable"
898
+ },
899
+ {
900
+ "type": "function",
901
+ "name": "lockAuctionCollateral",
902
+ "inputs": [],
903
+ "outputs": [],
904
+ "stateMutability": "nonpayable"
905
+ },
906
+ {
907
+ "type": "function",
908
+ "name": "multicall",
909
+ "inputs": [
910
+ {
911
+ "name": "calls",
912
+ "type": "tuple[]",
913
+ "internalType": "struct Multicall.MulticallAction[]",
914
+ "components": [
915
+ {
916
+ "name": "target",
917
+ "type": "address",
918
+ "internalType": "address"
919
+ },
920
+ {
921
+ "name": "isPriceUpdate",
922
+ "type": "bool",
923
+ "internalType": "bool"
924
+ },
925
+ {
926
+ "name": "data",
927
+ "type": "bytes",
928
+ "internalType": "bytes"
929
+ }
930
+ ]
931
+ }
932
+ ],
933
+ "outputs": [
934
+ {
935
+ "name": "results",
936
+ "type": "bytes[]",
937
+ "internalType": "bytes[]"
938
+ }
939
+ ],
940
+ "stateMutability": "nonpayable"
941
+ },
942
+ {
943
+ "type": "function",
944
+ "name": "notifyBorrow",
945
+ "inputs": [
946
+ {
947
+ "name": "cToken",
948
+ "type": "address",
949
+ "internalType": "address"
950
+ },
951
+ {
952
+ "name": "account",
953
+ "type": "address",
954
+ "internalType": "address"
955
+ }
956
+ ],
957
+ "outputs": [],
958
+ "stateMutability": "nonpayable"
959
+ },
960
+ {
961
+ "type": "function",
962
+ "name": "queryTokensListed",
963
+ "inputs": [],
964
+ "outputs": [
965
+ {
966
+ "name": "r",
967
+ "type": "address[]",
968
+ "internalType": "address[]"
969
+ }
970
+ ],
971
+ "stateMutability": "view"
972
+ },
973
+ {
974
+ "type": "function",
975
+ "name": "redeemPaused",
976
+ "inputs": [],
977
+ "outputs": [
978
+ {
979
+ "name": "",
980
+ "type": "uint8",
981
+ "internalType": "uint8"
982
+ }
983
+ ],
984
+ "stateMutability": "view"
985
+ },
986
+ {
987
+ "type": "function",
988
+ "name": "removePositionManager",
989
+ "inputs": [
990
+ {
991
+ "name": "oldPM",
992
+ "type": "address",
993
+ "internalType": "address"
994
+ }
995
+ ],
996
+ "outputs": [],
997
+ "stateMutability": "nonpayable"
998
+ },
999
+ {
1000
+ "type": "function",
1001
+ "name": "resetLiquidationConfig",
1002
+ "inputs": [],
1003
+ "outputs": [],
1004
+ "stateMutability": "nonpayable"
1005
+ },
1006
+ {
1007
+ "type": "function",
1008
+ "name": "seizePaused",
1009
+ "inputs": [],
1010
+ "outputs": [
1011
+ {
1012
+ "name": "",
1013
+ "type": "uint8",
1014
+ "internalType": "uint8"
1015
+ }
1016
+ ],
1017
+ "stateMutability": "view"
1018
+ },
1019
+ {
1020
+ "type": "function",
1021
+ "name": "setBorrowPaused",
1022
+ "inputs": [
1023
+ {
1024
+ "name": "cToken",
1025
+ "type": "address",
1026
+ "internalType": "address"
1027
+ },
1028
+ {
1029
+ "name": "state",
1030
+ "type": "bool",
1031
+ "internalType": "bool"
1032
+ }
1033
+ ],
1034
+ "outputs": [],
1035
+ "stateMutability": "nonpayable"
1036
+ },
1037
+ {
1038
+ "type": "function",
1039
+ "name": "setCollateralizationPaused",
1040
+ "inputs": [
1041
+ {
1042
+ "name": "cToken",
1043
+ "type": "address",
1044
+ "internalType": "address"
1045
+ },
1046
+ {
1047
+ "name": "state",
1048
+ "type": "bool",
1049
+ "internalType": "bool"
1050
+ }
1051
+ ],
1052
+ "outputs": [],
1053
+ "stateMutability": "nonpayable"
1054
+ },
1055
+ {
1056
+ "type": "function",
1057
+ "name": "setLiquidationConfig",
1058
+ "inputs": [
1059
+ {
1060
+ "name": "cToken",
1061
+ "type": "address",
1062
+ "internalType": "address"
1063
+ },
1064
+ {
1065
+ "name": "incentive",
1066
+ "type": "uint256",
1067
+ "internalType": "uint256"
1068
+ },
1069
+ {
1070
+ "name": "closeFactor",
1071
+ "type": "uint256",
1072
+ "internalType": "uint256"
1073
+ }
1074
+ ],
1075
+ "outputs": [],
1076
+ "stateMutability": "nonpayable"
1077
+ },
1078
+ {
1079
+ "type": "function",
1080
+ "name": "setLiquidationPaused",
1081
+ "inputs": [
1082
+ {
1083
+ "name": "state",
1084
+ "type": "bool",
1085
+ "internalType": "bool"
1086
+ }
1087
+ ],
1088
+ "outputs": [],
1089
+ "stateMutability": "nonpayable"
1090
+ },
1091
+ {
1092
+ "type": "function",
1093
+ "name": "setMintPaused",
1094
+ "inputs": [
1095
+ {
1096
+ "name": "cToken",
1097
+ "type": "address",
1098
+ "internalType": "address"
1099
+ },
1100
+ {
1101
+ "name": "state",
1102
+ "type": "bool",
1103
+ "internalType": "bool"
1104
+ }
1105
+ ],
1106
+ "outputs": [],
1107
+ "stateMutability": "nonpayable"
1108
+ },
1109
+ {
1110
+ "type": "function",
1111
+ "name": "setRedeemPaused",
1112
+ "inputs": [
1113
+ {
1114
+ "name": "state",
1115
+ "type": "bool",
1116
+ "internalType": "bool"
1117
+ }
1118
+ ],
1119
+ "outputs": [],
1120
+ "stateMutability": "nonpayable"
1121
+ },
1122
+ {
1123
+ "type": "function",
1124
+ "name": "setSeizePaused",
1125
+ "inputs": [
1126
+ {
1127
+ "name": "state",
1128
+ "type": "bool",
1129
+ "internalType": "bool"
1130
+ }
1131
+ ],
1132
+ "outputs": [],
1133
+ "stateMutability": "nonpayable"
1134
+ },
1135
+ {
1136
+ "type": "function",
1137
+ "name": "setTransferPaused",
1138
+ "inputs": [
1139
+ {
1140
+ "name": "state",
1141
+ "type": "bool",
1142
+ "internalType": "bool"
1143
+ }
1144
+ ],
1145
+ "outputs": [],
1146
+ "stateMutability": "nonpayable"
1147
+ },
1148
+ {
1149
+ "type": "function",
1150
+ "name": "statusOf",
1151
+ "inputs": [
1152
+ {
1153
+ "name": "account",
1154
+ "type": "address",
1155
+ "internalType": "address"
1156
+ }
1157
+ ],
1158
+ "outputs": [
1159
+ {
1160
+ "name": "",
1161
+ "type": "uint256",
1162
+ "internalType": "uint256"
1163
+ },
1164
+ {
1165
+ "name": "",
1166
+ "type": "uint256",
1167
+ "internalType": "uint256"
1168
+ },
1169
+ {
1170
+ "name": "",
1171
+ "type": "uint256",
1172
+ "internalType": "uint256"
1173
+ }
1174
+ ],
1175
+ "stateMutability": "view"
1176
+ },
1177
+ {
1178
+ "type": "function",
1179
+ "name": "supportsInterface",
1180
+ "inputs": [
1181
+ {
1182
+ "name": "interfaceId",
1183
+ "type": "bytes4",
1184
+ "internalType": "bytes4"
1185
+ }
1186
+ ],
1187
+ "outputs": [
1188
+ {
1189
+ "name": "result",
1190
+ "type": "bool",
1191
+ "internalType": "bool"
1192
+ }
1193
+ ],
1194
+ "stateMutability": "view"
1195
+ },
1196
+ {
1197
+ "type": "function",
1198
+ "name": "tokensListed",
1199
+ "inputs": [
1200
+ {
1201
+ "name": "",
1202
+ "type": "uint256",
1203
+ "internalType": "uint256"
1204
+ }
1205
+ ],
1206
+ "outputs": [
1207
+ {
1208
+ "name": "",
1209
+ "type": "address",
1210
+ "internalType": "address"
1211
+ }
1212
+ ],
1213
+ "stateMutability": "view"
1214
+ },
1215
+ {
1216
+ "type": "function",
1217
+ "name": "transferPaused",
1218
+ "inputs": [],
1219
+ "outputs": [
1220
+ {
1221
+ "name": "",
1222
+ "type": "uint8",
1223
+ "internalType": "uint8"
1224
+ }
1225
+ ],
1226
+ "stateMutability": "view"
1227
+ },
1228
+ {
1229
+ "type": "function",
1230
+ "name": "unlockAuctionCollateral",
1231
+ "inputs": [
1232
+ {
1233
+ "name": "collateralToUnlock",
1234
+ "type": "address",
1235
+ "internalType": "address"
1236
+ }
1237
+ ],
1238
+ "outputs": [],
1239
+ "stateMutability": "nonpayable"
1240
+ },
1241
+ {
1242
+ "type": "function",
1243
+ "name": "updateTokenConfig",
1244
+ "inputs": [
1245
+ {
1246
+ "name": "c",
1247
+ "type": "tuple",
1248
+ "internalType": "struct MarketManagerIsolated.TokenConfig",
1249
+ "components": [
1250
+ {
1251
+ "name": "cToken",
1252
+ "type": "address",
1253
+ "internalType": "address"
1254
+ },
1255
+ {
1256
+ "name": "collRatio",
1257
+ "type": "uint256",
1258
+ "internalType": "uint256"
1259
+ },
1260
+ {
1261
+ "name": "collReqSoft",
1262
+ "type": "uint256",
1263
+ "internalType": "uint256"
1264
+ },
1265
+ {
1266
+ "name": "collReqHard",
1267
+ "type": "uint256",
1268
+ "internalType": "uint256"
1269
+ },
1270
+ {
1271
+ "name": "liqIncBase",
1272
+ "type": "uint256",
1273
+ "internalType": "uint256"
1274
+ },
1275
+ {
1276
+ "name": "liqIncHard",
1277
+ "type": "uint256",
1278
+ "internalType": "uint256"
1279
+ },
1280
+ {
1281
+ "name": "liqIncMin",
1282
+ "type": "uint256",
1283
+ "internalType": "uint256"
1284
+ },
1285
+ {
1286
+ "name": "liqIncMax",
1287
+ "type": "uint256",
1288
+ "internalType": "uint256"
1289
+ },
1290
+ {
1291
+ "name": "closeFactorBase",
1292
+ "type": "uint256",
1293
+ "internalType": "uint256"
1294
+ },
1295
+ {
1296
+ "name": "closeFactorMin",
1297
+ "type": "uint256",
1298
+ "internalType": "uint256"
1299
+ },
1300
+ {
1301
+ "name": "closeFactorMax",
1302
+ "type": "uint256",
1303
+ "internalType": "uint256"
1304
+ },
1305
+ {
1306
+ "name": "collateralCap",
1307
+ "type": "uint256",
1308
+ "internalType": "uint256"
1309
+ },
1310
+ {
1311
+ "name": "debtCap",
1312
+ "type": "uint256",
1313
+ "internalType": "uint256"
1314
+ }
1315
+ ]
1316
+ }
1317
+ ],
1318
+ "outputs": [],
1319
+ "stateMutability": "nonpayable"
1320
+ },
1321
+ {
1322
+ "type": "event",
1323
+ "name": "ActionPaused",
1324
+ "inputs": [
1325
+ {
1326
+ "name": "action",
1327
+ "type": "string",
1328
+ "indexed": false,
1329
+ "internalType": "string"
1330
+ },
1331
+ {
1332
+ "name": "pauseState",
1333
+ "type": "bool",
1334
+ "indexed": false,
1335
+ "internalType": "bool"
1336
+ }
1337
+ ],
1338
+ "anonymous": false
1339
+ },
1340
+ {
1341
+ "type": "event",
1342
+ "name": "PositionManagerUpdated",
1343
+ "inputs": [
1344
+ {
1345
+ "name": "positionManager",
1346
+ "type": "address",
1347
+ "indexed": false,
1348
+ "internalType": "address"
1349
+ },
1350
+ {
1351
+ "name": "addPerms",
1352
+ "type": "bool",
1353
+ "indexed": false,
1354
+ "internalType": "bool"
1355
+ }
1356
+ ],
1357
+ "anonymous": false
1358
+ },
1359
+ {
1360
+ "type": "event",
1361
+ "name": "PositionUpdated",
1362
+ "inputs": [
1363
+ {
1364
+ "name": "cToken",
1365
+ "type": "address",
1366
+ "indexed": false,
1367
+ "internalType": "address"
1368
+ },
1369
+ {
1370
+ "name": "account",
1371
+ "type": "address",
1372
+ "indexed": false,
1373
+ "internalType": "address"
1374
+ },
1375
+ {
1376
+ "name": "open",
1377
+ "type": "bool",
1378
+ "indexed": false,
1379
+ "internalType": "bool"
1380
+ }
1381
+ ],
1382
+ "anonymous": false
1383
+ },
1384
+ {
1385
+ "type": "event",
1386
+ "name": "TokenActionPaused",
1387
+ "inputs": [
1388
+ {
1389
+ "name": "cToken",
1390
+ "type": "address",
1391
+ "indexed": false,
1392
+ "internalType": "address"
1393
+ },
1394
+ {
1395
+ "name": "action",
1396
+ "type": "string",
1397
+ "indexed": false,
1398
+ "internalType": "string"
1399
+ },
1400
+ {
1401
+ "name": "pauseState",
1402
+ "type": "bool",
1403
+ "indexed": false,
1404
+ "internalType": "bool"
1405
+ }
1406
+ ],
1407
+ "anonymous": false
1408
+ },
1409
+ {
1410
+ "type": "event",
1411
+ "name": "TokenConfigUpdated",
1412
+ "inputs": [
1413
+ {
1414
+ "name": "config",
1415
+ "type": "tuple",
1416
+ "indexed": false,
1417
+ "internalType": "struct MarketManagerIsolated.TokenConfig",
1418
+ "components": [
1419
+ {
1420
+ "name": "cToken",
1421
+ "type": "address",
1422
+ "internalType": "address"
1423
+ },
1424
+ {
1425
+ "name": "collRatio",
1426
+ "type": "uint256",
1427
+ "internalType": "uint256"
1428
+ },
1429
+ {
1430
+ "name": "collReqSoft",
1431
+ "type": "uint256",
1432
+ "internalType": "uint256"
1433
+ },
1434
+ {
1435
+ "name": "collReqHard",
1436
+ "type": "uint256",
1437
+ "internalType": "uint256"
1438
+ },
1439
+ {
1440
+ "name": "liqIncBase",
1441
+ "type": "uint256",
1442
+ "internalType": "uint256"
1443
+ },
1444
+ {
1445
+ "name": "liqIncHard",
1446
+ "type": "uint256",
1447
+ "internalType": "uint256"
1448
+ },
1449
+ {
1450
+ "name": "liqIncMin",
1451
+ "type": "uint256",
1452
+ "internalType": "uint256"
1453
+ },
1454
+ {
1455
+ "name": "liqIncMax",
1456
+ "type": "uint256",
1457
+ "internalType": "uint256"
1458
+ },
1459
+ {
1460
+ "name": "closeFactorBase",
1461
+ "type": "uint256",
1462
+ "internalType": "uint256"
1463
+ },
1464
+ {
1465
+ "name": "closeFactorMin",
1466
+ "type": "uint256",
1467
+ "internalType": "uint256"
1468
+ },
1469
+ {
1470
+ "name": "closeFactorMax",
1471
+ "type": "uint256",
1472
+ "internalType": "uint256"
1473
+ },
1474
+ {
1475
+ "name": "collateralCap",
1476
+ "type": "uint256",
1477
+ "internalType": "uint256"
1478
+ },
1479
+ {
1480
+ "name": "debtCap",
1481
+ "type": "uint256",
1482
+ "internalType": "uint256"
1483
+ }
1484
+ ]
1485
+ }
1486
+ ],
1487
+ "anonymous": false
1488
+ },
1489
+ {
1490
+ "type": "event",
1491
+ "name": "TokenListed",
1492
+ "inputs": [
1493
+ {
1494
+ "name": "cToken",
1495
+ "type": "address",
1496
+ "indexed": false,
1497
+ "internalType": "address"
1498
+ }
1499
+ ],
1500
+ "anonymous": false
1501
+ },
1502
+ {
1503
+ "type": "error",
1504
+ "name": "CentralRegistryLib__InvalidCentralRegistry",
1505
+ "inputs": []
1506
+ },
1507
+ {
1508
+ "type": "error",
1509
+ "name": "LiquidityManager__InsufficientLoanSize",
1510
+ "inputs": []
1511
+ },
1512
+ {
1513
+ "type": "error",
1514
+ "name": "LowLevelCallsHelper__CallFailed",
1515
+ "inputs": []
1516
+ },
1517
+ {
1518
+ "type": "error",
1519
+ "name": "MarketManager__CapReached",
1520
+ "inputs": []
1521
+ },
1522
+ {
1523
+ "type": "error",
1524
+ "name": "MarketManager__InsufficientCollateral",
1525
+ "inputs": []
1526
+ },
1527
+ {
1528
+ "type": "error",
1529
+ "name": "MarketManager__InvalidParameter",
1530
+ "inputs": []
1531
+ },
1532
+ {
1533
+ "type": "error",
1534
+ "name": "MarketManager__InvariantError",
1535
+ "inputs": []
1536
+ },
1537
+ {
1538
+ "type": "error",
1539
+ "name": "MarketManager__MarketManagerMismatch",
1540
+ "inputs": []
1541
+ },
1542
+ {
1543
+ "type": "error",
1544
+ "name": "MarketManager__MinimumHoldPeriod",
1545
+ "inputs": []
1546
+ },
1547
+ {
1548
+ "type": "error",
1549
+ "name": "MarketManager__NoLiquidationAvailable",
1550
+ "inputs": []
1551
+ },
1552
+ {
1553
+ "type": "error",
1554
+ "name": "MarketManager__Paused",
1555
+ "inputs": []
1556
+ },
1557
+ {
1558
+ "type": "error",
1559
+ "name": "MarketManager__PriceError",
1560
+ "inputs": []
1561
+ },
1562
+ {
1563
+ "type": "error",
1564
+ "name": "MarketManager__TokenNotListed",
1565
+ "inputs": []
1566
+ },
1567
+ {
1568
+ "type": "error",
1569
+ "name": "MarketManager__Unauthorized",
1570
+ "inputs": []
1571
+ },
1572
+ {
1573
+ "type": "error",
1574
+ "name": "MarketManager__UnauthorizedLiquidation",
1575
+ "inputs": []
1576
+ },
1577
+ {
1578
+ "type": "error",
1579
+ "name": "Multicall__InvalidTarget",
1580
+ "inputs": []
1581
+ },
1582
+ {
1583
+ "type": "error",
1584
+ "name": "Multicall__UnknownCalldata",
1585
+ "inputs": []
1586
+ }
1587
+ ]