curvance 1.0.1 → 1.0.3

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 (46) hide show
  1. package/README.md +0 -4
  2. package/package.json +2 -2
  3. package/dist/abis/BaseCToken.json +0 -1550
  4. package/dist/abis/BorrowableCToken.json +0 -2188
  5. package/dist/abis/IDynamicIRM.json +0 -158
  6. package/dist/abis/MarketManagerIsolated.json +0 -1587
  7. package/dist/abis/ProtocolReader.json +0 -767
  8. package/dist/classes/CToken.d.ts +0 -170
  9. package/dist/classes/CToken.d.ts.map +0 -1
  10. package/dist/classes/CToken.js +0 -292
  11. package/dist/classes/CToken.js.map +0 -1
  12. package/dist/classes/CVE.d.ts +0 -7
  13. package/dist/classes/CVE.d.ts.map +0 -1
  14. package/dist/classes/CVE.js +0 -7
  15. package/dist/classes/CVE.js.map +0 -1
  16. package/dist/classes/ERC20.d.ts +0 -35
  17. package/dist/classes/ERC20.d.ts.map +0 -1
  18. package/dist/classes/ERC20.js +0 -68
  19. package/dist/classes/ERC20.js.map +0 -1
  20. package/dist/classes/Faucet.d.ts +0 -25
  21. package/dist/classes/Faucet.d.ts.map +0 -1
  22. package/dist/classes/Faucet.js +0 -48
  23. package/dist/classes/Faucet.js.map +0 -1
  24. package/dist/classes/Market.d.ts +0 -68
  25. package/dist/classes/Market.d.ts.map +0 -1
  26. package/dist/classes/Market.js +0 -136
  27. package/dist/classes/Market.js.map +0 -1
  28. package/dist/classes/OracleManager.d.ts +0 -13
  29. package/dist/classes/OracleManager.d.ts.map +0 -1
  30. package/dist/classes/OracleManager.js +0 -34
  31. package/dist/classes/OracleManager.js.map +0 -1
  32. package/dist/classes/ProtocolReader.d.ts +0 -116
  33. package/dist/classes/ProtocolReader.d.ts.map +0 -1
  34. package/dist/classes/ProtocolReader.js +0 -136
  35. package/dist/classes/ProtocolReader.js.map +0 -1
  36. package/dist/helpers.d.ts +0 -20
  37. package/dist/helpers.d.ts.map +0 -1
  38. package/dist/helpers.js +0 -45
  39. package/dist/helpers.js.map +0 -1
  40. package/dist/setup.d.ts +0 -11
  41. package/dist/setup.d.ts.map +0 -1
  42. package/dist/setup.js.map +0 -1
  43. package/dist/types.d.ts +0 -10
  44. package/dist/types.d.ts.map +0 -1
  45. package/dist/types.js +0 -3
  46. package/dist/types.js.map +0 -1
@@ -1,767 +0,0 @@
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": "MARKET_ASSET_RESERVE",
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": "MARKET_COOLDOWN_LENGTH",
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": "centralRegistry",
42
- "inputs": [],
43
- "outputs": [
44
- {
45
- "name": "",
46
- "type": "address",
47
- "internalType": "contract ICentralRegistry"
48
- }
49
- ],
50
- "stateMutability": "view"
51
- },
52
- {
53
- "type": "function",
54
- "name": "getAllDynamicState",
55
- "inputs": [
56
- {
57
- "name": "account",
58
- "type": "address",
59
- "internalType": "address"
60
- }
61
- ],
62
- "outputs": [
63
- {
64
- "name": "market",
65
- "type": "tuple[]",
66
- "internalType": "struct ProtocolReader.DynamicMarketData[]",
67
- "components": [
68
- {
69
- "name": "_address",
70
- "type": "address",
71
- "internalType": "address"
72
- },
73
- {
74
- "name": "tokens",
75
- "type": "tuple[]",
76
- "internalType": "struct ProtocolReader.DynamicMarketToken[]",
77
- "components": [
78
- {
79
- "name": "_address",
80
- "type": "address",
81
- "internalType": "address"
82
- },
83
- {
84
- "name": "tvl",
85
- "type": "uint256",
86
- "internalType": "uint256"
87
- },
88
- {
89
- "name": "collateral",
90
- "type": "uint256",
91
- "internalType": "uint256"
92
- },
93
- {
94
- "name": "debt",
95
- "type": "uint256",
96
- "internalType": "uint256"
97
- },
98
- {
99
- "name": "sharePrice",
100
- "type": "uint256",
101
- "internalType": "uint256"
102
- },
103
- {
104
- "name": "assetPrice",
105
- "type": "uint256",
106
- "internalType": "uint256"
107
- },
108
- {
109
- "name": "sharePriceLower",
110
- "type": "uint256",
111
- "internalType": "uint256"
112
- },
113
- {
114
- "name": "assetPriceLower",
115
- "type": "uint256",
116
- "internalType": "uint256"
117
- },
118
- {
119
- "name": "borrowRate",
120
- "type": "uint256",
121
- "internalType": "uint256"
122
- },
123
- {
124
- "name": "predictedBorrowRate",
125
- "type": "uint256",
126
- "internalType": "uint256"
127
- },
128
- {
129
- "name": "utilizationRate",
130
- "type": "uint256",
131
- "internalType": "uint256"
132
- },
133
- {
134
- "name": "supplyRate",
135
- "type": "uint256",
136
- "internalType": "uint256"
137
- },
138
- {
139
- "name": "liquidity",
140
- "type": "uint256",
141
- "internalType": "uint256"
142
- }
143
- ]
144
- }
145
- ]
146
- },
147
- {
148
- "name": "user",
149
- "type": "tuple",
150
- "internalType": "struct ProtocolReader.UserData",
151
- "components": [
152
- {
153
- "name": "locks",
154
- "type": "tuple[]",
155
- "internalType": "struct ProtocolReader.UserLock[]",
156
- "components": [
157
- {
158
- "name": "lockIndex",
159
- "type": "uint256",
160
- "internalType": "uint256"
161
- },
162
- {
163
- "name": "amount",
164
- "type": "uint256",
165
- "internalType": "uint256"
166
- },
167
- {
168
- "name": "unlockTime",
169
- "type": "uint256",
170
- "internalType": "uint256"
171
- }
172
- ]
173
- },
174
- {
175
- "name": "markets",
176
- "type": "tuple[]",
177
- "internalType": "struct ProtocolReader.UserMarket[]",
178
- "components": [
179
- {
180
- "name": "_address",
181
- "type": "address",
182
- "internalType": "address"
183
- },
184
- {
185
- "name": "collateral",
186
- "type": "uint256",
187
- "internalType": "uint256"
188
- },
189
- {
190
- "name": "maxDebt",
191
- "type": "uint256",
192
- "internalType": "uint256"
193
- },
194
- {
195
- "name": "debt",
196
- "type": "uint256",
197
- "internalType": "uint256"
198
- },
199
- {
200
- "name": "positionHealth",
201
- "type": "uint256",
202
- "internalType": "uint256"
203
- },
204
- {
205
- "name": "cooldown",
206
- "type": "uint256",
207
- "internalType": "uint256"
208
- },
209
- {
210
- "name": "tokens",
211
- "type": "tuple[]",
212
- "internalType": "struct ProtocolReader.UserMarketToken[]",
213
- "components": [
214
- {
215
- "name": "_address",
216
- "type": "address",
217
- "internalType": "address"
218
- },
219
- {
220
- "name": "assetAmount",
221
- "type": "uint256",
222
- "internalType": "uint256"
223
- },
224
- {
225
- "name": "shareAmount",
226
- "type": "uint256",
227
- "internalType": "uint256"
228
- },
229
- {
230
- "name": "collateral",
231
- "type": "uint256",
232
- "internalType": "uint256"
233
- },
234
- {
235
- "name": "debt",
236
- "type": "uint256",
237
- "internalType": "uint256"
238
- }
239
- ]
240
- }
241
- ]
242
- }
243
- ]
244
- }
245
- ],
246
- "stateMutability": "view"
247
- },
248
- {
249
- "type": "function",
250
- "name": "getDynamicMarketData",
251
- "inputs": [],
252
- "outputs": [
253
- {
254
- "name": "data",
255
- "type": "tuple[]",
256
- "internalType": "struct ProtocolReader.DynamicMarketData[]",
257
- "components": [
258
- {
259
- "name": "_address",
260
- "type": "address",
261
- "internalType": "address"
262
- },
263
- {
264
- "name": "tokens",
265
- "type": "tuple[]",
266
- "internalType": "struct ProtocolReader.DynamicMarketToken[]",
267
- "components": [
268
- {
269
- "name": "_address",
270
- "type": "address",
271
- "internalType": "address"
272
- },
273
- {
274
- "name": "tvl",
275
- "type": "uint256",
276
- "internalType": "uint256"
277
- },
278
- {
279
- "name": "collateral",
280
- "type": "uint256",
281
- "internalType": "uint256"
282
- },
283
- {
284
- "name": "debt",
285
- "type": "uint256",
286
- "internalType": "uint256"
287
- },
288
- {
289
- "name": "sharePrice",
290
- "type": "uint256",
291
- "internalType": "uint256"
292
- },
293
- {
294
- "name": "assetPrice",
295
- "type": "uint256",
296
- "internalType": "uint256"
297
- },
298
- {
299
- "name": "sharePriceLower",
300
- "type": "uint256",
301
- "internalType": "uint256"
302
- },
303
- {
304
- "name": "assetPriceLower",
305
- "type": "uint256",
306
- "internalType": "uint256"
307
- },
308
- {
309
- "name": "borrowRate",
310
- "type": "uint256",
311
- "internalType": "uint256"
312
- },
313
- {
314
- "name": "predictedBorrowRate",
315
- "type": "uint256",
316
- "internalType": "uint256"
317
- },
318
- {
319
- "name": "utilizationRate",
320
- "type": "uint256",
321
- "internalType": "uint256"
322
- },
323
- {
324
- "name": "supplyRate",
325
- "type": "uint256",
326
- "internalType": "uint256"
327
- },
328
- {
329
- "name": "liquidity",
330
- "type": "uint256",
331
- "internalType": "uint256"
332
- }
333
- ]
334
- }
335
- ]
336
- }
337
- ],
338
- "stateMutability": "view"
339
- },
340
- {
341
- "type": "function",
342
- "name": "getPrice",
343
- "inputs": [
344
- {
345
- "name": "asset",
346
- "type": "address",
347
- "internalType": "address"
348
- },
349
- {
350
- "name": "inUSD",
351
- "type": "bool",
352
- "internalType": "bool"
353
- },
354
- {
355
- "name": "getLower",
356
- "type": "bool",
357
- "internalType": "bool"
358
- }
359
- ],
360
- "outputs": [
361
- {
362
- "name": "price",
363
- "type": "uint256",
364
- "internalType": "uint256"
365
- },
366
- {
367
- "name": "errorCode",
368
- "type": "uint256",
369
- "internalType": "uint256"
370
- }
371
- ],
372
- "stateMutability": "view"
373
- },
374
- {
375
- "type": "function",
376
- "name": "getPriceOnly",
377
- "inputs": [
378
- {
379
- "name": "asset",
380
- "type": "address",
381
- "internalType": "address"
382
- },
383
- {
384
- "name": "inUSD",
385
- "type": "bool",
386
- "internalType": "bool"
387
- },
388
- {
389
- "name": "getLower",
390
- "type": "bool",
391
- "internalType": "bool"
392
- }
393
- ],
394
- "outputs": [
395
- {
396
- "name": "price",
397
- "type": "uint256",
398
- "internalType": "uint256"
399
- }
400
- ],
401
- "stateMutability": "view"
402
- },
403
- {
404
- "type": "function",
405
- "name": "getStaticMarketData",
406
- "inputs": [],
407
- "outputs": [
408
- {
409
- "name": "data",
410
- "type": "tuple[]",
411
- "internalType": "struct ProtocolReader.StaticMarketData[]",
412
- "components": [
413
- {
414
- "name": "_address",
415
- "type": "address",
416
- "internalType": "address"
417
- },
418
- {
419
- "name": "adapters",
420
- "type": "uint256[]",
421
- "internalType": "uint256[]"
422
- },
423
- {
424
- "name": "cooldownLength",
425
- "type": "uint256",
426
- "internalType": "uint256"
427
- },
428
- {
429
- "name": "tokens",
430
- "type": "tuple[]",
431
- "internalType": "struct ProtocolReader.StaticMarketToken[]",
432
- "components": [
433
- {
434
- "name": "_address",
435
- "type": "address",
436
- "internalType": "address"
437
- },
438
- {
439
- "name": "name",
440
- "type": "string",
441
- "internalType": "string"
442
- },
443
- {
444
- "name": "symbol",
445
- "type": "string",
446
- "internalType": "string"
447
- },
448
- {
449
- "name": "decimals",
450
- "type": "uint8",
451
- "internalType": "uint8"
452
- },
453
- {
454
- "name": "asset",
455
- "type": "tuple",
456
- "internalType": "struct ProtocolReader.StaticMarketAsset",
457
- "components": [
458
- {
459
- "name": "_address",
460
- "type": "address",
461
- "internalType": "address"
462
- },
463
- {
464
- "name": "name",
465
- "type": "string",
466
- "internalType": "string"
467
- },
468
- {
469
- "name": "symbol",
470
- "type": "string",
471
- "internalType": "string"
472
- },
473
- {
474
- "name": "decimals",
475
- "type": "uint8",
476
- "internalType": "uint8"
477
- },
478
- {
479
- "name": "totalSupply",
480
- "type": "uint256",
481
- "internalType": "uint256"
482
- }
483
- ]
484
- },
485
- {
486
- "name": "collateralCap",
487
- "type": "uint256",
488
- "internalType": "uint256"
489
- },
490
- {
491
- "name": "debtCap",
492
- "type": "uint256",
493
- "internalType": "uint256"
494
- },
495
- {
496
- "name": "isListed",
497
- "type": "bool",
498
- "internalType": "bool"
499
- },
500
- {
501
- "name": "mintPaused",
502
- "type": "bool",
503
- "internalType": "bool"
504
- },
505
- {
506
- "name": "collateralizationPaused",
507
- "type": "bool",
508
- "internalType": "bool"
509
- },
510
- {
511
- "name": "borrowPaused",
512
- "type": "bool",
513
- "internalType": "bool"
514
- },
515
- {
516
- "name": "isBorrowable",
517
- "type": "bool",
518
- "internalType": "bool"
519
- },
520
- {
521
- "name": "collRatio",
522
- "type": "uint256",
523
- "internalType": "uint256"
524
- },
525
- {
526
- "name": "collReqSoft",
527
- "type": "uint256",
528
- "internalType": "uint256"
529
- },
530
- {
531
- "name": "collReqHard",
532
- "type": "uint256",
533
- "internalType": "uint256"
534
- },
535
- {
536
- "name": "liqIncBase",
537
- "type": "uint256",
538
- "internalType": "uint256"
539
- },
540
- {
541
- "name": "liqIncCurve",
542
- "type": "uint256",
543
- "internalType": "uint256"
544
- },
545
- {
546
- "name": "liqIncMin",
547
- "type": "uint256",
548
- "internalType": "uint256"
549
- },
550
- {
551
- "name": "liqIncMax",
552
- "type": "uint256",
553
- "internalType": "uint256"
554
- },
555
- {
556
- "name": "closeFactorBase",
557
- "type": "uint256",
558
- "internalType": "uint256"
559
- },
560
- {
561
- "name": "closeFactorCurve",
562
- "type": "uint256",
563
- "internalType": "uint256"
564
- },
565
- {
566
- "name": "closeFactorMin",
567
- "type": "uint256",
568
- "internalType": "uint256"
569
- },
570
- {
571
- "name": "closeFactorMax",
572
- "type": "uint256",
573
- "internalType": "uint256"
574
- },
575
- {
576
- "name": "adapters",
577
- "type": "uint256[2]",
578
- "internalType": "uint256[2]"
579
- }
580
- ]
581
- }
582
- ]
583
- }
584
- ],
585
- "stateMutability": "view"
586
- },
587
- {
588
- "type": "function",
589
- "name": "getUserData",
590
- "inputs": [
591
- {
592
- "name": "account",
593
- "type": "address",
594
- "internalType": "address"
595
- }
596
- ],
597
- "outputs": [
598
- {
599
- "name": "data",
600
- "type": "tuple",
601
- "internalType": "struct ProtocolReader.UserData",
602
- "components": [
603
- {
604
- "name": "locks",
605
- "type": "tuple[]",
606
- "internalType": "struct ProtocolReader.UserLock[]",
607
- "components": [
608
- {
609
- "name": "lockIndex",
610
- "type": "uint256",
611
- "internalType": "uint256"
612
- },
613
- {
614
- "name": "amount",
615
- "type": "uint256",
616
- "internalType": "uint256"
617
- },
618
- {
619
- "name": "unlockTime",
620
- "type": "uint256",
621
- "internalType": "uint256"
622
- }
623
- ]
624
- },
625
- {
626
- "name": "markets",
627
- "type": "tuple[]",
628
- "internalType": "struct ProtocolReader.UserMarket[]",
629
- "components": [
630
- {
631
- "name": "_address",
632
- "type": "address",
633
- "internalType": "address"
634
- },
635
- {
636
- "name": "collateral",
637
- "type": "uint256",
638
- "internalType": "uint256"
639
- },
640
- {
641
- "name": "maxDebt",
642
- "type": "uint256",
643
- "internalType": "uint256"
644
- },
645
- {
646
- "name": "debt",
647
- "type": "uint256",
648
- "internalType": "uint256"
649
- },
650
- {
651
- "name": "positionHealth",
652
- "type": "uint256",
653
- "internalType": "uint256"
654
- },
655
- {
656
- "name": "cooldown",
657
- "type": "uint256",
658
- "internalType": "uint256"
659
- },
660
- {
661
- "name": "tokens",
662
- "type": "tuple[]",
663
- "internalType": "struct ProtocolReader.UserMarketToken[]",
664
- "components": [
665
- {
666
- "name": "_address",
667
- "type": "address",
668
- "internalType": "address"
669
- },
670
- {
671
- "name": "assetAmount",
672
- "type": "uint256",
673
- "internalType": "uint256"
674
- },
675
- {
676
- "name": "shareAmount",
677
- "type": "uint256",
678
- "internalType": "uint256"
679
- },
680
- {
681
- "name": "collateral",
682
- "type": "uint256",
683
- "internalType": "uint256"
684
- },
685
- {
686
- "name": "debt",
687
- "type": "uint256",
688
- "internalType": "uint256"
689
- }
690
- ]
691
- }
692
- ]
693
- }
694
- ]
695
- }
696
- ],
697
- "stateMutability": "view"
698
- },
699
- {
700
- "type": "function",
701
- "name": "hypotheticalMaxRemainingLeverageOf",
702
- "inputs": [
703
- {
704
- "name": "account",
705
- "type": "address",
706
- "internalType": "address"
707
- },
708
- {
709
- "name": "borrowableCToken",
710
- "type": "address",
711
- "internalType": "address"
712
- },
713
- {
714
- "name": "cToken",
715
- "type": "address",
716
- "internalType": "address"
717
- },
718
- {
719
- "name": "assets",
720
- "type": "uint256",
721
- "internalType": "uint256"
722
- }
723
- ],
724
- "outputs": [
725
- {
726
- "name": "maxDebtBorrowable",
727
- "type": "uint256",
728
- "internalType": "uint256"
729
- },
730
- {
731
- "name": "isOffset",
732
- "type": "bool",
733
- "internalType": "bool"
734
- }
735
- ],
736
- "stateMutability": "view"
737
- },
738
- {
739
- "type": "function",
740
- "name": "marketMultiCooldown",
741
- "inputs": [
742
- {
743
- "name": "markets",
744
- "type": "address[]",
745
- "internalType": "address[]"
746
- },
747
- {
748
- "name": "user",
749
- "type": "address",
750
- "internalType": "address"
751
- }
752
- ],
753
- "outputs": [
754
- {
755
- "name": "",
756
- "type": "uint256[]",
757
- "internalType": "uint256[]"
758
- }
759
- ],
760
- "stateMutability": "view"
761
- },
762
- {
763
- "type": "error",
764
- "name": "CentralRegistryLib__InvalidCentralRegistry",
765
- "inputs": []
766
- }
767
- ]