@meterio/sumer-js 0.2.46 → 0.2.47
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.
- package/dist/browser/sumer.min.js +1 -1
- package/dist/nodejs/abi.d.ts +44 -0
- package/dist/nodejs/abi.js +1459 -0
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/errorABIs.js +427 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +44 -0
- package/package.json +1 -1
package/dist/nodejs/errorABIs.js
CHANGED
|
@@ -5399,6 +5399,433 @@ exports.errorABIs = [
|
|
|
5399
5399
|
"name": "UnderlyingBalanceError",
|
|
5400
5400
|
"type": "error"
|
|
5401
5401
|
},
|
|
5402
|
+
{
|
|
5403
|
+
"inputs": [],
|
|
5404
|
+
"name": "ZeroAddressNotAllowed",
|
|
5405
|
+
"type": "error"
|
|
5406
|
+
},
|
|
5407
|
+
{
|
|
5408
|
+
"inputs": [],
|
|
5409
|
+
"name": "AddReservesMarketNotFresh",
|
|
5410
|
+
"type": "error"
|
|
5411
|
+
},
|
|
5412
|
+
{
|
|
5413
|
+
"inputs": [],
|
|
5414
|
+
"name": "AddReservesOverflow",
|
|
5415
|
+
"type": "error"
|
|
5416
|
+
},
|
|
5417
|
+
{
|
|
5418
|
+
"inputs": [],
|
|
5419
|
+
"name": "BorrowAndDepositBackFailed",
|
|
5420
|
+
"type": "error"
|
|
5421
|
+
},
|
|
5422
|
+
{
|
|
5423
|
+
"inputs": [],
|
|
5424
|
+
"name": "BorrowCapReached",
|
|
5425
|
+
"type": "error"
|
|
5426
|
+
},
|
|
5427
|
+
{
|
|
5428
|
+
"inputs": [],
|
|
5429
|
+
"name": "BorrowCashNotAvailable",
|
|
5430
|
+
"type": "error"
|
|
5431
|
+
},
|
|
5432
|
+
{
|
|
5433
|
+
"inputs": [],
|
|
5434
|
+
"name": "BorrowMarketNotFresh",
|
|
5435
|
+
"type": "error"
|
|
5436
|
+
},
|
|
5437
|
+
{
|
|
5438
|
+
"inputs": [],
|
|
5439
|
+
"name": "BorrowPaused",
|
|
5440
|
+
"type": "error"
|
|
5441
|
+
},
|
|
5442
|
+
{
|
|
5443
|
+
"inputs": [
|
|
5444
|
+
{
|
|
5445
|
+
"internalType": "uint256",
|
|
5446
|
+
"name": "usdThreshold",
|
|
5447
|
+
"type": "uint256"
|
|
5448
|
+
}
|
|
5449
|
+
],
|
|
5450
|
+
"name": "BorrowValueMustBeLargerThanThreshold",
|
|
5451
|
+
"type": "error"
|
|
5452
|
+
},
|
|
5453
|
+
{
|
|
5454
|
+
"inputs": [],
|
|
5455
|
+
"name": "CantExitMarketWithNonZeroBorrowBalance",
|
|
5456
|
+
"type": "error"
|
|
5457
|
+
},
|
|
5458
|
+
{
|
|
5459
|
+
"inputs": [],
|
|
5460
|
+
"name": "CantSweepUnderlying",
|
|
5461
|
+
"type": "error"
|
|
5462
|
+
},
|
|
5463
|
+
{
|
|
5464
|
+
"inputs": [],
|
|
5465
|
+
"name": "ComptrollerMismatch",
|
|
5466
|
+
"type": "error"
|
|
5467
|
+
},
|
|
5468
|
+
{
|
|
5469
|
+
"inputs": [],
|
|
5470
|
+
"name": "EitherAssetOrDebtMustBeZero",
|
|
5471
|
+
"type": "error"
|
|
5472
|
+
},
|
|
5473
|
+
{
|
|
5474
|
+
"inputs": [
|
|
5475
|
+
{
|
|
5476
|
+
"internalType": "uint8",
|
|
5477
|
+
"name": "groupId",
|
|
5478
|
+
"type": "uint8"
|
|
5479
|
+
},
|
|
5480
|
+
{
|
|
5481
|
+
"internalType": "uint256",
|
|
5482
|
+
"name": "cDepositVal",
|
|
5483
|
+
"type": "uint256"
|
|
5484
|
+
},
|
|
5485
|
+
{
|
|
5486
|
+
"internalType": "uint256",
|
|
5487
|
+
"name": "suDepositVal",
|
|
5488
|
+
"type": "uint256"
|
|
5489
|
+
},
|
|
5490
|
+
{
|
|
5491
|
+
"internalType": "uint256",
|
|
5492
|
+
"name": "cBorrowVal",
|
|
5493
|
+
"type": "uint256"
|
|
5494
|
+
},
|
|
5495
|
+
{
|
|
5496
|
+
"internalType": "uint256",
|
|
5497
|
+
"name": "suBorrowVal",
|
|
5498
|
+
"type": "uint256"
|
|
5499
|
+
}
|
|
5500
|
+
],
|
|
5501
|
+
"name": "EitherAssetOrDebtMustBeZeroInGroup",
|
|
5502
|
+
"type": "error"
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
"inputs": [],
|
|
5506
|
+
"name": "ExpiredSignature",
|
|
5507
|
+
"type": "error"
|
|
5508
|
+
},
|
|
5509
|
+
{
|
|
5510
|
+
"inputs": [],
|
|
5511
|
+
"name": "InsufficientCollateral",
|
|
5512
|
+
"type": "error"
|
|
5513
|
+
},
|
|
5514
|
+
{
|
|
5515
|
+
"inputs": [],
|
|
5516
|
+
"name": "InsufficientShortfall",
|
|
5517
|
+
"type": "error"
|
|
5518
|
+
},
|
|
5519
|
+
{
|
|
5520
|
+
"inputs": [],
|
|
5521
|
+
"name": "InvalidAddress",
|
|
5522
|
+
"type": "error"
|
|
5523
|
+
},
|
|
5524
|
+
{
|
|
5525
|
+
"inputs": [],
|
|
5526
|
+
"name": "InvalidAmount",
|
|
5527
|
+
"type": "error"
|
|
5528
|
+
},
|
|
5529
|
+
{
|
|
5530
|
+
"inputs": [],
|
|
5531
|
+
"name": "InvalidBlockNumber",
|
|
5532
|
+
"type": "error"
|
|
5533
|
+
},
|
|
5534
|
+
{
|
|
5535
|
+
"inputs": [],
|
|
5536
|
+
"name": "InvalidCloseFactor",
|
|
5537
|
+
"type": "error"
|
|
5538
|
+
},
|
|
5539
|
+
{
|
|
5540
|
+
"inputs": [],
|
|
5541
|
+
"name": "InvalidComptroller",
|
|
5542
|
+
"type": "error"
|
|
5543
|
+
},
|
|
5544
|
+
{
|
|
5545
|
+
"inputs": [],
|
|
5546
|
+
"name": "InvalidDiscountRate",
|
|
5547
|
+
"type": "error"
|
|
5548
|
+
},
|
|
5549
|
+
{
|
|
5550
|
+
"inputs": [],
|
|
5551
|
+
"name": "InvalidExchangeRate",
|
|
5552
|
+
"type": "error"
|
|
5553
|
+
},
|
|
5554
|
+
{
|
|
5555
|
+
"inputs": [],
|
|
5556
|
+
"name": "InvalidGroupId",
|
|
5557
|
+
"type": "error"
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
"inputs": [],
|
|
5561
|
+
"name": "InvalidInput",
|
|
5562
|
+
"type": "error"
|
|
5563
|
+
},
|
|
5564
|
+
{
|
|
5565
|
+
"inputs": [],
|
|
5566
|
+
"name": "InvalidInterestRateModel",
|
|
5567
|
+
"type": "error"
|
|
5568
|
+
},
|
|
5569
|
+
{
|
|
5570
|
+
"inputs": [],
|
|
5571
|
+
"name": "InvalidMinSuBorrowValue",
|
|
5572
|
+
"type": "error"
|
|
5573
|
+
},
|
|
5574
|
+
{
|
|
5575
|
+
"inputs": [],
|
|
5576
|
+
"name": "InvalidReduceAmount",
|
|
5577
|
+
"type": "error"
|
|
5578
|
+
},
|
|
5579
|
+
{
|
|
5580
|
+
"inputs": [],
|
|
5581
|
+
"name": "InvalidReserveFactor",
|
|
5582
|
+
"type": "error"
|
|
5583
|
+
},
|
|
5584
|
+
{
|
|
5585
|
+
"inputs": [],
|
|
5586
|
+
"name": "InvalidSignatureForRedeemFaceValue",
|
|
5587
|
+
"type": "error"
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
"inputs": [],
|
|
5591
|
+
"name": "InvalidSignatureLength",
|
|
5592
|
+
"type": "error"
|
|
5593
|
+
},
|
|
5594
|
+
{
|
|
5595
|
+
"inputs": [],
|
|
5596
|
+
"name": "InvalidSuToken",
|
|
5597
|
+
"type": "error"
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
"inputs": [],
|
|
5601
|
+
"name": "InvalidTimestamp",
|
|
5602
|
+
"type": "error"
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
"inputs": [],
|
|
5606
|
+
"name": "LiquidateBorrow_LiquidatorIsBorrower",
|
|
5607
|
+
"type": "error"
|
|
5608
|
+
},
|
|
5609
|
+
{
|
|
5610
|
+
"inputs": [],
|
|
5611
|
+
"name": "LiquidateBorrow_RepayAmountIsMax",
|
|
5612
|
+
"type": "error"
|
|
5613
|
+
},
|
|
5614
|
+
{
|
|
5615
|
+
"inputs": [],
|
|
5616
|
+
"name": "LiquidateBorrow_RepayAmountIsZero",
|
|
5617
|
+
"type": "error"
|
|
5618
|
+
},
|
|
5619
|
+
{
|
|
5620
|
+
"inputs": [],
|
|
5621
|
+
"name": "LiquidateBorrow_SeizeTooMuch",
|
|
5622
|
+
"type": "error"
|
|
5623
|
+
},
|
|
5624
|
+
{
|
|
5625
|
+
"inputs": [],
|
|
5626
|
+
"name": "LiquidateCollateralMarketNotFresh",
|
|
5627
|
+
"type": "error"
|
|
5628
|
+
},
|
|
5629
|
+
{
|
|
5630
|
+
"inputs": [],
|
|
5631
|
+
"name": "LiquidateMarketNotFresh",
|
|
5632
|
+
"type": "error"
|
|
5633
|
+
},
|
|
5634
|
+
{
|
|
5635
|
+
"inputs": [],
|
|
5636
|
+
"name": "MarketAlreadyListed",
|
|
5637
|
+
"type": "error"
|
|
5638
|
+
},
|
|
5639
|
+
{
|
|
5640
|
+
"inputs": [],
|
|
5641
|
+
"name": "MarketCanOnlyInitializeOnce",
|
|
5642
|
+
"type": "error"
|
|
5643
|
+
},
|
|
5644
|
+
{
|
|
5645
|
+
"inputs": [],
|
|
5646
|
+
"name": "MarketNotListed",
|
|
5647
|
+
"type": "error"
|
|
5648
|
+
},
|
|
5649
|
+
{
|
|
5650
|
+
"inputs": [],
|
|
5651
|
+
"name": "MinDelayNotReached",
|
|
5652
|
+
"type": "error"
|
|
5653
|
+
},
|
|
5654
|
+
{
|
|
5655
|
+
"inputs": [],
|
|
5656
|
+
"name": "MintMarketNotFresh",
|
|
5657
|
+
"type": "error"
|
|
5658
|
+
},
|
|
5659
|
+
{
|
|
5660
|
+
"inputs": [],
|
|
5661
|
+
"name": "MintPaused",
|
|
5662
|
+
"type": "error"
|
|
5663
|
+
},
|
|
5664
|
+
{
|
|
5665
|
+
"inputs": [],
|
|
5666
|
+
"name": "NoRedemptionProvider",
|
|
5667
|
+
"type": "error"
|
|
5668
|
+
},
|
|
5669
|
+
{
|
|
5670
|
+
"inputs": [],
|
|
5671
|
+
"name": "NotCToken",
|
|
5672
|
+
"type": "error"
|
|
5673
|
+
},
|
|
5674
|
+
{
|
|
5675
|
+
"inputs": [],
|
|
5676
|
+
"name": "NotEnoughForSeize",
|
|
5677
|
+
"type": "error"
|
|
5678
|
+
},
|
|
5679
|
+
{
|
|
5680
|
+
"inputs": [],
|
|
5681
|
+
"name": "NotLiquidatableYet",
|
|
5682
|
+
"type": "error"
|
|
5683
|
+
},
|
|
5684
|
+
{
|
|
5685
|
+
"inputs": [],
|
|
5686
|
+
"name": "NotSuToken",
|
|
5687
|
+
"type": "error"
|
|
5688
|
+
},
|
|
5689
|
+
{
|
|
5690
|
+
"inputs": [],
|
|
5691
|
+
"name": "OnlyAdmin",
|
|
5692
|
+
"type": "error"
|
|
5693
|
+
},
|
|
5694
|
+
{
|
|
5695
|
+
"inputs": [],
|
|
5696
|
+
"name": "OnlyAdminOrPauser",
|
|
5697
|
+
"type": "error"
|
|
5698
|
+
},
|
|
5699
|
+
{
|
|
5700
|
+
"inputs": [],
|
|
5701
|
+
"name": "OnlyCToken",
|
|
5702
|
+
"type": "error"
|
|
5703
|
+
},
|
|
5704
|
+
{
|
|
5705
|
+
"inputs": [],
|
|
5706
|
+
"name": "OnlyListedCToken",
|
|
5707
|
+
"type": "error"
|
|
5708
|
+
},
|
|
5709
|
+
{
|
|
5710
|
+
"inputs": [],
|
|
5711
|
+
"name": "OnlyPendingAdmin",
|
|
5712
|
+
"type": "error"
|
|
5713
|
+
},
|
|
5714
|
+
{
|
|
5715
|
+
"inputs": [],
|
|
5716
|
+
"name": "OnlyRedemptionManager",
|
|
5717
|
+
"type": "error"
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
"inputs": [],
|
|
5721
|
+
"name": "PriceError",
|
|
5722
|
+
"type": "error"
|
|
5723
|
+
},
|
|
5724
|
+
{
|
|
5725
|
+
"inputs": [],
|
|
5726
|
+
"name": "ProtectedMint_OnlyAllowAssetsInTheSameGroup",
|
|
5727
|
+
"type": "error"
|
|
5728
|
+
},
|
|
5729
|
+
{
|
|
5730
|
+
"inputs": [],
|
|
5731
|
+
"name": "RedeemMarketNotFresh",
|
|
5732
|
+
"type": "error"
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
"inputs": [],
|
|
5736
|
+
"name": "RedeemTransferOutNotPossible",
|
|
5737
|
+
"type": "error"
|
|
5738
|
+
},
|
|
5739
|
+
{
|
|
5740
|
+
"inputs": [],
|
|
5741
|
+
"name": "RedemptionSeizeTooMuch",
|
|
5742
|
+
"type": "error"
|
|
5743
|
+
},
|
|
5744
|
+
{
|
|
5745
|
+
"inputs": [],
|
|
5746
|
+
"name": "RedemptionSignerNotInitialized",
|
|
5747
|
+
"type": "error"
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"inputs": [],
|
|
5751
|
+
"name": "ReduceReservesCashNotAvailable",
|
|
5752
|
+
"type": "error"
|
|
5753
|
+
},
|
|
5754
|
+
{
|
|
5755
|
+
"inputs": [],
|
|
5756
|
+
"name": "ReduceReservesMarketNotFresh",
|
|
5757
|
+
"type": "error"
|
|
5758
|
+
},
|
|
5759
|
+
{
|
|
5760
|
+
"inputs": [],
|
|
5761
|
+
"name": "RepayBorrowMarketNotFresh",
|
|
5762
|
+
"type": "error"
|
|
5763
|
+
},
|
|
5764
|
+
{
|
|
5765
|
+
"inputs": [],
|
|
5766
|
+
"name": "SeizePaused",
|
|
5767
|
+
"type": "error"
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
"inputs": [],
|
|
5771
|
+
"name": "Seize_LiquidatorIsBorrower",
|
|
5772
|
+
"type": "error"
|
|
5773
|
+
},
|
|
5774
|
+
{
|
|
5775
|
+
"inputs": [],
|
|
5776
|
+
"name": "SenderMustBeCToken",
|
|
5777
|
+
"type": "error"
|
|
5778
|
+
},
|
|
5779
|
+
{
|
|
5780
|
+
"inputs": [],
|
|
5781
|
+
"name": "SetInterestRateModelMarketNotFresh",
|
|
5782
|
+
"type": "error"
|
|
5783
|
+
},
|
|
5784
|
+
{
|
|
5785
|
+
"inputs": [],
|
|
5786
|
+
"name": "SetReservesFactorMarketNotFresh",
|
|
5787
|
+
"type": "error"
|
|
5788
|
+
},
|
|
5789
|
+
{
|
|
5790
|
+
"inputs": [],
|
|
5791
|
+
"name": "SupplyCapReached",
|
|
5792
|
+
"type": "error"
|
|
5793
|
+
},
|
|
5794
|
+
{
|
|
5795
|
+
"inputs": [],
|
|
5796
|
+
"name": "TokenInOrAmountInMustBeZero",
|
|
5797
|
+
"type": "error"
|
|
5798
|
+
},
|
|
5799
|
+
{
|
|
5800
|
+
"inputs": [],
|
|
5801
|
+
"name": "TokenTransferInFailed",
|
|
5802
|
+
"type": "error"
|
|
5803
|
+
},
|
|
5804
|
+
{
|
|
5805
|
+
"inputs": [],
|
|
5806
|
+
"name": "TokenTransferOutFailed",
|
|
5807
|
+
"type": "error"
|
|
5808
|
+
},
|
|
5809
|
+
{
|
|
5810
|
+
"inputs": [],
|
|
5811
|
+
"name": "TooMuchRepay",
|
|
5812
|
+
"type": "error"
|
|
5813
|
+
},
|
|
5814
|
+
{
|
|
5815
|
+
"inputs": [],
|
|
5816
|
+
"name": "TransferNotAllowed",
|
|
5817
|
+
"type": "error"
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
"inputs": [],
|
|
5821
|
+
"name": "TransferPaused",
|
|
5822
|
+
"type": "error"
|
|
5823
|
+
},
|
|
5824
|
+
{
|
|
5825
|
+
"inputs": [],
|
|
5826
|
+
"name": "UnderlyingBalanceError",
|
|
5827
|
+
"type": "error"
|
|
5828
|
+
},
|
|
5402
5829
|
{
|
|
5403
5830
|
"inputs": [],
|
|
5404
5831
|
"name": "ZeroAddressNotAllowed",
|