@meterio/sumer-js 0.0.13 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -40
- package/dist/browser/compound.min.js +18 -0
- package/dist/browser/sumer.min.js +18 -1
- package/dist/nodejs/EIP712.js +48 -112
- package/dist/nodejs/EIP712.js.map +1 -1
- package/dist/nodejs/abi.d.ts +1806 -0
- package/dist/nodejs/abi.js +30269 -0
- package/dist/nodejs/abi.js.map +1 -0
- package/dist/nodejs/{vToken.d.ts → cToken.d.ts} +34 -32
- package/dist/nodejs/cToken.js +384 -0
- package/dist/nodejs/cToken.js.map +1 -0
- package/dist/nodejs/comp.d.ts +6 -401
- package/dist/nodejs/comp.js +310 -937
- package/dist/nodejs/comp.js.map +1 -1
- package/dist/nodejs/comptroller.d.ts +3 -2
- package/dist/nodejs/comptroller.js +90 -112
- package/dist/nodejs/comptroller.js.map +1 -1
- package/dist/nodejs/constants/index.d.ts +25 -0
- package/dist/nodejs/constants/index.js +188 -0
- package/dist/nodejs/constants/index.js.map +1 -0
- package/dist/nodejs/constants.d.ts +22 -828
- package/dist/nodejs/constants.js +1093 -354
- package/dist/nodejs/constants.js.map +1 -1
- package/dist/nodejs/eth.d.ts +11 -11
- package/dist/nodejs/eth.js +82 -193
- package/dist/nodejs/eth.js.map +1 -1
- package/dist/nodejs/gov.d.ts +1 -91
- package/dist/nodejs/gov.js +216 -232
- package/dist/nodejs/gov.js.map +1 -1
- package/dist/nodejs/helpers.d.ts +3 -3
- package/dist/nodejs/helpers.js +6 -52
- package/dist/nodejs/helpers.js.map +1 -1
- package/dist/nodejs/index.d.ts +1543 -148
- package/dist/nodejs/index.js +62 -49
- package/dist/nodejs/index.js.map +1 -1
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/AccessControl.d.ts +159 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/AccessControl.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/AccessControl.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/AccessControlEnumerable.d.ts +177 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/AccessControlEnumerable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/AccessControlEnumerable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/IAccessControl.d.ts +147 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/IAccessControl.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/IAccessControl.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/IAccessControlEnumerable.d.ts +165 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/IAccessControlEnumerable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/IAccessControlEnumerable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/Ownable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/Ownable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/Ownable2Step.d.ts +77 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/Ownable2Step.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/Ownable2Step.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/index.d.ts +6 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/access/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/index.d.ts +12 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/IERC1967.d.ts +65 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/IERC1967.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/IERC1967.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.d.ts +25 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/index.d.ts +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.d.ts +65 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.d.ts +65 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/ERC1967/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/Proxy.d.ts +20 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/Proxy.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/Proxy.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.d.ts +25 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/index.d.ts +7 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.d.ts +110 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.d.ts +96 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.d.ts +65 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/index.d.ts +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/transparent/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/security/Pausable.d.ts +55 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/security/Pausable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/security/Pausable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/security/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/security/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +169 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/ERC20.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/ERC20.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +129 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/IERC20.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/IERC20.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.d.ts +187 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.d.ts +201 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +141 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.d.ts +61 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +4 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/index.d.ts +6 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.d.ts +403 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/presets/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/presets/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/ERC20/presets/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/ERC165.d.ts +29 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/ERC165.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/ERC165.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +29 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/IERC165.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/IERC165.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/utils/introspection/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.d.ts +191 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.d.ts +173 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.d.ts +165 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.d.ts +147 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/index.d.ts +4 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/access/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/index.d.ts +6 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +36 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +36 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/index.d.ts +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.d.ts +45 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.d.ts +29 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/index.d.ts +4 -0
- package/dist/nodejs/typechain/@openzeppelin/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/index.js.map +1 -0
- package/dist/nodejs/typechain/@pythnetwork/index.d.ts +2 -0
- package/dist/nodejs/typechain/@pythnetwork/index.js +3 -0
- package/dist/nodejs/typechain/@pythnetwork/index.js.map +1 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/IPyth.d.ts +231 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/IPyth.js +3 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/IPyth.js.map +1 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/IPythEvents.d.ts +67 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/IPythEvents.js +3 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/IPythEvents.js.map +1 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/index.d.ts +2 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/index.js +3 -0
- package/dist/nodejs/typechain/@pythnetwork/pyth-sdk-solidity/index.js.map +1 -0
- package/dist/nodejs/typechain/common.d.ts +50 -0
- package/dist/nodejs/typechain/common.js +3 -0
- package/dist/nodejs/typechain/common.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +846 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +823 -0
- package/dist/nodejs/typechain/contracts/CToken/CEther.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CEther.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +713 -0
- package/dist/nodejs/typechain/contracts/CToken/CToken.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +675 -0
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +903 -0
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/index.d.ts +5 -0
- package/dist/nodejs/typechain/contracts/CToken/index.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/AccountLiquidity.d.ts +243 -0
- package/dist/nodejs/typechain/contracts/Comptroller/AccountLiquidity.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/AccountLiquidity.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +629 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +517 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +1438 -0
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/ComptrollerStorage.d.ts +287 -0
- package/dist/nodejs/typechain/contracts/Comptroller/ComptrollerStorage.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/ComptrollerStorage.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.d.ts +375 -0
- package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/RedemptionManager.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/SortedBorrows.d.ts +422 -0
- package/dist/nodejs/typechain/contracts/Comptroller/SortedBorrows.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/SortedBorrows.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/index.d.ts +7 -0
- package/dist/nodejs/typechain/contracts/Comptroller/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Comptroller/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauser.d.ts +403 -0
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauser.js +3 -0
- package/dist/nodejs/typechain/contracts/ERC20/ERC20MinterBurnerPauser.js.map +1 -0
- package/dist/nodejs/typechain/contracts/ERC20/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/ERC20/index.js +3 -0
- package/dist/nodejs/typechain/contracts/ERC20/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/ITimelock.d.ts +184 -0
- package/dist/nodejs/typechain/contracts/ITimelock.js +3 -0
- package/dist/nodejs/typechain/contracts/ITimelock.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/InterestRateModel.d.ts +59 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/InterestRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/InterestRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModel.d.ts +124 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelV2.d.ts +146 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelV2.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelV2.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/WhitePaperInterestRateModel.d.ts +113 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/WhitePaperInterestRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/WhitePaperInterestRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/ZeroInterestRateModel.d.ts +75 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/ZeroInterestRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/ZeroInterestRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +7 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel.d.ts +91 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/suTokenInterestModel.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/suTokenInterestModel.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/suTokenInterestModel.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IAccountLiquidity.d.ts +57 -0
- package/dist/nodejs/typechain/contracts/Interface/IAccountLiquidity.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IAccountLiquidity.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ICErc20.d.ts +99 -0
- package/dist/nodejs/typechain/contracts/Interface/ICErc20.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/ICErc20.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ICToken.d.ts +611 -0
- package/dist/nodejs/typechain/contracts/Interface/ICToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/ICToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/ICToken.d.ts +198 -0
- package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/ICToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/ICToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IChainlinkFeed.d.ts +59 -0
- package/dist/nodejs/typechain/contracts/Interface/IChainlinkFeed.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IChainlinkFeed.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ICompLogic.d.ts +127 -0
- package/dist/nodejs/typechain/contracts/Interface/ICompLogic.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/ICompLogic.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IComptroller.d.ts +562 -0
- package/dist/nodejs/typechain/contracts/Interface/IComptroller.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IComptroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IEIP20NonStandard.d.ts +161 -0
- package/dist/nodejs/typechain/contracts/Interface/IEIP20NonStandard.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IEIP20NonStandard.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IGovernorAlpha.d.ts +119 -0
- package/dist/nodejs/typechain/contracts/Interface/IGovernorAlpha.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IGovernorAlpha.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IGovernorBravo.d.ts +130 -0
- package/dist/nodejs/typechain/contracts/Interface/IGovernorBravo.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IGovernorBravo.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IInterestRateModel.d.ts +59 -0
- package/dist/nodejs/typechain/contracts/Interface/IInterestRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IInterestRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IPriceOracle.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/Interface/IPriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IPriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IRedemptionManager.d.ts +103 -0
- package/dist/nodejs/typechain/contracts/Interface/IRedemptionManager.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IRedemptionManager.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/ISortedBorrows.d.ts +210 -0
- package/dist/nodejs/typechain/contracts/Interface/ISortedBorrows.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/ISortedBorrows.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IStdReference.d.ts +65 -0
- package/dist/nodejs/typechain/contracts/Interface/IStdReference.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IStdReference.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IUnitroller.d.ts +29 -0
- package/dist/nodejs/typechain/contracts/Interface/IUnitroller.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IUnitroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IVoltPair.d.ts +71 -0
- package/dist/nodejs/typechain/contracts/Interface/IVoltPair.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IVoltPair.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/IWitnetFeed.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Interface/IWitnetFeed.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/IWitnetFeed.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interface/index.d.ts +19 -0
- package/dist/nodejs/typechain/contracts/Interface/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interface/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IAccountLiquidity.d.ts +57 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IAccountLiquidity.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IAccountLiquidity.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICErc20.d.ts +99 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICErc20.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICErc20.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +611 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.d.ts +198 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IChainlinkFeed.d.ts +59 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IChainlinkFeed.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IChainlinkFeed.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +127 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +562 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IEIP20NonStandard.d.ts +161 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IEIP20NonStandard.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IEIP20NonStandard.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IGovernorAlpha.d.ts +119 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IGovernorAlpha.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IGovernorAlpha.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IGovernorBravo.d.ts +130 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IGovernorBravo.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IGovernorBravo.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IInterestRateModel.d.ts +59 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IInterestRateModel.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IInterestRateModel.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPriceOracle.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IRedemptionManager.d.ts +103 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IRedemptionManager.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IRedemptionManager.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ISortedBorrows.d.ts +210 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ISortedBorrows.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ISortedBorrows.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IStdReference.d.ts +65 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IStdReference.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IStdReference.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ITimelock.d.ts +184 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ITimelock.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ITimelock.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IUnitroller.d.ts +29 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IUnitroller.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IUnitroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IVoltPair.d.ts +71 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IVoltPair.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IVoltPair.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IWitnetFeed.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IWitnetFeed.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IWitnetFeed.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +20 -0
- package/dist/nodejs/typechain/contracts/Interfaces/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Multicall2.d.ts +165 -0
- package/dist/nodejs/typechain/contracts/Multicall2.js +3 -0
- package/dist/nodejs/typechain/contracts/Multicall2.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD.d.ts +135 -0
- package/dist/nodejs/typechain/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +320 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracleSafe.d.ts +336 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracleSafe.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracleSafe.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.d.ts +33 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/PriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/PythOracle.d.ts +195 -0
- package/dist/nodejs/typechain/contracts/Oracle/PythOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/PythOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +7 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/IWstMTRG.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/IWstMTRG.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/IWstMTRG.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/WstMTRGOracle.d.ts +132 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/WstMTRGOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/WstMTRGOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/wstMTRGOracle.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/ICToken.d.ts +29 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/ICToken.js +3 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/ICToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/Timelock.d.ts +588 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/Timelock.js +3 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/Timelock.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Timelock.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/index.d.ts +20 -0
- package/dist/nodejs/typechain/contracts/index.js +3 -0
- package/dist/nodejs/typechain/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/proxy/SumerProxy.d.ts +65 -0
- package/dist/nodejs/typechain/contracts/proxy/SumerProxy.js +3 -0
- package/dist/nodejs/typechain/contracts/proxy/SumerProxy.js.map +1 -0
- package/dist/nodejs/typechain/contracts/proxy/SumerProxyAdmin.d.ts +110 -0
- package/dist/nodejs/typechain/contracts/proxy/SumerProxyAdmin.js +3 -0
- package/dist/nodejs/typechain/contracts/proxy/SumerProxyAdmin.js.map +1 -0
- package/dist/nodejs/typechain/contracts/proxy/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/proxy/index.js +3 -0
- package/dist/nodejs/typechain/contracts/proxy/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/CommunalFarm.d.ts +587 -0
- package/dist/nodejs/typechain/contracts/stake/CommunalFarm.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/CommunalFarm.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/FraxGaugeController.d.ts +550 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/FraxGaugeController.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/FraxGaugeController.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/VotingEscrow.d.ts +49 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/VotingEscrow.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/VotingEscrow.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeController.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeFXSRewardsDistributor.d.ts +253 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeFXSRewardsDistributor.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/FraxGaugeFXSRewardsDistributor.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/IFraxGaugeController.d.ts +347 -0
- package/dist/nodejs/typechain/contracts/stake/IFraxGaugeController.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/IFraxGaugeController.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/IFraxGaugeFXSRewardsDistributor.d.ts +161 -0
- package/dist/nodejs/typechain/contracts/stake/IFraxGaugeFXSRewardsDistributor.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/IFraxGaugeFXSRewardsDistributor.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/IUniswapV2Pair.d.ts +396 -0
- package/dist/nodejs/typechain/contracts/stake/IUniswapV2Pair.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/IUniswapV2Pair.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/StakingRewardsMultiGauge.d.ts +791 -0
- package/dist/nodejs/typechain/contracts/stake/StakingRewardsMultiGauge.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/StakingRewardsMultiGauge.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/SmartWalletChecker.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/SmartWalletChecker.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/SmartWalletChecker.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/VeSumer.d.ts +899 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/VeSumer.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/VeSumer.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/VeSumer.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/stake/index.d.ts +10 -0
- package/dist/nodejs/typechain/contracts/stake/index.js +3 -0
- package/dist/nodejs/typechain/contracts/stake/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/AccessControlEnumerable__factory.d.ts +197 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/AccessControlEnumerable__factory.js +267 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/AccessControlEnumerable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.d.ts +165 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.js +224 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/IAccessControlEnumerable__factory.d.ts +173 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/IAccessControlEnumerable__factory.js +235 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/IAccessControlEnumerable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.d.ts +141 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.js +192 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/Ownable2Step__factory.d.ts +79 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/Ownable2Step__factory.js +111 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/Ownable2Step__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +48 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/Ownable__factory.js +72 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/Ownable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/index.d.ts +6 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/index.js +19 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/access/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/index.d.ts +6 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/index.js +36 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.d.ts +42 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.js +65 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +75 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js +109 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.d.ts +42 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.js +65 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.js +11 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.d.ts +13 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.js +28 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/index.js +35 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +137 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js +189 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.d.ts +96 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.js +135 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts +79 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.js +114 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/transparent/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/security/Pausable__factory.d.ts +37 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/security/Pausable__factory.js +59 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/security/Pausable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/security/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/security/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +240 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +326 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +147 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +203 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.d.ts +237 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.js +321 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable__factory.d.ts +243 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable__factory.js +329 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +177 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +242 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.d.ts +65 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.js +95 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +15 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/index.js +36 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.d.ts +530 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.js +701 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/ERC20/presets/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/index.js +31 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js +31 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.js +39 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js +39 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/index.js +11 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/utils/introspection/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable__factory.d.ts +207 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable__factory.js +280 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.d.ts +175 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.js +237 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable__factory.d.ts +173 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable__factory.js +235 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.d.ts +141 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.js +192 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.js +15 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/index.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.js +31 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.d.ts +31 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.js +52 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.js +39 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.js +11 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/index.js +32 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/index.js +31 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/IPythEvents__factory.d.ts +47 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/IPythEvents__factory.js +70 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/IPythEvents__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/IPyth__factory.d.ts +366 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/IPyth__factory.js +489 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/IPyth__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/index.js +11 -0
- package/dist/nodejs/typechain/factories/@pythnetwork/pyth-sdk-solidity/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1374 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1784 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1311 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1698 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +865 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +1130 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +1089 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +1413 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1452 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1886 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +5 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js +17 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +312 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +417 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +752 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +989 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +756 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +989 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +396 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +527 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +2056 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +2676 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +522 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +691 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +561 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +743 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.d.ts +7 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js +21 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.d.ts +534 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.js +706 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/ERC20MinterBurnerPauser__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/index.js +9 -0
- package/dist/nodejs/typechain/factories/contracts/ERC20/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/ITimelock__factory.d.ts +188 -0
- package/dist/nodejs/typechain/factories/contracts/ITimelock__factory.js +250 -0
- package/dist/nodejs/typechain/factories/contracts/ITimelock__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.d.ts +65 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.js +96 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/InterestRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.d.ts +237 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.js +318 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelV2__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.d.ts +197 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.js +267 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.d.ts +168 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js +230 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.d.ts +102 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.js +145 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/ZeroInterestRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +6 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +41 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.d.ts +152 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.js +210 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/SuTokenRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/suTokenInterestModel.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IAccountLiquidity__factory.d.ts +67 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IAccountLiquidity__factory.js +98 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IAccountLiquidity__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICErc20__factory.d.ts +141 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICErc20__factory.js +200 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICErc20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/ICToken__factory.d.ts +357 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/ICToken__factory.js +481 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/ICToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICToken__factory.d.ts +705 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICToken__factory.js +922 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IChainlinkFeed__factory.d.ts +43 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IChainlinkFeed__factory.js +66 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IChainlinkFeed__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICompLogic__factory.d.ts +133 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICompLogic__factory.js +184 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ICompLogic__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IComptroller__factory.d.ts +803 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IComptroller__factory.js +1052 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IComptroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IEIP20NonStandard__factory.d.ts +177 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IEIP20NonStandard__factory.js +240 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IEIP20NonStandard__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorAlpha__factory.d.ts +105 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorAlpha__factory.js +147 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorAlpha__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorBravo__factory.d.ts +119 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorBravo__factory.js +166 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorBravo__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IInterestRateModel__factory.d.ts +65 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IInterestRateModel__factory.js +96 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IInterestRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IPriceOracle__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IPriceOracle__factory.js +58 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IPriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IRedemptionManager__factory.d.ts +147 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IRedemptionManager__factory.js +204 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IRedemptionManager__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ISortedBorrows__factory.d.ts +284 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ISortedBorrows__factory.js +382 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/ISortedBorrows__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IStdReference__factory.d.ts +69 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IStdReference__factory.js +102 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IStdReference__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IUnitroller__factory.d.ts +27 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IUnitroller__factory.js +46 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IUnitroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IVoltPair__factory.d.ts +61 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IVoltPair__factory.js +89 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IVoltPair__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IWitnetFeed__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IWitnetFeed__factory.js +33 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/IWitnetFeed__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/index.d.ts +18 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/index.js +65 -0
- package/dist/nodejs/typechain/factories/contracts/Interface/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IAccountLiquidity__factory.d.ts +67 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IAccountLiquidity__factory.js +98 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IAccountLiquidity__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICErc20__factory.d.ts +141 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICErc20__factory.js +200 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICErc20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.d.ts +357 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js +481 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +705 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +922 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IChainlinkFeed__factory.d.ts +43 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IChainlinkFeed__factory.js +66 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IChainlinkFeed__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +133 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +184 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +803 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +1052 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP20NonStandard__factory.d.ts +177 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP20NonStandard__factory.js +240 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP20NonStandard__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IGovernorAlpha__factory.d.ts +105 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IGovernorAlpha__factory.js +147 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IGovernorAlpha__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IGovernorBravo__factory.d.ts +119 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IGovernorBravo__factory.js +166 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IGovernorBravo__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IInterestRateModel__factory.d.ts +65 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IInterestRateModel__factory.js +96 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IInterestRateModel__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPriceOracle__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPriceOracle__factory.js +58 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.d.ts +147 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.js +204 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IRedemptionManager__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ISortedBorrows__factory.d.ts +284 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ISortedBorrows__factory.js +382 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ISortedBorrows__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IStdReference__factory.d.ts +69 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IStdReference__factory.js +102 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IStdReference__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.d.ts +188 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.js +250 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IUnitroller__factory.d.ts +27 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IUnitroller__factory.js +46 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IUnitroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IVoltPair__factory.d.ts +61 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IVoltPair__factory.js +89 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IVoltPair__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IWitnetFeed__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IWitnetFeed__factory.js +33 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IWitnetFeed__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +19 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +67 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.d.ts +257 -0
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.js +351 -0
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.d.ts +146 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.js +199 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/ChainlinkFeedAdaptor_ETHToUSD__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.d.ts +414 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.js +547 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracleSafe__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +394 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +521 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle__factory.d.ts +31 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle__factory.js +52 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PythOracle__factory.d.ts +254 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PythOracle__factory.js +343 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/PythOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +6 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +41 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/IWstMTRG__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/IWstMTRG__factory.js +33 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/IWstMTRG__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/WstMTRGOracle__factory.d.ts +272 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/WstMTRGOracle__factory.js +369 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/WstMTRGOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/wstMTRGOracle.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/ICToken__factory.d.ts +27 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/ICToken__factory.js +46 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/ICToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.d.ts +672 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.js +879 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/index.d.ts +11 -0
- package/dist/nodejs/typechain/factories/contracts/index.js +43 -0
- package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.d.ts +137 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js +189 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxyAdmin__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.d.ts +79 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js +114 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/SumerProxy__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/proxy/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.d.ts +813 -0
- package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js +1064 -0
- package/dist/nodejs/typechain/factories/contracts/stake/CommunalFarm__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/FraxGaugeController__factory.d.ts +781 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/FraxGaugeController__factory.js +1034 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/FraxGaugeController__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/VotingEscrow__factory.d.ts +58 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/VotingEscrow__factory.js +89 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/VotingEscrow__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeController.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.d.ts +335 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.js +446 -0
- package/dist/nodejs/typechain/factories/contracts/stake/FraxGaugeFXSRewardsDistributor__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IFraxGaugeController__factory.d.ts +552 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IFraxGaugeController__factory.js +741 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IFraxGaugeController__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IFraxGaugeFXSRewardsDistributor__factory.d.ts +215 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IFraxGaugeFXSRewardsDistributor__factory.js +292 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IFraxGaugeFXSRewardsDistributor__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IUniswapV2Pair__factory.d.ts +512 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IUniswapV2Pair__factory.js +671 -0
- package/dist/nodejs/typechain/factories/contracts/stake/IUniswapV2Pair__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.d.ts +1153 -0
- package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.js +1508 -0
- package/dist/nodejs/typechain/factories/contracts/stake/StakingRewardsMultiGauge__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/SmartWalletChecker__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/SmartWalletChecker__factory.js +39 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/SmartWalletChecker__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1232 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1612 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/stake/index.d.ts +8 -0
- package/dist/nodejs/typechain/factories/contracts/stake/index.js +44 -0
- package/dist/nodejs/typechain/factories/contracts/stake/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/index.js +33 -0
- package/dist/nodejs/typechain/factories/index.js.map +1 -0
- package/dist/nodejs/typechain/hardhat.d.ts +1773 -0
- package/dist/nodejs/typechain/index.d.ts +193 -0
- package/dist/nodejs/typechain/index.js +215 -0
- package/dist/nodejs/typechain/index.js.map +1 -0
- package/dist/nodejs/{types/index.d.ts → types.d.ts} +21 -34
- package/dist/nodejs/types.js +3 -0
- package/dist/nodejs/types.js.map +1 -0
- package/dist/nodejs/util.d.ts +6 -3
- package/dist/nodejs/util.js +57 -50
- package/dist/nodejs/util.js.map +1 -1
- package/package.json +38 -24
- package/.eslintrc.js +0 -20
- package/LICENSE +0 -12
- package/_config.yml +0 -3
- package/dist/nodejs/api.d.ts +0 -111
- package/dist/nodejs/api.js +0 -200
- package/dist/nodejs/api.js.map +0 -1
- package/dist/nodejs/priceFeed.d.ts +0 -34
- package/dist/nodejs/priceFeed.js +0 -194
- package/dist/nodejs/priceFeed.js.map +0 -1
- package/dist/nodejs/test.d.ts +0 -1
- package/dist/nodejs/test.js +0 -6
- package/dist/nodejs/test.js.map +0 -1
- package/dist/nodejs/types/index.js +0 -3
- package/dist/nodejs/types/index.js.map +0 -1
- package/dist/nodejs/vToken.js +0 -421
- package/dist/nodejs/vToken.js.map +0 -1
- package/docs/assets/css/main.css +0 -2679
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -1
- package/docs/assets/js/search.json +0 -1
- package/docs/globals.html +0 -145
- package/docs/index.html +0 -351
- package/docs/modules/_api_.html +0 -361
- package/docs/modules/_comp_.html +0 -1016
- package/docs/modules/_comptroller_.html +0 -241
- package/docs/modules/_constants_.html +0 -96
- package/docs/modules/_eip712_.html +0 -96
- package/docs/modules/_eth_.html +0 -339
- package/docs/modules/_gov_.html +0 -336
- package/docs/modules/_helpers_.html +0 -96
- package/docs/modules/_index_.html +0 -196
- package/docs/modules/_pricefeed_.html +0 -197
- package/docs/modules/_types_index_.html +0 -96
- package/docs/modules/_util_.html +0 -269
- package/docs/modules/_vtoken_.html +0 -423
- package/examples/README.md +0 -18
- package/examples/nodejs/balanceOf.js +0 -23
- package/examples/nodejs/borrow.js +0 -52
- package/examples/nodejs/config.js +0 -3
- package/examples/nodejs/eth_call.js +0 -21
- package/examples/nodejs/eth_sendTransaction.js +0 -42
- package/examples/nodejs/getAddress.js +0 -8
- package/examples/nodejs/getPrice.js +0 -21
- package/examples/nodejs/redeem.js +0 -32
- package/examples/nodejs/repayBorrow.js +0 -56
- package/examples/nodejs/sdrTokenMetadata.js +0 -21
- package/examples/nodejs/supply.js +0 -28
- package/examples/web/index.html +0 -580
- package/examples/web/ropsten.html +0 -581
- package/examples/web/ropstenNative.html +0 -581
- package/rollup.config.ts +0 -41
- package/scripts/README.md +0 -7
- package/scripts/venus-docs.js +0 -236
- package/src/EIP712.ts +0 -153
- package/src/api.ts +0 -212
- package/src/comp.ts +0 -911
- package/src/comptroller.ts +0 -127
- package/src/constants.ts +0 -394
- package/src/eth.ts +0 -351
- package/src/eth.ts.web3 +0 -320
- package/src/gov.ts +0 -209
- package/src/helpers.ts +0 -19
- package/src/index.ts +0 -117
- package/src/priceFeed.ts +0 -169
- package/src/types/index.ts +0 -233
- package/src/util.ts +0 -227
- package/src/vToken.ts +0 -419
- package/test/eth.test.js +0 -12
- package/tsconfig.json +0 -12
- package/typedoc.json +0 -9
- package/unitroller.js +0 -45
package/dist/nodejs/constants.js
CHANGED
|
@@ -1,370 +1,1109 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
exports.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEther = exports.getDecimalsOfUnderly = exports.getDecimals = exports.isUnderlyAllowed = exports.isCTokenAllowed = exports.getName = exports.getAddress = exports.getRateModals = exports.getTokenPairs = exports.constants = exports.abi = void 0;
|
|
4
|
+
var abi_1 = require("./abi");
|
|
5
|
+
Object.defineProperty(exports, "abi", { enumerable: true, get: function () { return abi_1.abi; } });
|
|
6
|
+
const defPair = (ctokenSym, underlySym, ctokenDecimal = 18, underlyDecimal = 18, ctokenIsEther = false) => {
|
|
7
|
+
return { ctokenSym, underlySym, ctokenDecimal, underlyDecimal, ctokenIsEther };
|
|
8
|
+
};
|
|
9
|
+
const tokenPairs = {
|
|
10
|
+
kcc: [
|
|
11
|
+
defPair('cUSDT', 'USDT'),
|
|
12
|
+
defPair('cETH', 'ETH'),
|
|
13
|
+
defPair('cBTCK', 'BTCK'),
|
|
14
|
+
defPair('cUSDC', 'USDC'),
|
|
15
|
+
defPair('csuUSD', 'suUSD'),
|
|
16
|
+
defPair('csuBTC', 'suBTC'),
|
|
17
|
+
defPair('csuETH', 'suETH'),
|
|
18
|
+
// defPair('cKCS', 'KCS', 18, 18, true),
|
|
19
|
+
],
|
|
20
|
+
kcctest: [
|
|
21
|
+
defPair('cUSDT', 'USDT'),
|
|
22
|
+
defPair('cETH', 'ETH'),
|
|
23
|
+
defPair('cBTCK', 'BTCK'),
|
|
24
|
+
defPair('cUSDC', 'USDC'),
|
|
25
|
+
defPair('csuUSD', 'suUSD'),
|
|
26
|
+
defPair('csuBTC', 'suBTC'),
|
|
27
|
+
defPair('csuETH', 'suETH'),
|
|
28
|
+
// defPair('cTKCS', 'TKCS', 18, 18, true),
|
|
29
|
+
],
|
|
30
|
+
rinkeby: [
|
|
31
|
+
defPair('cUSDT', 'USDT'),
|
|
32
|
+
// defPair('cMTRG', 'MTRG'),
|
|
33
|
+
defPair('cWBTC', 'WBTC'),
|
|
34
|
+
defPair('cUSDC', 'USDC'),
|
|
35
|
+
defPair('csuUSD', 'suUSD'),
|
|
36
|
+
defPair('csuBTC', 'suBTC'),
|
|
37
|
+
defPair('csuETH', 'suETH'),
|
|
38
|
+
defPair('cETH', 'ETH', 18, 18, true),
|
|
39
|
+
],
|
|
40
|
+
metermain: [
|
|
41
|
+
{
|
|
42
|
+
ctokenSym: 'sdrUSDC.eth',
|
|
43
|
+
underlySym: 'USDC.eth',
|
|
44
|
+
ctokenDecimal: 6,
|
|
45
|
+
underlyDecimal: 6,
|
|
46
|
+
ctokenIsEther: false,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
ctokenSym: 'sdrUSDT.eth',
|
|
50
|
+
underlySym: 'USDT.eth',
|
|
51
|
+
ctokenDecimal: 6,
|
|
52
|
+
underlyDecimal: 6,
|
|
53
|
+
ctokenIsEther: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
ctokenSym: 'sdrMTRG',
|
|
57
|
+
underlySym: 'MTRG',
|
|
58
|
+
ctokenDecimal: 18,
|
|
59
|
+
underlyDecimal: 18,
|
|
60
|
+
ctokenIsEther: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
ctokenSym: 'sdrwstMTRG',
|
|
64
|
+
underlySym: 'wstMTRG',
|
|
65
|
+
ctokenDecimal: 18,
|
|
66
|
+
underlyDecimal: 18,
|
|
67
|
+
ctokenIsEther: false,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
ctokenSym: 'sdrETH',
|
|
71
|
+
underlySym: 'ETH',
|
|
72
|
+
ctokenDecimal: 18,
|
|
73
|
+
underlyDecimal: 18,
|
|
74
|
+
ctokenIsEther: false,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
ctokenSym: 'sdrsuUSD',
|
|
78
|
+
underlySym: 'suUSD',
|
|
79
|
+
ctokenDecimal: 18,
|
|
80
|
+
underlyDecimal: 18,
|
|
81
|
+
ctokenIsEther: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
ctokenSym: 'sdrsuETH',
|
|
85
|
+
underlySym: 'suETH',
|
|
86
|
+
ctokenDecimal: 18,
|
|
87
|
+
underlyDecimal: 18,
|
|
88
|
+
ctokenIsEther: false,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
metertest: [
|
|
92
|
+
{
|
|
93
|
+
ctokenSym: 'sdrUSDC',
|
|
94
|
+
underlySym: 'USDC',
|
|
95
|
+
ctokenDecimal: 6,
|
|
96
|
+
underlyDecimal: 6,
|
|
97
|
+
ctokenIsEther: false,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
ctokenSym: 'sdrUSDT',
|
|
101
|
+
underlySym: 'USDT',
|
|
102
|
+
ctokenDecimal: 6,
|
|
103
|
+
underlyDecimal: 6,
|
|
104
|
+
ctokenIsEther: false,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
ctokenSym: 'sdrMTRG',
|
|
108
|
+
underlySym: 'MTRG',
|
|
109
|
+
ctokenDecimal: 18,
|
|
110
|
+
underlyDecimal: 18,
|
|
111
|
+
ctokenIsEther: false,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
ctokenSym: 'sdrwstMTRG',
|
|
115
|
+
underlySym: 'wstMTRG',
|
|
116
|
+
ctokenDecimal: 18,
|
|
117
|
+
underlyDecimal: 18,
|
|
118
|
+
ctokenIsEther: false,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
ctokenSym: 'sdrETH',
|
|
122
|
+
underlySym: 'ETH',
|
|
123
|
+
ctokenDecimal: 18,
|
|
124
|
+
underlyDecimal: 18,
|
|
125
|
+
ctokenIsEther: false,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
ctokenSym: 'sdrsuUSD',
|
|
129
|
+
underlySym: 'suUSD',
|
|
130
|
+
ctokenDecimal: 18,
|
|
131
|
+
underlyDecimal: 18,
|
|
132
|
+
ctokenIsEther: false,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
ctokenSym: 'sdrsuETH',
|
|
136
|
+
underlySym: 'suETH',
|
|
137
|
+
ctokenDecimal: 18,
|
|
138
|
+
underlyDecimal: 18,
|
|
139
|
+
ctokenIsEther: false,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
ctokenSym: 'sdrMTR',
|
|
143
|
+
underlySym: 'MTR',
|
|
144
|
+
ctokenDecimal: 18,
|
|
145
|
+
underlyDecimal: 18,
|
|
146
|
+
ctokenIsEther: true,
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
basetest: [
|
|
150
|
+
{
|
|
151
|
+
ctokenSym: 'sdrUSDC',
|
|
152
|
+
underlySym: 'USDC',
|
|
153
|
+
ctokenDecimal: 6,
|
|
154
|
+
underlyDecimal: 6,
|
|
155
|
+
ctokenIsEther: false,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
ctokenSym: 'sdrUSDT',
|
|
159
|
+
underlySym: 'USDT',
|
|
160
|
+
ctokenDecimal: 6,
|
|
161
|
+
underlyDecimal: 6,
|
|
162
|
+
ctokenIsEther: false,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
ctokenSym: 'sdrBTC',
|
|
166
|
+
underlySym: 'BTC',
|
|
167
|
+
ctokenDecimal: 8,
|
|
168
|
+
underlyDecimal: 8,
|
|
169
|
+
ctokenIsEther: false,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
ctokenSym: 'sdrsuUSD',
|
|
173
|
+
underlySym: 'suUSD',
|
|
174
|
+
ctokenDecimal: 18,
|
|
175
|
+
underlyDecimal: 18,
|
|
176
|
+
ctokenIsEther: false,
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
ctokenSym: 'sdrsuETH',
|
|
180
|
+
underlySym: 'suETH',
|
|
181
|
+
ctokenDecimal: 18,
|
|
182
|
+
underlyDecimal: 18,
|
|
183
|
+
ctokenIsEther: false,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
ctokenSym: 'sdrsuBTC',
|
|
187
|
+
underlySym: 'suBTC',
|
|
188
|
+
ctokenDecimal: 18,
|
|
189
|
+
underlyDecimal: 18,
|
|
190
|
+
ctokenIsEther: false,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
ctokenSym: 'sdrETH',
|
|
194
|
+
underlySym: 'ETH',
|
|
195
|
+
ctokenDecimal: 18,
|
|
196
|
+
underlyDecimal: 18,
|
|
197
|
+
ctokenIsEther: true,
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
sepolia: [
|
|
201
|
+
{
|
|
202
|
+
ctokenSym: 'sdrUSDC',
|
|
203
|
+
underlySym: 'USDC',
|
|
204
|
+
ctokenDecimal: 6,
|
|
205
|
+
underlyDecimal: 6,
|
|
206
|
+
ctokenIsEther: false,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
ctokenSym: 'sdrDAI',
|
|
210
|
+
underlySym: 'DAI',
|
|
211
|
+
ctokenDecimal: 18,
|
|
212
|
+
underlyDecimal: 18,
|
|
213
|
+
ctokenIsEther: false,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
ctokenSym: 'sdrsuUSD',
|
|
217
|
+
underlySym: 'suUSD',
|
|
218
|
+
ctokenDecimal: 18,
|
|
219
|
+
underlyDecimal: 18,
|
|
220
|
+
ctokenIsEther: false,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
ctokenSym: 'sdrsuETH',
|
|
224
|
+
underlySym: 'suETH',
|
|
225
|
+
ctokenDecimal: 18,
|
|
226
|
+
underlyDecimal: 18,
|
|
227
|
+
ctokenIsEther: false,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
ctokenSym: 'sdrETH',
|
|
231
|
+
underlySym: 'ETH',
|
|
232
|
+
ctokenDecimal: 18,
|
|
233
|
+
underlyDecimal: 18,
|
|
234
|
+
ctokenIsEther: true,
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
zktest: [
|
|
238
|
+
defPair('cETH', 'ETH', 18, 18, true),
|
|
239
|
+
defPair('cBTC', 'BTC', 8, 8),
|
|
240
|
+
defPair('cUSDC', 'USDC', 6, 6),
|
|
241
|
+
defPair('cDAI', 'DAI'),
|
|
242
|
+
defPair('cLINK', 'LINK'),
|
|
243
|
+
defPair('csuETH', 'suETH'),
|
|
244
|
+
defPair('csuBTC', 'suBTC'),
|
|
245
|
+
defPair('csuUSD', 'suUSD'),
|
|
246
|
+
],
|
|
247
|
+
meter: [
|
|
248
|
+
{
|
|
249
|
+
ctokenSym: 'sdrUSDC.eth',
|
|
250
|
+
underlySym: 'USDC.eth',
|
|
251
|
+
ctokenDecimal: 6,
|
|
252
|
+
underlyDecimal: 6,
|
|
253
|
+
ctokenIsEther: false,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
ctokenSym: 'sdrUSDT.eth',
|
|
257
|
+
underlySym: 'USDT.eth',
|
|
258
|
+
ctokenDecimal: 6,
|
|
259
|
+
underlyDecimal: 6,
|
|
260
|
+
ctokenIsEther: false,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
ctokenSym: 'sdrMTRG',
|
|
264
|
+
underlySym: 'MTRG',
|
|
265
|
+
ctokenDecimal: 18,
|
|
266
|
+
underlyDecimal: 18,
|
|
267
|
+
ctokenIsEther: false,
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
ctokenSym: 'sdrwstMTRG',
|
|
271
|
+
underlySym: 'wstMTRG',
|
|
272
|
+
ctokenDecimal: 18,
|
|
273
|
+
underlyDecimal: 18,
|
|
274
|
+
ctokenIsEther: false,
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
ctokenSym: 'sdrETH',
|
|
278
|
+
underlySym: 'ETH',
|
|
279
|
+
ctokenDecimal: 18,
|
|
280
|
+
underlyDecimal: 18,
|
|
281
|
+
ctokenIsEther: false,
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
ctokenSym: 'sdrsuUSD',
|
|
285
|
+
underlySym: 'suUSD',
|
|
286
|
+
ctokenDecimal: 18,
|
|
287
|
+
underlyDecimal: 18,
|
|
288
|
+
ctokenIsEther: false,
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
ctokenSym: 'sdrsuETH',
|
|
292
|
+
underlySym: 'suETH',
|
|
293
|
+
ctokenDecimal: 18,
|
|
294
|
+
underlyDecimal: 18,
|
|
295
|
+
ctokenIsEther: false,
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
arbitrum: [
|
|
299
|
+
{
|
|
300
|
+
ctokenSym: 'sdrUSDC',
|
|
301
|
+
underlySym: 'USDC',
|
|
302
|
+
ctokenDecimal: 6,
|
|
303
|
+
underlyDecimal: 6,
|
|
304
|
+
ctokenIsEther: false,
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
ctokenSym: 'sdrUSDT',
|
|
308
|
+
underlySym: 'USDT',
|
|
309
|
+
ctokenDecimal: 6,
|
|
310
|
+
underlyDecimal: 6,
|
|
311
|
+
ctokenIsEther: false,
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
ctokenSym: 'sdrDAI',
|
|
315
|
+
underlySym: 'DAI',
|
|
316
|
+
ctokenDecimal: 18,
|
|
317
|
+
underlyDecimal: 18,
|
|
318
|
+
ctokenIsEther: false,
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
ctokenSym: 'sdrwstETH',
|
|
322
|
+
underlySym: 'wstETH',
|
|
323
|
+
ctokenDecimal: 18,
|
|
324
|
+
underlyDecimal: 18,
|
|
325
|
+
ctokenIsEther: false,
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
ctokenSym: 'sdrRETH',
|
|
329
|
+
underlySym: 'RETH',
|
|
330
|
+
ctokenDecimal: 18,
|
|
331
|
+
underlyDecimal: 18,
|
|
332
|
+
ctokenIsEther: false,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
ctokenSym: 'sdrWBTC',
|
|
336
|
+
underlySym: 'WBTC',
|
|
337
|
+
ctokenDecimal: 8,
|
|
338
|
+
underlyDecimal: 8,
|
|
339
|
+
ctokenIsEther: false,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
ctokenSym: 'sdrARB',
|
|
343
|
+
underlySym: 'ARB',
|
|
344
|
+
ctokenDecimal: 18,
|
|
345
|
+
underlyDecimal: 18,
|
|
346
|
+
ctokenIsEther: false,
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
ctokenSym: 'sdrsuUSD',
|
|
350
|
+
underlySym: 'suUSD',
|
|
351
|
+
ctokenDecimal: 18,
|
|
352
|
+
underlyDecimal: 18,
|
|
353
|
+
ctokenIsEther: false,
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
ctokenSym: 'sdrsuETH',
|
|
357
|
+
underlySym: 'suETH',
|
|
358
|
+
ctokenDecimal: 18,
|
|
359
|
+
underlyDecimal: 18,
|
|
360
|
+
ctokenIsEther: false,
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
ctokenSym: 'sdrsuBTC',
|
|
364
|
+
underlySym: 'suBTC',
|
|
365
|
+
ctokenDecimal: 18,
|
|
366
|
+
underlyDecimal: 18,
|
|
367
|
+
ctokenIsEther: false,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
ctokenSym: 'sdrETH',
|
|
371
|
+
underlySym: 'ETH',
|
|
372
|
+
ctokenDecimal: 18,
|
|
373
|
+
underlyDecimal: 18,
|
|
374
|
+
ctokenIsEther: true,
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
base: [
|
|
378
|
+
{
|
|
379
|
+
ctokenSym: 'sdrUSDC',
|
|
380
|
+
underlySym: 'USDC',
|
|
381
|
+
ctokenDecimal: 6,
|
|
382
|
+
underlyDecimal: 6,
|
|
383
|
+
ctokenIsEther: false,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
ctokenSym: 'sdrUSDbc',
|
|
387
|
+
underlySym: 'USDbc',
|
|
388
|
+
ctokenDecimal: 6,
|
|
389
|
+
underlyDecimal: 6,
|
|
390
|
+
ctokenIsEther: false,
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
ctokenSym: 'sdrDAI',
|
|
394
|
+
underlySym: 'DAI',
|
|
395
|
+
ctokenDecimal: 18,
|
|
396
|
+
underlyDecimal: 18,
|
|
397
|
+
ctokenIsEther: false,
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
ctokenSym: 'sdrwstETH',
|
|
401
|
+
underlySym: 'wstETH',
|
|
402
|
+
ctokenDecimal: 18,
|
|
403
|
+
underlyDecimal: 18,
|
|
404
|
+
ctokenIsEther: false,
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
ctokenSym: 'sdrcbETH',
|
|
408
|
+
underlySym: 'cbETH',
|
|
409
|
+
ctokenDecimal: 18,
|
|
410
|
+
underlyDecimal: 18,
|
|
411
|
+
ctokenIsEther: false,
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
ctokenSym: 'sdrsuUSD',
|
|
415
|
+
underlySym: 'suUSD',
|
|
416
|
+
ctokenDecimal: 18,
|
|
417
|
+
underlyDecimal: 18,
|
|
418
|
+
ctokenIsEther: false,
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
ctokenSym: 'sdrsuETH',
|
|
422
|
+
underlySym: 'suETH',
|
|
423
|
+
ctokenDecimal: 18,
|
|
424
|
+
underlyDecimal: 18,
|
|
425
|
+
ctokenIsEther: false,
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
ctokenSym: 'sdrETH',
|
|
429
|
+
underlySym: 'ETH',
|
|
430
|
+
ctokenDecimal: 18,
|
|
431
|
+
underlyDecimal: 18,
|
|
432
|
+
ctokenIsEther: true,
|
|
433
|
+
},
|
|
434
|
+
],
|
|
57
435
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
436
|
+
const symbols = {};
|
|
437
|
+
for (const network in tokenPairs) {
|
|
438
|
+
const pairs = tokenPairs[network];
|
|
439
|
+
for (const p of pairs) {
|
|
440
|
+
symbols[p.ctokenSym] = p.ctokenSym;
|
|
441
|
+
symbols[p.underlySym] = p.underlySym;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
// Publicly revealed on the parent class
|
|
445
|
+
exports.constants = Object.assign({ PriceFeed: 'PriceFeed', Maximillion: 'Maximillion', CompoundLens: 'CompoundLens', GovernorBravo: 'GovernorBravo', Comptroller: 'Comptroller', Reservoir: 'Reservoir', UnderwriterAdmin: 'UnderwriterAdmin', PriceOracle: 'PriceOracle', StdComptroller: 'StdComptroller', WhitepaperInterestRate: 'WhitepaperInterestRate' }, symbols);
|
|
446
|
+
const address = {
|
|
447
|
+
meter: {
|
|
448
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
449
|
+
SUMER: '0x553d713e0fb958932b6c40abaf0b5a1ffae73da2',
|
|
450
|
+
CompoundLens: '0xA2260F80bb6104d9520d4A7175FeF01F894Eb777',
|
|
451
|
+
FeedPriceOracle: '0xc552E5fcDBc1d9f3E8352961D3A1B62E5E34bd79',
|
|
452
|
+
ZeroInterestRateModel: '0x561f62bd3228B85015CCA2E86C9a709061d96A91',
|
|
453
|
+
AccountLiquidityImpl: '0x44293e4b4e16BE8f9d924FA5f63C5851d83c758e',
|
|
454
|
+
AccountLiquidity: '0x7cBB9605f439d5106506259f5B3112801Ea18084',
|
|
455
|
+
Comptroller: '0x1f90dB121B88d626Ce99B4996f67b0F10e639ae7',
|
|
456
|
+
Unitroller: '0xcB4cdDA50C1B6B0E33F544c98420722093B7Aa88',
|
|
457
|
+
'USDC.eth': '0xd86e243fc0007e6226b07c9a50c9d70d78299eb5',
|
|
458
|
+
'sdrUSDC.eth': '0xC211a250FC30122ee107aC9Acf6686110339520f',
|
|
459
|
+
'USDT.eth': '0x5fa41671c48e3c951afc30816947126ccc8c162e',
|
|
460
|
+
'sdrUSDT.eth': '0xaCEDC263FF6De824B38cAeAAC1FD877b1a7344a1',
|
|
461
|
+
MTRG: '0x228ebbee999c6a7ad74a6130e81b12f9fe237ba3',
|
|
462
|
+
sdrMTRG: '0x6Ff2fB3F8F175df0A39C344de81A4aaaB05c49eB',
|
|
463
|
+
wstMTRG: '0xe2de616fbd8cb9180b26fcfb1b761a232fe56717',
|
|
464
|
+
sdrwstMTRG: '0x318F6863a8c516dF9C5941AEb328A40f15f525F9',
|
|
465
|
+
ETH: '0x983147fb73a45fc7f8b4dfa1cd61bdc7b111e5b6',
|
|
466
|
+
sdrETH: '0x52e245606Dd37A9addcD2Bb523d319596eB4b851',
|
|
467
|
+
suUSD: '0x8BF591Eae535f93a242D5A954d3Cde648b48A5A8',
|
|
468
|
+
sdrsuUSD: '0x755A39999FE536Ec327Cb84110383BFc30fd0F4D',
|
|
469
|
+
suETH: '0x1c22531AA9747d76fFF8F0A43b37954ca67d28e0',
|
|
470
|
+
sdrsuETH: '0x21c4123f62CA28c9ceF3dDd1c8ae71EE9a5003aE',
|
|
471
|
+
Timelock: '0xFb2426f277A2d33DAb0ce00DF4a4D67c46aa5b3F',
|
|
472
|
+
},
|
|
473
|
+
arbitrum: {
|
|
474
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
475
|
+
SUMER: '0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2',
|
|
476
|
+
CompoundLens: '0x9aa55bCf3E41D0d98FCe816C4eC6E791B0f6d154',
|
|
477
|
+
FeedPriceOracle: '0x7465fedB29023d11effe8C74E82A7ecEBf15E947',
|
|
478
|
+
ZeroInterestRateModel: '0xc7fFEAa5949d50A408bD92DdB0D1EAcef3F8a3Bc',
|
|
479
|
+
AccountLiquidityImpl: '0x10A2e256Bed7b3c49C151Ad1Bad01F4936FC9276',
|
|
480
|
+
AccountLiquidity: '0xA2e6B85f9A5C90217054350d7893498B8c892546',
|
|
481
|
+
Comptroller: '0x58235d9C8c9f136c0A4e9761186dB0329243bbB8',
|
|
482
|
+
Unitroller: '0xBfb69860C91A22A2287df1Ff3Cdf0476c5aab24A',
|
|
483
|
+
ETH: '0x0000000000000000000000000000000000000000',
|
|
484
|
+
sdrETH: '0x3C752d0D78BbFddA6BF4b6000a01228B732441aE',
|
|
485
|
+
USDC: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
486
|
+
sdrUSDC: '0x4DE3741E1676ed14d661b1398196dC221cA4D37A',
|
|
487
|
+
USDT: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9',
|
|
488
|
+
sdrUSDT: '0xDb7Fe9c415281E383595c262e49568DDc18e8Bd4',
|
|
489
|
+
DAI: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
|
|
490
|
+
sdrDAI: '0x873449359d2d99691436E724C6C219a39b159B4a',
|
|
491
|
+
wstETH: '0x5979D7b546E38E414F7E9822514be443A4800529',
|
|
492
|
+
sdrwstETH: '0x1167e762541374fEBeeA0f6Ed2AD4473AFa1CcEa',
|
|
493
|
+
RETH: '0xec70dcb4a1efa46b8f2d97c310c9c4790ba5ffa8',
|
|
494
|
+
sdrRETH: '0x1a9CFA6c676ebBEd450dB3cef03e399465F1202C',
|
|
495
|
+
WBTC: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f',
|
|
496
|
+
sdrWBTC: '0x59aC82d3EfB5dc6c4389ccfF7AB7ab6C72C6AC05',
|
|
497
|
+
ARB: '0x912CE59144191C1204E64559FE8253a0e49E6548',
|
|
498
|
+
sdrARB: '0x142017b52c99d3dFe55E49d79Df0bAF7F4478c0c',
|
|
499
|
+
suUSD: '0x8bf591eae535f93a242d5a954d3cde648b48a5a8',
|
|
500
|
+
sdrsuUSD: '0xe4B55045ed14815c7c42eeeF8EE431b89422c389',
|
|
501
|
+
suETH: '0x1c22531aa9747d76fff8f0a43b37954ca67d28e0',
|
|
502
|
+
sdrsuETH: '0x9C93423939C4e3D48d99baD147AD808BE89B2043',
|
|
503
|
+
suBTC: '0xe85411c030fb32a9d8b14bbbc6cb19417391f711',
|
|
504
|
+
sdrsuBTC: '0xAc6bAF36B28d19EA10959102158Beb3d933C1fbf',
|
|
505
|
+
Timelock: '0x42778d0962884510b85d4D1B30DFe9e9Dd270446',
|
|
506
|
+
},
|
|
507
|
+
base: {
|
|
508
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
509
|
+
SUMER: '0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2',
|
|
510
|
+
CompoundLens: '0xDb7Fe9c415281E383595c262e49568DDc18e8Bd4',
|
|
511
|
+
FeedPriceOracle: '0x60B8067Cf3640bCc7c3b2CfbE6Eac3c2CA40934e',
|
|
512
|
+
ZeroInterestRateModel: '0x341fDb6532154Cec491Aca3D3BB404C2d4cc042E',
|
|
513
|
+
AccountLiquidityImpl: '0x873449359d2d99691436E724C6C219a39b159B4a',
|
|
514
|
+
AccountLiquidity: '0x36C379883c9A293e7DdF76031c4a0AD053eB4bfF',
|
|
515
|
+
Comptroller: '0x1167e762541374fEBeeA0f6Ed2AD4473AFa1CcEa',
|
|
516
|
+
Unitroller: '0x611375907733D9576907E125Fb29704712F0BAfA',
|
|
517
|
+
ETH: '0x0000000000000000000000000000000000000000',
|
|
518
|
+
sdrETH: '0x7b5969bB51fa3B002579D7ee41A454AC691716DC',
|
|
519
|
+
USDC: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
520
|
+
sdrUSDC: '0x142017b52c99d3dFe55E49d79Df0bAF7F4478c0c',
|
|
521
|
+
USDbc: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
|
|
522
|
+
sdrUSDbc: '0x3389eD4dd777b03B95deb2994ACaF6807cf24c2E',
|
|
523
|
+
DAI: '0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb',
|
|
524
|
+
sdrDAI: '0xA4578AB5CDA88AaE7603aFAB24b4c0d24a7858D1',
|
|
525
|
+
wstETH: '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452',
|
|
526
|
+
sdrwstETH: '0x238d804Cb1F4c0c7495e7b7773c54D75E4C99cdd',
|
|
527
|
+
cbETH: '0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22',
|
|
528
|
+
sdrcbETH: '0x6345aF6dA3EBd9DF468e37B473128Fd3079C4a4b',
|
|
529
|
+
suUSD: '0x8bf591eae535f93a242d5a954d3cde648b48a5a8',
|
|
530
|
+
sdrsuUSD: '0xa1aD8481e83a5b279D97ab371bCcd5AE3b446EA6',
|
|
531
|
+
suETH: '0x1c22531aa9747d76fff8f0a43b37954ca67d28e0',
|
|
532
|
+
sdrsuETH: '0x56048C88309CAF13A942d688bfB9654432910d6e',
|
|
533
|
+
Timelock: '0x549D0CdC753601fbE29f9DE186868429a8558E07',
|
|
73
534
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
//
|
|
104
|
-
|
|
105
|
-
"vUSDC": "0xecA88125a5ADbe82614ffC12D0DB554E2e2867C8",
|
|
106
|
-
"vUSDT": "0xfD5840Cd36d94D7229439859C0112a4185BC0255",
|
|
107
|
-
"vSXP": "0x2fF3d0F6990a40261c66E1ff2017aCBc282EB6d0",
|
|
108
|
-
"vBUSD": "0x95c78222B3D6e262426483D42CfA53685A67Ab9D",
|
|
109
|
-
"vXVS": "0x151B1e2635A717bcDc836ECd6FbB62B674FE3E1D",
|
|
110
|
-
"USDC": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
|
|
111
|
-
"USDT": "0x55d398326f99059fF775485246999027B3197955",
|
|
112
|
-
"SXP": "0x47BEAd2563dCBf3bF2c9407fEa4dC236fAbA485A",
|
|
113
|
-
"BUSD": "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",
|
|
114
|
-
"XVS": "0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63"
|
|
535
|
+
rinkeby: {
|
|
536
|
+
CompoundLens: '0xBb5D4106642aD2D8b541Ad6728a937D4b1985E00',
|
|
537
|
+
Comptroller: '0xB1b5975335Fc733c9ce530E0b546657E3358FBa0',
|
|
538
|
+
FeedPriceOracle: '0xaBe41d68Fa3B89eF96946887d218d97B5D9EB94e',
|
|
539
|
+
USDC: '0x8872e1e6753ad47f52dea2289e1d9e27ac8c2c14',
|
|
540
|
+
USDT: '0xde6c65155248fc8e7a4e92001dbebe56b6330387',
|
|
541
|
+
UnderwriterAdmin: '0xEAf81BCA2F4d4AE7F07Aee497661DD7a1F1D4C45',
|
|
542
|
+
UnderwriterProxy: '0xAe3DFDd07F24f7b618a8aA82a4bDc3f8AdF0D16A',
|
|
543
|
+
Unitroller: '0x63A97B7b0b0334046e9BDC90dcd1392f51405C4c',
|
|
544
|
+
WBTC: '0x1ba21f81f8363872386b0b725b536491c69f6251',
|
|
545
|
+
WhitePaperInterestRateModel: '0xE06758511e4Ee202423671950A795848528A9F4f',
|
|
546
|
+
ZeroInterestRateModel: '0x5E9BEcfcf5F3C3208C5A163B4db99CA4d10d8e2F',
|
|
547
|
+
cETH: '0x5aCF208794448638c07D194C8549fc40Aa8da441',
|
|
548
|
+
cUSDC: '0x87B9a9B05dc361Ed780f6852765C6173Dc8d34Af',
|
|
549
|
+
cUSDCDelegate: '0x7E97fda414B1797e21cFCfE736506a5F50c22515',
|
|
550
|
+
cUSDT: '0xAD837Acef872addD04515677d0907E94e1B3617b',
|
|
551
|
+
cUSDTDelegate: '0xa31836A5839DBfaf4749e713D1d4f23c44857675',
|
|
552
|
+
cWBTC: '0x7d0421D374714f005C411fb0bB3b18Ef76fb716f',
|
|
553
|
+
cWBTCDelegate: '0x4DA450d90b9dcAF21F463cFAF3aA536540028c83',
|
|
554
|
+
csuBTC: '0x1695a5912a666EcE613bAA3541dC56e425d95Dfd',
|
|
555
|
+
csuBTCDelegate: '0x951717030e77840F7F8078Dc93916a7a0e38BA40',
|
|
556
|
+
csuETH: '0xbD079dd5599C998181f1ae0524Dc8FA1112eF3F8',
|
|
557
|
+
csuETHDelegate: '0x0405eF9C2D9605F3c9a0D1b6EA03b3b73238D94E',
|
|
558
|
+
csuUSD: '0x2Dc16F7D30A66Bcc28C1f885cFa4B61C117a3Aa9',
|
|
559
|
+
csuUSDDelegate: '0xe4029A23605D682dB1e82ad3FAc74B4A9bDe638f',
|
|
560
|
+
suBTC: '0xBD4d3df64f7C705Cbae5Ad3a1bC33B9521488f77',
|
|
561
|
+
suETH: '0xf9C889397dC3d15E2902AeC4beb3900AA4ac2af9',
|
|
562
|
+
suUSD: '0x19fE342128F3A6C921199864E621D420232eEef4',
|
|
563
|
+
ETH: '0x0000000000000000000000000000000000000000',
|
|
564
|
+
// old SUMER
|
|
565
|
+
SUMER: '0xE9D328b4114c015Cf08254C448D4f998A45D84bd',
|
|
115
566
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
567
|
+
kcctest: {
|
|
568
|
+
CompoundLens: '0x30504Dda37259959645a908C2963D73AF420f82A',
|
|
569
|
+
Comptroller: '0xdeEe03D04Efd0f456a90904c031c476e5CE2169A',
|
|
570
|
+
FeedPriceOracle: '0x6CC787B200652D2b4958ac59d0B5660ebBc0194B',
|
|
571
|
+
SUMER: '0x32BD90172B076516032889888f784f20CCECbAbd',
|
|
572
|
+
UnderwriterAdmin: '0xbeDBb78f48375cce0c8912a78E73A917060D7c85',
|
|
573
|
+
UnderwriterProxy: '0xB2707269De04ed04AD3C79c885894374e4Ad6e51',
|
|
574
|
+
Unitroller: '0x58567FaF04aaA9a26649202A05eAA9bAA8C28696',
|
|
575
|
+
WhitePaperInterestRateModel: '0x8E25bd97a5b1b9AEaC3D26A6C08Ea6F43Bdc9dE6',
|
|
576
|
+
ZeroInterestRateModel: '0xB101af5FF5FbFfE706b83104e13a0901237e604b',
|
|
577
|
+
cBTCK: '0x1F95308812282f220c28Fd9E181c1aFbFd68d171',
|
|
578
|
+
cBTCKDelegate: '0xe506FC1cEc14576dC6A56b61131748df0e62eBaf',
|
|
579
|
+
cETH: '0x8c0CA7d6FD36A2EDfFa524Bd386725872DaCF46d',
|
|
580
|
+
cETHDelegate: '0x935df671F499D5bBF2A4b3c18f2A948A59DB1aA9',
|
|
581
|
+
cUSDC: '0xFCAAEcA2431Bfcd960815DF827EE8Bcea07335DB',
|
|
582
|
+
cUSDCDelegate: '0xb99ec85CC5e74B61E9C22b9993E3107d8676DFAd',
|
|
583
|
+
cUSDT: '0x96FB8F0f155d944f1c8bCf221e4Bf050eB2Fb679',
|
|
584
|
+
cUSDTDelegate: '0xFC8F5687C5B94E56b637A1A2Bd7CeBEf05d0f608',
|
|
585
|
+
csuBTC: '0xBB77FeEF69712126E113490020958342aFcD13B3',
|
|
586
|
+
csuBTCDelegate: '0x024c5fB3ebDaB067ff89D31BF738e0bC9e93eAdb',
|
|
587
|
+
csuETH: '0x2F92DCdeB0cC0F816CB0B072BF37bfe422506195',
|
|
588
|
+
csuETHDelegate: '0xf858214A3a95901188846853615cD0b53Cb04C83',
|
|
589
|
+
csuUSD: '0xC234ED37413EFb40d7f0940929d126bF2ba70f73',
|
|
590
|
+
csuUSDDelegate: '0xBD8796b29633599E74A7084D40aE721aD0Ef7Dc8',
|
|
591
|
+
suBTC: '0xBD4d3df64f7C705Cbae5Ad3a1bC33B9521488f77',
|
|
592
|
+
suETH: '0xf9C889397dC3d15E2902AeC4beb3900AA4ac2af9',
|
|
593
|
+
suUSD: '0x19fE342128F3A6C921199864E621D420232eEef4',
|
|
594
|
+
USDT: '0x3765f40e2F5dfe1b3A5ae124331929e59d6157D2',
|
|
595
|
+
USDC: '0xf60b2DB9567D7402f40f6324e9A0E196aDF2C7a4',
|
|
596
|
+
ETH: '0x0cf649c095096A7142Cf844895ebCD2BfB299933',
|
|
597
|
+
BTCK: '0x07670d43C518372af1E48c62F3b1dBab7CA29185',
|
|
598
|
+
cKCS: '0xbFEDF841e6c9cc12614b6850FF83764DfFC3B2c5',
|
|
599
|
+
KCS: '0x0000000000000000000000000000000000000000',
|
|
131
600
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
601
|
+
kcc: {
|
|
602
|
+
CompoundLens: '0xc3d9081B398f3C8e96D8CB212E18Bdc3411e2F7A',
|
|
603
|
+
Comptroller: '0x9d1A50F32b0c2fc1E3C8e98dFdCa1D41C0bB0b98',
|
|
604
|
+
FeedPriceOracle: '0xC9299D11773b5be7b8a6DBB17f35DDFAB89e3E9E',
|
|
605
|
+
SUMER: '0x32BD90172B076516032889888f784f20CCECbAbd',
|
|
606
|
+
UnderwriterAdmin: '0xbbC121f6B3171c10d442eb6519D1e3a96aF75b2d',
|
|
607
|
+
UnderwriterProxy: '0x32ee7D586B401eEA6D020E9A0174DA1682ee8d8b',
|
|
608
|
+
Unitroller: '0x6fEb27EDb61DEC4eea62Bae20F79d21D0Dd94B3b',
|
|
609
|
+
WhitePaperInterestRateModel: '0x743336D77Cfd1540E623Be5C25f019fab69f324f',
|
|
610
|
+
ZeroInterestRateModel: '0xb68AC033c442580A38E058EB5f66c5Fb10829422',
|
|
611
|
+
cBTCK: '0x3A284968c7D64956bAbC87246bBC1fdDea5ee9A9',
|
|
612
|
+
cBTCKDelegate: '0xD3e2023f7d11eB21D1C06553104FC4057144a8a9',
|
|
613
|
+
cETH: '0x5f783162a63aB5444d0099d839780ECF3ee705c9',
|
|
614
|
+
cETHDelegate: '0x280FBcD0eBF80Bd77Bf6ffE78D5d2d423940B3f5',
|
|
615
|
+
cUSDC: '0xeED05b1645351661cA67B6e3439E82708fE6D5bF',
|
|
616
|
+
cUSDCDelegate: '0xdEe231419B67B05AF73cfBD2A6Bb2E4D4a667e01',
|
|
617
|
+
cUSDT: '0x6453A1488d8C50D68fd063B12b6e2959F8951C5C',
|
|
618
|
+
cUSDTDelegate: '0x14bF823aBE24C4aCc829951153d4eADC7dc9E8FA',
|
|
619
|
+
csuBTC: '0x30F20a5c26F1459B23Ea2f765c9695841BFD2EA3',
|
|
620
|
+
csuBTCDelegate: '0x3B01cdc3Dfa3ca720cDD1c0d17e1c2033E39759b',
|
|
621
|
+
csuETH: '0x79Aa7B5bBF50E8eD2909A2Eb79f69855b2882DF1',
|
|
622
|
+
csuETHDelegate: '0x511b5f62DFc4be6f1314c832d46cc2d065D8Dfb6',
|
|
623
|
+
csuUSD: '0x04F4e901b2D923B6712eEC27EAbd87E069918Ab3',
|
|
624
|
+
csuUSDDelegate: '0x389abEd14F8cEdBa93F5352e181C5E6A58129eD8',
|
|
625
|
+
suBTC: '0xBD4d3df64f7C705Cbae5Ad3a1bC33B9521488f77',
|
|
626
|
+
suETH: '0xf9C889397dC3d15E2902AeC4beb3900AA4ac2af9',
|
|
627
|
+
suUSD: '0x19fE342128F3A6C921199864E621D420232eEef4',
|
|
628
|
+
USDT: '0x0039f574ee5cc39bdd162e9a88e3eb1f111baf48',
|
|
629
|
+
USDC: '0x980a5afef3d17ad98635f6c5aebcbaeded3c3430',
|
|
630
|
+
ETH: '0xf55af137a98607f7ed2efefa4cd2dfe70e4253b1',
|
|
631
|
+
BTCK: '0xfa93c12cd345c658bc4644d1d4e1b9615952258c',
|
|
158
632
|
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
633
|
+
metermain: {
|
|
634
|
+
ProxyAdmin: '0x3F1c2aB9cA6b41a82aEb27A97863b53b946D1545',
|
|
635
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
636
|
+
Sumer: '0x553d713e0fb958932b6c40abaf0b5a1ffae73da2',
|
|
637
|
+
SUMER: '0x553d713e0fb958932b6c40abaf0b5a1ffae73da2',
|
|
638
|
+
CompoundLens: '0xA2260F80bb6104d9520d4A7175FeF01F894Eb777',
|
|
639
|
+
FeedPriceOracle: '0xc552E5fcDBc1d9f3E8352961D3A1B62E5E34bd79',
|
|
640
|
+
AccountLiquidity: '0x7cBB9605f439d5106506259f5B3112801Ea18084',
|
|
641
|
+
CompLogic: '0x5eE48E2471a8fA4FADDFF7cbb6FA0489D951f9b8',
|
|
642
|
+
Comptroller: '0xcB4cdDA50C1B6B0E33F544c98420722093B7Aa88',
|
|
643
|
+
Unitroller: '0xcB4cdDA50C1B6B0E33F544c98420722093B7Aa88',
|
|
644
|
+
'sdrUSDC.eth': '0xC211a250FC30122ee107aC9Acf6686110339520f',
|
|
645
|
+
'USDC.eth': '0xd86e243fc0007e6226b07c9a50c9d70d78299eb5',
|
|
646
|
+
'sdrUSDT.eth': '0xaCEDC263FF6De824B38cAeAAC1FD877b1a7344a1',
|
|
647
|
+
'USDT.eth': '0x5fa41671c48e3c951afc30816947126ccc8c162e',
|
|
648
|
+
sdrMTRG: '0x6Ff2fB3F8F175df0A39C344de81A4aaaB05c49eB',
|
|
649
|
+
MTRG: '0x228ebbee999c6a7ad74a6130e81b12f9fe237ba3',
|
|
650
|
+
sdrwstMTRG: '0x318F6863a8c516dF9C5941AEb328A40f15f525F9',
|
|
651
|
+
wstMTRG: '0xe2de616fbd8cb9180b26fcfb1b761a232fe56717',
|
|
652
|
+
sdrETH: '0x52e245606Dd37A9addcD2Bb523d319596eB4b851',
|
|
653
|
+
ETH: '0x983147fb73a45fc7f8b4dfa1cd61bdc7b111e5b6',
|
|
654
|
+
sdrsuUSD: '0x755A39999FE536Ec327Cb84110383BFc30fd0F4D',
|
|
655
|
+
suUSD: '0x8BF591Eae535f93a242D5A954d3Cde648b48A5A8',
|
|
656
|
+
sdrsuETH: '0x21c4123f62CA28c9ceF3dDd1c8ae71EE9a5003aE',
|
|
657
|
+
suETH: '0x1c22531AA9747d76fFF8F0A43b37954ca67d28e0',
|
|
658
|
+
Timelock: '0xFb2426f277A2d33DAb0ce00DF4a4D67c46aa5b3F',
|
|
185
659
|
},
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"vBUSD": "0x08e0A5575De71037aE36AbfAfb516595fE68e5e4",
|
|
220
|
-
"vXVS": "0x6d6F697e34145Bb95c54E77482d97cc261Dc237E",
|
|
221
|
-
"USDC": "0x16227D60f7a0e586C66B005219dfc887D13C9531",
|
|
222
|
-
"USDT": "0xA11c8D9DC9b66E209Ef60F0C8D969D3CD988782c",
|
|
223
|
-
"SXP": "0x75107940Cf1121232C0559c747A986DEfbc69DA9",
|
|
224
|
-
"BUSD": "0x8301F2213c0eeD49a7E28Ae4c3e91722919B8B47",
|
|
225
|
-
"XVS": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff"
|
|
660
|
+
metertest: {
|
|
661
|
+
ProxyAdmin: '0x76A866328b857B6db868C6D087dE2249A0a713ad',
|
|
662
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
663
|
+
Sumer: '0x264b7316b535515db9759a77dc4041c0c2263527',
|
|
664
|
+
SUMER: '0x264b7316b535515db9759a77dc4041c0c2263527',
|
|
665
|
+
CompoundLens: '0xD062717E89eA3D5D4DFE43e7F6687914a1CCa9f1',
|
|
666
|
+
FeedPriceOracle: '0x31AdFa19C2c834B0900cA716C37B0619C9bD2C6B',
|
|
667
|
+
AccountLiquidity: '0x20A8794d5BEcBa1B19A35D8CaA2b7e0e0b7CF832',
|
|
668
|
+
CompLogic: '0xC16b4a53e10317b3e30Cffea16999DD5ec35929a',
|
|
669
|
+
SortedBorrows: '0x1dAcc0d2666C8b68cce3c6904b13d30737e0EABE',
|
|
670
|
+
RedemptionManager: '0x232011980E68a67fe2d21F47380f46B6Ec8fdc30',
|
|
671
|
+
Comptroller: '0xB6bf1515CAA8Be16f2FC3308974645CaEa458Ab1',
|
|
672
|
+
MTR: '0x0000000000000000000000000000000000000000',
|
|
673
|
+
sdrMTR: '0xf9e3459233E08F88Cf7faDdEd8f734d80A04a35d',
|
|
674
|
+
sdrUSDC: '0xC248AE618DC3C5FB3be493599EC5f875238C2b49',
|
|
675
|
+
USDC: '0x2b27f5f7f2867ad9d2b7065f81e985c1bd1b7274',
|
|
676
|
+
sdrUSDT: '0x5d0A5586a2a6dACeEAdEec8153171009a57404BA',
|
|
677
|
+
USDT: '0x2398633bee182cad2d0388b41735fd9fb742098d',
|
|
678
|
+
sdrMTRG: '0xE191150B05985Cbb49D3A9973603d96EA3b92b71',
|
|
679
|
+
MTRG: '0x8a419ef4941355476cf04933e90bf3bbf2f73814',
|
|
680
|
+
sdrwstMTRG: '0x11079f0e682A5a13F55D6f60519aD3e5425cd837',
|
|
681
|
+
wstMTRG: '0x871497Eb8596d2cBdBE5bb23D552D35bFfbb8CF5',
|
|
682
|
+
sdrETH: '0x8f0dFB74CA2E137771d9e357514e4f107e158c76',
|
|
683
|
+
ETH: '0xe8876830e7cc85dae8ce31b0802313caf856886f',
|
|
684
|
+
sdrBTC: '0x938Af4326a6a5Dc4B0772E9D1f2A1f12575b5cE1',
|
|
685
|
+
BTC: '0x7EB9e0Df1C6E6f1E9d3d1EdA09fcF688FE7A710c',
|
|
686
|
+
sdrsuUSD: '0x6ce95F920F7b1Fcdf92c6791506Fab5597236c01',
|
|
687
|
+
suUSD: '0x0d893c092f7ae9d97c13307f2d66cfb59430b4cb',
|
|
688
|
+
sdrsuETH: '0x6ad6cF2426A4f641446DfA85c3753d09784C84ff',
|
|
689
|
+
suETH: '0x21351bde0B42b4Cba5c04Fc92917b8c3254b1E88',
|
|
690
|
+
sdrsuBTC: '0x34504F007620BbBcDE24de781e86B86e5666C3d1',
|
|
691
|
+
suBTC: '0x20B00Df0c1120D2227f87180286E63EDa30f5c4c',
|
|
692
|
+
Timelock: '0x83369Fbd8D611F25F95cc0212bEe1Ae11AbCbcc1',
|
|
226
693
|
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
694
|
+
zktest: {
|
|
695
|
+
CompoundLens: '0x1752c1c46EC8FED05088125c3e4A75B0E600f0df',
|
|
696
|
+
Comptroller: '0x5e55F6cdD95F33375a6779b7bBeB6Fb833AEeE99', // Comptroller implementation
|
|
697
|
+
Unitroller: '0xC30BA3059453AEE27A8E6F11d4A7e8Cd7BD2a6D6', // Comptroller proxy
|
|
698
|
+
FeedPriceOracle: '0x8e8c6cE5dBFFCD2d30F11e2aAc75E3A7c78f6497',
|
|
699
|
+
UnderwriterAdmin: '0x9F580aF00Cb2bc01C3d020fe8dD36d5bF10579c2',
|
|
700
|
+
UnderwriterProxy: '0x4FD3F384f7dCE437ccBBB48407317B08F2Aa6Bb9',
|
|
701
|
+
WhitePaperInterestRateModel: '0x245e845F6b533eC2f73c72C66c63b70562B146aE', // cToken InterestRateModel
|
|
702
|
+
ZeroInterestRateModel: '0xB7E99b1053aA714304c6f29126BC94fc8932Aab3', // suToken InterestRateModel
|
|
703
|
+
SUMER: '0x5a86557FaaAd58797F50Ad325dadd477d2781238',
|
|
704
|
+
ETH: '0x0000000000000000000000000000000000000000',
|
|
705
|
+
cETH: '0xaC0d6687277d75a6660eC08E18745c510aF60Af2',
|
|
706
|
+
BTC: '0x0BfcE1D53451B4a8175DD94e6e029F7d8a701e9c',
|
|
707
|
+
cBTC: '0x1c6F767b523E6e0763249d86622F96E7567dB12A',
|
|
708
|
+
USDC: '0x0faF6df7054946141266420b43783387A78d82A9',
|
|
709
|
+
cUSDC: '0xf070Db5f6F89731B9fBF2FA0B6A9223F0e0CC715',
|
|
710
|
+
DAI: '0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b',
|
|
711
|
+
cDAI: '0x620D8bBe65d517C95266f108aF78FabbBe1F49ce',
|
|
712
|
+
LINK: '0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78',
|
|
713
|
+
cLINK: '0x6f46E1Af9304D72C72c0Ef7c4755fc6d5Ee8871c',
|
|
714
|
+
suBTC: '0x82a7d5c6ad4C48F47C530caEE0D7C9f476E524Ee',
|
|
715
|
+
csuBTC: '0x6770Cb103c18229558F0c02c41Ec264930e2C330',
|
|
716
|
+
suETH: '0xB9C945313413E3DDF074DCfEA4F8359Dfa65022e',
|
|
717
|
+
csuETH: '0xeF2e6eD7A25E06f6e35f491885883E8E8f894045',
|
|
718
|
+
suUSD: '0x5c274A167E4D8758Fc2A14E0cec4aD313cE0d873',
|
|
719
|
+
csuUSD: '0xBdF4Fb4787cAFc6399D4275AbF71563FEB32E474',
|
|
720
|
+
Multicall2: '0x416Ea8Bc52Cf6285362c237965eFC313bd857B43',
|
|
721
|
+
},
|
|
722
|
+
basetest: {
|
|
723
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
724
|
+
SUMER: '0xBeE85b7b676f9306803B6DFC09F024c30a7A2a1e',
|
|
725
|
+
CompoundLens: '0x26619fbE716334233248d892e8aBdf8d81b464f2',
|
|
726
|
+
FeedPriceOracle: '0xb264Cf6be02f17BF638Cd59F63C68Ec3036b32b5',
|
|
727
|
+
WhitePaperInterestRateModel: '0x4f6D94accF73713968f6D1B3d191A05762BfD2c1',
|
|
728
|
+
ZeroInterestRateModel: '0x07823dD84D58d5B779Daf9E1D3B04B13cB3acAA8',
|
|
729
|
+
AccountLiquidityImpl: '0xC2581fc348A1CC935712b9D2475bE72f20458A83',
|
|
730
|
+
AccountLiquidity: '0xb75fC5194424c86efc49e46DB14c8bC2e3876CF3',
|
|
731
|
+
Comptroller: '0x3d361cC7e5C71783b38c3e5A0A015685b5806A77',
|
|
732
|
+
Unitroller: '0x32B9d56d16c3bd08a22Dc24D3eD9114c59bF1362',
|
|
733
|
+
ETH: '0x0000000000000000000000000000000000000000',
|
|
734
|
+
sdrETH: '0x138924B369421B87176CfFbA55634E70AE105E98',
|
|
735
|
+
USDC: '0x93de053520D42B3F74281852Bd56F232A4E643DA',
|
|
736
|
+
sdrUSDC: '0x110BBFf32C8fCC6Da86649Ca866fa34A1eC7252f',
|
|
737
|
+
USDT: '0x61E2c1608B1caA59136BCB7845637858d216c3B9',
|
|
738
|
+
sdrUSDT: '0xf9ADf838fE5131286E12747422F84AA853a5cb93',
|
|
739
|
+
BTC: '0x0D0267E89189D73826aeAa1556ac4428c845e68a',
|
|
740
|
+
sdrBTC: '0xE91f13a4Fedc156f4b946E65bFEDCAc0Cd0AE724',
|
|
741
|
+
suUSD: '0x875A75e783145328880468C3e6cB791384D72e9d',
|
|
742
|
+
sdrsuUSD: '0x56F6Ad4a38F013ABdb3f9D2cC2180D8861D0FB35',
|
|
743
|
+
suETH: '0xEdd794DC7b4dFE58eBFC0f568F9A01F6eeB64563',
|
|
744
|
+
sdrsuETH: '0xbceD65886AF05De6A127EFb12dE897A710a381a3',
|
|
745
|
+
suBTC: '0xd11f348AB72A02ccbb611d4590fF79Ff48a07911',
|
|
746
|
+
sdrsuBTC: '0x16e6516DC3b9c2AeBbA3f7F6E4AEc511Da48dedC',
|
|
747
|
+
Timelock: '0x950B2AeA74403f841F98961e407a6D7380d9cCdb',
|
|
748
|
+
},
|
|
749
|
+
sepolia: {
|
|
750
|
+
SUMER: '0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2',
|
|
751
|
+
ZeroInterestRateModel: '0x3DF435904F6FA6a30F313ad347DEdEBf966E9629',
|
|
752
|
+
ProxyAdmin: '0x809b6caa5A68A63b526f6085c628a5366077195b',
|
|
753
|
+
Multicall2: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
754
|
+
Sumer: '0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2',
|
|
755
|
+
CompoundLens: '0x3BB0e110Aa7308Ae6e180c4B3D17777cECca9182',
|
|
756
|
+
FeedPriceOracle: '0x35D9f952B10839B11745807c50F5743F373Aa2ca',
|
|
757
|
+
AccountLiquidity: '0x863597A887FbC21635471b2939c65936C0193FCB',
|
|
758
|
+
CompLogic: '0xDb44Cdcd54C30238d555975922Dbd7e366F4009d',
|
|
759
|
+
Comptroller: '0x09Bf5c88De66Edf5Bc8AFdBFFB03E73DED4da4d9',
|
|
760
|
+
Unitroller: '0x09Bf5c88De66Edf5Bc8AFdBFFB03E73DED4da4d9',
|
|
761
|
+
sdrETH: '0x3Dfcb252d5Dd3aDA82C388e3754d9b002Dfa769f',
|
|
762
|
+
sdrUSDC: '0x522Ff165b8a0cb091D939009c41cE987F1079699',
|
|
763
|
+
USDC: '0x94a9D9AC8a22534E3FaCa9F4e7F2E2cf85d5E4C8',
|
|
764
|
+
sdrDAI: '0xC56065ee94eD4d05360e130075Dd06DE55eE0916',
|
|
765
|
+
DAI: '0xFF34B3d4Aee8ddCd6F9AFFFB6Fe49bD371b8a357',
|
|
766
|
+
sdrsuUSD: '0x68F961B13a3fbD3a04eFAbEfc284572B16412aE8',
|
|
767
|
+
suUSD: '0x8BF591Eae535f93a242D5A954d3Cde648b48A5A8',
|
|
768
|
+
sdrsuETH: '0xF623df845D182F977b18F7B1f2Cf3f2d48653db5',
|
|
769
|
+
ETH: '0x0000000000000000000000000000000000000000',
|
|
770
|
+
suETH: '0x1c22531AA9747d76fFF8F0A43b37954ca67d28e0',
|
|
771
|
+
Timelock: '0x247F872F6331e12CaF3a92D19BD5078CE25fc825',
|
|
772
|
+
JumpRateModelV2: '0x484052c5F3cB7bbF01C871260e5B820f43A4A2e3',
|
|
773
|
+
},
|
|
774
|
+
};
|
|
775
|
+
const rateModals = {
|
|
776
|
+
metermain: [
|
|
777
|
+
{
|
|
778
|
+
name: 'JumpRateModelV2',
|
|
779
|
+
address: '0xF1073b7BFf6AD65b4E314AfB513C59aBc2Ad314b',
|
|
780
|
+
tokens: ['USDC.eth', 'USDT.eth', 'ETH'],
|
|
781
|
+
baseRatePerYear: 0.02,
|
|
782
|
+
multiplierPerYear: 0.12,
|
|
783
|
+
jumpMultiplierPerYear: 1,
|
|
784
|
+
kink: 0.75,
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
name: 'JumpRateModelV2',
|
|
788
|
+
address: '0x90C349959304b771d9b76295449447Fde51618A7',
|
|
789
|
+
tokens: ['MTRG'],
|
|
790
|
+
baseRatePerYear: 0.01,
|
|
791
|
+
multiplierPerYear: 0.12,
|
|
792
|
+
jumpMultiplierPerYear: 1.5,
|
|
793
|
+
kink: 0.45,
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
name: 'JumpRateModelV2',
|
|
797
|
+
address: '0xc0AD1588A8819d7c48D90aB4b5EfDa2d3571Bab9',
|
|
798
|
+
tokens: ['wstMTRG'],
|
|
799
|
+
baseRatePerYear: 0,
|
|
800
|
+
multiplierPerYear: 0.06,
|
|
801
|
+
jumpMultiplierPerYear: 1.5,
|
|
802
|
+
kink: 0.45,
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
name: 'ZeroInterestRateModel',
|
|
806
|
+
address: '0x561f62bd3228B85015CCA2E86C9a709061d96A91',
|
|
807
|
+
tokens: ['suUSD', 'suETH'],
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
metertest: [
|
|
811
|
+
{
|
|
812
|
+
name: 'JumpRateModelV2',
|
|
813
|
+
address: '0x916e898D0f52339DdA5dF1b55cDe6A55E5bc700A',
|
|
814
|
+
tokens: ['USDC', 'USDT', 'ETH', 'BTC', 'MTR'],
|
|
815
|
+
baseRatePerYear: 0.02,
|
|
816
|
+
multiplierPerYear: 0.12,
|
|
817
|
+
jumpMultiplierPerYear: 1,
|
|
818
|
+
kink: 0.75,
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
name: 'JumpRateModelV2',
|
|
822
|
+
address: '0x9A570B56B0Cf0eB0EAdeeD894F547D7a226Cb9e2',
|
|
823
|
+
tokens: ['MTRG'],
|
|
824
|
+
baseRatePerYear: 0.01,
|
|
825
|
+
multiplierPerYear: 0.12,
|
|
826
|
+
jumpMultiplierPerYear: 1.5,
|
|
827
|
+
kink: 0.45,
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
name: 'JumpRateModelV2',
|
|
831
|
+
address: '0x87c86efFDFc4Ac0A0b16D445d128fb6282b7DCB7',
|
|
832
|
+
tokens: ['wstMTRG'],
|
|
833
|
+
baseRatePerYear: 0,
|
|
834
|
+
multiplierPerYear: 0.06,
|
|
835
|
+
jumpMultiplierPerYear: 1.5,
|
|
836
|
+
kink: 0.45,
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
name: 'ZeroInterestRateModel',
|
|
840
|
+
address: '0x8098a4Ad4Fc816E576BbBf12A9299Ef3ae8189c7',
|
|
841
|
+
tokens: ['suUSD', 'suETH', 'suBTC'],
|
|
842
|
+
},
|
|
843
|
+
],
|
|
844
|
+
basetest: [
|
|
845
|
+
{
|
|
846
|
+
name: 'JumpRateModelV2',
|
|
847
|
+
address: '0xfdfB839Cc859E863B0a594F3540795E09BD60e76',
|
|
848
|
+
tokens: ['USDC', 'USDT', 'BTC'],
|
|
849
|
+
baseRatePerYear: 0.02,
|
|
850
|
+
multiplierPerYear: 0.2,
|
|
851
|
+
jumpMultiplierPerYear: 4,
|
|
852
|
+
kink: 0.6,
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
name: 'ZeroInterestRateModel',
|
|
856
|
+
address: '0x07823dD84D58d5B779Daf9E1D3B04B13cB3acAA8',
|
|
857
|
+
tokens: ['suUSD', 'suETH', 'suBTC'],
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
name: 'JumpRateModelV2',
|
|
861
|
+
address: '0xB79F1af961dA05a89D810251Af338BBfb98AFDF5',
|
|
862
|
+
tokens: ['ETH'],
|
|
863
|
+
baseRatePerYear: 0.02,
|
|
864
|
+
multiplierPerYear: 0.15,
|
|
865
|
+
jumpMultiplierPerYear: 3,
|
|
866
|
+
kink: 0.6,
|
|
867
|
+
},
|
|
868
|
+
],
|
|
869
|
+
meter: [
|
|
870
|
+
{
|
|
871
|
+
name: 'JumpRateModelV2',
|
|
872
|
+
address: '0xF1073b7BFf6AD65b4E314AfB513C59aBc2Ad314b',
|
|
873
|
+
tokens: ['USDC.eth', 'USDT.eth', 'ETH'],
|
|
874
|
+
baseRatePerYear: 0.02,
|
|
875
|
+
multiplierPerYear: 0.12,
|
|
876
|
+
jumpMultiplierPerYear: 1,
|
|
877
|
+
kink: 0.75,
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
name: 'JumpRateModelV2',
|
|
881
|
+
address: '0x90C349959304b771d9b76295449447Fde51618A7',
|
|
882
|
+
tokens: ['MTRG'],
|
|
883
|
+
baseRatePerYear: 0.01,
|
|
884
|
+
multiplierPerYear: 0.12,
|
|
885
|
+
jumpMultiplierPerYear: 1.5,
|
|
886
|
+
kink: 0.45,
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
name: 'JumpRateModelV2',
|
|
890
|
+
address: '0xc0AD1588A8819d7c48D90aB4b5EfDa2d3571Bab9',
|
|
891
|
+
tokens: ['wstMTRG'],
|
|
892
|
+
baseRatePerYear: 0,
|
|
893
|
+
multiplierPerYear: 0.06,
|
|
894
|
+
jumpMultiplierPerYear: 1.5,
|
|
895
|
+
kink: 0.45,
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
name: 'ZeroInterestRateModel',
|
|
899
|
+
address: '0x561f62bd3228B85015CCA2E86C9a709061d96A91',
|
|
900
|
+
tokens: ['suUSD', 'suETH'],
|
|
901
|
+
},
|
|
902
|
+
],
|
|
903
|
+
arbitrum: [
|
|
904
|
+
{
|
|
905
|
+
name: 'JumpRateModelV2',
|
|
906
|
+
address: '0x5096E5cf4f151052ACD615b2635E7FdB6Db0763C',
|
|
907
|
+
tokens: ['USDC', 'USDT', 'DAI', 'WBTC', 'ETH'],
|
|
908
|
+
baseRatePerYear: 0.02,
|
|
909
|
+
multiplierPerYear: 0.12,
|
|
910
|
+
jumpMultiplierPerYear: 1,
|
|
911
|
+
kink: 0.75,
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
name: 'JumpRateModelV2',
|
|
915
|
+
address: '0xE27496Ec5d6E19521d636e78c127fF2Cf59ee914',
|
|
916
|
+
tokens: ['wstETH', 'RETH', 'ARB'],
|
|
917
|
+
baseRatePerYear: 0.02,
|
|
918
|
+
multiplierPerYear: 0.15,
|
|
919
|
+
jumpMultiplierPerYear: 2,
|
|
920
|
+
kink: 0.55,
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: 'ZeroInterestRateModel',
|
|
924
|
+
address: '0xc7fFEAa5949d50A408bD92DdB0D1EAcef3F8a3Bc',
|
|
925
|
+
tokens: ['suUSD', 'suETH', 'suBTC'],
|
|
926
|
+
},
|
|
927
|
+
],
|
|
928
|
+
base: [
|
|
929
|
+
{
|
|
930
|
+
name: 'JumpRateModelV2',
|
|
931
|
+
address: '0xd16D4BbE76C873d8a1e499Bf2aAc91710165E3C9',
|
|
932
|
+
tokens: ['USDC', 'USDbc', 'DAI', 'ETH'],
|
|
933
|
+
baseRatePerYear: 0.02,
|
|
934
|
+
multiplierPerYear: 0.12,
|
|
935
|
+
jumpMultiplierPerYear: 1,
|
|
936
|
+
kink: 0.75,
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
name: 'JumpRateModelV2',
|
|
940
|
+
address: '0x04C13c475223CaEb3F23f4F4A69707D82C47dA50',
|
|
941
|
+
tokens: ['wstETH', 'cbETH'],
|
|
942
|
+
baseRatePerYear: 0.02,
|
|
943
|
+
multiplierPerYear: 0.15,
|
|
944
|
+
jumpMultiplierPerYear: 2,
|
|
945
|
+
kink: 0.55,
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
name: 'ZeroInterestRateModel',
|
|
949
|
+
address: '0x341fDb6532154Cec491Aca3D3BB404C2d4cc042E',
|
|
950
|
+
tokens: ['suUSD', 'suETH'],
|
|
951
|
+
},
|
|
952
|
+
],
|
|
953
|
+
sepolia: [
|
|
954
|
+
{
|
|
955
|
+
name: 'JumpRateModelV2',
|
|
956
|
+
address: '0x77b9A38e931dEECA7f0c291FB13DD65a3CAC2344',
|
|
957
|
+
tokens: ['USDC', 'DAI', 'ETH'],
|
|
958
|
+
baseRatePerYear: 0.02,
|
|
959
|
+
multiplierPerYear: 0.12,
|
|
960
|
+
jumpMultiplierPerYear: 1,
|
|
961
|
+
kink: 0.75,
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
name: 'ZeroInterestRateModel',
|
|
965
|
+
address: '0x0f1cF673735516091770b34D7C4F35bE311B840c',
|
|
966
|
+
tokens: ['suUSD', 'suETH'],
|
|
967
|
+
},
|
|
968
|
+
],
|
|
969
|
+
};
|
|
970
|
+
const names = {};
|
|
971
|
+
for (const network in address) {
|
|
972
|
+
const networkNames = {};
|
|
973
|
+
for (const n in address[network]) {
|
|
974
|
+
networkNames[address[network][n].toLowerCase()] = n;
|
|
975
|
+
}
|
|
976
|
+
names[network] = networkNames;
|
|
977
|
+
}
|
|
978
|
+
const getTokenPairs = (networkName) => {
|
|
979
|
+
if (!(networkName in tokenPairs)) {
|
|
980
|
+
throw Error(`${networkName} is not configured on tokenPairs`);
|
|
981
|
+
}
|
|
982
|
+
return tokenPairs[networkName];
|
|
983
|
+
};
|
|
984
|
+
exports.getTokenPairs = getTokenPairs;
|
|
985
|
+
const getRateModals = (networkName) => {
|
|
986
|
+
if (!(networkName in rateModals)) {
|
|
987
|
+
throw Error(`${networkName} is not configured on rateModals`);
|
|
988
|
+
}
|
|
989
|
+
return rateModals[networkName];
|
|
990
|
+
};
|
|
991
|
+
exports.getRateModals = getRateModals;
|
|
992
|
+
const getAddress = (networkName, tokenSym) => {
|
|
993
|
+
if (!(networkName in address)) {
|
|
994
|
+
throw Error(`${networkName} is not configured on address list`);
|
|
995
|
+
}
|
|
996
|
+
const addrList = address[networkName];
|
|
997
|
+
if (!(tokenSym in addrList)) {
|
|
998
|
+
throw Error(`${tokenSym} address not configued on ${networkName}`);
|
|
237
999
|
}
|
|
1000
|
+
return addrList[tokenSym];
|
|
238
1001
|
};
|
|
239
|
-
exports.
|
|
240
|
-
|
|
241
|
-
sdrNative: [{ "inputs": [{ "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address" }, { "internalType": "contract InterestRateModel", "name": "interestRateModel_", "type": "address" }, { "internalType": "uint256", "name": "initialExchangeRateMantissa_", "type": "uint256" }, { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "string", "name": "nativeSymbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }, { "internalType": "address payable", "name": "admin_", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "cashPrior", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "interestAccumulated", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "borrowIndex", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }], "name": "AccrueInterest", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }], "name": "Borrow", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "error", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "info", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "detail", "type": "uint256" }], "name": "Failure", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "liquidator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "LiquidateBorrow", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "minter", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mintAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "mintTokens", "type": "uint256" }], "name": "Mint", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" }], "name": "NewAdmin", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract ComptrollerInterface", "name": "oldComptroller", "type": "address" }, { "indexed": false, "internalType": "contract ComptrollerInterface", "name": "newComptroller", "type": "address" }], "name": "NewComptroller", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract InterestRateModel", "name": "oldInterestRateModel", "type": "address" }, { "indexed": false, "internalType": "contract InterestRateModel", "name": "newInterestRateModel", "type": "address" }], "name": "NewMarketInterestRateModel", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldPendingAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newPendingAdmin", "type": "address" }], "name": "NewPendingAdmin", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldReserveFactorMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "NewReserveFactor", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "redeemer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }], "name": "Redeem", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }], "name": "RepayBorrow", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "benefactor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "addAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newTotalReserves", "type": "uint256" }], "name": "ReservesAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "admin", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "reduceAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newTotalReserves", "type": "uint256" }], "name": "ReservesReduced", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "reduceAmount", "type": "uint256" }], "name": "_reduceReserves", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract ComptrollerInterface", "name": "newComptroller", "type": "address" }], "name": "_setComptroller", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract InterestRateModel", "name": "newInterestRateModel", "type": "address" }], "name": "_setInterestRateModel", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address payable", "name": "newPendingAdmin", "type": "address" }], "name": "_setPendingAdmin", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "_setReserveFactor", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "admin", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOfUnderlying", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }], "name": "borrow", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "borrowBalanceCurrent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "borrowBalanceStored", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "comptroller", "outputs": [{ "internalType": "contract ComptrollerInterface", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "getAccountSnapshot", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getCash", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address" }, { "internalType": "contract InterestRateModel", "name": "interestRateModel_", "type": "address" }, { "internalType": "uint256", "name": "initialExchangeRateMantissa_", "type": "uint256" }, { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{ "internalType": "contract InterestRateModel", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isNative", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isSDRToken", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "contract SDRToken", "name": "sdrTokenCollateral", "type": "address" }], "name": "liquidateBorrow", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nativeSymbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }], "name": "redeem", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }], "name": "redeemUnderlying", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "repayBorrow", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "borrower", "type": "address" }], "name": "repayBorrowBehalf", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "liquidator", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "seize", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalReserves", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }],
|
|
242
|
-
sdrHrc20: [{ "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "cashPrior", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "interestAccumulated", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "borrowIndex", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }], "name": "AccrueInterest", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }], "name": "Borrow", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "error", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "info", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "detail", "type": "uint256" }], "name": "Failure", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "liquidator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "LiquidateBorrow", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "minter", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "mintAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "mintTokens", "type": "uint256" }], "name": "Mint", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" }], "name": "NewAdmin", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract ComptrollerInterface", "name": "oldComptroller", "type": "address" }, { "indexed": false, "internalType": "contract ComptrollerInterface", "name": "newComptroller", "type": "address" }], "name": "NewComptroller", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract InterestRateModel", "name": "oldInterestRateModel", "type": "address" }, { "indexed": false, "internalType": "contract InterestRateModel", "name": "newInterestRateModel", "type": "address" }], "name": "NewMarketInterestRateModel", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldPendingAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newPendingAdmin", "type": "address" }], "name": "NewPendingAdmin", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldReserveFactorMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "NewReserveFactor", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "redeemer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }], "name": "Redeem", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }], "name": "RepayBorrow", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "benefactor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "addAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newTotalReserves", "type": "uint256" }], "name": "ReservesAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "admin", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "reduceAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newTotalReserves", "type": "uint256" }], "name": "ReservesReduced", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "addAmount", "type": "uint256" }], "name": "_addReserves", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "reduceAmount", "type": "uint256" }], "name": "_reduceReserves", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract ComptrollerInterface", "name": "newComptroller", "type": "address" }], "name": "_setComptroller", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract InterestRateModel", "name": "newInterestRateModel", "type": "address" }], "name": "_setInterestRateModel", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address payable", "name": "newPendingAdmin", "type": "address" }], "name": "_setPendingAdmin", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "_setReserveFactor", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "admin", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOfUnderlying", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }], "name": "borrow", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "borrowBalanceCurrent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "borrowBalanceStored", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "comptroller", "outputs": [{ "internalType": "contract ComptrollerInterface", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "getAccountSnapshot", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getCash", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "underlying_", "type": "address" }, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address" }, { "internalType": "contract InterestRateModel", "name": "interestRateModel_", "type": "address" }, { "internalType": "uint256", "name": "initialExchangeRateMantissa_", "type": "uint256" }, { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address" }, { "internalType": "contract InterestRateModel", "name": "interestRateModel_", "type": "address" }, { "internalType": "uint256", "name": "initialExchangeRateMantissa_", "type": "uint256" }, { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "uint8", "name": "decimals_", "type": "uint8" }], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{ "internalType": "contract InterestRateModel", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isNative", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isSDRToken", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, { "internalType": "contract SDRTokenInterface", "name": "sdrTokenCollateral", "type": "address" }], "name": "liquidateBorrow", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "mintAmount", "type": "uint256" }], "name": "mint", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nativeSymbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }], "name": "redeem", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }], "name": "redeemUnderlying", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "repayAmount", "type": "uint256" }], "name": "repayBorrow", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "repayAmount", "type": "uint256" }], "name": "repayBorrowBehalf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "liquidator", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "seize", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalReserves", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "underlying", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }],
|
|
243
|
-
|
|
244
|
-
Comptroller: [{ "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "action", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "pauseState", "type": "bool" }], "name": "ActionPaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": false, "internalType": "string", "name": "action", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "pauseState", "type": "bool" }], "name": "ActionPaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "state", "type": "bool" }], "name": "ActionProtocolPaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "sumerDelta", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sumerBorrowIndex", "type": "uint256" }], "name": "DistributedBorrowerSumer", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "supplier", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "sumerDelta", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sumerSupplyIndex", "type": "uint256" }], "name": "DistributedSupplierSumer", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "suusdMinter", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "sumerDelta", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sumersuUSDMintIndex", "type": "uint256" }], "name": "DistributedsuUSDMinterSumer", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "DistributedsuUSDVaultSumer", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "error", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "info", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "detail", "type": "uint256" }], "name": "Failure", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }], "name": "MarketEntered", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }], "name": "MarketExited", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }], "name": "MarketListed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "isSumer", "type": "bool" }], "name": "MarketSumer", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldCloseFactorMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newCloseFactorMantissa", "type": "uint256" }], "name": "NewCloseFactor", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "oldCollateralFactorMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newCollateralFactorMantissa", "type": "uint256" }], "name": "NewCollateralFactor", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldLiquidationIncentiveMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newLiquidationIncentiveMantissa", "type": "uint256" }], "name": "NewLiquidationIncentive", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldMaxAssets", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newMaxAssets", "type": "uint256" }], "name": "NewMaxAssets", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "oldPauseGuardian", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newPauseGuardian", "type": "address" }], "name": "NewPauseGuardian", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract PriceOracle", "name": "oldPriceOracle", "type": "address" }, { "indexed": false, "internalType": "contract PriceOracle", "name": "newPriceOracle", "type": "address" }], "name": "NewPriceOracle", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldSumerRate", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newSumerRate", "type": "uint256" }], "name": "NewSumerRate", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldSumersuUSDRate", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newSumersuUSDRate", "type": "uint256" }], "name": "NewSumersuUSDRate", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldSumersuUSDVaultRate", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newSumersuUSDVaultRate", "type": "uint256" }], "name": "NewSumersuUSDVaultRate", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contract suUSDControllerInterface", "name": "oldsuUSDController", "type": "address" }, { "indexed": false, "internalType": "contract suUSDControllerInterface", "name": "newsuUSDController", "type": "address" }], "name": "NewsuUSDController", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "oldsuUSDMintRate", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newsuUSDMintRate", "type": "uint256" }], "name": "NewsuUSDMintRate", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "vault_", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "releaseStartBlock_", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "releaseInterval_", "type": "uint256" }], "name": "NewsuUSDVaultInfo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "newSpeed", "type": "uint256" }], "name": "SumerSpeedUpdated", "type": "event" }, { "constant": false, "inputs": [{ "internalType": "address[]", "name": "sdrTokens", "type": "address[]" }], "name": "_addSumerMarkets", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract Unitroller", "name": "unitroller", "type": "address" }], "name": "_become", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "_borrowGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }], "name": "_dropSumerMarket", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "_mintGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "newCloseFactorMantissa", "type": "uint256" }], "name": "_setCloseFactor", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "newCollateralFactorMantissa", "type": "uint256" }], "name": "_setCollateralFactor", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "newLiquidationIncentiveMantissa", "type": "uint256" }], "name": "_setLiquidationIncentive", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "newMaxAssets", "type": "uint256" }], "name": "_setMaxAssets", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract PriceOracle", "name": "newOracle", "type": "address" }], "name": "_setPriceOracle", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "bool", "name": "state", "type": "bool" }], "name": "_setProtocolPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "newSumerAddress", "type": "address" }], "name": "_setSumerAddress", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "sumerRate_", "type": "uint256" }], "name": "_setSumerRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "sumersuUSDRate_", "type": "uint256" }], "name": "_setSumersuUSDRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "sumersuUSDVaultRate_", "type": "uint256" }], "name": "_setSumersuUSDVaultRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract suUSDControllerInterface", "name": "suusdController_", "type": "address" }], "name": "_setsuUSDController", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "newsuUSDMintRate", "type": "uint256" }], "name": "_setsuUSDMintRate", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "vault_", "type": "address" }, { "internalType": "uint256", "name": "releaseStartBlock_", "type": "uint256" }, { "internalType": "uint256", "name": "minReleaseAmount_", "type": "uint256" }], "name": "_setsuUSDVaultInfo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }], "name": "_supportMarket", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "accountAssets", "outputs": [{ "internalType": "contract SDRToken", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "admin", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "allMarkets", "outputs": [{ "internalType": "contract SDRToken", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }], "name": "borrowAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "borrowGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }], "name": "borrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }], "name": "checkMembership", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address[]", "name": "holders", "type": "address[]" }, { "internalType": "contract SDRToken[]", "name": "sdrTokens", "type": "address[]" }, { "internalType": "bool", "name": "borrowers", "type": "bool" }, { "internalType": "bool", "name": "suppliers", "type": "bool" }], "name": "claimSumer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "holder", "type": "address" }], "name": "claimSumer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "contract SDRToken[]", "name": "sdrTokens", "type": "address[]" }], "name": "claimSumer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "closeFactorMantissa", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "comptrollerImplementation", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "suusdMinter", "type": "address" }, { "internalType": "bool", "name": "distributeAll", "type": "bool" }], "name": "distributesuUSDMinterSumer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address[]", "name": "sdrTokens", "type": "address[]" }], "name": "enterMarkets", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrTokenAddress", "type": "address" }], "name": "exitMarket", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "getAccountLiquidity", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllMarkets", "outputs": [{ "internalType": "contract SDRToken[]", "name": "", "type": "address[]" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "getAssetsIn", "outputs": [{ "internalType": "contract SDRToken[]", "name": "", "type": "address[]" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getBlockNumber", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "address", "name": "sdrTokenModify", "type": "address" }, { "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }, { "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }], "name": "getHypotheticalAccountLiquidity", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getSumerAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isComptroller", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrTokenBorrowed", "type": "address" }, { "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "internalType": "address", "name": "liquidator", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "repayAmount", "type": "uint256" }], "name": "liquidateBorrowAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrTokenBorrowed", "type": "address" }, { "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "internalType": "address", "name": "liquidator", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "actualRepayAmount", "type": "uint256" }, { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "liquidateBorrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "sdrTokenBorrowed", "type": "address" }, { "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "internalType": "uint256", "name": "actualRepayAmount", "type": "uint256" }], "name": "liquidateCalculateSeizeTokens", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "liquidationIncentiveMantissa", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "markets", "outputs": [{ "internalType": "bool", "name": "isListed", "type": "bool" }, { "internalType": "uint256", "name": "collateralFactorMantissa", "type": "uint256" }, { "internalType": "bool", "name": "isSumer", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxAssets", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "minReleaseAmount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "minter", "type": "address" }, { "internalType": "uint256", "name": "mintAmount", "type": "uint256" }], "name": "mintAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "mintGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "minter", "type": "address" }, { "internalType": "uint256", "name": "actualMintAmount", "type": "uint256" }, { "internalType": "uint256", "name": "mintTokens", "type": "uint256" }], "name": "mintVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "mintedsuUSDs", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mintsuUSDGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "oracle", "outputs": [{ "internalType": "contract PriceOracle", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "pauseGuardian", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "pendingComptrollerImplementation", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "protocolPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "redeemer", "type": "address" }, { "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }], "name": "redeemAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "redeemer", "type": "address" }, { "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }, { "internalType": "uint256", "name": "redeemTokens", "type": "uint256" }], "name": "redeemVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "refreshSumerSpeeds", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "releaseStartBlock", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseToVault", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "repayAmount", "type": "uint256" }], "name": "repayBorrowAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "actualRepayAmount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowerIndex", "type": "uint256" }], "name": "repayBorrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "repaysuUSDGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "internalType": "address", "name": "sdrTokenBorrowed", "type": "address" }, { "internalType": "address", "name": "liquidator", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "seizeAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "seizeGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrTokenCollateral", "type": "address" }, { "internalType": "address", "name": "sdrTokenBorrowed", "type": "address" }, { "internalType": "address", "name": "liquidator", "type": "address" }, { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" }], "name": "seizeVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "setMintedsuUSDOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "sumerAccrued", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sumerAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "sumerBorrowState", "outputs": [{ "internalType": "uint224", "name": "index", "type": "uint224" }, { "internalType": "uint32", "name": "block", "type": "uint32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "sumerBorrowerIndex", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sumerClaimThreshold", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sumerInitialIndex", "outputs": [{ "internalType": "uint224", "name": "", "type": "uint224" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sumerRate", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "sumerSpeeds", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "sumerSupplierIndex", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "sumerSupplyState", "outputs": [{ "internalType": "uint224", "name": "index", "type": "uint224" }, { "internalType": "uint32", "name": "block", "type": "uint32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sumersuUSDRate", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "sumersuUSDVaultRate", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "suusdController", "outputs": [{ "internalType": "contract suUSDControllerInterface", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "suusdMintRate", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "suusdVaultAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "transferTokens", "type": "uint256" }], "name": "transferAllowed", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "transferGuardianPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "transferTokens", "type": "uint256" }], "name": "transferVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }],
|
|
245
|
-
|
|
246
|
-
GovernorAlpha: [{ "inputs": [{ "internalType": "address", "name": "timelock_", "type": "address" }, { "internalType": "address", "name": "comp_", "type": "address" }, { "internalType": "address", "name": "guardian_", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor", "signature": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }], "name": "ProposalCanceled", "type": "event", "signature": "0x789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "proposer", "type": "address" }, { "indexed": false, "internalType": "address[]", "name": "targets", "type": "address[]" }, { "indexed": false, "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "indexed": false, "internalType": "string[]", "name": "signatures", "type": "string[]" }, { "indexed": false, "internalType": "bytes[]", "name": "calldatas", "type": "bytes[]" }, { "indexed": false, "internalType": "uint256", "name": "startBlock", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "endBlock", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "description", "type": "string" }], "name": "ProposalCreated", "type": "event", "signature": "0x7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e0" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }], "name": "ProposalExecuted", "type": "event", "signature": "0x712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "eta", "type": "uint256" }], "name": "ProposalQueued", "type": "event", "signature": "0x9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda2892" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "voter", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "proposalId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "support", "type": "bool" }, { "indexed": false, "internalType": "uint256", "name": "votes", "type": "uint256" }], "name": "VoteCast", "type": "event", "signature": "0x877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c46" }, { "constant": true, "inputs": [], "name": "BALLOT_TYPEHASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xdeaaa7cc" }, { "constant": true, "inputs": [], "name": "DOMAIN_TYPEHASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x20606b70" }, { "constant": false, "inputs": [], "name": "__abdicate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x760fbc13" }, { "constant": false, "inputs": [], "name": "__acceptAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xb9a61961" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "newPendingAdmin", "type": "address" }, { "internalType": "uint256", "name": "eta", "type": "uint256" }], "name": "__executeSetTimelockPendingAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x21f43e42" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "newPendingAdmin", "type": "address" }, { "internalType": "uint256", "name": "eta", "type": "uint256" }], "name": "__queueSetTimelockPendingAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x91500671" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }], "name": "cancel", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x40e58ee5" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }, { "internalType": "bool", "name": "support", "type": "bool" }], "name": "castVote", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x15373e3d" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }, { "internalType": "bool", "name": "support", "type": "bool" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "castVoteBySig", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x4634c61f" }, { "constant": true, "inputs": [], "name": "comp", "outputs": [{ "internalType": "contract CompInterface", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x109d0af8" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }], "name": "execute", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function", "signature": "0xfe0d94c1" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }], "name": "getActions", "outputs": [{ "internalType": "address[]", "name": "targets", "type": "address[]" }, { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "internalType": "string[]", "name": "signatures", "type": "string[]" }, { "internalType": "bytes[]", "name": "calldatas", "type": "bytes[]" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x328dd982" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }, { "internalType": "address", "name": "voter", "type": "address" }], "name": "getReceipt", "outputs": [{ "components": [{ "internalType": "bool", "name": "hasVoted", "type": "bool" }, { "internalType": "bool", "name": "support", "type": "bool" }, { "internalType": "uint96", "name": "votes", "type": "uint96" }], "internalType": "struct GovernorAlpha.Receipt", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xe23a9a52" }, { "constant": true, "inputs": [], "name": "guardian", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x452a9320" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "latestProposalIds", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x17977c61" }, { "constant": true, "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x06fdde03" }, { "constant": true, "inputs": [], "name": "proposalCount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xda35c664" }, { "constant": true, "inputs": [], "name": "proposalMaxOperations", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x7bdbe4d0" }, { "constant": true, "inputs": [], "name": "proposalThreshold", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0xb58131b0" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "proposals", "outputs": [{ "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "proposer", "type": "address" }, { "internalType": "uint256", "name": "eta", "type": "uint256" }, { "internalType": "uint256", "name": "startBlock", "type": "uint256" }, { "internalType": "uint256", "name": "endBlock", "type": "uint256" }, { "internalType": "uint256", "name": "forVotes", "type": "uint256" }, { "internalType": "uint256", "name": "againstVotes", "type": "uint256" }, { "internalType": "bool", "name": "canceled", "type": "bool" }, { "internalType": "bool", "name": "executed", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x013cf08b" }, { "constant": false, "inputs": [{ "internalType": "address[]", "name": "targets", "type": "address[]" }, { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "internalType": "string[]", "name": "signatures", "type": "string[]" }, { "internalType": "bytes[]", "name": "calldatas", "type": "bytes[]" }, { "internalType": "string", "name": "description", "type": "string" }], "name": "propose", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xda95691a" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }], "name": "queue", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xddf0b009" }, { "constant": true, "inputs": [], "name": "quorumVotes", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x24bc1a64" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }], "name": "state", "outputs": [{ "internalType": "enum GovernorAlpha.ProposalState", "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x3e4f49e6" }, { "constant": true, "inputs": [], "name": "timelock", "outputs": [{ "internalType": "contract TimelockInterface", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xd33219b4" }, { "constant": true, "inputs": [], "name": "votingDelay", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x3932abb1" }, { "constant": true, "inputs": [], "name": "votingPeriod", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x02a251a3" }],
|
|
247
|
-
|
|
248
|
-
SumerLens: [{ "constant": true, "inputs": [{ "internalType": "contract ComptrollerLensInterface", "name": "comptroller", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "getAccountLimits", "outputs": [{ "components": [{ "internalType": "contract SDRToken[]", "name": "markets", "type": "address[]" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "shortfall", "type": "uint256" }], "internalType": "struct SumerLens.AccountLimits", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract GovernorAlpha", "name": "governor", "type": "address" }, { "internalType": "uint256[]", "name": "proposalIds", "type": "uint256[]" }], "name": "getGovProposals", "outputs": [{ "components": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }, { "internalType": "address", "name": "proposer", "type": "address" }, { "internalType": "uint256", "name": "eta", "type": "uint256" }, { "internalType": "address[]", "name": "targets", "type": "address[]" }, { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "internalType": "string[]", "name": "signatures", "type": "string[]" }, { "internalType": "bytes[]", "name": "calldatas", "type": "bytes[]" }, { "internalType": "uint256", "name": "startBlock", "type": "uint256" }, { "internalType": "uint256", "name": "endBlock", "type": "uint256" }, { "internalType": "uint256", "name": "forVotes", "type": "uint256" }, { "internalType": "uint256", "name": "againstVotes", "type": "uint256" }, { "internalType": "bool", "name": "canceled", "type": "bool" }, { "internalType": "bool", "name": "executed", "type": "bool" }], "internalType": "struct SumerLens.GovProposal[]", "name": "", "type": "tuple[]" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract GovernorAlpha", "name": "governor", "type": "address" }, { "internalType": "address", "name": "voter", "type": "address" }, { "internalType": "uint256[]", "name": "proposalIds", "type": "uint256[]" }], "name": "getGovReceipts", "outputs": [{ "components": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }, { "internalType": "bool", "name": "hasVoted", "type": "bool" }, { "internalType": "bool", "name": "support", "type": "bool" }, { "internalType": "uint96", "name": "votes", "type": "uint96" }], "internalType": "struct SumerLens.GovReceipt[]", "name": "", "type": "tuple[]" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract Sumer", "name": "sumer", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "getSumerBalanceMetadata", "outputs": [{ "components": [{ "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "votes", "type": "uint256" }, { "internalType": "address", "name": "delegate", "type": "address" }], "internalType": "struct SumerLens.SumerBalanceMetadata", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract Sumer", "name": "sumer", "type": "address" }, { "internalType": "contract ComptrollerLensInterface", "name": "comptroller", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "getSumerBalanceMetadataExt", "outputs": [{ "components": [{ "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "votes", "type": "uint256" }, { "internalType": "address", "name": "delegate", "type": "address" }, { "internalType": "uint256", "name": "allocated", "type": "uint256" }], "internalType": "struct SumerLens.SumerBalanceMetadataExt", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract Sumer", "name": "sumer", "type": "address" }, { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint32[]", "name": "blockNumbers", "type": "uint32[]" }], "name": "getSumerVotes", "outputs": [{ "components": [{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }, { "internalType": "uint256", "name": "votes", "type": "uint256" }], "internalType": "struct SumerLens.SumerVotes[]", "name": "", "type": "tuple[]" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }, { "internalType": "address payable", "name": "account", "type": "address" }], "name": "sdrTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "balanceOf", "type": "uint256" }, { "internalType": "uint256", "name": "borrowBalanceCurrent", "type": "uint256" }, { "internalType": "uint256", "name": "balanceOfUnderlying", "type": "uint256" }, { "internalType": "uint256", "name": "tokenBalance", "type": "uint256" }, { "internalType": "uint256", "name": "tokenAllowance", "type": "uint256" }], "internalType": "struct SumerLens.SDRTokenBalances", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract SDRToken[]", "name": "sdrTokens", "type": "address[]" }, { "internalType": "address payable", "name": "account", "type": "address" }], "name": "sdrTokenBalancesAll", "outputs": [{ "components": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "balanceOf", "type": "uint256" }, { "internalType": "uint256", "name": "borrowBalanceCurrent", "type": "uint256" }, { "internalType": "uint256", "name": "balanceOfUnderlying", "type": "uint256" }, { "internalType": "uint256", "name": "tokenBalance", "type": "uint256" }, { "internalType": "uint256", "name": "tokenAllowance", "type": "uint256" }], "internalType": "struct SumerLens.SDRTokenBalances[]", "name": "", "type": "tuple[]" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }], "name": "sdrTokenMetadata", "outputs": [{ "components": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "exchangeRateCurrent", "type": "uint256" }, { "internalType": "uint256", "name": "supplyRatePerBlock", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRatePerBlock", "type": "uint256" }, { "internalType": "uint256", "name": "reserveFactorMantissa", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }, { "internalType": "uint256", "name": "totalReserves", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "totalCash", "type": "uint256" }, { "internalType": "bool", "name": "isListed", "type": "bool" }, { "internalType": "uint256", "name": "collateralFactorMantissa", "type": "uint256" }, { "internalType": "address", "name": "underlyingAssetAddress", "type": "address" }, { "internalType": "uint256", "name": "sdrTokenDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingDecimals", "type": "uint256" }], "internalType": "struct SumerLens.SDRTokenMetadata", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract SDRToken[]", "name": "sdrTokens", "type": "address[]" }], "name": "sdrTokenMetadataAll", "outputs": [{ "components": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "exchangeRateCurrent", "type": "uint256" }, { "internalType": "uint256", "name": "supplyRatePerBlock", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRatePerBlock", "type": "uint256" }, { "internalType": "uint256", "name": "reserveFactorMantissa", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrows", "type": "uint256" }, { "internalType": "uint256", "name": "totalReserves", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "totalCash", "type": "uint256" }, { "internalType": "bool", "name": "isListed", "type": "bool" }, { "internalType": "uint256", "name": "collateralFactorMantissa", "type": "uint256" }, { "internalType": "address", "name": "underlyingAssetAddress", "type": "address" }, { "internalType": "uint256", "name": "sdrTokenDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingDecimals", "type": "uint256" }], "internalType": "struct SumerLens.SDRTokenMetadata[]", "name": "", "type": "tuple[]" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract SDRToken", "name": "sdrToken", "type": "address" }], "name": "sdrTokenUnderlyingPrice", "outputs": [{ "components": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "underlyingPrice", "type": "uint256" }], "internalType": "struct SumerLens.SDRTokenUnderlyingPrice", "name": "", "type": "tuple" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract SDRToken[]", "name": "sdrTokens", "type": "address[]" }], "name": "sdrTokenUnderlyingPriceAll", "outputs": [{ "components": [{ "internalType": "address", "name": "sdrToken", "type": "address" }, { "internalType": "uint256", "name": "underlyingPrice", "type": "uint256" }], "internalType": "struct SumerLens.SDRTokenUnderlyingPrice[]", "name": "", "type": "tuple[]" }], "payable": false, "stateMutability": "view", "type": "function" }],
|
|
249
|
-
PriceOracle: [{ "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "previousPriceMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "requestedPriceMantissa", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newPriceMantissa", "type": "uint256" }], "name": "PricePosted", "type": "event" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], "name": "assetPrices", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "contract VToken", "name": "vToken", "type": "address" }], "name": "getUnderlyingPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isPriceOracle", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "name": "setDirectPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "contract VToken", "name": "vToken", "type": "address" }, { "internalType": "uint256", "name": "underlyingPriceMantissa", "type": "uint256" }], "name": "setUnderlyingPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }]
|
|
1002
|
+
exports.getAddress = getAddress;
|
|
1003
|
+
const getName = (networkName, tokenAddress) => {
|
|
1004
|
+
if (!(networkName in address)) {
|
|
1005
|
+
throw Error(`${networkName} is not configured on name list`);
|
|
1006
|
+
}
|
|
1007
|
+
const nameList = names[networkName];
|
|
1008
|
+
if (!(tokenAddress.toLowerCase() in nameList)) {
|
|
1009
|
+
throw Error(`${tokenAddress} name not configued on ${networkName}`);
|
|
1010
|
+
}
|
|
1011
|
+
return nameList[tokenAddress.toLowerCase()];
|
|
250
1012
|
};
|
|
251
|
-
exports.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
exports.
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
'MTRG'
|
|
269
|
-
];
|
|
270
|
-
// additional assets supported by the open price feed
|
|
271
|
-
exports.opfAssets = ['KNC', 'LINK', 'BTC'];
|
|
272
|
-
exports.decimals = {
|
|
273
|
-
'cBAT': 8,
|
|
274
|
-
'cCOMP': 8,
|
|
275
|
-
'cDAI': 8,
|
|
276
|
-
'cETH': 8,
|
|
277
|
-
'cREP': 8,
|
|
278
|
-
'cSAI': 8,
|
|
279
|
-
'cUNI': 8,
|
|
280
|
-
'cUSDC': 8,
|
|
281
|
-
'cUSDT': 8,
|
|
282
|
-
'cWBTC': 8,
|
|
283
|
-
'cZRX': 8,
|
|
284
|
-
'BAT': 18,
|
|
285
|
-
'COMP': 18,
|
|
286
|
-
'DAI': 18,
|
|
287
|
-
'suUSD': 18,
|
|
288
|
-
'ETH': 18,
|
|
289
|
-
'REP': 18,
|
|
290
|
-
'SAI': 18,
|
|
291
|
-
'UNI': 18,
|
|
292
|
-
// 'USDC': 6,
|
|
293
|
-
// 'USDT': 6,
|
|
294
|
-
'WBTC': 8,
|
|
295
|
-
'ZRX': 18,
|
|
296
|
-
'KNC': 18,
|
|
297
|
-
'LINK': 18,
|
|
298
|
-
'BTC': 8,
|
|
299
|
-
// venus decimals
|
|
300
|
-
'vBNB': 8,
|
|
301
|
-
'vUSDC': 8,
|
|
302
|
-
'vUSDT': 8,
|
|
303
|
-
'vSXP': 8,
|
|
304
|
-
'vBUSD': 8,
|
|
305
|
-
'vXVS': 8,
|
|
306
|
-
'BNB': 18,
|
|
307
|
-
'USDC': 6,
|
|
308
|
-
'USDT': 6,
|
|
309
|
-
'SXP': 18,
|
|
310
|
-
'BUSD': 18,
|
|
311
|
-
'XVS': 18,
|
|
312
|
-
// Sumer
|
|
313
|
-
'HT': 18,
|
|
314
|
-
'HETH': 18,
|
|
315
|
-
'HUSD': 18,
|
|
316
|
-
'sdrHT': 8,
|
|
317
|
-
'sdrHETH': 8,
|
|
318
|
-
'sdrHUSD': 8,
|
|
319
|
-
// Sumer on Ropsten
|
|
320
|
-
'MTRG': 18,
|
|
321
|
-
'sdrETH': 8,
|
|
322
|
-
'sdrMTRG': 8,
|
|
323
|
-
'sdrUSDT': 8
|
|
1013
|
+
exports.getName = getName;
|
|
1014
|
+
const isCTokenAllowed = (networkName, cToken) => {
|
|
1015
|
+
const pairs = (0, exports.getTokenPairs)(networkName);
|
|
1016
|
+
const allowed = pairs.some((p) => p.ctokenSym === cToken);
|
|
1017
|
+
if (!allowed) {
|
|
1018
|
+
throw Error(`cToken ${cToken} not allowed on ${networkName}`);
|
|
1019
|
+
}
|
|
1020
|
+
return true;
|
|
1021
|
+
};
|
|
1022
|
+
exports.isCTokenAllowed = isCTokenAllowed;
|
|
1023
|
+
const isUnderlyAllowed = (networkName, underlyName) => {
|
|
1024
|
+
const pairs = (0, exports.getTokenPairs)(networkName);
|
|
1025
|
+
const allowed = pairs.some((p) => p.underlySym === underlyName);
|
|
1026
|
+
if (!allowed) {
|
|
1027
|
+
throw Error(`underly ${underlyName} not allowed on ${networkName}`);
|
|
1028
|
+
}
|
|
1029
|
+
return true;
|
|
324
1030
|
};
|
|
325
|
-
exports.
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
'info': {
|
|
348
|
-
'0': { 'error': 'ACCEPT_ADMIN_PENDING_ADMIN_CHECK', 'description': '', 'hint': '' },
|
|
349
|
-
'1': { 'error': 'ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK', 'description': '', 'hint': '' },
|
|
350
|
-
'2': { 'error': 'EXIT_MARKET_BALANCE_OWED', 'description': '', 'hint': '' },
|
|
351
|
-
'3': { 'error': 'EXIT_MARKET_REJECTION', 'description': '', 'hint': '' },
|
|
352
|
-
'4': { 'error': 'SET_CLOSE_FACTOR_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
353
|
-
'5': { 'error': 'SET_CLOSE_FACTOR_VALIDATION', 'description': '', 'hint': '' },
|
|
354
|
-
'6': { 'error': 'SET_COLLATERAL_FACTOR_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
355
|
-
'7': { 'error': 'SET_COLLATERAL_FACTOR_NO_EXISTS', 'description': '', 'hint': '' },
|
|
356
|
-
'8': { 'error': 'SET_COLLATERAL_FACTOR_VALIDATION', 'description': '', 'hint': '' },
|
|
357
|
-
'9': { 'error': 'SET_COLLATERAL_FACTOR_WITHOUT_PRICE', 'description': '', 'hint': '' },
|
|
358
|
-
'10': { 'error': 'SET_IMPLEMENTATION_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
359
|
-
'11': { 'error': 'SET_LIQUIDATION_INCENTIVE_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
360
|
-
'12': { 'error': 'SET_LIQUIDATION_INCENTIVE_VALIDATION', 'description': '', 'hint': '' },
|
|
361
|
-
'13': { 'error': 'SET_MAX_ASSETS_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
362
|
-
'14': { 'error': 'SET_PENDING_ADMIN_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
363
|
-
'15': { 'error': 'SET_PENDING_IMPLEMENTATION_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
364
|
-
'16': { 'error': 'SET_PRICE_ORACLE_OWNER_CHECK', 'description': '', 'hint': '' },
|
|
365
|
-
'17': { 'error': 'SUPPORT_MARKET_EXISTS', 'description': '', 'hint': '' },
|
|
366
|
-
'18': { 'error': 'SUPPORT_MARKET_OWNER_CHECK', 'description': '', 'hint': '' }
|
|
1031
|
+
exports.isUnderlyAllowed = isUnderlyAllowed;
|
|
1032
|
+
const getDecimals = (networkName, tokenSym) => {
|
|
1033
|
+
const pairs = (0, exports.getTokenPairs)(networkName);
|
|
1034
|
+
for (const p of pairs) {
|
|
1035
|
+
if (p.ctokenSym === tokenSym) {
|
|
1036
|
+
return p.ctokenDecimal;
|
|
1037
|
+
}
|
|
1038
|
+
if (p.underlySym === tokenSym) {
|
|
1039
|
+
return p.underlyDecimal;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
throw Error(`decimal not configured for ${tokenSym} on ${networkName}`);
|
|
1043
|
+
};
|
|
1044
|
+
exports.getDecimals = getDecimals;
|
|
1045
|
+
const getDecimalsOfUnderly = (networkName, tokenSym) => {
|
|
1046
|
+
const pairs = (0, exports.getTokenPairs)(networkName);
|
|
1047
|
+
for (const p of pairs) {
|
|
1048
|
+
if (p.ctokenSym === tokenSym) {
|
|
1049
|
+
return p.underlyDecimal;
|
|
1050
|
+
}
|
|
1051
|
+
if (p.underlySym === tokenSym) {
|
|
1052
|
+
return p.underlyDecimal;
|
|
367
1053
|
}
|
|
368
1054
|
}
|
|
1055
|
+
throw Error(`decimal not configured for ${tokenSym} on ${networkName}`);
|
|
1056
|
+
};
|
|
1057
|
+
exports.getDecimalsOfUnderly = getDecimalsOfUnderly;
|
|
1058
|
+
const isEther = (networkName, ctokenSym) => {
|
|
1059
|
+
const pairs = (0, exports.getTokenPairs)(networkName);
|
|
1060
|
+
return pairs.some((p) => p.ctokenSym === ctokenSym && p.ctokenIsEther);
|
|
369
1061
|
};
|
|
1062
|
+
exports.isEther = isEther;
|
|
1063
|
+
// TODO: Show a specific error code when a transaction fails
|
|
1064
|
+
// export const errorCodes = {
|
|
1065
|
+
// 'comptroller': {
|
|
1066
|
+
// 'codes': {
|
|
1067
|
+
// '0': { 'error': 'NO_ERROR', 'description': 'Not a failure.', 'hint': '', },
|
|
1068
|
+
// '1': { 'error': 'UNAUTHORIZED', 'description': 'The sender is not authorized to perform this action.', 'hint': '', },
|
|
1069
|
+
// '2': { 'error': 'COMPTROLLER_MISMATCH', 'description': 'Liquidation cannot be performed in markets with different comptrollers.', 'hint': '', },
|
|
1070
|
+
// '3': { 'error': 'INSUFFICIENT_SHORTFALL', 'description': 'The account does not have sufficient shortfall to perform this action.', 'hint': '', },
|
|
1071
|
+
// '4': { 'error': 'INSUFFICIENT_LIQUIDITY', 'description': 'The account does not have sufficient liquidity to perform this action.', 'hint': '', },
|
|
1072
|
+
// '5': { 'error': 'INVALID_CLOSE_FACTOR', 'description': 'The close factor is not valid.', 'hint': '', },
|
|
1073
|
+
// '6': { 'error': 'INVALID_COLLATERAL_FACTOR', 'description': 'The collateral factor is not valid.', 'hint': '', },
|
|
1074
|
+
// '7': { 'error': 'INVALID_LIQUIDATION_INCENTIVE', 'description': 'The liquidation incentive is invalid.', 'hint': '', },
|
|
1075
|
+
// '8': { 'error': 'MARKET_NOT_ENTERED', 'description': 'The market has not been entered by the account.', 'hint': '', },
|
|
1076
|
+
// '9': { 'error': 'MARKET_NOT_LISTED', 'description': 'The market is not currently listed by the comptroller.', 'hint': '', },
|
|
1077
|
+
// '10': { 'error': 'MARKET_ALREADY_LISTED', 'description': 'An admin tried to list the same market more than once.', 'hint': '', },
|
|
1078
|
+
// '11': { 'error': 'MATH_ERROR', 'description': 'A math calculation error occurred.', 'hint': '', },
|
|
1079
|
+
// '12': { 'error': 'NONZERO_BORROW_BALANCE', 'description': 'The action cannot be performed since the account carries a borrow balance.', 'hint': '', },
|
|
1080
|
+
// '13': { 'error': 'PRICE_ERROR', 'description': 'The comptroller could not obtain a required price of an asset.', 'hint': '', },
|
|
1081
|
+
// '14': { 'error': 'REJECTION', 'description': 'The comptroller rejects the action requested by the market.', 'hint': '', },
|
|
1082
|
+
// '15': { 'error': 'SNAPSHOT_ERROR', 'description': 'The comptroller could not get the account borrows and exchange rate from the market.', 'hint': '', },
|
|
1083
|
+
// '16': { 'error': 'TOO_MANY_ASSETS', 'description': 'Attempted to enter more markets than are currently supported.', 'hint': '', },
|
|
1084
|
+
// '17': { 'error': 'TOO_MUCH_REPAY', 'description': 'Attempted to repay more than is allowed by the protocol.', 'hint': '', },
|
|
1085
|
+
// },
|
|
1086
|
+
// 'info': {
|
|
1087
|
+
// '0': { 'error': 'ACCEPT_ADMIN_PENDING_ADMIN_CHECK', 'description': '', 'hint': '', },
|
|
1088
|
+
// '1': { 'error': 'ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK', 'description': '', 'hint': '', },
|
|
1089
|
+
// '2': { 'error': 'EXIT_MARKET_BALANCE_OWED', 'description': '', 'hint': '', },
|
|
1090
|
+
// '3': { 'error': 'EXIT_MARKET_REJECTION', 'description': '', 'hint': '', },
|
|
1091
|
+
// '4': { 'error': 'SET_CLOSE_FACTOR_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1092
|
+
// '5': { 'error': 'SET_CLOSE_FACTOR_VALIDATION', 'description': '', 'hint': '', },
|
|
1093
|
+
// '6': { 'error': 'SET_COLLATERAL_FACTOR_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1094
|
+
// '7': { 'error': 'SET_COLLATERAL_FACTOR_NO_EXISTS', 'description': '', 'hint': '', },
|
|
1095
|
+
// '8': { 'error': 'SET_COLLATERAL_FACTOR_VALIDATION', 'description': '', 'hint': '', },
|
|
1096
|
+
// '9': { 'error': 'SET_COLLATERAL_FACTOR_WITHOUT_PRICE', 'description': '', 'hint': '', },
|
|
1097
|
+
// '10': { 'error': 'SET_IMPLEMENTATION_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1098
|
+
// '11': { 'error': 'SET_LIQUIDATION_INCENTIVE_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1099
|
+
// '12': { 'error': 'SET_LIQUIDATION_INCENTIVE_VALIDATION', 'description': '', 'hint': '', },
|
|
1100
|
+
// '13': { 'error': 'SET_MAX_ASSETS_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1101
|
+
// '14': { 'error': 'SET_PENDING_ADMIN_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1102
|
+
// '15': { 'error': 'SET_PENDING_IMPLEMENTATION_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1103
|
+
// '16': { 'error': 'SET_PRICE_ORACLE_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1104
|
+
// '17': { 'error': 'SUPPORT_MARKET_EXISTS', 'description': '', 'hint': '', },
|
|
1105
|
+
// '18': { 'error': 'SUPPORT_MARKET_OWNER_CHECK', 'description': '', 'hint': '', },
|
|
1106
|
+
// }
|
|
1107
|
+
// }
|
|
1108
|
+
// };
|
|
370
1109
|
//# sourceMappingURL=constants.js.map
|