@gooddollar/goodprotocol 1.0.19 → 1.0.21
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/artifacts/abis/UBIScheme.min.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IUBIScheme.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ProxyAdmin.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/Reserve.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/Staking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/Uniswap.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/UniswapFactory.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/UniswapPair.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/cERC20.dbg.json +1 -1
- package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
- package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
- package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
- package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
- package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
- package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
- package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
- package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
- package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
- package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
- package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.json +48 -2
- package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
- package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
- package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
- package/artifacts/contracts/utils/DSMath.sol/DSMath.dbg.json +1 -1
- package/artifacts/contracts/utils/DataTypes.sol/DataTypes.dbg.json +1 -1
- package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
- package/contracts/ubi/UBIScheme.sol +34 -4
- package/package.json +3 -2
- package/releases/deployment.json +3 -1
- package/scripts/misc/claimIncidentStats.ts +97 -0
- package/types/AaveMock.ts +1022 -0
- package/types/AaveStakingFactory.ts +290 -0
- package/types/AaveUSDMockOracle.ts +89 -0
- package/types/AccessControlEnumerableUpgradeable.ts +435 -0
- package/types/AccessControlUpgradeable.ts +362 -0
- package/types/AggregatorV3Interface.ts +192 -0
- package/types/Avatar.ts +121 -0
- package/types/BancorFormula.ts +974 -0
- package/types/BaseShareField.ts +442 -0
- package/types/BaseShareFieldV2.ts +361 -0
- package/types/BatUSDMockOracle.ts +89 -0
- package/types/BulkProof.ts +111 -0
- package/types/CBATMock.ts +1194 -0
- package/types/CDAILowWorthMock.ts +1160 -0
- package/types/CDAIMock.ts +1210 -0
- package/types/CDAINonMintableMock.ts +1160 -0
- package/types/CDecimalsMock.ts +1194 -0
- package/types/CERC20.ts +527 -0
- package/types/CSDTMock.ts +1194 -0
- package/types/CUSDCMock.ts +1194 -0
- package/types/ClaimersDistribution.ts +606 -0
- package/types/CompUSDMockOracle.ts +89 -0
- package/types/CompoundStakingFactory.ts +261 -0
- package/types/CompoundVotingMachine.ts +1690 -0
- package/types/ContributionCalc.ts +164 -0
- package/types/Controller.ts +547 -0
- package/types/DAIMock.ts +1083 -0
- package/types/DAOContract.ts +162 -0
- package/types/DAOUpgradeableContract.ts +271 -0
- package/types/DaiEthPriceMockOracle.ts +89 -0
- package/types/DecimalsMock.ts +1022 -0
- package/types/DonationsStaking.ts +777 -0
- package/types/ERC165Upgradeable.ts +104 -0
- package/types/ERC1967Proxy.ts +147 -0
- package/types/ERC1967Upgrade.ts +106 -0
- package/types/ERC1967UpgradeUpgradeable.ts +107 -0
- package/types/ERC20.ts +365 -0
- package/types/ERC20BurnableUpgradeable.ts +479 -0
- package/types/ERC20PausableUpgradeable.ts +449 -0
- package/types/ERC20PresetMinterPauserUpgradeable.ts +1023 -0
- package/types/ERC20Upgradeable.ts +417 -0
- package/types/EthUSDMockOracle.ts +138 -0
- package/types/ExchangeHelper.ts +522 -0
- package/types/GReputation.ts +2020 -0
- package/types/GasPriceMockOracle.ts +89 -0
- package/types/GlobalConstraintInterface.ts +134 -0
- package/types/GoodAaveStaking.ts +1752 -0
- package/types/GoodAaveStakingV2.ts +1722 -0
- package/types/GoodCompoundStaking.ts +1838 -0
- package/types/GoodCompoundStakingTest.ts +1948 -0
- package/types/GoodCompoundStakingV2.ts +1636 -0
- package/types/GoodFundManager.ts +1098 -0
- package/types/GoodFundManagerTest.ts +1137 -0
- package/types/GoodMarketMaker.ts +974 -0
- package/types/GoodReserveCDai.ts +1938 -0
- package/types/GovernanceStaking.ts +1267 -0
- package/types/IAaveIncentivesController.ts +155 -0
- package/types/IAccessControlEnumerableUpgradeable.ts +380 -0
- package/types/IAccessControlUpgradeable.ts +307 -0
- package/types/IAdminWallet.ts +171 -0
- package/types/IBeacon.ts +89 -0
- package/types/IBeaconUpgradeable.ts +89 -0
- package/types/IDonationStaking.ts +98 -0
- package/types/IERC165Upgradeable.ts +104 -0
- package/types/IERC1822Proxiable.ts +89 -0
- package/types/IERC20MetadataUpgradeable.ts +340 -0
- package/types/IERC20Upgradeable.ts +300 -0
- package/types/IERC2917.ts +636 -0
- package/types/IFirstClaimPool.ts +115 -0
- package/types/IGoodDollar.ts +579 -0
- package/types/IGoodStaking.ts +264 -0
- package/types/IHasRouter.ts +83 -0
- package/types/IIdentity.ts +281 -0
- package/types/ILendingPool.ts +241 -0
- package/types/INameService.ts +86 -0
- package/types/IUBIScheme.ts +121 -0
- package/types/IncentiveControllerMock.ts +207 -0
- package/types/IntVoteInterface.ts +468 -0
- package/types/LendingPoolMock.ts +1250 -0
- package/types/MultiBaseGovernanceShareField.ts +411 -0
- package/types/Multicall.ts +298 -0
- package/types/NameService.ts +358 -0
- package/types/OldMarketMaker.ts +113 -0
- package/types/OverMintTester.ts +176 -0
- package/types/OverMintTesterRegularStake.ts +177 -0
- package/types/PausableUpgradeable.ts +103 -0
- package/types/ProtocolUpgrade.ts +272 -0
- package/types/ProtocolUpgradeFuse.ts +166 -0
- package/types/ProtocolUpgradeFuseRecover.ts +167 -0
- package/types/ProtocolUpgradeRecover.ts +264 -0
- package/types/Proxy.ts +66 -0
- package/types/ProxyAdmin.ts +210 -0
- package/types/ProxyFactory1967.ts +284 -0
- package/types/Reputation.ts +936 -0
- package/types/ReputationInterface.ts +261 -0
- package/types/ReputationTestHelper.ts +175 -0
- package/types/Reserve.ts +112 -0
- package/types/SchemeRegistrar.ts +164 -0
- package/types/SimpleStaking.ts +1514 -0
- package/types/SimpleStakingV2.ts +1418 -0
- package/types/SixteenDecimalsTokenMock.ts +1023 -0
- package/types/StakersDistribution.ts +921 -0
- package/types/Staking.ts +158 -0
- package/types/SwapHelperTest.ts +120 -0
- package/types/TwentyDecimalsTokenMock.ts +1023 -0
- package/types/UBIScheme.ts +1454 -0
- package/types/USDCMock.ts +1022 -0
- package/types/UUPSUpgradeable.ts +179 -0
- package/types/Uniswap.ts +423 -0
- package/types/UniswapFactory.ts +106 -0
- package/types/UniswapPair.ts +187 -0
- package/types/UniswapV2SwapHelper.ts +124 -0
- package/types/UpgradableMock.ts +321 -0
- package/types/UpgradableMock2.ts +283 -0
- package/types/UpgradableMock3.ts +308 -0
- package/types/UpgradableMock4.ts +308 -0
- package/types/common.ts +44 -0
- package/types/factories/AaveMock__factory.ts +727 -0
- package/types/factories/AaveStakingFactory__factory.ts +262 -0
- package/types/factories/AaveUSDMockOracle__factory.ts +75 -0
- package/types/factories/AccessControlEnumerableUpgradeable__factory.ts +279 -0
- package/types/factories/AccessControlUpgradeable__factory.ts +234 -0
- package/types/factories/AggregatorV3Interface__factory.ts +121 -0
- package/types/factories/Avatar__factory.ts +59 -0
- package/types/factories/BancorFormula__factory.ts +674 -0
- package/types/factories/BaseShareFieldV2__factory.ts +251 -0
- package/types/factories/BaseShareField__factory.ts +307 -0
- package/types/factories/BatUSDMockOracle__factory.ts +75 -0
- package/types/factories/BulkProof__factory.ts +89 -0
- package/types/factories/CBATMock__factory.ts +831 -0
- package/types/factories/CDAILowWorthMock__factory.ts +821 -0
- package/types/factories/CDAIMock__factory.ts +844 -0
- package/types/factories/CDAINonMintableMock__factory.ts +821 -0
- package/types/factories/CDecimalsMock__factory.ts +831 -0
- package/types/factories/CERC20__factory.ts +368 -0
- package/types/factories/CSDTMock__factory.ts +831 -0
- package/types/factories/CUSDCMock__factory.ts +831 -0
- package/types/factories/ClaimersDistribution__factory.ts +404 -0
- package/types/factories/CompUSDMockOracle__factory.ts +75 -0
- package/types/factories/CompoundStakingFactory__factory.ts +249 -0
- package/types/factories/CompoundVotingMachine__factory.ts +1182 -0
- package/types/factories/ContributionCalc__factory.ts +83 -0
- package/types/factories/Controller__factory.ts +359 -0
- package/types/factories/DAIMock__factory.ts +770 -0
- package/types/factories/DAOContract__factory.ts +118 -0
- package/types/factories/DAOUpgradeableContract__factory.ts +201 -0
- package/types/factories/DaiEthPriceMockOracle__factory.ts +79 -0
- package/types/factories/DecimalsMock__factory.ts +742 -0
- package/types/factories/DonationsStaking__factory.ts +554 -0
- package/types/factories/ERC165Upgradeable__factory.ts +45 -0
- package/types/factories/ERC1967Proxy__factory.ts +130 -0
- package/types/factories/ERC1967UpgradeUpgradeable__factory.ts +75 -0
- package/types/factories/ERC1967Upgrade__factory.ts +71 -0
- package/types/factories/ERC20BurnableUpgradeable__factory.ts +331 -0
- package/types/factories/ERC20PausableUpgradeable__factory.ts +339 -0
- package/types/factories/ERC20PresetMinterPauserUpgradeable__factory.ts +733 -0
- package/types/factories/ERC20Upgradeable__factory.ts +332 -0
- package/types/factories/ERC20__factory.ts +272 -0
- package/types/factories/EthUSDMockOracle__factory.ts +108 -0
- package/types/factories/ExchangeHelper__factory.ts +401 -0
- package/types/factories/GReputation__factory.ts +1415 -0
- package/types/factories/GasPriceMockOracle__factory.ts +75 -0
- package/types/factories/GlobalConstraintInterface__factory.ts +72 -0
- package/types/factories/GoodAaveStakingV2__factory.ts +1227 -0
- package/types/factories/GoodAaveStaking__factory.ts +1263 -0
- package/types/factories/GoodCompoundStakingTest__factory.ts +1457 -0
- package/types/factories/GoodCompoundStakingV2__factory.ts +1169 -0
- package/types/factories/GoodCompoundStaking__factory.ts +1303 -0
- package/types/factories/GoodFundManagerTest__factory.ts +775 -0
- package/types/factories/GoodFundManager__factory.ts +733 -0
- package/types/factories/GoodMarketMaker__factory.ts +661 -0
- package/types/factories/GoodReserveCDai__factory.ts +1391 -0
- package/types/factories/GovernanceStaking__factory.ts +922 -0
- package/types/factories/IAaveIncentivesController__factory.ts +83 -0
- package/types/factories/IAccessControlEnumerableUpgradeable__factory.ts +247 -0
- package/types/factories/IAccessControlUpgradeable__factory.ts +202 -0
- package/types/factories/IAdminWallet__factory.ts +75 -0
- package/types/factories/IBeaconUpgradeable__factory.ts +39 -0
- package/types/factories/IBeacon__factory.ts +36 -0
- package/types/factories/IDonationStaking__factory.ts +33 -0
- package/types/factories/IERC165Upgradeable__factory.ts +45 -0
- package/types/factories/IERC1822Proxiable__factory.ts +39 -0
- package/types/factories/IERC20MetadataUpgradeable__factory.ts +252 -0
- package/types/factories/IERC20Upgradeable__factory.ts +209 -0
- package/types/factories/IERC2917__factory.ts +480 -0
- package/types/factories/IFirstClaimPool__factory.ts +58 -0
- package/types/factories/IGoodDollar__factory.ts +411 -0
- package/types/factories/IGoodStaking__factory.ts +175 -0
- package/types/factories/IHasRouter__factory.ts +36 -0
- package/types/factories/IIdentity__factory.ts +150 -0
- package/types/factories/ILendingPool__factory.ts +168 -0
- package/types/factories/INameService__factory.ts +42 -0
- package/types/factories/IUBIScheme__factory.ts +68 -0
- package/types/factories/IncentiveControllerMock__factory.ts +166 -0
- package/types/factories/IntVoteInterface__factory.ts +349 -0
- package/types/factories/LendingPoolMock__factory.ts +914 -0
- package/types/factories/MultiBaseGovernanceShareField__factory.ts +240 -0
- package/types/factories/Multicall__factory.ts +215 -0
- package/types/factories/NameService__factory.ts +264 -0
- package/types/factories/OldMarketMaker__factory.ts +62 -0
- package/types/factories/OverMintTesterRegularStake__factory.ts +156 -0
- package/types/factories/OverMintTester__factory.ts +152 -0
- package/types/factories/PausableUpgradeable__factory.ts +65 -0
- package/types/factories/ProtocolUpgradeFuseRecover__factory.ts +146 -0
- package/types/factories/ProtocolUpgradeFuse__factory.ts +142 -0
- package/types/factories/ProtocolUpgradeRecover__factory.ts +184 -0
- package/types/factories/ProtocolUpgrade__factory.ts +207 -0
- package/types/factories/ProxyAdmin__factory.ts +105 -0
- package/types/factories/ProxyFactory1967__factory.ts +223 -0
- package/types/factories/Proxy__factory.ts +28 -0
- package/types/factories/ReputationInterface__factory.ts +168 -0
- package/types/factories/ReputationTestHelper__factory.ts +141 -0
- package/types/factories/Reputation__factory.ts +667 -0
- package/types/factories/Reserve__factory.ts +52 -0
- package/types/factories/SchemeRegistrar__factory.ts +114 -0
- package/types/factories/SimpleStakingV2__factory.ts +986 -0
- package/types/factories/SimpleStaking__factory.ts +1045 -0
- package/types/factories/SixteenDecimalsTokenMock__factory.ts +734 -0
- package/types/factories/StakersDistribution__factory.ts +591 -0
- package/types/factories/Staking__factory.ts +74 -0
- package/types/factories/SwapHelperTest__factory.ts +96 -0
- package/types/factories/TwentyDecimalsTokenMock__factory.ts +734 -0
- package/types/factories/UBIScheme__factory.ts +1015 -0
- package/types/factories/USDCMock__factory.ts +727 -0
- package/types/factories/UUPSUpgradeable__factory.ts +102 -0
- package/types/factories/UniswapFactory__factory.ts +50 -0
- package/types/factories/UniswapPair__factory.ts +117 -0
- package/types/factories/UniswapV2SwapHelper__factory.ts +101 -0
- package/types/factories/Uniswap__factory.ts +272 -0
- package/types/factories/UpgradableMock2__factory.ts +210 -0
- package/types/factories/UpgradableMock3__factory.ts +223 -0
- package/types/factories/UpgradableMock4__factory.ts +223 -0
- package/types/factories/UpgradableMock__factory.ts +236 -0
- package/types/hardhat.d.ts +1077 -0
- package/types/index.ts +236 -0
|
@@ -0,0 +1,1457 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
Signer,
|
|
7
|
+
utils,
|
|
8
|
+
BigNumberish,
|
|
9
|
+
Contract,
|
|
10
|
+
ContractFactory,
|
|
11
|
+
Overrides,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
14
|
+
import type {
|
|
15
|
+
GoodCompoundStakingTest,
|
|
16
|
+
GoodCompoundStakingTestInterface,
|
|
17
|
+
} from "../GoodCompoundStakingTest";
|
|
18
|
+
|
|
19
|
+
const _abi = [
|
|
20
|
+
{
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "_token",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "address",
|
|
29
|
+
name: "_iToken",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
internalType: "contract INameService",
|
|
34
|
+
name: "_ns",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "string",
|
|
39
|
+
name: "_tokenName",
|
|
40
|
+
type: "string",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "string",
|
|
44
|
+
name: "_tokenSymbol",
|
|
45
|
+
type: "string",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint64",
|
|
49
|
+
name: "_maxRewardThreshold",
|
|
50
|
+
type: "uint64",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "address",
|
|
54
|
+
name: "_tokenUsdOracle",
|
|
55
|
+
type: "address",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "_compUsdOracle",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: "address[]",
|
|
64
|
+
name: "_swapPath",
|
|
65
|
+
type: "address[]",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "nonpayable",
|
|
69
|
+
type: "constructor",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
anonymous: false,
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
indexed: true,
|
|
76
|
+
internalType: "address",
|
|
77
|
+
name: "owner",
|
|
78
|
+
type: "address",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
indexed: true,
|
|
82
|
+
internalType: "address",
|
|
83
|
+
name: "spender",
|
|
84
|
+
type: "address",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
indexed: false,
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "value",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "Approval",
|
|
94
|
+
type: "event",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
anonymous: false,
|
|
98
|
+
inputs: [
|
|
99
|
+
{
|
|
100
|
+
indexed: false,
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "recipient",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: false,
|
|
107
|
+
internalType: "uint256",
|
|
108
|
+
name: "iTokenGains",
|
|
109
|
+
type: "uint256",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
indexed: false,
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
name: "tokenGains",
|
|
115
|
+
type: "uint256",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: false,
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "actualTokenRedeemed",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
indexed: false,
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "actualRewardTokenEarned",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
indexed: false,
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "interestCollectedInDAI",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
name: "InterestCollected",
|
|
137
|
+
type: "event",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
anonymous: false,
|
|
141
|
+
inputs: [
|
|
142
|
+
{
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "staker",
|
|
146
|
+
type: "address",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
indexed: false,
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "token",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
indexed: false,
|
|
156
|
+
internalType: "uint256",
|
|
157
|
+
name: "value",
|
|
158
|
+
type: "uint256",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
name: "StakeWithdraw",
|
|
162
|
+
type: "event",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
anonymous: false,
|
|
166
|
+
inputs: [
|
|
167
|
+
{
|
|
168
|
+
indexed: true,
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "staker",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
indexed: false,
|
|
175
|
+
internalType: "address",
|
|
176
|
+
name: "token",
|
|
177
|
+
type: "address",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "value",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "Staked",
|
|
187
|
+
type: "event",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
anonymous: false,
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
indexed: true,
|
|
194
|
+
internalType: "address",
|
|
195
|
+
name: "from",
|
|
196
|
+
type: "address",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
indexed: true,
|
|
200
|
+
internalType: "address",
|
|
201
|
+
name: "to",
|
|
202
|
+
type: "address",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
indexed: false,
|
|
206
|
+
internalType: "uint256",
|
|
207
|
+
name: "value",
|
|
208
|
+
type: "uint256",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
name: "Transfer",
|
|
212
|
+
type: "event",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
inputs: [],
|
|
216
|
+
name: "accAmountPerShare",
|
|
217
|
+
outputs: [
|
|
218
|
+
{
|
|
219
|
+
internalType: "uint256",
|
|
220
|
+
name: "",
|
|
221
|
+
type: "uint256",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
stateMutability: "view",
|
|
225
|
+
type: "function",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
inputs: [],
|
|
229
|
+
name: "accumulatedRewards",
|
|
230
|
+
outputs: [
|
|
231
|
+
{
|
|
232
|
+
internalType: "uint256",
|
|
233
|
+
name: "",
|
|
234
|
+
type: "uint256",
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
stateMutability: "view",
|
|
238
|
+
type: "function",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
inputs: [
|
|
242
|
+
{
|
|
243
|
+
internalType: "address",
|
|
244
|
+
name: "owner",
|
|
245
|
+
type: "address",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
internalType: "address",
|
|
249
|
+
name: "spender",
|
|
250
|
+
type: "address",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
name: "allowance",
|
|
254
|
+
outputs: [
|
|
255
|
+
{
|
|
256
|
+
internalType: "uint256",
|
|
257
|
+
name: "",
|
|
258
|
+
type: "uint256",
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
stateMutability: "view",
|
|
262
|
+
type: "function",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
inputs: [
|
|
266
|
+
{
|
|
267
|
+
internalType: "address",
|
|
268
|
+
name: "spender",
|
|
269
|
+
type: "address",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
internalType: "uint256",
|
|
273
|
+
name: "amount",
|
|
274
|
+
type: "uint256",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
name: "approve",
|
|
278
|
+
outputs: [
|
|
279
|
+
{
|
|
280
|
+
internalType: "bool",
|
|
281
|
+
name: "",
|
|
282
|
+
type: "bool",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
stateMutability: "nonpayable",
|
|
286
|
+
type: "function",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
inputs: [],
|
|
290
|
+
name: "avatar",
|
|
291
|
+
outputs: [
|
|
292
|
+
{
|
|
293
|
+
internalType: "address",
|
|
294
|
+
name: "",
|
|
295
|
+
type: "address",
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
stateMutability: "view",
|
|
299
|
+
type: "function",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
inputs: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "address",
|
|
305
|
+
name: "account",
|
|
306
|
+
type: "address",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
name: "balanceOf",
|
|
310
|
+
outputs: [
|
|
311
|
+
{
|
|
312
|
+
internalType: "uint256",
|
|
313
|
+
name: "",
|
|
314
|
+
type: "uint256",
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
stateMutability: "view",
|
|
318
|
+
type: "function",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
inputs: [],
|
|
322
|
+
name: "claimReputation",
|
|
323
|
+
outputs: [],
|
|
324
|
+
stateMutability: "nonpayable",
|
|
325
|
+
type: "function",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
inputs: [],
|
|
329
|
+
name: "collectInterestGasCost",
|
|
330
|
+
outputs: [
|
|
331
|
+
{
|
|
332
|
+
internalType: "uint32",
|
|
333
|
+
name: "",
|
|
334
|
+
type: "uint32",
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
stateMutability: "view",
|
|
338
|
+
type: "function",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
inputs: [
|
|
342
|
+
{
|
|
343
|
+
internalType: "address",
|
|
344
|
+
name: "_recipient",
|
|
345
|
+
type: "address",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
name: "collectUBIInterest",
|
|
349
|
+
outputs: [
|
|
350
|
+
{
|
|
351
|
+
internalType: "uint256",
|
|
352
|
+
name: "actualTokenRedeemed",
|
|
353
|
+
type: "uint256",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
internalType: "uint256",
|
|
357
|
+
name: "actualRewardTokenRedeemed",
|
|
358
|
+
type: "uint256",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
internalType: "uint256",
|
|
362
|
+
name: "actualDai",
|
|
363
|
+
type: "uint256",
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
stateMutability: "nonpayable",
|
|
367
|
+
type: "function",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
inputs: [],
|
|
371
|
+
name: "comp",
|
|
372
|
+
outputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "contract ERC20",
|
|
375
|
+
name: "",
|
|
376
|
+
type: "address",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
stateMutability: "view",
|
|
380
|
+
type: "function",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
inputs: [],
|
|
384
|
+
name: "compCollectGasCost",
|
|
385
|
+
outputs: [
|
|
386
|
+
{
|
|
387
|
+
internalType: "uint32",
|
|
388
|
+
name: "",
|
|
389
|
+
type: "uint32",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
stateMutability: "view",
|
|
393
|
+
type: "function",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
inputs: [],
|
|
397
|
+
name: "compUsdOracle",
|
|
398
|
+
outputs: [
|
|
399
|
+
{
|
|
400
|
+
internalType: "address",
|
|
401
|
+
name: "",
|
|
402
|
+
type: "address",
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
stateMutability: "view",
|
|
406
|
+
type: "function",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
inputs: [
|
|
410
|
+
{
|
|
411
|
+
internalType: "bool",
|
|
412
|
+
name: "_returnTokenBalanceInUSD",
|
|
413
|
+
type: "bool",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "bool",
|
|
417
|
+
name: "_returnTokenGainsInUSD",
|
|
418
|
+
type: "bool",
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
name: "currentGains",
|
|
422
|
+
outputs: [
|
|
423
|
+
{
|
|
424
|
+
internalType: "uint256",
|
|
425
|
+
name: "iTokenGains",
|
|
426
|
+
type: "uint256",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
internalType: "uint256",
|
|
430
|
+
name: "tokenGains",
|
|
431
|
+
type: "uint256",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
internalType: "uint256",
|
|
435
|
+
name: "tokenBalance",
|
|
436
|
+
type: "uint256",
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
internalType: "uint256",
|
|
440
|
+
name: "balanceInUSD",
|
|
441
|
+
type: "uint256",
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
internalType: "uint256",
|
|
445
|
+
name: "tokenGainsInUSD",
|
|
446
|
+
type: "uint256",
|
|
447
|
+
},
|
|
448
|
+
],
|
|
449
|
+
stateMutability: "view",
|
|
450
|
+
type: "function",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
inputs: [],
|
|
454
|
+
name: "dao",
|
|
455
|
+
outputs: [
|
|
456
|
+
{
|
|
457
|
+
internalType: "contract Controller",
|
|
458
|
+
name: "",
|
|
459
|
+
type: "address",
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
stateMutability: "view",
|
|
463
|
+
type: "function",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
inputs: [],
|
|
467
|
+
name: "decimals",
|
|
468
|
+
outputs: [
|
|
469
|
+
{
|
|
470
|
+
internalType: "uint8",
|
|
471
|
+
name: "",
|
|
472
|
+
type: "uint8",
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
stateMutability: "view",
|
|
476
|
+
type: "function",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
inputs: [
|
|
480
|
+
{
|
|
481
|
+
internalType: "address",
|
|
482
|
+
name: "spender",
|
|
483
|
+
type: "address",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
internalType: "uint256",
|
|
487
|
+
name: "subtractedValue",
|
|
488
|
+
type: "uint256",
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
name: "decreaseAllowance",
|
|
492
|
+
outputs: [
|
|
493
|
+
{
|
|
494
|
+
internalType: "bool",
|
|
495
|
+
name: "",
|
|
496
|
+
type: "bool",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
stateMutability: "nonpayable",
|
|
500
|
+
type: "function",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
inputs: [
|
|
504
|
+
{
|
|
505
|
+
internalType: "address",
|
|
506
|
+
name: "user",
|
|
507
|
+
type: "address",
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
internalType: "uint256",
|
|
511
|
+
name: "value",
|
|
512
|
+
type: "uint256",
|
|
513
|
+
},
|
|
514
|
+
],
|
|
515
|
+
name: "decreaseProductivityTest",
|
|
516
|
+
outputs: [],
|
|
517
|
+
stateMutability: "nonpayable",
|
|
518
|
+
type: "function",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
inputs: [],
|
|
522
|
+
name: "getGasCostForInterestTransfer",
|
|
523
|
+
outputs: [
|
|
524
|
+
{
|
|
525
|
+
internalType: "uint32",
|
|
526
|
+
name: "",
|
|
527
|
+
type: "uint32",
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
stateMutability: "view",
|
|
531
|
+
type: "function",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
inputs: [
|
|
535
|
+
{
|
|
536
|
+
internalType: "address",
|
|
537
|
+
name: "user",
|
|
538
|
+
type: "address",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
name: "getProductivity",
|
|
542
|
+
outputs: [
|
|
543
|
+
{
|
|
544
|
+
internalType: "uint256",
|
|
545
|
+
name: "",
|
|
546
|
+
type: "uint256",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
internalType: "uint256",
|
|
550
|
+
name: "",
|
|
551
|
+
type: "uint256",
|
|
552
|
+
},
|
|
553
|
+
],
|
|
554
|
+
stateMutability: "view",
|
|
555
|
+
type: "function",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
inputs: [],
|
|
559
|
+
name: "getRouter",
|
|
560
|
+
outputs: [
|
|
561
|
+
{
|
|
562
|
+
internalType: "contract Uniswap",
|
|
563
|
+
name: "",
|
|
564
|
+
type: "address",
|
|
565
|
+
},
|
|
566
|
+
],
|
|
567
|
+
stateMutability: "view",
|
|
568
|
+
type: "function",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
inputs: [
|
|
572
|
+
{
|
|
573
|
+
internalType: "address",
|
|
574
|
+
name: "_oracle",
|
|
575
|
+
type: "address",
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
internalType: "uint256",
|
|
579
|
+
name: "_amount",
|
|
580
|
+
type: "uint256",
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
internalType: "uint256",
|
|
584
|
+
name: "_decimals",
|
|
585
|
+
type: "uint256",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
name: "getTokenValueInUSD",
|
|
589
|
+
outputs: [
|
|
590
|
+
{
|
|
591
|
+
internalType: "uint256",
|
|
592
|
+
name: "",
|
|
593
|
+
type: "uint256",
|
|
594
|
+
},
|
|
595
|
+
],
|
|
596
|
+
stateMutability: "view",
|
|
597
|
+
type: "function",
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
inputs: [
|
|
601
|
+
{
|
|
602
|
+
internalType: "address",
|
|
603
|
+
name: "_staker",
|
|
604
|
+
type: "address",
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
name: "getUserMintedAndPending",
|
|
608
|
+
outputs: [
|
|
609
|
+
{
|
|
610
|
+
internalType: "uint256",
|
|
611
|
+
name: "",
|
|
612
|
+
type: "uint256",
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
internalType: "uint256",
|
|
616
|
+
name: "",
|
|
617
|
+
type: "uint256",
|
|
618
|
+
},
|
|
619
|
+
],
|
|
620
|
+
stateMutability: "view",
|
|
621
|
+
type: "function",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
inputs: [
|
|
625
|
+
{
|
|
626
|
+
internalType: "address",
|
|
627
|
+
name: "user",
|
|
628
|
+
type: "address",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
internalType: "uint256",
|
|
632
|
+
name: "rewardsPerBlock",
|
|
633
|
+
type: "uint256",
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
internalType: "uint256",
|
|
637
|
+
name: "blockStart",
|
|
638
|
+
type: "uint256",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
internalType: "uint256",
|
|
642
|
+
name: "blockEnd",
|
|
643
|
+
type: "uint256",
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
name: "getUserPendingReward",
|
|
647
|
+
outputs: [
|
|
648
|
+
{
|
|
649
|
+
internalType: "uint256",
|
|
650
|
+
name: "",
|
|
651
|
+
type: "uint256",
|
|
652
|
+
},
|
|
653
|
+
],
|
|
654
|
+
stateMutability: "view",
|
|
655
|
+
type: "function",
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
inputs: [],
|
|
659
|
+
name: "iToken",
|
|
660
|
+
outputs: [
|
|
661
|
+
{
|
|
662
|
+
internalType: "contract ERC20",
|
|
663
|
+
name: "",
|
|
664
|
+
type: "address",
|
|
665
|
+
},
|
|
666
|
+
],
|
|
667
|
+
stateMutability: "view",
|
|
668
|
+
type: "function",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
inputs: [
|
|
672
|
+
{
|
|
673
|
+
internalType: "uint256",
|
|
674
|
+
name: "_amount",
|
|
675
|
+
type: "uint256",
|
|
676
|
+
},
|
|
677
|
+
],
|
|
678
|
+
name: "iTokenWorthInToken",
|
|
679
|
+
outputs: [
|
|
680
|
+
{
|
|
681
|
+
internalType: "uint256",
|
|
682
|
+
name: "",
|
|
683
|
+
type: "uint256",
|
|
684
|
+
},
|
|
685
|
+
],
|
|
686
|
+
stateMutability: "view",
|
|
687
|
+
type: "function",
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
inputs: [
|
|
691
|
+
{
|
|
692
|
+
internalType: "address",
|
|
693
|
+
name: "spender",
|
|
694
|
+
type: "address",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
internalType: "uint256",
|
|
698
|
+
name: "addedValue",
|
|
699
|
+
type: "uint256",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
name: "increaseAllowance",
|
|
703
|
+
outputs: [
|
|
704
|
+
{
|
|
705
|
+
internalType: "bool",
|
|
706
|
+
name: "",
|
|
707
|
+
type: "bool",
|
|
708
|
+
},
|
|
709
|
+
],
|
|
710
|
+
stateMutability: "nonpayable",
|
|
711
|
+
type: "function",
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
inputs: [
|
|
715
|
+
{
|
|
716
|
+
internalType: "address",
|
|
717
|
+
name: "_token",
|
|
718
|
+
type: "address",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
internalType: "address",
|
|
722
|
+
name: "_iToken",
|
|
723
|
+
type: "address",
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
internalType: "contract INameService",
|
|
727
|
+
name: "_ns",
|
|
728
|
+
type: "address",
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
internalType: "string",
|
|
732
|
+
name: "_tokenName",
|
|
733
|
+
type: "string",
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
internalType: "string",
|
|
737
|
+
name: "_tokenSymbol",
|
|
738
|
+
type: "string",
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
internalType: "uint64",
|
|
742
|
+
name: "_maxRewardThreshold",
|
|
743
|
+
type: "uint64",
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
internalType: "address",
|
|
747
|
+
name: "_tokenUsdOracle",
|
|
748
|
+
type: "address",
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
internalType: "address",
|
|
752
|
+
name: "_compUsdOracle",
|
|
753
|
+
type: "address",
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
internalType: "address[]",
|
|
757
|
+
name: "_tokenToDaiSwapPath",
|
|
758
|
+
type: "address[]",
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
name: "init",
|
|
762
|
+
outputs: [],
|
|
763
|
+
stateMutability: "nonpayable",
|
|
764
|
+
type: "function",
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
inputs: [
|
|
768
|
+
{
|
|
769
|
+
internalType: "address",
|
|
770
|
+
name: "_token",
|
|
771
|
+
type: "address",
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
internalType: "address",
|
|
775
|
+
name: "_iToken",
|
|
776
|
+
type: "address",
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
internalType: "contract INameService",
|
|
780
|
+
name: "_ns",
|
|
781
|
+
type: "address",
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
internalType: "string",
|
|
785
|
+
name: "_tokenName",
|
|
786
|
+
type: "string",
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
internalType: "string",
|
|
790
|
+
name: "_tokenSymbol",
|
|
791
|
+
type: "string",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
internalType: "uint64",
|
|
795
|
+
name: "_maxRewardThreshold",
|
|
796
|
+
type: "uint64",
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
name: "initialize",
|
|
800
|
+
outputs: [],
|
|
801
|
+
stateMutability: "nonpayable",
|
|
802
|
+
type: "function",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
inputs: [],
|
|
806
|
+
name: "isPaused",
|
|
807
|
+
outputs: [
|
|
808
|
+
{
|
|
809
|
+
internalType: "bool",
|
|
810
|
+
name: "",
|
|
811
|
+
type: "bool",
|
|
812
|
+
},
|
|
813
|
+
],
|
|
814
|
+
stateMutability: "view",
|
|
815
|
+
type: "function",
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
inputs: [],
|
|
819
|
+
name: "lastRewardBlock",
|
|
820
|
+
outputs: [
|
|
821
|
+
{
|
|
822
|
+
internalType: "uint256",
|
|
823
|
+
name: "",
|
|
824
|
+
type: "uint256",
|
|
825
|
+
},
|
|
826
|
+
],
|
|
827
|
+
stateMutability: "view",
|
|
828
|
+
type: "function",
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
inputs: [],
|
|
832
|
+
name: "maxLiquidityPercentageSwap",
|
|
833
|
+
outputs: [
|
|
834
|
+
{
|
|
835
|
+
internalType: "uint24",
|
|
836
|
+
name: "",
|
|
837
|
+
type: "uint24",
|
|
838
|
+
},
|
|
839
|
+
],
|
|
840
|
+
stateMutability: "view",
|
|
841
|
+
type: "function",
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
inputs: [],
|
|
845
|
+
name: "maxMultiplierThreshold",
|
|
846
|
+
outputs: [
|
|
847
|
+
{
|
|
848
|
+
internalType: "uint64",
|
|
849
|
+
name: "",
|
|
850
|
+
type: "uint64",
|
|
851
|
+
},
|
|
852
|
+
],
|
|
853
|
+
stateMutability: "view",
|
|
854
|
+
type: "function",
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
inputs: [
|
|
858
|
+
{
|
|
859
|
+
internalType: "address",
|
|
860
|
+
name: "user",
|
|
861
|
+
type: "address",
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
internalType: "uint256",
|
|
865
|
+
name: "value",
|
|
866
|
+
type: "uint256",
|
|
867
|
+
},
|
|
868
|
+
],
|
|
869
|
+
name: "mintToken",
|
|
870
|
+
outputs: [],
|
|
871
|
+
stateMutability: "nonpayable",
|
|
872
|
+
type: "function",
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
inputs: [],
|
|
876
|
+
name: "mintedRewards",
|
|
877
|
+
outputs: [
|
|
878
|
+
{
|
|
879
|
+
internalType: "uint256",
|
|
880
|
+
name: "",
|
|
881
|
+
type: "uint256",
|
|
882
|
+
},
|
|
883
|
+
],
|
|
884
|
+
stateMutability: "view",
|
|
885
|
+
type: "function",
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
inputs: [],
|
|
889
|
+
name: "name",
|
|
890
|
+
outputs: [
|
|
891
|
+
{
|
|
892
|
+
internalType: "string",
|
|
893
|
+
name: "",
|
|
894
|
+
type: "string",
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
stateMutability: "view",
|
|
898
|
+
type: "function",
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
inputs: [],
|
|
902
|
+
name: "nameService",
|
|
903
|
+
outputs: [
|
|
904
|
+
{
|
|
905
|
+
internalType: "contract INameService",
|
|
906
|
+
name: "",
|
|
907
|
+
type: "address",
|
|
908
|
+
},
|
|
909
|
+
],
|
|
910
|
+
stateMutability: "view",
|
|
911
|
+
type: "function",
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
inputs: [],
|
|
915
|
+
name: "nativeToken",
|
|
916
|
+
outputs: [
|
|
917
|
+
{
|
|
918
|
+
internalType: "contract IGoodDollar",
|
|
919
|
+
name: "",
|
|
920
|
+
type: "address",
|
|
921
|
+
},
|
|
922
|
+
],
|
|
923
|
+
stateMutability: "view",
|
|
924
|
+
type: "function",
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
inputs: [
|
|
928
|
+
{
|
|
929
|
+
internalType: "bool",
|
|
930
|
+
name: "_isPaused",
|
|
931
|
+
type: "bool",
|
|
932
|
+
},
|
|
933
|
+
],
|
|
934
|
+
name: "pause",
|
|
935
|
+
outputs: [],
|
|
936
|
+
stateMutability: "nonpayable",
|
|
937
|
+
type: "function",
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
inputs: [
|
|
941
|
+
{
|
|
942
|
+
internalType: "contract ERC20",
|
|
943
|
+
name: "_token",
|
|
944
|
+
type: "address",
|
|
945
|
+
},
|
|
946
|
+
],
|
|
947
|
+
name: "recover",
|
|
948
|
+
outputs: [],
|
|
949
|
+
stateMutability: "nonpayable",
|
|
950
|
+
type: "function",
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
inputs: [
|
|
954
|
+
{
|
|
955
|
+
internalType: "uint256",
|
|
956
|
+
name: "_amount",
|
|
957
|
+
type: "uint256",
|
|
958
|
+
},
|
|
959
|
+
],
|
|
960
|
+
name: "redeemUnderlyingToDAITest",
|
|
961
|
+
outputs: [],
|
|
962
|
+
stateMutability: "nonpayable",
|
|
963
|
+
type: "function",
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
inputs: [
|
|
967
|
+
{
|
|
968
|
+
internalType: "address",
|
|
969
|
+
name: "user",
|
|
970
|
+
type: "address",
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
internalType: "uint256",
|
|
974
|
+
name: "rewardsPerBlock",
|
|
975
|
+
type: "uint256",
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
internalType: "uint256",
|
|
979
|
+
name: "blockStart",
|
|
980
|
+
type: "uint256",
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
internalType: "uint256",
|
|
984
|
+
name: "blockEnd",
|
|
985
|
+
type: "uint256",
|
|
986
|
+
},
|
|
987
|
+
],
|
|
988
|
+
name: "rewardsMinted",
|
|
989
|
+
outputs: [
|
|
990
|
+
{
|
|
991
|
+
internalType: "uint256",
|
|
992
|
+
name: "",
|
|
993
|
+
type: "uint256",
|
|
994
|
+
},
|
|
995
|
+
],
|
|
996
|
+
stateMutability: "nonpayable",
|
|
997
|
+
type: "function",
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
inputs: [
|
|
1001
|
+
{
|
|
1002
|
+
internalType: "uint24",
|
|
1003
|
+
name: "_maxPercentage",
|
|
1004
|
+
type: "uint24",
|
|
1005
|
+
},
|
|
1006
|
+
],
|
|
1007
|
+
name: "setMaxLiquidityPercentageSwap",
|
|
1008
|
+
outputs: [],
|
|
1009
|
+
stateMutability: "nonpayable",
|
|
1010
|
+
type: "function",
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
inputs: [
|
|
1014
|
+
{
|
|
1015
|
+
internalType: "uint32",
|
|
1016
|
+
name: "_collectInterestGasCost",
|
|
1017
|
+
type: "uint32",
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
internalType: "uint32",
|
|
1021
|
+
name: "_rewardTokenCollectCost",
|
|
1022
|
+
type: "uint32",
|
|
1023
|
+
},
|
|
1024
|
+
],
|
|
1025
|
+
name: "setcollectInterestGasCostParams",
|
|
1026
|
+
outputs: [],
|
|
1027
|
+
stateMutability: "nonpayable",
|
|
1028
|
+
type: "function",
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
inputs: [
|
|
1032
|
+
{
|
|
1033
|
+
internalType: "uint256",
|
|
1034
|
+
name: "_amount",
|
|
1035
|
+
type: "uint256",
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
internalType: "uint256",
|
|
1039
|
+
name: "_donationPer",
|
|
1040
|
+
type: "uint256",
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
internalType: "bool",
|
|
1044
|
+
name: "_inInterestToken",
|
|
1045
|
+
type: "bool",
|
|
1046
|
+
},
|
|
1047
|
+
],
|
|
1048
|
+
name: "stake",
|
|
1049
|
+
outputs: [],
|
|
1050
|
+
stateMutability: "nonpayable",
|
|
1051
|
+
type: "function",
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
inputs: [],
|
|
1055
|
+
name: "symbol",
|
|
1056
|
+
outputs: [
|
|
1057
|
+
{
|
|
1058
|
+
internalType: "string",
|
|
1059
|
+
name: "",
|
|
1060
|
+
type: "string",
|
|
1061
|
+
},
|
|
1062
|
+
],
|
|
1063
|
+
stateMutability: "view",
|
|
1064
|
+
type: "function",
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
inputs: [],
|
|
1068
|
+
name: "token",
|
|
1069
|
+
outputs: [
|
|
1070
|
+
{
|
|
1071
|
+
internalType: "contract ERC20",
|
|
1072
|
+
name: "",
|
|
1073
|
+
type: "address",
|
|
1074
|
+
},
|
|
1075
|
+
],
|
|
1076
|
+
stateMutability: "view",
|
|
1077
|
+
type: "function",
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
inputs: [],
|
|
1081
|
+
name: "tokenDecimalDifference",
|
|
1082
|
+
outputs: [
|
|
1083
|
+
{
|
|
1084
|
+
internalType: "uint8",
|
|
1085
|
+
name: "",
|
|
1086
|
+
type: "uint8",
|
|
1087
|
+
},
|
|
1088
|
+
],
|
|
1089
|
+
stateMutability: "view",
|
|
1090
|
+
type: "function",
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
inputs: [
|
|
1094
|
+
{
|
|
1095
|
+
internalType: "uint256",
|
|
1096
|
+
name: "",
|
|
1097
|
+
type: "uint256",
|
|
1098
|
+
},
|
|
1099
|
+
],
|
|
1100
|
+
name: "tokenToDaiSwapPath",
|
|
1101
|
+
outputs: [
|
|
1102
|
+
{
|
|
1103
|
+
internalType: "address",
|
|
1104
|
+
name: "",
|
|
1105
|
+
type: "address",
|
|
1106
|
+
},
|
|
1107
|
+
],
|
|
1108
|
+
stateMutability: "view",
|
|
1109
|
+
type: "function",
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
inputs: [],
|
|
1113
|
+
name: "tokenUsdOracle",
|
|
1114
|
+
outputs: [
|
|
1115
|
+
{
|
|
1116
|
+
internalType: "address",
|
|
1117
|
+
name: "",
|
|
1118
|
+
type: "address",
|
|
1119
|
+
},
|
|
1120
|
+
],
|
|
1121
|
+
stateMutability: "view",
|
|
1122
|
+
type: "function",
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
inputs: [
|
|
1126
|
+
{
|
|
1127
|
+
internalType: "uint256",
|
|
1128
|
+
name: "_amount",
|
|
1129
|
+
type: "uint256",
|
|
1130
|
+
},
|
|
1131
|
+
],
|
|
1132
|
+
name: "tokenWorthIniToken",
|
|
1133
|
+
outputs: [
|
|
1134
|
+
{
|
|
1135
|
+
internalType: "uint256",
|
|
1136
|
+
name: "tokenWorth",
|
|
1137
|
+
type: "uint256",
|
|
1138
|
+
},
|
|
1139
|
+
],
|
|
1140
|
+
stateMutability: "view",
|
|
1141
|
+
type: "function",
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
inputs: [],
|
|
1145
|
+
name: "totalEffectiveStakes",
|
|
1146
|
+
outputs: [
|
|
1147
|
+
{
|
|
1148
|
+
internalType: "uint256",
|
|
1149
|
+
name: "",
|
|
1150
|
+
type: "uint256",
|
|
1151
|
+
},
|
|
1152
|
+
],
|
|
1153
|
+
stateMutability: "view",
|
|
1154
|
+
type: "function",
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
inputs: [],
|
|
1158
|
+
name: "totalProductivity",
|
|
1159
|
+
outputs: [
|
|
1160
|
+
{
|
|
1161
|
+
internalType: "uint256",
|
|
1162
|
+
name: "",
|
|
1163
|
+
type: "uint256",
|
|
1164
|
+
},
|
|
1165
|
+
],
|
|
1166
|
+
stateMutability: "view",
|
|
1167
|
+
type: "function",
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
inputs: [],
|
|
1171
|
+
name: "totalSupply",
|
|
1172
|
+
outputs: [
|
|
1173
|
+
{
|
|
1174
|
+
internalType: "uint256",
|
|
1175
|
+
name: "",
|
|
1176
|
+
type: "uint256",
|
|
1177
|
+
},
|
|
1178
|
+
],
|
|
1179
|
+
stateMutability: "view",
|
|
1180
|
+
type: "function",
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
inputs: [
|
|
1184
|
+
{
|
|
1185
|
+
internalType: "address",
|
|
1186
|
+
name: "recipient",
|
|
1187
|
+
type: "address",
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
internalType: "uint256",
|
|
1191
|
+
name: "amount",
|
|
1192
|
+
type: "uint256",
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
name: "transfer",
|
|
1196
|
+
outputs: [
|
|
1197
|
+
{
|
|
1198
|
+
internalType: "bool",
|
|
1199
|
+
name: "",
|
|
1200
|
+
type: "bool",
|
|
1201
|
+
},
|
|
1202
|
+
],
|
|
1203
|
+
stateMutability: "nonpayable",
|
|
1204
|
+
type: "function",
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
inputs: [
|
|
1208
|
+
{
|
|
1209
|
+
internalType: "address",
|
|
1210
|
+
name: "sender",
|
|
1211
|
+
type: "address",
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
internalType: "address",
|
|
1215
|
+
name: "recipient",
|
|
1216
|
+
type: "address",
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
internalType: "uint256",
|
|
1220
|
+
name: "amount",
|
|
1221
|
+
type: "uint256",
|
|
1222
|
+
},
|
|
1223
|
+
],
|
|
1224
|
+
name: "transferFrom",
|
|
1225
|
+
outputs: [
|
|
1226
|
+
{
|
|
1227
|
+
internalType: "bool",
|
|
1228
|
+
name: "",
|
|
1229
|
+
type: "bool",
|
|
1230
|
+
},
|
|
1231
|
+
],
|
|
1232
|
+
stateMutability: "nonpayable",
|
|
1233
|
+
type: "function",
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
inputs: [],
|
|
1237
|
+
name: "uniswapContract",
|
|
1238
|
+
outputs: [
|
|
1239
|
+
{
|
|
1240
|
+
internalType: "contract Uniswap",
|
|
1241
|
+
name: "",
|
|
1242
|
+
type: "address",
|
|
1243
|
+
},
|
|
1244
|
+
],
|
|
1245
|
+
stateMutability: "view",
|
|
1246
|
+
type: "function",
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
inputs: [],
|
|
1250
|
+
name: "updateAvatar",
|
|
1251
|
+
outputs: [],
|
|
1252
|
+
stateMutability: "nonpayable",
|
|
1253
|
+
type: "function",
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
inputs: [
|
|
1257
|
+
{
|
|
1258
|
+
internalType: "address",
|
|
1259
|
+
name: "",
|
|
1260
|
+
type: "address",
|
|
1261
|
+
},
|
|
1262
|
+
],
|
|
1263
|
+
name: "users",
|
|
1264
|
+
outputs: [
|
|
1265
|
+
{
|
|
1266
|
+
internalType: "uint256",
|
|
1267
|
+
name: "amount",
|
|
1268
|
+
type: "uint256",
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
internalType: "uint256",
|
|
1272
|
+
name: "effectiveStakes",
|
|
1273
|
+
type: "uint256",
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
internalType: "uint256",
|
|
1277
|
+
name: "rewardDebt",
|
|
1278
|
+
type: "uint256",
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
internalType: "uint256",
|
|
1282
|
+
name: "rewardEarn",
|
|
1283
|
+
type: "uint256",
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
internalType: "uint256",
|
|
1287
|
+
name: "rewardMinted",
|
|
1288
|
+
type: "uint256",
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
internalType: "uint64",
|
|
1292
|
+
name: "lastRewardTime",
|
|
1293
|
+
type: "uint64",
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
internalType: "uint64",
|
|
1297
|
+
name: "multiplierResetTime",
|
|
1298
|
+
type: "uint64",
|
|
1299
|
+
},
|
|
1300
|
+
],
|
|
1301
|
+
stateMutability: "view",
|
|
1302
|
+
type: "function",
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
inputs: [],
|
|
1306
|
+
name: "withdrawRewards",
|
|
1307
|
+
outputs: [],
|
|
1308
|
+
stateMutability: "nonpayable",
|
|
1309
|
+
type: "function",
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
inputs: [
|
|
1313
|
+
{
|
|
1314
|
+
internalType: "uint256",
|
|
1315
|
+
name: "_amount",
|
|
1316
|
+
type: "uint256",
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
internalType: "bool",
|
|
1320
|
+
name: "_inInterestToken",
|
|
1321
|
+
type: "bool",
|
|
1322
|
+
},
|
|
1323
|
+
],
|
|
1324
|
+
name: "withdrawStake",
|
|
1325
|
+
outputs: [],
|
|
1326
|
+
stateMutability: "nonpayable",
|
|
1327
|
+
type: "function",
|
|
1328
|
+
},
|
|
1329
|
+
];
|
|
1330
|
+
|
|
1331
|
+
const _bytecode =
|
|
1332
|
+
"0x60806040523480156200001157600080fd5b506040516200706638038062007066833981016040819052620000349162000db3565b6200004789898989898989898962000056565b50505050505050505062001036565b62000066898989898989620003bb565b60675460405163bf40fac160e01b815260206004820152600360248201526244414960e81b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b158015620000bf57600080fd5b505afa158015620000d4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000fa919062000eb6565b9050806001600160a01b03168a6001600160a01b03161480620001935750896001600160a01b03168260008151811062000138576200013862000edd565b60200260200101516001600160a01b0316148015620001935750806001600160a01b031682600184516200016d919062000f09565b8151811062000180576200018062000edd565b60200260200101516001600160a01b0316145b620001d45760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840e0c2e8d60a31b60448201526064015b60405180910390fd5b60d880546001600160a01b038086166001600160a01b03199283161790925560d78054928716929091169190911790558151620002199060d990602085019062000b04565b5060675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac19062000262906004016020808252600490820152630434f4d560e41b604082015260600190565b60206040518083038186803b1580156200027b57600080fd5b505afa15801562000290573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b6919062000eb6565b60da80546001600160a01b0319166001600160a01b0392831617905560675460405163bf40fac160e01b815260206004820152600e60248201526d2aa724a9aba0a82fa927aaaa22a960911b604482015291169063bf40fac19060640160206040518083038186803b1580156200032c57600080fd5b505afa15801562000341573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000367919062000eb6565b60db80546001600160a01b0319166001600160a01b039290921691909117905560d88054600160a01b600160e01b03191665249f00003d0960a41b179055620003af62000640565b50505050505050505050565b600054610100900460ff1680620003d5575060005460ff16155b620003f45760405162461bcd60e51b8152600401620001cb9062000f23565b600054610100900460ff1615801562000417576000805461ffff19166101011790555b6200042285620007f5565b60d580546001600160a01b03808a166001600160a01b03199283161790925560d68054928916929091169190911790556200045e84846200081d565b60d5546040805163313ce56760e01b815290516012926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015620004a457600080fd5b505afa158015620004b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004df919062000f71565b60ff161115620005495760405162461bcd60e51b815260206004820152602e60248201527f546f6b656e20646563696d616c732073686f756c64206265206c65737320746860448201526d616e20313820646563696d616c7360901b6064820152608401620001cb565b60d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200059857600080fd5b505afa158015620005ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005d3919062000f71565b620005e090601262000f96565b60a1805460ff191660ff92909216919091179055609f80546001600160401b0319166001600160401b03841617905560d6805462ffffff60a81b1916604b60aa1b179055801562000637576000805461ff00191690555b50505050505050565b60db5460da5460405163095ea7b360e01b81526001600160a01b03928316929091169063095ea7b3906200067d9084906000199060040162000fbc565b602060405180830381600087803b1580156200069857600080fd5b505af1158015620006ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006d3919062000fd5565b5060d55460405163095ea7b360e01b81526001600160a01b039091169063095ea7b3906200070a9084906000199060040162000fbc565b602060405180830381600087803b1580156200072557600080fd5b505af11580156200073a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000760919062000fd5565b5060d55460d65460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926200079b929116906000199060040162000fbc565b602060405180830381600087803b158015620007b657600080fd5b505af1158015620007cb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007f1919062000fd5565b5050565b606780546001600160a01b0319166001600160a01b0383161790556200081a620008a7565b50565b600054610100900460ff168062000837575060005460ff16155b620008565760405162461bcd60e51b8152600401620001cb9062000f23565b600054610100900460ff1615801562000879576000805461ffff19166101011790555b62000883620009f4565b6200088f838362000a65565b8015620008a2576000805461ff00191690555b505050565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156200090657600080fd5b505afa1580156200091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000941919062000eb6565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b1580156200099757600080fd5b505afa158015620009ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009d2919062000eb6565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff168062000a0e575060005460ff16155b62000a2d5760405162461bcd60e51b8152600401620001cb9062000f23565b600054610100900460ff1615801562000a50576000805461ffff19166101011790555b80156200081a576000805461ff001916905550565b600054610100900460ff168062000a7f575060005460ff16155b62000a9e5760405162461bcd60e51b8152600401620001cb9062000f23565b600054610100900460ff1615801562000ac1576000805461ffff19166101011790555b825162000ad690603690602086019062000b6e565b50815162000aec90603790602085019062000b6e565b508015620008a2576000805461ff0019169055505050565b82805482825590600052602060002090810192821562000b5c579160200282015b8281111562000b5c57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000b25565b5062000b6a92915062000beb565b5090565b82805462000b7c9062000ff9565b90600052602060002090601f01602090048101928262000ba0576000855562000b5c565b82601f1062000bbb57805160ff191683800117855562000b5c565b8280016001018555821562000b5c579182015b8281111562000b5c57825182559160200191906001019062000bce565b5b8082111562000b6a576000815560010162000bec565b6001600160a01b03811681146200081a57600080fd5b805162000c258162000c02565b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000c6b5762000c6b62000c2a565b604052919050565b600082601f83011262000c8557600080fd5b81516001600160401b0381111562000ca15762000ca162000c2a565b602062000cb7601f8301601f1916820162000c40565b828152858284870101111562000ccc57600080fd5b60005b8381101562000cec57858101830151828201840152820162000ccf565b8381111562000cfe5760008385840101525b5095945050505050565b80516001600160401b038116811462000c2557600080fd5b600082601f83011262000d3257600080fd5b815160206001600160401b0382111562000d505762000d5062000c2a565b8160051b62000d6182820162000c40565b928352848101820192828101908785111562000d7c57600080fd5b83870192505b8483101562000da857825162000d988162000c02565b8252918301919083019062000d82565b979650505050505050565b60008060008060008060008060006101208a8c03121562000dd357600080fd5b62000dde8a62000c18565b985062000dee60208b0162000c18565b975062000dfe60408b0162000c18565b60608b01519097506001600160401b038082111562000e1c57600080fd5b62000e2a8d838e0162000c73565b975060808c015191508082111562000e4157600080fd5b62000e4f8d838e0162000c73565b965062000e5f60a08d0162000d08565b955062000e6f60c08d0162000c18565b945062000e7f60e08d0162000c18565b93506101008c015191508082111562000e9757600080fd5b5062000ea68c828d0162000d20565b9150509295985092959850929598565b60006020828403121562000ec957600080fd5b815162000ed68162000c02565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101562000f1e5762000f1e62000ef3565b500390565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60006020828403121562000f8457600080fd5b815160ff8116811462000ed657600080fd5b600060ff821660ff84168082101562000fb35762000fb362000ef3565b90039392505050565b6001600160a01b03929092168252602082015260400190565b60006020828403121562000fe857600080fd5b8151801515811462000ed657600080fd5b600181811c908216806200100e57607f821691505b602082108114156200103057634e487b7160e01b600052602260045260246000fd5b50919050565b61602080620010466000396000f3fe608060405234801561001057600080fd5b50600436106102b45760003560e01c806302329a29146102b957806306fdde03146102ce578063095ea7b3146102ec57806309b04fb41461030f5780630cd865ec1461034a578063109d0af81461035d57806316965b9a1461037d57806317a6a40c1461039057806318160ddd146103b15780631b3c90a8146103b95780631ce720f3146103c157806323b872dd146103e057806328e964e9146103f35780632bbbdc8914610435578063313ce567146104485780633745599014610450578063395093511461047e5780633a608032146104915780633e6326fc1461049a578063408cfe24146104ad5780634162169f146104c057806343d93ca0146104d357806346b30ff5146104e65780634a291b01146104ee578063552bada2146104f757806355b8bb251461050a578063561b24631461051d578063574c5c93146105305780635836af9b146105435780635a6d735c146105565780635abea7dc146105695780635aef7de61461057c57806370a082311461058f57806379c65068146105b85780638955e46f146105cb578063899e1b6c146105f757806389eb64261461062257806395d89b41146106355780639c81ff6b1461063d578063a457c2d714610646578063a82415ae14610659578063a87430ba1461066c578063a9059cbb14610704578063a9f8d18114610717578063ad1e5d7514610720578063b0ce7abb14610733578063b0f479a114610746578063b187bd261461074e578063b76e230e14610762578063bea2811514610779578063c7b8981c14610782578063dd62ed3e1461078a578063e1758bd8146107c3578063e319828c146107cb578063e32f1726146107d4578063e660b53f146107e7578063ead8dbd4146107ef578063edb5b86314610802578063f412a6af14610815578063fc0c546a1461083f575b600080fd5b6102cc6102c7366004615356565b610852565b005b6102d6610878565b6040516102e39190615373565b60405180910390f35b6102ff6102fa3660046153ed565b61090a565b60405190151581526020016102e3565b61032261031d366004615419565b610921565b604080519586526020860194909452928401919091526060830152608082015260a0016102e3565b6102cc610358366004615452565b610b9a565b60da54610370906001600160a01b031681565b6040516102e3919061546f565b6102cc61038b3660046155ef565b610d94565b6103a361039e3660046156db565b6110a9565b6040519081526020016102e3565b6035546103a3565b6102cc6111ef565b60a1546103ce9060ff1681565b60405160ff90911681526020016102e3565b6102ff6103ee3660046156f4565b611334565b610420610401366004615452565b6001600160a01b0316600090815260a26020526040902054609a549091565b604080519283526020830191909152016102e3565b6102cc610443366004615747565b6113de565b6103ce611425565b61046361045e366004615452565b6114a7565b604080519384526020840192909252908201526060016102e3565b6102ff61048c3660046153ed565b6115ad565b6103a3609c5481565b606754610370906001600160a01b031681565b60d654610370906001600160a01b031681565b606554610370906001600160a01b031681565b6102cc6104e1366004615775565b6115e9565b6102cc611615565b6103a3609b5481565b6102cc6105053660046153ed565b61174f565b6102cc6105183660046156db565b611886565b6102cc61052b36600461579a565b611896565b6103a361053e3660046157d3565b611edb565b60d854610370906001600160a01b031681565b6103a36105643660046156db565b611f69565b60db54610370906001600160a01b031681565b606654610370906001600160a01b031681565b6103a361059d366004615452565b6001600160a01b031660009081526033602052604090205490565b6102cc6105c63660046153ed565b6120ab565b60d8546105e290600160c01b900463ffffffff1681565b60405163ffffffff90911681526020016102e3565b609f5461060a906001600160401b031681565b6040516001600160401b0390911681526020016102e3565b60d754610370906001600160a01b031681565b6102d66120b5565b6103a3609e5481565b6102ff6106543660046153ed565b6120c4565b6103a36106673660046157d3565b61215d565b6106c361067a366004615452565b60a26020526000908152604090208054600182015460028301546003840154600485015460059095015493949293919290916001600160401b0380821691600160401b90041687565b60408051978852602088019690965294860193909352606085019190915260808401526001600160401b0390811660a08401521660c082015260e0016102e3565b6102ff6107123660046153ed565b612386565b6103a360a05481565b6103a361072e36600461580e565b612393565b6103706107413660046156db565b612423565b61037061244d565b60d6546102ff90600160a01b900460ff1681565b60d8546105e290600160a01b900463ffffffff1681565b6103a3609a5481565b6102cc6124cc565b6103a3610798366004615843565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b610370612657565b6103a3609d5481565b6102cc6107e2366004615871565b6126a3565b6105e2612911565b6102cc6107fd36600461591f565b6129d6565b610420610810366004615452565b61308d565b60d65461082b90600160a81b900462ffffff1681565b60405162ffffff90911681526020016102e3565b60d554610370906001600160a01b031681565b61085a61320b565b60d68054911515600160a01b0260ff60a01b19909216919091179055565b60606036805461088790615944565b80601f01602080910402602001604051908101604052809291908181526020018280546108b390615944565b80156109005780601f106108d557610100808354040283529160200191610900565b820191906000526020600020905b8154815290600101906020018083116108e357829003601f168201915b5050505050905090565b60006109173384846132df565b5060015b92915050565b60d6546040516370a0823160e01b815260009182918291829182916109b0916001600160a01b03909116906370a082319061096090309060040161546f565b60206040518083038186803b15801561097857600080fd5b505afa15801561098c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610564919061597f565b9250866109be576000610a4f565b60d75460d5546040805163313ce56760e01b81529051610a4f936001600160a01b0390811693889391169163313ce56791600480820192602092909190829003018186803b158015610a0f57600080fd5b505afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615998565b60ff16612393565b9150600086610a5f576000610aef565b60d85460da546040516370a0823160e01b8152610aef926001600160a01b039081169216906370a0823190610a9890309060040161546f565b60206040518083038186803b158015610ab057600080fd5b505afa158015610ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae8919061597f565b6012612393565b9050609a548411610b0857600095508594509050610b90565b609a54610b1590856159d1565b945086610b23576000610b81565b60d75460d5546040805163313ce56760e01b815290518493610b77936001600160a01b03918216938b93919092169163313ce567916004808301926020929190829003018186803b158015610a0f57600080fd5b610b8191906159e8565b9150610b8c856110a9565b9550505b9295509295909350565b610ba261320b565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610bd190309060040161546f565b60206040518083038186803b158015610be957600080fd5b505afa158015610bfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c21919061597f565b60d6549091506001600160a01b0383811691161415610cc457609a54158015610c53575060d654600160a01b900460ff165b610cc45760405162461bcd60e51b815260206004820152603760248201527f63616e207265636f7665722069546f6b656e206f6e6c79207768656e2073746160448201527635b2b9903430bb32903132b2b7103bb4ba34323930bbb760491b60648201526084015b60405180910390fd5b60665460405163a9059cbb60e01b81526001600160a01b038481169263a9059cbb92610cf892909116908590600401615a00565b602060405180830381600087803b158015610d1257600080fd5b505af1158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a9190615a19565b610d905760405162461bcd60e51b81526020600482015260176024820152761c9958dbdd995c881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610cbb565b5050565b610da28989898989896126a3565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac190610dd190600401615a36565b60206040518083038186803b158015610de957600080fd5b505afa158015610dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e219190615a53565b9050806001600160a01b03168a6001600160a01b03161480610eb05750896001600160a01b031682600081518110610e5b57610e5b615a70565b60200260200101516001600160a01b0316148015610eb05750806001600160a01b03168260018451610e8d91906159d1565b81518110610e9d57610e9d615a70565b60200260200101516001600160a01b0316145b610eeb5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840e0c2e8d60a31b6044820152606401610cbb565b60d880546001600160a01b038086166001600160a01b03199283161790925560d78054928716929091169190911790558151610f2e9060d990602085019061525a565b5060675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac190610f76906004016020808252600490820152630434f4d560e41b604082015260600190565b60206040518083038186803b158015610f8e57600080fd5b505afa158015610fa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc69190615a53565b60da80546001600160a01b0319166001600160a01b0392831617905560675460405163bf40fac160e01b815291169063bf40fac19061100790600401615a86565b60206040518083038186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110579190615a53565b60db80546001600160a01b0319166001600160a01b039290921691909117905560d88054600160a01b600160e01b03191665249f00003d0960a41b17905561109d613403565b50505050505050505050565b60008060d660009054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b1580156110fa57600080fd5b505afa15801561110e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611132919061597f565b905060008061113f6135a2565b91509150600061114d6135eb565b611155613674565b6111609060126159e8565b61116a91906159d1565b90506001821515146111b0578361118282600a615b92565b61118d85600a615b92565b6111979089615b9e565b6111a19190615b9e565b6111ab9190615bbd565b6111e5565b836111bc82600a615b92565b6111c785600a615b92565b6111d19089615bbd565b6111db9190615b9e565b6111e59190615bbd565b9695505050505050565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b15801561124d57600080fd5b505afa158015611261573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112859190615a53565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b1580156112da57600080fd5b505afa1580156112ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113129190615a53565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b60006113418484846136bc565b6001600160a01b0384166000908152603460209081526040808320338452909152902054828110156113c65760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610cbb565b6113d385338584036132df565b506001949350505050565b6113e661320b565b60d88054600160a01b600160e01b031916600160a01b63ffffffff9485160263ffffffff60c01b191617600160c01b9290931691909102919091179055565b60d5546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561146a57600080fd5b505afa15801561147e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a29190615998565b905090565b60008060006114b4613976565b6001600160a01b03841630141561151e5760405162461bcd60e51b815260206004820152602860248201527f526563697069656e742063616e6e6f7420626520746865207374616b696e672060448201526718dbdb9d1c9858dd60c21b6064820152608401610cbb565b60008061152c600080610921565b5050509150915061153d8287613a62565b604080516001600160a01b038b16815260208101879052908101859052606081018490526080810183905260a0810182905292975090955093507f38c2c21f82a20481909d7aef48247b0743f69728fbb599c274039e2eecf8bb179060c00160405180910390a150509193909250565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916109179185906115e49086906159e8565b6132df565b6115f161320b565b60d6805462ffffff909216600160a81b0262ffffff60a81b19909216919091179055565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac19061164490600401615bdf565b60206040518083038186803b15801561165c57600080fd5b505afa158015611670573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116949190615a53565b90506001600160a01b0381161561174c576040805160018082528183019092526000916020808301908036833701905050905030816000815181106116db576116db615a70565b6001600160a01b03928316602091820292909201015260405163455518ef60e11b815290831690638aaa31de906117189033908590600401615c49565b600060405180830381600087803b15801561173257600080fd5b505af1158015611746573d6000803e3d6000fd5b50505050505b50565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac19061177e90600401615c75565b60206040518083038186803b15801561179657600080fd5b505afa1580156117aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ce9190615a53565b90506000806000836001600160a01b031663d0250144306040518263ffffffff1660e01b8152600401611801919061546f565b60806040518083038186803b15801561181957600080fd5b505afa15801561182d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118519190615c9b565b5092509250925061187d86868563ffffffff16856001600160401b0316856001600160401b03166141dc565b50505050505050565b6118908130613a62565b50505050565b600260a35414156118b95760405162461bcd60e51b8152600401610cbb90615cfa565b600260a35560d654600160a01b900460ff161561190c5760405162461bcd60e51b815260206004820152601160248201527014dd185ada5b99c81a5cc81c185d5cd959607a1b6044820152606401610cbb565b8115806119195750816064145b6119745760405162461bcd60e51b815260206004820152602660248201527f446f6e6174696f6e2070657263656e746167652073686f756c6420626520302060448201526506f72203130360d41b6064820152608401610cbb565b600083116119d65760405162461bcd60e51b815260206004820152602960248201527f596f75206e65656420746f207374616b65206120706f73697469766520746f6b604482015268195b88185b5bdd5b9d60ba1b6064820152608401610cbb565b806119ec5760d5546001600160a01b03166119f9565b60d6546001600160a01b03165b6001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101869052606401602060405180830381600087803b158015611a5657600080fd5b505af1158015611a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8e9190615a19565b611afd5760405162461bcd60e51b815260206004820152603a60248201527f7472616e7366657246726f6d206661696c65642c206d616b652073757265207960448201527937ba9030b8383937bb32b2103a37b5b2b7103a3930b739b332b960311b6064820152608401610cbb565b80611b085782611b11565b611b1183611f69565b925080611b2157611b2183614237565b611b2b3384614310565b60675460405163bf40fac160e01b8152600091829182916001600160a01b03169063bf40fac190611b5e90600401615c75565b60206040518083038186803b158015611b7657600080fd5b505afa158015611b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bae9190615a53565b6001600160a01b031663d0250144306040518263ffffffff1660e01b8152600401611bd9919061546f565b60806040518083038186803b158015611bf157600080fd5b505afa158015611c05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c299190615c9b565b50925092509250611c5c611c3a3390565b878563ffffffff16856001600160401b0316856001600160401b03168a6143dd565b5060675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac190611c8c90600401615bdf565b60206040518083038186803b158015611ca457600080fd5b505afa158015611cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdc9190615a53565b90506001600160a01b03811615611e865760d5546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015611d3257600080fd5b505afa158015611d46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6a9190615998565b60ff16601214611e1f5760d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611dc257600080fd5b505afa158015611dd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dfa9190615998565b611e05906012615d31565b611e1090600a615d54565b611e1a9089615b9e565b611e21565b875b60405163a39b215360e01b81529091506001600160a01b0383169063a39b215390611e529033908590600401615a00565b600060405180830381600087803b158015611e6c57600080fd5b505af1158015611e80573d6000803e3d6000fd5b50505050505b60d55460405133917f5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd791611ec5916001600160a01b0316908b90615a00565b60405180910390a25050600160a3555050505050565b6001600160a01b038416600090815260a260205260408120611efb613976565b611f06858585614438565b611f16868260000154600161453a565b60038101805460009182905560048301805491928392611f379084906159e8565b9091555050609d54611f4a9082906159e8565b609d55611f5e662386f26fc1000082615bbd565b979650505050505050565b60d6546040805163182df0f560e01b815290516000926001600160a01b0316918391839163182df0f5916004808301926020929190829003018186803b158015611fb257600080fd5b505afa158015611fc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fea919061597f565b9050600080611ff76135a2565b9150915060006120056135eb565b61200d613674565b6120189060126159e8565b61202291906159d1565b9050600060018315151461206a5761203b82600a615b92565b8561204786600a615b92565b612051908b615bbd565b61205b9190615b9e565b6120659190615bbd565b61209f565b61207582600a615b92565b8561208186600a615b92565b61208b908b615b9e565b6120959190615b9e565b61209f9190615bbd565b98975050505050505050565b610d908282614310565b60606037805461088790615944565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156121465760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610cbb565b61215333858584036132df565b5060019392505050565b6001600160a01b038416600090815260a260209081526040808320815160e081018352815481526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600501546001600160401b0380821660a0840152600160401b9091041660c0820152609c54609b548390158015906121e85750854310155b80156121f45750438510155b1561237657600060a0544361220991906159d1565b9050600061221e89662386f26fc10000615b9e565b6122289083615b9e565b9050600080600061223888614861565b60a15492955090935091506122519060ff16600a615d54565b609b5461225e9190615b9e565b61227385676765c793fa10079d601b1b615b9e565b61227d9190615bbd565b61228790886159e8565b965087831561236f57604081015160a154676765c793fa10079d601b1b908a906122b59060ff16600a615d54565b84602001516122c49190615b9e565b6122ce9190615b9e565b6122d89190615bbd565b6122e291906159d1565b965060006122f885670de0b6b3a7640000615b9e565b61230d89676765c793fa10079d601b1b615b9e565b6123179190615bbd565b905064174876e8008161232b856064615b9e565b600a612338886064615b9e565b612343906005615b9e565b61234d9190615bbd565b61235791906159e8565b6123619190615b9e565b61236b9190615bbd565b9750505b5050505050505b80836060015161209f91906159e8565b60006109173384846136bc565b6000808490506000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156123d457600080fd5b505afa1580156123e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061240c919061597f565b905061241984600a615b92565b6111db8683615b9e565b60d9818154811061243357600080fd5b6000918252602090912001546001600160a01b0316905081565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac19061247c90600401615a86565b60206040518083038186803b15801561249457600080fd5b505afa1580156124a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a29190615a53565b600260a35414156124ef5760405162461bcd60e51b8152600401610cbb90615cfa565b600260a35560675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac19061252290600401615c75565b60206040518083038186803b15801561253a57600080fd5b505afa15801561254e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125729190615a53565b60675460405163bf40fac160e01b81526001600160a01b039283169263f03b289092169063bf40fac1906125a890600401615d63565b60206040518083038186803b1580156125c057600080fd5b505afa1580156125d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f89190615a53565b336040518363ffffffff1660e01b8152600401612616929190615d81565b600060405180830381600087803b15801561263057600080fd5b505af1158015612644573d6000803e3d6000fd5b50505050612650611615565b600160a355565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640161247c565b600054610100900460ff16806126bc575060005460ff16155b6126d85760405162461bcd60e51b8152600401610cbb90615d9b565b600054610100900460ff161580156126fa576000805461ffff19166101011790555b61270385614910565b60d580546001600160a01b03808a166001600160a01b03199283161790925560d680549289169290911691909117905561273d8484614933565b60d5546040805163313ce56760e01b815290516012926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561278257600080fd5b505afa158015612796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ba9190615998565b60ff1611156128225760405162461bcd60e51b815260206004820152602e60248201527f546f6b656e20646563696d616c732073686f756c64206265206c65737320746860448201526d616e20313820646563696d616c7360901b6064820152608401610cbb565b60d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561287057600080fd5b505afa158015612884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a89190615998565b6128b3906012615d31565b60a1805460ff191660ff92909216919091179055609f80546001600160401b0319166001600160401b03841617905560d6805462ffffff60a81b1916604b60aa1b179055801561187d576000805461ff001916905550505050505050565b60da546040516370a0823160e01b815260009182916001600160a01b03909116906370a082319061294690309060040161546f565b60206040518083038186803b15801561295e57600080fd5b505afa158015612972573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612996919061597f565b905080156129c15760d8546129bb90600160a01b900463ffffffff1662030d40615de9565b91505090565b505060d854600160a01b900463ffffffff1690565b600260a35414156129f95760405162461bcd60e51b8152600401610cbb90615cfa565b600260a35560008115612abc576000612a1184611f69565b60d65460405163a9059cbb60e01b81529192506001600160a01b03169063a9059cbb90612a449033908890600401615a00565b602060405180830381600087803b158015612a5e57600080fd5b505af1158015612a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a969190615a19565b612ab25760405162461bcd60e51b8152600401610cbb90615e11565b9250829050612bf6565b5081612ac7816149b3565b60d5546040516370a0823160e01b81526000916001600160a01b0316906370a0823190612af890309060040161546f565b60206040518083038186803b158015612b1057600080fd5b505afa158015612b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b48919061597f565b905081811015612b56578091505b60d5546001600160a01b031663a9059cbb33846040518363ffffffff1660e01b8152600401612b86929190615a00565b602060405180830381600087803b158015612ba057600080fd5b505af1158015612bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bd89190615a19565b612bf45760405162461bcd60e51b8152600401610cbb90615e11565b505b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac190612c2590600401615c75565b60206040518083038186803b158015612c3d57600080fd5b505afa158015612c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c759190615a53565b9050612c813385614a4e565b6000806000836001600160a01b031663d0250144306040518263ffffffff1660e01b8152600401612cb2919061546f565b60806040518083038186803b158015612cca57600080fd5b505afa158015612cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d029190615c9b565b50925092509250612d34612d133390565b888563ffffffff16856001600160401b0316856001600160401b03166141dc565b5060675460405163bf40fac160e01b81526001600160a01b038087169263f03b28909291169063bf40fac190612d6c90600401615d63565b60206040518083038186803b158015612d8457600080fd5b505afa158015612d98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dbc9190615a53565b336040518363ffffffff1660e01b8152600401612dda929190615d81565b600060405180830381600087803b158015612df457600080fd5b505af1158015612e08573d6000803e3d6000fd5b505060675460405163bf40fac160e01b8152600093506001600160a01b03909116915063bf40fac190612e3d90600401615bdf565b60206040518083038186803b158015612e5557600080fd5b505afa158015612e69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8d9190615a53565b90506001600160a01b038116156130375760d5546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015612ee357600080fd5b505afa158015612ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f1b9190615998565b60ff16601214612fd05760d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612f7357600080fd5b505afa158015612f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fab9190615998565b612fb6906012615d31565b612fc190600a615d54565b612fcb908a615b9e565b612fd2565b885b604051631f22c54760e11b81529091506001600160a01b03831690633e458a8e906130039033908590600401615a00565b600060405180830381600087803b15801561301d57600080fd5b505af1158015613031573d6000803e3d6000fd5b50505050505b60d55460405133917f89b2bca2609b9ce42215fdd646f9162cdfb9c1620c93db1cc6302479489d3f3291613076916001600160a01b0316908a90615a00565b60405180910390a25050600160a355505050505050565b60675460405163bf40fac160e01b815260009182918291829182916001600160a01b03169063bf40fac1906130c490600401615c75565b60206040518083038186803b1580156130dc57600080fd5b505afa1580156130f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131149190615a53565b6001600160a01b031663d0250144306040518263ffffffff1660e01b815260040161313f919061546f565b60806040518083038186803b15801561315757600080fd5b505afa15801561316b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061318f9190615c9b565b5092509250925060006131bc878563ffffffff16856001600160401b0316856001600160401b031661215d565b6001600160a01b038816600090815260a260205260409020600401549091506131ed90662386f26fc1000090615bbd565b6131fe662386f26fc1000083615bbd565b9550955050505050915091565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b15801561324f57600080fd5b505afa158015613263573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132879190615a53565b6001600160a01b0316146132dd5760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610cbb565b565b6001600160a01b0383166133415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610cbb565b6001600160a01b0382166133a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610cbb565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60db5460da5460405163095ea7b360e01b81526001600160a01b03928316929091169063095ea7b39061343e90849060001990600401615a00565b602060405180830381600087803b15801561345857600080fd5b505af115801561346c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134909190615a19565b5060d55460405163095ea7b360e01b81526001600160a01b039091169063095ea7b3906134c590849060001990600401615a00565b602060405180830381600087803b1580156134df57600080fd5b505af11580156134f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135179190615a19565b5060d55460d65460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926135509291169060001990600401615a00565b602060405180830381600087803b15801561356a57600080fd5b505af115801561357e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d909190615a19565b60008060006135af613674565b905060006135bb6135eb565b905060008183116135d5576135d083836159d1565b6135df565b6135df82846159d1565b95919092119350915050565b60d6546040805163313ce56760e01b815290516000926001600160a01b031691829163313ce56791600480820192602092909190829003018186803b15801561363357600080fd5b505afa158015613647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061366b9190615998565b60ff1691505090565b60d5546040805163313ce56760e01b815290516000926001600160a01b031691829163313ce56791600480820192602092909190829003018186803b15801561363357600080fd5b6136c7838383614b8a565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac1906136f690600401615bdf565b60206040518083038186803b15801561370e57600080fd5b505afa158015613722573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137469190615a53565b60675460405163bf40fac160e01b8152919250600091829182916001600160a01b039091169063bf40fac19061377e90600401615c75565b60206040518083038186803b15801561379657600080fd5b505afa1580156137aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ce9190615a53565b6001600160a01b031663d0250144306040518263ffffffff1660e01b81526004016137f9919061546f565b60806040518083038186803b15801561381157600080fd5b505afa158015613825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138499190615c9b565b5092509250925061387587868563ffffffff16856001600160401b0316856001600160401b03166141dc565b5061389d86868563ffffffff16856001600160401b0316856001600160401b031660006143dd565b506001600160a01b0384161561187d57604051631f22c54760e11b81526001600160a01b03851690633e458a8e906138db908a908990600401615a00565b600060405180830381600087803b1580156138f557600080fd5b505af1158015613909573d6000803e3d6000fd5b505060405163a39b215360e01b81526001600160a01b038716925063a39b2153915061393b9089908990600401615a00565b600060405180830381600087803b15801561395557600080fd5b505af1158015613969573d6000803e3d6000fd5b5050505050505050505050565b60675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac1906139a490600401615c75565b60206040518083038186803b1580156139bc57600080fd5b505afa1580156139d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139f49190615a53565b6001600160a01b0316336001600160a01b0316146132dd5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c792046756e644d616e616765722063616e2063616c6c2074686973206d604482015264195d1a1bd960da1b6064820152608401610cbb565b60da546040516370a0823160e01b81526000918291829182916001600160a01b03909116906370a0823190613a9b90309060040161546f565b60206040518083038186803b158015613ab357600080fd5b505afa158015613ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613aeb919061597f565b905060008115613dba576040805160038082526080820190925260009160208201606080368337505060da5482519293506001600160a01b031691839150600090613b3857613b38615a70565b6001600160a01b0392831660209182029290920181019190915260db54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015613b8c57600080fd5b505afa158015613ba0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc49190615a53565b81600181518110613bd757613bd7615a70565b6001600160a01b03928316602091820292909201015260675460405163bf40fac160e01b815291169063bf40fac190613c1290600401615a36565b60206040518083038186803b158015613c2a57600080fd5b505afa158015613c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c629190615a53565b81600281518110613c7557613c75615a70565b6001600160a01b0392831660209182029290920181019190915260da5460db54604080516315ab88c960e31b8152905173__$a7857c79f7039505337147dc025cce365e$__9563f10a60ab9530958216949091169263ad5c46489260048083019392829003018186803b158015613ceb57600080fd5b505afa158015613cff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d239190615a53565b8760d660159054906101000a900462ffffff166040518663ffffffff1660e01b8152600401613d56959493929190615e43565b60206040518083038186803b158015613d6e57600080fd5b505af4158015613d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613da6919061597f565b9450613db630828760008b614d46565b9150505b613dc387611f69565b60675460405163bf40fac160e01b81529196506001600160a01b03169063bf40fac190613df290600401615d63565b60206040518083038186803b158015613e0a57600080fd5b505afa158015613e1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e429190615a53565b60d6546001600160a01b0390811691161415613f3b5760d65460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90613e8a9089908b90600401615a00565b602060405180830381600087803b158015613ea457600080fd5b505af1158015613eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613edc9190615a19565b613f225760405162461bcd60e51b815260206004820152601760248201527618dbdb1b1958dd081d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610cbb565b8484613f2e83836159e8565b94509450945050506141d5565b60d55460d9805460009273__$a7857c79f7039505337147dc025cce365e$__9263f10a60ab9230926001600160a01b031691906001908110613f7f57613f7f615a70565b60009182526020909120015460d65460405160e086901b6001600160e01b0319168152613fca9493926001600160a01b0316918d91600160a81b90910462ffffff1690600401615e43565b60206040518083038186803b158015613fe257600080fd5b505af4158015613ff6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061401a919061597f565b90508086111561403357809550614030866110a9565b97505b60d65460405163db006a7560e01b8152600481018a90526001600160a01b039091169063db006a7590602401602060405180830381600087803b15801561407957600080fd5b505af115801561408d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140b1919061597f565b156140ce5760405162461bcd60e51b8152600401610cbb90615e7b565b60d5546040516370a0823160e01b81526001600160a01b03909116906370a08231906140fe90309060040161546f565b60206040518083038186803b15801561411657600080fd5b505afa15801561412a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061414e919061597f565b955085156141d0576141c360d98054806020026020016040519081016040528092919081815260200182805480156141af57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311614191575b50309493508b9250600091508c9050614d46565b6141cd90836159e8565b91505b509150505b9250925092565b60006141e9848484614438565b6001600160a01b038616600090815260a2602052604090205461421a9087906142139088906159d1565b600161453a565b84609a5461422891906159d1565b609a5550600195945050505050565b60d65460405163140e25ad60e31b8152600481018390526001600160a01b039091169063a0712d6890602401602060405180830381600087803b15801561427d57600080fd5b505af1158015614291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142b5919061597f565b1561174c5760405162461bcd60e51b815260206004820152602560248201527f4d696e74696e672063546f6b656e206661696c65642c2066756e6473207265746044820152641d5c9b995960da1b6064820152608401610cbb565b6001600160a01b0382166143665760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610cbb565b806035600082825461437891906159e8565b90915550506001600160a01b038216600090815260336020526040812080548392906143a59084906159e8565b90915550506040518181526001600160a01b03831690600090600080516020615fcb8339815191529060200160405180910390a35050565b60006143ea858585614438565b6001600160a01b038716600090815260a2602052604090205461441a9088906144149089906159e8565b8461453a565b85609a5461442891906159e8565b609a555060019695505050505050565b609b546144485750504360a05550565b81431015801561445957508160a054105b156144645760a08290555b60008260a0541080156144775750824310155b6144835760a054614485565b825b905060008243116144965743614498565b825b9050838110806144a85750828210155b156144b4575050505050565b60006144c083836159d1565b905060006144d587662386f26fc10000615b9e565b6144df9083615b9e565b60a1549091506144f39060ff16600a615d54565b609b546145009190615b9e565b61451582676765c793fa10079d601b1b615b9e565b61451f9190615bbd565b609c5461452c91906159e8565b609c55505060a05550505050565b6001600160a01b038316600090815260a2602052604090208054600182015480156146e6576040805160e0810182528454815260018501546020820152600285015491810191909152600384015460608201526004840154608082015260058401546001600160401b0380821660a0840152600160401b9091041660c0820152600090819081906145ca90614861565b925092509250826000146146de576002860154609c5460a15460009291676765c793fa10079d601b1b916146029060ff16600a615d54565b61460c9089615b9e565b6146169190615b9e565b6146209190615bbd565b61462a91906159d1565b9050600061464085670de0b6b3a7640000615b9e565b61465583676765c793fa10079d601b1b615b9e565b61465f9190615bbd565b905064174876e80081614673856064615b9e565b600a614680886064615b9e565b61468b906005615b9e565b6146959190615bbd565b61469f91906159e8565b6146a99190615b9e565b6146b39190615bbd565b91508188600301546146c591906159e8565b6003890155609e546146d89083906159e8565b609e5550505b50505061470d565b600583018054600160401b600160801b031916600160401b436001600160401b0316021790555b8185116147a357600583018054600160401b600160801b031916600160401b436001600160401b031602179055811561479e576000828460010154878561475491906159d1565b61475e9190615b9e565b6147689190615bbd565b90508084600101600082825461477e91906159d1565b9250508190555080609b600082825461479791906159d1565b9091555050505b6147ec565b836147ec576147b282866159d1565b8360010160008282546147c591906159e8565b909155506147d5905082866159d1565b609b60008282546147e691906159e8565b90915550505b6005830180546001600160401b031916436001600160401b0316179055848355609c5460a154676765c793fa10079d601b1b919061482e9060ff16600a615d54565b856001015461483d9190615b9e565b6148479190615b9e565b6148519190615bbd565b8360020181905550505050505050565b6000806000808460c001518560a0015161487b9190615eac565b609f5460c08701516001600160401b0392831693506000926148aa928116916148a59116436159d1565b615142565b905060008660a001516001600160401b0316436148c791906159d1565b609f549091506000906001600160401b03168410156148ef576148ea84846159d1565b6148f2565b60005b9050600061490082846159d1565b9299919850919650945050505050565b606780546001600160a01b0319166001600160a01b03831617905561174c6111ef565b600054610100900460ff168061494c575060005460ff16155b6149685760405162461bcd60e51b8152600401610cbb90615d9b565b600054610100900460ff1615801561498a576000805461ffff19166101011790555b61499261515a565b61499c83836151c5565b80156149ae576000805461ff00191690555b505050565b60d65460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e390602401602060405180830381600087803b1580156149f957600080fd5b505af1158015614a0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a31919061597f565b1561174c5760405162461bcd60e51b8152600401610cbb90615e7b565b6001600160a01b038216614aae5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610cbb565b6001600160a01b03821660009081526033602052604090205481811015614b225760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610cbb565b6001600160a01b0383166000908152603360205260408120838303905560358054849290614b519084906159d1565b90915550506040518281526000906001600160a01b03851690600080516020615fcb8339815191529060200160405180910390a3505050565b6001600160a01b038316614bee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610cbb565b6001600160a01b038216614c505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610cbb565b6001600160a01b03831660009081526033602052604090205481811015614cc85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610cbb565b6001600160a01b03808516600090815260336020526040808220858503905591851681529081208054849290614cff9084906159e8565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615fcb83398151915284604051614d3991815260200190565b60405180910390a3611890565b600080866001600160a01b031663b0f479a16040518163ffffffff1660e01b815260040160206040518083038186803b158015614d8257600080fd5b505afa158015614d96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614dba9190615a53565b9050606060006001600160a01b031687600081518110614ddc57614ddc615a70565b60200260200101516001600160a01b03161415614f1757816001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015614e2c57600080fd5b505afa158015614e40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e649190615a53565b87600081518110614e7757614e77615a70565b6001600160a01b039283166020918202929092010152604051637ff36ab560e01b815290831690637ff36ab5908890614eba9089908c908a904290600401615ed4565b6000604051808303818588803b158015614ed357600080fd5b505af1158015614ee7573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052614f109190810190615f09565b905061510e565b60006001600160a01b03168760018951614f3191906159d1565b81518110614f4157614f41615a70565b60200260200101516001600160a01b0316141561508157816001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015614f9157600080fd5b505afa158015614fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614fc99190615a53565b8760018951614fd891906159d1565b81518110614fe857614fe8615a70565b6001600160a01b0392831660209182029290920101526040516318cbafe560e01b8152908316906318cbafe59061502b90899089908c908a904290600401615f8e565b600060405180830381600087803b15801561504557600080fd5b505af1158015615059573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614f109190810190615f09565b6040516338ed173960e01b81526001600160a01b038316906338ed1739906150b590899089908c908a904290600401615f8e565b600060405180830381600087803b1580156150cf57600080fd5b505af11580156150e3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261510b9190810190615f09565b90505b806001825161511d91906159d1565b8151811061512d5761512d615a70565b60200260200101519250505095945050505050565b60008183106151515781615153565b825b9392505050565b600054610100900460ff1680615173575060005460ff16155b61518f5760405162461bcd60e51b8152600401610cbb90615d9b565b600054610100900460ff161580156151b1576000805461ffff19166101011790555b801561174c576000805461ff001916905550565b600054610100900460ff16806151de575060005460ff16155b6151fa5760405162461bcd60e51b8152600401610cbb90615d9b565b600054610100900460ff1615801561521c576000805461ffff19166101011790555b825161522f9060369060208601906152bf565b5081516152439060379060208501906152bf565b5080156149ae576000805461ff0019169055505050565b8280548282559060005260206000209081019282156152af579160200282015b828111156152af57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061527a565b506152bb929150615333565b5090565b8280546152cb90615944565b90600052602060002090601f0160209004810192826152ed57600085556152af565b82601f1061530657805160ff19168380011785556152af565b828001600101855582156152af579182015b828111156152af578251825591602001919060010190615318565b5b808211156152bb5760008155600101615334565b801515811461174c57600080fd5b60006020828403121561536857600080fd5b813561515381615348565b600060208083528351808285015260005b818110156153a057858101830151858201604001528201615384565b818111156153b2576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461174c57600080fd5b80356153e8816153c8565b919050565b6000806040838503121561540057600080fd5b823561540b816153c8565b946020939093013593505050565b6000806040838503121561542c57600080fd5b823561543781615348565b9150602083013561544781615348565b809150509250929050565b60006020828403121561546457600080fd5b8135615153816153c8565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156154c1576154c1615483565b604052919050565b600082601f8301126154da57600080fd5b81356001600160401b038111156154f3576154f3615483565b615506601f8201601f1916602001615499565b81815284602083860101111561551b57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160401b038116811461174c57600080fd5b80356153e881615538565b60006001600160401b0382111561557157615571615483565b5060051b60200190565b600082601f83011261558c57600080fd5b813560206155a161559c83615558565b615499565b82815260059290921b840181019181810190868411156155c057600080fd5b8286015b848110156155e45780356155d7816153c8565b83529183019183016155c4565b509695505050505050565b60008060008060008060008060006101208a8c03121561560e57600080fd5b6156178a6153dd565b985061562560208b016153dd565b975061563360408b016153dd565b965060608a01356001600160401b038082111561564f57600080fd5b61565b8d838e016154c9565b975060808c013591508082111561567157600080fd5b61567d8d838e016154c9565b965061568b60a08d0161554d565b955061569960c08d016153dd565b94506156a760e08d016153dd565b93506101008c01359150808211156156be57600080fd5b506156cb8c828d0161557b565b9150509295985092959850929598565b6000602082840312156156ed57600080fd5b5035919050565b60008060006060848603121561570957600080fd5b8335615714816153c8565b92506020840135615724816153c8565b929592945050506040919091013590565b63ffffffff8116811461174c57600080fd5b6000806040838503121561575a57600080fd5b823561576581615735565b9150602083013561544781615735565b60006020828403121561578757600080fd5b813562ffffff8116811461515357600080fd5b6000806000606084860312156157af57600080fd5b833592506020840135915060408401356157c881615348565b809150509250925092565b600080600080608085870312156157e957600080fd5b84356157f4816153c8565b966020860135965060408601359560600135945092505050565b60008060006060848603121561582357600080fd5b833561582e816153c8565b95602085013595506040909401359392505050565b6000806040838503121561585657600080fd5b8235615861816153c8565b91506020830135615447816153c8565b60008060008060008060c0878903121561588a57600080fd5b8635615895816153c8565b955060208701356158a5816153c8565b945060408701356158b5816153c8565b935060608701356001600160401b03808211156158d157600080fd5b6158dd8a838b016154c9565b945060808901359150808211156158f357600080fd5b5061590089828a016154c9565b92505060a087013561591181615538565b809150509295509295509295565b6000806040838503121561593257600080fd5b82359150602083013561544781615348565b600181811c9082168061595857607f821691505b6020821081141561597957634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561599157600080fd5b5051919050565b6000602082840312156159aa57600080fd5b815160ff8116811461515357600080fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156159e3576159e36159bb565b500390565b600082198211156159fb576159fb6159bb565b500190565b6001600160a01b03929092168252602082015260400190565b600060208284031215615a2b57600080fd5b815161515381615348565b60208082526003908201526244414960e81b604082015260600190565b600060208284031215615a6557600080fd5b8151615153816153c8565b634e487b7160e01b600052603260045260246000fd5b6020808252600e908201526d2aa724a9aba0a82fa927aaaa22a960911b604082015260600190565b600181815b80851115615ae9578160001904821115615acf57615acf6159bb565b80851615615adc57918102915b93841c9390800290615ab3565b509250929050565b600082615b005750600161091b565b81615b0d5750600061091b565b8160018114615b235760028114615b2d57615b49565b600191505061091b565b60ff841115615b3e57615b3e6159bb565b50506001821b61091b565b5060208310610133831016604e8410600b8410161715615b6c575081810a61091b565b615b768383615aae565b8060001904821115615b8a57615b8a6159bb565b029392505050565b60006151538383615af1565b6000816000190483118215151615615bb857615bb86159bb565b500290565b600082615bda57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252600c908201526b4744414f5f5354414b45525360a01b604082015260600190565b600081518084526020808501945080840160005b83811015615c3e5781516001600160a01b031687529582019590820190600101615c19565b509495945050505050565b6001600160a01b0383168152604060208201819052600090615c6d90830184615c05565b949350505050565b6020808252600c908201526b232aa7222fa6a0a720a3a2a960a11b604082015260600190565b60008060008060808587031215615cb157600080fd5b8451615cbc81615735565b6020860151909450615ccd81615538565b6040860151909350615cde81615538565b6060860151909250615cef81615348565b939692955090935050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060ff821660ff841680821015615d4b57615d4b6159bb565b90039392505050565b600061515360ff841683615af1565b6020808252600490820152634344414960e01b604082015260600190565b6001600160a01b0392831681529116602082015260400190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600063ffffffff808316818516808303821115615e0857615e086159bb565b01949350505050565b6020808252601890820152771dda5d1a191c985dc81d1c985b9cd9995c8819985a5b195960421b604082015260600190565b6001600160a01b0395861681529385166020850152919093166040830152606082019290925262ffffff909116608082015260a00190565b6020808252601790820152762330b4b632b2103a37903932b232b2b69031aa37b5b2b760491b604082015260600190565b60006001600160401b0383811690831681811015615ecc57615ecc6159bb565b039392505050565b848152608060208201526000615eed6080830186615c05565b6001600160a01b03949094166040830152506060015292915050565b60006020808385031215615f1c57600080fd5b82516001600160401b03811115615f3257600080fd5b8301601f81018513615f4357600080fd5b8051615f5161559c82615558565b81815260059190911b82018301908381019087831115615f7057600080fd5b928401925b82841015611f5e57835182529284019290840190615f75565b85815284602082015260a060408201526000615fad60a0830186615c05565b6001600160a01b039490941660608301525060800152939250505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b9c797db6dcb4e94b916f51c33fe0a10ac788774ec752b1044f6b715593d4ffa64736f6c63430008080033";
|
|
1333
|
+
|
|
1334
|
+
type GoodCompoundStakingTestConstructorParams =
|
|
1335
|
+
| [
|
|
1336
|
+
linkLibraryAddresses: GoodCompoundStakingTestLibraryAddresses,
|
|
1337
|
+
signer?: Signer
|
|
1338
|
+
]
|
|
1339
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1340
|
+
|
|
1341
|
+
const isSuperArgs = (
|
|
1342
|
+
xs: GoodCompoundStakingTestConstructorParams
|
|
1343
|
+
): xs is ConstructorParameters<typeof ContractFactory> => {
|
|
1344
|
+
return (
|
|
1345
|
+
typeof xs[0] === "string" ||
|
|
1346
|
+
(Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) ||
|
|
1347
|
+
"_isInterface" in xs[0]
|
|
1348
|
+
);
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
export class GoodCompoundStakingTest__factory extends ContractFactory {
|
|
1352
|
+
constructor(...args: GoodCompoundStakingTestConstructorParams) {
|
|
1353
|
+
if (isSuperArgs(args)) {
|
|
1354
|
+
super(...args);
|
|
1355
|
+
} else {
|
|
1356
|
+
const [linkLibraryAddresses, signer] = args;
|
|
1357
|
+
super(
|
|
1358
|
+
_abi,
|
|
1359
|
+
GoodCompoundStakingTest__factory.linkBytecode(linkLibraryAddresses),
|
|
1360
|
+
signer
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
static linkBytecode(
|
|
1366
|
+
linkLibraryAddresses: GoodCompoundStakingTestLibraryAddresses
|
|
1367
|
+
): string {
|
|
1368
|
+
let linkedBytecode = _bytecode;
|
|
1369
|
+
|
|
1370
|
+
linkedBytecode = linkedBytecode.replace(
|
|
1371
|
+
new RegExp("__\\$a7857c79f7039505337147dc025cce365e\\$__", "g"),
|
|
1372
|
+
linkLibraryAddresses[
|
|
1373
|
+
"contracts/staking/UniswapV2SwapHelper.sol:UniswapV2SwapHelper"
|
|
1374
|
+
]
|
|
1375
|
+
.replace(/^0x/, "")
|
|
1376
|
+
.toLowerCase()
|
|
1377
|
+
);
|
|
1378
|
+
|
|
1379
|
+
return linkedBytecode;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
deploy(
|
|
1383
|
+
_token: string,
|
|
1384
|
+
_iToken: string,
|
|
1385
|
+
_ns: string,
|
|
1386
|
+
_tokenName: string,
|
|
1387
|
+
_tokenSymbol: string,
|
|
1388
|
+
_maxRewardThreshold: BigNumberish,
|
|
1389
|
+
_tokenUsdOracle: string,
|
|
1390
|
+
_compUsdOracle: string,
|
|
1391
|
+
_swapPath: string[],
|
|
1392
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1393
|
+
): Promise<GoodCompoundStakingTest> {
|
|
1394
|
+
return super.deploy(
|
|
1395
|
+
_token,
|
|
1396
|
+
_iToken,
|
|
1397
|
+
_ns,
|
|
1398
|
+
_tokenName,
|
|
1399
|
+
_tokenSymbol,
|
|
1400
|
+
_maxRewardThreshold,
|
|
1401
|
+
_tokenUsdOracle,
|
|
1402
|
+
_compUsdOracle,
|
|
1403
|
+
_swapPath,
|
|
1404
|
+
overrides || {}
|
|
1405
|
+
) as Promise<GoodCompoundStakingTest>;
|
|
1406
|
+
}
|
|
1407
|
+
getDeployTransaction(
|
|
1408
|
+
_token: string,
|
|
1409
|
+
_iToken: string,
|
|
1410
|
+
_ns: string,
|
|
1411
|
+
_tokenName: string,
|
|
1412
|
+
_tokenSymbol: string,
|
|
1413
|
+
_maxRewardThreshold: BigNumberish,
|
|
1414
|
+
_tokenUsdOracle: string,
|
|
1415
|
+
_compUsdOracle: string,
|
|
1416
|
+
_swapPath: string[],
|
|
1417
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1418
|
+
): TransactionRequest {
|
|
1419
|
+
return super.getDeployTransaction(
|
|
1420
|
+
_token,
|
|
1421
|
+
_iToken,
|
|
1422
|
+
_ns,
|
|
1423
|
+
_tokenName,
|
|
1424
|
+
_tokenSymbol,
|
|
1425
|
+
_maxRewardThreshold,
|
|
1426
|
+
_tokenUsdOracle,
|
|
1427
|
+
_compUsdOracle,
|
|
1428
|
+
_swapPath,
|
|
1429
|
+
overrides || {}
|
|
1430
|
+
);
|
|
1431
|
+
}
|
|
1432
|
+
attach(address: string): GoodCompoundStakingTest {
|
|
1433
|
+
return super.attach(address) as GoodCompoundStakingTest;
|
|
1434
|
+
}
|
|
1435
|
+
connect(signer: Signer): GoodCompoundStakingTest__factory {
|
|
1436
|
+
return super.connect(signer) as GoodCompoundStakingTest__factory;
|
|
1437
|
+
}
|
|
1438
|
+
static readonly bytecode = _bytecode;
|
|
1439
|
+
static readonly abi = _abi;
|
|
1440
|
+
static createInterface(): GoodCompoundStakingTestInterface {
|
|
1441
|
+
return new utils.Interface(_abi) as GoodCompoundStakingTestInterface;
|
|
1442
|
+
}
|
|
1443
|
+
static connect(
|
|
1444
|
+
address: string,
|
|
1445
|
+
signerOrProvider: Signer | Provider
|
|
1446
|
+
): GoodCompoundStakingTest {
|
|
1447
|
+
return new Contract(
|
|
1448
|
+
address,
|
|
1449
|
+
_abi,
|
|
1450
|
+
signerOrProvider
|
|
1451
|
+
) as GoodCompoundStakingTest;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export interface GoodCompoundStakingTestLibraryAddresses {
|
|
1456
|
+
["contracts/staking/UniswapV2SwapHelper.sol:UniswapV2SwapHelper"]: string;
|
|
1457
|
+
}
|