@venusprotocol/protocol-reserve 1.1.0 → 1.2.0-converters.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +215 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +63 -0
- package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.json +56 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.json +24 -0
- package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.json +56 -0
- package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.json +19 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.json +80 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +4 -0
- package/artifacts/{contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.json → @openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.json} +5 -5
- package/artifacts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json +113 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.json +63 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/oracle/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/ResilientOracle.sol/ResilientOracle.json +649 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.json +40 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.json +30 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.json +75 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.json +49 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +4 -0
- package/artifacts/@venusprotocol/oracle/contracts/interfaces/VBep20Interface.sol/VBep20Interface.json +246 -0
- package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
- package/artifacts/build-info/d38b6776f8d2919af17221fcc74eb552.json +1 -0
- package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.json +56 -0
- package/artifacts/contracts/Interfaces/IConverterNetwork.sol/IConverterNetwork.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IConverterNetwork.sol/IConverterNetwork.json +127 -0
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IPoolRegistry.sol/IPoolRegistry.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IPoolRegistry.sol/IPoolRegistry.json +54 -0
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFund.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFund.json +77 -0
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFundGetters.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFundGetters.json +24 -0
- package/artifacts/contracts/Interfaces/IRiskFundConverter.sol/IRiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/{PoolRegistryInterface.sol/PoolRegistryInterface.json → IRiskFundConverter.sol/IRiskFundConverter.json} +23 -10
- package/artifacts/contracts/Interfaces/IShortfall.sol/IShortfall.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IShortfall.sol/IShortfall.json +24 -0
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IXVSVault.sol/IXVSVault.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IXVSVault.sol/IXVSVault.json +24 -0
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +16 -16
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/MaxLoopsLimitHelpersStorage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/MaxLoopsLimitHelpersStorage.json +24 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/ReserveHelpersStorage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/ReserveHelpersStorage.json +139 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV1Storage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV1Storage.json +178 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV2Storage.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV2Storage.json +191 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundV2.sol/RiskFundV2.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/RiskFundV2.sol/RiskFundV2.json +582 -0
- package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.json +315 -0
- package/artifacts/contracts/Test/Mocks/MockACM.sol/MockACM.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockACM.sol/MockACM.json +369 -0
- package/artifacts/contracts/Test/Mocks/MockArraySorter.sol/MockArraySorter.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockArraySorter.sol/MockArraySorter.json +40 -0
- package/artifacts/contracts/Test/Mocks/MockConverter.sol/MockConverter.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockConverter.sol/MockConverter.json +1395 -0
- package/artifacts/contracts/Test/Mocks/MockDeflationaryToken.sol/MockDeflatingToken.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockDeflationaryToken.sol/MockDeflatingToken.json +332 -0
- package/artifacts/contracts/Test/Mocks/MockRiskFundConverter.sol/MockRiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockRiskFundConverter.sol/MockRiskFundConverter.json +1761 -0
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.json +20 -2
- package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.json +1276 -0
- package/artifacts/contracts/TokenConverter/ConverterNetwork.sol/ConverterNetwork.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/ConverterNetwork.sol/ConverterNetwork.json +457 -0
- package/artifacts/contracts/TokenConverter/IAbstractTokenConverter.sol/IAbstractTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/IAbstractTokenConverter.sol/IAbstractTokenConverter.json +446 -0
- package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.json +1631 -0
- package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.dbg.json +4 -0
- package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.json +1390 -0
- package/contracts/Interfaces/IComptroller.sol +10 -0
- package/contracts/Interfaces/IConverterNetwork.sol +46 -0
- package/contracts/Interfaces/IPoolRegistry.sol +10 -0
- package/contracts/Interfaces/IRiskFund.sol +28 -0
- package/contracts/Interfaces/IRiskFundConverter.sol +8 -0
- package/contracts/Interfaces/IShortfall.sol +11 -0
- package/contracts/Interfaces/IXVSVault.sol +9 -0
- package/contracts/ProtocolReserve/ProtocolShareReserve.sol +14 -13
- package/contracts/ProtocolReserve/RiskFundStorage.sol +67 -0
- package/contracts/ProtocolReserve/RiskFundV2.sol +220 -0
- package/contracts/ProtocolReserve/XVSVaultTreasury.sol +95 -0
- package/contracts/Test/Mocks/MockACM.sol +94 -0
- package/contracts/Test/Mocks/MockArraySorter.sol +14 -0
- package/contracts/Test/Mocks/MockConverter.sol +70 -0
- package/contracts/Test/Mocks/MockDeflationaryToken.sol +113 -0
- package/contracts/Test/Mocks/MockRiskFundConverter.sol +45 -0
- package/contracts/Test/Mocks/MockToken.sol +4 -0
- package/contracts/Test/imports.sol +11 -0
- package/contracts/TokenConverter/AbstractTokenConverter.sol +1168 -0
- package/contracts/TokenConverter/ConverterNetwork.sol +243 -0
- package/contracts/TokenConverter/IAbstractTokenConverter.sol +178 -0
- package/contracts/TokenConverter/RiskFundConverter.sol +449 -0
- package/contracts/TokenConverter/SingleTokenConverter.sol +102 -0
- package/contracts/Utils/ArrayHelpers.sol +41 -0
- package/contracts/Utils/Constants.sol +8 -0
- package/contracts/Utils/Validators.sol +26 -0
- package/deployments/bscmainnet.json +2039 -0
- package/deployments/bscmainnet_addresses.json +10 -0
- package/deployments/bsctestnet/BTCBPrimeConverter.json +218 -0
- package/deployments/bsctestnet/ConverterNetwork.json +723 -0
- package/deployments/bsctestnet/ConverterNetwork_Implementation.json +823 -0
- package/deployments/bsctestnet/ConverterNetwork_Proxy.json +277 -0
- package/deployments/bsctestnet/ETHPrimeConverter.json +218 -0
- package/deployments/bsctestnet/ProtocolShareReserve_Implementation.json +79 -73
- package/deployments/bsctestnet/RiskFundConverter.json +2035 -0
- package/deployments/bsctestnet/RiskFundConverter_Implementation.json +2563 -0
- package/deployments/bsctestnet/RiskFundConverter_Proxy.json +403 -0
- package/deployments/bsctestnet/RiskFundV2_Implementation.json +1049 -0
- package/deployments/bsctestnet/SingleTokenConverterBeacon.json +206 -0
- package/deployments/bsctestnet/SingleTokenConverterImp.json +2164 -0
- package/deployments/bsctestnet/USDCPrimeConverter.json +218 -0
- package/deployments/bsctestnet/USDTPrimeConverter.json +218 -0
- package/deployments/bsctestnet/XVSVaultConverter.json +218 -0
- package/deployments/bsctestnet/XVSVaultTreasury.json +579 -0
- package/deployments/bsctestnet/XVSVaultTreasury_Implementation.json +603 -0
- package/deployments/bsctestnet/XVSVaultTreasury_Proxy.json +281 -0
- package/deployments/bsctestnet/solcInputs/5d85b28b6a601f301b9d986a9cab69e1.json +168 -0
- package/deployments/bsctestnet/solcInputs/ddce8674a6dbb661f5732619dd799a66.json +228 -0
- package/deployments/bsctestnet/solcInputs/f4de763d185e08f2949b0be700500ede.json +144 -0
- package/deployments/bsctestnet.json +10088 -0
- package/deployments/bsctestnet_addresses.json +27 -0
- package/deployments/ethereum.json +5 -0
- package/deployments/ethereum_addresses.json +5 -0
- package/deployments/sepolia.json +5 -0
- package/deployments/sepolia_addresses.json +5 -0
- package/dist/deploy/001-psr.d.ts +2 -0
- package/dist/deploy/001-psr.d.ts.map +1 -0
- package/dist/deploy/001-psr.js +68 -0
- package/dist/deploy/001-psr.js.map +1 -0
- package/dist/deploy/002-risk-fund-converter.d.ts +4 -0
- package/dist/deploy/002-risk-fund-converter.d.ts.map +1 -0
- package/dist/deploy/002-risk-fund-converter.js +80 -0
- package/dist/deploy/002-risk-fund-converter.js.map +1 -0
- package/dist/deploy/003-xvs-vault-teasury.d.ts +2 -0
- package/dist/deploy/003-xvs-vault-teasury.d.ts.map +1 -0
- package/dist/deploy/003-xvs-vault-teasury.js +43 -0
- package/dist/deploy/003-xvs-vault-teasury.js.map +1 -0
- package/dist/deploy/004-single-token-converter.d.ts +4 -0
- package/dist/deploy/004-single-token-converter.d.ts.map +1 -0
- package/dist/deploy/004-single-token-converter.js +62 -0
- package/dist/deploy/004-single-token-converter.js.map +1 -0
- package/dist/deploy/005-converter-network.d.ts +2 -0
- package/dist/deploy/005-converter-network.d.ts.map +1 -0
- package/dist/deploy/005-converter-network.js +41 -0
- package/dist/deploy/005-converter-network.js.map +1 -0
- package/dist/hardhat.config.d.ts +15 -0
- package/dist/hardhat.config.d.ts.map +1 -0
- package/dist/hardhat.config.js +216 -0
- package/dist/hardhat.config.js.map +1 -0
- package/package.json +23 -21
- package/typechain/AbstractTokenConverter.d.ts +1775 -0
- package/typechain/AccessControl.d.ts +388 -0
- package/typechain/BeaconProxy.d.ts +126 -0
- package/typechain/BoundValidatorInterface.d.ts +126 -0
- package/typechain/ConverterNetwork.d.ts +723 -0
- package/typechain/{PoolRegistryInterface.d.ts → ERC165.d.ts} +20 -25
- package/typechain/ERC1967Upgrade.d.ts +126 -0
- package/typechain/IAbstractTokenConverter.d.ts +773 -0
- package/typechain/IBeacon.d.ts +101 -0
- package/typechain/IComptroller.d.ts +136 -0
- package/typechain/IConverterNetwork.d.ts +292 -0
- package/typechain/IERC165.d.ts +116 -0
- package/typechain/{ComptrollerInterface.d.ts → IERC1822Proxiable.d.ts} +11 -11
- package/typechain/IERC1967.d.ts +126 -0
- package/typechain/IPoolRegistry.d.ts +155 -0
- package/typechain/IRiskFund.d.ts +200 -0
- package/typechain/IRiskFundConverter.d.ts +138 -0
- package/typechain/IRiskFundGetters.d.ts +103 -0
- package/typechain/IShortfall.d.ts +110 -0
- package/typechain/IXVSVault.d.ts +95 -0
- package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
- package/typechain/MockACM.d.ts +615 -0
- package/typechain/MockArraySorter.d.ts +118 -0
- package/typechain/MockConverter.d.ts +1969 -0
- package/typechain/MockDeflatingToken.d.ts +486 -0
- package/typechain/MockRiskFundConverter.d.ts +2479 -0
- package/typechain/MockToken.d.ts +36 -0
- package/typechain/OracleInterface.d.ts +98 -0
- package/typechain/Ownable.d.ts +181 -0
- package/typechain/PausableUpgradeable.d.ts +129 -0
- package/typechain/ProtocolShareReserve.d.ts +6 -6
- package/typechain/Proxy.d.ts +78 -0
- package/typechain/ReserveHelpersStorage.d.ts +300 -0
- package/typechain/ResilientOracle.d.ts +1034 -0
- package/typechain/ResilientOracleInterface.d.ts +192 -0
- package/typechain/RiskFundConverter.d.ts +2235 -0
- package/typechain/RiskFundV1Storage.d.ts +353 -0
- package/typechain/RiskFundV2.d.ts +893 -0
- package/typechain/RiskFundV2Storage.d.ts +372 -0
- package/typechain/SingleTokenConverter.d.ts +1944 -0
- package/typechain/TwapInterface.d.ts +124 -0
- package/typechain/UpgradeableBeacon.d.ts +240 -0
- package/typechain/VBep20Interface.d.ts +379 -0
- package/typechain/XVSVaultTreasury.d.ts +515 -0
- package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
- package/typechain/factories/AccessControl__factory.ts +227 -0
- package/typechain/factories/BeaconProxy__factory.ts +133 -0
- package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
- package/typechain/factories/ConverterNetwork__factory.ts +502 -0
- package/typechain/factories/ERC165__factory.ts +39 -0
- package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
- package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
- package/typechain/factories/IBeacon__factory.ts +36 -0
- package/typechain/factories/IComptroller__factory.ts +68 -0
- package/typechain/factories/IConverterNetwork__factory.ts +142 -0
- package/typechain/factories/{ComptrollerInterface__factory.ts → IERC165__factory.ts} +14 -15
- package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
- package/typechain/factories/IERC1967__factory.ts +68 -0
- package/typechain/factories/IPoolRegistry__factory.ts +66 -0
- package/typechain/factories/{PoolRegistryInterface__factory.ts → IRiskFundConverter__factory.ts} +28 -19
- package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
- package/typechain/factories/IRiskFund__factory.ts +89 -0
- package/typechain/factories/IShortfall__factory.ts +36 -0
- package/typechain/factories/IXVSVault__factory.ts +36 -0
- package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
- package/typechain/factories/MockACM__factory.ts +411 -0
- package/typechain/factories/MockArraySorter__factory.ts +85 -0
- package/typechain/factories/MockConverter__factory.ts +1439 -0
- package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
- package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
- package/typechain/factories/MockToken__factory.ts +19 -1
- package/typechain/factories/OracleInterface__factory.ts +45 -0
- package/typechain/factories/Ownable__factory.ts +75 -0
- package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
- package/typechain/factories/ProtocolShareReserve__factory.ts +15 -15
- package/typechain/factories/Proxy__factory.ts +28 -0
- package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
- package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
- package/typechain/factories/ResilientOracle__factory.ts +710 -0
- package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
- package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
- package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
- package/typechain/factories/RiskFundV2__factory.ts +624 -0
- package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
- package/typechain/factories/TwapInterface__factory.ts +61 -0
- package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
- package/typechain/factories/VBep20Interface__factory.ts +261 -0
- package/typechain/factories/XVSVaultTreasury__factory.ts +365 -0
- package/typechain/index.ts +84 -4
- package/artifacts/build-info/0bf08ffb3b10e68a2b3f4538fccc61c5.json +0 -1
- package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +0 -4
- package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +0 -4
- package/contracts/Interfaces/ComptrollerInterface.sol +0 -6
- package/contracts/Interfaces/PoolRegistryInterface.sol +0 -7
- package/deploy/1-deploy.ts +0 -64
|
@@ -0,0 +1,1441 @@
|
|
|
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
|
+
SingleTokenConverter,
|
|
9
|
+
SingleTokenConverterInterface,
|
|
10
|
+
} from "../SingleTokenConverter";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
stateMutability: "nonpayable",
|
|
16
|
+
type: "constructor",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "amountInMantissa",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "amountInMaxMantissa",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "AmountInHigherThanMax",
|
|
32
|
+
type: "error",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
inputs: [],
|
|
36
|
+
name: "AmountInMismatched",
|
|
37
|
+
type: "error",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
internalType: "uint256",
|
|
43
|
+
name: "amountOutMantissa",
|
|
44
|
+
type: "uint256",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint256",
|
|
48
|
+
name: "amountOutMinMantissa",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "AmountOutLowerThanMinRequired",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [],
|
|
57
|
+
name: "AmountOutMismatched",
|
|
58
|
+
type: "error",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
inputs: [],
|
|
62
|
+
name: "ConversionConfigNotEnabled",
|
|
63
|
+
type: "error",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
inputs: [],
|
|
67
|
+
name: "ConversionEnabledOnlyForPrivateConversions",
|
|
68
|
+
type: "error",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [],
|
|
72
|
+
name: "ConversionTokensActive",
|
|
73
|
+
type: "error",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [],
|
|
77
|
+
name: "ConversionTokensPaused",
|
|
78
|
+
type: "error",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
inputs: [],
|
|
82
|
+
name: "DeflationaryTokenNotSupported",
|
|
83
|
+
type: "error",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "incentive",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "maxIncentive",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "IncentiveTooHigh",
|
|
99
|
+
type: "error",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
inputs: [],
|
|
103
|
+
name: "InputLengthMisMatch",
|
|
104
|
+
type: "error",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [],
|
|
108
|
+
name: "InsufficientInputAmount",
|
|
109
|
+
type: "error",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [],
|
|
113
|
+
name: "InsufficientOutputAmount",
|
|
114
|
+
type: "error",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
inputs: [],
|
|
118
|
+
name: "InsufficientPoolLiquidity",
|
|
119
|
+
type: "error",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
inputs: [],
|
|
123
|
+
name: "InvalidConverterNetwork",
|
|
124
|
+
type: "error",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
inputs: [],
|
|
128
|
+
name: "InvalidMinimumAmountToConvert",
|
|
129
|
+
type: "error",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
inputs: [],
|
|
133
|
+
name: "InvalidToAddress",
|
|
134
|
+
type: "error",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
inputs: [],
|
|
138
|
+
name: "InvalidTokenConfigAddresses",
|
|
139
|
+
type: "error",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [],
|
|
143
|
+
name: "NonZeroIncentiveForPrivateConversion",
|
|
144
|
+
type: "error",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "sender",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "calledContract",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
internalType: "string",
|
|
160
|
+
name: "methodSignature",
|
|
161
|
+
type: "string",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "Unauthorized",
|
|
165
|
+
type: "error",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [],
|
|
169
|
+
name: "ZeroAddressNotAllowed",
|
|
170
|
+
type: "error",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
inputs: [],
|
|
174
|
+
name: "ZeroValueNotAllowed",
|
|
175
|
+
type: "error",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
anonymous: false,
|
|
179
|
+
inputs: [
|
|
180
|
+
{
|
|
181
|
+
indexed: true,
|
|
182
|
+
internalType: "address",
|
|
183
|
+
name: "receiver",
|
|
184
|
+
type: "address",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
indexed: true,
|
|
188
|
+
internalType: "address",
|
|
189
|
+
name: "comptroller",
|
|
190
|
+
type: "address",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
indexed: true,
|
|
194
|
+
internalType: "address",
|
|
195
|
+
name: "asset",
|
|
196
|
+
type: "address",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
indexed: false,
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "amount",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "AssetTransferredToDestination",
|
|
206
|
+
type: "event",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
anonymous: false,
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
indexed: true,
|
|
213
|
+
internalType: "address",
|
|
214
|
+
name: "oldBaseAsset",
|
|
215
|
+
type: "address",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
indexed: true,
|
|
219
|
+
internalType: "address",
|
|
220
|
+
name: "newBaseAsset",
|
|
221
|
+
type: "address",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
name: "BaseAssetUpdated",
|
|
225
|
+
type: "event",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
anonymous: false,
|
|
229
|
+
inputs: [
|
|
230
|
+
{
|
|
231
|
+
indexed: true,
|
|
232
|
+
internalType: "address",
|
|
233
|
+
name: "tokenAddressIn",
|
|
234
|
+
type: "address",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
indexed: true,
|
|
238
|
+
internalType: "address",
|
|
239
|
+
name: "tokenAddressOut",
|
|
240
|
+
type: "address",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
indexed: false,
|
|
244
|
+
internalType: "uint256",
|
|
245
|
+
name: "oldIncentive",
|
|
246
|
+
type: "uint256",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
indexed: false,
|
|
250
|
+
internalType: "uint256",
|
|
251
|
+
name: "newIncentive",
|
|
252
|
+
type: "uint256",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
indexed: false,
|
|
256
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
257
|
+
name: "oldAccess",
|
|
258
|
+
type: "uint8",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
indexed: false,
|
|
262
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
263
|
+
name: "newAccess",
|
|
264
|
+
type: "uint8",
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
name: "ConversionConfigUpdated",
|
|
268
|
+
type: "event",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
anonymous: false,
|
|
272
|
+
inputs: [
|
|
273
|
+
{
|
|
274
|
+
indexed: true,
|
|
275
|
+
internalType: "address",
|
|
276
|
+
name: "sender",
|
|
277
|
+
type: "address",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
name: "ConversionPaused",
|
|
281
|
+
type: "event",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
anonymous: false,
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
indexed: true,
|
|
288
|
+
internalType: "address",
|
|
289
|
+
name: "sender",
|
|
290
|
+
type: "address",
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
name: "ConversionResumed",
|
|
294
|
+
type: "event",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
anonymous: false,
|
|
298
|
+
inputs: [
|
|
299
|
+
{
|
|
300
|
+
indexed: true,
|
|
301
|
+
internalType: "address",
|
|
302
|
+
name: "sender",
|
|
303
|
+
type: "address",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
indexed: true,
|
|
307
|
+
internalType: "address",
|
|
308
|
+
name: "receiver",
|
|
309
|
+
type: "address",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
indexed: false,
|
|
313
|
+
internalType: "address",
|
|
314
|
+
name: "tokenAddressIn",
|
|
315
|
+
type: "address",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
indexed: true,
|
|
319
|
+
internalType: "address",
|
|
320
|
+
name: "tokenAddressOut",
|
|
321
|
+
type: "address",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
indexed: false,
|
|
325
|
+
internalType: "uint256",
|
|
326
|
+
name: "amountIn",
|
|
327
|
+
type: "uint256",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
indexed: false,
|
|
331
|
+
internalType: "uint256",
|
|
332
|
+
name: "amountOut",
|
|
333
|
+
type: "uint256",
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
name: "ConvertedExactTokens",
|
|
337
|
+
type: "event",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
anonymous: false,
|
|
341
|
+
inputs: [
|
|
342
|
+
{
|
|
343
|
+
indexed: true,
|
|
344
|
+
internalType: "address",
|
|
345
|
+
name: "sender",
|
|
346
|
+
type: "address",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
indexed: true,
|
|
350
|
+
internalType: "address",
|
|
351
|
+
name: "receiver",
|
|
352
|
+
type: "address",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
indexed: false,
|
|
356
|
+
internalType: "address",
|
|
357
|
+
name: "tokenAddressIn",
|
|
358
|
+
type: "address",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
indexed: true,
|
|
362
|
+
internalType: "address",
|
|
363
|
+
name: "tokenAddressOut",
|
|
364
|
+
type: "address",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
indexed: false,
|
|
368
|
+
internalType: "uint256",
|
|
369
|
+
name: "amountIn",
|
|
370
|
+
type: "uint256",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
indexed: false,
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
name: "amountOut",
|
|
376
|
+
type: "uint256",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
name: "ConvertedExactTokensSupportingFeeOnTransferTokens",
|
|
380
|
+
type: "event",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
anonymous: false,
|
|
384
|
+
inputs: [
|
|
385
|
+
{
|
|
386
|
+
indexed: true,
|
|
387
|
+
internalType: "address",
|
|
388
|
+
name: "sender",
|
|
389
|
+
type: "address",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
indexed: true,
|
|
393
|
+
internalType: "address",
|
|
394
|
+
name: "receiver",
|
|
395
|
+
type: "address",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
indexed: false,
|
|
399
|
+
internalType: "address",
|
|
400
|
+
name: "tokenAddressIn",
|
|
401
|
+
type: "address",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
indexed: true,
|
|
405
|
+
internalType: "address",
|
|
406
|
+
name: "tokenAddressOut",
|
|
407
|
+
type: "address",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
indexed: false,
|
|
411
|
+
internalType: "uint256",
|
|
412
|
+
name: "amountIn",
|
|
413
|
+
type: "uint256",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
indexed: false,
|
|
417
|
+
internalType: "uint256",
|
|
418
|
+
name: "amountOut",
|
|
419
|
+
type: "uint256",
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
name: "ConvertedForExactTokens",
|
|
423
|
+
type: "event",
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
anonymous: false,
|
|
427
|
+
inputs: [
|
|
428
|
+
{
|
|
429
|
+
indexed: true,
|
|
430
|
+
internalType: "address",
|
|
431
|
+
name: "sender",
|
|
432
|
+
type: "address",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
indexed: true,
|
|
436
|
+
internalType: "address",
|
|
437
|
+
name: "receiver",
|
|
438
|
+
type: "address",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
indexed: false,
|
|
442
|
+
internalType: "address",
|
|
443
|
+
name: "tokenAddressIn",
|
|
444
|
+
type: "address",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
indexed: true,
|
|
448
|
+
internalType: "address",
|
|
449
|
+
name: "tokenAddressOut",
|
|
450
|
+
type: "address",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
indexed: false,
|
|
454
|
+
internalType: "uint256",
|
|
455
|
+
name: "amountIn",
|
|
456
|
+
type: "uint256",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
indexed: false,
|
|
460
|
+
internalType: "uint256",
|
|
461
|
+
name: "amountOut",
|
|
462
|
+
type: "uint256",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
name: "ConvertedForExactTokensSupportingFeeOnTransferTokens",
|
|
466
|
+
type: "event",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
anonymous: false,
|
|
470
|
+
inputs: [
|
|
471
|
+
{
|
|
472
|
+
indexed: true,
|
|
473
|
+
internalType: "address",
|
|
474
|
+
name: "oldConverterNetwork",
|
|
475
|
+
type: "address",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
indexed: true,
|
|
479
|
+
internalType: "address",
|
|
480
|
+
name: "converterNetwork",
|
|
481
|
+
type: "address",
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
name: "ConverterNetworkAddressUpdated",
|
|
485
|
+
type: "event",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
anonymous: false,
|
|
489
|
+
inputs: [
|
|
490
|
+
{
|
|
491
|
+
indexed: true,
|
|
492
|
+
internalType: "address",
|
|
493
|
+
name: "oldDestinationAddress",
|
|
494
|
+
type: "address",
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
indexed: true,
|
|
498
|
+
internalType: "address",
|
|
499
|
+
name: "destinationAddress",
|
|
500
|
+
type: "address",
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
name: "DestinationAddressUpdated",
|
|
504
|
+
type: "event",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
anonymous: false,
|
|
508
|
+
inputs: [
|
|
509
|
+
{
|
|
510
|
+
indexed: false,
|
|
511
|
+
internalType: "uint8",
|
|
512
|
+
name: "version",
|
|
513
|
+
type: "uint8",
|
|
514
|
+
},
|
|
515
|
+
],
|
|
516
|
+
name: "Initialized",
|
|
517
|
+
type: "event",
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
anonymous: false,
|
|
521
|
+
inputs: [
|
|
522
|
+
{
|
|
523
|
+
indexed: false,
|
|
524
|
+
internalType: "uint256",
|
|
525
|
+
name: "oldMinAmountToConvert",
|
|
526
|
+
type: "uint256",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
indexed: false,
|
|
530
|
+
internalType: "uint256",
|
|
531
|
+
name: "newMinAmountToConvert",
|
|
532
|
+
type: "uint256",
|
|
533
|
+
},
|
|
534
|
+
],
|
|
535
|
+
name: "MinAmountToConvertUpdated",
|
|
536
|
+
type: "event",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
anonymous: false,
|
|
540
|
+
inputs: [
|
|
541
|
+
{
|
|
542
|
+
indexed: false,
|
|
543
|
+
internalType: "address",
|
|
544
|
+
name: "oldAccessControlManager",
|
|
545
|
+
type: "address",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
indexed: false,
|
|
549
|
+
internalType: "address",
|
|
550
|
+
name: "newAccessControlManager",
|
|
551
|
+
type: "address",
|
|
552
|
+
},
|
|
553
|
+
],
|
|
554
|
+
name: "NewAccessControlManager",
|
|
555
|
+
type: "event",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
anonymous: false,
|
|
559
|
+
inputs: [
|
|
560
|
+
{
|
|
561
|
+
indexed: true,
|
|
562
|
+
internalType: "address",
|
|
563
|
+
name: "previousOwner",
|
|
564
|
+
type: "address",
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
indexed: true,
|
|
568
|
+
internalType: "address",
|
|
569
|
+
name: "newOwner",
|
|
570
|
+
type: "address",
|
|
571
|
+
},
|
|
572
|
+
],
|
|
573
|
+
name: "OwnershipTransferStarted",
|
|
574
|
+
type: "event",
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
anonymous: false,
|
|
578
|
+
inputs: [
|
|
579
|
+
{
|
|
580
|
+
indexed: true,
|
|
581
|
+
internalType: "address",
|
|
582
|
+
name: "previousOwner",
|
|
583
|
+
type: "address",
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
indexed: true,
|
|
587
|
+
internalType: "address",
|
|
588
|
+
name: "newOwner",
|
|
589
|
+
type: "address",
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
name: "OwnershipTransferred",
|
|
593
|
+
type: "event",
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
anonymous: false,
|
|
597
|
+
inputs: [
|
|
598
|
+
{
|
|
599
|
+
indexed: true,
|
|
600
|
+
internalType: "contract ResilientOracle",
|
|
601
|
+
name: "oldPriceOracle",
|
|
602
|
+
type: "address",
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
indexed: true,
|
|
606
|
+
internalType: "contract ResilientOracle",
|
|
607
|
+
name: "priceOracle",
|
|
608
|
+
type: "address",
|
|
609
|
+
},
|
|
610
|
+
],
|
|
611
|
+
name: "PriceOracleUpdated",
|
|
612
|
+
type: "event",
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
anonymous: false,
|
|
616
|
+
inputs: [
|
|
617
|
+
{
|
|
618
|
+
indexed: true,
|
|
619
|
+
internalType: "address",
|
|
620
|
+
name: "token",
|
|
621
|
+
type: "address",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
indexed: true,
|
|
625
|
+
internalType: "address",
|
|
626
|
+
name: "to",
|
|
627
|
+
type: "address",
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
indexed: false,
|
|
631
|
+
internalType: "uint256",
|
|
632
|
+
name: "amount",
|
|
633
|
+
type: "uint256",
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
name: "SweepToken",
|
|
637
|
+
type: "event",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
inputs: [],
|
|
641
|
+
name: "MAX_INCENTIVE",
|
|
642
|
+
outputs: [
|
|
643
|
+
{
|
|
644
|
+
internalType: "uint256",
|
|
645
|
+
name: "",
|
|
646
|
+
type: "uint256",
|
|
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: "tokenBalance",
|
|
685
|
+
type: "uint256",
|
|
686
|
+
},
|
|
687
|
+
],
|
|
688
|
+
stateMutability: "view",
|
|
689
|
+
type: "function",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
inputs: [],
|
|
693
|
+
name: "baseAsset",
|
|
694
|
+
outputs: [
|
|
695
|
+
{
|
|
696
|
+
internalType: "address",
|
|
697
|
+
name: "",
|
|
698
|
+
type: "address",
|
|
699
|
+
},
|
|
700
|
+
],
|
|
701
|
+
stateMutability: "view",
|
|
702
|
+
type: "function",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
inputs: [
|
|
706
|
+
{
|
|
707
|
+
internalType: "address",
|
|
708
|
+
name: "",
|
|
709
|
+
type: "address",
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
internalType: "address",
|
|
713
|
+
name: "",
|
|
714
|
+
type: "address",
|
|
715
|
+
},
|
|
716
|
+
],
|
|
717
|
+
name: "conversionConfigurations",
|
|
718
|
+
outputs: [
|
|
719
|
+
{
|
|
720
|
+
internalType: "uint256",
|
|
721
|
+
name: "incentive",
|
|
722
|
+
type: "uint256",
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
726
|
+
name: "conversionAccess",
|
|
727
|
+
type: "uint8",
|
|
728
|
+
},
|
|
729
|
+
],
|
|
730
|
+
stateMutability: "view",
|
|
731
|
+
type: "function",
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
inputs: [],
|
|
735
|
+
name: "conversionPaused",
|
|
736
|
+
outputs: [
|
|
737
|
+
{
|
|
738
|
+
internalType: "bool",
|
|
739
|
+
name: "",
|
|
740
|
+
type: "bool",
|
|
741
|
+
},
|
|
742
|
+
],
|
|
743
|
+
stateMutability: "view",
|
|
744
|
+
type: "function",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
inputs: [
|
|
748
|
+
{
|
|
749
|
+
internalType: "uint256",
|
|
750
|
+
name: "amountInMantissa",
|
|
751
|
+
type: "uint256",
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
internalType: "uint256",
|
|
755
|
+
name: "amountOutMinMantissa",
|
|
756
|
+
type: "uint256",
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
internalType: "address",
|
|
760
|
+
name: "tokenAddressIn",
|
|
761
|
+
type: "address",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
internalType: "address",
|
|
765
|
+
name: "tokenAddressOut",
|
|
766
|
+
type: "address",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
internalType: "address",
|
|
770
|
+
name: "to",
|
|
771
|
+
type: "address",
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
name: "convertExactTokens",
|
|
775
|
+
outputs: [
|
|
776
|
+
{
|
|
777
|
+
internalType: "uint256",
|
|
778
|
+
name: "actualAmountIn",
|
|
779
|
+
type: "uint256",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
internalType: "uint256",
|
|
783
|
+
name: "actualAmountOut",
|
|
784
|
+
type: "uint256",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
stateMutability: "nonpayable",
|
|
788
|
+
type: "function",
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
inputs: [
|
|
792
|
+
{
|
|
793
|
+
internalType: "uint256",
|
|
794
|
+
name: "amountInMantissa",
|
|
795
|
+
type: "uint256",
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
internalType: "uint256",
|
|
799
|
+
name: "amountOutMinMantissa",
|
|
800
|
+
type: "uint256",
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
internalType: "address",
|
|
804
|
+
name: "tokenAddressIn",
|
|
805
|
+
type: "address",
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
internalType: "address",
|
|
809
|
+
name: "tokenAddressOut",
|
|
810
|
+
type: "address",
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
internalType: "address",
|
|
814
|
+
name: "to",
|
|
815
|
+
type: "address",
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
name: "convertExactTokensSupportingFeeOnTransferTokens",
|
|
819
|
+
outputs: [
|
|
820
|
+
{
|
|
821
|
+
internalType: "uint256",
|
|
822
|
+
name: "actualAmountIn",
|
|
823
|
+
type: "uint256",
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
internalType: "uint256",
|
|
827
|
+
name: "actualAmountOut",
|
|
828
|
+
type: "uint256",
|
|
829
|
+
},
|
|
830
|
+
],
|
|
831
|
+
stateMutability: "nonpayable",
|
|
832
|
+
type: "function",
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
inputs: [
|
|
836
|
+
{
|
|
837
|
+
internalType: "uint256",
|
|
838
|
+
name: "amountInMaxMantissa",
|
|
839
|
+
type: "uint256",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
internalType: "uint256",
|
|
843
|
+
name: "amountOutMantissa",
|
|
844
|
+
type: "uint256",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
internalType: "address",
|
|
848
|
+
name: "tokenAddressIn",
|
|
849
|
+
type: "address",
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
internalType: "address",
|
|
853
|
+
name: "tokenAddressOut",
|
|
854
|
+
type: "address",
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
internalType: "address",
|
|
858
|
+
name: "to",
|
|
859
|
+
type: "address",
|
|
860
|
+
},
|
|
861
|
+
],
|
|
862
|
+
name: "convertForExactTokens",
|
|
863
|
+
outputs: [
|
|
864
|
+
{
|
|
865
|
+
internalType: "uint256",
|
|
866
|
+
name: "actualAmountIn",
|
|
867
|
+
type: "uint256",
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
internalType: "uint256",
|
|
871
|
+
name: "actualAmountOut",
|
|
872
|
+
type: "uint256",
|
|
873
|
+
},
|
|
874
|
+
],
|
|
875
|
+
stateMutability: "nonpayable",
|
|
876
|
+
type: "function",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
inputs: [
|
|
880
|
+
{
|
|
881
|
+
internalType: "uint256",
|
|
882
|
+
name: "amountInMaxMantissa",
|
|
883
|
+
type: "uint256",
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
internalType: "uint256",
|
|
887
|
+
name: "amountOutMantissa",
|
|
888
|
+
type: "uint256",
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
internalType: "address",
|
|
892
|
+
name: "tokenAddressIn",
|
|
893
|
+
type: "address",
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
internalType: "address",
|
|
897
|
+
name: "tokenAddressOut",
|
|
898
|
+
type: "address",
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
internalType: "address",
|
|
902
|
+
name: "to",
|
|
903
|
+
type: "address",
|
|
904
|
+
},
|
|
905
|
+
],
|
|
906
|
+
name: "convertForExactTokensSupportingFeeOnTransferTokens",
|
|
907
|
+
outputs: [
|
|
908
|
+
{
|
|
909
|
+
internalType: "uint256",
|
|
910
|
+
name: "actualAmountIn",
|
|
911
|
+
type: "uint256",
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
internalType: "uint256",
|
|
915
|
+
name: "actualAmountOut",
|
|
916
|
+
type: "uint256",
|
|
917
|
+
},
|
|
918
|
+
],
|
|
919
|
+
stateMutability: "nonpayable",
|
|
920
|
+
type: "function",
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
inputs: [],
|
|
924
|
+
name: "converterNetwork",
|
|
925
|
+
outputs: [
|
|
926
|
+
{
|
|
927
|
+
internalType: "contract IConverterNetwork",
|
|
928
|
+
name: "",
|
|
929
|
+
type: "address",
|
|
930
|
+
},
|
|
931
|
+
],
|
|
932
|
+
stateMutability: "view",
|
|
933
|
+
type: "function",
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
inputs: [],
|
|
937
|
+
name: "destinationAddress",
|
|
938
|
+
outputs: [
|
|
939
|
+
{
|
|
940
|
+
internalType: "address",
|
|
941
|
+
name: "",
|
|
942
|
+
type: "address",
|
|
943
|
+
},
|
|
944
|
+
],
|
|
945
|
+
stateMutability: "view",
|
|
946
|
+
type: "function",
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
inputs: [
|
|
950
|
+
{
|
|
951
|
+
internalType: "uint256",
|
|
952
|
+
name: "amountOutMantissa",
|
|
953
|
+
type: "uint256",
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
internalType: "address",
|
|
957
|
+
name: "tokenAddressIn",
|
|
958
|
+
type: "address",
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
internalType: "address",
|
|
962
|
+
name: "tokenAddressOut",
|
|
963
|
+
type: "address",
|
|
964
|
+
},
|
|
965
|
+
],
|
|
966
|
+
name: "getAmountIn",
|
|
967
|
+
outputs: [
|
|
968
|
+
{
|
|
969
|
+
internalType: "uint256",
|
|
970
|
+
name: "amountConvertedMantissa",
|
|
971
|
+
type: "uint256",
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
internalType: "uint256",
|
|
975
|
+
name: "amountInMantissa",
|
|
976
|
+
type: "uint256",
|
|
977
|
+
},
|
|
978
|
+
],
|
|
979
|
+
stateMutability: "view",
|
|
980
|
+
type: "function",
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
inputs: [
|
|
984
|
+
{
|
|
985
|
+
internalType: "uint256",
|
|
986
|
+
name: "amountInMantissa",
|
|
987
|
+
type: "uint256",
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
internalType: "address",
|
|
991
|
+
name: "tokenAddressIn",
|
|
992
|
+
type: "address",
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
internalType: "address",
|
|
996
|
+
name: "tokenAddressOut",
|
|
997
|
+
type: "address",
|
|
998
|
+
},
|
|
999
|
+
],
|
|
1000
|
+
name: "getAmountOut",
|
|
1001
|
+
outputs: [
|
|
1002
|
+
{
|
|
1003
|
+
internalType: "uint256",
|
|
1004
|
+
name: "amountConvertedMantissa",
|
|
1005
|
+
type: "uint256",
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
internalType: "uint256",
|
|
1009
|
+
name: "amountOutMantissa",
|
|
1010
|
+
type: "uint256",
|
|
1011
|
+
},
|
|
1012
|
+
],
|
|
1013
|
+
stateMutability: "view",
|
|
1014
|
+
type: "function",
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
inputs: [
|
|
1018
|
+
{
|
|
1019
|
+
internalType: "uint256",
|
|
1020
|
+
name: "amountOutMantissa",
|
|
1021
|
+
type: "uint256",
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
internalType: "address",
|
|
1025
|
+
name: "tokenAddressIn",
|
|
1026
|
+
type: "address",
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
internalType: "address",
|
|
1030
|
+
name: "tokenAddressOut",
|
|
1031
|
+
type: "address",
|
|
1032
|
+
},
|
|
1033
|
+
],
|
|
1034
|
+
name: "getUpdatedAmountIn",
|
|
1035
|
+
outputs: [
|
|
1036
|
+
{
|
|
1037
|
+
internalType: "uint256",
|
|
1038
|
+
name: "amountConvertedMantissa",
|
|
1039
|
+
type: "uint256",
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
internalType: "uint256",
|
|
1043
|
+
name: "amountInMantissa",
|
|
1044
|
+
type: "uint256",
|
|
1045
|
+
},
|
|
1046
|
+
],
|
|
1047
|
+
stateMutability: "nonpayable",
|
|
1048
|
+
type: "function",
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
inputs: [
|
|
1052
|
+
{
|
|
1053
|
+
internalType: "uint256",
|
|
1054
|
+
name: "amountInMantissa",
|
|
1055
|
+
type: "uint256",
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
internalType: "address",
|
|
1059
|
+
name: "tokenAddressIn",
|
|
1060
|
+
type: "address",
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
internalType: "address",
|
|
1064
|
+
name: "tokenAddressOut",
|
|
1065
|
+
type: "address",
|
|
1066
|
+
},
|
|
1067
|
+
],
|
|
1068
|
+
name: "getUpdatedAmountOut",
|
|
1069
|
+
outputs: [
|
|
1070
|
+
{
|
|
1071
|
+
internalType: "uint256",
|
|
1072
|
+
name: "amountConvertedMantissa",
|
|
1073
|
+
type: "uint256",
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
internalType: "uint256",
|
|
1077
|
+
name: "amountOutMantissa",
|
|
1078
|
+
type: "uint256",
|
|
1079
|
+
},
|
|
1080
|
+
],
|
|
1081
|
+
stateMutability: "nonpayable",
|
|
1082
|
+
type: "function",
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
inputs: [
|
|
1086
|
+
{
|
|
1087
|
+
internalType: "address",
|
|
1088
|
+
name: "accessControlManager_",
|
|
1089
|
+
type: "address",
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
internalType: "contract ResilientOracle",
|
|
1093
|
+
name: "priceOracle_",
|
|
1094
|
+
type: "address",
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
internalType: "address",
|
|
1098
|
+
name: "destinationAddress_",
|
|
1099
|
+
type: "address",
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
internalType: "address",
|
|
1103
|
+
name: "baseAsset_",
|
|
1104
|
+
type: "address",
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
internalType: "uint256",
|
|
1108
|
+
name: "minAmountToConvert_",
|
|
1109
|
+
type: "uint256",
|
|
1110
|
+
},
|
|
1111
|
+
],
|
|
1112
|
+
name: "initialize",
|
|
1113
|
+
outputs: [],
|
|
1114
|
+
stateMutability: "nonpayable",
|
|
1115
|
+
type: "function",
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
inputs: [],
|
|
1119
|
+
name: "minAmountToConvert",
|
|
1120
|
+
outputs: [
|
|
1121
|
+
{
|
|
1122
|
+
internalType: "uint256",
|
|
1123
|
+
name: "",
|
|
1124
|
+
type: "uint256",
|
|
1125
|
+
},
|
|
1126
|
+
],
|
|
1127
|
+
stateMutability: "view",
|
|
1128
|
+
type: "function",
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
inputs: [],
|
|
1132
|
+
name: "owner",
|
|
1133
|
+
outputs: [
|
|
1134
|
+
{
|
|
1135
|
+
internalType: "address",
|
|
1136
|
+
name: "",
|
|
1137
|
+
type: "address",
|
|
1138
|
+
},
|
|
1139
|
+
],
|
|
1140
|
+
stateMutability: "view",
|
|
1141
|
+
type: "function",
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
inputs: [],
|
|
1145
|
+
name: "pauseConversion",
|
|
1146
|
+
outputs: [],
|
|
1147
|
+
stateMutability: "nonpayable",
|
|
1148
|
+
type: "function",
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
inputs: [],
|
|
1152
|
+
name: "pendingOwner",
|
|
1153
|
+
outputs: [
|
|
1154
|
+
{
|
|
1155
|
+
internalType: "address",
|
|
1156
|
+
name: "",
|
|
1157
|
+
type: "address",
|
|
1158
|
+
},
|
|
1159
|
+
],
|
|
1160
|
+
stateMutability: "view",
|
|
1161
|
+
type: "function",
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
inputs: [],
|
|
1165
|
+
name: "priceOracle",
|
|
1166
|
+
outputs: [
|
|
1167
|
+
{
|
|
1168
|
+
internalType: "contract ResilientOracle",
|
|
1169
|
+
name: "",
|
|
1170
|
+
type: "address",
|
|
1171
|
+
},
|
|
1172
|
+
],
|
|
1173
|
+
stateMutability: "view",
|
|
1174
|
+
type: "function",
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
inputs: [],
|
|
1178
|
+
name: "renounceOwnership",
|
|
1179
|
+
outputs: [],
|
|
1180
|
+
stateMutability: "nonpayable",
|
|
1181
|
+
type: "function",
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
inputs: [],
|
|
1185
|
+
name: "resumeConversion",
|
|
1186
|
+
outputs: [],
|
|
1187
|
+
stateMutability: "nonpayable",
|
|
1188
|
+
type: "function",
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
inputs: [
|
|
1192
|
+
{
|
|
1193
|
+
internalType: "address",
|
|
1194
|
+
name: "accessControlManager_",
|
|
1195
|
+
type: "address",
|
|
1196
|
+
},
|
|
1197
|
+
],
|
|
1198
|
+
name: "setAccessControlManager",
|
|
1199
|
+
outputs: [],
|
|
1200
|
+
stateMutability: "nonpayable",
|
|
1201
|
+
type: "function",
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
inputs: [
|
|
1205
|
+
{
|
|
1206
|
+
internalType: "address",
|
|
1207
|
+
name: "baseAsset_",
|
|
1208
|
+
type: "address",
|
|
1209
|
+
},
|
|
1210
|
+
],
|
|
1211
|
+
name: "setBaseAsset",
|
|
1212
|
+
outputs: [],
|
|
1213
|
+
stateMutability: "nonpayable",
|
|
1214
|
+
type: "function",
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
inputs: [
|
|
1218
|
+
{
|
|
1219
|
+
internalType: "address",
|
|
1220
|
+
name: "tokenAddressIn",
|
|
1221
|
+
type: "address",
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
internalType: "address",
|
|
1225
|
+
name: "tokenAddressOut",
|
|
1226
|
+
type: "address",
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
components: [
|
|
1230
|
+
{
|
|
1231
|
+
internalType: "uint256",
|
|
1232
|
+
name: "incentive",
|
|
1233
|
+
type: "uint256",
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
internalType:
|
|
1237
|
+
"enum IAbstractTokenConverter.ConversionAccessibility",
|
|
1238
|
+
name: "conversionAccess",
|
|
1239
|
+
type: "uint8",
|
|
1240
|
+
},
|
|
1241
|
+
],
|
|
1242
|
+
internalType: "struct IAbstractTokenConverter.ConversionConfig",
|
|
1243
|
+
name: "conversionConfig",
|
|
1244
|
+
type: "tuple",
|
|
1245
|
+
},
|
|
1246
|
+
],
|
|
1247
|
+
name: "setConversionConfig",
|
|
1248
|
+
outputs: [],
|
|
1249
|
+
stateMutability: "nonpayable",
|
|
1250
|
+
type: "function",
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
inputs: [
|
|
1254
|
+
{
|
|
1255
|
+
internalType: "address",
|
|
1256
|
+
name: "tokenAddressIn",
|
|
1257
|
+
type: "address",
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
internalType: "address[]",
|
|
1261
|
+
name: "tokenAddressesOut",
|
|
1262
|
+
type: "address[]",
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
components: [
|
|
1266
|
+
{
|
|
1267
|
+
internalType: "uint256",
|
|
1268
|
+
name: "incentive",
|
|
1269
|
+
type: "uint256",
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
internalType:
|
|
1273
|
+
"enum IAbstractTokenConverter.ConversionAccessibility",
|
|
1274
|
+
name: "conversionAccess",
|
|
1275
|
+
type: "uint8",
|
|
1276
|
+
},
|
|
1277
|
+
],
|
|
1278
|
+
internalType: "struct IAbstractTokenConverter.ConversionConfig[]",
|
|
1279
|
+
name: "conversionConfigs",
|
|
1280
|
+
type: "tuple[]",
|
|
1281
|
+
},
|
|
1282
|
+
],
|
|
1283
|
+
name: "setConversionConfigs",
|
|
1284
|
+
outputs: [],
|
|
1285
|
+
stateMutability: "nonpayable",
|
|
1286
|
+
type: "function",
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
inputs: [
|
|
1290
|
+
{
|
|
1291
|
+
internalType: "contract IConverterNetwork",
|
|
1292
|
+
name: "converterNetwork_",
|
|
1293
|
+
type: "address",
|
|
1294
|
+
},
|
|
1295
|
+
],
|
|
1296
|
+
name: "setConverterNetwork",
|
|
1297
|
+
outputs: [],
|
|
1298
|
+
stateMutability: "nonpayable",
|
|
1299
|
+
type: "function",
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
inputs: [
|
|
1303
|
+
{
|
|
1304
|
+
internalType: "address",
|
|
1305
|
+
name: "destinationAddress_",
|
|
1306
|
+
type: "address",
|
|
1307
|
+
},
|
|
1308
|
+
],
|
|
1309
|
+
name: "setDestination",
|
|
1310
|
+
outputs: [],
|
|
1311
|
+
stateMutability: "nonpayable",
|
|
1312
|
+
type: "function",
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
inputs: [
|
|
1316
|
+
{
|
|
1317
|
+
internalType: "uint256",
|
|
1318
|
+
name: "minAmountToConvert_",
|
|
1319
|
+
type: "uint256",
|
|
1320
|
+
},
|
|
1321
|
+
],
|
|
1322
|
+
name: "setMinAmountToConvert",
|
|
1323
|
+
outputs: [],
|
|
1324
|
+
stateMutability: "nonpayable",
|
|
1325
|
+
type: "function",
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
inputs: [
|
|
1329
|
+
{
|
|
1330
|
+
internalType: "contract ResilientOracle",
|
|
1331
|
+
name: "priceOracle_",
|
|
1332
|
+
type: "address",
|
|
1333
|
+
},
|
|
1334
|
+
],
|
|
1335
|
+
name: "setPriceOracle",
|
|
1336
|
+
outputs: [],
|
|
1337
|
+
stateMutability: "nonpayable",
|
|
1338
|
+
type: "function",
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
inputs: [
|
|
1342
|
+
{
|
|
1343
|
+
internalType: "address",
|
|
1344
|
+
name: "tokenAddress",
|
|
1345
|
+
type: "address",
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
internalType: "address",
|
|
1349
|
+
name: "to",
|
|
1350
|
+
type: "address",
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
internalType: "uint256",
|
|
1354
|
+
name: "amount",
|
|
1355
|
+
type: "uint256",
|
|
1356
|
+
},
|
|
1357
|
+
],
|
|
1358
|
+
name: "sweepToken",
|
|
1359
|
+
outputs: [],
|
|
1360
|
+
stateMutability: "nonpayable",
|
|
1361
|
+
type: "function",
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
inputs: [
|
|
1365
|
+
{
|
|
1366
|
+
internalType: "address",
|
|
1367
|
+
name: "newOwner",
|
|
1368
|
+
type: "address",
|
|
1369
|
+
},
|
|
1370
|
+
],
|
|
1371
|
+
name: "transferOwnership",
|
|
1372
|
+
outputs: [],
|
|
1373
|
+
stateMutability: "nonpayable",
|
|
1374
|
+
type: "function",
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
inputs: [
|
|
1378
|
+
{
|
|
1379
|
+
internalType: "address",
|
|
1380
|
+
name: "comptroller",
|
|
1381
|
+
type: "address",
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
internalType: "address",
|
|
1385
|
+
name: "asset",
|
|
1386
|
+
type: "address",
|
|
1387
|
+
},
|
|
1388
|
+
],
|
|
1389
|
+
name: "updateAssetsState",
|
|
1390
|
+
outputs: [],
|
|
1391
|
+
stateMutability: "nonpayable",
|
|
1392
|
+
type: "function",
|
|
1393
|
+
},
|
|
1394
|
+
];
|
|
1395
|
+
|
|
1396
|
+
const _bytecode =
|
|
1397
|
+
"0x60806040523480156200001157600080fd5b506200001c62000022565b620000e3565b600054610100900460ff16156200008f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e1576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6140c180620000f36000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c806379ba509711610145578063ca325469116100bd578063f04c31871161008c578063f2fde38b11610071578063f2fde38b14610533578063f7013ef614610546578063fe3da9841461055957600080fd5b8063f04c31871461050d578063f0dc7e9d1461052057600080fd5b8063ca325469146104c6578063cdf456e1146104d9578063e2ff7ea2146104ed578063e30c3978146104fc57600080fd5b8063b491ddf711610114578063b6828c57116100f9578063b6828c5714610498578063bc368b04146104ab578063c0654646146104b357600080fd5b8063b491ddf714610444578063b4a0bdf31461048757600080fd5b806379ba5097146104055780638da5cb5b1461040d57806390fa7b541461041e578063aac59a751461043157600080fd5b8063530e784f116101d85780636daa463b116101a757806370a082311161018c57806370a08231146103c9578063715018a6146103ea578063746460a9146103f257600080fd5b80636daa463b146103a35780636f1a30a8146103b657600080fd5b8063530e784f1461036257806358b904df146103755780635e1e63251461037d57806364aff9ec1461039057600080fd5b80630e32cb861161022f5780633606b26c116102145780633606b26c14610329578063439727a51461033c57806352e21a181461034f57600080fd5b80630e32cb86146103035780632630c12f1461031657600080fd5b806301e201781461026157806307aa239e146102915780630a0a05e6146102c65780630a9a2b72146102db575b600080fd5b60ff54610274906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b60fe546102b69074010000000000000000000000000000000000000000900460ff1681565b6040519015158152602001610288565b6102d96102d4366004613837565b610562565b005b6102ee6102e9366004613854565b610576565b60408051928352602083019190915201610288565b6102d9610311366004613837565b61065d565b60fc54610274906001600160a01b031681565b6102d9610337366004613837565b61066e565b6102ee61034a366004613896565b61067f565b6102d961035d366004613837565b6107bd565b6102d9610370366004613837565b6107ce565b6102d96107df565b6102ee61038b366004613854565b6108c5565b6102d961039e3660046138f5565b6109a8565b6102ee6103b1366004613854565b610a45565b6102ee6103c4366004613854565b610b4e565b6103dc6103d7366004613837565b610c4d565b604051908152602001610288565b6102d9610cda565b6102d9610400366004613936565b610cee565b6102d9610d35565b6033546001600160a01b0316610274565b6102ee61042c366004613896565b610dc5565b6102d961043f36600461394f565b610eaf565b61047961045236600461394f565b60fd6020908152600092835260408084209091529082529020805460019091015460ff1682565b6040516102889291906139f2565b6097546001600160a01b0316610274565b6102ee6104a6366004613896565b610ee5565b6102d9610fcf565b6102d96104c1366004613a52565b611081565b60fe54610274906001600160a01b031681565b61012d54610274906001600160a01b031681565b6103dc6706f05b59d3b2000081565b6065546001600160a01b0316610274565b6102ee61051b366004613896565b61111f565b6102d961052e366004613b06565b611242565b6102d9610541366004613837565b6115e1565b6102d9610554366004613b77565b61166a565b6103dc60fb5481565b61056a6117f4565b6105738161184e565b50565b60008060026001600160a01b03808616600090815260fd602090815260408083209388168352929052206001015460ff1660038111156105b8576105b8613988565b036105ef576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84915060006105ff8686866118cb565b9092509050600061060f85610c4d565b905086811015610653578160018161062f670de0b6b3a764000085613c0a565b6106399190613c47565b6106439190613c5f565b61064d9190613c76565b92508093505b5050935093915050565b6106656117f4565b61057381611bef565b6106766117f4565b61057381611ce4565b60008082858561068d611d63565b61069683611db8565b816001600160a01b0316836001600160a01b031614806106c75750806001600160a01b0316836001600160a01b0316145b156106fe576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610706611df8565b6107138a8a8a8a8a611e51565b9095509350898514610751576040517fc214279600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516001600160a01b038a81168252602082018890529181018690528189169188169033907f795a235be939acb902ac69562805f86e1341a9b019c351b996e2aa2dfc34c67c906060015b60405180910390a46107b0600160c955565b5050509550959350505050565b6107c56117f4565b61057381611ed8565b6107d66117f4565b61057381611f55565b61081d6040518060400160405280601281526020017f726573756d65436f6e76657273696f6e28290000000000000000000000000000815250611fd2565b60fe5474010000000000000000000000000000000000000000900460ff16610870576040517e6d8dbb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fe80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905560405133907f89b79206f08dadd78502cff5075d2b094fa0abea0b063cfafe4475e2a380c51f90600090a2565b60008060026001600160a01b03808616600090815260fd602090815260408083209388168352929052206001015460ff16600381111561090757610907613988565b0361093e576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b849150600061094e86868661209e565b9092509050600061095e85610c4d565b905082811015610653578160018161097e670de0b6b3a764000085613c0a565b6109889190613c47565b6109929190613c5f565b61099c9190613c76565b97909650945050505050565b6109b06117f4565b6109b8611df8565b6109c183611db8565b6109ca82611db8565b6109d3816123bf565b826109e86001600160a01b03821684846123f9565b826001600160a01b0316846001600160a01b03167f6d25be279134f4ecaa4770aff0c3d916d9e7c5ef37b65ed95dbdba411f5d54d584604051610a2d91815260200190565b60405180910390a350610a40600160c955565b505050565b60fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600092839291169063b62cad6990602401600060405180830381600087803b158015610aa957600080fd5b505af1158015610abd573d6000803e3d6000fd5b505060fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116925063b62cad699150602401600060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b50505050610b4485858561209e565b5094959350505050565b60fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600092839291169063b62cad6990602401600060405180830381600087803b158015610bb257600080fd5b505af1158015610bc6573d6000803e3d6000fd5b505060fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116925063b62cad699150602401600060405180830381600087803b158015610c2a57600080fd5b505af1158015610c3e573d6000803e3d6000fd5b50505050610b448585856118cb565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009082906001600160a01b038216906370a0823190602401602060405180830381865afa158015610caf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd39190613cb1565b9392505050565b610ce26117f4565b610cec60006124c0565b565b610d2c6040518060400160405280601e81526020017f7365744d696e416d6f756e74546f436f6e766572742875696e74323536290000815250611fd2565b610573816124f1565b60655433906001600160a01b03168114610dbc5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610573816124c0565b600080828585610dd3611d63565b610ddc83611db8565b816001600160a01b0316836001600160a01b03161480610e0d5750806001600160a01b0316836001600160a01b0316145b15610e44576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4c611df8565b610e598a8a8a8a8a611e51565b9095509350604080516001600160a01b038a81168252602082018890529181018690528189169188169033907f93b7ba2a2b0e36320375853d7466af5685c07567804b871b4fdfd31e3bb771549060600161079e565b610eb7611df8565b6000610ec3838361253b565b90508015610ed657610ed6838383612650565b50610ee1600160c955565b5050565b600080828585610ef3611d63565b610efc83611db8565b816001600160a01b0316836001600160a01b03161480610f2d5750806001600160a01b0316836001600160a01b0316145b15610f64576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f6c611df8565b610f798a8a8a8a8a612b0d565b9095509350604080516001600160a01b038a81168252602082018890529181018690528189169188169033907f9b7dc1d7d2974d015b4fc39889a09f3a3923add808f5863158f3162d997d4e829060600161079e565b61100d6040518060400160405280601181526020017f7061757365436f6e76657273696f6e2829000000000000000000000000000000815250611fd2565b611015611d63565b60fe80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560405133907f490bc639fd0d96f19c8adf77bc98d17fbefdee2e1e1864d21f041360d0ee065a90600090a2565b828181146110bb576040517f4d5590f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156111165761110e878787848181106110dc576110dc613cca565b90506020020160208101906110f19190613837565b86868581811061110357611103613cca565b905060400201611242565b6001016110be565b50505050505050565b60008082858561112d611d63565b61113683611db8565b816001600160a01b0316836001600160a01b031614806111675750806001600160a01b0316836001600160a01b0316145b1561119e576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a6611df8565b6111b38a8a8a8a8a612b9f565b90955093508884146111f1576040517fa8dc653c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516001600160a01b038a81168252602082018890529181018690528189169188169033907fcb4ea7de8d069b0f443b792cba6c6df5096508951bbc75c04ac42c9251efe0769060600161079e565b61126360405180606001604052806035815260200161405760359139611fd2565b61126c83611db8565b61127582611db8565b6706f05b59d3b20000813511156112c9576040517f9770caee000000000000000000000000000000000000000000000000000000008152813560048201526706f05b59d3b200006024820152604401610db3565b816001600160a01b0316836001600160a01b031614806112f8575061012d546001600160a01b03848116911614155b80611340575060006001600160a01b03808416600090815260fd602090815260408083209388168352929052206001015460ff16600381111561133d5761133d613988565b14155b15611377576040517feebb5ac600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026113896040830160208401613cf9565b600381111561139a5761139a613988565b1480156113a75750803515155b156113de576040517fd0d4aabe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026113f06040830160208401613cf9565b600381111561140157611401613988565b148061142d5750600161141a6040830160208401613cf9565b600381111561142b5761142b613988565b145b8015611442575060ff546001600160a01b0316155b15611479576040517fe7c2c99400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808416600081815260fd602090815260408083209487168084529482529182902080546001820154919594937f39fbfdd5da133303ed31b1b65e30a0ddf7a9236573368c66c859dceccc1dd12a93919288359260ff909116916114e991908a01908a01613cf9565b6040516114f99493929190613d1a565b60405180910390a360006115136040840160208501613cf9565b600381111561152457611524613988565b03611581576001600160a01b03808516600090815260fd60209081526040808320938716835292905290812090815560010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556115db565b813581556115956040830160208401613cf9565b6001808301805490917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116908360038111156115d5576115d5613988565b02179055505b50505050565b6115e96117f4565b606580546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556116326033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600054610100900460ff161580801561168a5750600054600160ff909116105b806116a45750303b1580156116a4575060005460ff166001145b6117165760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610db3565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561177457600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b61177d83611ce4565b61178986868685612c5c565b80156117ec57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b6033546001600160a01b03163314610cec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610db3565b61185781611db8565b60fe546040516001600160a01b038084169216907f9be3097b5c8b276786be52a244ee90d66efd34805d9eb16f168fb2b4aaae9a2b90600090a360fe80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008084600003611908576040517f42301c2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808516600090815260fd6020908152604080832093871683529281528282208351808501909452805484526001810154929392909183019060ff16600381111561195c5761195c613988565b600381111561196d5761196d613988565b905250905060008160200151600381111561198a5761198a613988565b036119c1576040517f618ce59700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015260009216906341976e0990602401602060405180830381865afa158015611a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a499190613cb1565b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152929350600092909116906341976e0990602401602060405180830381865afa158015611ab2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad69190613cb1565b835160ff54919250906001600160a01b031615801590611b76575060ff546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa158015611b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b769190613d4b565b15611b7f575060005b6000611b9382670de0b6b3a7640000613c47565b905082611ba08286613c0a565b611baa9190613c76565b955085600181611bc2670de0b6b3a76400008e613c0a565b611bcc9190613c47565b611bd69190613c5f565b611be09190613c76565b96505050505050935093915050565b6001600160a01b038116611c6b5760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610db3565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b611ced81611db8565b61012d546040516001600160a01b038084169216907f4fe44995ca2482562846e3c0413d9bd6147e9ce1881c66a8765e8542fef99f4290600090a361012d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60fe5474010000000000000000000000000000000000000000900460ff1615610cec576040517f952bcf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038116610573576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260c95403611e4a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610db3565b600260c955565b600080611e5e8585612cf5565b611e688588612e15565b9150611e75828686610a45565b91505085811015611ebc576040517f228f8c110000000000000000000000000000000000000000000000000000000081526004810182905260248101879052604401610db3565b611ec7848483612f60565b9550959350505050565b600160c955565b611ee181611db8565b60ff546040516001600160a01b038084169216907f50f1a16bf24734355b14ff800d132cc0a934808b8621d5623b41bc67f204881790600090a360ff80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611f5e81611db8565b60fc546040516001600160a01b038084169216907f56b5f80d8cac1479698aa7d01605fd6111e90b15fc4d2b377417f46034876cbd90600090a360fc80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6097546040517f18c5e8ab0000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906318c5e8ab9061201e9033908690600401613de3565b602060405180830381865afa15801561203b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205f9190613d4b565b905080610ee1573330836040517f4a3fa293000000000000000000000000000000000000000000000000000000008152600401610db393929190613e05565b600080846000036120db576040517f098fb56100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808516600090815260fd6020908152604080832093871683529281528282208351808501909452805484526001810154929392909183019060ff16600381111561212f5761212f613988565b600381111561214057612140613988565b905250905060008160200151600381111561215d5761215d613988565b03612194576040517f618ce59700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015260009216906341976e0990602401602060405180830381865afa1580156121f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221c9190613cb1565b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152929350600092909116906341976e0990602401602060405180830381865afa158015612285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a99190613cb1565b835160ff54919250906001600160a01b031615801590612349575060ff546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa158015612325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123499190613d4b565b15612352575060005b600061236682670de0b6b3a7640000613c47565b905061237a670de0b6b3a764000084613c0a565b81612385868d613c0a565b61238f9190613c0a565b6123999190613c76565b9650826123a68286613c0a565b6123b09190613c76565b95505050505050935093915050565b80600003610573576040517f9cf8540c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516001600160a01b038316602482015260448101829052610a409084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612fc3565b606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610573816130ab565b6124fa816123bf565b60fb5460408051918252602082018390527fada67d0d38fa20c8ae6a5c17cb9d60b0fe7f2d4e4f27ac9ee55e54ac88de9d8d910160405180910390a160fb55565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829082906001600160a01b038316906370a0823190602401602060405180830381865afa15801561259f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c39190613cb1565b61012d549093508391506001600160a01b03908116908516036126485760fe54600093506125fe906001600160a01b038481169116836123f9565b60fe546040518281526001600160a01b0386811692888216929116907fadc20ad416881f76b4304665c35f5be8592297bcdfe4f0bb087b9d254222af559060200160405180910390a45b505092915050565b600061266561012d546001600160a01b031690565b60fe5460ff549192506001600160a01b03908116916000911615612b085760ff546040517f4e9f8f390000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015285811660248301526000928392911690634e9f8f39906044016000604051808303816000875af11580156126f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261273a9190810190613f3e565b8151919350915060005b81811015612b035782818151811061275e5761275e613cca565b602002602001015160000315612b0357600084828151811061278257612782613cca565b60200260200101516001600160a01b0316636f1a30a88584815181106127aa576127aa613cca565b60200260200101518c8b6040518463ffffffff1660e01b81526004016127ec939291909283526001600160a01b03918216602084015216604082015260600190565b60408051808303816000875af115801561280a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061282e9190614003565b9150508881111561283c5750875b612846818b613115565b6128505750612b03565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152600091908a16906370a0823190602401602060405180830381865afa1580156128b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d79190613cb1565b90508a6001600160a01b031663095ea7b38785815181106128fa576128fa613cca565b6020026020010151846040518363ffffffff1660e01b81526004016129349291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015612953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129779190613d4b565b5085838151811061298a5761298a613cca565b60209081029190910101516040517f439727a500000000000000000000000000000000000000000000000000000000815260048101849052600060248201526001600160a01b038d811660448301528b811660648301528a811660848301529091169063439727a59060a40160408051808303816000875af1158015612a14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a389190614003565b50506040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152600091908b16906370a0823190602401602060405180830381865afa158015612a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac19190613cb1565b9050612acd838c613c5f565b9a50612ad98282613c5f565b612ae39089613c47565b97508a600003612af557505050612b03565b836001019350505050612744565b505050505b6117ec565b600080612b1a8585612cf5565b6000612b27878787610b4e565b91505087811115612b6e576040517f71b5f0c10000000000000000000000000000000000000000000000000000000081526004810182905260248101899052604401610db3565b612b788682612e15565b9250612b85838787610a45565b9250612b949050858584612f60565b509550959350505050565b600080612bac8585612cf5565b6000612bb9878787610b4e565b915050612bc68682612e15565b9250808314612c01576040517f0c5c1c2000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b87831115612c45576040517f71b5f0c10000000000000000000000000000000000000000000000000000000081526004810182905260248101899052604401610db3565b612c50858589612f60565b50909694955050505050565b600054610100900460ff16612cd95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b612ce28461324d565b612cea6132db565b6115db838383613360565b60ff546000906001600160a01b031615801590612d92575060ff546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa158015612d6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d929190613d4b565b905080158015612dde575060026001600160a01b03808516600090815260fd602090815260408083209387168352929052206001015460ff166003811115612ddc57612ddc613988565b145b15610a40576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fe546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152600091849183918316906370a0823190602401602060405180830381865afa158015612e7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea29190613cb1565b60fe54909150612ec1906001600160a01b038481169133911687613425565b60fe546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918416906370a0823190602401602060405180830381865afa158015612f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f4a9190613cb1565b9050612f568282613c5f565b9695505050505050565b6000612f6b84610c4d565b905081811015612fa7576040517f6bb2792900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612fbc6001600160a01b03821685856123f9565b5050505050565b6000613018826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134769092919063ffffffff16565b90508051600014806130395750808060200190518101906130399190613d4b565b610a405760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610db3565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092169063b62cad6990602401600060405180830381600087803b15801561317657600080fd5b505af115801561318a573d6000803e3d6000fd5b505060fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015260009450670de0b6b3a76400009350879216906341976e0990602401602060405180830381865afa1580156131fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132229190613cb1565b61322c9190613c0a565b6132369190613c76565b905060fb54811061324657600191505b5092915050565b600054610100900460ff166132ca5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b6132d261348d565b61057381613512565b600054610100900460ff166133585760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b610cec61358f565b600054610100900460ff166133dd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b6133e683611f55565b6133ef8261184e565b6133f8816124f1565b505060fe80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905550565b6040516001600160a01b03808516602483015283166044820152606481018290526115db9085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161243e565b6060613485848460008561360c565b949350505050565b600054610100900460ff1661350a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b610cec6136fe565b600054610100900460ff166106655760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b600054610100900460ff16611ed15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b6060824710156136845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610db3565b600080866001600160a01b031685876040516136a09190614027565b60006040518083038185875af1925050503d80600081146136dd576040519150601f19603f3d011682016040523d82523d6000602084013e6136e2565b606091505b50915091506136f387838387613784565b979650505050505050565b600054610100900460ff1661377b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610db3565b610cec336124c0565b606083156137f35782516000036137ec576001600160a01b0385163b6137ec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610db3565b5081613485565b61348583838151156138085781518083602001fd5b8060405162461bcd60e51b8152600401610db39190614043565b6001600160a01b038116811461057357600080fd5b60006020828403121561384957600080fd5b8135610cd381613822565b60008060006060848603121561386957600080fd5b83359250602084013561387b81613822565b9150604084013561388b81613822565b809150509250925092565b600080600080600060a086880312156138ae57600080fd5b853594506020860135935060408601356138c781613822565b925060608601356138d781613822565b915060808601356138e781613822565b809150509295509295909350565b60008060006060848603121561390a57600080fd5b833561391581613822565b9250602084013561392581613822565b929592945050506040919091013590565b60006020828403121561394857600080fd5b5035919050565b6000806040838503121561396257600080fd5b823561396d81613822565b9150602083013561397d81613822565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106139ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b82815260408101610cd360208301846139b7565b60008083601f840112613a1857600080fd5b50813567ffffffffffffffff811115613a3057600080fd5b6020830191508360208260061b8501011115613a4b57600080fd5b9250929050565b600080600080600060608688031215613a6a57600080fd5b8535613a7581613822565b9450602086013567ffffffffffffffff80821115613a9257600080fd5b818801915088601f830112613aa657600080fd5b813581811115613ab557600080fd5b8960208260051b8501011115613aca57600080fd5b602083019650809550506040880135915080821115613ae857600080fd5b50613af588828901613a06565b969995985093965092949392505050565b60008060008385036080811215613b1c57600080fd5b8435613b2781613822565b93506020850135613b3781613822565b925060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc082011215613b6957600080fd5b506040840190509250925092565b600080600080600060a08688031215613b8f57600080fd5b8535613b9a81613822565b94506020860135613baa81613822565b93506040860135613bba81613822565b92506060860135613bca81613822565b949793965091946080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c4257613c42613bdb565b500290565b60008219821115613c5a57613c5a613bdb565b500190565b600082821015613c7157613c71613bdb565b500390565b600082613cac577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060208284031215613cc357600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613d0b57600080fd5b813560048110610cd357600080fd5b8481526020810184905260808101613d3560408301856139b7565b613d4260608301846139b7565b95945050505050565b600060208284031215613d5d57600080fd5b81518015158114610cd357600080fd5b60005b83811015613d88578181015183820152602001613d70565b838111156115db5750506000910152565b60008151808452613db1816020860160208601613d6d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6001600160a01b03831681526040602082015260006134856040830184613d99565b60006001600160a01b03808616835280851660208401525060606040830152613d426060830184613d99565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613ea757613ea7613e31565b604052919050565b600067ffffffffffffffff821115613ec957613ec9613e31565b5060051b60200190565b600082601f830112613ee457600080fd5b81516020613ef9613ef483613eaf565b613e60565b82815260059290921b84018101918181019086841115613f1857600080fd5b8286015b84811015613f335780518352918301918301613f1c565b509695505050505050565b60008060408385031215613f5157600080fd5b825167ffffffffffffffff80821115613f6957600080fd5b818501915085601f830112613f7d57600080fd5b81516020613f8d613ef483613eaf565b82815260059290921b84018101918181019089841115613fac57600080fd5b948201945b83861015613fd3578551613fc481613822565b82529482019490820190613fb1565b91880151919650909350505080821115613fec57600080fd5b50613ff985828601613ed3565b9150509250929050565b6000806040838503121561401657600080fd5b505080516020909101519092909150565b60008251614039818460208701613d6d565b9190910192915050565b602081526000610cd36020830184613d9956fe736574436f6e76657273696f6e436f6e66696728616464726573732c616464726573732c436f6e76657273696f6e436f6e66696729a2646970667358221220ed4e6231ea5c5e38e732e0e7eb2760eb5dfe5c266f6d6a4e5862de69b81f4bbc64736f6c634300080d0033";
|
|
1398
|
+
|
|
1399
|
+
export class SingleTokenConverter__factory extends ContractFactory {
|
|
1400
|
+
constructor(
|
|
1401
|
+
...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
|
|
1402
|
+
) {
|
|
1403
|
+
if (args.length === 1) {
|
|
1404
|
+
super(_abi, _bytecode, args[0]);
|
|
1405
|
+
} else {
|
|
1406
|
+
super(...args);
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
deploy(
|
|
1411
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1412
|
+
): Promise<SingleTokenConverter> {
|
|
1413
|
+
return super.deploy(overrides || {}) as Promise<SingleTokenConverter>;
|
|
1414
|
+
}
|
|
1415
|
+
getDeployTransaction(
|
|
1416
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1417
|
+
): TransactionRequest {
|
|
1418
|
+
return super.getDeployTransaction(overrides || {});
|
|
1419
|
+
}
|
|
1420
|
+
attach(address: string): SingleTokenConverter {
|
|
1421
|
+
return super.attach(address) as SingleTokenConverter;
|
|
1422
|
+
}
|
|
1423
|
+
connect(signer: Signer): SingleTokenConverter__factory {
|
|
1424
|
+
return super.connect(signer) as SingleTokenConverter__factory;
|
|
1425
|
+
}
|
|
1426
|
+
static readonly bytecode = _bytecode;
|
|
1427
|
+
static readonly abi = _abi;
|
|
1428
|
+
static createInterface(): SingleTokenConverterInterface {
|
|
1429
|
+
return new utils.Interface(_abi) as SingleTokenConverterInterface;
|
|
1430
|
+
}
|
|
1431
|
+
static connect(
|
|
1432
|
+
address: string,
|
|
1433
|
+
signerOrProvider: Signer | Provider
|
|
1434
|
+
): SingleTokenConverter {
|
|
1435
|
+
return new Contract(
|
|
1436
|
+
address,
|
|
1437
|
+
_abi,
|
|
1438
|
+
signerOrProvider
|
|
1439
|
+
) as SingleTokenConverter;
|
|
1440
|
+
}
|
|
1441
|
+
}
|