@meterio/sumer-js 0.2.17 → 0.2.19

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 (45) hide show
  1. package/dist/browser/sumer.min.js +5 -5
  2. package/dist/nodejs/abi.js +360 -50
  3. package/dist/nodejs/abi.js.map +1 -1
  4. package/dist/nodejs/constants/arbitrum.d.ts +3 -0
  5. package/dist/nodejs/constants/arbitrum.js +172 -169
  6. package/dist/nodejs/constants/arbitrum.js.map +1 -1
  7. package/dist/nodejs/constants/basemain.d.ts +1 -0
  8. package/dist/nodejs/constants/basemain.js +2 -1
  9. package/dist/nodejs/constants/basemain.js.map +1 -1
  10. package/dist/nodejs/constants/basetest.d.ts +1 -0
  11. package/dist/nodejs/constants/basetest.js +2 -1
  12. package/dist/nodejs/constants/basetest.js.map +1 -1
  13. package/dist/nodejs/constants/goerli.d.ts +1 -0
  14. package/dist/nodejs/constants/goerli.js +2 -1
  15. package/dist/nodejs/constants/goerli.js.map +1 -1
  16. package/dist/nodejs/constants/hardhat.d.ts +56 -0
  17. package/dist/nodejs/constants/hardhat.js +103 -0
  18. package/dist/nodejs/constants/hardhat.js.map +1 -0
  19. package/dist/nodejs/constants/index.d.ts +1 -0
  20. package/dist/nodejs/constants/index.js +7 -1
  21. package/dist/nodejs/constants/index.js.map +1 -1
  22. package/dist/nodejs/constants/metermain.d.ts +1 -0
  23. package/dist/nodejs/constants/metermain.js +2 -1
  24. package/dist/nodejs/constants/metermain.js.map +1 -1
  25. package/dist/nodejs/constants/metertest.d.ts +1 -0
  26. package/dist/nodejs/constants/metertest.js +2 -1
  27. package/dist/nodejs/constants/metertest.js.map +1 -1
  28. package/dist/nodejs/constants/sepolia.d.ts +1 -0
  29. package/dist/nodejs/constants/sepolia.js +2 -1
  30. package/dist/nodejs/constants/sepolia.js.map +1 -1
  31. package/dist/nodejs/errorABIs.js +360 -50
  32. package/dist/nodejs/errorABIs.js.map +1 -1
  33. package/dist/nodejs/errors.d.ts +5 -1
  34. package/dist/nodejs/errors.js +7 -3
  35. package/dist/nodejs/errors.js.map +1 -1
  36. package/dist/nodejs/index.d.ts +1 -30
  37. package/dist/nodejs/index.js +1 -0
  38. package/dist/nodejs/index.js.map +1 -1
  39. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +29 -5
  40. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +37 -6
  41. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  42. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +29 -5
  43. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +37 -6
  44. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
  45. package/package.json +1 -1
@@ -377,6 +377,42 @@ exports.abi = {
377
377
  "name": "ComptrollerMismatch",
378
378
  "type": "error"
379
379
  },
380
+ {
381
+ "inputs": [],
382
+ "name": "EitherAssetOrDebtMustBeZero",
383
+ "type": "error"
384
+ },
385
+ {
386
+ "inputs": [
387
+ {
388
+ "internalType": "uint8",
389
+ "name": "groupId",
390
+ "type": "uint8"
391
+ },
392
+ {
393
+ "internalType": "uint256",
394
+ "name": "cDepositVal",
395
+ "type": "uint256"
396
+ },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "suDepositVal",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "cBorrowVal",
405
+ "type": "uint256"
406
+ },
407
+ {
408
+ "internalType": "uint256",
409
+ "name": "suBorrowVal",
410
+ "type": "uint256"
411
+ }
412
+ ],
413
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
414
+ "type": "error"
415
+ },
380
416
  {
381
417
  "inputs": [],
382
418
  "name": "ExpiredSignature",
@@ -557,11 +593,6 @@ exports.abi = {
557
593
  "name": "NotSuToken",
558
594
  "type": "error"
559
595
  },
560
- {
561
- "inputs": [],
562
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
563
- "type": "error"
564
- },
565
596
  {
566
597
  "inputs": [],
567
598
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -1673,6 +1704,42 @@ exports.abi = {
1673
1704
  "name": "ComptrollerMismatch",
1674
1705
  "type": "error"
1675
1706
  },
1707
+ {
1708
+ "inputs": [],
1709
+ "name": "EitherAssetOrDebtMustBeZero",
1710
+ "type": "error"
1711
+ },
1712
+ {
1713
+ "inputs": [
1714
+ {
1715
+ "internalType": "uint8",
1716
+ "name": "groupId",
1717
+ "type": "uint8"
1718
+ },
1719
+ {
1720
+ "internalType": "uint256",
1721
+ "name": "cDepositVal",
1722
+ "type": "uint256"
1723
+ },
1724
+ {
1725
+ "internalType": "uint256",
1726
+ "name": "suDepositVal",
1727
+ "type": "uint256"
1728
+ },
1729
+ {
1730
+ "internalType": "uint256",
1731
+ "name": "cBorrowVal",
1732
+ "type": "uint256"
1733
+ },
1734
+ {
1735
+ "internalType": "uint256",
1736
+ "name": "suBorrowVal",
1737
+ "type": "uint256"
1738
+ }
1739
+ ],
1740
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
1741
+ "type": "error"
1742
+ },
1676
1743
  {
1677
1744
  "inputs": [],
1678
1745
  "name": "ExpiredSignature",
@@ -1853,11 +1920,6 @@ exports.abi = {
1853
1920
  "name": "NotSuToken",
1854
1921
  "type": "error"
1855
1922
  },
1856
- {
1857
- "inputs": [],
1858
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
1859
- "type": "error"
1860
- },
1861
1923
  {
1862
1924
  "inputs": [],
1863
1925
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -3139,6 +3201,42 @@ exports.abi = {
3139
3201
  "name": "ComptrollerMismatch",
3140
3202
  "type": "error"
3141
3203
  },
3204
+ {
3205
+ "inputs": [],
3206
+ "name": "EitherAssetOrDebtMustBeZero",
3207
+ "type": "error"
3208
+ },
3209
+ {
3210
+ "inputs": [
3211
+ {
3212
+ "internalType": "uint8",
3213
+ "name": "groupId",
3214
+ "type": "uint8"
3215
+ },
3216
+ {
3217
+ "internalType": "uint256",
3218
+ "name": "cDepositVal",
3219
+ "type": "uint256"
3220
+ },
3221
+ {
3222
+ "internalType": "uint256",
3223
+ "name": "suDepositVal",
3224
+ "type": "uint256"
3225
+ },
3226
+ {
3227
+ "internalType": "uint256",
3228
+ "name": "cBorrowVal",
3229
+ "type": "uint256"
3230
+ },
3231
+ {
3232
+ "internalType": "uint256",
3233
+ "name": "suBorrowVal",
3234
+ "type": "uint256"
3235
+ }
3236
+ ],
3237
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
3238
+ "type": "error"
3239
+ },
3142
3240
  {
3143
3241
  "inputs": [],
3144
3242
  "name": "ExpiredSignature",
@@ -3319,11 +3417,6 @@ exports.abi = {
3319
3417
  "name": "NotSuToken",
3320
3418
  "type": "error"
3321
3419
  },
3322
- {
3323
- "inputs": [],
3324
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
3325
- "type": "error"
3326
- },
3327
3420
  {
3328
3421
  "inputs": [],
3329
3422
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -5133,6 +5226,42 @@ exports.abi = {
5133
5226
  "name": "ComptrollerMismatch",
5134
5227
  "type": "error"
5135
5228
  },
5229
+ {
5230
+ "inputs": [],
5231
+ "name": "EitherAssetOrDebtMustBeZero",
5232
+ "type": "error"
5233
+ },
5234
+ {
5235
+ "inputs": [
5236
+ {
5237
+ "internalType": "uint8",
5238
+ "name": "groupId",
5239
+ "type": "uint8"
5240
+ },
5241
+ {
5242
+ "internalType": "uint256",
5243
+ "name": "cDepositVal",
5244
+ "type": "uint256"
5245
+ },
5246
+ {
5247
+ "internalType": "uint256",
5248
+ "name": "suDepositVal",
5249
+ "type": "uint256"
5250
+ },
5251
+ {
5252
+ "internalType": "uint256",
5253
+ "name": "cBorrowVal",
5254
+ "type": "uint256"
5255
+ },
5256
+ {
5257
+ "internalType": "uint256",
5258
+ "name": "suBorrowVal",
5259
+ "type": "uint256"
5260
+ }
5261
+ ],
5262
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
5263
+ "type": "error"
5264
+ },
5136
5265
  {
5137
5266
  "inputs": [],
5138
5267
  "name": "ExpiredSignature",
@@ -5313,11 +5442,6 @@ exports.abi = {
5313
5442
  "name": "NotSuToken",
5314
5443
  "type": "error"
5315
5444
  },
5316
- {
5317
- "inputs": [],
5318
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
5319
- "type": "error"
5320
- },
5321
5445
  {
5322
5446
  "inputs": [],
5323
5447
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -6998,6 +7122,42 @@ exports.abi = {
6998
7122
  "name": "ComptrollerMismatch",
6999
7123
  "type": "error"
7000
7124
  },
7125
+ {
7126
+ "inputs": [],
7127
+ "name": "EitherAssetOrDebtMustBeZero",
7128
+ "type": "error"
7129
+ },
7130
+ {
7131
+ "inputs": [
7132
+ {
7133
+ "internalType": "uint8",
7134
+ "name": "groupId",
7135
+ "type": "uint8"
7136
+ },
7137
+ {
7138
+ "internalType": "uint256",
7139
+ "name": "cDepositVal",
7140
+ "type": "uint256"
7141
+ },
7142
+ {
7143
+ "internalType": "uint256",
7144
+ "name": "suDepositVal",
7145
+ "type": "uint256"
7146
+ },
7147
+ {
7148
+ "internalType": "uint256",
7149
+ "name": "cBorrowVal",
7150
+ "type": "uint256"
7151
+ },
7152
+ {
7153
+ "internalType": "uint256",
7154
+ "name": "suBorrowVal",
7155
+ "type": "uint256"
7156
+ }
7157
+ ],
7158
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
7159
+ "type": "error"
7160
+ },
7001
7161
  {
7002
7162
  "inputs": [],
7003
7163
  "name": "ExpiredSignature",
@@ -7178,11 +7338,6 @@ exports.abi = {
7178
7338
  "name": "NotSuToken",
7179
7339
  "type": "error"
7180
7340
  },
7181
- {
7182
- "inputs": [],
7183
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
7184
- "type": "error"
7185
- },
7186
7341
  {
7187
7342
  "inputs": [],
7188
7343
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -9848,6 +10003,42 @@ exports.abi = {
9848
10003
  "name": "ComptrollerMismatch",
9849
10004
  "type": "error"
9850
10005
  },
10006
+ {
10007
+ "inputs": [],
10008
+ "name": "EitherAssetOrDebtMustBeZero",
10009
+ "type": "error"
10010
+ },
10011
+ {
10012
+ "inputs": [
10013
+ {
10014
+ "internalType": "uint8",
10015
+ "name": "groupId",
10016
+ "type": "uint8"
10017
+ },
10018
+ {
10019
+ "internalType": "uint256",
10020
+ "name": "cDepositVal",
10021
+ "type": "uint256"
10022
+ },
10023
+ {
10024
+ "internalType": "uint256",
10025
+ "name": "suDepositVal",
10026
+ "type": "uint256"
10027
+ },
10028
+ {
10029
+ "internalType": "uint256",
10030
+ "name": "cBorrowVal",
10031
+ "type": "uint256"
10032
+ },
10033
+ {
10034
+ "internalType": "uint256",
10035
+ "name": "suBorrowVal",
10036
+ "type": "uint256"
10037
+ }
10038
+ ],
10039
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
10040
+ "type": "error"
10041
+ },
9851
10042
  {
9852
10043
  "inputs": [],
9853
10044
  "name": "ExpiredSignature",
@@ -10028,11 +10219,6 @@ exports.abi = {
10028
10219
  "name": "NotSuToken",
10029
10220
  "type": "error"
10030
10221
  },
10031
- {
10032
- "inputs": [],
10033
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
10034
- "type": "error"
10035
- },
10036
10222
  {
10037
10223
  "inputs": [],
10038
10224
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -11915,6 +12101,42 @@ exports.abi = {
11915
12101
  "name": "ComptrollerMismatch",
11916
12102
  "type": "error"
11917
12103
  },
12104
+ {
12105
+ "inputs": [],
12106
+ "name": "EitherAssetOrDebtMustBeZero",
12107
+ "type": "error"
12108
+ },
12109
+ {
12110
+ "inputs": [
12111
+ {
12112
+ "internalType": "uint8",
12113
+ "name": "groupId",
12114
+ "type": "uint8"
12115
+ },
12116
+ {
12117
+ "internalType": "uint256",
12118
+ "name": "cDepositVal",
12119
+ "type": "uint256"
12120
+ },
12121
+ {
12122
+ "internalType": "uint256",
12123
+ "name": "suDepositVal",
12124
+ "type": "uint256"
12125
+ },
12126
+ {
12127
+ "internalType": "uint256",
12128
+ "name": "cBorrowVal",
12129
+ "type": "uint256"
12130
+ },
12131
+ {
12132
+ "internalType": "uint256",
12133
+ "name": "suBorrowVal",
12134
+ "type": "uint256"
12135
+ }
12136
+ ],
12137
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
12138
+ "type": "error"
12139
+ },
11918
12140
  {
11919
12141
  "inputs": [],
11920
12142
  "name": "ExpiredSignature",
@@ -12095,11 +12317,6 @@ exports.abi = {
12095
12317
  "name": "NotSuToken",
12096
12318
  "type": "error"
12097
12319
  },
12098
- {
12099
- "inputs": [],
12100
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
12101
- "type": "error"
12102
- },
12103
12320
  {
12104
12321
  "inputs": [],
12105
12322
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -13651,6 +13868,42 @@ exports.abi = {
13651
13868
  "name": "ComptrollerMismatch",
13652
13869
  "type": "error"
13653
13870
  },
13871
+ {
13872
+ "inputs": [],
13873
+ "name": "EitherAssetOrDebtMustBeZero",
13874
+ "type": "error"
13875
+ },
13876
+ {
13877
+ "inputs": [
13878
+ {
13879
+ "internalType": "uint8",
13880
+ "name": "groupId",
13881
+ "type": "uint8"
13882
+ },
13883
+ {
13884
+ "internalType": "uint256",
13885
+ "name": "cDepositVal",
13886
+ "type": "uint256"
13887
+ },
13888
+ {
13889
+ "internalType": "uint256",
13890
+ "name": "suDepositVal",
13891
+ "type": "uint256"
13892
+ },
13893
+ {
13894
+ "internalType": "uint256",
13895
+ "name": "cBorrowVal",
13896
+ "type": "uint256"
13897
+ },
13898
+ {
13899
+ "internalType": "uint256",
13900
+ "name": "suBorrowVal",
13901
+ "type": "uint256"
13902
+ }
13903
+ ],
13904
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
13905
+ "type": "error"
13906
+ },
13654
13907
  {
13655
13908
  "inputs": [],
13656
13909
  "name": "ExpiredSignature",
@@ -13831,11 +14084,6 @@ exports.abi = {
13831
14084
  "name": "NotSuToken",
13832
14085
  "type": "error"
13833
14086
  },
13834
- {
13835
- "inputs": [],
13836
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
13837
- "type": "error"
13838
- },
13839
14087
  {
13840
14088
  "inputs": [],
13841
14089
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -15052,6 +15300,42 @@ exports.abi = {
15052
15300
  "name": "ComptrollerMismatch",
15053
15301
  "type": "error"
15054
15302
  },
15303
+ {
15304
+ "inputs": [],
15305
+ "name": "EitherAssetOrDebtMustBeZero",
15306
+ "type": "error"
15307
+ },
15308
+ {
15309
+ "inputs": [
15310
+ {
15311
+ "internalType": "uint8",
15312
+ "name": "groupId",
15313
+ "type": "uint8"
15314
+ },
15315
+ {
15316
+ "internalType": "uint256",
15317
+ "name": "cDepositVal",
15318
+ "type": "uint256"
15319
+ },
15320
+ {
15321
+ "internalType": "uint256",
15322
+ "name": "suDepositVal",
15323
+ "type": "uint256"
15324
+ },
15325
+ {
15326
+ "internalType": "uint256",
15327
+ "name": "cBorrowVal",
15328
+ "type": "uint256"
15329
+ },
15330
+ {
15331
+ "internalType": "uint256",
15332
+ "name": "suBorrowVal",
15333
+ "type": "uint256"
15334
+ }
15335
+ ],
15336
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
15337
+ "type": "error"
15338
+ },
15055
15339
  {
15056
15340
  "inputs": [],
15057
15341
  "name": "ExpiredSignature",
@@ -15232,11 +15516,6 @@ exports.abi = {
15232
15516
  "name": "NotSuToken",
15233
15517
  "type": "error"
15234
15518
  },
15235
- {
15236
- "inputs": [],
15237
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
15238
- "type": "error"
15239
- },
15240
15519
  {
15241
15520
  "inputs": [],
15242
15521
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -18425,6 +18704,42 @@ exports.abi = {
18425
18704
  "name": "ComptrollerMismatch",
18426
18705
  "type": "error"
18427
18706
  },
18707
+ {
18708
+ "inputs": [],
18709
+ "name": "EitherAssetOrDebtMustBeZero",
18710
+ "type": "error"
18711
+ },
18712
+ {
18713
+ "inputs": [
18714
+ {
18715
+ "internalType": "uint8",
18716
+ "name": "groupId",
18717
+ "type": "uint8"
18718
+ },
18719
+ {
18720
+ "internalType": "uint256",
18721
+ "name": "cDepositVal",
18722
+ "type": "uint256"
18723
+ },
18724
+ {
18725
+ "internalType": "uint256",
18726
+ "name": "suDepositVal",
18727
+ "type": "uint256"
18728
+ },
18729
+ {
18730
+ "internalType": "uint256",
18731
+ "name": "cBorrowVal",
18732
+ "type": "uint256"
18733
+ },
18734
+ {
18735
+ "internalType": "uint256",
18736
+ "name": "suBorrowVal",
18737
+ "type": "uint256"
18738
+ }
18739
+ ],
18740
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
18741
+ "type": "error"
18742
+ },
18428
18743
  {
18429
18744
  "inputs": [],
18430
18745
  "name": "ExpiredSignature",
@@ -18605,11 +18920,6 @@ exports.abi = {
18605
18920
  "name": "NotSuToken",
18606
18921
  "type": "error"
18607
18922
  },
18608
- {
18609
- "inputs": [],
18610
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
18611
- "type": "error"
18612
- },
18613
18923
  {
18614
18924
  "inputs": [],
18615
18925
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",