@venusprotocol/protocol-reserve 1.1.0 → 1.2.0-converters.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 +17 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +215 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +63 -0
- package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.json +56 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.json +24 -0
- package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.json +56 -0
- package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.json +19 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.json +80 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +4 -0
- package/artifacts/{contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.json → @openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.json} +5 -5
- package/artifacts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json +113 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.json +63 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/oracle/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/ResilientOracle.sol/ResilientOracle.json +649 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.json +40 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.json +30 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.json +75 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.json +49 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/VBep20Interface.sol/VBep20Interface.json +246 -0
- package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
- package/artifacts/build-info/d38b6776f8d2919af17221fcc74eb552.json +1 -0
- package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.json +56 -0
- package/artifacts/contracts/Interfaces/IConverterNetwork.sol/IConverterNetwork.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IConverterNetwork.sol/IConverterNetwork.json +127 -0
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IPoolRegistry.sol/IPoolRegistry.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IPoolRegistry.sol/IPoolRegistry.json +54 -0
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFund.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFund.json +77 -0
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFundGetters.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFundGetters.json +24 -0
- package/artifacts/contracts/Interfaces/IRiskFundConverter.sol/IRiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/{PoolRegistryInterface.sol/PoolRegistryInterface.json → IRiskFundConverter.sol/IRiskFundConverter.json} +23 -10
- package/artifacts/contracts/Interfaces/IShortfall.sol/IShortfall.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IShortfall.sol/IShortfall.json +24 -0
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IXVSVault.sol/IXVSVault.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IXVSVault.sol/IXVSVault.json +24 -0
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +16 -16
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/MaxLoopsLimitHelpersStorage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/MaxLoopsLimitHelpersStorage.json +24 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/ReserveHelpersStorage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/ReserveHelpersStorage.json +139 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV1Storage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV1Storage.json +178 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV2Storage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV2Storage.json +191 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundV2.sol/RiskFundV2.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundV2.sol/RiskFundV2.json +582 -0
- package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.json +315 -0
- package/artifacts/contracts/Test/Mocks/MockACM.sol/MockACM.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockACM.sol/MockACM.json +369 -0
- package/artifacts/contracts/Test/Mocks/MockArraySorter.sol/MockArraySorter.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockArraySorter.sol/MockArraySorter.json +40 -0
- package/artifacts/contracts/Test/Mocks/MockConverter.sol/MockConverter.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockConverter.sol/MockConverter.json +1395 -0
- package/artifacts/contracts/Test/Mocks/MockDeflationaryToken.sol/MockDeflatingToken.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockDeflationaryToken.sol/MockDeflatingToken.json +332 -0
- package/artifacts/contracts/Test/Mocks/MockRiskFundConverter.sol/MockRiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockRiskFundConverter.sol/MockRiskFundConverter.json +1761 -0
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.json +20 -2
- package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.json +1276 -0
- package/artifacts/contracts/TokenConverter/ConverterNetwork.sol/ConverterNetwork.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/ConverterNetwork.sol/ConverterNetwork.json +457 -0
- package/artifacts/contracts/TokenConverter/IAbstractTokenConverter.sol/IAbstractTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/IAbstractTokenConverter.sol/IAbstractTokenConverter.json +446 -0
- package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.json +1631 -0
- package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.json +1390 -0
- package/contracts/Interfaces/IComptroller.sol +10 -0
- package/contracts/Interfaces/IConverterNetwork.sol +46 -0
- package/contracts/Interfaces/IPoolRegistry.sol +10 -0
- package/contracts/Interfaces/IRiskFund.sol +28 -0
- package/contracts/Interfaces/IRiskFundConverter.sol +8 -0
- package/contracts/Interfaces/IShortfall.sol +11 -0
- package/contracts/Interfaces/IXVSVault.sol +9 -0
- package/contracts/ProtocolReserve/ProtocolShareReserve.sol +14 -13
- package/contracts/ProtocolReserve/RiskFundStorage.sol +67 -0
- package/contracts/ProtocolReserve/RiskFundV2.sol +220 -0
- package/contracts/ProtocolReserve/XVSVaultTreasury.sol +95 -0
- package/contracts/Test/Mocks/MockACM.sol +94 -0
- package/contracts/Test/Mocks/MockArraySorter.sol +14 -0
- package/contracts/Test/Mocks/MockConverter.sol +70 -0
- package/contracts/Test/Mocks/MockDeflationaryToken.sol +113 -0
- package/contracts/Test/Mocks/MockRiskFundConverter.sol +45 -0
- package/contracts/Test/Mocks/MockToken.sol +4 -0
- package/contracts/Test/imports.sol +11 -0
- package/contracts/TokenConverter/AbstractTokenConverter.sol +1168 -0
- package/contracts/TokenConverter/ConverterNetwork.sol +243 -0
- package/contracts/TokenConverter/IAbstractTokenConverter.sol +178 -0
- package/contracts/TokenConverter/RiskFundConverter.sol +449 -0
- package/contracts/TokenConverter/SingleTokenConverter.sol +102 -0
- package/contracts/Utils/ArrayHelpers.sol +41 -0
- package/contracts/Utils/Constants.sol +8 -0
- package/contracts/Utils/Validators.sol +26 -0
- package/deployments/bscmainnet.json +2039 -0
- package/deployments/bscmainnet_addresses.json +10 -0
- package/deployments/bsctestnet/BTCBPrimeConverter.json +218 -0
- package/deployments/bsctestnet/ConverterNetwork.json +723 -0
- package/deployments/bsctestnet/ConverterNetwork_Implementation.json +823 -0
- package/deployments/bsctestnet/ConverterNetwork_Proxy.json +277 -0
- package/deployments/bsctestnet/ETHPrimeConverter.json +218 -0
- package/deployments/bsctestnet/ProtocolShareReserve_Implementation.json +79 -73
- package/deployments/bsctestnet/RiskFundConverter.json +2035 -0
- package/deployments/bsctestnet/RiskFundConverter_Implementation.json +2563 -0
- package/deployments/bsctestnet/RiskFundConverter_Proxy.json +403 -0
- package/deployments/bsctestnet/RiskFundV2_Implementation.json +1049 -0
- package/deployments/bsctestnet/SingleTokenConverterBeacon.json +206 -0
- package/deployments/bsctestnet/SingleTokenConverterImp.json +2164 -0
- package/deployments/bsctestnet/USDCPrimeConverter.json +218 -0
- package/deployments/bsctestnet/USDTPrimeConverter.json +218 -0
- package/deployments/bsctestnet/XVSVaultConverter.json +218 -0
- package/deployments/bsctestnet/XVSVaultTreasury.json +579 -0
- package/deployments/bsctestnet/XVSVaultTreasury_Implementation.json +603 -0
- package/deployments/bsctestnet/XVSVaultTreasury_Proxy.json +281 -0
- package/deployments/bsctestnet/solcInputs/5d85b28b6a601f301b9d986a9cab69e1.json +168 -0
- package/deployments/bsctestnet/solcInputs/ddce8674a6dbb661f5732619dd799a66.json +228 -0
- package/deployments/bsctestnet/solcInputs/f4de763d185e08f2949b0be700500ede.json +144 -0
- package/deployments/bsctestnet.json +10088 -0
- package/deployments/bsctestnet_addresses.json +27 -0
- package/deployments/ethereum.json +5 -0
- package/deployments/ethereum_addresses.json +5 -0
- package/deployments/sepolia.json +5 -0
- package/deployments/sepolia_addresses.json +5 -0
- package/dist/deploy/001-psr.d.ts +2 -0
- package/dist/deploy/001-psr.d.ts.map +1 -0
- package/dist/deploy/001-psr.js +68 -0
- package/dist/deploy/001-psr.js.map +1 -0
- package/dist/deploy/002-risk-fund-converter.d.ts +4 -0
- package/dist/deploy/002-risk-fund-converter.d.ts.map +1 -0
- package/dist/deploy/002-risk-fund-converter.js +80 -0
- package/dist/deploy/002-risk-fund-converter.js.map +1 -0
- package/dist/deploy/003-xvs-vault-teasury.d.ts +2 -0
- package/dist/deploy/003-xvs-vault-teasury.d.ts.map +1 -0
- package/dist/deploy/003-xvs-vault-teasury.js +43 -0
- package/dist/deploy/003-xvs-vault-teasury.js.map +1 -0
- package/dist/deploy/004-single-token-converter.d.ts +4 -0
- package/dist/deploy/004-single-token-converter.d.ts.map +1 -0
- package/dist/deploy/004-single-token-converter.js +62 -0
- package/dist/deploy/004-single-token-converter.js.map +1 -0
- package/dist/deploy/005-converter-network.d.ts +2 -0
- package/dist/deploy/005-converter-network.d.ts.map +1 -0
- package/dist/deploy/005-converter-network.js +41 -0
- package/dist/deploy/005-converter-network.js.map +1 -0
- package/dist/hardhat.config.d.ts +15 -0
- package/dist/hardhat.config.d.ts.map +1 -0
- package/dist/hardhat.config.js +216 -0
- package/dist/hardhat.config.js.map +1 -0
- package/package.json +23 -21
- package/typechain/AbstractTokenConverter.d.ts +1775 -0
- package/typechain/AccessControl.d.ts +388 -0
- package/typechain/BeaconProxy.d.ts +126 -0
- package/typechain/BoundValidatorInterface.d.ts +126 -0
- package/typechain/ConverterNetwork.d.ts +723 -0
- package/typechain/{PoolRegistryInterface.d.ts → ERC165.d.ts} +20 -25
- package/typechain/ERC1967Upgrade.d.ts +126 -0
- package/typechain/IAbstractTokenConverter.d.ts +773 -0
- package/typechain/IBeacon.d.ts +101 -0
- package/typechain/IComptroller.d.ts +136 -0
- package/typechain/IConverterNetwork.d.ts +292 -0
- package/typechain/IERC165.d.ts +116 -0
- package/typechain/{ComptrollerInterface.d.ts → IERC1822Proxiable.d.ts} +11 -11
- package/typechain/IERC1967.d.ts +126 -0
- package/typechain/IPoolRegistry.d.ts +155 -0
- package/typechain/IRiskFund.d.ts +200 -0
- package/typechain/IRiskFundConverter.d.ts +138 -0
- package/typechain/IRiskFundGetters.d.ts +103 -0
- package/typechain/IShortfall.d.ts +110 -0
- package/typechain/IXVSVault.d.ts +95 -0
- package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
- package/typechain/MockACM.d.ts +615 -0
- package/typechain/MockArraySorter.d.ts +118 -0
- package/typechain/MockConverter.d.ts +1969 -0
- package/typechain/MockDeflatingToken.d.ts +486 -0
- package/typechain/MockRiskFundConverter.d.ts +2479 -0
- package/typechain/MockToken.d.ts +36 -0
- package/typechain/OracleInterface.d.ts +98 -0
- package/typechain/Ownable.d.ts +181 -0
- package/typechain/PausableUpgradeable.d.ts +129 -0
- package/typechain/ProtocolShareReserve.d.ts +6 -6
- package/typechain/Proxy.d.ts +78 -0
- package/typechain/ReserveHelpersStorage.d.ts +300 -0
- package/typechain/ResilientOracle.d.ts +1034 -0
- package/typechain/ResilientOracleInterface.d.ts +192 -0
- package/typechain/RiskFundConverter.d.ts +2235 -0
- package/typechain/RiskFundV1Storage.d.ts +353 -0
- package/typechain/RiskFundV2.d.ts +893 -0
- package/typechain/RiskFundV2Storage.d.ts +372 -0
- package/typechain/SingleTokenConverter.d.ts +1944 -0
- package/typechain/TwapInterface.d.ts +124 -0
- package/typechain/UpgradeableBeacon.d.ts +240 -0
- package/typechain/VBep20Interface.d.ts +379 -0
- package/typechain/XVSVaultTreasury.d.ts +515 -0
- package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
- package/typechain/factories/AccessControl__factory.ts +227 -0
- package/typechain/factories/BeaconProxy__factory.ts +133 -0
- package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
- package/typechain/factories/ConverterNetwork__factory.ts +502 -0
- package/typechain/factories/ERC165__factory.ts +39 -0
- package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
- package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
- package/typechain/factories/IBeacon__factory.ts +36 -0
- package/typechain/factories/IComptroller__factory.ts +68 -0
- package/typechain/factories/IConverterNetwork__factory.ts +142 -0
- package/typechain/factories/{ComptrollerInterface__factory.ts → IERC165__factory.ts} +14 -15
- package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
- package/typechain/factories/IERC1967__factory.ts +68 -0
- package/typechain/factories/IPoolRegistry__factory.ts +66 -0
- package/typechain/factories/{PoolRegistryInterface__factory.ts → IRiskFundConverter__factory.ts} +28 -19
- package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
- package/typechain/factories/IRiskFund__factory.ts +89 -0
- package/typechain/factories/IShortfall__factory.ts +36 -0
- package/typechain/factories/IXVSVault__factory.ts +36 -0
- package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
- package/typechain/factories/MockACM__factory.ts +411 -0
- package/typechain/factories/MockArraySorter__factory.ts +85 -0
- package/typechain/factories/MockConverter__factory.ts +1439 -0
- package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
- package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
- package/typechain/factories/MockToken__factory.ts +19 -1
- package/typechain/factories/OracleInterface__factory.ts +45 -0
- package/typechain/factories/Ownable__factory.ts +75 -0
- package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
- package/typechain/factories/ProtocolShareReserve__factory.ts +15 -15
- package/typechain/factories/Proxy__factory.ts +28 -0
- package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
- package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
- package/typechain/factories/ResilientOracle__factory.ts +710 -0
- package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
- package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
- package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
- package/typechain/factories/RiskFundV2__factory.ts +624 -0
- package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
- package/typechain/factories/TwapInterface__factory.ts +61 -0
- package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
- package/typechain/factories/VBep20Interface__factory.ts +261 -0
- package/typechain/factories/XVSVaultTreasury__factory.ts +365 -0
- package/typechain/index.ts +84 -4
- package/artifacts/build-info/0bf08ffb3b10e68a2b3f4538fccc61c5.json +0 -1
- package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +0 -4
- package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +0 -4
- package/contracts/Interfaces/ComptrollerInterface.sol +0 -6
- package/contracts/Interfaces/PoolRegistryInterface.sol +0 -7
- package/deploy/1-deploy.ts +0 -64
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bsctestnet",
|
|
3
|
+
"chainId": "97",
|
|
4
|
+
"addresses": {
|
|
5
|
+
"BTCBPrimeConverter": "0x357eD75C02A26C44fB84527B5d64B80D6222C5a1",
|
|
6
|
+
"ConverterNetwork": "0x650B1C775E737c439129611f068AFA3763b57Ff5",
|
|
7
|
+
"ConverterNetwork_Implementation": "0x39b1432442AfeA0b37d23aAe7Da30e92Df96c0Df",
|
|
8
|
+
"ConverterNetwork_Proxy": "0x650B1C775E737c439129611f068AFA3763b57Ff5",
|
|
9
|
+
"DefaultProxyAdmin": "0x7877ffd62649b6a1557b55d4c20fcbab17344c91",
|
|
10
|
+
"ETHPrimeConverter": "0x9084aFAaa6b06171B59Ce629295c86c8974CcEF8",
|
|
11
|
+
"ProtocolShareReserve": "0x25c7c7D6Bf710949fD7f03364E9BA19a1b3c10E3",
|
|
12
|
+
"ProtocolShareReserve_Implementation": "0x194777360f9DFAA147F462349E9bC9002F72b0EE",
|
|
13
|
+
"ProtocolShareReserve_Proxy": "0x25c7c7D6Bf710949fD7f03364E9BA19a1b3c10E3",
|
|
14
|
+
"RiskFundConverter": "0x07c10cd93d7ACE4c1EfAE0248393e96c072A69F3",
|
|
15
|
+
"RiskFundConverter_Implementation": "0xDCE951479649C8b99ea09a157f2dC136C2b31b82",
|
|
16
|
+
"RiskFundConverter_Proxy": "0x07c10cd93d7ACE4c1EfAE0248393e96c072A69F3",
|
|
17
|
+
"RiskFundV2_Implementation": "0x217a907B0c6a7Dc67a21F769a915722B98136F82",
|
|
18
|
+
"SingleTokenConverterBeacon": "0xbB518461E11b622820684e99Bc0a957f7517a29E",
|
|
19
|
+
"SingleTokenConverterImp": "0xa7c352e5eb243eF8711a620E7694A88DA5Eca3E7",
|
|
20
|
+
"USDCPrimeConverter": "0x18F2543DCCD09dEb0e28575008CD24c0700e964B",
|
|
21
|
+
"USDTPrimeConverter": "0x8B7F7176176c4eF5BeDCC5BC5958dFBD8DD9a740",
|
|
22
|
+
"XVSVaultConverter": "0x354B807373a9D07A08b0F6a4064B9Ef80fAD7DBf",
|
|
23
|
+
"XVSVaultTreasury": "0x128E0Ef5139D7758C6Bec20FD8Ee96DA65535b53",
|
|
24
|
+
"XVSVaultTreasury_Implementation": "0x8858eacc7235F2672143A4279ac3F6f258fA9054",
|
|
25
|
+
"XVSVaultTreasury_Proxy": "0x128E0Ef5139D7758C6Bec20FD8Ee96DA65535b53"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"001-psr.d.ts","sourceRoot":"","sources":["../../deploy/001-psr.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
const hardhat_1 = __importStar(require("hardhat"));
|
|
36
|
+
module.exports = ({ getNamedAccounts, deployments }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
+
const { deploy } = deployments;
|
|
38
|
+
const { deployer } = yield getNamedAccounts();
|
|
39
|
+
const loopsLimit = 20;
|
|
40
|
+
const corepoolAddress = (yield hardhat_1.ethers.getContract("Unitroller")).address;
|
|
41
|
+
const wBNBAddress = (yield hardhat_1.ethers.getContract("WBNB")).address;
|
|
42
|
+
const vBNBAddress = (yield hardhat_1.ethers.getContract("vBNB")).address;
|
|
43
|
+
const acmAddress = (yield hardhat_1.ethers.getContract("AccessControlManager")).address;
|
|
44
|
+
const timelockAddress = (yield hardhat_1.ethers.getContract("NormalTimelock")).address;
|
|
45
|
+
yield deploy("ProtocolShareReserve", {
|
|
46
|
+
from: deployer,
|
|
47
|
+
log: true,
|
|
48
|
+
deterministicDeployment: false,
|
|
49
|
+
args: [corepoolAddress, wBNBAddress, vBNBAddress],
|
|
50
|
+
proxy: {
|
|
51
|
+
owner: timelockAddress,
|
|
52
|
+
proxyContract: "OpenZeppelinTransparentProxy",
|
|
53
|
+
execute: {
|
|
54
|
+
methodName: "initialize",
|
|
55
|
+
args: [acmAddress, loopsLimit],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
const psr = yield hardhat_1.default.ethers.getContract("ProtocolShareReserve");
|
|
60
|
+
const psrOwner = yield psr.owner();
|
|
61
|
+
if (psrOwner === deployer) {
|
|
62
|
+
const tx = yield psr.transferOwnership(timelockAddress);
|
|
63
|
+
yield tx.wait();
|
|
64
|
+
console.log("Transferred ownership of PSR to Timelock");
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
module.exports.tags = ["ProtocolShareReserve"];
|
|
68
|
+
//# sourceMappingURL=001-psr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"001-psr.js","sourceRoot":"","sources":["../../deploy/001-psr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AAGtC,MAAM,CAAC,OAAO,GAAG,CAAO,EAAE,gBAAgB,EAAE,WAAW,EAA6B,EAAE,EAAE;IACtF,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAE9C,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,MAAM,eAAe,GAAG,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,YAAY,C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CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"002-risk-fund-converter.d.ts","sourceRoot":"","sources":["../../deploy/002-risk-fund-converter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAKtD,QAAA,MAAM,IAAI,EAAE,cAgEX,CAAC;AAGF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const utils_1 = require("ethers/lib/utils");
|
|
13
|
+
const hardhat_1 = require("hardhat");
|
|
14
|
+
const MIN_AMOUNT_TO_CONVERT = (0, utils_1.parseUnits)("10", 18);
|
|
15
|
+
const func = function (hre) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
const { deployments, getNamedAccounts } = hre;
|
|
18
|
+
const { deploy } = deployments;
|
|
19
|
+
const { deployer } = yield getNamedAccounts();
|
|
20
|
+
const acmAddress = (yield hardhat_1.ethers.getContract("AccessControlManager")).address;
|
|
21
|
+
const oracleAddress = (yield hardhat_1.ethers.getContract("ResilientOracle")).address;
|
|
22
|
+
const usdtAddress = (yield hardhat_1.ethers.getContract("USDT")).address;
|
|
23
|
+
const corePoolAddress = (yield hardhat_1.ethers.getContract("Unitroller")).address;
|
|
24
|
+
const btcbAddress = (yield hardhat_1.ethers.getContract("BTCB")).address;
|
|
25
|
+
const ethAddress = (yield hardhat_1.ethers.getContract("ETH")).address;
|
|
26
|
+
const vBNBAddress = (yield hardhat_1.ethers.getContract("vBNB")).address;
|
|
27
|
+
const wBNBAddress = (yield hardhat_1.ethers.getContract("WBNB")).address;
|
|
28
|
+
const riskFundAddress = (yield hardhat_1.ethers.getContract("RiskFund")).address;
|
|
29
|
+
const poolRegistryAddress = (yield hardhat_1.ethers.getContract("PoolRegistry")).address;
|
|
30
|
+
const poolDeFiAddress = (yield hardhat_1.ethers.getContract("Comptroller_DeFi")).address;
|
|
31
|
+
const poolGameFiAddress = (yield hardhat_1.ethers.getContract("Comptroller_GameFi")).address;
|
|
32
|
+
const poolTronAddress = (yield hardhat_1.ethers.getContract("Comptroller_Tron")).address;
|
|
33
|
+
const timelockAddress = (yield hardhat_1.ethers.getContract("NormalTimelock")).address;
|
|
34
|
+
let poolStableCoinAddress;
|
|
35
|
+
if (hardhat_1.network.name === "bscmainnet") {
|
|
36
|
+
poolStableCoinAddress = (yield hardhat_1.ethers.getContract("Comptroller_Stablecoins")).address;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
poolStableCoinAddress = (yield hardhat_1.ethers.getContract("Comptroller_StableCoins")).address;
|
|
40
|
+
}
|
|
41
|
+
const comptrollers = [corePoolAddress, poolStableCoinAddress, poolDeFiAddress, poolGameFiAddress, poolTronAddress];
|
|
42
|
+
const assets = [[usdtAddress, btcbAddress, ethAddress], [usdtAddress], [usdtAddress], [usdtAddress], [usdtAddress]];
|
|
43
|
+
const values = [[true, true, true], [true], [true], [true], [true]];
|
|
44
|
+
yield deploy("RiskFundConverter", {
|
|
45
|
+
from: deployer,
|
|
46
|
+
contract: "RiskFundConverter",
|
|
47
|
+
args: [corePoolAddress, vBNBAddress, wBNBAddress],
|
|
48
|
+
proxy: {
|
|
49
|
+
owner: timelockAddress,
|
|
50
|
+
proxyContract: "OpenZeppelinTransparentProxy",
|
|
51
|
+
execute: {
|
|
52
|
+
methodName: "initialize",
|
|
53
|
+
args: [
|
|
54
|
+
acmAddress,
|
|
55
|
+
oracleAddress,
|
|
56
|
+
riskFundAddress,
|
|
57
|
+
poolRegistryAddress,
|
|
58
|
+
MIN_AMOUNT_TO_CONVERT,
|
|
59
|
+
comptrollers,
|
|
60
|
+
assets,
|
|
61
|
+
values,
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
upgradeIndex: 0,
|
|
65
|
+
},
|
|
66
|
+
autoMine: true,
|
|
67
|
+
log: true,
|
|
68
|
+
});
|
|
69
|
+
const converter = yield hardhat_1.ethers.getContract("RiskFundConverter");
|
|
70
|
+
const converterOwner = yield converter.owner();
|
|
71
|
+
if (converterOwner === deployer) {
|
|
72
|
+
const tx = yield converter.transferOwnership(timelockAddress);
|
|
73
|
+
yield tx.wait();
|
|
74
|
+
console.log(`Transferred ownership of RiskFundConverter to Timelock`);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
func.tags = ["RiskFundConverter"];
|
|
79
|
+
exports.default = func;
|
|
80
|
+
//# sourceMappingURL=002-risk-fund-converter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"002-risk-fund-converter.js","sourceRoot":"","sources":["../../deploy/002-risk-fund-converter.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4CAA8C;AAC9C,qCAA0C;AAI1C,MAAM,qBAAqB,GAAG,IAAA,kBAAU,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAEnD,MAAM,IAAI,GAAmB,UAAgB,GAA8B;;QACzE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;QAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;QAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;Q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Ae;wBACf,mBAAmB;wBACnB,qBAAqB;wBACrB,YAAY;wBACZ,MAAM;wBACN,MAAM;qBACP;iBACF;gBACD,YAAY,EAAE,CAAC;aAChB;YACD,QAAQ,EAAE,IAAI;YACd,GAAG,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,MAAM,SAAS,GAAG,MAAM,gBAAM,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAChE,MAAM,cAAc,GAAG,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;QAC/C,IAAI,cAAc,KAAK,QAAQ,EAAE;YAC/B,MAAM,EAAE,GAAG,MAAM,SAAS,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;YAC9D,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;YAChB,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;SACvE;IACH,CAAC;CAAA,CAAC;AACF,IAAI,CAAC,IAAI,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAElC,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"003-xvs-vault-teasury.d.ts","sourceRoot":"","sources":["../../deploy/003-xvs-vault-teasury.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const hardhat_1 = require("hardhat");
|
|
13
|
+
module.exports = ({ getNamedAccounts, deployments }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
+
const { deploy } = deployments;
|
|
15
|
+
const { deployer } = yield getNamedAccounts();
|
|
16
|
+
const xvsAddress = (yield hardhat_1.ethers.getContract("XVS")).address;
|
|
17
|
+
const proxyOwnerAddress = (yield hardhat_1.ethers.getContract("NormalTimelock")).address;
|
|
18
|
+
const acmAddress = (yield hardhat_1.ethers.getContract("AccessControlManager")).address;
|
|
19
|
+
const xvsVaultAddress = (yield hardhat_1.ethers.getContract("XVSVaultProxy")).address;
|
|
20
|
+
yield deploy("XVSVaultTreasury", {
|
|
21
|
+
from: deployer,
|
|
22
|
+
log: true,
|
|
23
|
+
deterministicDeployment: false,
|
|
24
|
+
args: [xvsAddress],
|
|
25
|
+
proxy: {
|
|
26
|
+
owner: proxyOwnerAddress,
|
|
27
|
+
proxyContract: "OpenZeppelinTransparentProxy",
|
|
28
|
+
execute: {
|
|
29
|
+
methodName: "initialize",
|
|
30
|
+
args: [acmAddress, xvsVaultAddress],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const xvsVaultTreasury = yield hardhat_1.ethers.getContract("XVSVaultTreasury");
|
|
35
|
+
const xvsVaultTreasuryOwner = yield xvsVaultTreasury.owner();
|
|
36
|
+
if (xvsVaultTreasuryOwner === deployer) {
|
|
37
|
+
const tx = yield xvsVaultTreasury.transferOwnership(proxyOwnerAddress);
|
|
38
|
+
yield tx.wait();
|
|
39
|
+
console.log("Transferred ownership of XVSVaultTreasury to Timelock");
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
module.exports.tags = ["XVSVaultTreasury"];
|
|
43
|
+
//# sourceMappingURL=003-xvs-vault-teasury.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"003-xvs-vault-teasury.js","sourceRoot":"","sources":["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AC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;QACvE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;KACtE;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"004-single-token-converter.d.ts","sourceRoot":"","sources":["../../deploy/004-single-token-converter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAatD,QAAA,MAAM,IAAI,EAAE,cAkDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const utils_1 = require("ethers/lib/utils");
|
|
13
|
+
const hardhat_1 = require("hardhat");
|
|
14
|
+
const MIN_AMOUNT_TO_CONVERT = (0, utils_1.parseUnits)("10", 18);
|
|
15
|
+
const func = function (hre) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
const { deployments, getNamedAccounts } = hre;
|
|
18
|
+
const { deploy } = deployments;
|
|
19
|
+
const { deployer } = yield getNamedAccounts();
|
|
20
|
+
const baseAssets = {
|
|
21
|
+
USDTPrimeConverter: (yield hardhat_1.ethers.getContract("USDT")).address,
|
|
22
|
+
USDCPrimeConverter: (yield hardhat_1.ethers.getContract("USDC")).address,
|
|
23
|
+
BTCBPrimeConverter: (yield hardhat_1.ethers.getContract("BTCB")).address,
|
|
24
|
+
ETHPrimeConverter: (yield hardhat_1.ethers.getContract("ETH")).address,
|
|
25
|
+
XVSVaultConverter: (yield hardhat_1.ethers.getContract("XVS")).address,
|
|
26
|
+
};
|
|
27
|
+
const acmAddress = (yield hardhat_1.ethers.getContract("AccessControlManager")).address;
|
|
28
|
+
const oracleAddress = (yield hardhat_1.ethers.getContract("ResilientOracle")).address;
|
|
29
|
+
const singleTokenConverterImp = yield deploy("SingleTokenConverterImp", {
|
|
30
|
+
contract: "SingleTokenConverter",
|
|
31
|
+
from: deployer,
|
|
32
|
+
args: [],
|
|
33
|
+
log: true,
|
|
34
|
+
autoMine: true,
|
|
35
|
+
});
|
|
36
|
+
const SingleTokenConverterBeacon = yield deploy("SingleTokenConverterBeacon", {
|
|
37
|
+
contract: "UpgradeableBeacon",
|
|
38
|
+
from: deployer,
|
|
39
|
+
args: [singleTokenConverterImp.address],
|
|
40
|
+
log: true,
|
|
41
|
+
autoMine: true,
|
|
42
|
+
});
|
|
43
|
+
const SingleTokenConverter = yield hardhat_1.ethers.getContractFactory("SingleTokenConverter");
|
|
44
|
+
for (const [singleTokenConverterName, baseAsset] of Object.entries(baseAssets)) {
|
|
45
|
+
let destinationAddress = (yield hardhat_1.ethers.getContract("PrimeLiquidityProvider")).address;
|
|
46
|
+
if (baseAsset == (yield hardhat_1.ethers.getContract("XVS")).address) {
|
|
47
|
+
destinationAddress = (yield hardhat_1.ethers.getContract("XVSVaultTreasury")).address;
|
|
48
|
+
}
|
|
49
|
+
const args = [acmAddress, oracleAddress, destinationAddress, baseAsset, MIN_AMOUNT_TO_CONVERT];
|
|
50
|
+
yield deploy(singleTokenConverterName, {
|
|
51
|
+
from: deployer,
|
|
52
|
+
contract: "BeaconProxy",
|
|
53
|
+
args: [SingleTokenConverterBeacon.address, SingleTokenConverter.interface.encodeFunctionData("initialize", args)],
|
|
54
|
+
log: true,
|
|
55
|
+
autoMine: true,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
func.tags = ["SingleTokenConverter"];
|
|
61
|
+
exports.default = func;
|
|
62
|
+
//# sourceMappingURL=004-single-token-converter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"004-single-token-converter.js","sourceRoot":"","sources":["../../deploy/004-single-token-converter.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4CAA8C;AAC9C,qCAAiC;AAajC,MAAM,qBAAqB,GAAG,IAAA,kBAAU,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAEnD,MAAM,IAAI,GAAmB,UAAgB,GAA8B;;QACzE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;QAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;QAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;QAE9C,MAAM,UAAU,GAAe;YAC7B,kBAAkB,EAAE,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YAC9D,kBAAkB,EAAE,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YAC9D,kBAAkB,EAAE,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YAC9D,iBAAiB,EAAE,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO;YAC5D,iBAAiB,EAAE,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,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AAC,CAAC;YAEzG,MAAM,MAAM,CAAC,wBAAwB,EAAE;gBACrC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,aAAa;gBACvB,IAAI,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;gBACjH,GAAG,EAAE,IAAI;gBACT,QAAQ,EAAE,IAAI;aACf,CAAC,CAAC;SACJ;IACH,CAAC;CAAA,CAAC;AACF,IAAI,CAAC,IAAI,GAAG,CAAC,sBAAsB,CAAC,CAAC;AACrC,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"005-converter-network.d.ts","sourceRoot":"","sources":["../../deploy/005-converter-network.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const hardhat_1 = require("hardhat");
|
|
13
|
+
const MAX_LOOPS_LIMIT = 100;
|
|
14
|
+
module.exports = ({ getNamedAccounts, deployments }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
const { deploy } = deployments;
|
|
16
|
+
const { deployer } = yield getNamedAccounts();
|
|
17
|
+
const timelockAddress = (yield hardhat_1.ethers.getContract("NormalTimelock")).address;
|
|
18
|
+
const acmAddress = (yield hardhat_1.ethers.getContract("AccessControlManager")).address;
|
|
19
|
+
yield deploy("ConverterNetwork", {
|
|
20
|
+
from: deployer,
|
|
21
|
+
log: true,
|
|
22
|
+
deterministicDeployment: false,
|
|
23
|
+
proxy: {
|
|
24
|
+
owner: timelockAddress,
|
|
25
|
+
proxyContract: "OpenZeppelinTransparentProxy",
|
|
26
|
+
execute: {
|
|
27
|
+
methodName: "initialize",
|
|
28
|
+
args: [acmAddress, MAX_LOOPS_LIMIT],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const converterNetwork = yield hardhat_1.ethers.getContract("ConverterNetwork");
|
|
33
|
+
const converterNetworkOwner = yield converterNetwork.owner();
|
|
34
|
+
if (converterNetworkOwner === deployer) {
|
|
35
|
+
const tx = yield converterNetwork.transferOwnership(timelockAddress);
|
|
36
|
+
yield tx.wait();
|
|
37
|
+
console.log("Transferred ownership of ConverterNetwork to Timelock");
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
module.exports.tags = ["ConverterNetwork"];
|
|
41
|
+
//# sourceMappingURL=005-converter-network.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"005-converter-network.js","sourceRoot":"","sources":["../../deploy/005-converter-network.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAiC;AAGjC,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B,MAAM,CAAC,OAAO,GAAG,CAAO,EAAE,gBAAgB,EAAE,WAAW,EAA6B,EAAE,EAAE;IACtF,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAE9C,MAAM,eAAe,GAAG,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC;IAC7E,MAAM,UAAU,GAAG,CAAC,MAAM,gBAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC;IAE9E,MAAM,MAAM,CAAC,kBAAkB,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,IAAI;QACT,uBAAuB,EAAE,KAAK;QAC9B,KAAK,EAAE;YACL,KAAK,EAAE,eAAe;YACtB,aAAa,EAAE,8BAA8B;YAC7C,OAAO,EAAE;gBACP,UAAU,EAAE,YAAY;gBACxB,IAAI,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;aACpC;SACF;KACF,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,MAAM,gBAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACtE,MAAM,qBAAqB,GAAG,MAAM,gBAAgB,CAAC,KAAK,EAAE,CAAC;IAC7D,IAAI,qBAAqB,KAAK,QAAQ,EAAE;QACtC,MAAM,EAAE,GAAG,MAAM,gBAAgB,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;QACrE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;KACtE;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "module-alias/register";
|
|
2
|
+
import "@nomicfoundation/hardhat-chai-matchers";
|
|
3
|
+
import "@nomicfoundation/hardhat-toolbox";
|
|
4
|
+
import "@nomiclabs/hardhat-ethers";
|
|
5
|
+
import "@nomiclabs/hardhat-etherscan";
|
|
6
|
+
import "@openzeppelin/hardhat-upgrades";
|
|
7
|
+
import "@typechain/hardhat";
|
|
8
|
+
import "hardhat-deploy";
|
|
9
|
+
import "hardhat-gas-reporter";
|
|
10
|
+
import { HardhatUserConfig } from "hardhat/config";
|
|
11
|
+
import "solidity-coverage";
|
|
12
|
+
import "solidity-docgen";
|
|
13
|
+
declare const config: HardhatUserConfig;
|
|
14
|
+
export default config;
|
|
15
|
+
//# sourceMappingURL=hardhat.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardhat.config.d.ts","sourceRoot":"","sources":["../hardhat.config.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,wCAAwC,CAAC;AAChD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,2BAA2B,CAAC;AACnC,OAAO,8BAA8B,CAAC;AACtC,OAAO,gCAAgC,CAAC;AACxC,OAAO,oBAAoB,CAAC;AAE5B,OAAO,gBAAgB,CAAC;AACxB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAEvE,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AAgEzB,QAAA,MAAM,MAAM,EAAE,iBAqIb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|