@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,1303 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
GoodCompoundStaking,
|
|
9
|
+
GoodCompoundStakingInterface,
|
|
10
|
+
} from "../GoodCompoundStaking";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: true,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "owner",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: true,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "spender",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
indexed: false,
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "value",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "Approval",
|
|
36
|
+
type: "event",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
anonymous: false,
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
indexed: false,
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "recipient",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
indexed: false,
|
|
49
|
+
internalType: "uint256",
|
|
50
|
+
name: "iTokenGains",
|
|
51
|
+
type: "uint256",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
indexed: false,
|
|
55
|
+
internalType: "uint256",
|
|
56
|
+
name: "tokenGains",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: false,
|
|
61
|
+
internalType: "uint256",
|
|
62
|
+
name: "actualTokenRedeemed",
|
|
63
|
+
type: "uint256",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
indexed: false,
|
|
67
|
+
internalType: "uint256",
|
|
68
|
+
name: "actualRewardTokenEarned",
|
|
69
|
+
type: "uint256",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
indexed: false,
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "interestCollectedInDAI",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "InterestCollected",
|
|
79
|
+
type: "event",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
anonymous: false,
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
indexed: true,
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "staker",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
indexed: false,
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "token",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
indexed: false,
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "value",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
name: "StakeWithdraw",
|
|
104
|
+
type: "event",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
anonymous: false,
|
|
108
|
+
inputs: [
|
|
109
|
+
{
|
|
110
|
+
indexed: true,
|
|
111
|
+
internalType: "address",
|
|
112
|
+
name: "staker",
|
|
113
|
+
type: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
indexed: false,
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "token",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
indexed: false,
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "value",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
name: "Staked",
|
|
129
|
+
type: "event",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
anonymous: false,
|
|
133
|
+
inputs: [
|
|
134
|
+
{
|
|
135
|
+
indexed: true,
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "from",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
indexed: true,
|
|
142
|
+
internalType: "address",
|
|
143
|
+
name: "to",
|
|
144
|
+
type: "address",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
indexed: false,
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
name: "value",
|
|
150
|
+
type: "uint256",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: "Transfer",
|
|
154
|
+
type: "event",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [],
|
|
158
|
+
name: "accAmountPerShare",
|
|
159
|
+
outputs: [
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
stateMutability: "view",
|
|
167
|
+
type: "function",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
inputs: [],
|
|
171
|
+
name: "accumulatedRewards",
|
|
172
|
+
outputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "uint256",
|
|
175
|
+
name: "",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
stateMutability: "view",
|
|
180
|
+
type: "function",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
inputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "address",
|
|
186
|
+
name: "owner",
|
|
187
|
+
type: "address",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
internalType: "address",
|
|
191
|
+
name: "spender",
|
|
192
|
+
type: "address",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
name: "allowance",
|
|
196
|
+
outputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "uint256",
|
|
199
|
+
name: "",
|
|
200
|
+
type: "uint256",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
stateMutability: "view",
|
|
204
|
+
type: "function",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
inputs: [
|
|
208
|
+
{
|
|
209
|
+
internalType: "address",
|
|
210
|
+
name: "spender",
|
|
211
|
+
type: "address",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
internalType: "uint256",
|
|
215
|
+
name: "amount",
|
|
216
|
+
type: "uint256",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
name: "approve",
|
|
220
|
+
outputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "bool",
|
|
223
|
+
name: "",
|
|
224
|
+
type: "bool",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
stateMutability: "nonpayable",
|
|
228
|
+
type: "function",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
inputs: [],
|
|
232
|
+
name: "avatar",
|
|
233
|
+
outputs: [
|
|
234
|
+
{
|
|
235
|
+
internalType: "address",
|
|
236
|
+
name: "",
|
|
237
|
+
type: "address",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
stateMutability: "view",
|
|
241
|
+
type: "function",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
inputs: [
|
|
245
|
+
{
|
|
246
|
+
internalType: "address",
|
|
247
|
+
name: "account",
|
|
248
|
+
type: "address",
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
name: "balanceOf",
|
|
252
|
+
outputs: [
|
|
253
|
+
{
|
|
254
|
+
internalType: "uint256",
|
|
255
|
+
name: "",
|
|
256
|
+
type: "uint256",
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
stateMutability: "view",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
inputs: [],
|
|
264
|
+
name: "claimReputation",
|
|
265
|
+
outputs: [],
|
|
266
|
+
stateMutability: "nonpayable",
|
|
267
|
+
type: "function",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
inputs: [],
|
|
271
|
+
name: "collectInterestGasCost",
|
|
272
|
+
outputs: [
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint32",
|
|
275
|
+
name: "",
|
|
276
|
+
type: "uint32",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
stateMutability: "view",
|
|
280
|
+
type: "function",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
inputs: [
|
|
284
|
+
{
|
|
285
|
+
internalType: "address",
|
|
286
|
+
name: "_recipient",
|
|
287
|
+
type: "address",
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
name: "collectUBIInterest",
|
|
291
|
+
outputs: [
|
|
292
|
+
{
|
|
293
|
+
internalType: "uint256",
|
|
294
|
+
name: "actualTokenRedeemed",
|
|
295
|
+
type: "uint256",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
internalType: "uint256",
|
|
299
|
+
name: "actualRewardTokenRedeemed",
|
|
300
|
+
type: "uint256",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
internalType: "uint256",
|
|
304
|
+
name: "actualDai",
|
|
305
|
+
type: "uint256",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
stateMutability: "nonpayable",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
inputs: [],
|
|
313
|
+
name: "comp",
|
|
314
|
+
outputs: [
|
|
315
|
+
{
|
|
316
|
+
internalType: "contract ERC20",
|
|
317
|
+
name: "",
|
|
318
|
+
type: "address",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
stateMutability: "view",
|
|
322
|
+
type: "function",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
inputs: [],
|
|
326
|
+
name: "compCollectGasCost",
|
|
327
|
+
outputs: [
|
|
328
|
+
{
|
|
329
|
+
internalType: "uint32",
|
|
330
|
+
name: "",
|
|
331
|
+
type: "uint32",
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
stateMutability: "view",
|
|
335
|
+
type: "function",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
inputs: [],
|
|
339
|
+
name: "compUsdOracle",
|
|
340
|
+
outputs: [
|
|
341
|
+
{
|
|
342
|
+
internalType: "address",
|
|
343
|
+
name: "",
|
|
344
|
+
type: "address",
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
stateMutability: "view",
|
|
348
|
+
type: "function",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
inputs: [
|
|
352
|
+
{
|
|
353
|
+
internalType: "bool",
|
|
354
|
+
name: "_returnTokenBalanceInUSD",
|
|
355
|
+
type: "bool",
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
internalType: "bool",
|
|
359
|
+
name: "_returnTokenGainsInUSD",
|
|
360
|
+
type: "bool",
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
name: "currentGains",
|
|
364
|
+
outputs: [
|
|
365
|
+
{
|
|
366
|
+
internalType: "uint256",
|
|
367
|
+
name: "iTokenGains",
|
|
368
|
+
type: "uint256",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
internalType: "uint256",
|
|
372
|
+
name: "tokenGains",
|
|
373
|
+
type: "uint256",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
internalType: "uint256",
|
|
377
|
+
name: "tokenBalance",
|
|
378
|
+
type: "uint256",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
internalType: "uint256",
|
|
382
|
+
name: "balanceInUSD",
|
|
383
|
+
type: "uint256",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
internalType: "uint256",
|
|
387
|
+
name: "tokenGainsInUSD",
|
|
388
|
+
type: "uint256",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
stateMutability: "view",
|
|
392
|
+
type: "function",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
inputs: [],
|
|
396
|
+
name: "dao",
|
|
397
|
+
outputs: [
|
|
398
|
+
{
|
|
399
|
+
internalType: "contract Controller",
|
|
400
|
+
name: "",
|
|
401
|
+
type: "address",
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
stateMutability: "view",
|
|
405
|
+
type: "function",
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
inputs: [],
|
|
409
|
+
name: "decimals",
|
|
410
|
+
outputs: [
|
|
411
|
+
{
|
|
412
|
+
internalType: "uint8",
|
|
413
|
+
name: "",
|
|
414
|
+
type: "uint8",
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
stateMutability: "view",
|
|
418
|
+
type: "function",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
inputs: [
|
|
422
|
+
{
|
|
423
|
+
internalType: "address",
|
|
424
|
+
name: "spender",
|
|
425
|
+
type: "address",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
internalType: "uint256",
|
|
429
|
+
name: "subtractedValue",
|
|
430
|
+
type: "uint256",
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
name: "decreaseAllowance",
|
|
434
|
+
outputs: [
|
|
435
|
+
{
|
|
436
|
+
internalType: "bool",
|
|
437
|
+
name: "",
|
|
438
|
+
type: "bool",
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
stateMutability: "nonpayable",
|
|
442
|
+
type: "function",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
inputs: [],
|
|
446
|
+
name: "getGasCostForInterestTransfer",
|
|
447
|
+
outputs: [
|
|
448
|
+
{
|
|
449
|
+
internalType: "uint32",
|
|
450
|
+
name: "",
|
|
451
|
+
type: "uint32",
|
|
452
|
+
},
|
|
453
|
+
],
|
|
454
|
+
stateMutability: "view",
|
|
455
|
+
type: "function",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
inputs: [
|
|
459
|
+
{
|
|
460
|
+
internalType: "address",
|
|
461
|
+
name: "user",
|
|
462
|
+
type: "address",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
name: "getProductivity",
|
|
466
|
+
outputs: [
|
|
467
|
+
{
|
|
468
|
+
internalType: "uint256",
|
|
469
|
+
name: "",
|
|
470
|
+
type: "uint256",
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
internalType: "uint256",
|
|
474
|
+
name: "",
|
|
475
|
+
type: "uint256",
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
stateMutability: "view",
|
|
479
|
+
type: "function",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
inputs: [],
|
|
483
|
+
name: "getRouter",
|
|
484
|
+
outputs: [
|
|
485
|
+
{
|
|
486
|
+
internalType: "contract Uniswap",
|
|
487
|
+
name: "",
|
|
488
|
+
type: "address",
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
stateMutability: "view",
|
|
492
|
+
type: "function",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
inputs: [
|
|
496
|
+
{
|
|
497
|
+
internalType: "address",
|
|
498
|
+
name: "_oracle",
|
|
499
|
+
type: "address",
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
internalType: "uint256",
|
|
503
|
+
name: "_amount",
|
|
504
|
+
type: "uint256",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
internalType: "uint256",
|
|
508
|
+
name: "_decimals",
|
|
509
|
+
type: "uint256",
|
|
510
|
+
},
|
|
511
|
+
],
|
|
512
|
+
name: "getTokenValueInUSD",
|
|
513
|
+
outputs: [
|
|
514
|
+
{
|
|
515
|
+
internalType: "uint256",
|
|
516
|
+
name: "",
|
|
517
|
+
type: "uint256",
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
stateMutability: "view",
|
|
521
|
+
type: "function",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
inputs: [
|
|
525
|
+
{
|
|
526
|
+
internalType: "address",
|
|
527
|
+
name: "_staker",
|
|
528
|
+
type: "address",
|
|
529
|
+
},
|
|
530
|
+
],
|
|
531
|
+
name: "getUserMintedAndPending",
|
|
532
|
+
outputs: [
|
|
533
|
+
{
|
|
534
|
+
internalType: "uint256",
|
|
535
|
+
name: "",
|
|
536
|
+
type: "uint256",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
internalType: "uint256",
|
|
540
|
+
name: "",
|
|
541
|
+
type: "uint256",
|
|
542
|
+
},
|
|
543
|
+
],
|
|
544
|
+
stateMutability: "view",
|
|
545
|
+
type: "function",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
inputs: [
|
|
549
|
+
{
|
|
550
|
+
internalType: "address",
|
|
551
|
+
name: "user",
|
|
552
|
+
type: "address",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
internalType: "uint256",
|
|
556
|
+
name: "rewardsPerBlock",
|
|
557
|
+
type: "uint256",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
internalType: "uint256",
|
|
561
|
+
name: "blockStart",
|
|
562
|
+
type: "uint256",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
internalType: "uint256",
|
|
566
|
+
name: "blockEnd",
|
|
567
|
+
type: "uint256",
|
|
568
|
+
},
|
|
569
|
+
],
|
|
570
|
+
name: "getUserPendingReward",
|
|
571
|
+
outputs: [
|
|
572
|
+
{
|
|
573
|
+
internalType: "uint256",
|
|
574
|
+
name: "",
|
|
575
|
+
type: "uint256",
|
|
576
|
+
},
|
|
577
|
+
],
|
|
578
|
+
stateMutability: "view",
|
|
579
|
+
type: "function",
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
inputs: [],
|
|
583
|
+
name: "iToken",
|
|
584
|
+
outputs: [
|
|
585
|
+
{
|
|
586
|
+
internalType: "contract ERC20",
|
|
587
|
+
name: "",
|
|
588
|
+
type: "address",
|
|
589
|
+
},
|
|
590
|
+
],
|
|
591
|
+
stateMutability: "view",
|
|
592
|
+
type: "function",
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
inputs: [
|
|
596
|
+
{
|
|
597
|
+
internalType: "uint256",
|
|
598
|
+
name: "_amount",
|
|
599
|
+
type: "uint256",
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
name: "iTokenWorthInToken",
|
|
603
|
+
outputs: [
|
|
604
|
+
{
|
|
605
|
+
internalType: "uint256",
|
|
606
|
+
name: "",
|
|
607
|
+
type: "uint256",
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
stateMutability: "view",
|
|
611
|
+
type: "function",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
inputs: [
|
|
615
|
+
{
|
|
616
|
+
internalType: "address",
|
|
617
|
+
name: "spender",
|
|
618
|
+
type: "address",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
internalType: "uint256",
|
|
622
|
+
name: "addedValue",
|
|
623
|
+
type: "uint256",
|
|
624
|
+
},
|
|
625
|
+
],
|
|
626
|
+
name: "increaseAllowance",
|
|
627
|
+
outputs: [
|
|
628
|
+
{
|
|
629
|
+
internalType: "bool",
|
|
630
|
+
name: "",
|
|
631
|
+
type: "bool",
|
|
632
|
+
},
|
|
633
|
+
],
|
|
634
|
+
stateMutability: "nonpayable",
|
|
635
|
+
type: "function",
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
inputs: [
|
|
639
|
+
{
|
|
640
|
+
internalType: "address",
|
|
641
|
+
name: "_token",
|
|
642
|
+
type: "address",
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
internalType: "address",
|
|
646
|
+
name: "_iToken",
|
|
647
|
+
type: "address",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
internalType: "contract INameService",
|
|
651
|
+
name: "_ns",
|
|
652
|
+
type: "address",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
internalType: "string",
|
|
656
|
+
name: "_tokenName",
|
|
657
|
+
type: "string",
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
internalType: "string",
|
|
661
|
+
name: "_tokenSymbol",
|
|
662
|
+
type: "string",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
internalType: "uint64",
|
|
666
|
+
name: "_maxRewardThreshold",
|
|
667
|
+
type: "uint64",
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
internalType: "address",
|
|
671
|
+
name: "_tokenUsdOracle",
|
|
672
|
+
type: "address",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
internalType: "address",
|
|
676
|
+
name: "_compUsdOracle",
|
|
677
|
+
type: "address",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
internalType: "address[]",
|
|
681
|
+
name: "_tokenToDaiSwapPath",
|
|
682
|
+
type: "address[]",
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
name: "init",
|
|
686
|
+
outputs: [],
|
|
687
|
+
stateMutability: "nonpayable",
|
|
688
|
+
type: "function",
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
inputs: [
|
|
692
|
+
{
|
|
693
|
+
internalType: "address",
|
|
694
|
+
name: "_token",
|
|
695
|
+
type: "address",
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
internalType: "address",
|
|
699
|
+
name: "_iToken",
|
|
700
|
+
type: "address",
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
internalType: "contract INameService",
|
|
704
|
+
name: "_ns",
|
|
705
|
+
type: "address",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
internalType: "string",
|
|
709
|
+
name: "_tokenName",
|
|
710
|
+
type: "string",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "string",
|
|
714
|
+
name: "_tokenSymbol",
|
|
715
|
+
type: "string",
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
internalType: "uint64",
|
|
719
|
+
name: "_maxRewardThreshold",
|
|
720
|
+
type: "uint64",
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
name: "initialize",
|
|
724
|
+
outputs: [],
|
|
725
|
+
stateMutability: "nonpayable",
|
|
726
|
+
type: "function",
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
inputs: [],
|
|
730
|
+
name: "isPaused",
|
|
731
|
+
outputs: [
|
|
732
|
+
{
|
|
733
|
+
internalType: "bool",
|
|
734
|
+
name: "",
|
|
735
|
+
type: "bool",
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
stateMutability: "view",
|
|
739
|
+
type: "function",
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
inputs: [],
|
|
743
|
+
name: "lastRewardBlock",
|
|
744
|
+
outputs: [
|
|
745
|
+
{
|
|
746
|
+
internalType: "uint256",
|
|
747
|
+
name: "",
|
|
748
|
+
type: "uint256",
|
|
749
|
+
},
|
|
750
|
+
],
|
|
751
|
+
stateMutability: "view",
|
|
752
|
+
type: "function",
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
inputs: [],
|
|
756
|
+
name: "maxLiquidityPercentageSwap",
|
|
757
|
+
outputs: [
|
|
758
|
+
{
|
|
759
|
+
internalType: "uint24",
|
|
760
|
+
name: "",
|
|
761
|
+
type: "uint24",
|
|
762
|
+
},
|
|
763
|
+
],
|
|
764
|
+
stateMutability: "view",
|
|
765
|
+
type: "function",
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
inputs: [],
|
|
769
|
+
name: "maxMultiplierThreshold",
|
|
770
|
+
outputs: [
|
|
771
|
+
{
|
|
772
|
+
internalType: "uint64",
|
|
773
|
+
name: "",
|
|
774
|
+
type: "uint64",
|
|
775
|
+
},
|
|
776
|
+
],
|
|
777
|
+
stateMutability: "view",
|
|
778
|
+
type: "function",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
inputs: [],
|
|
782
|
+
name: "mintedRewards",
|
|
783
|
+
outputs: [
|
|
784
|
+
{
|
|
785
|
+
internalType: "uint256",
|
|
786
|
+
name: "",
|
|
787
|
+
type: "uint256",
|
|
788
|
+
},
|
|
789
|
+
],
|
|
790
|
+
stateMutability: "view",
|
|
791
|
+
type: "function",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
inputs: [],
|
|
795
|
+
name: "name",
|
|
796
|
+
outputs: [
|
|
797
|
+
{
|
|
798
|
+
internalType: "string",
|
|
799
|
+
name: "",
|
|
800
|
+
type: "string",
|
|
801
|
+
},
|
|
802
|
+
],
|
|
803
|
+
stateMutability: "view",
|
|
804
|
+
type: "function",
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
inputs: [],
|
|
808
|
+
name: "nameService",
|
|
809
|
+
outputs: [
|
|
810
|
+
{
|
|
811
|
+
internalType: "contract INameService",
|
|
812
|
+
name: "",
|
|
813
|
+
type: "address",
|
|
814
|
+
},
|
|
815
|
+
],
|
|
816
|
+
stateMutability: "view",
|
|
817
|
+
type: "function",
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
inputs: [],
|
|
821
|
+
name: "nativeToken",
|
|
822
|
+
outputs: [
|
|
823
|
+
{
|
|
824
|
+
internalType: "contract IGoodDollar",
|
|
825
|
+
name: "",
|
|
826
|
+
type: "address",
|
|
827
|
+
},
|
|
828
|
+
],
|
|
829
|
+
stateMutability: "view",
|
|
830
|
+
type: "function",
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
inputs: [
|
|
834
|
+
{
|
|
835
|
+
internalType: "bool",
|
|
836
|
+
name: "_isPaused",
|
|
837
|
+
type: "bool",
|
|
838
|
+
},
|
|
839
|
+
],
|
|
840
|
+
name: "pause",
|
|
841
|
+
outputs: [],
|
|
842
|
+
stateMutability: "nonpayable",
|
|
843
|
+
type: "function",
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
inputs: [
|
|
847
|
+
{
|
|
848
|
+
internalType: "contract ERC20",
|
|
849
|
+
name: "_token",
|
|
850
|
+
type: "address",
|
|
851
|
+
},
|
|
852
|
+
],
|
|
853
|
+
name: "recover",
|
|
854
|
+
outputs: [],
|
|
855
|
+
stateMutability: "nonpayable",
|
|
856
|
+
type: "function",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
inputs: [
|
|
860
|
+
{
|
|
861
|
+
internalType: "address",
|
|
862
|
+
name: "user",
|
|
863
|
+
type: "address",
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
internalType: "uint256",
|
|
867
|
+
name: "rewardsPerBlock",
|
|
868
|
+
type: "uint256",
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
internalType: "uint256",
|
|
872
|
+
name: "blockStart",
|
|
873
|
+
type: "uint256",
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
internalType: "uint256",
|
|
877
|
+
name: "blockEnd",
|
|
878
|
+
type: "uint256",
|
|
879
|
+
},
|
|
880
|
+
],
|
|
881
|
+
name: "rewardsMinted",
|
|
882
|
+
outputs: [
|
|
883
|
+
{
|
|
884
|
+
internalType: "uint256",
|
|
885
|
+
name: "",
|
|
886
|
+
type: "uint256",
|
|
887
|
+
},
|
|
888
|
+
],
|
|
889
|
+
stateMutability: "nonpayable",
|
|
890
|
+
type: "function",
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
inputs: [
|
|
894
|
+
{
|
|
895
|
+
internalType: "uint24",
|
|
896
|
+
name: "_maxPercentage",
|
|
897
|
+
type: "uint24",
|
|
898
|
+
},
|
|
899
|
+
],
|
|
900
|
+
name: "setMaxLiquidityPercentageSwap",
|
|
901
|
+
outputs: [],
|
|
902
|
+
stateMutability: "nonpayable",
|
|
903
|
+
type: "function",
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
inputs: [
|
|
907
|
+
{
|
|
908
|
+
internalType: "uint32",
|
|
909
|
+
name: "_collectInterestGasCost",
|
|
910
|
+
type: "uint32",
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
internalType: "uint32",
|
|
914
|
+
name: "_rewardTokenCollectCost",
|
|
915
|
+
type: "uint32",
|
|
916
|
+
},
|
|
917
|
+
],
|
|
918
|
+
name: "setcollectInterestGasCostParams",
|
|
919
|
+
outputs: [],
|
|
920
|
+
stateMutability: "nonpayable",
|
|
921
|
+
type: "function",
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
inputs: [
|
|
925
|
+
{
|
|
926
|
+
internalType: "uint256",
|
|
927
|
+
name: "_amount",
|
|
928
|
+
type: "uint256",
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
internalType: "uint256",
|
|
932
|
+
name: "_donationPer",
|
|
933
|
+
type: "uint256",
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
internalType: "bool",
|
|
937
|
+
name: "_inInterestToken",
|
|
938
|
+
type: "bool",
|
|
939
|
+
},
|
|
940
|
+
],
|
|
941
|
+
name: "stake",
|
|
942
|
+
outputs: [],
|
|
943
|
+
stateMutability: "nonpayable",
|
|
944
|
+
type: "function",
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
inputs: [],
|
|
948
|
+
name: "symbol",
|
|
949
|
+
outputs: [
|
|
950
|
+
{
|
|
951
|
+
internalType: "string",
|
|
952
|
+
name: "",
|
|
953
|
+
type: "string",
|
|
954
|
+
},
|
|
955
|
+
],
|
|
956
|
+
stateMutability: "view",
|
|
957
|
+
type: "function",
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
inputs: [],
|
|
961
|
+
name: "token",
|
|
962
|
+
outputs: [
|
|
963
|
+
{
|
|
964
|
+
internalType: "contract ERC20",
|
|
965
|
+
name: "",
|
|
966
|
+
type: "address",
|
|
967
|
+
},
|
|
968
|
+
],
|
|
969
|
+
stateMutability: "view",
|
|
970
|
+
type: "function",
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
inputs: [],
|
|
974
|
+
name: "tokenDecimalDifference",
|
|
975
|
+
outputs: [
|
|
976
|
+
{
|
|
977
|
+
internalType: "uint8",
|
|
978
|
+
name: "",
|
|
979
|
+
type: "uint8",
|
|
980
|
+
},
|
|
981
|
+
],
|
|
982
|
+
stateMutability: "view",
|
|
983
|
+
type: "function",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
inputs: [
|
|
987
|
+
{
|
|
988
|
+
internalType: "uint256",
|
|
989
|
+
name: "",
|
|
990
|
+
type: "uint256",
|
|
991
|
+
},
|
|
992
|
+
],
|
|
993
|
+
name: "tokenToDaiSwapPath",
|
|
994
|
+
outputs: [
|
|
995
|
+
{
|
|
996
|
+
internalType: "address",
|
|
997
|
+
name: "",
|
|
998
|
+
type: "address",
|
|
999
|
+
},
|
|
1000
|
+
],
|
|
1001
|
+
stateMutability: "view",
|
|
1002
|
+
type: "function",
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
inputs: [],
|
|
1006
|
+
name: "tokenUsdOracle",
|
|
1007
|
+
outputs: [
|
|
1008
|
+
{
|
|
1009
|
+
internalType: "address",
|
|
1010
|
+
name: "",
|
|
1011
|
+
type: "address",
|
|
1012
|
+
},
|
|
1013
|
+
],
|
|
1014
|
+
stateMutability: "view",
|
|
1015
|
+
type: "function",
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
inputs: [
|
|
1019
|
+
{
|
|
1020
|
+
internalType: "uint256",
|
|
1021
|
+
name: "_amount",
|
|
1022
|
+
type: "uint256",
|
|
1023
|
+
},
|
|
1024
|
+
],
|
|
1025
|
+
name: "tokenWorthIniToken",
|
|
1026
|
+
outputs: [
|
|
1027
|
+
{
|
|
1028
|
+
internalType: "uint256",
|
|
1029
|
+
name: "tokenWorth",
|
|
1030
|
+
type: "uint256",
|
|
1031
|
+
},
|
|
1032
|
+
],
|
|
1033
|
+
stateMutability: "view",
|
|
1034
|
+
type: "function",
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
inputs: [],
|
|
1038
|
+
name: "totalEffectiveStakes",
|
|
1039
|
+
outputs: [
|
|
1040
|
+
{
|
|
1041
|
+
internalType: "uint256",
|
|
1042
|
+
name: "",
|
|
1043
|
+
type: "uint256",
|
|
1044
|
+
},
|
|
1045
|
+
],
|
|
1046
|
+
stateMutability: "view",
|
|
1047
|
+
type: "function",
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
inputs: [],
|
|
1051
|
+
name: "totalProductivity",
|
|
1052
|
+
outputs: [
|
|
1053
|
+
{
|
|
1054
|
+
internalType: "uint256",
|
|
1055
|
+
name: "",
|
|
1056
|
+
type: "uint256",
|
|
1057
|
+
},
|
|
1058
|
+
],
|
|
1059
|
+
stateMutability: "view",
|
|
1060
|
+
type: "function",
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
inputs: [],
|
|
1064
|
+
name: "totalSupply",
|
|
1065
|
+
outputs: [
|
|
1066
|
+
{
|
|
1067
|
+
internalType: "uint256",
|
|
1068
|
+
name: "",
|
|
1069
|
+
type: "uint256",
|
|
1070
|
+
},
|
|
1071
|
+
],
|
|
1072
|
+
stateMutability: "view",
|
|
1073
|
+
type: "function",
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
inputs: [
|
|
1077
|
+
{
|
|
1078
|
+
internalType: "address",
|
|
1079
|
+
name: "recipient",
|
|
1080
|
+
type: "address",
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
internalType: "uint256",
|
|
1084
|
+
name: "amount",
|
|
1085
|
+
type: "uint256",
|
|
1086
|
+
},
|
|
1087
|
+
],
|
|
1088
|
+
name: "transfer",
|
|
1089
|
+
outputs: [
|
|
1090
|
+
{
|
|
1091
|
+
internalType: "bool",
|
|
1092
|
+
name: "",
|
|
1093
|
+
type: "bool",
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
|
+
stateMutability: "nonpayable",
|
|
1097
|
+
type: "function",
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
inputs: [
|
|
1101
|
+
{
|
|
1102
|
+
internalType: "address",
|
|
1103
|
+
name: "sender",
|
|
1104
|
+
type: "address",
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
internalType: "address",
|
|
1108
|
+
name: "recipient",
|
|
1109
|
+
type: "address",
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
internalType: "uint256",
|
|
1113
|
+
name: "amount",
|
|
1114
|
+
type: "uint256",
|
|
1115
|
+
},
|
|
1116
|
+
],
|
|
1117
|
+
name: "transferFrom",
|
|
1118
|
+
outputs: [
|
|
1119
|
+
{
|
|
1120
|
+
internalType: "bool",
|
|
1121
|
+
name: "",
|
|
1122
|
+
type: "bool",
|
|
1123
|
+
},
|
|
1124
|
+
],
|
|
1125
|
+
stateMutability: "nonpayable",
|
|
1126
|
+
type: "function",
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
inputs: [],
|
|
1130
|
+
name: "uniswapContract",
|
|
1131
|
+
outputs: [
|
|
1132
|
+
{
|
|
1133
|
+
internalType: "contract Uniswap",
|
|
1134
|
+
name: "",
|
|
1135
|
+
type: "address",
|
|
1136
|
+
},
|
|
1137
|
+
],
|
|
1138
|
+
stateMutability: "view",
|
|
1139
|
+
type: "function",
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
inputs: [],
|
|
1143
|
+
name: "updateAvatar",
|
|
1144
|
+
outputs: [],
|
|
1145
|
+
stateMutability: "nonpayable",
|
|
1146
|
+
type: "function",
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
inputs: [
|
|
1150
|
+
{
|
|
1151
|
+
internalType: "address",
|
|
1152
|
+
name: "",
|
|
1153
|
+
type: "address",
|
|
1154
|
+
},
|
|
1155
|
+
],
|
|
1156
|
+
name: "users",
|
|
1157
|
+
outputs: [
|
|
1158
|
+
{
|
|
1159
|
+
internalType: "uint256",
|
|
1160
|
+
name: "amount",
|
|
1161
|
+
type: "uint256",
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
internalType: "uint256",
|
|
1165
|
+
name: "effectiveStakes",
|
|
1166
|
+
type: "uint256",
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
internalType: "uint256",
|
|
1170
|
+
name: "rewardDebt",
|
|
1171
|
+
type: "uint256",
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
internalType: "uint256",
|
|
1175
|
+
name: "rewardEarn",
|
|
1176
|
+
type: "uint256",
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
internalType: "uint256",
|
|
1180
|
+
name: "rewardMinted",
|
|
1181
|
+
type: "uint256",
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
internalType: "uint64",
|
|
1185
|
+
name: "lastRewardTime",
|
|
1186
|
+
type: "uint64",
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
internalType: "uint64",
|
|
1190
|
+
name: "multiplierResetTime",
|
|
1191
|
+
type: "uint64",
|
|
1192
|
+
},
|
|
1193
|
+
],
|
|
1194
|
+
stateMutability: "view",
|
|
1195
|
+
type: "function",
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
inputs: [],
|
|
1199
|
+
name: "withdrawRewards",
|
|
1200
|
+
outputs: [],
|
|
1201
|
+
stateMutability: "nonpayable",
|
|
1202
|
+
type: "function",
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
inputs: [
|
|
1206
|
+
{
|
|
1207
|
+
internalType: "uint256",
|
|
1208
|
+
name: "_amount",
|
|
1209
|
+
type: "uint256",
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
internalType: "bool",
|
|
1213
|
+
name: "_inInterestToken",
|
|
1214
|
+
type: "bool",
|
|
1215
|
+
},
|
|
1216
|
+
],
|
|
1217
|
+
name: "withdrawStake",
|
|
1218
|
+
outputs: [],
|
|
1219
|
+
stateMutability: "nonpayable",
|
|
1220
|
+
type: "function",
|
|
1221
|
+
},
|
|
1222
|
+
];
|
|
1223
|
+
|
|
1224
|
+
const _bytecode =
|
|
1225
|
+
"0x608060405234801561001057600080fd5b50615e7780620000216000396000f3fe608060405234801561001057600080fd5b50600436106102935760003560e01c806302329a291461029857806306fdde03146102ad578063095ea7b3146102cb57806309b04fb4146102ee5780630cd865ec14610329578063109d0af81461033c57806316965b9a1461035c57806317a6a40c1461036f57806318160ddd146103905780631b3c90a8146103985780631ce720f3146103a057806323b872dd146103bf57806328e964e9146103d25780632bbbdc8914610414578063313ce56714610427578063374559901461042f578063395093511461045d5780633a608032146104705780633e6326fc14610479578063408cfe241461048c5780634162169f1461049f57806343d93ca0146104b257806346b30ff5146104c55780634a291b01146104cd578063561b2463146104d6578063574c5c93146104e95780635836af9b146104fc5780635a6d735c1461050f5780635abea7dc146105225780635aef7de61461053557806370a08231146105485780638955e46f14610571578063899e1b6c1461059d57806389eb6426146105c857806395d89b41146105db5780639c81ff6b146105e3578063a457c2d7146105ec578063a82415ae146105ff578063a87430ba14610612578063a9059cbb146106aa578063a9f8d181146106bd578063ad1e5d75146106c6578063b0ce7abb146106d9578063b0f479a1146106ec578063b187bd26146106f4578063b76e230e14610708578063bea281151461071f578063c7b8981c14610728578063dd62ed3e14610730578063e1758bd814610769578063e319828c14610771578063e32f17261461077a578063e660b53f1461078d578063ead8dbd414610795578063edb5b863146107a8578063f412a6af146107bb578063fc0c546a146107e5575b600080fd5b6102ab6102a63660046151ad565b6107f8565b005b6102b561081e565b6040516102c291906151ca565b60405180910390f35b6102de6102d9366004615244565b6108b0565b60405190151581526020016102c2565b6103016102fc366004615270565b6108c7565b604080519586526020860194909452928401919091526060830152608082015260a0016102c2565b6102ab6103373660046152a9565b610b40565b60da5461034f906001600160a01b031681565b6040516102c291906152c6565b6102ab61036a366004615446565b610d3a565b61038261037d366004615532565b61104f565b6040519081526020016102c2565b603554610382565b6102ab611195565b60a1546103ad9060ff1681565b60405160ff90911681526020016102c2565b6102de6103cd36600461554b565b6112da565b6103ff6103e03660046152a9565b6001600160a01b0316600090815260a26020526040902054609a549091565b604080519283526020830191909152016102c2565b6102ab61042236600461559e565b611384565b6103ad6113cb565b61044261043d3660046152a9565b61144d565b604080519384526020840192909252908201526060016102c2565b6102de61046b366004615244565b611553565b610382609c5481565b60675461034f906001600160a01b031681565b60d65461034f906001600160a01b031681565b60655461034f906001600160a01b031681565b6102ab6104c03660046155cc565b61158f565b6102ab6115bb565b610382609b5481565b6102ab6104e43660046155f1565b6116f5565b6103826104f736600461562a565b611d3a565b60d85461034f906001600160a01b031681565b61038261051d366004615532565b611dc8565b60db5461034f906001600160a01b031681565b60665461034f906001600160a01b031681565b6103826105563660046152a9565b6001600160a01b031660009081526033602052604090205490565b60d85461058890600160c01b900463ffffffff1681565b60405163ffffffff90911681526020016102c2565b609f546105b0906001600160401b031681565b6040516001600160401b0390911681526020016102c2565b60d75461034f906001600160a01b031681565b6102b5611f0a565b610382609e5481565b6102de6105fa366004615244565b611f19565b61038261060d36600461562a565b611fb2565b6106696106203660046152a9565b60a26020526000908152604090208054600182015460028301546003840154600485015460059095015493949293919290916001600160401b0380821691600160401b90041687565b60408051978852602088019690965294860193909352606085019190915260808401526001600160401b0390811660a08401521660c082015260e0016102c2565b6102de6106b8366004615244565b6121db565b61038260a05481565b6103826106d4366004615665565b6121e8565b61034f6106e7366004615532565b612278565b61034f6122a2565b60d6546102de90600160a01b900460ff1681565b60d85461058890600160a01b900463ffffffff1681565b610382609a5481565b6102ab612321565b61038261073e36600461569a565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61034f6124ac565b610382609d5481565b6102ab6107883660046156c8565b6124f8565b610588612767565b6102ab6107a3366004615776565b61282c565b6103ff6107b63660046152a9565b612ee3565b60d6546107d190600160a81b900462ffffff1681565b60405162ffffff90911681526020016102c2565b60d55461034f906001600160a01b031681565b610800613061565b60d68054911515600160a01b0260ff60a01b19909216919091179055565b60606036805461082d9061579b565b80601f01602080910402602001604051908101604052809291908181526020018280546108599061579b565b80156108a65780601f1061087b576101008083540402835291602001916108a6565b820191906000526020600020905b81548152906001019060200180831161088957829003601f168201915b5050505050905090565b60006108bd338484613135565b5060015b92915050565b60d6546040516370a0823160e01b81526000918291829182918291610956916001600160a01b03909116906370a08231906109069030906004016152c6565b60206040518083038186803b15801561091e57600080fd5b505afa158015610932573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051d91906157d6565b9250866109645760006109f5565b60d75460d5546040805163313ce56760e01b815290516109f5936001600160a01b0390811693889391169163313ce56791600480820192602092909190829003018186803b1580156109b557600080fd5b505afa1580156109c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ed91906157ef565b60ff166121e8565b9150600086610a05576000610a95565b60d85460da546040516370a0823160e01b8152610a95926001600160a01b039081169216906370a0823190610a3e9030906004016152c6565b60206040518083038186803b158015610a5657600080fd5b505afa158015610a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e91906157d6565b60126121e8565b9050609a548411610aae57600095508594509050610b36565b609a54610abb9085615828565b945086610ac9576000610b27565b60d75460d5546040805163313ce56760e01b815290518493610b1d936001600160a01b03918216938b93919092169163313ce567916004808301926020929190829003018186803b1580156109b557600080fd5b610b27919061583f565b9150610b328561104f565b9550505b9295509295909350565b610b48613061565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610b779030906004016152c6565b60206040518083038186803b158015610b8f57600080fd5b505afa158015610ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc791906157d6565b60d6549091506001600160a01b0383811691161415610c6a57609a54158015610bf9575060d654600160a01b900460ff165b610c6a5760405162461bcd60e51b815260206004820152603760248201527f63616e207265636f7665722069546f6b656e206f6e6c79207768656e2073746160448201527635b2b9903430bb32903132b2b7103bb4ba34323930bbb760491b60648201526084015b60405180910390fd5b60665460405163a9059cbb60e01b81526001600160a01b038481169263a9059cbb92610c9e92909116908590600401615857565b602060405180830381600087803b158015610cb857600080fd5b505af1158015610ccc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf09190615870565b610d365760405162461bcd60e51b81526020600482015260176024820152761c9958dbdd995c881d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610c61565b5050565b610d488989898989896124f8565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac190610d779060040161588d565b60206040518083038186803b158015610d8f57600080fd5b505afa158015610da3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc791906158aa565b9050806001600160a01b03168a6001600160a01b03161480610e565750896001600160a01b031682600081518110610e0157610e016158c7565b60200260200101516001600160a01b0316148015610e565750806001600160a01b03168260018451610e339190615828565b81518110610e4357610e436158c7565b60200260200101516001600160a01b0316145b610e915760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c840e0c2e8d60a31b6044820152606401610c61565b60d880546001600160a01b038086166001600160a01b03199283161790925560d78054928716929091169190911790558151610ed49060d99060208501906150b1565b5060675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac190610f1c906004016020808252600490820152630434f4d560e41b604082015260600190565b60206040518083038186803b158015610f3457600080fd5b505afa158015610f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6c91906158aa565b60da80546001600160a01b0319166001600160a01b0392831617905560675460405163bf40fac160e01b815291169063bf40fac190610fad906004016158dd565b60206040518083038186803b158015610fc557600080fd5b505afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd91906158aa565b60db80546001600160a01b0319166001600160a01b039290921691909117905560d88054600160a01b600160e01b03191665249f00003d0960a41b179055611043613259565b50505050505050505050565b60008060d660009054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b1580156110a057600080fd5b505afa1580156110b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d891906157d6565b90506000806110e56133f8565b9150915060006110f3613441565b6110fb6134ca565b61110690601261583f565b6111109190615828565b9050600182151514611156578361112882600a6159e9565b61113385600a6159e9565b61113d90896159f5565b61114791906159f5565b6111519190615a14565b61118b565b8361116282600a6159e9565b61116d85600a6159e9565b6111779089615a14565b61118191906159f5565b61118b9190615a14565b9695505050505050565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156111f357600080fd5b505afa158015611207573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122b91906158aa565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b15801561128057600080fd5b505afa158015611294573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b891906158aa565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b60006112e7848484613512565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561136c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610c61565b6113798533858403613135565b506001949350505050565b61138c613061565b60d88054600160a01b600160e01b031916600160a01b63ffffffff9485160263ffffffff60c01b191617600160c01b9290931691909102919091179055565b60d5546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561141057600080fd5b505afa158015611424573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144891906157ef565b905090565b600080600061145a6137cc565b6001600160a01b0384163014156114c45760405162461bcd60e51b815260206004820152602860248201527f526563697069656e742063616e6e6f7420626520746865207374616b696e672060448201526718dbdb9d1c9858dd60c21b6064820152608401610c61565b6000806114d26000806108c7565b505050915091506114e382876138b8565b604080516001600160a01b038b16815260208101879052908101859052606081018490526080810183905260a0810182905292975090955093507f38c2c21f82a20481909d7aef48247b0743f69728fbb599c274039e2eecf8bb179060c00160405180910390a150509193909250565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916108bd91859061158a90869061583f565b613135565b611597613061565b60d6805462ffffff909216600160a81b0262ffffff60a81b19909216919091179055565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac1906115ea90600401615a36565b60206040518083038186803b15801561160257600080fd5b505afa158015611616573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163a91906158aa565b90506001600160a01b038116156116f257604080516001808252818301909252600091602080830190803683370190505090503081600081518110611681576116816158c7565b6001600160a01b03928316602091820292909201015260405163455518ef60e11b815290831690638aaa31de906116be9033908590600401615aa0565b600060405180830381600087803b1580156116d857600080fd5b505af11580156116ec573d6000803e3d6000fd5b50505050505b50565b600260a35414156117185760405162461bcd60e51b8152600401610c6190615acc565b600260a35560d654600160a01b900460ff161561176b5760405162461bcd60e51b815260206004820152601160248201527014dd185ada5b99c81a5cc81c185d5cd959607a1b6044820152606401610c61565b8115806117785750816064145b6117d35760405162461bcd60e51b815260206004820152602660248201527f446f6e6174696f6e2070657263656e746167652073686f756c6420626520302060448201526506f72203130360d41b6064820152608401610c61565b600083116118355760405162461bcd60e51b815260206004820152602960248201527f596f75206e65656420746f207374616b65206120706f73697469766520746f6b604482015268195b88185b5bdd5b9d60ba1b6064820152608401610c61565b8061184b5760d5546001600160a01b0316611858565b60d6546001600160a01b03165b6001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101869052606401602060405180830381600087803b1580156118b557600080fd5b505af11580156118c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ed9190615870565b61195c5760405162461bcd60e51b815260206004820152603a60248201527f7472616e7366657246726f6d206661696c65642c206d616b652073757265207960448201527937ba9030b8383937bb32b2103a37b5b2b7103a3930b739b332b960311b6064820152608401610c61565b806119675782611970565b61197083611dc8565b9250806119805761198083614032565b61198a338461410b565b60675460405163bf40fac160e01b8152600091829182916001600160a01b03169063bf40fac1906119bd90600401615b03565b60206040518083038186803b1580156119d557600080fd5b505afa1580156119e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0d91906158aa565b6001600160a01b031663d0250144306040518263ffffffff1660e01b8152600401611a3891906152c6565b60806040518083038186803b158015611a5057600080fd5b505afa158015611a64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a889190615b29565b50925092509250611abb611a993390565b878563ffffffff16856001600160401b0316856001600160401b03168a6141d8565b5060675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac190611aeb90600401615a36565b60206040518083038186803b158015611b0357600080fd5b505afa158015611b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3b91906158aa565b90506001600160a01b03811615611ce55760d5546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015611b9157600080fd5b505afa158015611ba5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc991906157ef565b60ff16601214611c7e5760d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611c2157600080fd5b505afa158015611c35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5991906157ef565b611c64906012615b88565b611c6f90600a615bab565b611c7990896159f5565b611c80565b875b60405163a39b215360e01b81529091506001600160a01b0383169063a39b215390611cb19033908590600401615857565b600060405180830381600087803b158015611ccb57600080fd5b505af1158015611cdf573d6000803e3d6000fd5b50505050505b60d55460405133917f5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd791611d24916001600160a01b0316908b90615857565b60405180910390a25050600160a3555050505050565b6001600160a01b038416600090815260a260205260408120611d5a6137cc565b611d65858585614233565b611d758682600001546001614335565b60038101805460009182905560048301805491928392611d9690849061583f565b9091555050609d54611da990829061583f565b609d55611dbd662386f26fc1000082615a14565b979650505050505050565b60d6546040805163182df0f560e01b815290516000926001600160a01b0316918391839163182df0f5916004808301926020929190829003018186803b158015611e1157600080fd5b505afa158015611e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4991906157d6565b9050600080611e566133f8565b915091506000611e64613441565b611e6c6134ca565b611e7790601261583f565b611e819190615828565b90506000600183151514611ec957611e9a82600a6159e9565b85611ea686600a6159e9565b611eb0908b615a14565b611eba91906159f5565b611ec49190615a14565b611efe565b611ed482600a6159e9565b85611ee086600a6159e9565b611eea908b6159f5565b611ef491906159f5565b611efe9190615a14565b98975050505050505050565b60606037805461082d9061579b565b3360009081526034602090815260408083206001600160a01b038616845290915281205482811015611f9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c61565b611fa83385858403613135565b5060019392505050565b6001600160a01b038416600090815260a260209081526040808320815160e081018352815481526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600501546001600160401b0380821660a0840152600160401b9091041660c0820152609c54609b5483901580159061203d5750854310155b80156120495750438510155b156121cb57600060a0544361205e9190615828565b9050600061207389662386f26fc100006159f5565b61207d90836159f5565b9050600080600061208d8861465c565b60a15492955090935091506120a69060ff16600a615bab565b609b546120b391906159f5565b6120c885676765c793fa10079d601b1b6159f5565b6120d29190615a14565b6120dc908861583f565b96508783156121c457604081015160a154676765c793fa10079d601b1b908a9061210a9060ff16600a615bab565b846020015161211991906159f5565b61212391906159f5565b61212d9190615a14565b6121379190615828565b9650600061214d85670de0b6b3a76400006159f5565b61216289676765c793fa10079d601b1b6159f5565b61216c9190615a14565b905064174876e800816121808560646159f5565b600a61218d8860646159f5565b6121989060056159f5565b6121a29190615a14565b6121ac919061583f565b6121b691906159f5565b6121c09190615a14565b9750505b5050505050505b808360600151611efe919061583f565b60006108bd338484613512565b6000808490506000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561222957600080fd5b505afa15801561223d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061226191906157d6565b905061226e84600a6159e9565b61118186836159f5565b60d9818154811061228857600080fd5b6000918252602090912001546001600160a01b0316905081565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac1906122d1906004016158dd565b60206040518083038186803b1580156122e957600080fd5b505afa1580156122fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144891906158aa565b600260a35414156123445760405162461bcd60e51b8152600401610c6190615acc565b600260a35560675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac19061237790600401615b03565b60206040518083038186803b15801561238f57600080fd5b505afa1580156123a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123c791906158aa565b60675460405163bf40fac160e01b81526001600160a01b039283169263f03b289092169063bf40fac1906123fd90600401615bba565b60206040518083038186803b15801561241557600080fd5b505afa158015612429573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244d91906158aa565b336040518363ffffffff1660e01b815260040161246b929190615bd8565b600060405180830381600087803b15801561248557600080fd5b505af1158015612499573d6000803e3d6000fd5b505050506124a56115bb565b600160a355565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac1906064016122d1565b600054610100900460ff1680612511575060005460ff16155b61252d5760405162461bcd60e51b8152600401610c6190615bf2565b600054610100900460ff1615801561254f576000805461ffff19166101011790555b6125588561470b565b60d580546001600160a01b03808a166001600160a01b03199283161790925560d6805492891692909116919091179055612592848461472e565b60d5546040805163313ce56760e01b815290516012926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156125d757600080fd5b505afa1580156125eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061260f91906157ef565b60ff1611156126775760405162461bcd60e51b815260206004820152602e60248201527f546f6b656e20646563696d616c732073686f756c64206265206c65737320746860448201526d616e20313820646563696d616c7360901b6064820152608401610c61565b60d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156126c557600080fd5b505afa1580156126d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126fd91906157ef565b612708906012615b88565b60a1805460ff191660ff92909216919091179055609f80546001600160401b0319166001600160401b03841617905560d6805462ffffff60a81b1916604b60aa1b179055801561275e576000805461ff00191690555b50505050505050565b60da546040516370a0823160e01b815260009182916001600160a01b03909116906370a082319061279c9030906004016152c6565b60206040518083038186803b1580156127b457600080fd5b505afa1580156127c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ec91906157d6565b905080156128175760d85461281190600160a01b900463ffffffff1662030d40615c40565b91505090565b505060d854600160a01b900463ffffffff1690565b600260a354141561284f5760405162461bcd60e51b8152600401610c6190615acc565b600260a3556000811561291257600061286784611dc8565b60d65460405163a9059cbb60e01b81529192506001600160a01b03169063a9059cbb9061289a9033908890600401615857565b602060405180830381600087803b1580156128b457600080fd5b505af11580156128c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ec9190615870565b6129085760405162461bcd60e51b8152600401610c6190615c68565b9250829050612a4c565b508161291d816147ae565b60d5546040516370a0823160e01b81526000916001600160a01b0316906370a082319061294e9030906004016152c6565b60206040518083038186803b15801561296657600080fd5b505afa15801561297a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299e91906157d6565b9050818110156129ac578091505b60d5546001600160a01b031663a9059cbb33846040518363ffffffff1660e01b81526004016129dc929190615857565b602060405180830381600087803b1580156129f657600080fd5b505af1158015612a0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2e9190615870565b612a4a5760405162461bcd60e51b8152600401610c6190615c68565b505b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac190612a7b90600401615b03565b60206040518083038186803b158015612a9357600080fd5b505afa158015612aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612acb91906158aa565b9050612ad73385614849565b6000806000836001600160a01b031663d0250144306040518263ffffffff1660e01b8152600401612b0891906152c6565b60806040518083038186803b158015612b2057600080fd5b505afa158015612b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b589190615b29565b50925092509250612b8a612b693390565b888563ffffffff16856001600160401b0316856001600160401b0316614985565b5060675460405163bf40fac160e01b81526001600160a01b038087169263f03b28909291169063bf40fac190612bc290600401615bba565b60206040518083038186803b158015612bda57600080fd5b505afa158015612bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c1291906158aa565b336040518363ffffffff1660e01b8152600401612c30929190615bd8565b600060405180830381600087803b158015612c4a57600080fd5b505af1158015612c5e573d6000803e3d6000fd5b505060675460405163bf40fac160e01b8152600093506001600160a01b03909116915063bf40fac190612c9390600401615a36565b60206040518083038186803b158015612cab57600080fd5b505afa158015612cbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ce391906158aa565b90506001600160a01b03811615612e8d5760d5546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015612d3957600080fd5b505afa158015612d4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7191906157ef565b60ff16601214612e265760d560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612dc957600080fd5b505afa158015612ddd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0191906157ef565b612e0c906012615b88565b612e1790600a615bab565b612e21908a6159f5565b612e28565b885b604051631f22c54760e11b81529091506001600160a01b03831690633e458a8e90612e599033908590600401615857565b600060405180830381600087803b158015612e7357600080fd5b505af1158015612e87573d6000803e3d6000fd5b50505050505b60d55460405133917f89b2bca2609b9ce42215fdd646f9162cdfb9c1620c93db1cc6302479489d3f3291612ecc916001600160a01b0316908a90615857565b60405180910390a25050600160a355505050505050565b60675460405163bf40fac160e01b815260009182918291829182916001600160a01b03169063bf40fac190612f1a90600401615b03565b60206040518083038186803b158015612f3257600080fd5b505afa158015612f46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6a91906158aa565b6001600160a01b031663d0250144306040518263ffffffff1660e01b8152600401612f9591906152c6565b60806040518083038186803b158015612fad57600080fd5b505afa158015612fc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fe59190615b29565b509250925092506000613012878563ffffffff16856001600160401b0316856001600160401b0316611fb2565b6001600160a01b038816600090815260a2602052604090206004015490915061304390662386f26fc1000090615a14565b613054662386f26fc1000083615a14565b9550955050505050915091565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b1580156130a557600080fd5b505afa1580156130b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130dd91906158aa565b6001600160a01b0316146131335760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610c61565b565b6001600160a01b0383166131975760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c61565b6001600160a01b0382166131f85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c61565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60db5460da5460405163095ea7b360e01b81526001600160a01b03928316929091169063095ea7b39061329490849060001990600401615857565b602060405180830381600087803b1580156132ae57600080fd5b505af11580156132c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132e69190615870565b5060d55460405163095ea7b360e01b81526001600160a01b039091169063095ea7b39061331b90849060001990600401615857565b602060405180830381600087803b15801561333557600080fd5b505af1158015613349573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061336d9190615870565b5060d55460d65460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926133a69291169060001990600401615857565b602060405180830381600087803b1580156133c057600080fd5b505af11580156133d4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d369190615870565b60008060006134056134ca565b90506000613411613441565b9050600081831161342b576134268383615828565b613435565b6134358284615828565b95919092119350915050565b60d6546040805163313ce56760e01b815290516000926001600160a01b031691829163313ce56791600480820192602092909190829003018186803b15801561348957600080fd5b505afa15801561349d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134c191906157ef565b60ff1691505090565b60d5546040805163313ce56760e01b815290516000926001600160a01b031691829163313ce56791600480820192602092909190829003018186803b15801561348957600080fd5b61351d8383836149e0565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac19061354c90600401615a36565b60206040518083038186803b15801561356457600080fd5b505afa158015613578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061359c91906158aa565b60675460405163bf40fac160e01b8152919250600091829182916001600160a01b039091169063bf40fac1906135d490600401615b03565b60206040518083038186803b1580156135ec57600080fd5b505afa158015613600573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362491906158aa565b6001600160a01b031663d0250144306040518263ffffffff1660e01b815260040161364f91906152c6565b60806040518083038186803b15801561366757600080fd5b505afa15801561367b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061369f9190615b29565b509250925092506136cb87868563ffffffff16856001600160401b0316856001600160401b0316614985565b506136f386868563ffffffff16856001600160401b0316856001600160401b031660006141d8565b506001600160a01b0384161561275e57604051631f22c54760e11b81526001600160a01b03851690633e458a8e90613731908a908990600401615857565b600060405180830381600087803b15801561374b57600080fd5b505af115801561375f573d6000803e3d6000fd5b505060405163a39b215360e01b81526001600160a01b038716925063a39b215391506137919089908990600401615857565b600060405180830381600087803b1580156137ab57600080fd5b505af11580156137bf573d6000803e3d6000fd5b5050505050505050505050565b60675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac1906137fa90600401615b03565b60206040518083038186803b15801561381257600080fd5b505afa158015613826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061384a91906158aa565b6001600160a01b0316336001600160a01b0316146131335760405162461bcd60e51b815260206004820152602560248201527f4f6e6c792046756e644d616e616765722063616e2063616c6c2074686973206d604482015264195d1a1bd960da1b6064820152608401610c61565b60da546040516370a0823160e01b81526000918291829182916001600160a01b03909116906370a08231906138f19030906004016152c6565b60206040518083038186803b15801561390957600080fd5b505afa15801561391d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061394191906157d6565b905060008115613c10576040805160038082526080820190925260009160208201606080368337505060da5482519293506001600160a01b03169183915060009061398e5761398e6158c7565b6001600160a01b0392831660209182029290920181019190915260db54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156139e257600080fd5b505afa1580156139f6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a1a91906158aa565b81600181518110613a2d57613a2d6158c7565b6001600160a01b03928316602091820292909201015260675460405163bf40fac160e01b815291169063bf40fac190613a689060040161588d565b60206040518083038186803b158015613a8057600080fd5b505afa158015613a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ab891906158aa565b81600281518110613acb57613acb6158c7565b6001600160a01b0392831660209182029290920181019190915260da5460db54604080516315ab88c960e31b8152905173__$a7857c79f7039505337147dc025cce365e$__9563f10a60ab9530958216949091169263ad5c46489260048083019392829003018186803b158015613b4157600080fd5b505afa158015613b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b7991906158aa565b8760d660159054906101000a900462ffffff166040518663ffffffff1660e01b8152600401613bac959493929190615c9a565b60206040518083038186803b158015613bc457600080fd5b505af4158015613bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bfc91906157d6565b9450613c0c30828760008b614b9d565b9150505b613c1987611dc8565b60675460405163bf40fac160e01b81529196506001600160a01b03169063bf40fac190613c4890600401615bba565b60206040518083038186803b158015613c6057600080fd5b505afa158015613c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c9891906158aa565b60d6546001600160a01b0390811691161415613d915760d65460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90613ce09089908b90600401615857565b602060405180830381600087803b158015613cfa57600080fd5b505af1158015613d0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d329190615870565b613d785760405162461bcd60e51b815260206004820152601760248201527618dbdb1b1958dd081d1c985b9cd9995c8819985a5b1959604a1b6044820152606401610c61565b8484613d84838361583f565b945094509450505061402b565b60d55460d9805460009273__$a7857c79f7039505337147dc025cce365e$__9263f10a60ab9230926001600160a01b031691906001908110613dd557613dd56158c7565b60009182526020909120015460d65460405160e086901b6001600160e01b0319168152613e209493926001600160a01b0316918d91600160a81b90910462ffffff1690600401615c9a565b60206040518083038186803b158015613e3857600080fd5b505af4158015613e4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e7091906157d6565b905080861115613e8957809550613e868661104f565b97505b60d65460405163db006a7560e01b8152600481018a90526001600160a01b039091169063db006a7590602401602060405180830381600087803b158015613ecf57600080fd5b505af1158015613ee3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f0791906157d6565b15613f245760405162461bcd60e51b8152600401610c6190615cd2565b60d5546040516370a0823160e01b81526001600160a01b03909116906370a0823190613f549030906004016152c6565b60206040518083038186803b158015613f6c57600080fd5b505afa158015613f80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fa491906157d6565b955085156140265761401960d980548060200260200160405190810160405280929190818152602001828054801561400557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613fe7575b50309493508b9250600091508c9050614b9d565b614023908361583f565b91505b509150505b9250925092565b60d65460405163140e25ad60e31b8152600481018390526001600160a01b039091169063a0712d6890602401602060405180830381600087803b15801561407857600080fd5b505af115801561408c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140b091906157d6565b156116f25760405162461bcd60e51b815260206004820152602560248201527f4d696e74696e672063546f6b656e206661696c65642c2066756e6473207265746044820152641d5c9b995960da1b6064820152608401610c61565b6001600160a01b0382166141615760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610c61565b8060356000828254614173919061583f565b90915550506001600160a01b038216600090815260336020526040812080548392906141a090849061583f565b90915550506040518181526001600160a01b03831690600090600080516020615e228339815191529060200160405180910390a35050565b60006141e5858585614233565b6001600160a01b038716600090815260a2602052604090205461421590889061420f90899061583f565b84614335565b85609a54614223919061583f565b609a555060019695505050505050565b609b546142435750504360a05550565b81431015801561425457508160a054105b1561425f5760a08290555b60008260a0541080156142725750824310155b61427e5760a054614280565b825b905060008243116142915743614293565b825b9050838110806142a35750828210155b156142af575050505050565b60006142bb8383615828565b905060006142d087662386f26fc100006159f5565b6142da90836159f5565b60a1549091506142ee9060ff16600a615bab565b609b546142fb91906159f5565b61431082676765c793fa10079d601b1b6159f5565b61431a9190615a14565b609c54614327919061583f565b609c55505060a05550505050565b6001600160a01b038316600090815260a2602052604090208054600182015480156144e1576040805160e0810182528454815260018501546020820152600285015491810191909152600384015460608201526004840154608082015260058401546001600160401b0380821660a0840152600160401b9091041660c0820152600090819081906143c59061465c565b925092509250826000146144d9576002860154609c5460a15460009291676765c793fa10079d601b1b916143fd9060ff16600a615bab565b61440790896159f5565b61441191906159f5565b61441b9190615a14565b6144259190615828565b9050600061443b85670de0b6b3a76400006159f5565b61445083676765c793fa10079d601b1b6159f5565b61445a9190615a14565b905064174876e8008161446e8560646159f5565b600a61447b8860646159f5565b6144869060056159f5565b6144909190615a14565b61449a919061583f565b6144a491906159f5565b6144ae9190615a14565b91508188600301546144c0919061583f565b6003890155609e546144d390839061583f565b609e5550505b505050614508565b600583018054600160401b600160801b031916600160401b436001600160401b0316021790555b81851161459e57600583018054600160401b600160801b031916600160401b436001600160401b0316021790558115614599576000828460010154878561454f9190615828565b61455991906159f5565b6145639190615a14565b9050808460010160008282546145799190615828565b9250508190555080609b60008282546145929190615828565b9091555050505b6145e7565b836145e7576145ad8286615828565b8360010160008282546145c0919061583f565b909155506145d090508286615828565b609b60008282546145e1919061583f565b90915550505b6005830180546001600160401b031916436001600160401b0316179055848355609c5460a154676765c793fa10079d601b1b91906146299060ff16600a615bab565b856001015461463891906159f5565b61464291906159f5565b61464c9190615a14565b8360020181905550505050505050565b6000806000808460c001518560a001516146769190615d03565b609f5460c08701516001600160401b0392831693506000926146a5928116916146a0911643615828565b614f99565b905060008660a001516001600160401b0316436146c29190615828565b609f549091506000906001600160401b03168410156146ea576146e58484615828565b6146ed565b60005b905060006146fb8284615828565b9299919850919650945050505050565b606780546001600160a01b0319166001600160a01b0383161790556116f2611195565b600054610100900460ff1680614747575060005460ff16155b6147635760405162461bcd60e51b8152600401610c6190615bf2565b600054610100900460ff16158015614785576000805461ffff19166101011790555b61478d614fb1565b614797838361501c565b80156147a9576000805461ff00191690555b505050565b60d65460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e390602401602060405180830381600087803b1580156147f457600080fd5b505af1158015614808573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061482c91906157d6565b156116f25760405162461bcd60e51b8152600401610c6190615cd2565b6001600160a01b0382166148a95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610c61565b6001600160a01b0382166000908152603360205260409020548181101561491d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610c61565b6001600160a01b038316600090815260336020526040812083830390556035805484929061494c908490615828565b90915550506040518281526000906001600160a01b03851690600080516020615e228339815191529060200160405180910390a3505050565b6000614992848484614233565b6001600160a01b038616600090815260a260205260409020546149c39087906149bc908890615828565b6001614335565b84609a546149d19190615828565b609a5550600195945050505050565b6001600160a01b038316614a445760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c61565b6001600160a01b038216614aa65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c61565b6001600160a01b03831660009081526033602052604090205481811015614b1e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c61565b6001600160a01b03808516600090815260336020526040808220858503905591851681529081208054849290614b5590849061583f565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615e2283398151915284604051614b8f91815260200190565b60405180910390a350505050565b600080866001600160a01b031663b0f479a16040518163ffffffff1660e01b815260040160206040518083038186803b158015614bd957600080fd5b505afa158015614bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614c1191906158aa565b9050606060006001600160a01b031687600081518110614c3357614c336158c7565b60200260200101516001600160a01b03161415614d6e57816001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015614c8357600080fd5b505afa158015614c97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614cbb91906158aa565b87600081518110614cce57614cce6158c7565b6001600160a01b039283166020918202929092010152604051637ff36ab560e01b815290831690637ff36ab5908890614d119089908c908a904290600401615d2b565b6000604051808303818588803b158015614d2a57600080fd5b505af1158015614d3e573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052614d679190810190615d60565b9050614f65565b60006001600160a01b03168760018951614d889190615828565b81518110614d9857614d986158c7565b60200260200101516001600160a01b03161415614ed857816001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015614de857600080fd5b505afa158015614dfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e2091906158aa565b8760018951614e2f9190615828565b81518110614e3f57614e3f6158c7565b6001600160a01b0392831660209182029290920101526040516318cbafe560e01b8152908316906318cbafe590614e8290899089908c908a904290600401615de5565b600060405180830381600087803b158015614e9c57600080fd5b505af1158015614eb0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614d679190810190615d60565b6040516338ed173960e01b81526001600160a01b038316906338ed173990614f0c90899089908c908a904290600401615de5565b600060405180830381600087803b158015614f2657600080fd5b505af1158015614f3a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614f629190810190615d60565b90505b8060018251614f749190615828565b81518110614f8457614f846158c7565b60200260200101519250505095945050505050565b6000818310614fa85781614faa565b825b9392505050565b600054610100900460ff1680614fca575060005460ff16155b614fe65760405162461bcd60e51b8152600401610c6190615bf2565b600054610100900460ff16158015615008576000805461ffff19166101011790555b80156116f2576000805461ff001916905550565b600054610100900460ff1680615035575060005460ff16155b6150515760405162461bcd60e51b8152600401610c6190615bf2565b600054610100900460ff16158015615073576000805461ffff19166101011790555b8251615086906036906020860190615116565b50815161509a906037906020850190615116565b5080156147a9576000805461ff0019169055505050565b828054828255906000526020600020908101928215615106579160200282015b8281111561510657825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906150d1565b5061511292915061518a565b5090565b8280546151229061579b565b90600052602060002090601f0160209004810192826151445760008555615106565b82601f1061515d57805160ff1916838001178555615106565b82800160010185558215615106579182015b8281111561510657825182559160200191906001019061516f565b5b80821115615112576000815560010161518b565b80151581146116f257600080fd5b6000602082840312156151bf57600080fd5b8135614faa8161519f565b600060208083528351808285015260005b818110156151f7578581018301518582016040015282016151db565b81811115615209576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146116f257600080fd5b803561523f8161521f565b919050565b6000806040838503121561525757600080fd5b82356152628161521f565b946020939093013593505050565b6000806040838503121561528357600080fd5b823561528e8161519f565b9150602083013561529e8161519f565b809150509250929050565b6000602082840312156152bb57600080fd5b8135614faa8161521f565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715615318576153186152da565b604052919050565b600082601f83011261533157600080fd5b81356001600160401b0381111561534a5761534a6152da565b61535d601f8201601f19166020016152f0565b81815284602083860101111561537257600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160401b03811681146116f257600080fd5b803561523f8161538f565b60006001600160401b038211156153c8576153c86152da565b5060051b60200190565b600082601f8301126153e357600080fd5b813560206153f86153f3836153af565b6152f0565b82815260059290921b8401810191818101908684111561541757600080fd5b8286015b8481101561543b57803561542e8161521f565b835291830191830161541b565b509695505050505050565b60008060008060008060008060006101208a8c03121561546557600080fd5b61546e8a615234565b985061547c60208b01615234565b975061548a60408b01615234565b965060608a01356001600160401b03808211156154a657600080fd5b6154b28d838e01615320565b975060808c01359150808211156154c857600080fd5b6154d48d838e01615320565b96506154e260a08d016153a4565b95506154f060c08d01615234565b94506154fe60e08d01615234565b93506101008c013591508082111561551557600080fd5b506155228c828d016153d2565b9150509295985092959850929598565b60006020828403121561554457600080fd5b5035919050565b60008060006060848603121561556057600080fd5b833561556b8161521f565b9250602084013561557b8161521f565b929592945050506040919091013590565b63ffffffff811681146116f257600080fd5b600080604083850312156155b157600080fd5b82356155bc8161558c565b9150602083013561529e8161558c565b6000602082840312156155de57600080fd5b813562ffffff81168114614faa57600080fd5b60008060006060848603121561560657600080fd5b8335925060208401359150604084013561561f8161519f565b809150509250925092565b6000806000806080858703121561564057600080fd5b843561564b8161521f565b966020860135965060408601359560600135945092505050565b60008060006060848603121561567a57600080fd5b83356156858161521f565b95602085013595506040909401359392505050565b600080604083850312156156ad57600080fd5b82356156b88161521f565b9150602083013561529e8161521f565b60008060008060008060c087890312156156e157600080fd5b86356156ec8161521f565b955060208701356156fc8161521f565b9450604087013561570c8161521f565b935060608701356001600160401b038082111561572857600080fd5b6157348a838b01615320565b9450608089013591508082111561574a57600080fd5b5061575789828a01615320565b92505060a08701356157688161538f565b809150509295509295509295565b6000806040838503121561578957600080fd5b82359150602083013561529e8161519f565b600181811c908216806157af57607f821691505b602082108114156157d057634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156157e857600080fd5b5051919050565b60006020828403121561580157600080fd5b815160ff81168114614faa57600080fd5b634e487b7160e01b600052601160045260246000fd5b60008282101561583a5761583a615812565b500390565b6000821982111561585257615852615812565b500190565b6001600160a01b03929092168252602082015260400190565b60006020828403121561588257600080fd5b8151614faa8161519f565b60208082526003908201526244414960e81b604082015260600190565b6000602082840312156158bc57600080fd5b8151614faa8161521f565b634e487b7160e01b600052603260045260246000fd5b6020808252600e908201526d2aa724a9aba0a82fa927aaaa22a960911b604082015260600190565b600181815b8085111561594057816000190482111561592657615926615812565b8085161561593357918102915b93841c939080029061590a565b509250929050565b600082615957575060016108c1565b81615964575060006108c1565b816001811461597a5760028114615984576159a0565b60019150506108c1565b60ff84111561599557615995615812565b50506001821b6108c1565b5060208310610133831016604e8410600b84101617156159c3575081810a6108c1565b6159cd8383615905565b80600019048211156159e1576159e1615812565b029392505050565b6000614faa8383615948565b6000816000190483118215151615615a0f57615a0f615812565b500290565b600082615a3157634e487b7160e01b600052601260045260246000fd5b500490565b6020808252600c908201526b4744414f5f5354414b45525360a01b604082015260600190565b600081518084526020808501945080840160005b83811015615a955781516001600160a01b031687529582019590820190600101615a70565b509495945050505050565b6001600160a01b0383168152604060208201819052600090615ac490830184615a5c565b949350505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600c908201526b232aa7222fa6a0a720a3a2a960a11b604082015260600190565b60008060008060808587031215615b3f57600080fd5b8451615b4a8161558c565b6020860151909450615b5b8161538f565b6040860151909350615b6c8161538f565b6060860151909250615b7d8161519f565b939692955090935050565b600060ff821660ff841680821015615ba257615ba2615812565b90039392505050565b6000614faa60ff841683615948565b6020808252600490820152634344414960e01b604082015260600190565b6001600160a01b0392831681529116602082015260400190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600063ffffffff808316818516808303821115615c5f57615c5f615812565b01949350505050565b6020808252601890820152771dda5d1a191c985dc81d1c985b9cd9995c8819985a5b195960421b604082015260600190565b6001600160a01b0395861681529385166020850152919093166040830152606082019290925262ffffff909116608082015260a00190565b6020808252601790820152762330b4b632b2103a37903932b232b2b69031aa37b5b2b760491b604082015260600190565b60006001600160401b0383811690831681811015615d2357615d23615812565b039392505050565b848152608060208201526000615d446080830186615a5c565b6001600160a01b03949094166040830152506060015292915050565b60006020808385031215615d7357600080fd5b82516001600160401b03811115615d8957600080fd5b8301601f81018513615d9a57600080fd5b8051615da86153f3826153af565b81815260059190911b82018301908381019087831115615dc757600080fd5b928401925b82841015611dbd57835182529284019290840190615dcc565b85815284602082015260a060408201526000615e0460a0830186615a5c565b6001600160a01b039490941660608301525060800152939250505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205e2822c1ad429c70ea94b958c911bcd9ed6984f1dda03ab34b985e6c48d9eacd64736f6c63430008080033";
|
|
1226
|
+
|
|
1227
|
+
type GoodCompoundStakingConstructorParams =
|
|
1228
|
+
| [linkLibraryAddresses: GoodCompoundStakingLibraryAddresses, signer?: Signer]
|
|
1229
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1230
|
+
|
|
1231
|
+
const isSuperArgs = (
|
|
1232
|
+
xs: GoodCompoundStakingConstructorParams
|
|
1233
|
+
): xs is ConstructorParameters<typeof ContractFactory> => {
|
|
1234
|
+
return (
|
|
1235
|
+
typeof xs[0] === "string" ||
|
|
1236
|
+
(Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) ||
|
|
1237
|
+
"_isInterface" in xs[0]
|
|
1238
|
+
);
|
|
1239
|
+
};
|
|
1240
|
+
|
|
1241
|
+
export class GoodCompoundStaking__factory extends ContractFactory {
|
|
1242
|
+
constructor(...args: GoodCompoundStakingConstructorParams) {
|
|
1243
|
+
if (isSuperArgs(args)) {
|
|
1244
|
+
super(...args);
|
|
1245
|
+
} else {
|
|
1246
|
+
const [linkLibraryAddresses, signer] = args;
|
|
1247
|
+
super(
|
|
1248
|
+
_abi,
|
|
1249
|
+
GoodCompoundStaking__factory.linkBytecode(linkLibraryAddresses),
|
|
1250
|
+
signer
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
static linkBytecode(
|
|
1256
|
+
linkLibraryAddresses: GoodCompoundStakingLibraryAddresses
|
|
1257
|
+
): string {
|
|
1258
|
+
let linkedBytecode = _bytecode;
|
|
1259
|
+
|
|
1260
|
+
linkedBytecode = linkedBytecode.replace(
|
|
1261
|
+
new RegExp("__\\$a7857c79f7039505337147dc025cce365e\\$__", "g"),
|
|
1262
|
+
linkLibraryAddresses[
|
|
1263
|
+
"contracts/staking/UniswapV2SwapHelper.sol:UniswapV2SwapHelper"
|
|
1264
|
+
]
|
|
1265
|
+
.replace(/^0x/, "")
|
|
1266
|
+
.toLowerCase()
|
|
1267
|
+
);
|
|
1268
|
+
|
|
1269
|
+
return linkedBytecode;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
deploy(
|
|
1273
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1274
|
+
): Promise<GoodCompoundStaking> {
|
|
1275
|
+
return super.deploy(overrides || {}) as Promise<GoodCompoundStaking>;
|
|
1276
|
+
}
|
|
1277
|
+
getDeployTransaction(
|
|
1278
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1279
|
+
): TransactionRequest {
|
|
1280
|
+
return super.getDeployTransaction(overrides || {});
|
|
1281
|
+
}
|
|
1282
|
+
attach(address: string): GoodCompoundStaking {
|
|
1283
|
+
return super.attach(address) as GoodCompoundStaking;
|
|
1284
|
+
}
|
|
1285
|
+
connect(signer: Signer): GoodCompoundStaking__factory {
|
|
1286
|
+
return super.connect(signer) as GoodCompoundStaking__factory;
|
|
1287
|
+
}
|
|
1288
|
+
static readonly bytecode = _bytecode;
|
|
1289
|
+
static readonly abi = _abi;
|
|
1290
|
+
static createInterface(): GoodCompoundStakingInterface {
|
|
1291
|
+
return new utils.Interface(_abi) as GoodCompoundStakingInterface;
|
|
1292
|
+
}
|
|
1293
|
+
static connect(
|
|
1294
|
+
address: string,
|
|
1295
|
+
signerOrProvider: Signer | Provider
|
|
1296
|
+
): GoodCompoundStaking {
|
|
1297
|
+
return new Contract(address, _abi, signerOrProvider) as GoodCompoundStaking;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
export interface GoodCompoundStakingLibraryAddresses {
|
|
1302
|
+
["contracts/staking/UniswapV2SwapHelper.sol:UniswapV2SwapHelper"]: string;
|
|
1303
|
+
}
|