@meterio/sumer-js 0.2.49 → 0.2.51

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 (51) hide show
  1. package/dist/browser/sumer.min.js +6 -6
  2. package/dist/nodejs/abi.js +126 -32
  3. package/dist/nodejs/abi.js.map +1 -1
  4. package/dist/nodejs/constants/berabartio.d.ts +63 -0
  5. package/dist/nodejs/constants/berabartio.js +155 -0
  6. package/dist/nodejs/constants/berabartio.js.map +1 -0
  7. package/dist/nodejs/errorABIs.js +50 -0
  8. package/dist/nodejs/errorABIs.js.map +1 -1
  9. package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +3 -3
  10. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +32 -16
  11. package/dist/nodejs/typechain/contracts/Comptroller/ComptrollerStorage.d.ts +5 -5
  12. package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +6 -5
  13. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +5 -1
  14. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +6 -1
  15. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  16. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +5 -1
  17. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +6 -1
  18. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  19. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +4 -0
  20. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +5 -0
  21. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
  22. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +5 -1
  23. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +6 -1
  24. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  25. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +5 -1
  26. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +6 -1
  27. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
  28. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +11 -7
  29. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +12 -7
  30. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  31. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +11 -5
  32. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +14 -6
  33. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js.map +1 -1
  34. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +39 -14
  35. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +50 -17
  36. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  37. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +5 -1
  38. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +6 -1
  39. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
  40. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  42. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +10 -4
  43. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +13 -5
  44. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
  45. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +5 -1
  46. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +6 -1
  47. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
  48. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +5 -1
  49. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +6 -1
  50. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
  51. package/package.json +1 -1
@@ -428,6 +428,11 @@ exports.abi = {
428
428
  "name": "InsufficientShortfall",
429
429
  "type": "error"
430
430
  },
431
+ {
432
+ "inputs": [],
433
+ "name": "InterMintNotAllowed",
434
+ "type": "error"
435
+ },
431
436
  {
432
437
  "inputs": [],
433
438
  "name": "InvalidAddress",
@@ -1818,6 +1823,11 @@ exports.abi = {
1818
1823
  "name": "InsufficientShortfall",
1819
1824
  "type": "error"
1820
1825
  },
1826
+ {
1827
+ "inputs": [],
1828
+ "name": "InterMintNotAllowed",
1829
+ "type": "error"
1830
+ },
1821
1831
  {
1822
1832
  "inputs": [],
1823
1833
  "name": "InvalidAddress",
@@ -3326,6 +3336,11 @@ exports.abi = {
3326
3336
  "name": "InsufficientShortfall",
3327
3337
  "type": "error"
3328
3338
  },
3339
+ {
3340
+ "inputs": [],
3341
+ "name": "InterMintNotAllowed",
3342
+ "type": "error"
3343
+ },
3329
3344
  {
3330
3345
  "inputs": [],
3331
3346
  "name": "InvalidAddress",
@@ -5403,6 +5418,11 @@ exports.abi = {
5403
5418
  "name": "InsufficientShortfall",
5404
5419
  "type": "error"
5405
5420
  },
5421
+ {
5422
+ "inputs": [],
5423
+ "name": "InterMintNotAllowed",
5424
+ "type": "error"
5425
+ },
5406
5426
  {
5407
5427
  "inputs": [],
5408
5428
  "name": "InvalidAddress",
@@ -7351,6 +7371,11 @@ exports.abi = {
7351
7371
  "name": "InsufficientShortfall",
7352
7372
  "type": "error"
7353
7373
  },
7374
+ {
7375
+ "inputs": [],
7376
+ "name": "InterMintNotAllowed",
7377
+ "type": "error"
7378
+ },
7354
7379
  {
7355
7380
  "inputs": [],
7356
7381
  "name": "InvalidAddress",
@@ -9885,6 +9910,11 @@ exports.abi = {
9885
9910
  "name": "InsufficientShortfall",
9886
9911
  "type": "error"
9887
9912
  },
9913
+ {
9914
+ "inputs": [],
9915
+ "name": "InterMintNotAllowed",
9916
+ "type": "error"
9917
+ },
9888
9918
  {
9889
9919
  "inputs": [],
9890
9920
  "name": "InvalidAddress",
@@ -12035,6 +12065,11 @@ exports.abi = {
12035
12065
  "name": "InsufficientShortfall",
12036
12066
  "type": "error"
12037
12067
  },
12068
+ {
12069
+ "inputs": [],
12070
+ "name": "InterMintNotAllowed",
12071
+ "type": "error"
12072
+ },
12038
12073
  {
12039
12074
  "inputs": [],
12040
12075
  "name": "InvalidAddress",
@@ -13460,6 +13495,11 @@ exports.abi = {
13460
13495
  "name": "InsufficientShortfall",
13461
13496
  "type": "error"
13462
13497
  },
13498
+ {
13499
+ "inputs": [],
13500
+ "name": "InterMintNotAllowed",
13501
+ "type": "error"
13502
+ },
13463
13503
  {
13464
13504
  "inputs": [],
13465
13505
  "name": "InvalidAddress",
@@ -14045,9 +14085,9 @@ exports.abi = {
14045
14085
  "type": "uint256"
14046
14086
  },
14047
14087
  {
14048
- "internalType": "uint256",
14049
- "name": "interMintRate",
14050
- "type": "uint256"
14088
+ "internalType": "bool",
14089
+ "name": "interMintAllowed",
14090
+ "type": "bool"
14051
14091
  }
14052
14092
  ],
14053
14093
  "internalType": "struct CompoundLens.CTokenMetadata",
@@ -14196,9 +14236,9 @@ exports.abi = {
14196
14236
  "type": "uint256"
14197
14237
  },
14198
14238
  {
14199
- "internalType": "uint256",
14200
- "name": "interMintRate",
14201
- "type": "uint256"
14239
+ "internalType": "bool",
14240
+ "name": "interMintAllowed",
14241
+ "type": "bool"
14202
14242
  }
14203
14243
  ],
14204
14244
  "internalType": "struct CompoundLens.CTokenMetadata[]",
@@ -14947,6 +14987,11 @@ exports.abi = {
14947
14987
  "name": "InsufficientShortfall",
14948
14988
  "type": "error"
14949
14989
  },
14990
+ {
14991
+ "inputs": [],
14992
+ "name": "InterMintNotAllowed",
14993
+ "type": "error"
14994
+ },
14950
14995
  {
14951
14996
  "inputs": [],
14952
14997
  "name": "InvalidAddress",
@@ -15364,12 +15409,6 @@ exports.abi = {
15364
15409
  "internalType": "uint16",
15365
15410
  "name": "interSuRatePercent",
15366
15411
  "type": "uint16"
15367
- },
15368
- {
15369
- "indexed": false,
15370
- "internalType": "uint16",
15371
- "name": "interMintRatePercent",
15372
- "type": "uint16"
15373
15412
  }
15374
15413
  ],
15375
15414
  "name": "NewAssetGroup",
@@ -15677,6 +15716,24 @@ exports.abi = {
15677
15716
  "stateMutability": "view",
15678
15717
  "type": "function"
15679
15718
  },
15719
+ {
15720
+ "inputs": [
15721
+ {
15722
+ "internalType": "address",
15723
+ "name": "cToken",
15724
+ "type": "address"
15725
+ },
15726
+ {
15727
+ "internalType": "uint8",
15728
+ "name": "newGroupId",
15729
+ "type": "uint8"
15730
+ }
15731
+ ],
15732
+ "name": "_changeGroupIdForAsset",
15733
+ "outputs": [],
15734
+ "stateMutability": "nonpayable",
15735
+ "type": "function"
15736
+ },
15680
15737
  {
15681
15738
  "inputs": [
15682
15739
  {
@@ -15786,6 +15843,19 @@ exports.abi = {
15786
15843
  "stateMutability": "nonpayable",
15787
15844
  "type": "function"
15788
15845
  },
15846
+ {
15847
+ "inputs": [
15848
+ {
15849
+ "internalType": "uint8",
15850
+ "name": "largestGroupId",
15851
+ "type": "uint8"
15852
+ }
15853
+ ],
15854
+ "name": "_setLargestGroupId",
15855
+ "outputs": [],
15856
+ "stateMutability": "nonpayable",
15857
+ "type": "function"
15858
+ },
15789
15859
  {
15790
15860
  "inputs": [
15791
15861
  {
@@ -15965,11 +16035,6 @@ exports.abi = {
15965
16035
  "internalType": "uint16",
15966
16036
  "name": "interSuRatePercent",
15967
16037
  "type": "uint16"
15968
- },
15969
- {
15970
- "internalType": "uint16",
15971
- "name": "interMintRatePercent",
15972
- "type": "uint16"
15973
16038
  }
15974
16039
  ],
15975
16040
  "stateMutability": "view",
@@ -16290,6 +16355,19 @@ exports.abi = {
16290
16355
  "stateMutability": "nonpayable",
16291
16356
  "type": "function"
16292
16357
  },
16358
+ {
16359
+ "inputs": [],
16360
+ "name": "interMintAllowed",
16361
+ "outputs": [
16362
+ {
16363
+ "internalType": "bool",
16364
+ "name": "",
16365
+ "type": "bool"
16366
+ }
16367
+ ],
16368
+ "stateMutability": "view",
16369
+ "type": "function"
16370
+ },
16293
16371
  {
16294
16372
  "inputs": [],
16295
16373
  "name": "isComptroller",
@@ -16696,11 +16774,6 @@ exports.abi = {
16696
16774
  "internalType": "uint16",
16697
16775
  "name": "interSuRatePercent",
16698
16776
  "type": "uint16"
16699
- },
16700
- {
16701
- "internalType": "uint16",
16702
- "name": "interMintRatePercent",
16703
- "type": "uint16"
16704
16777
  }
16705
16778
  ],
16706
16779
  "name": "setAssetGroup",
@@ -16878,11 +16951,6 @@ exports.abi = {
16878
16951
  "internalType": "uint16",
16879
16952
  "name": "interSuRatePercent",
16880
16953
  "type": "uint16"
16881
- },
16882
- {
16883
- "internalType": "uint16",
16884
- "name": "interMintRatePercent",
16885
- "type": "uint16"
16886
16954
  }
16887
16955
  ],
16888
16956
  "stateMutability": "view",
@@ -16947,6 +17015,19 @@ exports.abi = {
16947
17015
  "stateMutability": "view",
16948
17016
  "type": "function"
16949
17017
  },
17018
+ {
17019
+ "inputs": [],
17020
+ "name": "interMintAllowed",
17021
+ "outputs": [
17022
+ {
17023
+ "internalType": "bool",
17024
+ "name": "",
17025
+ "type": "bool"
17026
+ }
17027
+ ],
17028
+ "stateMutability": "view",
17029
+ "type": "function"
17030
+ },
16950
17031
  {
16951
17032
  "inputs": [],
16952
17033
  "name": "isComptroller",
@@ -17247,6 +17328,11 @@ exports.abi = {
17247
17328
  "name": "InsufficientShortfall",
17248
17329
  "type": "error"
17249
17330
  },
17331
+ {
17332
+ "inputs": [],
17333
+ "name": "InterMintNotAllowed",
17334
+ "type": "error"
17335
+ },
17250
17336
  {
17251
17337
  "inputs": [],
17252
17338
  "name": "InvalidAddress",
@@ -22646,11 +22732,6 @@ exports.abi = {
22646
22732
  "internalType": "uint16",
22647
22733
  "name": "interSuRatePercent",
22648
22734
  "type": "uint16"
22649
- },
22650
- {
22651
- "internalType": "uint16",
22652
- "name": "interMintRatePercent",
22653
- "type": "uint16"
22654
22735
  }
22655
22736
  ],
22656
22737
  "internalType": "struct CompactAssetGroup",
@@ -22890,6 +22971,19 @@ exports.abi = {
22890
22971
  "stateMutability": "view",
22891
22972
  "type": "function"
22892
22973
  },
22974
+ {
22975
+ "inputs": [],
22976
+ "name": "interMintAllowed",
22977
+ "outputs": [
22978
+ {
22979
+ "internalType": "bool",
22980
+ "name": "",
22981
+ "type": "bool"
22982
+ }
22983
+ ],
22984
+ "stateMutability": "view",
22985
+ "type": "function"
22986
+ },
22893
22987
  {
22894
22988
  "inputs": [],
22895
22989
  "name": "isComptroller",