@venusprotocol/protocol-reserve 1.0.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 +75 -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 +4 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +183 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +297 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +194 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +233 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.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 +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +115 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.json +76 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.json +24 -0
- 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 +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.json +24 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.json +194 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.json +86 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.json +24 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +4 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.json +181 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +4 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.json +282 -0
- package/artifacts/@venusprotocol/isolated-pools/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +4 -0
- package/artifacts/@venusprotocol/isolated-pools/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.json +59 -0
- 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 +4 -0
- package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.json +59 -0
- package/artifacts/build-info/09a7fbe40ee8fdfd62afe79292e77863.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 +4 -0
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.json +29 -0
- 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/IPrime.sol/IPrime.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.json +74 -0
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.json +34 -0
- 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/IRiskFundConverter.sol/IRiskFundConverter.json +48 -0
- 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 +4 -0
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.json +24 -0
- 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 +4 -0
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +892 -0
- 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 +1199 -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 +1559 -0
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.json +333 -0
- package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.json +1085 -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 +344 -0
- package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.json +1429 -0
- package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.json +1145 -0
- package/contracts/Interfaces/IComptroller.sol +10 -0
- package/contracts/Interfaces/IConverterNetwork.sol +46 -0
- package/contracts/Interfaces/IIncomeDestination.sol +6 -0
- package/contracts/Interfaces/IPoolRegistry.sol +10 -0
- package/contracts/Interfaces/IPrime.sol +12 -0
- package/contracts/Interfaces/IProtocolShareReserve.sol +16 -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/IVToken.sol +6 -0
- package/contracts/Interfaces/IXVSVault.sol +9 -0
- package/contracts/ProtocolReserve/ProtocolShareReserve.sol +547 -0
- 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 +93 -0
- package/contracts/Test/Mocks/MockArraySorter.sol +14 -0
- package/contracts/Test/Mocks/MockConverter.sol +69 -0
- package/contracts/Test/Mocks/MockDeflationaryToken.sol +113 -0
- package/contracts/Test/Mocks/MockRiskFundConverter.sol +45 -0
- package/contracts/Test/Mocks/MockToken.sol +30 -0
- package/contracts/TokenConverter/AbstractTokenConverter.sol +1022 -0
- package/contracts/TokenConverter/ConverterNetwork.sol +242 -0
- package/contracts/TokenConverter/IAbstractTokenConverter.sol +132 -0
- package/contracts/TokenConverter/RiskFundConverter.sol +436 -0
- package/contracts/TokenConverter/SingleTokenConverter.sol +77 -0
- package/contracts/Utils/ArrayHelpers.sol +41 -0
- package/contracts/Utils/Constants.sol +11 -0
- package/contracts/Utils/Validators.sol +26 -0
- package/deploy/001-risk-fund-converter.ts +124 -0
- package/deploy/1-deploy.ts +64 -0
- package/deployments/bscmainnet/.chainId +1 -0
- package/deployments/bscmainnet/DefaultProxyAdmin.json +257 -0
- package/deployments/bscmainnet/ProtocolShareReserve.json +1126 -0
- package/deployments/bscmainnet/ProtocolShareReserve_Implementation.json +1400 -0
- package/deployments/bscmainnet/ProtocolShareReserve_Proxy.json +261 -0
- package/deployments/bscmainnet/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
- package/deployments/bscmainnet/solcInputs/aee5f1db1180ece295e59c8f036fe600.json +90 -0
- package/deployments/bsctestnet/.chainId +1 -0
- package/deployments/bsctestnet/DefaultProxyAdmin.json +257 -0
- package/deployments/bsctestnet/ProtocolShareReserve.json +1126 -0
- package/deployments/bsctestnet/ProtocolShareReserve_Implementation.json +1400 -0
- package/deployments/bsctestnet/ProtocolShareReserve_Proxy.json +261 -0
- package/deployments/bsctestnet/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
- package/deployments/bsctestnet/solcInputs/aee5f1db1180ece295e59c8f036fe600.json +90 -0
- package/package.json +119 -0
- package/typechain/AbstractTokenConverter.d.ts +1516 -0
- package/typechain/AccessControl.d.ts +388 -0
- package/typechain/AccessControlledV8.d.ts +341 -0
- package/typechain/BoundValidatorInterface.d.ts +126 -0
- package/typechain/ContextUpgradeable.d.ts +92 -0
- package/typechain/ConverterNetwork.d.ts +721 -0
- package/typechain/ERC165.d.ts +116 -0
- package/typechain/ERC20.d.ts +441 -0
- package/typechain/IAbstractTokenConverter.d.ts +606 -0
- package/typechain/IAccessControl.d.ts +333 -0
- package/typechain/IAccessControlManagerV8.d.ts +504 -0
- package/typechain/IComptroller.d.ts +136 -0
- package/typechain/IConverterNetwork.d.ts +292 -0
- package/typechain/IERC165.d.ts +116 -0
- package/typechain/IERC20.d.ts +324 -0
- package/typechain/IERC20Metadata.d.ts +363 -0
- package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
- package/typechain/IERC20Upgradeable.d.ts +324 -0
- package/typechain/IIncomeDestination.d.ts +122 -0
- package/typechain/IPoolRegistry.d.ts +155 -0
- package/typechain/IPrime.d.ts +197 -0
- package/typechain/IProtocolShareReserve.d.ts +127 -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/IVToken.d.ts +98 -0
- package/typechain/IXVSVault.d.ts +95 -0
- package/typechain/Initializable.d.ts +92 -0
- package/typechain/MaxLoopsLimitHelper.d.ts +128 -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 +1705 -0
- package/typechain/MockDeflatingToken.d.ts +486 -0
- package/typechain/MockRiskFundConverter.d.ts +2193 -0
- package/typechain/MockToken.d.ts +505 -0
- package/typechain/OracleInterface.d.ts +98 -0
- package/typechain/Ownable2StepUpgradeable.d.ts +261 -0
- package/typechain/OwnableUpgradeable.d.ts +193 -0
- package/typechain/PausableUpgradeable.d.ts +129 -0
- package/typechain/ProtocolShareReserve.d.ts +1332 -0
- package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
- package/typechain/ReserveHelpersStorage.d.ts +300 -0
- package/typechain/ResilientOracle.d.ts +1022 -0
- package/typechain/ResilientOracleInterface.d.ts +192 -0
- package/typechain/RiskFundConverter.d.ts +1949 -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 +1598 -0
- package/typechain/TwapInterface.d.ts +124 -0
- package/typechain/VBep20Interface.d.ts +379 -0
- package/typechain/XVSVaultTreasury.d.ts +515 -0
- package/typechain/common.d.ts +35 -0
- package/typechain/factories/AbstractTokenConverter__factory.ts +1105 -0
- package/typechain/factories/AccessControl__factory.ts +227 -0
- package/typechain/factories/AccessControlledV8__factory.ts +196 -0
- package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
- package/typechain/factories/ContextUpgradeable__factory.ts +39 -0
- package/typechain/factories/ConverterNetwork__factory.ts +502 -0
- package/typechain/factories/ERC165__factory.ts +39 -0
- package/typechain/factories/ERC20__factory.ts +340 -0
- package/typechain/factories/IAbstractTokenConverter__factory.ts +364 -0
- package/typechain/factories/IAccessControlManagerV8__factory.ts +301 -0
- package/typechain/factories/IAccessControl__factory.ts +198 -0
- package/typechain/factories/IComptroller__factory.ts +68 -0
- package/typechain/factories/IConverterNetwork__factory.ts +142 -0
- package/typechain/factories/IERC165__factory.ts +42 -0
- package/typechain/factories/IERC20Metadata__factory.ts +248 -0
- package/typechain/factories/IERC20PermitUpgradeable__factory.ts +105 -0
- package/typechain/factories/IERC20Upgradeable__factory.ts +209 -0
- package/typechain/factories/IERC20__factory.ts +203 -0
- package/typechain/factories/IIncomeDestination__factory.ts +44 -0
- package/typechain/factories/IPoolRegistry__factory.ts +66 -0
- package/typechain/factories/IPrime__factory.ts +83 -0
- package/typechain/factories/IProtocolShareReserve__factory.ts +53 -0
- package/typechain/factories/IRiskFundConverter__factory.ts +63 -0
- 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/IVToken__factory.ts +36 -0
- package/typechain/factories/IXVSVault__factory.ts +36 -0
- package/typechain/factories/Initializable__factory.ts +36 -0
- package/typechain/factories/MaxLoopsLimitHelper__factory.ts +74 -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 +1242 -0
- package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
- package/typechain/factories/MockRiskFundConverter__factory.ts +1625 -0
- package/typechain/factories/MockToken__factory.ts +398 -0
- package/typechain/factories/OracleInterface__factory.ts +45 -0
- package/typechain/factories/Ownable2StepUpgradeable__factory.ts +134 -0
- package/typechain/factories/OwnableUpgradeable__factory.ts +91 -0
- package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
- package/typechain/factories/ProtocolShareReserve__factory.ts +957 -0
- package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +43 -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 +1491 -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 +1200 -0
- package/typechain/factories/TwapInterface__factory.ts +61 -0
- package/typechain/factories/VBep20Interface__factory.ts +261 -0
- package/typechain/factories/XVSVaultTreasury__factory.ts +365 -0
- package/typechain/index.ts +112 -0
|
@@ -0,0 +1,1625 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
MockRiskFundConverter,
|
|
9
|
+
MockRiskFundConverterInterface,
|
|
10
|
+
} from "../MockRiskFundConverter";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "corePoolComptroller_",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "vBNB_",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "nativeWrapped_",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
stateMutability: "nonpayable",
|
|
32
|
+
type: "constructor",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
inputs: [
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint256",
|
|
38
|
+
name: "amountInMantissa",
|
|
39
|
+
type: "uint256",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "uint256",
|
|
43
|
+
name: "amountInMaxMantissa",
|
|
44
|
+
type: "uint256",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "AmountInHigherThanMax",
|
|
48
|
+
type: "error",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
inputs: [],
|
|
52
|
+
name: "AmountInMismatched",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "uint256",
|
|
59
|
+
name: "amountOutMantissa",
|
|
60
|
+
type: "uint256",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "amountOutMinMantissa",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: "AmountOutLowerThanMinRequired",
|
|
69
|
+
type: "error",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
inputs: [],
|
|
73
|
+
name: "AmountOutMismatched",
|
|
74
|
+
type: "error",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [],
|
|
78
|
+
name: "ConversionConfigNotEnabled",
|
|
79
|
+
type: "error",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [],
|
|
83
|
+
name: "ConversionEnabledOnlyForPrivateConversions",
|
|
84
|
+
type: "error",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
inputs: [],
|
|
88
|
+
name: "ConversionTokensActive",
|
|
89
|
+
type: "error",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
inputs: [],
|
|
93
|
+
name: "ConversionTokensPaused",
|
|
94
|
+
type: "error",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
internalType: "uint256",
|
|
100
|
+
name: "incentive",
|
|
101
|
+
type: "uint256",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
internalType: "uint256",
|
|
105
|
+
name: "maxIncentive",
|
|
106
|
+
type: "uint256",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
name: "IncentiveTooHigh",
|
|
110
|
+
type: "error",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
inputs: [],
|
|
114
|
+
name: "InsufficientBalance",
|
|
115
|
+
type: "error",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [],
|
|
119
|
+
name: "InsufficientInputAmount",
|
|
120
|
+
type: "error",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputs: [],
|
|
124
|
+
name: "InsufficientOutputAmount",
|
|
125
|
+
type: "error",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
inputs: [],
|
|
129
|
+
name: "InsufficientPoolLiquidity",
|
|
130
|
+
type: "error",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
inputs: [],
|
|
134
|
+
name: "InvalidArguments",
|
|
135
|
+
type: "error",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
inputs: [],
|
|
139
|
+
name: "InvalidConverterNetwork",
|
|
140
|
+
type: "error",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
inputs: [],
|
|
144
|
+
name: "InvalidToAddress",
|
|
145
|
+
type: "error",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
inputs: [],
|
|
149
|
+
name: "InvalidTokenConfigAddresses",
|
|
150
|
+
type: "error",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [
|
|
154
|
+
{
|
|
155
|
+
internalType: "address",
|
|
156
|
+
name: "comptroller",
|
|
157
|
+
type: "address",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
internalType: "address",
|
|
161
|
+
name: "asset",
|
|
162
|
+
type: "address",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
name: "MarketNotExistInPool",
|
|
166
|
+
type: "error",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [],
|
|
170
|
+
name: "NonZeroIncentiveForPrivateConversion",
|
|
171
|
+
type: "error",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [],
|
|
175
|
+
name: "ReentrancyGuardError",
|
|
176
|
+
type: "error",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "address",
|
|
182
|
+
name: "sender",
|
|
183
|
+
type: "address",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
internalType: "address",
|
|
187
|
+
name: "calledContract",
|
|
188
|
+
type: "address",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
internalType: "string",
|
|
192
|
+
name: "methodSignature",
|
|
193
|
+
type: "string",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
name: "Unauthorized",
|
|
197
|
+
type: "error",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
inputs: [],
|
|
201
|
+
name: "ZeroAddressNotAllowed",
|
|
202
|
+
type: "error",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
inputs: [],
|
|
206
|
+
name: "ZeroValueNotAllowed",
|
|
207
|
+
type: "error",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
anonymous: false,
|
|
211
|
+
inputs: [
|
|
212
|
+
{
|
|
213
|
+
indexed: true,
|
|
214
|
+
internalType: "address",
|
|
215
|
+
name: "comptroller",
|
|
216
|
+
type: "address",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
indexed: true,
|
|
220
|
+
internalType: "address",
|
|
221
|
+
name: "asset",
|
|
222
|
+
type: "address",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
indexed: false,
|
|
226
|
+
internalType: "uint256",
|
|
227
|
+
name: "amount",
|
|
228
|
+
type: "uint256",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
name: "AssetTransferredToDestination",
|
|
232
|
+
type: "event",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
anonymous: false,
|
|
236
|
+
inputs: [
|
|
237
|
+
{
|
|
238
|
+
indexed: true,
|
|
239
|
+
internalType: "address",
|
|
240
|
+
name: "comptroller",
|
|
241
|
+
type: "address",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
indexed: true,
|
|
245
|
+
internalType: "address",
|
|
246
|
+
name: "asset",
|
|
247
|
+
type: "address",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
indexed: false,
|
|
251
|
+
internalType: "uint256",
|
|
252
|
+
name: "amount",
|
|
253
|
+
type: "uint256",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
name: "AssetsReservesUpdated",
|
|
257
|
+
type: "event",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
anonymous: false,
|
|
261
|
+
inputs: [
|
|
262
|
+
{
|
|
263
|
+
indexed: true,
|
|
264
|
+
internalType: "address",
|
|
265
|
+
name: "tokenAddressIn",
|
|
266
|
+
type: "address",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
indexed: true,
|
|
270
|
+
internalType: "address",
|
|
271
|
+
name: "tokenAddressOut",
|
|
272
|
+
type: "address",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
indexed: false,
|
|
276
|
+
internalType: "uint256",
|
|
277
|
+
name: "oldIncentive",
|
|
278
|
+
type: "uint256",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
indexed: false,
|
|
282
|
+
internalType: "uint256",
|
|
283
|
+
name: "newIncentive",
|
|
284
|
+
type: "uint256",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
indexed: false,
|
|
288
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
289
|
+
name: "oldAccess",
|
|
290
|
+
type: "uint8",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
indexed: false,
|
|
294
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
295
|
+
name: "newAccess",
|
|
296
|
+
type: "uint8",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
name: "ConversionConfigUpdated",
|
|
300
|
+
type: "event",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
anonymous: false,
|
|
304
|
+
inputs: [
|
|
305
|
+
{
|
|
306
|
+
indexed: true,
|
|
307
|
+
internalType: "address",
|
|
308
|
+
name: "sender",
|
|
309
|
+
type: "address",
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
name: "ConversionPaused",
|
|
313
|
+
type: "event",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
anonymous: false,
|
|
317
|
+
inputs: [
|
|
318
|
+
{
|
|
319
|
+
indexed: true,
|
|
320
|
+
internalType: "address",
|
|
321
|
+
name: "sender",
|
|
322
|
+
type: "address",
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
name: "ConversionResumed",
|
|
326
|
+
type: "event",
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
anonymous: false,
|
|
330
|
+
inputs: [
|
|
331
|
+
{
|
|
332
|
+
indexed: false,
|
|
333
|
+
internalType: "uint256",
|
|
334
|
+
name: "amountIn",
|
|
335
|
+
type: "uint256",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
indexed: false,
|
|
339
|
+
internalType: "uint256",
|
|
340
|
+
name: "amountOut",
|
|
341
|
+
type: "uint256",
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
name: "ConvertedExactTokens",
|
|
345
|
+
type: "event",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
anonymous: false,
|
|
349
|
+
inputs: [
|
|
350
|
+
{
|
|
351
|
+
indexed: false,
|
|
352
|
+
internalType: "uint256",
|
|
353
|
+
name: "amountIn",
|
|
354
|
+
type: "uint256",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
indexed: false,
|
|
358
|
+
internalType: "uint256",
|
|
359
|
+
name: "amountOut",
|
|
360
|
+
type: "uint256",
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
name: "ConvertedExactTokensSupportingFeeOnTransferTokens",
|
|
364
|
+
type: "event",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
anonymous: false,
|
|
368
|
+
inputs: [
|
|
369
|
+
{
|
|
370
|
+
indexed: false,
|
|
371
|
+
internalType: "uint256",
|
|
372
|
+
name: "amountIn",
|
|
373
|
+
type: "uint256",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
indexed: false,
|
|
377
|
+
internalType: "uint256",
|
|
378
|
+
name: "amountOut",
|
|
379
|
+
type: "uint256",
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
name: "ConvertedForExactTokens",
|
|
383
|
+
type: "event",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
anonymous: false,
|
|
387
|
+
inputs: [
|
|
388
|
+
{
|
|
389
|
+
indexed: false,
|
|
390
|
+
internalType: "uint256",
|
|
391
|
+
name: "amountIn",
|
|
392
|
+
type: "uint256",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
indexed: false,
|
|
396
|
+
internalType: "uint256",
|
|
397
|
+
name: "amountOut",
|
|
398
|
+
type: "uint256",
|
|
399
|
+
},
|
|
400
|
+
],
|
|
401
|
+
name: "ConvertedForExactTokensSupportingFeeOnTransferTokens",
|
|
402
|
+
type: "event",
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
anonymous: false,
|
|
406
|
+
inputs: [
|
|
407
|
+
{
|
|
408
|
+
indexed: true,
|
|
409
|
+
internalType: "address",
|
|
410
|
+
name: "oldConverterNetwork",
|
|
411
|
+
type: "address",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
indexed: true,
|
|
415
|
+
internalType: "address",
|
|
416
|
+
name: "converterNetwork",
|
|
417
|
+
type: "address",
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
name: "ConverterNetworkAddressUpdated",
|
|
421
|
+
type: "event",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
anonymous: false,
|
|
425
|
+
inputs: [
|
|
426
|
+
{
|
|
427
|
+
indexed: true,
|
|
428
|
+
internalType: "address",
|
|
429
|
+
name: "oldDestinationAddress",
|
|
430
|
+
type: "address",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
indexed: true,
|
|
434
|
+
internalType: "address",
|
|
435
|
+
name: "destinationAddress",
|
|
436
|
+
type: "address",
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
name: "DestinationAddressUpdated",
|
|
440
|
+
type: "event",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
anonymous: false,
|
|
444
|
+
inputs: [
|
|
445
|
+
{
|
|
446
|
+
indexed: false,
|
|
447
|
+
internalType: "uint8",
|
|
448
|
+
name: "version",
|
|
449
|
+
type: "uint8",
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
name: "Initialized",
|
|
453
|
+
type: "event",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
anonymous: false,
|
|
457
|
+
inputs: [
|
|
458
|
+
{
|
|
459
|
+
indexed: false,
|
|
460
|
+
internalType: "address",
|
|
461
|
+
name: "oldAccessControlManager",
|
|
462
|
+
type: "address",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
indexed: false,
|
|
466
|
+
internalType: "address",
|
|
467
|
+
name: "newAccessControlManager",
|
|
468
|
+
type: "address",
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
name: "NewAccessControlManager",
|
|
472
|
+
type: "event",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
anonymous: false,
|
|
476
|
+
inputs: [
|
|
477
|
+
{
|
|
478
|
+
indexed: true,
|
|
479
|
+
internalType: "address",
|
|
480
|
+
name: "previousOwner",
|
|
481
|
+
type: "address",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
indexed: true,
|
|
485
|
+
internalType: "address",
|
|
486
|
+
name: "newOwner",
|
|
487
|
+
type: "address",
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
name: "OwnershipTransferStarted",
|
|
491
|
+
type: "event",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
anonymous: false,
|
|
495
|
+
inputs: [
|
|
496
|
+
{
|
|
497
|
+
indexed: true,
|
|
498
|
+
internalType: "address",
|
|
499
|
+
name: "previousOwner",
|
|
500
|
+
type: "address",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
indexed: true,
|
|
504
|
+
internalType: "address",
|
|
505
|
+
name: "newOwner",
|
|
506
|
+
type: "address",
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
name: "OwnershipTransferred",
|
|
510
|
+
type: "event",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
anonymous: false,
|
|
514
|
+
inputs: [
|
|
515
|
+
{
|
|
516
|
+
indexed: true,
|
|
517
|
+
internalType: "address",
|
|
518
|
+
name: "comptroller",
|
|
519
|
+
type: "address",
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
indexed: true,
|
|
523
|
+
internalType: "address",
|
|
524
|
+
name: "asset",
|
|
525
|
+
type: "address",
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
indexed: false,
|
|
529
|
+
internalType: "bool",
|
|
530
|
+
name: "value",
|
|
531
|
+
type: "bool",
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
name: "PoolAssetsDirectTransferUpdated",
|
|
535
|
+
type: "event",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
anonymous: false,
|
|
539
|
+
inputs: [
|
|
540
|
+
{
|
|
541
|
+
indexed: true,
|
|
542
|
+
internalType: "address",
|
|
543
|
+
name: "oldPoolRegistry",
|
|
544
|
+
type: "address",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
indexed: true,
|
|
548
|
+
internalType: "address",
|
|
549
|
+
name: "newPoolRegistry",
|
|
550
|
+
type: "address",
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
name: "PoolRegistryUpdated",
|
|
554
|
+
type: "event",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
anonymous: false,
|
|
558
|
+
inputs: [
|
|
559
|
+
{
|
|
560
|
+
indexed: true,
|
|
561
|
+
internalType: "contract ResilientOracle",
|
|
562
|
+
name: "oldPriceOracle",
|
|
563
|
+
type: "address",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
indexed: true,
|
|
567
|
+
internalType: "contract ResilientOracle",
|
|
568
|
+
name: "priceOracle",
|
|
569
|
+
type: "address",
|
|
570
|
+
},
|
|
571
|
+
],
|
|
572
|
+
name: "PriceOracleUpdated",
|
|
573
|
+
type: "event",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
anonymous: false,
|
|
577
|
+
inputs: [
|
|
578
|
+
{
|
|
579
|
+
indexed: true,
|
|
580
|
+
internalType: "address",
|
|
581
|
+
name: "token",
|
|
582
|
+
type: "address",
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
indexed: true,
|
|
586
|
+
internalType: "address",
|
|
587
|
+
name: "to",
|
|
588
|
+
type: "address",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
indexed: false,
|
|
592
|
+
internalType: "uint256",
|
|
593
|
+
name: "amount",
|
|
594
|
+
type: "uint256",
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
name: "SweepToken",
|
|
598
|
+
type: "event",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
inputs: [],
|
|
602
|
+
name: "CORE_POOL_COMPTROLLER",
|
|
603
|
+
outputs: [
|
|
604
|
+
{
|
|
605
|
+
internalType: "address",
|
|
606
|
+
name: "",
|
|
607
|
+
type: "address",
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
stateMutability: "view",
|
|
611
|
+
type: "function",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
inputs: [],
|
|
615
|
+
name: "MAX_INCENTIVE",
|
|
616
|
+
outputs: [
|
|
617
|
+
{
|
|
618
|
+
internalType: "uint256",
|
|
619
|
+
name: "",
|
|
620
|
+
type: "uint256",
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
stateMutability: "view",
|
|
624
|
+
type: "function",
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
inputs: [],
|
|
628
|
+
name: "NATIVE_WRAPPED",
|
|
629
|
+
outputs: [
|
|
630
|
+
{
|
|
631
|
+
internalType: "address",
|
|
632
|
+
name: "",
|
|
633
|
+
type: "address",
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
stateMutability: "view",
|
|
637
|
+
type: "function",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
inputs: [],
|
|
641
|
+
name: "VBNB",
|
|
642
|
+
outputs: [
|
|
643
|
+
{
|
|
644
|
+
internalType: "address",
|
|
645
|
+
name: "",
|
|
646
|
+
type: "address",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
stateMutability: "view",
|
|
650
|
+
type: "function",
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
inputs: [],
|
|
654
|
+
name: "acceptOwnership",
|
|
655
|
+
outputs: [],
|
|
656
|
+
stateMutability: "nonpayable",
|
|
657
|
+
type: "function",
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
inputs: [],
|
|
661
|
+
name: "accessControlManager",
|
|
662
|
+
outputs: [
|
|
663
|
+
{
|
|
664
|
+
internalType: "contract IAccessControlManagerV8",
|
|
665
|
+
name: "",
|
|
666
|
+
type: "address",
|
|
667
|
+
},
|
|
668
|
+
],
|
|
669
|
+
stateMutability: "view",
|
|
670
|
+
type: "function",
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
inputs: [
|
|
674
|
+
{
|
|
675
|
+
internalType: "address",
|
|
676
|
+
name: "tokenAddress",
|
|
677
|
+
type: "address",
|
|
678
|
+
},
|
|
679
|
+
],
|
|
680
|
+
name: "balanceOf",
|
|
681
|
+
outputs: [
|
|
682
|
+
{
|
|
683
|
+
internalType: "uint256",
|
|
684
|
+
name: "",
|
|
685
|
+
type: "uint256",
|
|
686
|
+
},
|
|
687
|
+
],
|
|
688
|
+
stateMutability: "view",
|
|
689
|
+
type: "function",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
inputs: [
|
|
693
|
+
{
|
|
694
|
+
internalType: "address",
|
|
695
|
+
name: "",
|
|
696
|
+
type: "address",
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
internalType: "address",
|
|
700
|
+
name: "",
|
|
701
|
+
type: "address",
|
|
702
|
+
},
|
|
703
|
+
],
|
|
704
|
+
name: "conversionConfigurations",
|
|
705
|
+
outputs: [
|
|
706
|
+
{
|
|
707
|
+
internalType: "uint256",
|
|
708
|
+
name: "incentive",
|
|
709
|
+
type: "uint256",
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
713
|
+
name: "conversionAccess",
|
|
714
|
+
type: "uint8",
|
|
715
|
+
},
|
|
716
|
+
],
|
|
717
|
+
stateMutability: "view",
|
|
718
|
+
type: "function",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
inputs: [],
|
|
722
|
+
name: "conversionPaused",
|
|
723
|
+
outputs: [
|
|
724
|
+
{
|
|
725
|
+
internalType: "bool",
|
|
726
|
+
name: "",
|
|
727
|
+
type: "bool",
|
|
728
|
+
},
|
|
729
|
+
],
|
|
730
|
+
stateMutability: "view",
|
|
731
|
+
type: "function",
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
inputs: [
|
|
735
|
+
{
|
|
736
|
+
internalType: "uint256",
|
|
737
|
+
name: "amountInMantissa",
|
|
738
|
+
type: "uint256",
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
internalType: "uint256",
|
|
742
|
+
name: "amountOutMinMantissa",
|
|
743
|
+
type: "uint256",
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
internalType: "address",
|
|
747
|
+
name: "tokenAddressIn",
|
|
748
|
+
type: "address",
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
internalType: "address",
|
|
752
|
+
name: "tokenAddressOut",
|
|
753
|
+
type: "address",
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
internalType: "address",
|
|
757
|
+
name: "to",
|
|
758
|
+
type: "address",
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
name: "convertExactTokens",
|
|
762
|
+
outputs: [
|
|
763
|
+
{
|
|
764
|
+
internalType: "uint256",
|
|
765
|
+
name: "actualAmountIn",
|
|
766
|
+
type: "uint256",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
internalType: "uint256",
|
|
770
|
+
name: "actualAmountOut",
|
|
771
|
+
type: "uint256",
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
stateMutability: "nonpayable",
|
|
775
|
+
type: "function",
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
inputs: [
|
|
779
|
+
{
|
|
780
|
+
internalType: "uint256",
|
|
781
|
+
name: "amountInMantissa",
|
|
782
|
+
type: "uint256",
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
internalType: "uint256",
|
|
786
|
+
name: "amountOutMinMantissa",
|
|
787
|
+
type: "uint256",
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
internalType: "address",
|
|
791
|
+
name: "tokenAddressIn",
|
|
792
|
+
type: "address",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
internalType: "address",
|
|
796
|
+
name: "tokenAddressOut",
|
|
797
|
+
type: "address",
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
internalType: "address",
|
|
801
|
+
name: "to",
|
|
802
|
+
type: "address",
|
|
803
|
+
},
|
|
804
|
+
],
|
|
805
|
+
name: "convertExactTokensSupportingFeeOnTransferTokens",
|
|
806
|
+
outputs: [
|
|
807
|
+
{
|
|
808
|
+
internalType: "uint256",
|
|
809
|
+
name: "actualAmountIn",
|
|
810
|
+
type: "uint256",
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
internalType: "uint256",
|
|
814
|
+
name: "actualAmountOut",
|
|
815
|
+
type: "uint256",
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
stateMutability: "nonpayable",
|
|
819
|
+
type: "function",
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
inputs: [
|
|
823
|
+
{
|
|
824
|
+
internalType: "uint256",
|
|
825
|
+
name: "amountInMaxMantissa",
|
|
826
|
+
type: "uint256",
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
internalType: "uint256",
|
|
830
|
+
name: "amountOutMantissa",
|
|
831
|
+
type: "uint256",
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
internalType: "address",
|
|
835
|
+
name: "tokenAddressIn",
|
|
836
|
+
type: "address",
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
internalType: "address",
|
|
840
|
+
name: "tokenAddressOut",
|
|
841
|
+
type: "address",
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
internalType: "address",
|
|
845
|
+
name: "to",
|
|
846
|
+
type: "address",
|
|
847
|
+
},
|
|
848
|
+
],
|
|
849
|
+
name: "convertForExactTokens",
|
|
850
|
+
outputs: [
|
|
851
|
+
{
|
|
852
|
+
internalType: "uint256",
|
|
853
|
+
name: "actualAmountIn",
|
|
854
|
+
type: "uint256",
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
internalType: "uint256",
|
|
858
|
+
name: "actualAmountOut",
|
|
859
|
+
type: "uint256",
|
|
860
|
+
},
|
|
861
|
+
],
|
|
862
|
+
stateMutability: "nonpayable",
|
|
863
|
+
type: "function",
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
inputs: [
|
|
867
|
+
{
|
|
868
|
+
internalType: "uint256",
|
|
869
|
+
name: "amountInMaxMantissa",
|
|
870
|
+
type: "uint256",
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
internalType: "uint256",
|
|
874
|
+
name: "amountOutMantissa",
|
|
875
|
+
type: "uint256",
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
internalType: "address",
|
|
879
|
+
name: "tokenAddressIn",
|
|
880
|
+
type: "address",
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
internalType: "address",
|
|
884
|
+
name: "tokenAddressOut",
|
|
885
|
+
type: "address",
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
internalType: "address",
|
|
889
|
+
name: "to",
|
|
890
|
+
type: "address",
|
|
891
|
+
},
|
|
892
|
+
],
|
|
893
|
+
name: "convertForExactTokensSupportingFeeOnTransferTokens",
|
|
894
|
+
outputs: [
|
|
895
|
+
{
|
|
896
|
+
internalType: "uint256",
|
|
897
|
+
name: "actualAmountIn",
|
|
898
|
+
type: "uint256",
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
internalType: "uint256",
|
|
902
|
+
name: "actualAmountOut",
|
|
903
|
+
type: "uint256",
|
|
904
|
+
},
|
|
905
|
+
],
|
|
906
|
+
stateMutability: "nonpayable",
|
|
907
|
+
type: "function",
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
inputs: [],
|
|
911
|
+
name: "converterNetwork",
|
|
912
|
+
outputs: [
|
|
913
|
+
{
|
|
914
|
+
internalType: "contract IConverterNetwork",
|
|
915
|
+
name: "",
|
|
916
|
+
type: "address",
|
|
917
|
+
},
|
|
918
|
+
],
|
|
919
|
+
stateMutability: "view",
|
|
920
|
+
type: "function",
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
inputs: [],
|
|
924
|
+
name: "destinationAddress",
|
|
925
|
+
outputs: [
|
|
926
|
+
{
|
|
927
|
+
internalType: "address",
|
|
928
|
+
name: "",
|
|
929
|
+
type: "address",
|
|
930
|
+
},
|
|
931
|
+
],
|
|
932
|
+
stateMutability: "view",
|
|
933
|
+
type: "function",
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
inputs: [
|
|
937
|
+
{
|
|
938
|
+
internalType: "uint256",
|
|
939
|
+
name: "amountOutMantissa",
|
|
940
|
+
type: "uint256",
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
internalType: "address",
|
|
944
|
+
name: "tokenAddressIn",
|
|
945
|
+
type: "address",
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
internalType: "address",
|
|
949
|
+
name: "tokenAddressOut",
|
|
950
|
+
type: "address",
|
|
951
|
+
},
|
|
952
|
+
],
|
|
953
|
+
name: "getAmountIn",
|
|
954
|
+
outputs: [
|
|
955
|
+
{
|
|
956
|
+
internalType: "uint256",
|
|
957
|
+
name: "amountConvertedMantissa",
|
|
958
|
+
type: "uint256",
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
internalType: "uint256",
|
|
962
|
+
name: "amountInMantissa",
|
|
963
|
+
type: "uint256",
|
|
964
|
+
},
|
|
965
|
+
],
|
|
966
|
+
stateMutability: "view",
|
|
967
|
+
type: "function",
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
inputs: [
|
|
971
|
+
{
|
|
972
|
+
internalType: "uint256",
|
|
973
|
+
name: "amountInMantissa",
|
|
974
|
+
type: "uint256",
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
internalType: "address",
|
|
978
|
+
name: "tokenAddressIn",
|
|
979
|
+
type: "address",
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
internalType: "address",
|
|
983
|
+
name: "tokenAddressOut",
|
|
984
|
+
type: "address",
|
|
985
|
+
},
|
|
986
|
+
],
|
|
987
|
+
name: "getAmountOut",
|
|
988
|
+
outputs: [
|
|
989
|
+
{
|
|
990
|
+
internalType: "uint256",
|
|
991
|
+
name: "amountConvertedMantissa",
|
|
992
|
+
type: "uint256",
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
internalType: "uint256",
|
|
996
|
+
name: "amountOutMantissa",
|
|
997
|
+
type: "uint256",
|
|
998
|
+
},
|
|
999
|
+
],
|
|
1000
|
+
stateMutability: "view",
|
|
1001
|
+
type: "function",
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
inputs: [
|
|
1005
|
+
{
|
|
1006
|
+
internalType: "address",
|
|
1007
|
+
name: "asset",
|
|
1008
|
+
type: "address",
|
|
1009
|
+
},
|
|
1010
|
+
],
|
|
1011
|
+
name: "getAssetsReserves",
|
|
1012
|
+
outputs: [
|
|
1013
|
+
{
|
|
1014
|
+
internalType: "uint256",
|
|
1015
|
+
name: "",
|
|
1016
|
+
type: "uint256",
|
|
1017
|
+
},
|
|
1018
|
+
],
|
|
1019
|
+
stateMutability: "view",
|
|
1020
|
+
type: "function",
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
inputs: [
|
|
1024
|
+
{
|
|
1025
|
+
internalType: "address",
|
|
1026
|
+
name: "comptroller",
|
|
1027
|
+
type: "address",
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
internalType: "address",
|
|
1031
|
+
name: "asset",
|
|
1032
|
+
type: "address",
|
|
1033
|
+
},
|
|
1034
|
+
],
|
|
1035
|
+
name: "getPoolAssetReserve",
|
|
1036
|
+
outputs: [
|
|
1037
|
+
{
|
|
1038
|
+
internalType: "uint256",
|
|
1039
|
+
name: "",
|
|
1040
|
+
type: "uint256",
|
|
1041
|
+
},
|
|
1042
|
+
],
|
|
1043
|
+
stateMutability: "view",
|
|
1044
|
+
type: "function",
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
inputs: [
|
|
1048
|
+
{
|
|
1049
|
+
internalType: "address",
|
|
1050
|
+
name: "tokenAddress",
|
|
1051
|
+
type: "address",
|
|
1052
|
+
},
|
|
1053
|
+
],
|
|
1054
|
+
name: "getPools",
|
|
1055
|
+
outputs: [
|
|
1056
|
+
{
|
|
1057
|
+
internalType: "address[]",
|
|
1058
|
+
name: "",
|
|
1059
|
+
type: "address[]",
|
|
1060
|
+
},
|
|
1061
|
+
],
|
|
1062
|
+
stateMutability: "view",
|
|
1063
|
+
type: "function",
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
inputs: [
|
|
1067
|
+
{
|
|
1068
|
+
internalType: "address",
|
|
1069
|
+
name: "comptroller",
|
|
1070
|
+
type: "address",
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
internalType: "address",
|
|
1074
|
+
name: "asset",
|
|
1075
|
+
type: "address",
|
|
1076
|
+
},
|
|
1077
|
+
],
|
|
1078
|
+
name: "getPoolsAssetsReserves",
|
|
1079
|
+
outputs: [
|
|
1080
|
+
{
|
|
1081
|
+
internalType: "uint256",
|
|
1082
|
+
name: "",
|
|
1083
|
+
type: "uint256",
|
|
1084
|
+
},
|
|
1085
|
+
],
|
|
1086
|
+
stateMutability: "view",
|
|
1087
|
+
type: "function",
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
inputs: [
|
|
1091
|
+
{
|
|
1092
|
+
internalType: "uint256",
|
|
1093
|
+
name: "amountOutMantissa",
|
|
1094
|
+
type: "uint256",
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
internalType: "address",
|
|
1098
|
+
name: "tokenAddressIn",
|
|
1099
|
+
type: "address",
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
internalType: "address",
|
|
1103
|
+
name: "tokenAddressOut",
|
|
1104
|
+
type: "address",
|
|
1105
|
+
},
|
|
1106
|
+
],
|
|
1107
|
+
name: "getUpdatedAmountIn",
|
|
1108
|
+
outputs: [
|
|
1109
|
+
{
|
|
1110
|
+
internalType: "uint256",
|
|
1111
|
+
name: "amountConvertedMantissa",
|
|
1112
|
+
type: "uint256",
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
internalType: "uint256",
|
|
1116
|
+
name: "amountInMantissa",
|
|
1117
|
+
type: "uint256",
|
|
1118
|
+
},
|
|
1119
|
+
],
|
|
1120
|
+
stateMutability: "nonpayable",
|
|
1121
|
+
type: "function",
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
inputs: [
|
|
1125
|
+
{
|
|
1126
|
+
internalType: "uint256",
|
|
1127
|
+
name: "amountInMantissa",
|
|
1128
|
+
type: "uint256",
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
internalType: "address",
|
|
1132
|
+
name: "tokenAddressIn",
|
|
1133
|
+
type: "address",
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
internalType: "address",
|
|
1137
|
+
name: "tokenAddressOut",
|
|
1138
|
+
type: "address",
|
|
1139
|
+
},
|
|
1140
|
+
],
|
|
1141
|
+
name: "getUpdatedAmountOut",
|
|
1142
|
+
outputs: [
|
|
1143
|
+
{
|
|
1144
|
+
internalType: "uint256",
|
|
1145
|
+
name: "amountConvertedMantissa",
|
|
1146
|
+
type: "uint256",
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
internalType: "uint256",
|
|
1150
|
+
name: "amountOutMantissa",
|
|
1151
|
+
type: "uint256",
|
|
1152
|
+
},
|
|
1153
|
+
],
|
|
1154
|
+
stateMutability: "nonpayable",
|
|
1155
|
+
type: "function",
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
inputs: [
|
|
1159
|
+
{
|
|
1160
|
+
internalType: "address",
|
|
1161
|
+
name: "accessControlManager_",
|
|
1162
|
+
type: "address",
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
internalType: "contract ResilientOracle",
|
|
1166
|
+
name: "priceOracle_",
|
|
1167
|
+
type: "address",
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
internalType: "address",
|
|
1171
|
+
name: "destinationAddress_",
|
|
1172
|
+
type: "address",
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
internalType: "address",
|
|
1176
|
+
name: "poolRegistry_",
|
|
1177
|
+
type: "address",
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
internalType: "address[]",
|
|
1181
|
+
name: "comptrollers",
|
|
1182
|
+
type: "address[]",
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
internalType: "address[][]",
|
|
1186
|
+
name: "assets",
|
|
1187
|
+
type: "address[][]",
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
internalType: "bool[][]",
|
|
1191
|
+
name: "values",
|
|
1192
|
+
type: "bool[][]",
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
name: "initialize",
|
|
1196
|
+
outputs: [],
|
|
1197
|
+
stateMutability: "nonpayable",
|
|
1198
|
+
type: "function",
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
inputs: [],
|
|
1202
|
+
name: "owner",
|
|
1203
|
+
outputs: [
|
|
1204
|
+
{
|
|
1205
|
+
internalType: "address",
|
|
1206
|
+
name: "",
|
|
1207
|
+
type: "address",
|
|
1208
|
+
},
|
|
1209
|
+
],
|
|
1210
|
+
stateMutability: "view",
|
|
1211
|
+
type: "function",
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
inputs: [],
|
|
1215
|
+
name: "pauseConversion",
|
|
1216
|
+
outputs: [],
|
|
1217
|
+
stateMutability: "nonpayable",
|
|
1218
|
+
type: "function",
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
inputs: [],
|
|
1222
|
+
name: "pendingOwner",
|
|
1223
|
+
outputs: [
|
|
1224
|
+
{
|
|
1225
|
+
internalType: "address",
|
|
1226
|
+
name: "",
|
|
1227
|
+
type: "address",
|
|
1228
|
+
},
|
|
1229
|
+
],
|
|
1230
|
+
stateMutability: "view",
|
|
1231
|
+
type: "function",
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
inputs: [],
|
|
1235
|
+
name: "poolRegistry",
|
|
1236
|
+
outputs: [
|
|
1237
|
+
{
|
|
1238
|
+
internalType: "address",
|
|
1239
|
+
name: "",
|
|
1240
|
+
type: "address",
|
|
1241
|
+
},
|
|
1242
|
+
],
|
|
1243
|
+
stateMutability: "view",
|
|
1244
|
+
type: "function",
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
inputs: [
|
|
1248
|
+
{
|
|
1249
|
+
internalType: "address",
|
|
1250
|
+
name: "",
|
|
1251
|
+
type: "address",
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
internalType: "address",
|
|
1255
|
+
name: "",
|
|
1256
|
+
type: "address",
|
|
1257
|
+
},
|
|
1258
|
+
],
|
|
1259
|
+
name: "poolsAssetsDirectTransfer",
|
|
1260
|
+
outputs: [
|
|
1261
|
+
{
|
|
1262
|
+
internalType: "bool",
|
|
1263
|
+
name: "",
|
|
1264
|
+
type: "bool",
|
|
1265
|
+
},
|
|
1266
|
+
],
|
|
1267
|
+
stateMutability: "view",
|
|
1268
|
+
type: "function",
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
inputs: [
|
|
1272
|
+
{
|
|
1273
|
+
internalType: "address",
|
|
1274
|
+
name: "tokenInAddress",
|
|
1275
|
+
type: "address",
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
internalType: "address",
|
|
1279
|
+
name: "tokenOutAddress",
|
|
1280
|
+
type: "address",
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
internalType: "uint256",
|
|
1284
|
+
name: "amountIn",
|
|
1285
|
+
type: "uint256",
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
internalType: "uint256",
|
|
1289
|
+
name: "amountOut",
|
|
1290
|
+
type: "uint256",
|
|
1291
|
+
},
|
|
1292
|
+
],
|
|
1293
|
+
name: "postConversionHookMock",
|
|
1294
|
+
outputs: [],
|
|
1295
|
+
stateMutability: "nonpayable",
|
|
1296
|
+
type: "function",
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
inputs: [
|
|
1300
|
+
{
|
|
1301
|
+
internalType: "address",
|
|
1302
|
+
name: "tokenOutAddress",
|
|
1303
|
+
type: "address",
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
internalType: "uint256",
|
|
1307
|
+
name: "amountOut",
|
|
1308
|
+
type: "uint256",
|
|
1309
|
+
},
|
|
1310
|
+
],
|
|
1311
|
+
name: "preTransferHookMock",
|
|
1312
|
+
outputs: [],
|
|
1313
|
+
stateMutability: "nonpayable",
|
|
1314
|
+
type: "function",
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
inputs: [],
|
|
1318
|
+
name: "priceOracle",
|
|
1319
|
+
outputs: [
|
|
1320
|
+
{
|
|
1321
|
+
internalType: "contract ResilientOracle",
|
|
1322
|
+
name: "",
|
|
1323
|
+
type: "address",
|
|
1324
|
+
},
|
|
1325
|
+
],
|
|
1326
|
+
stateMutability: "view",
|
|
1327
|
+
type: "function",
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
inputs: [],
|
|
1331
|
+
name: "renounceOwnership",
|
|
1332
|
+
outputs: [],
|
|
1333
|
+
stateMutability: "nonpayable",
|
|
1334
|
+
type: "function",
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
inputs: [],
|
|
1338
|
+
name: "resumeConversion",
|
|
1339
|
+
outputs: [],
|
|
1340
|
+
stateMutability: "nonpayable",
|
|
1341
|
+
type: "function",
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
inputs: [
|
|
1345
|
+
{
|
|
1346
|
+
internalType: "address",
|
|
1347
|
+
name: "accessControlManager_",
|
|
1348
|
+
type: "address",
|
|
1349
|
+
},
|
|
1350
|
+
],
|
|
1351
|
+
name: "setAccessControlManager",
|
|
1352
|
+
outputs: [],
|
|
1353
|
+
stateMutability: "nonpayable",
|
|
1354
|
+
type: "function",
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
inputs: [
|
|
1358
|
+
{
|
|
1359
|
+
internalType: "address",
|
|
1360
|
+
name: "asset",
|
|
1361
|
+
type: "address",
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
internalType: "uint256",
|
|
1365
|
+
name: "amount",
|
|
1366
|
+
type: "uint256",
|
|
1367
|
+
},
|
|
1368
|
+
],
|
|
1369
|
+
name: "setAssetsReserves",
|
|
1370
|
+
outputs: [],
|
|
1371
|
+
stateMutability: "nonpayable",
|
|
1372
|
+
type: "function",
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
inputs: [
|
|
1376
|
+
{
|
|
1377
|
+
internalType: "address",
|
|
1378
|
+
name: "tokenAddressIn",
|
|
1379
|
+
type: "address",
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
internalType: "address",
|
|
1383
|
+
name: "tokenAddressOut",
|
|
1384
|
+
type: "address",
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
components: [
|
|
1388
|
+
{
|
|
1389
|
+
internalType: "uint256",
|
|
1390
|
+
name: "incentive",
|
|
1391
|
+
type: "uint256",
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
internalType:
|
|
1395
|
+
"enum IAbstractTokenConverter.ConversionAccessibility",
|
|
1396
|
+
name: "conversionAccess",
|
|
1397
|
+
type: "uint8",
|
|
1398
|
+
},
|
|
1399
|
+
],
|
|
1400
|
+
internalType: "struct IAbstractTokenConverter.ConversionConfig",
|
|
1401
|
+
name: "conversionConfig",
|
|
1402
|
+
type: "tuple",
|
|
1403
|
+
},
|
|
1404
|
+
],
|
|
1405
|
+
name: "setConversionConfig",
|
|
1406
|
+
outputs: [],
|
|
1407
|
+
stateMutability: "nonpayable",
|
|
1408
|
+
type: "function",
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
inputs: [
|
|
1412
|
+
{
|
|
1413
|
+
internalType: "contract IConverterNetwork",
|
|
1414
|
+
name: "converterNetwork_",
|
|
1415
|
+
type: "address",
|
|
1416
|
+
},
|
|
1417
|
+
],
|
|
1418
|
+
name: "setConverterNetwork",
|
|
1419
|
+
outputs: [],
|
|
1420
|
+
stateMutability: "nonpayable",
|
|
1421
|
+
type: "function",
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
inputs: [
|
|
1425
|
+
{
|
|
1426
|
+
internalType: "address",
|
|
1427
|
+
name: "destinationAddress_",
|
|
1428
|
+
type: "address",
|
|
1429
|
+
},
|
|
1430
|
+
],
|
|
1431
|
+
name: "setDestination",
|
|
1432
|
+
outputs: [],
|
|
1433
|
+
stateMutability: "nonpayable",
|
|
1434
|
+
type: "function",
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
inputs: [
|
|
1438
|
+
{
|
|
1439
|
+
internalType: "address",
|
|
1440
|
+
name: "poolRegistry_",
|
|
1441
|
+
type: "address",
|
|
1442
|
+
},
|
|
1443
|
+
],
|
|
1444
|
+
name: "setPoolRegistry",
|
|
1445
|
+
outputs: [],
|
|
1446
|
+
stateMutability: "nonpayable",
|
|
1447
|
+
type: "function",
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
inputs: [
|
|
1451
|
+
{
|
|
1452
|
+
internalType: "address[]",
|
|
1453
|
+
name: "comptrollers",
|
|
1454
|
+
type: "address[]",
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
internalType: "address[][]",
|
|
1458
|
+
name: "assets",
|
|
1459
|
+
type: "address[][]",
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
internalType: "bool[][]",
|
|
1463
|
+
name: "values",
|
|
1464
|
+
type: "bool[][]",
|
|
1465
|
+
},
|
|
1466
|
+
],
|
|
1467
|
+
name: "setPoolsAssetsDirectTransfer",
|
|
1468
|
+
outputs: [],
|
|
1469
|
+
stateMutability: "nonpayable",
|
|
1470
|
+
type: "function",
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
inputs: [
|
|
1474
|
+
{
|
|
1475
|
+
internalType: "address",
|
|
1476
|
+
name: "comptroller",
|
|
1477
|
+
type: "address",
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
internalType: "address",
|
|
1481
|
+
name: "asset",
|
|
1482
|
+
type: "address",
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
internalType: "uint256",
|
|
1486
|
+
name: "amount",
|
|
1487
|
+
type: "uint256",
|
|
1488
|
+
},
|
|
1489
|
+
],
|
|
1490
|
+
name: "setPoolsAssetsReserves",
|
|
1491
|
+
outputs: [],
|
|
1492
|
+
stateMutability: "nonpayable",
|
|
1493
|
+
type: "function",
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
inputs: [
|
|
1497
|
+
{
|
|
1498
|
+
internalType: "contract ResilientOracle",
|
|
1499
|
+
name: "priceOracle_",
|
|
1500
|
+
type: "address",
|
|
1501
|
+
},
|
|
1502
|
+
],
|
|
1503
|
+
name: "setPriceOracle",
|
|
1504
|
+
outputs: [],
|
|
1505
|
+
stateMutability: "nonpayable",
|
|
1506
|
+
type: "function",
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
inputs: [
|
|
1510
|
+
{
|
|
1511
|
+
internalType: "address",
|
|
1512
|
+
name: "tokenAddress",
|
|
1513
|
+
type: "address",
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
internalType: "address",
|
|
1517
|
+
name: "to",
|
|
1518
|
+
type: "address",
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
internalType: "uint256",
|
|
1522
|
+
name: "amount",
|
|
1523
|
+
type: "uint256",
|
|
1524
|
+
},
|
|
1525
|
+
],
|
|
1526
|
+
name: "sweepToken",
|
|
1527
|
+
outputs: [],
|
|
1528
|
+
stateMutability: "nonpayable",
|
|
1529
|
+
type: "function",
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
inputs: [
|
|
1533
|
+
{
|
|
1534
|
+
internalType: "address",
|
|
1535
|
+
name: "newOwner",
|
|
1536
|
+
type: "address",
|
|
1537
|
+
},
|
|
1538
|
+
],
|
|
1539
|
+
name: "transferOwnership",
|
|
1540
|
+
outputs: [],
|
|
1541
|
+
stateMutability: "nonpayable",
|
|
1542
|
+
type: "function",
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
inputs: [
|
|
1546
|
+
{
|
|
1547
|
+
internalType: "address",
|
|
1548
|
+
name: "comptroller",
|
|
1549
|
+
type: "address",
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
internalType: "address",
|
|
1553
|
+
name: "asset",
|
|
1554
|
+
type: "address",
|
|
1555
|
+
},
|
|
1556
|
+
],
|
|
1557
|
+
name: "updateAssetsState",
|
|
1558
|
+
outputs: [],
|
|
1559
|
+
stateMutability: "nonpayable",
|
|
1560
|
+
type: "function",
|
|
1561
|
+
},
|
|
1562
|
+
];
|
|
1563
|
+
|
|
1564
|
+
const _bytecode =
|
|
1565
|
+
"0x60e06040523480156200001157600080fd5b506040516200579138038062005791833981016040819052620000349162000190565b828282620000428362000087565b6200004d8262000087565b620000588162000087565b6001600160a01b0380841660805282811660a052811660c0526200007b620000b2565b505050505050620001da565b6001600160a01b038116620000af576040516342bcdf7f60e11b815260040160405180910390fd5b50565b600054610100900460ff16156200011f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000171576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b03811681146200018b57600080fd5b919050565b600080600060608486031215620001a657600080fd5b620001b18462000173565b9250620001c16020850162000173565b9150620001d16040850162000173565b90509250925092565b60805160a05160c0516155646200022d600039600081816104030152612bd20152600081816103dc0152612b0f01526000818161075f01528181610cce01528181612a56015261337501526155646000f3fe608060405234801561001057600080fd5b506004361061030a5760003560e01c8063715018a61161019c578063b4a0bdf3116100ee578063e30c397811610097578063f0dc7e9d11610071578063f0dc7e9d14610734578063f2fde38b14610747578063fa7b81a01461075a57600080fd5b8063e30c3978146106fd578063e50aa3d41461070e578063f04c31871461072157600080fd5b8063bd7f3332116100c8578063bd7f33321461055b578063ca325469146106db578063e2ff7ea2146106ee57600080fd5b8063b4a0bdf3146106af578063b6828c57146106c0578063bc368b04146106d357600080fd5b806390fa7b5411610150578063aac59a751161012a578063aac59a7514610645578063afcff50f14610658578063b491ddf71461066c57600080fd5b806390fa7b54146105f45780639fc3c0c214610607578063a29bc2a31461063257600080fd5b80637b77cd6a116101815780637b77cd6a14610595578063817ee19c146105a85780638da5cb5b146105e357600080fd5b8063715018a61461058557806379ba50971461058d57600080fd5b80634dc1c0a6116102605780635e1e6325116102095780636f1a30a8116101e35780636f1a30a8146105355780636fb052751461054857806370a082311461055b57600080fd5b80635e1e6325146104fc57806364aff9ec1461050f5780636daa463b1461052257600080fd5b8063553745221161023a57806355374522146104c157806358b904df146104d45780635c39f467146104dc57600080fd5b80634dc1c0a61461048857806352e21a181461049b578063530e784f146104ae57600080fd5b80632630c12f116102c25780633d5e29101161029c5780633d5e291014610425578063439727a514610446578063454900fe1461045957600080fd5b80632630c12f146103c45780633421fc52146103d7578063362b6795146103fe57600080fd5b80630a0a05e6116102f35780630a0a05e6146103745780630a9a2b72146103895780630e32cb86146103b157600080fd5b806301e201781461030f57806307aa239e1461033f575b600080fd5b60fe54610322906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b60fd546103649074010000000000000000000000000000000000000000900460ff1681565b6040519015158152602001610336565b610387610382366004614b16565b610781565b005b61039c610397366004614b33565b610795565b60408051928352602083019190915201610336565b6103876103bf366004614b16565b6108d0565b60fb54610322906001600160a01b031681565b6103227f000000000000000000000000000000000000000000000000000000000000000081565b6103227f000000000000000000000000000000000000000000000000000000000000000081565b610438610433366004614b75565b6108e1565b604051908152602001610336565b61039c610454366004614bae565b61090f565b610364610467366004614b75565b61012f60209081526000928352604080842090915290825290205460ff1681565b610387610496366004614c0d565b610a2f565b6103876104a9366004614b16565b610a41565b6103876104bc366004614b16565b610a52565b6103876104cf366004614c9f565b610a63565b610387610a9a565b6104ef6104ea366004614b16565b610b80565b6040516103369190614d39565b61039c61050a366004614b33565b610d1f565b61038761051d366004614d86565b610e18565b61039c610530366004614b33565b610ebf565b61039c610543366004614b33565b610fcb565b610438610556366004614b75565b6110ca565b610438610569366004614b16565b6001600160a01b0316600090815261012c602052604090205490565b610387611194565b6103876111a8565b6103876105a3366004614b16565b611233565b6103876105b6366004614d86565b6001600160a01b03928316600090815261012d602090815260408083209490951682529290925291902055565b6033546001600160a01b0316610322565b61039c610602366004614bae565b6112ba565b610387610615366004614dc7565b6001600160a01b03909116600090815261012c6020526040902055565b610387610640366004614df3565b611389565b610387610653366004614b75565b611559565b61012e54610322906001600160a01b031681565b6106a161067a366004614b75565b60fc6020908152600092835260408084209091529082529020805460019091015460ff1682565b604051610336929190614f40565b6097546001600160a01b0316610322565b61039c6106ce366004614bae565b61158f565b61038761165e565b60fd54610322906001600160a01b031681565b6104386706f05b59d3b2000081565b6065546001600160a01b0316610322565b61038761071c366004614dc7565b611710565b61039c61072f366004614bae565b61171a565b610387610742366004614f54565b611822565b610387610755366004614b16565b611bca565b6103227f000000000000000000000000000000000000000000000000000000000000000081565b610789611c53565b61079281611cad565b50565b60008060026001600160a01b03808616600090815260fc602090815260408083209388168352929052206001015460ff1660038111156107d7576107d7614ed6565b0361080e576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061081b868686611d2a565b919450925090506000610844856001600160a01b0316600090815261012c602052604090205490565b90508681101561088c5781600181610864670de0b6b3a764000085614ff4565b61086e9190615031565b6108789190615049565b6108829190615060565b92508093506108c6565b816001816108a2670de0b6b3a76400008b614ff4565b6108ac9190615031565b6108b69190615049565b6108c09190615060565b92508693505b5050935093915050565b6108d8611c53565b61079281612052565b6001600160a01b03808316600090815261012d60209081526040808320938516835292905220545b92915050565b60008061091a612147565b6109226121a0565b846001600160a01b0316836001600160a01b031614806109535750836001600160a01b0316836001600160a01b0316145b1561098a576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61099787878787876121f5565b90925090508682146109d5576040517fc214279600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e18585848461226b565b60408051838152602081018390527f01792e8a01532b0dfd583c98a639374a06c53ace3264841bcdc0c44d3734027c91015b60405180910390a1610a25600160c955565b9550959350505050565b610a3b8484848461226b565b50505050565b610a49611c53565b610792816125ba565b610a5a611c53565b61079281612637565b610a846040518060600160405280603c81526020016154f3603c91396126b4565b610a92868686868686612780565b505050505050565b610ad86040518060400160405280601281526020017f726573756d65436f6e76657273696f6e282900000000000000000000000000008152506126b4565b60fd5474010000000000000000000000000000000000000000900460ff16610b2b576040517e6d8dbb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fd80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905560405133907f89b79206f08dadd78502cff5075d2b094fa0abea0b063cfafe4475e2a380c51f90600090a2565b61012e546040517ff36dba380000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260609260009291169063f36dba3890602401600060405180830381865afa158015610be9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c119190810190615193565b9050610c1c83612a51565b156109095780516000610c30826001615031565b67ffffffffffffffff811115610c4857610c4861509b565b604051908082528060200260200182016040528015610c71578160200160208202803683370190505b50905060005b82811015610ccb57838181518110610c9157610c916151c8565b6020026020010151828281518110610cab57610cab6151c8565b6001600160a01b0390921660209283029190910190910152600101610c77565b507f0000000000000000000000000000000000000000000000000000000000000000818381518110610cff57610cff6151c8565b6001600160a01b0390921660209283029190910190910152949350505050565b60008060026001600160a01b03808616600090815260fc602090815260408083209388168352929052206001015460ff166003811115610d6157610d61614ed6565b03610d98576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610da5868686612c1d565b919450925090506000610dce856001600160a01b0316600090815261012c602052604090205490565b9050828110156108c65781600181610dee670de0b6b3a764000085614ff4565b610df89190615031565b610e029190615049565b610e0c9190615060565b97909650945050505050565b610e20611c53565b610e28612147565b610e3183612f44565b610e3a82612f44565b610e4381612f84565b82610e4e8183612fbe565b610e626001600160a01b03821684846132c8565b826001600160a01b0316846001600160a01b03167f6d25be279134f4ecaa4770aff0c3d916d9e7c5ef37b65ed95dbdba411f5d54d584604051610ea791815260200190565b60405180910390a350610eba600160c955565b505050565b60fb546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600092839291169063b62cad6990602401600060405180830381600087803b158015610f2357600080fd5b505af1158015610f37573d6000803e3d6000fd5b505060fb546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116925063b62cad699150602401600060405180830381600087803b158015610f9b57600080fd5b505af1158015610faf573d6000803e3d6000fd5b50505050610fbe858585612c1d565b5090969095509350505050565b60fb546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600092839291169063b62cad6990602401600060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b505060fb546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116925063b62cad699150602401600060405180830381600087803b1580156110a757600080fd5b505af11580156110bb573d6000803e3d6000fd5b50505050610fbe858585611d2a565b60006110d860c95460021490565b1561110f576040517f9a050fe700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111198383613371565b611167576040517f983f1fb50000000000000000000000000000000000000000000000000000000081526001600160a01b038085166004830152831660248201526044015b60405180910390fd5b506001600160a01b03918216600090815261012d6020908152604080832093909416825291909152205490565b61119c611c53565b6111a6600061345f565b565b60655433906001600160a01b0316811461122a5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e65720000000000000000000000000000000000000000000000606482015260840161115e565b6107928161345f565b61123b611c53565b61124481612f44565b61012e546040516001600160a01b038084169216907fa87b964d321035d2165e484ff4b722dd6eae30606c0b98887d2ed1a34e594bfe90600090a361012e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000806112c5612147565b6112cd6121a0565b846001600160a01b0316836001600160a01b031614806112fe5750836001600160a01b0316836001600160a01b0316145b15611335576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61134287878787876121f5565b90925090506113538585848461226b565b60408051838152602081018390527f92ef507e546b21a1901d123e589bc1c7f3d0677b5002ef925a5e35d4b42c79ed9101610a13565b600054610100900460ff16158080156113a95750600054600160ff909116105b806113c35750303b1580156113c3575060005460ff166001145b6114355760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161115e565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561149357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b61149e8b8b8b613490565b6114a788612f44565b61012e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038a161790556114e9878787878787612780565b801561154c57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050505050565b611561612147565b600061156d8383613528565b9050801561158057611580838383613898565b5061158b600160c955565b5050565b60008061159a612147565b6115a26121a0565b846001600160a01b0316836001600160a01b031614806115d35750836001600160a01b0316836001600160a01b0316145b1561160a576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116178787878787613d20565b90925090506116288585848461226b565b60408051838152602081018390527fa364c127f83ff536470aa9e3d37f6106ffc011565ff9e4ac40b37ccf6754a7cb9101610a13565b61169c6040518060400160405280601181526020017f7061757365436f6e76657273696f6e28290000000000000000000000000000008152506126b4565b6116a46121a0565b60fd80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560405133907f490bc639fd0d96f19c8adf77bc98d17fbefdee2e1e1864d21f041360d0ee065a90600090a2565b61158b8282613db2565b600080611725612147565b61172d6121a0565b846001600160a01b0316836001600160a01b0316148061175e5750836001600160a01b0316836001600160a01b0316145b15611795576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117a28787878787613d20565b90925090508581146117e0576040517fa8dc653c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117ec8585848461226b565b60408051838152602081018390527f677b5c232f8cd6f480caaa86461160d88dd65f5d39266aa51dba2a849ce28e939101610a13565b6118436040518060600160405280603581526020016154be603591396126b4565b61184c83612f44565b61185582612f44565b6706f05b59d3b20000813511156118a9576040517f9770caee000000000000000000000000000000000000000000000000000000008152813560048201526706f05b59d3b20000602482015260440161115e565b816001600160a01b0316836001600160a01b031614806118e257506118cc613de4565b6001600160a01b0316836001600160a01b031614155b8061192a575060006001600160a01b03808416600090815260fc602090815260408083209388168352929052206001015460ff16600381111561192757611927614ed6565b14155b15611961576040517feebb5ac600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600261197360408301602084016151f7565b600381111561198457611984614ed6565b1480156119915750803515155b156119c8576040517fd0d4aabe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026119da60408301602084016151f7565b60038111156119eb576119eb614ed6565b1480611a1757506001611a0460408301602084016151f7565b6003811115611a1557611a15614ed6565b145b8015611a2c575060fe546001600160a01b0316155b15611a63576040517fe7c2c99400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808416600081815260fc602090815260408083209487168084529482529182902080546001820154919594937f39fbfdd5da133303ed31b1b65e30a0ddf7a9236573368c66c859dceccc1dd12a93919288359260ff90911691611ad391908a01908a016151f7565b604051611ae39493929190615218565b60405180910390a36000611afd60408401602085016151f7565b6003811115611b0e57611b0e614ed6565b03611b6b576001600160a01b03808516600090815260fc60209081526040808320938716835292905290812090815560010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055610a3b565b81358155611b7f60408301602084016151f7565b6001808301805490917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090911690836003811115611bbf57611bbf614ed6565b021790555050505050565b611bd2611c53565b606580546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155611c1b6033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6033546001600160a01b031633146111a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161115e565b611cb681612f44565b60fd546040516001600160a01b038084169216907f9be3097b5c8b276786be52a244ee90d66efd34805d9eb16f168fb2b4aaae9a2b90600090a360fd80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600080600085600003611d69576040517f42301c2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808616600090815260fc6020908152604080832093881683529281528282208351808501909452805484526001810154929392909183019060ff166003811115611dbd57611dbd614ed6565b6003811115611dce57611dce614ed6565b9052509050600081602001516003811115611deb57611deb614ed6565b03611e22576040517f618ce59700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fb546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03888116600483015260009216906341976e0990602401602060405180830381865afa158015611e86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eaa9190615249565b60fb546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152929350600092909116906341976e0990602401602060405180830381865afa158015611f13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f379190615249565b835160fe54919250906001600160a01b031615801590611fd7575060fe546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa158015611fb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fd79190615262565b15611fe0575060005b6000611ff482670de0b6b3a7640000615031565b9050826120018286614ff4565b61200b9190615060565b955085600181612023670de0b6b3a76400008f614ff4565b61202d9190615031565b6120379190615049565b6120419190615060565b9a9b95995094975050505050505050565b6001600160a01b0381166120ce5760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161115e565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b600260c954036121995760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161115e565b600260c955565b60fd5474010000000000000000000000000000000000000000900460ff16156111a6576040517f952bcf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806122028585613e70565b61220c8588613f90565b9150612219828686610ebf565b91505085811015612260576040517f228f8c11000000000000000000000000000000000000000000000000000000008152600481018290526024810187905260440161115e565b610a258484836140db565b600061227684610b80565b6001600160a01b038516600090815261012c60205260408120549192509061229f908490615031565b90506122aa81612f84565b815160008080805b8481101561154c57600061012d60008984815181106122d3576122d36151c8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020549050806000146125aa57612334600187615049565b82101561239457612360888381518110612350576123506151c8565b60200260200101518c8b8a614155565b61236a9086615031565b945086612377828c614ff4565b6123819190615060565b935061238d8484615031565b925061248f565b60006123a0868b615049565b90508061012d60008b86815181106123ba576123ba6151c8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546124149190615049565b925050819055508b6001600160a01b0316898481518110612437576124376151c8565b60200260200101516001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce388360405161247991815260200190565b60405180910390a361248b848c615049565b9450505b8b6001600160a01b03168883815181106124ab576124ab6151c8565b60200260200101516001600160a01b03167fb2af24fca15f69d5ca3af351838ed0aeb6595776a9a642cb7b824c64eec0cc19866040516124ed91815260200190565b60405180910390a360fd5488516001600160a01b03909116906353ac3537908a908590811061251e5761251e6151c8565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039182166004820152908f16602482015260448101879052606401600060405180830381600087803b15801561259157600080fd5b505af11580156125a5573d6000803e3d6000fd5b505050505b506001016122b2565b600160c955565b6125c381612f44565b60fe546040516001600160a01b038084169216907f50f1a16bf24734355b14ff800d132cc0a934808b8621d5623b41bc67f204881790600090a360fe80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61264081612f44565b60fb546040516001600160a01b038084169216907f56b5f80d8cac1479698aa7d01605fd6111e90b15fc4d2b377417f46034876cbd90600090a360fb80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6097546040517f18c5e8ab0000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906318c5e8ab9061270090339086906004016152dc565b602060405180830381865afa15801561271d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127419190615262565b90508061158b573330836040517f4a3fa29300000000000000000000000000000000000000000000000000000000815260040161115e939291906152fe565b8483811415806127905750808214155b156127c7576040517f5f6f132c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015612a475760008686838181106127e6576127e66151c8565b90506020028101906127f8919061532a565b808060200260200160405190810160405280939291908181526020018383602002808284376000920182905250939450889250879150859050818110612840576128406151c8565b9050602002810190612852919061532a565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250508451835193945092831491506128c59050576040517f5f6f132c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015612a38578281815181106128e2576128e26151c8565b602002602001015161012f60008e8e89818110612901576129016151c8565b90506020020160208101906129169190614b16565b6001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061294a5761294a6151c8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555083818151811061299b5761299b6151c8565b60200260200101516001600160a01b03168c8c878181106129be576129be6151c8565b90506020020160208101906129d39190614b16565b6001600160a01b03167f6333c55c3657aafc9b39e2586076d198ed0250804559126489c852f28d51280c858481518110612a0f57612a0f6151c8565b6020026020010151604051612a28911515815260200190565b60405180910390a36001016128c8565b508360010193505050506127ca565b5050505050505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b0772d0b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015612ab2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ada9190810190615193565b805190915060005b81811015612c1557828181518110612afc57612afc6151c8565b60200260200101516001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614612bd057846001600160a01b0316838281518110612b5857612b586151c8565b60200260200101516001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc19190615392565b6001600160a01b031614612c06565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316145b935083612c1557600101612ae2565b505050919050565b600080600085600003612c5c576040517f098fb56100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808616600090815260fc6020908152604080832093881683529281528282208351808501909452805484526001810154929392909183019060ff166003811115612cb057612cb0614ed6565b6003811115612cc157612cc1614ed6565b9052509050600081602001516003811115612cde57612cde614ed6565b03612d15576040517f618ce59700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fb546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03888116600483015260009216906341976e0990602401602060405180830381865afa158015612d79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d9d9190615249565b60fb546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152929350600092909116906341976e0990602401602060405180830381865afa158015612e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e2a9190615249565b835160fe54919250906001600160a01b031615801590612eca575060fe546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa158015612ea6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eca9190615262565b15612ed3575060005b6000612ee782670de0b6b3a7640000615031565b9050612efb670de0b6b3a764000084614ff4565b81612f06868e614ff4565b612f109190614ff4565b612f1a9190615060565b8b9850965082612f2a8286614ff4565b612f349190615060565b9550505050505093509350939050565b6001600160a01b038116610792576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600003610792576040517f9cf8540c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561301e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130429190615249565b90508082111561307e576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600090815261012c60205260408120546130a29083615049565b905082811015610a3b5780830360006130ba86610b80565b6001600160a01b038716600090815261012c602052604081205482519293509190805b8281101561328e5761012d60008683815181106130fc576130fc6151c8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020546000146132865761315a600184615049565b81101561319757613186858281518110613176576131766151c8565b60200260200101518b8887614155565b6131909083615031565b9150613286565b60006131a38388615049565b90508061012d60008885815181106131bd576131bd6151c8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546132179190615049565b925050819055508a6001600160a01b031686838151811061323a5761323a6151c8565b60200260200101516001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce388360405161327c91815260200190565b60405180910390a3505b6001016130dd565b506001600160a01b038916600090815261012c6020526040812080548792906132b8908490615049565b9091555050505050505050505050565b6040516001600160a01b038316602482015260448101829052610eba9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261422e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316036133bc576133b582612a51565b9050610909565b61012e546040517f266e0a7f0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152600092169063266e0a7f90604401602060405180830381865afa158015613429573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061344d9190615392565b6001600160a01b031614159392505050565b606580547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561079281614316565b600054610100900460ff1661350d5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b61351683614380565b61351e61440e565b610eba8282614493565b60006135348383613371565b61357d576040517f983f1fb50000000000000000000000000000000000000000000000000000000081526001600160a01b0380851660048301528316602482015260440161115e565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156135df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136039190615249565b6001600160a01b038516600090815261012c60205260409020549091508082111561388f576001600160a01b03808716600090815261012f60209081526040808320938916835292905220548183039060ff16156138845760fd546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918616906370a0823190602401602060405180830381865afa1580156136c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e49190615249565b60fd54909150613701906001600160a01b038781169116846132c8565b60fd546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918716906370a0823190602401602060405180830381865afa158015613766573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061378a9190615249565b9050876001600160a01b0316896001600160a01b03167fb2af24fca15f69d5ca3af351838ed0aeb6595776a9a642cb7b824c64eec0cc19856040516137d191815260200190565b60405180910390a360fd546001600160a01b03166353ac35378a8a6137f68686615049565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561385d57600080fd5b505af1158015613871573d6000803e3d6000fd5b5050505060009650505050505050610909565b935061090992505050565b50505092915050565b60006138a2613de4565b60fd5460fe549192506001600160a01b03908116916000911615613d135760fe546040517f4e9f8f390000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015285811660248301526000928392911690634e9f8f39906044016000604051808303816000875af1158015613931573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395991908101906153af565b8151919350915060005b81811015613d0e5782818151811061397d5761397d6151c8565b602002602001015160000315613d0e5760008482815181106139a1576139a16151c8565b60200260200101516001600160a01b0316636f1a30a88584815181106139c9576139c96151c8565b60200260200101518c8b6040518463ffffffff1660e01b8152600401613a0b939291909283526001600160a01b03918216602084015216604082015260600190565b60408051808303816000875af1158015613a29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a4d919061546a565b91505088811115613a5b5750875b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152600091908a16906370a0823190602401602060405180830381865afa158015613abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ae29190615249565b90508a6001600160a01b031663095ea7b3878581518110613b0557613b056151c8565b6020026020010151846040518363ffffffff1660e01b8152600401613b3f9291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015613b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b829190615262565b50858381518110613b9557613b956151c8565b60209081029190910101516040517f439727a500000000000000000000000000000000000000000000000000000000815260048101849052600060248201526001600160a01b038d811660448301528b811660648301528a811660848301529091169063439727a59060a40160408051808303816000875af1158015613c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c43919061546a565b50506040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152600091908b16906370a0823190602401602060405180830381865afa158015613ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ccc9190615249565b9050613cd8838c615049565b9a50613ce48282615049565b613cee9089615031565b97508a600003613d0057505050613d0e565b836001019350505050613963565b505050505b610a92868483888861454e565b600080613d2d8585613e70565b6000613d3a878787610fcb565b915050613d478682613f90565b925087831115613d8d576040517f71b5f0c1000000000000000000000000000000000000000000000000000000008152600481018290526024810189905260440161115e565b613d98838787610ebf565b9250613da790508585846140db565b509550959350505050565b6001600160a01b038216600090815261012c602052604081208054839290613ddb908490615049565b90915550505050565b60fd54604080517fc8ecc0d300000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163c8ecc0d39160048083019260209291908290030181865afa158015613e47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e6b9190615392565b905090565b60fe546000906001600160a01b031615801590613f0d575060fe546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa158015613ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f0d9190615262565b905080158015613f59575060026001600160a01b03808516600090815260fc602090815260408083209387168352929052206001015460ff166003811115613f5757613f57614ed6565b145b15610eba576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fd546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152600091849183918316906370a0823190602401602060405180830381865afa158015613ff9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061401d9190615249565b60fd5490915061403c906001600160a01b0384811691339116876146f0565b60fd546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918416906370a0823190602401602060405180830381865afa1580156140a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140c59190615249565b90506140d18282615049565b9695505050505050565b6001600160a01b038316600090815261012c60205260409020548181101561412f576040517f6bb2792900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6141398483613db2565b8361414e6001600160a01b03821685856132c8565b5050505050565b6001600160a01b03808516600090815261012d60209081526040808320938716835292905290812054829061418b908590614ff4565b6141959190615060565b6001600160a01b03808716600090815261012d602090815260408083209389168352929052908120805492935083929091906141d2908490615049565b92505081905550836001600160a01b0316856001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce388360405161421e91815260200190565b60405180910390a3949350505050565b6000614283826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166147419092919063ffffffff16565b90508051600014806142a45750808060200190518101906142a49190615262565b610eba5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161115e565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166143fd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b61440561475a565b610792816147df565b600054610100900460ff1661448b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b6111a661485c565b600054610100900460ff166145105760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b61451982612637565b61452281611cad565b505060fd80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b821561462957836001600160a01b0316856001600160a01b03167fb2af24fca15f69d5ca3af351838ed0aeb6595776a9a642cb7b824c64eec0cc198560405161459991815260200190565b60405180910390a360fd546040517f53ac35370000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152868116602483015260448201869052909116906353ac353790606401600060405180830381600087803b15801561461057600080fd5b505af1158015614624573d6000803e3d6000fd5b505050505b801561414e576001600160a01b038216600090815261012c602052604081208054839290614658908490615031565b90915550506001600160a01b03808616600090815261012d6020908152604080832093861683529290529081208054839290614695908490615031565b92505081905550816001600160a01b0316856001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce38836040516146e191815260200190565b60405180910390a35050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a3b9085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161330d565b606061475084846000856148d9565b90505b9392505050565b600054610100900460ff166147d75760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b6111a66149cd565b600054610100900460ff166108d85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b600054610100900460ff166125b35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b6060824710156149515760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161115e565b600080866001600160a01b0316858760405161496d919061548e565b60006040518083038185875af1925050503d80600081146149aa576040519150601f19603f3d011682016040523d82523d6000602084013e6149af565b606091505b50915091506149c087838387614a53565b925050505b949350505050565b600054610100900460ff16614a4a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161115e565b6111a63361345f565b60608315614ac2578251600003614abb576001600160a01b0385163b614abb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161115e565b50816149c5565b6149c58383815115614ad75781518083602001fd5b8060405162461bcd60e51b815260040161115e91906154aa565b6001600160a01b038116811461079257600080fd5b8035614b1181614af1565b919050565b600060208284031215614b2857600080fd5b813561475381614af1565b600080600060608486031215614b4857600080fd5b833592506020840135614b5a81614af1565b91506040840135614b6a81614af1565b809150509250925092565b60008060408385031215614b8857600080fd5b8235614b9381614af1565b91506020830135614ba381614af1565b809150509250929050565b600080600080600060a08688031215614bc657600080fd5b85359450602086013593506040860135614bdf81614af1565b92506060860135614bef81614af1565b91506080860135614bff81614af1565b809150509295509295909350565b60008060008060808587031215614c2357600080fd5b8435614c2e81614af1565b93506020850135614c3e81614af1565b93969395505050506040820135916060013590565b60008083601f840112614c6557600080fd5b50813567ffffffffffffffff811115614c7d57600080fd5b6020830191508360208260051b8501011115614c9857600080fd5b9250929050565b60008060008060008060608789031215614cb857600080fd5b863567ffffffffffffffff80821115614cd057600080fd5b614cdc8a838b01614c53565b90985096506020890135915080821115614cf557600080fd5b614d018a838b01614c53565b90965094506040890135915080821115614d1a57600080fd5b50614d2789828a01614c53565b979a9699509497509295939492505050565b6020808252825182820181905260009190848201906040850190845b81811015614d7a5783516001600160a01b031683529284019291840191600101614d55565b50909695505050505050565b600080600060608486031215614d9b57600080fd5b8335614da681614af1565b92506020840135614db681614af1565b929592945050506040919091013590565b60008060408385031215614dda57600080fd5b8235614de581614af1565b946020939093013593505050565b60008060008060008060008060008060e08b8d031215614e1257600080fd5b8a35614e1d81614af1565b995060208b0135614e2d81614af1565b9850614e3b60408c01614b06565b9750614e4960608c01614b06565b965060808b013567ffffffffffffffff80821115614e6657600080fd5b614e728e838f01614c53565b909850965060a08d0135915080821115614e8b57600080fd5b614e978e838f01614c53565b909650945060c08d0135915080821115614eb057600080fd5b50614ebd8d828e01614c53565b915080935050809150509295989b9194979a5092959850565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110614f3c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b828152604081016147536020830184614f05565b60008060008385036080811215614f6a57600080fd5b8435614f7581614af1565b93506020850135614f8581614af1565b925060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc082011215614fb757600080fd5b506040840190509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561502c5761502c614fc5565b500290565b6000821982111561504457615044614fc5565b500190565b60008282101561505b5761505b614fc5565b500390565b600082615096577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156150f3576150f361509b565b604052919050565b600067ffffffffffffffff8211156151155761511561509b565b5060051b60200190565b600082601f83011261513057600080fd5b81516020615145615140836150fb565b6150ca565b82815260059290921b8401810191818101908684111561516457600080fd5b8286015b8481101561518857805161517b81614af1565b8352918301918301615168565b509695505050505050565b6000602082840312156151a557600080fd5b815167ffffffffffffffff8111156151bc57600080fd5b6149c58482850161511f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561520957600080fd5b81356004811061475357600080fd5b84815260208101849052608081016152336040830185614f05565b6152406060830184614f05565b95945050505050565b60006020828403121561525b57600080fd5b5051919050565b60006020828403121561527457600080fd5b8151801515811461475357600080fd5b60005b8381101561529f578181015183820152602001615287565b83811115610a3b5750506000910152565b600081518084526152c8816020860160208601615284565b601f01601f19169290920160200192915050565b6001600160a01b038316815260406020820152600061475060408301846152b0565b60006001600160a01b0380861683528085166020840152506060604083015261524060608301846152b0565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261535f57600080fd5b83018035915067ffffffffffffffff82111561537a57600080fd5b6020019150600581901b3603821315614c9857600080fd5b6000602082840312156153a457600080fd5b815161475381614af1565b600080604083850312156153c257600080fd5b825167ffffffffffffffff808211156153da57600080fd5b6153e68683870161511f565b93506020915081850151818111156153fd57600080fd5b85019050601f8101861361541057600080fd5b805161541e615140826150fb565b81815260059190911b8201830190838101908883111561543d57600080fd5b928401925b8284101561545b57835182529284019290840190615442565b80955050505050509250929050565b6000806040838503121561547d57600080fd5b505080516020909101519092909150565b600082516154a0818460208701615284565b9190910192915050565b60208152600061475360208301846152b056fe736574436f6e76657273696f6e436f6e66696728616464726573732c616464726573732c436f6e76657273696f6e436f6e66696729736574506f6f6c734173736574734469726563745472616e7366657228616464726573735b5d2c616464726573735b5d5b5d2c626f6f6c5b5d5b5d29a264697066735822122069e4a1f79086d94bbb100def4f0f9836ac8fc8c5628a2d83929d6e177be8036a64736f6c634300080d0033";
|
|
1566
|
+
|
|
1567
|
+
export class MockRiskFundConverter__factory extends ContractFactory {
|
|
1568
|
+
constructor(
|
|
1569
|
+
...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
|
|
1570
|
+
) {
|
|
1571
|
+
if (args.length === 1) {
|
|
1572
|
+
super(_abi, _bytecode, args[0]);
|
|
1573
|
+
} else {
|
|
1574
|
+
super(...args);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
deploy(
|
|
1579
|
+
corePoolComptroller_: string,
|
|
1580
|
+
vBNB_: string,
|
|
1581
|
+
nativeWrapped_: string,
|
|
1582
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1583
|
+
): Promise<MockRiskFundConverter> {
|
|
1584
|
+
return super.deploy(
|
|
1585
|
+
corePoolComptroller_,
|
|
1586
|
+
vBNB_,
|
|
1587
|
+
nativeWrapped_,
|
|
1588
|
+
overrides || {}
|
|
1589
|
+
) as Promise<MockRiskFundConverter>;
|
|
1590
|
+
}
|
|
1591
|
+
getDeployTransaction(
|
|
1592
|
+
corePoolComptroller_: string,
|
|
1593
|
+
vBNB_: string,
|
|
1594
|
+
nativeWrapped_: string,
|
|
1595
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1596
|
+
): TransactionRequest {
|
|
1597
|
+
return super.getDeployTransaction(
|
|
1598
|
+
corePoolComptroller_,
|
|
1599
|
+
vBNB_,
|
|
1600
|
+
nativeWrapped_,
|
|
1601
|
+
overrides || {}
|
|
1602
|
+
);
|
|
1603
|
+
}
|
|
1604
|
+
attach(address: string): MockRiskFundConverter {
|
|
1605
|
+
return super.attach(address) as MockRiskFundConverter;
|
|
1606
|
+
}
|
|
1607
|
+
connect(signer: Signer): MockRiskFundConverter__factory {
|
|
1608
|
+
return super.connect(signer) as MockRiskFundConverter__factory;
|
|
1609
|
+
}
|
|
1610
|
+
static readonly bytecode = _bytecode;
|
|
1611
|
+
static readonly abi = _abi;
|
|
1612
|
+
static createInterface(): MockRiskFundConverterInterface {
|
|
1613
|
+
return new utils.Interface(_abi) as MockRiskFundConverterInterface;
|
|
1614
|
+
}
|
|
1615
|
+
static connect(
|
|
1616
|
+
address: string,
|
|
1617
|
+
signerOrProvider: Signer | Provider
|
|
1618
|
+
): MockRiskFundConverter {
|
|
1619
|
+
return new Contract(
|
|
1620
|
+
address,
|
|
1621
|
+
_abi,
|
|
1622
|
+
signerOrProvider
|
|
1623
|
+
) as MockRiskFundConverter;
|
|
1624
|
+
}
|
|
1625
|
+
}
|