@meterio/sumer-js 0.1.28 → 0.1.30
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.js +263 -43
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/comptroller.d.ts +5 -1
- package/dist/nodejs/comptroller.js +8 -16
- package/dist/nodejs/comptroller.js.map +1 -1
- package/dist/nodejs/errors.d.ts +4 -0
- package/dist/nodejs/errors.js +4 -0
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +4 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +1 -34
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +34 -1
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +40 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +49 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +40 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +49 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +43 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +39 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +48 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +40 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +49 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +5 -36
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +6 -44
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.d.ts +10 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js +13 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +43 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js.map +1 -1
- package/package.json +1 -1
package/dist/nodejs/abi.js
CHANGED
|
@@ -542,6 +542,11 @@ exports.abi = {
|
|
|
542
542
|
"name": "RedeemTransferOutNotPossible",
|
|
543
543
|
"type": "error"
|
|
544
544
|
},
|
|
545
|
+
{
|
|
546
|
+
"inputs": [],
|
|
547
|
+
"name": "RedemptionSeizeTooMuch",
|
|
548
|
+
"type": "error"
|
|
549
|
+
},
|
|
545
550
|
{
|
|
546
551
|
"inputs": [],
|
|
547
552
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -1510,6 +1515,19 @@ exports.abi = {
|
|
|
1510
1515
|
}
|
|
1511
1516
|
],
|
|
1512
1517
|
"ICToken": [
|
|
1518
|
+
{
|
|
1519
|
+
"inputs": [],
|
|
1520
|
+
"name": "accrueInterest",
|
|
1521
|
+
"outputs": [
|
|
1522
|
+
{
|
|
1523
|
+
"internalType": "uint256",
|
|
1524
|
+
"name": "",
|
|
1525
|
+
"type": "uint256"
|
|
1526
|
+
}
|
|
1527
|
+
],
|
|
1528
|
+
"stateMutability": "nonpayable",
|
|
1529
|
+
"type": "function"
|
|
1530
|
+
},
|
|
1513
1531
|
{
|
|
1514
1532
|
"inputs": [
|
|
1515
1533
|
{
|
|
@@ -3040,6 +3058,11 @@ exports.abi = {
|
|
|
3040
3058
|
"name": "RedeemTransferOutNotPossible",
|
|
3041
3059
|
"type": "error"
|
|
3042
3060
|
},
|
|
3061
|
+
{
|
|
3062
|
+
"inputs": [],
|
|
3063
|
+
"name": "RedemptionSeizeTooMuch",
|
|
3064
|
+
"type": "error"
|
|
3065
|
+
},
|
|
3043
3066
|
{
|
|
3044
3067
|
"inputs": [],
|
|
3045
3068
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -3421,6 +3444,49 @@ exports.abi = {
|
|
|
3421
3444
|
"name": "Redeem",
|
|
3422
3445
|
"type": "event"
|
|
3423
3446
|
},
|
|
3447
|
+
{
|
|
3448
|
+
"anonymous": false,
|
|
3449
|
+
"inputs": [
|
|
3450
|
+
{
|
|
3451
|
+
"indexed": true,
|
|
3452
|
+
"internalType": "address",
|
|
3453
|
+
"name": "redeemer",
|
|
3454
|
+
"type": "address"
|
|
3455
|
+
},
|
|
3456
|
+
{
|
|
3457
|
+
"indexed": true,
|
|
3458
|
+
"internalType": "address",
|
|
3459
|
+
"name": "provider",
|
|
3460
|
+
"type": "address"
|
|
3461
|
+
},
|
|
3462
|
+
{
|
|
3463
|
+
"indexed": false,
|
|
3464
|
+
"internalType": "uint256",
|
|
3465
|
+
"name": "repayAmount",
|
|
3466
|
+
"type": "uint256"
|
|
3467
|
+
},
|
|
3468
|
+
{
|
|
3469
|
+
"indexed": false,
|
|
3470
|
+
"internalType": "address",
|
|
3471
|
+
"name": "seizeToken",
|
|
3472
|
+
"type": "address"
|
|
3473
|
+
},
|
|
3474
|
+
{
|
|
3475
|
+
"indexed": false,
|
|
3476
|
+
"internalType": "uint256",
|
|
3477
|
+
"name": "seizeAmount",
|
|
3478
|
+
"type": "uint256"
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
"indexed": false,
|
|
3482
|
+
"internalType": "uint256",
|
|
3483
|
+
"name": "redemptionRateMantissa",
|
|
3484
|
+
"type": "uint256"
|
|
3485
|
+
}
|
|
3486
|
+
],
|
|
3487
|
+
"name": "RedeemFaceValue",
|
|
3488
|
+
"type": "event"
|
|
3489
|
+
},
|
|
3424
3490
|
{
|
|
3425
3491
|
"anonymous": false,
|
|
3426
3492
|
"inputs": [
|
|
@@ -4845,6 +4911,11 @@ exports.abi = {
|
|
|
4845
4911
|
"name": "RedeemTransferOutNotPossible",
|
|
4846
4912
|
"type": "error"
|
|
4847
4913
|
},
|
|
4914
|
+
{
|
|
4915
|
+
"inputs": [],
|
|
4916
|
+
"name": "RedemptionSeizeTooMuch",
|
|
4917
|
+
"type": "error"
|
|
4918
|
+
},
|
|
4848
4919
|
{
|
|
4849
4920
|
"inputs": [],
|
|
4850
4921
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -5226,6 +5297,49 @@ exports.abi = {
|
|
|
5226
5297
|
"name": "Redeem",
|
|
5227
5298
|
"type": "event"
|
|
5228
5299
|
},
|
|
5300
|
+
{
|
|
5301
|
+
"anonymous": false,
|
|
5302
|
+
"inputs": [
|
|
5303
|
+
{
|
|
5304
|
+
"indexed": true,
|
|
5305
|
+
"internalType": "address",
|
|
5306
|
+
"name": "redeemer",
|
|
5307
|
+
"type": "address"
|
|
5308
|
+
},
|
|
5309
|
+
{
|
|
5310
|
+
"indexed": true,
|
|
5311
|
+
"internalType": "address",
|
|
5312
|
+
"name": "provider",
|
|
5313
|
+
"type": "address"
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
"indexed": false,
|
|
5317
|
+
"internalType": "uint256",
|
|
5318
|
+
"name": "repayAmount",
|
|
5319
|
+
"type": "uint256"
|
|
5320
|
+
},
|
|
5321
|
+
{
|
|
5322
|
+
"indexed": false,
|
|
5323
|
+
"internalType": "address",
|
|
5324
|
+
"name": "seizeToken",
|
|
5325
|
+
"type": "address"
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
"indexed": false,
|
|
5329
|
+
"internalType": "uint256",
|
|
5330
|
+
"name": "seizeAmount",
|
|
5331
|
+
"type": "uint256"
|
|
5332
|
+
},
|
|
5333
|
+
{
|
|
5334
|
+
"indexed": false,
|
|
5335
|
+
"internalType": "uint256",
|
|
5336
|
+
"name": "redemptionRateMantissa",
|
|
5337
|
+
"type": "uint256"
|
|
5338
|
+
}
|
|
5339
|
+
],
|
|
5340
|
+
"name": "RedeemFaceValue",
|
|
5341
|
+
"type": "event"
|
|
5342
|
+
},
|
|
5229
5343
|
{
|
|
5230
5344
|
"anonymous": false,
|
|
5231
5345
|
"inputs": [
|
|
@@ -6526,6 +6640,11 @@ exports.abi = {
|
|
|
6526
6640
|
"name": "RedeemTransferOutNotPossible",
|
|
6527
6641
|
"type": "error"
|
|
6528
6642
|
},
|
|
6643
|
+
{
|
|
6644
|
+
"inputs": [],
|
|
6645
|
+
"name": "RedemptionSeizeTooMuch",
|
|
6646
|
+
"type": "error"
|
|
6647
|
+
},
|
|
6529
6648
|
{
|
|
6530
6649
|
"inputs": [],
|
|
6531
6650
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -6894,6 +7013,49 @@ exports.abi = {
|
|
|
6894
7013
|
"name": "Redeem",
|
|
6895
7014
|
"type": "event"
|
|
6896
7015
|
},
|
|
7016
|
+
{
|
|
7017
|
+
"anonymous": false,
|
|
7018
|
+
"inputs": [
|
|
7019
|
+
{
|
|
7020
|
+
"indexed": true,
|
|
7021
|
+
"internalType": "address",
|
|
7022
|
+
"name": "redeemer",
|
|
7023
|
+
"type": "address"
|
|
7024
|
+
},
|
|
7025
|
+
{
|
|
7026
|
+
"indexed": true,
|
|
7027
|
+
"internalType": "address",
|
|
7028
|
+
"name": "provider",
|
|
7029
|
+
"type": "address"
|
|
7030
|
+
},
|
|
7031
|
+
{
|
|
7032
|
+
"indexed": false,
|
|
7033
|
+
"internalType": "uint256",
|
|
7034
|
+
"name": "repayAmount",
|
|
7035
|
+
"type": "uint256"
|
|
7036
|
+
},
|
|
7037
|
+
{
|
|
7038
|
+
"indexed": false,
|
|
7039
|
+
"internalType": "address",
|
|
7040
|
+
"name": "seizeToken",
|
|
7041
|
+
"type": "address"
|
|
7042
|
+
},
|
|
7043
|
+
{
|
|
7044
|
+
"indexed": false,
|
|
7045
|
+
"internalType": "uint256",
|
|
7046
|
+
"name": "seizeAmount",
|
|
7047
|
+
"type": "uint256"
|
|
7048
|
+
},
|
|
7049
|
+
{
|
|
7050
|
+
"indexed": false,
|
|
7051
|
+
"internalType": "uint256",
|
|
7052
|
+
"name": "redemptionRateMantissa",
|
|
7053
|
+
"type": "uint256"
|
|
7054
|
+
}
|
|
7055
|
+
],
|
|
7056
|
+
"name": "RedeemFaceValue",
|
|
7057
|
+
"type": "event"
|
|
7058
|
+
},
|
|
6897
7059
|
{
|
|
6898
7060
|
"anonymous": false,
|
|
6899
7061
|
"inputs": [
|
|
@@ -8084,6 +8246,49 @@ exports.abi = {
|
|
|
8084
8246
|
"name": "Redeem",
|
|
8085
8247
|
"type": "event"
|
|
8086
8248
|
},
|
|
8249
|
+
{
|
|
8250
|
+
"anonymous": false,
|
|
8251
|
+
"inputs": [
|
|
8252
|
+
{
|
|
8253
|
+
"indexed": true,
|
|
8254
|
+
"internalType": "address",
|
|
8255
|
+
"name": "redeemer",
|
|
8256
|
+
"type": "address"
|
|
8257
|
+
},
|
|
8258
|
+
{
|
|
8259
|
+
"indexed": true,
|
|
8260
|
+
"internalType": "address",
|
|
8261
|
+
"name": "provider",
|
|
8262
|
+
"type": "address"
|
|
8263
|
+
},
|
|
8264
|
+
{
|
|
8265
|
+
"indexed": false,
|
|
8266
|
+
"internalType": "uint256",
|
|
8267
|
+
"name": "repayAmount",
|
|
8268
|
+
"type": "uint256"
|
|
8269
|
+
},
|
|
8270
|
+
{
|
|
8271
|
+
"indexed": false,
|
|
8272
|
+
"internalType": "address",
|
|
8273
|
+
"name": "seizeToken",
|
|
8274
|
+
"type": "address"
|
|
8275
|
+
},
|
|
8276
|
+
{
|
|
8277
|
+
"indexed": false,
|
|
8278
|
+
"internalType": "uint256",
|
|
8279
|
+
"name": "seizeAmount",
|
|
8280
|
+
"type": "uint256"
|
|
8281
|
+
},
|
|
8282
|
+
{
|
|
8283
|
+
"indexed": false,
|
|
8284
|
+
"internalType": "uint256",
|
|
8285
|
+
"name": "redemptionRateMantissa",
|
|
8286
|
+
"type": "uint256"
|
|
8287
|
+
}
|
|
8288
|
+
],
|
|
8289
|
+
"name": "RedeemFaceValue",
|
|
8290
|
+
"type": "event"
|
|
8291
|
+
},
|
|
8087
8292
|
{
|
|
8088
8293
|
"anonymous": false,
|
|
8089
8294
|
"inputs": [
|
|
@@ -9134,6 +9339,11 @@ exports.abi = {
|
|
|
9134
9339
|
"name": "RedeemTransferOutNotPossible",
|
|
9135
9340
|
"type": "error"
|
|
9136
9341
|
},
|
|
9342
|
+
{
|
|
9343
|
+
"inputs": [],
|
|
9344
|
+
"name": "RedemptionSeizeTooMuch",
|
|
9345
|
+
"type": "error"
|
|
9346
|
+
},
|
|
9137
9347
|
{
|
|
9138
9348
|
"inputs": [],
|
|
9139
9349
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -9515,6 +9725,49 @@ exports.abi = {
|
|
|
9515
9725
|
"name": "Redeem",
|
|
9516
9726
|
"type": "event"
|
|
9517
9727
|
},
|
|
9728
|
+
{
|
|
9729
|
+
"anonymous": false,
|
|
9730
|
+
"inputs": [
|
|
9731
|
+
{
|
|
9732
|
+
"indexed": true,
|
|
9733
|
+
"internalType": "address",
|
|
9734
|
+
"name": "redeemer",
|
|
9735
|
+
"type": "address"
|
|
9736
|
+
},
|
|
9737
|
+
{
|
|
9738
|
+
"indexed": true,
|
|
9739
|
+
"internalType": "address",
|
|
9740
|
+
"name": "provider",
|
|
9741
|
+
"type": "address"
|
|
9742
|
+
},
|
|
9743
|
+
{
|
|
9744
|
+
"indexed": false,
|
|
9745
|
+
"internalType": "uint256",
|
|
9746
|
+
"name": "repayAmount",
|
|
9747
|
+
"type": "uint256"
|
|
9748
|
+
},
|
|
9749
|
+
{
|
|
9750
|
+
"indexed": false,
|
|
9751
|
+
"internalType": "address",
|
|
9752
|
+
"name": "seizeToken",
|
|
9753
|
+
"type": "address"
|
|
9754
|
+
},
|
|
9755
|
+
{
|
|
9756
|
+
"indexed": false,
|
|
9757
|
+
"internalType": "uint256",
|
|
9758
|
+
"name": "seizeAmount",
|
|
9759
|
+
"type": "uint256"
|
|
9760
|
+
},
|
|
9761
|
+
{
|
|
9762
|
+
"indexed": false,
|
|
9763
|
+
"internalType": "uint256",
|
|
9764
|
+
"name": "redemptionRateMantissa",
|
|
9765
|
+
"type": "uint256"
|
|
9766
|
+
}
|
|
9767
|
+
],
|
|
9768
|
+
"name": "RedeemFaceValue",
|
|
9769
|
+
"type": "event"
|
|
9770
|
+
},
|
|
9518
9771
|
{
|
|
9519
9772
|
"anonymous": false,
|
|
9520
9773
|
"inputs": [
|
|
@@ -12337,6 +12590,11 @@ exports.abi = {
|
|
|
12337
12590
|
"name": "RedeemTransferOutNotPossible",
|
|
12338
12591
|
"type": "error"
|
|
12339
12592
|
},
|
|
12593
|
+
{
|
|
12594
|
+
"inputs": [],
|
|
12595
|
+
"name": "RedemptionSeizeTooMuch",
|
|
12596
|
+
"type": "error"
|
|
12597
|
+
},
|
|
12340
12598
|
{
|
|
12341
12599
|
"inputs": [],
|
|
12342
12600
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -13633,6 +13891,11 @@ exports.abi = {
|
|
|
13633
13891
|
"name": "RedeemTransferOutNotPossible",
|
|
13634
13892
|
"type": "error"
|
|
13635
13893
|
},
|
|
13894
|
+
{
|
|
13895
|
+
"inputs": [],
|
|
13896
|
+
"name": "RedemptionSeizeTooMuch",
|
|
13897
|
+
"type": "error"
|
|
13898
|
+
},
|
|
13636
13899
|
{
|
|
13637
13900
|
"inputs": [],
|
|
13638
13901
|
"name": "ReduceReservesCashNotAvailable",
|
|
@@ -13995,49 +14258,6 @@ exports.abi = {
|
|
|
13995
14258
|
"name": "NewPriceOracle",
|
|
13996
14259
|
"type": "event"
|
|
13997
14260
|
},
|
|
13998
|
-
{
|
|
13999
|
-
"anonymous": false,
|
|
14000
|
-
"inputs": [
|
|
14001
|
-
{
|
|
14002
|
-
"indexed": false,
|
|
14003
|
-
"internalType": "address",
|
|
14004
|
-
"name": "redeemer",
|
|
14005
|
-
"type": "address"
|
|
14006
|
-
},
|
|
14007
|
-
{
|
|
14008
|
-
"indexed": false,
|
|
14009
|
-
"internalType": "address",
|
|
14010
|
-
"name": "provider",
|
|
14011
|
-
"type": "address"
|
|
14012
|
-
},
|
|
14013
|
-
{
|
|
14014
|
-
"indexed": false,
|
|
14015
|
-
"internalType": "address",
|
|
14016
|
-
"name": "redeemToken",
|
|
14017
|
-
"type": "address"
|
|
14018
|
-
},
|
|
14019
|
-
{
|
|
14020
|
-
"indexed": false,
|
|
14021
|
-
"internalType": "uint256",
|
|
14022
|
-
"name": "redeemAmount",
|
|
14023
|
-
"type": "uint256"
|
|
14024
|
-
},
|
|
14025
|
-
{
|
|
14026
|
-
"indexed": false,
|
|
14027
|
-
"internalType": "address",
|
|
14028
|
-
"name": "seizeToken",
|
|
14029
|
-
"type": "address"
|
|
14030
|
-
},
|
|
14031
|
-
{
|
|
14032
|
-
"indexed": false,
|
|
14033
|
-
"internalType": "uint256",
|
|
14034
|
-
"name": "seizeAmount",
|
|
14035
|
-
"type": "uint256"
|
|
14036
|
-
}
|
|
14037
|
-
],
|
|
14038
|
-
"name": "Redemption",
|
|
14039
|
-
"type": "event"
|
|
14040
|
-
},
|
|
14041
14261
|
{
|
|
14042
14262
|
"anonymous": false,
|
|
14043
14263
|
"inputs": [
|