@meterio/sumer-js 0.1.43 → 0.1.45

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 (149) hide show
  1. package/dist/browser/sumer.min.js +10 -10
  2. package/dist/nodejs/abi.d.ts +36 -74
  3. package/dist/nodejs/abi.js +400 -626
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/arbitrum.d.ts +1 -0
  6. package/dist/nodejs/constants/arbitrum.js +1 -0
  7. package/dist/nodejs/constants/arbitrum.js.map +1 -1
  8. package/dist/nodejs/constants/metertest.d.ts +2 -10
  9. package/dist/nodejs/constants/metertest.js +2 -11
  10. package/dist/nodejs/constants/metertest.js.map +1 -1
  11. package/dist/nodejs/index.d.ts +36 -74
  12. package/dist/nodejs/typechain/@openzeppelin/contracts/governance/TimelockController.d.ts +1 -16
  13. package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/index.d.ts +0 -2
  14. package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.d.ts +108 -0
  15. package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.js +3 -0
  16. package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.js.map +1 -0
  17. package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/index.d.ts +1 -2
  18. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.d.ts +61 -0
  19. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js +3 -0
  20. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js.map +1 -0
  21. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +1 -0
  22. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +3 -0
  23. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
  24. package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +2 -1
  25. package/dist/nodejs/typechain/@openzeppelin/contracts/utils/index.d.ts +0 -3
  26. package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauserPermit.d.ts +2 -57
  27. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestRateModel.d.ts +143 -0
  28. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestRateModel.js +3 -0
  29. package/dist/nodejs/typechain/contracts/InterestRateModel/FixedInterestRateModel.js.map +1 -0
  30. package/dist/nodejs/typechain/contracts/InterestRateModel/InterestRateModel.d.ts +60 -4
  31. package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelV2.d.ts +53 -3
  32. package/dist/nodejs/typechain/contracts/InterestRateModel/WhitePaperInterestRateModel.d.ts +57 -3
  33. package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +1 -6
  34. package/dist/nodejs/typechain/contracts/SumerTimelockController.d.ts +1 -16
  35. package/dist/nodejs/typechain/contracts/proxy/SumerProxy.d.ts +45 -2
  36. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.d.ts +9 -24
  37. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.js +9 -28
  38. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/governance/TimelockController__factory.js.map +1 -1
  39. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.d.ts +0 -2
  40. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js +1 -5
  41. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -1
  42. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +1 -1
  43. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js +1 -1
  44. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +6 -6
  45. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js +6 -6
  46. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js.map +1 -1
  47. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.d.ts +133 -0
  48. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.js +184 -0
  49. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.js.map +1 -0
  50. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +1 -1
  51. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.js +3 -25
  52. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.js.map +1 -1
  53. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +1 -1
  54. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +1 -1
  55. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.d.ts +65 -0
  56. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js +95 -0
  57. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js.map +1 -0
  58. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +1 -0
  59. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +9 -0
  60. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
  61. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -1
  62. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +25 -3
  63. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -1
  64. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.d.ts +1 -1
  65. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.js +1 -1
  66. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.d.ts +0 -2
  67. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js +1 -4
  68. package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js.map +1 -1
  69. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
  70. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -1
  71. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
  72. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
  73. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
  74. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
  75. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
  76. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
  77. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
  78. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
  79. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -1
  80. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -1
  81. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +1 -1
  82. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +1 -1
  83. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
  84. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
  85. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  86. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  87. package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.d.ts +1 -52
  88. package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.js +1 -66
  89. package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauserPermit__factory.js.map +1 -1
  90. package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.d.ts +1 -1
  91. package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.js +1 -1
  92. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.d.ts +1 -1
  93. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestModel.sol/FixedRateModel__factory.js +1 -1
  94. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestRateModel__factory.d.ts +218 -0
  95. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestRateModel__factory.js +293 -0
  96. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/FixedInterestRateModel__factory.js.map +1 -0
  97. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.d.ts +72 -0
  98. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.js +91 -0
  99. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.js.map +1 -1
  100. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.d.ts +66 -8
  101. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.js +83 -10
  102. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.js.map +1 -1
  103. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.d.ts +1 -1
  104. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.js +1 -1
  105. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.d.ts +73 -1
  106. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js +92 -1
  107. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js.map +1 -1
  108. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.d.ts +1 -1
  109. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.js +1 -1
  110. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -4
  111. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +3 -30
  112. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
  113. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.d.ts +1 -1
  114. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.js +1 -1
  115. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.d.ts +1 -1
  116. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js +1 -1
  117. package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.d.ts +1 -1
  118. package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.js +1 -1
  119. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.d.ts +1 -1
  120. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.js +1 -1
  121. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +1 -1
  122. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +1 -1
  123. package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.d.ts +9 -24
  124. package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.js +9 -28
  125. package/dist/nodejs/typechain/factories/contracts/SumerTimelockController__factory.js.map +1 -1
  126. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -33
  127. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -43
  128. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
  129. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.d.ts +6 -6
  130. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js +6 -6
  131. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js.map +1 -1
  132. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.d.ts +55 -1
  133. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js +71 -1
  134. package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js.map +1 -1
  135. package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.d.ts +1 -1
  136. package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js +1 -1
  137. package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js.map +1 -1
  138. package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.d.ts +1 -1
  139. package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.js +1 -1
  140. package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.d.ts +1 -1
  141. package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.js +1 -1
  142. package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
  143. package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
  144. package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js.map +1 -1
  145. package/dist/nodejs/typechain/hardhat.d.ts +26 -170
  146. package/dist/nodejs/typechain/index.d.ts +6 -22
  147. package/dist/nodejs/typechain/index.js +7 -24
  148. package/dist/nodejs/typechain/index.js.map +1 -1
  149. package/package.json +1 -1
@@ -762,25 +762,6 @@ exports.abi = {
762
762
  "name": "CallExecuted",
763
763
  "type": "event"
764
764
  },
765
- {
766
- "anonymous": false,
767
- "inputs": [
768
- {
769
- "indexed": true,
770
- "internalType": "bytes32",
771
- "name": "id",
772
- "type": "bytes32"
773
- },
774
- {
775
- "indexed": false,
776
- "internalType": "bytes32",
777
- "name": "salt",
778
- "type": "bytes32"
779
- }
780
- ],
781
- "name": "CallSalt",
782
- "type": "event"
783
- },
784
765
  {
785
766
  "anonymous": false,
786
767
  "inputs": [
@@ -1087,7 +1068,7 @@ exports.abi = {
1087
1068
  "outputs": [
1088
1069
  {
1089
1070
  "internalType": "uint256",
1090
- "name": "",
1071
+ "name": "duration",
1091
1072
  "type": "uint256"
1092
1073
  }
1093
1074
  ],
@@ -1125,7 +1106,7 @@ exports.abi = {
1125
1106
  "outputs": [
1126
1107
  {
1127
1108
  "internalType": "uint256",
1128
- "name": "",
1109
+ "name": "timestamp",
1129
1110
  "type": "uint256"
1130
1111
  }
1131
1112
  ],
@@ -1206,7 +1187,7 @@ exports.abi = {
1206
1187
  "outputs": [
1207
1188
  {
1208
1189
  "internalType": "bytes32",
1209
- "name": "",
1190
+ "name": "hash",
1210
1191
  "type": "bytes32"
1211
1192
  }
1212
1193
  ],
@@ -1245,7 +1226,7 @@ exports.abi = {
1245
1226
  "outputs": [
1246
1227
  {
1247
1228
  "internalType": "bytes32",
1248
- "name": "",
1229
+ "name": "hash",
1249
1230
  "type": "bytes32"
1250
1231
  }
1251
1232
  ],
@@ -1264,7 +1245,7 @@ exports.abi = {
1264
1245
  "outputs": [
1265
1246
  {
1266
1247
  "internalType": "bool",
1267
- "name": "",
1248
+ "name": "registered",
1268
1249
  "type": "bool"
1269
1250
  }
1270
1251
  ],
@@ -1283,7 +1264,7 @@ exports.abi = {
1283
1264
  "outputs": [
1284
1265
  {
1285
1266
  "internalType": "bool",
1286
- "name": "",
1267
+ "name": "done",
1287
1268
  "type": "bool"
1288
1269
  }
1289
1270
  ],
@@ -1302,7 +1283,7 @@ exports.abi = {
1302
1283
  "outputs": [
1303
1284
  {
1304
1285
  "internalType": "bool",
1305
- "name": "",
1286
+ "name": "pending",
1306
1287
  "type": "bool"
1307
1288
  }
1308
1289
  ],
@@ -1321,7 +1302,7 @@ exports.abi = {
1321
1302
  "outputs": [
1322
1303
  {
1323
1304
  "internalType": "bool",
1324
- "name": "",
1305
+ "name": "ready",
1325
1306
  "type": "bool"
1326
1307
  }
1327
1308
  ],
@@ -1626,22 +1607,6 @@ exports.abi = {
1626
1607
  "name": "AddReservesOverflow",
1627
1608
  "type": "error"
1628
1609
  },
1629
- {
1630
- "inputs": [
1631
- {
1632
- "internalType": "uint256",
1633
- "name": "capacity",
1634
- "type": "uint256"
1635
- },
1636
- {
1637
- "internalType": "uint256",
1638
- "name": "requested",
1639
- "type": "uint256"
1640
- }
1641
- ],
1642
- "name": "AggregateValueMaxCapacityExceeded",
1643
- "type": "error"
1644
- },
1645
1610
  {
1646
1611
  "inputs": [
1647
1612
  {
@@ -1694,11 +1659,6 @@ exports.abi = {
1694
1659
  "name": "BorrowValueMustBeLargerThanThreshold",
1695
1660
  "type": "error"
1696
1661
  },
1697
- {
1698
- "inputs": [],
1699
- "name": "BucketOverfilled",
1700
- "type": "error"
1701
- },
1702
1662
  {
1703
1663
  "inputs": [],
1704
1664
  "name": "CantExitMarketWithNonZeroBorrowBalance",
@@ -2009,27 +1969,6 @@ exports.abi = {
2009
1969
  "name": "TokenInOrAmountInMustBeZero",
2010
1970
  "type": "error"
2011
1971
  },
2012
- {
2013
- "inputs": [
2014
- {
2015
- "internalType": "uint256",
2016
- "name": "capacity",
2017
- "type": "uint256"
2018
- },
2019
- {
2020
- "internalType": "uint256",
2021
- "name": "requested",
2022
- "type": "uint256"
2023
- },
2024
- {
2025
- "internalType": "address",
2026
- "name": "tokenAddress",
2027
- "type": "address"
2028
- }
2029
- ],
2030
- "name": "TokenMaxCapacityExceeded",
2031
- "type": "error"
2032
- },
2033
1972
  {
2034
1973
  "inputs": [
2035
1974
  {
@@ -20369,22 +20308,6 @@ exports.abi = {
20369
20308
  "stateMutability": "nonpayable",
20370
20309
  "type": "constructor"
20371
20310
  },
20372
- {
20373
- "inputs": [],
20374
- "name": "InvalidShortString",
20375
- "type": "error"
20376
- },
20377
- {
20378
- "inputs": [
20379
- {
20380
- "internalType": "string",
20381
- "name": "str",
20382
- "type": "string"
20383
- }
20384
- ],
20385
- "name": "StringTooLong",
20386
- "type": "error"
20387
- },
20388
20311
  {
20389
20312
  "anonymous": false,
20390
20313
  "inputs": [
@@ -20410,12 +20333,6 @@ exports.abi = {
20410
20333
  "name": "Approval",
20411
20334
  "type": "event"
20412
20335
  },
20413
- {
20414
- "anonymous": false,
20415
- "inputs": [],
20416
- "name": "EIP712DomainChanged",
20417
- "type": "event"
20418
- },
20419
20336
  {
20420
20337
  "anonymous": false,
20421
20338
  "inputs": [
@@ -20729,49 +20646,6 @@ exports.abi = {
20729
20646
  "stateMutability": "nonpayable",
20730
20647
  "type": "function"
20731
20648
  },
20732
- {
20733
- "inputs": [],
20734
- "name": "eip712Domain",
20735
- "outputs": [
20736
- {
20737
- "internalType": "bytes1",
20738
- "name": "fields",
20739
- "type": "bytes1"
20740
- },
20741
- {
20742
- "internalType": "string",
20743
- "name": "name",
20744
- "type": "string"
20745
- },
20746
- {
20747
- "internalType": "string",
20748
- "name": "version",
20749
- "type": "string"
20750
- },
20751
- {
20752
- "internalType": "uint256",
20753
- "name": "chainId",
20754
- "type": "uint256"
20755
- },
20756
- {
20757
- "internalType": "address",
20758
- "name": "verifyingContract",
20759
- "type": "address"
20760
- },
20761
- {
20762
- "internalType": "bytes32",
20763
- "name": "salt",
20764
- "type": "bytes32"
20765
- },
20766
- {
20767
- "internalType": "uint256[]",
20768
- "name": "extensions",
20769
- "type": "uint256[]"
20770
- }
20771
- ],
20772
- "stateMutability": "view",
20773
- "type": "function"
20774
- },
20775
20649
  {
20776
20650
  "inputs": [
20777
20651
  {
@@ -21189,9 +21063,14 @@ exports.abi = {
21189
21063
  }
21190
21064
  ],
21191
21065
  "ExponentialNoErrorNew": [],
21192
- "FixedRateModel": [
21066
+ "FixedInterestRateModel": [
21193
21067
  {
21194
21068
  "inputs": [
21069
+ {
21070
+ "internalType": "uint256",
21071
+ "name": "blocksPerYearOnChain",
21072
+ "type": "uint256"
21073
+ },
21195
21074
  {
21196
21075
  "internalType": "uint256",
21197
21076
  "name": "initBorrowRate",
@@ -21206,9 +21085,54 @@ exports.abi = {
21206
21085
  "stateMutability": "nonpayable",
21207
21086
  "type": "constructor"
21208
21087
  },
21088
+ {
21089
+ "anonymous": false,
21090
+ "inputs": [
21091
+ {
21092
+ "indexed": true,
21093
+ "internalType": "address",
21094
+ "name": "previousOwner",
21095
+ "type": "address"
21096
+ },
21097
+ {
21098
+ "indexed": true,
21099
+ "internalType": "address",
21100
+ "name": "newOwner",
21101
+ "type": "address"
21102
+ }
21103
+ ],
21104
+ "name": "OwnershipTransferStarted",
21105
+ "type": "event"
21106
+ },
21107
+ {
21108
+ "anonymous": false,
21109
+ "inputs": [
21110
+ {
21111
+ "indexed": true,
21112
+ "internalType": "address",
21113
+ "name": "previousOwner",
21114
+ "type": "address"
21115
+ },
21116
+ {
21117
+ "indexed": true,
21118
+ "internalType": "address",
21119
+ "name": "newOwner",
21120
+ "type": "address"
21121
+ }
21122
+ ],
21123
+ "name": "OwnershipTransferred",
21124
+ "type": "event"
21125
+ },
21209
21126
  {
21210
21127
  "inputs": [],
21211
- "name": "borrowRate",
21128
+ "name": "acceptOwnership",
21129
+ "outputs": [],
21130
+ "stateMutability": "nonpayable",
21131
+ "type": "function"
21132
+ },
21133
+ {
21134
+ "inputs": [],
21135
+ "name": "blocksPerYear",
21212
21136
  "outputs": [
21213
21137
  {
21214
21138
  "internalType": "uint256",
@@ -21220,16 +21144,16 @@ exports.abi = {
21220
21144
  "type": "function"
21221
21145
  },
21222
21146
  {
21223
- "inputs": [
21147
+ "inputs": [],
21148
+ "name": "borrowRate",
21149
+ "outputs": [
21224
21150
  {
21225
- "internalType": "address",
21226
- "name": "owner_",
21227
- "type": "address"
21151
+ "internalType": "uint256",
21152
+ "name": "",
21153
+ "type": "uint256"
21228
21154
  }
21229
21155
  ],
21230
- "name": "changeOwner",
21231
- "outputs": [],
21232
- "stateMutability": "nonpayable",
21156
+ "stateMutability": "view",
21233
21157
  "type": "function"
21234
21158
  },
21235
21159
  {
@@ -21321,6 +21245,26 @@ exports.abi = {
21321
21245
  "stateMutability": "view",
21322
21246
  "type": "function"
21323
21247
  },
21248
+ {
21249
+ "inputs": [],
21250
+ "name": "pendingOwner",
21251
+ "outputs": [
21252
+ {
21253
+ "internalType": "address",
21254
+ "name": "",
21255
+ "type": "address"
21256
+ }
21257
+ ],
21258
+ "stateMutability": "view",
21259
+ "type": "function"
21260
+ },
21261
+ {
21262
+ "inputs": [],
21263
+ "name": "renounceOwnership",
21264
+ "outputs": [],
21265
+ "stateMutability": "nonpayable",
21266
+ "type": "function"
21267
+ },
21324
21268
  {
21325
21269
  "inputs": [
21326
21270
  {
@@ -21359,168 +21303,65 @@ exports.abi = {
21359
21303
  ],
21360
21304
  "stateMutability": "view",
21361
21305
  "type": "function"
21306
+ },
21307
+ {
21308
+ "inputs": [
21309
+ {
21310
+ "internalType": "address",
21311
+ "name": "newOwner",
21312
+ "type": "address"
21313
+ }
21314
+ ],
21315
+ "name": "transferOwnership",
21316
+ "outputs": [],
21317
+ "stateMutability": "nonpayable",
21318
+ "type": "function"
21362
21319
  }
21363
21320
  ],
21364
21321
  "InterestRateModel": [
21365
21322
  {
21323
+ "anonymous": false,
21366
21324
  "inputs": [
21367
21325
  {
21368
- "internalType": "uint256",
21369
- "name": "cash",
21370
- "type": "uint256"
21371
- },
21372
- {
21373
- "internalType": "uint256",
21374
- "name": "borrows",
21375
- "type": "uint256"
21326
+ "indexed": true,
21327
+ "internalType": "address",
21328
+ "name": "previousOwner",
21329
+ "type": "address"
21376
21330
  },
21377
21331
  {
21378
- "internalType": "uint256",
21379
- "name": "reserves",
21380
- "type": "uint256"
21381
- }
21382
- ],
21383
- "name": "getBorrowRate",
21384
- "outputs": [
21385
- {
21386
- "internalType": "uint256",
21387
- "name": "",
21388
- "type": "uint256"
21332
+ "indexed": true,
21333
+ "internalType": "address",
21334
+ "name": "newOwner",
21335
+ "type": "address"
21389
21336
  }
21390
21337
  ],
21391
- "stateMutability": "view",
21392
- "type": "function"
21338
+ "name": "OwnershipTransferStarted",
21339
+ "type": "event"
21393
21340
  },
21394
21341
  {
21342
+ "anonymous": false,
21395
21343
  "inputs": [
21396
21344
  {
21397
- "internalType": "uint256",
21398
- "name": "cash",
21399
- "type": "uint256"
21400
- },
21401
- {
21402
- "internalType": "uint256",
21403
- "name": "borrows",
21404
- "type": "uint256"
21405
- },
21406
- {
21407
- "internalType": "uint256",
21408
- "name": "reserves",
21409
- "type": "uint256"
21410
- },
21411
- {
21412
- "internalType": "uint256",
21413
- "name": "reserveFactorMantissa",
21414
- "type": "uint256"
21415
- }
21416
- ],
21417
- "name": "getSupplyRate",
21418
- "outputs": [
21419
- {
21420
- "internalType": "uint256",
21421
- "name": "",
21422
- "type": "uint256"
21423
- }
21424
- ],
21425
- "stateMutability": "view",
21426
- "type": "function"
21427
- },
21428
- {
21429
- "inputs": [],
21430
- "name": "isInterestRateModel",
21431
- "outputs": [
21432
- {
21433
- "internalType": "bool",
21434
- "name": "",
21435
- "type": "bool"
21436
- }
21437
- ],
21438
- "stateMutability": "view",
21439
- "type": "function"
21440
- }
21441
- ],
21442
- "JumpRateModel": [
21443
- {
21444
- "inputs": [
21445
- {
21446
- "internalType": "uint256",
21447
- "name": "baseRatePerYear",
21448
- "type": "uint256"
21449
- },
21450
- {
21451
- "internalType": "uint256",
21452
- "name": "multiplierPerYear",
21453
- "type": "uint256"
21454
- },
21455
- {
21456
- "internalType": "uint256",
21457
- "name": "jumpMultiplierPerYear",
21458
- "type": "uint256"
21459
- },
21460
- {
21461
- "internalType": "uint256",
21462
- "name": "kink_",
21463
- "type": "uint256"
21464
- }
21465
- ],
21466
- "stateMutability": "nonpayable",
21467
- "type": "constructor"
21468
- },
21469
- {
21470
- "anonymous": false,
21471
- "inputs": [
21472
- {
21473
- "indexed": false,
21474
- "internalType": "uint256",
21475
- "name": "baseRatePerBlock",
21476
- "type": "uint256"
21477
- },
21478
- {
21479
- "indexed": false,
21480
- "internalType": "uint256",
21481
- "name": "multiplierPerBlock",
21482
- "type": "uint256"
21483
- },
21484
- {
21485
- "indexed": false,
21486
- "internalType": "uint256",
21487
- "name": "jumpMultiplierPerBlock",
21488
- "type": "uint256"
21345
+ "indexed": true,
21346
+ "internalType": "address",
21347
+ "name": "previousOwner",
21348
+ "type": "address"
21489
21349
  },
21490
21350
  {
21491
- "indexed": false,
21492
- "internalType": "uint256",
21493
- "name": "kink",
21494
- "type": "uint256"
21351
+ "indexed": true,
21352
+ "internalType": "address",
21353
+ "name": "newOwner",
21354
+ "type": "address"
21495
21355
  }
21496
21356
  ],
21497
- "name": "NewInterestParams",
21357
+ "name": "OwnershipTransferred",
21498
21358
  "type": "event"
21499
21359
  },
21500
21360
  {
21501
21361
  "inputs": [],
21502
- "name": "baseRatePerBlock",
21503
- "outputs": [
21504
- {
21505
- "internalType": "uint256",
21506
- "name": "",
21507
- "type": "uint256"
21508
- }
21509
- ],
21510
- "stateMutability": "view",
21511
- "type": "function"
21512
- },
21513
- {
21514
- "inputs": [],
21515
- "name": "blocksPerYear",
21516
- "outputs": [
21517
- {
21518
- "internalType": "uint256",
21519
- "name": "",
21520
- "type": "uint256"
21521
- }
21522
- ],
21523
- "stateMutability": "view",
21362
+ "name": "acceptOwnership",
21363
+ "outputs": [],
21364
+ "stateMutability": "nonpayable",
21524
21365
  "type": "function"
21525
21366
  },
21526
21367
  {
@@ -21601,12 +21442,12 @@ exports.abi = {
21601
21442
  },
21602
21443
  {
21603
21444
  "inputs": [],
21604
- "name": "jumpMultiplierPerBlock",
21445
+ "name": "owner",
21605
21446
  "outputs": [
21606
21447
  {
21607
- "internalType": "uint256",
21448
+ "internalType": "address",
21608
21449
  "name": "",
21609
- "type": "uint256"
21450
+ "type": "address"
21610
21451
  }
21611
21452
  ],
21612
21453
  "stateMutability": "view",
@@ -21614,12 +21455,12 @@ exports.abi = {
21614
21455
  },
21615
21456
  {
21616
21457
  "inputs": [],
21617
- "name": "kink",
21458
+ "name": "pendingOwner",
21618
21459
  "outputs": [
21619
21460
  {
21620
- "internalType": "uint256",
21461
+ "internalType": "address",
21621
21462
  "name": "",
21622
- "type": "uint256"
21463
+ "type": "address"
21623
21464
  }
21624
21465
  ],
21625
21466
  "stateMutability": "view",
@@ -21627,44 +21468,22 @@ exports.abi = {
21627
21468
  },
21628
21469
  {
21629
21470
  "inputs": [],
21630
- "name": "multiplierPerBlock",
21631
- "outputs": [
21632
- {
21633
- "internalType": "uint256",
21634
- "name": "",
21635
- "type": "uint256"
21636
- }
21637
- ],
21638
- "stateMutability": "view",
21471
+ "name": "renounceOwnership",
21472
+ "outputs": [],
21473
+ "stateMutability": "nonpayable",
21639
21474
  "type": "function"
21640
21475
  },
21641
21476
  {
21642
21477
  "inputs": [
21643
21478
  {
21644
- "internalType": "uint256",
21645
- "name": "cash",
21646
- "type": "uint256"
21647
- },
21648
- {
21649
- "internalType": "uint256",
21650
- "name": "borrows",
21651
- "type": "uint256"
21652
- },
21653
- {
21654
- "internalType": "uint256",
21655
- "name": "reserves",
21656
- "type": "uint256"
21657
- }
21658
- ],
21659
- "name": "utilizationRate",
21660
- "outputs": [
21661
- {
21662
- "internalType": "uint256",
21663
- "name": "",
21664
- "type": "uint256"
21479
+ "internalType": "address",
21480
+ "name": "newOwner",
21481
+ "type": "address"
21665
21482
  }
21666
21483
  ],
21667
- "stateMutability": "pure",
21484
+ "name": "transferOwnership",
21485
+ "outputs": [],
21486
+ "stateMutability": "nonpayable",
21668
21487
  "type": "function"
21669
21488
  }
21670
21489
  ],
@@ -21695,11 +21514,6 @@ exports.abi = {
21695
21514
  "internalType": "uint256",
21696
21515
  "name": "kink_",
21697
21516
  "type": "uint256"
21698
- },
21699
- {
21700
- "internalType": "address",
21701
- "name": "owner_",
21702
- "type": "address"
21703
21517
  }
21704
21518
  ],
21705
21519
  "stateMutability": "nonpayable",
@@ -21736,6 +21550,51 @@ exports.abi = {
21736
21550
  "name": "NewInterestParams",
21737
21551
  "type": "event"
21738
21552
  },
21553
+ {
21554
+ "anonymous": false,
21555
+ "inputs": [
21556
+ {
21557
+ "indexed": true,
21558
+ "internalType": "address",
21559
+ "name": "previousOwner",
21560
+ "type": "address"
21561
+ },
21562
+ {
21563
+ "indexed": true,
21564
+ "internalType": "address",
21565
+ "name": "newOwner",
21566
+ "type": "address"
21567
+ }
21568
+ ],
21569
+ "name": "OwnershipTransferStarted",
21570
+ "type": "event"
21571
+ },
21572
+ {
21573
+ "anonymous": false,
21574
+ "inputs": [
21575
+ {
21576
+ "indexed": true,
21577
+ "internalType": "address",
21578
+ "name": "previousOwner",
21579
+ "type": "address"
21580
+ },
21581
+ {
21582
+ "indexed": true,
21583
+ "internalType": "address",
21584
+ "name": "newOwner",
21585
+ "type": "address"
21586
+ }
21587
+ ],
21588
+ "name": "OwnershipTransferred",
21589
+ "type": "event"
21590
+ },
21591
+ {
21592
+ "inputs": [],
21593
+ "name": "acceptOwnership",
21594
+ "outputs": [],
21595
+ "stateMutability": "nonpayable",
21596
+ "type": "function"
21597
+ },
21739
21598
  {
21740
21599
  "inputs": [],
21741
21600
  "name": "baseRatePerBlock",
@@ -21890,208 +21749,14 @@ exports.abi = {
21890
21749
  "stateMutability": "view",
21891
21750
  "type": "function"
21892
21751
  },
21893
- {
21894
- "inputs": [
21895
- {
21896
- "internalType": "uint256",
21897
- "name": "baseRatePerYear",
21898
- "type": "uint256"
21899
- },
21900
- {
21901
- "internalType": "uint256",
21902
- "name": "multiplierPerYear",
21903
- "type": "uint256"
21904
- },
21905
- {
21906
- "internalType": "uint256",
21907
- "name": "jumpMultiplierPerYear",
21908
- "type": "uint256"
21909
- },
21910
- {
21911
- "internalType": "uint256",
21912
- "name": "kink_",
21913
- "type": "uint256"
21914
- }
21915
- ],
21916
- "name": "updateJumpRateModel",
21917
- "outputs": [],
21918
- "stateMutability": "nonpayable",
21919
- "type": "function"
21920
- },
21921
- {
21922
- "inputs": [
21923
- {
21924
- "internalType": "uint256",
21925
- "name": "cash",
21926
- "type": "uint256"
21927
- },
21928
- {
21929
- "internalType": "uint256",
21930
- "name": "borrows",
21931
- "type": "uint256"
21932
- },
21933
- {
21934
- "internalType": "uint256",
21935
- "name": "reserves",
21936
- "type": "uint256"
21937
- }
21938
- ],
21939
- "name": "utilizationRate",
21940
- "outputs": [
21941
- {
21942
- "internalType": "uint256",
21943
- "name": "",
21944
- "type": "uint256"
21945
- }
21946
- ],
21947
- "stateMutability": "pure",
21948
- "type": "function"
21949
- }
21950
- ],
21951
- "WhitePaperInterestRateModel": [
21952
- {
21953
- "inputs": [
21954
- {
21955
- "internalType": "uint256",
21956
- "name": "blocksPerYearOnChain",
21957
- "type": "uint256"
21958
- },
21959
- {
21960
- "internalType": "uint256",
21961
- "name": "baseRatePerYear",
21962
- "type": "uint256"
21963
- },
21964
- {
21965
- "internalType": "uint256",
21966
- "name": "multiplierPerYear",
21967
- "type": "uint256"
21968
- }
21969
- ],
21970
- "stateMutability": "nonpayable",
21971
- "type": "constructor"
21972
- },
21973
- {
21974
- "anonymous": false,
21975
- "inputs": [
21976
- {
21977
- "indexed": false,
21978
- "internalType": "uint256",
21979
- "name": "blocksPerYear",
21980
- "type": "uint256"
21981
- },
21982
- {
21983
- "indexed": false,
21984
- "internalType": "uint256",
21985
- "name": "baseRatePerBlock",
21986
- "type": "uint256"
21987
- },
21988
- {
21989
- "indexed": false,
21990
- "internalType": "uint256",
21991
- "name": "multiplierPerBlock",
21992
- "type": "uint256"
21993
- }
21994
- ],
21995
- "name": "NewInterestParams",
21996
- "type": "event"
21997
- },
21998
- {
21999
- "inputs": [],
22000
- "name": "baseRatePerBlock",
22001
- "outputs": [
22002
- {
22003
- "internalType": "uint256",
22004
- "name": "",
22005
- "type": "uint256"
22006
- }
22007
- ],
22008
- "stateMutability": "view",
22009
- "type": "function"
22010
- },
22011
- {
22012
- "inputs": [],
22013
- "name": "blocksPerYear",
22014
- "outputs": [
22015
- {
22016
- "internalType": "uint256",
22017
- "name": "",
22018
- "type": "uint256"
22019
- }
22020
- ],
22021
- "stateMutability": "view",
22022
- "type": "function"
22023
- },
22024
- {
22025
- "inputs": [
22026
- {
22027
- "internalType": "uint256",
22028
- "name": "cash",
22029
- "type": "uint256"
22030
- },
22031
- {
22032
- "internalType": "uint256",
22033
- "name": "borrows",
22034
- "type": "uint256"
22035
- },
22036
- {
22037
- "internalType": "uint256",
22038
- "name": "reserves",
22039
- "type": "uint256"
22040
- }
22041
- ],
22042
- "name": "getBorrowRate",
22043
- "outputs": [
22044
- {
22045
- "internalType": "uint256",
22046
- "name": "",
22047
- "type": "uint256"
22048
- }
22049
- ],
22050
- "stateMutability": "view",
22051
- "type": "function"
22052
- },
22053
- {
22054
- "inputs": [
22055
- {
22056
- "internalType": "uint256",
22057
- "name": "cash",
22058
- "type": "uint256"
22059
- },
22060
- {
22061
- "internalType": "uint256",
22062
- "name": "borrows",
22063
- "type": "uint256"
22064
- },
22065
- {
22066
- "internalType": "uint256",
22067
- "name": "reserves",
22068
- "type": "uint256"
22069
- },
22070
- {
22071
- "internalType": "uint256",
22072
- "name": "reserveFactorMantissa",
22073
- "type": "uint256"
22074
- }
22075
- ],
22076
- "name": "getSupplyRate",
22077
- "outputs": [
22078
- {
22079
- "internalType": "uint256",
22080
- "name": "",
22081
- "type": "uint256"
22082
- }
22083
- ],
22084
- "stateMutability": "view",
22085
- "type": "function"
22086
- },
22087
21752
  {
22088
21753
  "inputs": [],
22089
- "name": "isInterestRateModel",
21754
+ "name": "pendingOwner",
22090
21755
  "outputs": [
22091
21756
  {
22092
- "internalType": "bool",
21757
+ "internalType": "address",
22093
21758
  "name": "",
22094
- "type": "bool"
21759
+ "type": "address"
22095
21760
  }
22096
21761
  ],
22097
21762
  "stateMutability": "view",
@@ -22099,75 +21764,50 @@ exports.abi = {
22099
21764
  },
22100
21765
  {
22101
21766
  "inputs": [],
22102
- "name": "multiplierPerBlock",
22103
- "outputs": [
22104
- {
22105
- "internalType": "uint256",
22106
- "name": "",
22107
- "type": "uint256"
22108
- }
22109
- ],
22110
- "stateMutability": "view",
21767
+ "name": "renounceOwnership",
21768
+ "outputs": [],
21769
+ "stateMutability": "nonpayable",
22111
21770
  "type": "function"
22112
21771
  },
22113
21772
  {
22114
21773
  "inputs": [
22115
21774
  {
22116
- "internalType": "uint256",
22117
- "name": "cash",
22118
- "type": "uint256"
22119
- },
22120
- {
22121
- "internalType": "uint256",
22122
- "name": "borrows",
22123
- "type": "uint256"
22124
- },
22125
- {
22126
- "internalType": "uint256",
22127
- "name": "reserves",
22128
- "type": "uint256"
22129
- }
22130
- ],
22131
- "name": "utilizationRate",
22132
- "outputs": [
22133
- {
22134
- "internalType": "uint256",
22135
- "name": "",
22136
- "type": "uint256"
21775
+ "internalType": "address",
21776
+ "name": "newOwner",
21777
+ "type": "address"
22137
21778
  }
22138
21779
  ],
22139
- "stateMutability": "pure",
21780
+ "name": "transferOwnership",
21781
+ "outputs": [],
21782
+ "stateMutability": "nonpayable",
22140
21783
  "type": "function"
22141
- }
22142
- ],
22143
- "ZeroInterestRateModel": [
21784
+ },
22144
21785
  {
22145
21786
  "inputs": [
22146
21787
  {
22147
21788
  "internalType": "uint256",
22148
- "name": "cash",
21789
+ "name": "baseRatePerYear",
22149
21790
  "type": "uint256"
22150
21791
  },
22151
21792
  {
22152
21793
  "internalType": "uint256",
22153
- "name": "borrows",
21794
+ "name": "multiplierPerYear",
22154
21795
  "type": "uint256"
22155
21796
  },
22156
21797
  {
22157
21798
  "internalType": "uint256",
22158
- "name": "reserves",
21799
+ "name": "jumpMultiplierPerYear",
22159
21800
  "type": "uint256"
22160
- }
22161
- ],
22162
- "name": "getBorrowRate",
22163
- "outputs": [
21801
+ },
22164
21802
  {
22165
21803
  "internalType": "uint256",
22166
- "name": "",
21804
+ "name": "kink_",
22167
21805
  "type": "uint256"
22168
21806
  }
22169
21807
  ],
22170
- "stateMutability": "view",
21808
+ "name": "updateJumpRateModel",
21809
+ "outputs": [],
21810
+ "stateMutability": "nonpayable",
22171
21811
  "type": "function"
22172
21812
  },
22173
21813
  {
@@ -22186,14 +21826,9 @@ exports.abi = {
22186
21826
  "internalType": "uint256",
22187
21827
  "name": "reserves",
22188
21828
  "type": "uint256"
22189
- },
22190
- {
22191
- "internalType": "uint256",
22192
- "name": "reserveFactorMantissa",
22193
- "type": "uint256"
22194
21829
  }
22195
21830
  ],
22196
- "name": "getSupplyRate",
21831
+ "name": "utilizationRate",
22197
21832
  "outputs": [
22198
21833
  {
22199
21834
  "internalType": "uint256",
@@ -22201,72 +21836,105 @@ exports.abi = {
22201
21836
  "type": "uint256"
22202
21837
  }
22203
21838
  ],
22204
- "stateMutability": "view",
21839
+ "stateMutability": "pure",
22205
21840
  "type": "function"
22206
- },
21841
+ }
21842
+ ],
21843
+ "WhitePaperInterestRateModel": [
22207
21844
  {
22208
- "inputs": [],
22209
- "name": "isInterestRateModel",
22210
- "outputs": [
21845
+ "inputs": [
22211
21846
  {
22212
- "internalType": "bool",
22213
- "name": "",
22214
- "type": "bool"
21847
+ "internalType": "uint256",
21848
+ "name": "blocksPerYearOnChain",
21849
+ "type": "uint256"
21850
+ },
21851
+ {
21852
+ "internalType": "uint256",
21853
+ "name": "baseRatePerYear",
21854
+ "type": "uint256"
21855
+ },
21856
+ {
21857
+ "internalType": "uint256",
21858
+ "name": "multiplierPerYear",
21859
+ "type": "uint256"
22215
21860
  }
22216
21861
  ],
22217
- "stateMutability": "view",
22218
- "type": "function"
21862
+ "stateMutability": "nonpayable",
21863
+ "type": "constructor"
22219
21864
  },
22220
21865
  {
21866
+ "anonymous": false,
22221
21867
  "inputs": [
22222
21868
  {
21869
+ "indexed": false,
22223
21870
  "internalType": "uint256",
22224
- "name": "cash",
21871
+ "name": "blocksPerYear",
22225
21872
  "type": "uint256"
22226
21873
  },
22227
21874
  {
21875
+ "indexed": false,
22228
21876
  "internalType": "uint256",
22229
- "name": "borrows",
21877
+ "name": "baseRatePerBlock",
22230
21878
  "type": "uint256"
22231
21879
  },
22232
21880
  {
21881
+ "indexed": false,
22233
21882
  "internalType": "uint256",
22234
- "name": "reserves",
21883
+ "name": "multiplierPerBlock",
22235
21884
  "type": "uint256"
22236
21885
  }
22237
21886
  ],
22238
- "name": "utilizationRate",
22239
- "outputs": [
21887
+ "name": "NewInterestParams",
21888
+ "type": "event"
21889
+ },
21890
+ {
21891
+ "anonymous": false,
21892
+ "inputs": [
22240
21893
  {
22241
- "internalType": "uint256",
22242
- "name": "",
22243
- "type": "uint256"
21894
+ "indexed": true,
21895
+ "internalType": "address",
21896
+ "name": "previousOwner",
21897
+ "type": "address"
21898
+ },
21899
+ {
21900
+ "indexed": true,
21901
+ "internalType": "address",
21902
+ "name": "newOwner",
21903
+ "type": "address"
22244
21904
  }
22245
21905
  ],
22246
- "stateMutability": "pure",
22247
- "type": "function"
22248
- }
22249
- ],
22250
- "SuTokenRateModel": [
21906
+ "name": "OwnershipTransferStarted",
21907
+ "type": "event"
21908
+ },
22251
21909
  {
21910
+ "anonymous": false,
22252
21911
  "inputs": [
22253
21912
  {
22254
- "internalType": "uint256",
22255
- "name": "initBorrowRate",
22256
- "type": "uint256"
21913
+ "indexed": true,
21914
+ "internalType": "address",
21915
+ "name": "previousOwner",
21916
+ "type": "address"
22257
21917
  },
22258
21918
  {
22259
- "internalType": "uint256",
22260
- "name": "initSupplyRate",
22261
- "type": "uint256"
21919
+ "indexed": true,
21920
+ "internalType": "address",
21921
+ "name": "newOwner",
21922
+ "type": "address"
22262
21923
  }
22263
21924
  ],
21925
+ "name": "OwnershipTransferred",
21926
+ "type": "event"
21927
+ },
21928
+ {
21929
+ "inputs": [],
21930
+ "name": "acceptOwnership",
21931
+ "outputs": [],
22264
21932
  "stateMutability": "nonpayable",
22265
- "type": "constructor"
21933
+ "type": "function"
22266
21934
  },
22267
21935
  {
22268
21936
  "inputs": [],
22269
- "name": "borrowRate",
21937
+ "name": "baseRatePerBlock",
22270
21938
  "outputs": [
22271
21939
  {
22272
21940
  "internalType": "uint256",
@@ -22278,16 +21946,16 @@ exports.abi = {
22278
21946
  "type": "function"
22279
21947
  },
22280
21948
  {
22281
- "inputs": [
21949
+ "inputs": [],
21950
+ "name": "blocksPerYear",
21951
+ "outputs": [
22282
21952
  {
22283
- "internalType": "address",
22284
- "name": "owner_",
22285
- "type": "address"
21953
+ "internalType": "uint256",
21954
+ "name": "",
21955
+ "type": "uint256"
22286
21956
  }
22287
21957
  ],
22288
- "name": "changeOwner",
22289
- "outputs": [],
22290
- "stateMutability": "nonpayable",
21958
+ "stateMutability": "view",
22291
21959
  "type": "function"
22292
21960
  },
22293
21961
  {
@@ -22366,6 +22034,19 @@ exports.abi = {
22366
22034
  "stateMutability": "view",
22367
22035
  "type": "function"
22368
22036
  },
22037
+ {
22038
+ "inputs": [],
22039
+ "name": "multiplierPerBlock",
22040
+ "outputs": [
22041
+ {
22042
+ "internalType": "uint256",
22043
+ "name": "",
22044
+ "type": "uint256"
22045
+ }
22046
+ ],
22047
+ "stateMutability": "view",
22048
+ "type": "function"
22049
+ },
22369
22050
  {
22370
22051
  "inputs": [],
22371
22052
  "name": "owner",
@@ -22380,14 +22061,21 @@ exports.abi = {
22380
22061
  "type": "function"
22381
22062
  },
22382
22063
  {
22383
- "inputs": [
22064
+ "inputs": [],
22065
+ "name": "pendingOwner",
22066
+ "outputs": [
22384
22067
  {
22385
- "internalType": "uint256",
22386
- "name": "rate",
22387
- "type": "uint256"
22068
+ "internalType": "address",
22069
+ "name": "",
22070
+ "type": "address"
22388
22071
  }
22389
22072
  ],
22390
- "name": "setBorrowRate",
22073
+ "stateMutability": "view",
22074
+ "type": "function"
22075
+ },
22076
+ {
22077
+ "inputs": [],
22078
+ "name": "renounceOwnership",
22391
22079
  "outputs": [],
22392
22080
  "stateMutability": "nonpayable",
22393
22081
  "type": "function"
@@ -22395,19 +22083,35 @@ exports.abi = {
22395
22083
  {
22396
22084
  "inputs": [
22397
22085
  {
22398
- "internalType": "uint256",
22399
- "name": "rate",
22400
- "type": "uint256"
22086
+ "internalType": "address",
22087
+ "name": "newOwner",
22088
+ "type": "address"
22401
22089
  }
22402
22090
  ],
22403
- "name": "setSupplyRate",
22091
+ "name": "transferOwnership",
22404
22092
  "outputs": [],
22405
22093
  "stateMutability": "nonpayable",
22406
22094
  "type": "function"
22407
22095
  },
22408
22096
  {
22409
- "inputs": [],
22410
- "name": "supplyRate",
22097
+ "inputs": [
22098
+ {
22099
+ "internalType": "uint256",
22100
+ "name": "cash",
22101
+ "type": "uint256"
22102
+ },
22103
+ {
22104
+ "internalType": "uint256",
22105
+ "name": "borrows",
22106
+ "type": "uint256"
22107
+ },
22108
+ {
22109
+ "internalType": "uint256",
22110
+ "name": "reserves",
22111
+ "type": "uint256"
22112
+ }
22113
+ ],
22114
+ "name": "utilizationRate",
22411
22115
  "outputs": [
22412
22116
  {
22413
22117
  "internalType": "uint256",
@@ -22415,7 +22119,7 @@ exports.abi = {
22415
22119
  "type": "uint256"
22416
22120
  }
22417
22121
  ],
22418
- "stateMutability": "view",
22122
+ "stateMutability": "pure",
22419
22123
  "type": "function"
22420
22124
  }
22421
22125
  ],
@@ -27985,6 +27689,76 @@ exports.abi = {
27985
27689
  "stateMutability": "payable",
27986
27690
  "type": "fallback"
27987
27691
  },
27692
+ {
27693
+ "inputs": [],
27694
+ "name": "admin",
27695
+ "outputs": [
27696
+ {
27697
+ "internalType": "address",
27698
+ "name": "admin_",
27699
+ "type": "address"
27700
+ }
27701
+ ],
27702
+ "stateMutability": "nonpayable",
27703
+ "type": "function"
27704
+ },
27705
+ {
27706
+ "inputs": [
27707
+ {
27708
+ "internalType": "address",
27709
+ "name": "newAdmin",
27710
+ "type": "address"
27711
+ }
27712
+ ],
27713
+ "name": "changeAdmin",
27714
+ "outputs": [],
27715
+ "stateMutability": "nonpayable",
27716
+ "type": "function"
27717
+ },
27718
+ {
27719
+ "inputs": [],
27720
+ "name": "implementation",
27721
+ "outputs": [
27722
+ {
27723
+ "internalType": "address",
27724
+ "name": "implementation_",
27725
+ "type": "address"
27726
+ }
27727
+ ],
27728
+ "stateMutability": "nonpayable",
27729
+ "type": "function"
27730
+ },
27731
+ {
27732
+ "inputs": [
27733
+ {
27734
+ "internalType": "address",
27735
+ "name": "newImplementation",
27736
+ "type": "address"
27737
+ }
27738
+ ],
27739
+ "name": "upgradeTo",
27740
+ "outputs": [],
27741
+ "stateMutability": "nonpayable",
27742
+ "type": "function"
27743
+ },
27744
+ {
27745
+ "inputs": [
27746
+ {
27747
+ "internalType": "address",
27748
+ "name": "newImplementation",
27749
+ "type": "address"
27750
+ },
27751
+ {
27752
+ "internalType": "bytes",
27753
+ "name": "data",
27754
+ "type": "bytes"
27755
+ }
27756
+ ],
27757
+ "name": "upgradeToAndCall",
27758
+ "outputs": [],
27759
+ "stateMutability": "payable",
27760
+ "type": "function"
27761
+ },
27988
27762
  {
27989
27763
  "stateMutability": "payable",
27990
27764
  "type": "receive"
@@ -28013,7 +27787,7 @@ exports.abi = {
28013
27787
  {
28014
27788
  "inputs": [
28015
27789
  {
28016
- "internalType": "contract ITransparentUpgradeableProxy",
27790
+ "internalType": "contract TransparentUpgradeableProxy",
28017
27791
  "name": "proxy",
28018
27792
  "type": "address"
28019
27793
  },
@@ -28031,7 +27805,7 @@ exports.abi = {
28031
27805
  {
28032
27806
  "inputs": [
28033
27807
  {
28034
- "internalType": "contract ITransparentUpgradeableProxy",
27808
+ "internalType": "contract TransparentUpgradeableProxy",
28035
27809
  "name": "proxy",
28036
27810
  "type": "address"
28037
27811
  }
@@ -28050,7 +27824,7 @@ exports.abi = {
28050
27824
  {
28051
27825
  "inputs": [
28052
27826
  {
28053
- "internalType": "contract ITransparentUpgradeableProxy",
27827
+ "internalType": "contract TransparentUpgradeableProxy",
28054
27828
  "name": "proxy",
28055
27829
  "type": "address"
28056
27830
  }
@@ -28102,7 +27876,7 @@ exports.abi = {
28102
27876
  {
28103
27877
  "inputs": [
28104
27878
  {
28105
- "internalType": "contract ITransparentUpgradeableProxy",
27879
+ "internalType": "contract TransparentUpgradeableProxy",
28106
27880
  "name": "proxy",
28107
27881
  "type": "address"
28108
27882
  },
@@ -28120,7 +27894,7 @@ exports.abi = {
28120
27894
  {
28121
27895
  "inputs": [
28122
27896
  {
28123
- "internalType": "contract ITransparentUpgradeableProxy",
27897
+ "internalType": "contract TransparentUpgradeableProxy",
28124
27898
  "name": "proxy",
28125
27899
  "type": "address"
28126
27900
  },