@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
@@ -63,6 +63,42 @@ exports.errorABIs = [
63
63
  "name": "ComptrollerMismatch",
64
64
  "type": "error"
65
65
  },
66
+ {
67
+ "inputs": [],
68
+ "name": "EitherAssetOrDebtMustBeZero",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "uint8",
75
+ "name": "groupId",
76
+ "type": "uint8"
77
+ },
78
+ {
79
+ "internalType": "uint256",
80
+ "name": "cDepositVal",
81
+ "type": "uint256"
82
+ },
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "suDepositVal",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "cBorrowVal",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "suBorrowVal",
96
+ "type": "uint256"
97
+ }
98
+ ],
99
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
100
+ "type": "error"
101
+ },
66
102
  {
67
103
  "inputs": [],
68
104
  "name": "ExpiredSignature",
@@ -243,11 +279,6 @@ exports.errorABIs = [
243
279
  "name": "NotSuToken",
244
280
  "type": "error"
245
281
  },
246
- {
247
- "inputs": [],
248
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
249
- "type": "error"
250
- },
251
282
  {
252
283
  "inputs": [],
253
284
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -485,6 +516,42 @@ exports.errorABIs = [
485
516
  "name": "ComptrollerMismatch",
486
517
  "type": "error"
487
518
  },
519
+ {
520
+ "inputs": [],
521
+ "name": "EitherAssetOrDebtMustBeZero",
522
+ "type": "error"
523
+ },
524
+ {
525
+ "inputs": [
526
+ {
527
+ "internalType": "uint8",
528
+ "name": "groupId",
529
+ "type": "uint8"
530
+ },
531
+ {
532
+ "internalType": "uint256",
533
+ "name": "cDepositVal",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "internalType": "uint256",
538
+ "name": "suDepositVal",
539
+ "type": "uint256"
540
+ },
541
+ {
542
+ "internalType": "uint256",
543
+ "name": "cBorrowVal",
544
+ "type": "uint256"
545
+ },
546
+ {
547
+ "internalType": "uint256",
548
+ "name": "suBorrowVal",
549
+ "type": "uint256"
550
+ }
551
+ ],
552
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
553
+ "type": "error"
554
+ },
488
555
  {
489
556
  "inputs": [],
490
557
  "name": "ExpiredSignature",
@@ -665,11 +732,6 @@ exports.errorABIs = [
665
732
  "name": "NotSuToken",
666
733
  "type": "error"
667
734
  },
668
- {
669
- "inputs": [],
670
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
671
- "type": "error"
672
- },
673
735
  {
674
736
  "inputs": [],
675
737
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -912,6 +974,42 @@ exports.errorABIs = [
912
974
  "name": "ComptrollerMismatch",
913
975
  "type": "error"
914
976
  },
977
+ {
978
+ "inputs": [],
979
+ "name": "EitherAssetOrDebtMustBeZero",
980
+ "type": "error"
981
+ },
982
+ {
983
+ "inputs": [
984
+ {
985
+ "internalType": "uint8",
986
+ "name": "groupId",
987
+ "type": "uint8"
988
+ },
989
+ {
990
+ "internalType": "uint256",
991
+ "name": "cDepositVal",
992
+ "type": "uint256"
993
+ },
994
+ {
995
+ "internalType": "uint256",
996
+ "name": "suDepositVal",
997
+ "type": "uint256"
998
+ },
999
+ {
1000
+ "internalType": "uint256",
1001
+ "name": "cBorrowVal",
1002
+ "type": "uint256"
1003
+ },
1004
+ {
1005
+ "internalType": "uint256",
1006
+ "name": "suBorrowVal",
1007
+ "type": "uint256"
1008
+ }
1009
+ ],
1010
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
1011
+ "type": "error"
1012
+ },
915
1013
  {
916
1014
  "inputs": [],
917
1015
  "name": "ExpiredSignature",
@@ -1092,11 +1190,6 @@ exports.errorABIs = [
1092
1190
  "name": "NotSuToken",
1093
1191
  "type": "error"
1094
1192
  },
1095
- {
1096
- "inputs": [],
1097
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
1098
- "type": "error"
1099
- },
1100
1193
  {
1101
1194
  "inputs": [],
1102
1195
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -1318,6 +1411,42 @@ exports.errorABIs = [
1318
1411
  "name": "ComptrollerMismatch",
1319
1412
  "type": "error"
1320
1413
  },
1414
+ {
1415
+ "inputs": [],
1416
+ "name": "EitherAssetOrDebtMustBeZero",
1417
+ "type": "error"
1418
+ },
1419
+ {
1420
+ "inputs": [
1421
+ {
1422
+ "internalType": "uint8",
1423
+ "name": "groupId",
1424
+ "type": "uint8"
1425
+ },
1426
+ {
1427
+ "internalType": "uint256",
1428
+ "name": "cDepositVal",
1429
+ "type": "uint256"
1430
+ },
1431
+ {
1432
+ "internalType": "uint256",
1433
+ "name": "suDepositVal",
1434
+ "type": "uint256"
1435
+ },
1436
+ {
1437
+ "internalType": "uint256",
1438
+ "name": "cBorrowVal",
1439
+ "type": "uint256"
1440
+ },
1441
+ {
1442
+ "internalType": "uint256",
1443
+ "name": "suBorrowVal",
1444
+ "type": "uint256"
1445
+ }
1446
+ ],
1447
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
1448
+ "type": "error"
1449
+ },
1321
1450
  {
1322
1451
  "inputs": [],
1323
1452
  "name": "ExpiredSignature",
@@ -1498,11 +1627,6 @@ exports.errorABIs = [
1498
1627
  "name": "NotSuToken",
1499
1628
  "type": "error"
1500
1629
  },
1501
- {
1502
- "inputs": [],
1503
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
1504
- "type": "error"
1505
- },
1506
1630
  {
1507
1631
  "inputs": [],
1508
1632
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -1724,6 +1848,42 @@ exports.errorABIs = [
1724
1848
  "name": "ComptrollerMismatch",
1725
1849
  "type": "error"
1726
1850
  },
1851
+ {
1852
+ "inputs": [],
1853
+ "name": "EitherAssetOrDebtMustBeZero",
1854
+ "type": "error"
1855
+ },
1856
+ {
1857
+ "inputs": [
1858
+ {
1859
+ "internalType": "uint8",
1860
+ "name": "groupId",
1861
+ "type": "uint8"
1862
+ },
1863
+ {
1864
+ "internalType": "uint256",
1865
+ "name": "cDepositVal",
1866
+ "type": "uint256"
1867
+ },
1868
+ {
1869
+ "internalType": "uint256",
1870
+ "name": "suDepositVal",
1871
+ "type": "uint256"
1872
+ },
1873
+ {
1874
+ "internalType": "uint256",
1875
+ "name": "cBorrowVal",
1876
+ "type": "uint256"
1877
+ },
1878
+ {
1879
+ "internalType": "uint256",
1880
+ "name": "suBorrowVal",
1881
+ "type": "uint256"
1882
+ }
1883
+ ],
1884
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
1885
+ "type": "error"
1886
+ },
1727
1887
  {
1728
1888
  "inputs": [],
1729
1889
  "name": "ExpiredSignature",
@@ -1904,11 +2064,6 @@ exports.errorABIs = [
1904
2064
  "name": "NotSuToken",
1905
2065
  "type": "error"
1906
2066
  },
1907
- {
1908
- "inputs": [],
1909
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
1910
- "type": "error"
1911
- },
1912
2067
  {
1913
2068
  "inputs": [],
1914
2069
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -2130,6 +2285,42 @@ exports.errorABIs = [
2130
2285
  "name": "ComptrollerMismatch",
2131
2286
  "type": "error"
2132
2287
  },
2288
+ {
2289
+ "inputs": [],
2290
+ "name": "EitherAssetOrDebtMustBeZero",
2291
+ "type": "error"
2292
+ },
2293
+ {
2294
+ "inputs": [
2295
+ {
2296
+ "internalType": "uint8",
2297
+ "name": "groupId",
2298
+ "type": "uint8"
2299
+ },
2300
+ {
2301
+ "internalType": "uint256",
2302
+ "name": "cDepositVal",
2303
+ "type": "uint256"
2304
+ },
2305
+ {
2306
+ "internalType": "uint256",
2307
+ "name": "suDepositVal",
2308
+ "type": "uint256"
2309
+ },
2310
+ {
2311
+ "internalType": "uint256",
2312
+ "name": "cBorrowVal",
2313
+ "type": "uint256"
2314
+ },
2315
+ {
2316
+ "internalType": "uint256",
2317
+ "name": "suBorrowVal",
2318
+ "type": "uint256"
2319
+ }
2320
+ ],
2321
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
2322
+ "type": "error"
2323
+ },
2133
2324
  {
2134
2325
  "inputs": [],
2135
2326
  "name": "ExpiredSignature",
@@ -2310,11 +2501,6 @@ exports.errorABIs = [
2310
2501
  "name": "NotSuToken",
2311
2502
  "type": "error"
2312
2503
  },
2313
- {
2314
- "inputs": [],
2315
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
2316
- "type": "error"
2317
- },
2318
2504
  {
2319
2505
  "inputs": [],
2320
2506
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -2536,6 +2722,42 @@ exports.errorABIs = [
2536
2722
  "name": "ComptrollerMismatch",
2537
2723
  "type": "error"
2538
2724
  },
2725
+ {
2726
+ "inputs": [],
2727
+ "name": "EitherAssetOrDebtMustBeZero",
2728
+ "type": "error"
2729
+ },
2730
+ {
2731
+ "inputs": [
2732
+ {
2733
+ "internalType": "uint8",
2734
+ "name": "groupId",
2735
+ "type": "uint8"
2736
+ },
2737
+ {
2738
+ "internalType": "uint256",
2739
+ "name": "cDepositVal",
2740
+ "type": "uint256"
2741
+ },
2742
+ {
2743
+ "internalType": "uint256",
2744
+ "name": "suDepositVal",
2745
+ "type": "uint256"
2746
+ },
2747
+ {
2748
+ "internalType": "uint256",
2749
+ "name": "cBorrowVal",
2750
+ "type": "uint256"
2751
+ },
2752
+ {
2753
+ "internalType": "uint256",
2754
+ "name": "suBorrowVal",
2755
+ "type": "uint256"
2756
+ }
2757
+ ],
2758
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
2759
+ "type": "error"
2760
+ },
2539
2761
  {
2540
2762
  "inputs": [],
2541
2763
  "name": "ExpiredSignature",
@@ -2716,11 +2938,6 @@ exports.errorABIs = [
2716
2938
  "name": "NotSuToken",
2717
2939
  "type": "error"
2718
2940
  },
2719
- {
2720
- "inputs": [],
2721
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
2722
- "type": "error"
2723
- },
2724
2941
  {
2725
2942
  "inputs": [],
2726
2943
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -2942,6 +3159,42 @@ exports.errorABIs = [
2942
3159
  "name": "ComptrollerMismatch",
2943
3160
  "type": "error"
2944
3161
  },
3162
+ {
3163
+ "inputs": [],
3164
+ "name": "EitherAssetOrDebtMustBeZero",
3165
+ "type": "error"
3166
+ },
3167
+ {
3168
+ "inputs": [
3169
+ {
3170
+ "internalType": "uint8",
3171
+ "name": "groupId",
3172
+ "type": "uint8"
3173
+ },
3174
+ {
3175
+ "internalType": "uint256",
3176
+ "name": "cDepositVal",
3177
+ "type": "uint256"
3178
+ },
3179
+ {
3180
+ "internalType": "uint256",
3181
+ "name": "suDepositVal",
3182
+ "type": "uint256"
3183
+ },
3184
+ {
3185
+ "internalType": "uint256",
3186
+ "name": "cBorrowVal",
3187
+ "type": "uint256"
3188
+ },
3189
+ {
3190
+ "internalType": "uint256",
3191
+ "name": "suBorrowVal",
3192
+ "type": "uint256"
3193
+ }
3194
+ ],
3195
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
3196
+ "type": "error"
3197
+ },
2945
3198
  {
2946
3199
  "inputs": [],
2947
3200
  "name": "ExpiredSignature",
@@ -3122,11 +3375,6 @@ exports.errorABIs = [
3122
3375
  "name": "NotSuToken",
3123
3376
  "type": "error"
3124
3377
  },
3125
- {
3126
- "inputs": [],
3127
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
3128
- "type": "error"
3129
- },
3130
3378
  {
3131
3379
  "inputs": [],
3132
3380
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -3348,6 +3596,42 @@ exports.errorABIs = [
3348
3596
  "name": "ComptrollerMismatch",
3349
3597
  "type": "error"
3350
3598
  },
3599
+ {
3600
+ "inputs": [],
3601
+ "name": "EitherAssetOrDebtMustBeZero",
3602
+ "type": "error"
3603
+ },
3604
+ {
3605
+ "inputs": [
3606
+ {
3607
+ "internalType": "uint8",
3608
+ "name": "groupId",
3609
+ "type": "uint8"
3610
+ },
3611
+ {
3612
+ "internalType": "uint256",
3613
+ "name": "cDepositVal",
3614
+ "type": "uint256"
3615
+ },
3616
+ {
3617
+ "internalType": "uint256",
3618
+ "name": "suDepositVal",
3619
+ "type": "uint256"
3620
+ },
3621
+ {
3622
+ "internalType": "uint256",
3623
+ "name": "cBorrowVal",
3624
+ "type": "uint256"
3625
+ },
3626
+ {
3627
+ "internalType": "uint256",
3628
+ "name": "suBorrowVal",
3629
+ "type": "uint256"
3630
+ }
3631
+ ],
3632
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
3633
+ "type": "error"
3634
+ },
3351
3635
  {
3352
3636
  "inputs": [],
3353
3637
  "name": "ExpiredSignature",
@@ -3528,11 +3812,6 @@ exports.errorABIs = [
3528
3812
  "name": "NotSuToken",
3529
3813
  "type": "error"
3530
3814
  },
3531
- {
3532
- "inputs": [],
3533
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
3534
- "type": "error"
3535
- },
3536
3815
  {
3537
3816
  "inputs": [],
3538
3817
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
@@ -3754,6 +4033,42 @@ exports.errorABIs = [
3754
4033
  "name": "ComptrollerMismatch",
3755
4034
  "type": "error"
3756
4035
  },
4036
+ {
4037
+ "inputs": [],
4038
+ "name": "EitherAssetOrDebtMustBeZero",
4039
+ "type": "error"
4040
+ },
4041
+ {
4042
+ "inputs": [
4043
+ {
4044
+ "internalType": "uint8",
4045
+ "name": "groupId",
4046
+ "type": "uint8"
4047
+ },
4048
+ {
4049
+ "internalType": "uint256",
4050
+ "name": "cDepositVal",
4051
+ "type": "uint256"
4052
+ },
4053
+ {
4054
+ "internalType": "uint256",
4055
+ "name": "suDepositVal",
4056
+ "type": "uint256"
4057
+ },
4058
+ {
4059
+ "internalType": "uint256",
4060
+ "name": "cBorrowVal",
4061
+ "type": "uint256"
4062
+ },
4063
+ {
4064
+ "internalType": "uint256",
4065
+ "name": "suBorrowVal",
4066
+ "type": "uint256"
4067
+ }
4068
+ ],
4069
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
4070
+ "type": "error"
4071
+ },
3757
4072
  {
3758
4073
  "inputs": [],
3759
4074
  "name": "ExpiredSignature",
@@ -3934,11 +4249,6 @@ exports.errorABIs = [
3934
4249
  "name": "NotSuToken",
3935
4250
  "type": "error"
3936
4251
  },
3937
- {
3938
- "inputs": [],
3939
- "name": "OneOfNetAssetAndNetDebtMustBeZero",
3940
- "type": "error"
3941
- },
3942
4252
  {
3943
4253
  "inputs": [],
3944
4254
  "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",