@meterio/sumer-js 0.2.40 → 0.2.42

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 (44) hide show
  1. package/dist/browser/sumer.min.js +10 -10
  2. package/dist/nodejs/abi.d.ts +18 -8
  3. package/dist/nodejs/abi.js +127 -0
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/metertest.js +1 -1
  6. package/dist/nodejs/index.d.ts +18 -8
  7. package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +57 -1
  8. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +15 -5
  9. package/dist/nodejs/typechain/contracts/Comptroller/ComptrollerStorage.d.ts +4 -0
  10. package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +4 -1
  11. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
  12. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -1
  13. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  14. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
  15. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
  16. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  17. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
  18. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
  19. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  20. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +80 -1
  21. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +102 -1
  22. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
  23. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -1
  24. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -1
  25. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  26. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +5 -1
  27. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +6 -1
  28. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js.map +1 -1
  29. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +14 -1
  30. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +17 -1
  31. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  32. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
  33. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
  34. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
  35. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  36. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  37. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js.map +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +4 -0
  39. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +5 -0
  40. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -1
  42. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -1
  43. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
  44. package/package.json +1 -1
@@ -492,22 +492,34 @@ export declare const abi: {
492
492
  stateMutability?: undefined;
493
493
  outputs?: undefined;
494
494
  } | {
495
- inputs: {
495
+ inputs: ({
496
496
  internalType: string;
497
497
  name: string;
498
498
  type: string;
499
- }[];
500
- name: string;
501
- outputs: {
499
+ components?: undefined;
500
+ } | {
501
+ components: {
502
+ internalType: string;
503
+ name: string;
504
+ type: string;
505
+ }[];
502
506
  internalType: string;
503
507
  name: string;
504
508
  type: string;
505
- }[];
509
+ })[];
510
+ name: string;
511
+ outputs: any[];
506
512
  stateMutability: string;
507
513
  type: string;
508
514
  anonymous?: undefined;
509
515
  } | {
510
- inputs: ({
516
+ inputs: {
517
+ internalType: string;
518
+ name: string;
519
+ type: string;
520
+ }[];
521
+ name: string;
522
+ outputs: ({
511
523
  internalType: string;
512
524
  name: string;
513
525
  type: string;
@@ -522,8 +534,6 @@ export declare const abi: {
522
534
  name: string;
523
535
  type: string;
524
536
  })[];
525
- name: string;
526
- outputs: any[];
527
537
  stateMutability: string;
528
538
  type: string;
529
539
  anonymous?: undefined;
@@ -12940,6 +12940,107 @@ exports.abi = {
12940
12940
  "stateMutability": "nonpayable",
12941
12941
  "type": "function"
12942
12942
  },
12943
+ {
12944
+ "inputs": [
12945
+ {
12946
+ "internalType": "address",
12947
+ "name": "account",
12948
+ "type": "address"
12949
+ },
12950
+ {
12951
+ "internalType": "address",
12952
+ "name": "cTokenModify",
12953
+ "type": "address"
12954
+ },
12955
+ {
12956
+ "internalType": "uint256",
12957
+ "name": "redeemTokens",
12958
+ "type": "uint256"
12959
+ },
12960
+ {
12961
+ "internalType": "uint256",
12962
+ "name": "borrowAmount",
12963
+ "type": "uint256"
12964
+ }
12965
+ ],
12966
+ "name": "getGroupSummary",
12967
+ "outputs": [
12968
+ {
12969
+ "internalType": "uint256",
12970
+ "name": "",
12971
+ "type": "uint256"
12972
+ },
12973
+ {
12974
+ "internalType": "uint256",
12975
+ "name": "",
12976
+ "type": "uint256"
12977
+ },
12978
+ {
12979
+ "components": [
12980
+ {
12981
+ "internalType": "uint8",
12982
+ "name": "groupId",
12983
+ "type": "uint8"
12984
+ },
12985
+ {
12986
+ "internalType": "uint256",
12987
+ "name": "cDepositVal",
12988
+ "type": "uint256"
12989
+ },
12990
+ {
12991
+ "internalType": "uint256",
12992
+ "name": "cBorrowVal",
12993
+ "type": "uint256"
12994
+ },
12995
+ {
12996
+ "internalType": "uint256",
12997
+ "name": "suDepositVal",
12998
+ "type": "uint256"
12999
+ },
13000
+ {
13001
+ "internalType": "uint256",
13002
+ "name": "suBorrowVal",
13003
+ "type": "uint256"
13004
+ },
13005
+ {
13006
+ "internalType": "uint256",
13007
+ "name": "intraCRateMantissa",
13008
+ "type": "uint256"
13009
+ },
13010
+ {
13011
+ "internalType": "uint256",
13012
+ "name": "intraMintRateMantissa",
13013
+ "type": "uint256"
13014
+ },
13015
+ {
13016
+ "internalType": "uint256",
13017
+ "name": "intraSuRateMantissa",
13018
+ "type": "uint256"
13019
+ },
13020
+ {
13021
+ "internalType": "uint256",
13022
+ "name": "interCRateMantissa",
13023
+ "type": "uint256"
13024
+ },
13025
+ {
13026
+ "internalType": "uint256",
13027
+ "name": "interSuRateMantissa",
13028
+ "type": "uint256"
13029
+ },
13030
+ {
13031
+ "internalType": "uint256",
13032
+ "name": "interMintRateMantissa",
13033
+ "type": "uint256"
13034
+ }
13035
+ ],
13036
+ "internalType": "struct GroupVar",
13037
+ "name": "",
13038
+ "type": "tuple"
13039
+ }
13040
+ ],
13041
+ "stateMutability": "view",
13042
+ "type": "function"
13043
+ },
12943
13044
  {
12944
13045
  "inputs": [
12945
13046
  {
@@ -15283,6 +15384,12 @@ exports.abi = {
15283
15384
  "internalType": "uint16",
15284
15385
  "name": "interSuRatePercent",
15285
15386
  "type": "uint16"
15387
+ },
15388
+ {
15389
+ "indexed": false,
15390
+ "internalType": "uint16",
15391
+ "name": "interMintRatePercent",
15392
+ "type": "uint16"
15286
15393
  }
15287
15394
  ],
15288
15395
  "name": "NewAssetGroup",
@@ -15878,6 +15985,11 @@ exports.abi = {
15878
15985
  "internalType": "uint16",
15879
15986
  "name": "interSuRatePercent",
15880
15987
  "type": "uint16"
15988
+ },
15989
+ {
15990
+ "internalType": "uint16",
15991
+ "name": "interMintRatePercent",
15992
+ "type": "uint16"
15881
15993
  }
15882
15994
  ],
15883
15995
  "stateMutability": "view",
@@ -16638,6 +16750,11 @@ exports.abi = {
16638
16750
  "internalType": "uint16",
16639
16751
  "name": "interSuRatePercent",
16640
16752
  "type": "uint16"
16753
+ },
16754
+ {
16755
+ "internalType": "uint16",
16756
+ "name": "interMintRatePercent",
16757
+ "type": "uint16"
16641
16758
  }
16642
16759
  ],
16643
16760
  "name": "setAssetGroup",
@@ -16815,6 +16932,11 @@ exports.abi = {
16815
16932
  "internalType": "uint16",
16816
16933
  "name": "interSuRatePercent",
16817
16934
  "type": "uint16"
16935
+ },
16936
+ {
16937
+ "internalType": "uint16",
16938
+ "name": "interMintRatePercent",
16939
+ "type": "uint16"
16818
16940
  }
16819
16941
  ],
16820
16942
  "stateMutability": "view",
@@ -22578,6 +22700,11 @@ exports.abi = {
22578
22700
  "internalType": "uint16",
22579
22701
  "name": "interSuRatePercent",
22580
22702
  "type": "uint16"
22703
+ },
22704
+ {
22705
+ "internalType": "uint16",
22706
+ "name": "interMintRatePercent",
22707
+ "type": "uint16"
22581
22708
  }
22582
22709
  ],
22583
22710
  "internalType": "struct CompactAssetGroup",