@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,591 @@
|
|
|
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
|
+
StakersDistribution,
|
|
9
|
+
StakersDistributionInterface,
|
|
10
|
+
} from "../StakersDistribution";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "beacon",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "BeaconUpgraded",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "staker",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "address[]",
|
|
57
|
+
name: "stakingContracts",
|
|
58
|
+
type: "address[]",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
indexed: false,
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "reputation",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "ReputationEarned",
|
|
68
|
+
type: "event",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
anonymous: false,
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
indexed: true,
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "implementation",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "Upgraded",
|
|
81
|
+
type: "event",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [],
|
|
85
|
+
name: "avatar",
|
|
86
|
+
outputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
stateMutability: "view",
|
|
94
|
+
type: "function",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
internalType: "address",
|
|
100
|
+
name: "_staker",
|
|
101
|
+
type: "address",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
internalType: "address[]",
|
|
105
|
+
name: "_stakingContracts",
|
|
106
|
+
type: "address[]",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
name: "claimReputation",
|
|
110
|
+
outputs: [],
|
|
111
|
+
stateMutability: "nonpayable",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
internalType: "address",
|
|
123
|
+
name: "",
|
|
124
|
+
type: "address",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
name: "contractToUsers",
|
|
128
|
+
outputs: [
|
|
129
|
+
{
|
|
130
|
+
internalType: "uint128",
|
|
131
|
+
name: "amount",
|
|
132
|
+
type: "uint128",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "uint128",
|
|
136
|
+
name: "rewardDebt",
|
|
137
|
+
type: "uint128",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint128",
|
|
141
|
+
name: "rewardEarn",
|
|
142
|
+
type: "uint128",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
internalType: "uint128",
|
|
146
|
+
name: "rewardMinted",
|
|
147
|
+
type: "uint128",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
stateMutability: "view",
|
|
151
|
+
type: "function",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
inputs: [],
|
|
155
|
+
name: "currentMonth",
|
|
156
|
+
outputs: [
|
|
157
|
+
{
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
stateMutability: "view",
|
|
164
|
+
type: "function",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [],
|
|
168
|
+
name: "dao",
|
|
169
|
+
outputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: "contract Controller",
|
|
172
|
+
name: "",
|
|
173
|
+
type: "address",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
stateMutability: "view",
|
|
177
|
+
type: "function",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [],
|
|
181
|
+
name: "getChainBlocksPerMonth",
|
|
182
|
+
outputs: [
|
|
183
|
+
{
|
|
184
|
+
internalType: "uint256",
|
|
185
|
+
name: "",
|
|
186
|
+
type: "uint256",
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
stateMutability: "pure",
|
|
190
|
+
type: "function",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "address",
|
|
196
|
+
name: "_contract",
|
|
197
|
+
type: "address",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "address",
|
|
201
|
+
name: "_user",
|
|
202
|
+
type: "address",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "getProductivity",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint256",
|
|
214
|
+
name: "",
|
|
215
|
+
type: "uint256",
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
stateMutability: "view",
|
|
219
|
+
type: "function",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [
|
|
223
|
+
{
|
|
224
|
+
internalType: "address[]",
|
|
225
|
+
name: "_contracts",
|
|
226
|
+
type: "address[]",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
internalType: "address",
|
|
230
|
+
name: "_user",
|
|
231
|
+
type: "address",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
name: "getUserMintedAndPending",
|
|
235
|
+
outputs: [
|
|
236
|
+
{
|
|
237
|
+
internalType: "uint256",
|
|
238
|
+
name: "",
|
|
239
|
+
type: "uint256",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
internalType: "uint256",
|
|
243
|
+
name: "",
|
|
244
|
+
type: "uint256",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
stateMutability: "view",
|
|
248
|
+
type: "function",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
inputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "address",
|
|
254
|
+
name: "_contract",
|
|
255
|
+
type: "address",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
internalType: "uint256",
|
|
259
|
+
name: "_blockStart",
|
|
260
|
+
type: "uint256",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
internalType: "uint256",
|
|
264
|
+
name: "_blockEnd",
|
|
265
|
+
type: "uint256",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
internalType: "address",
|
|
269
|
+
name: "_user",
|
|
270
|
+
type: "address",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
name: "getUserPendingReward",
|
|
274
|
+
outputs: [
|
|
275
|
+
{
|
|
276
|
+
internalType: "uint256",
|
|
277
|
+
name: "",
|
|
278
|
+
type: "uint256",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
stateMutability: "view",
|
|
282
|
+
type: "function",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
internalType: "address[]",
|
|
288
|
+
name: "_contracts",
|
|
289
|
+
type: "address[]",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
internalType: "address",
|
|
293
|
+
name: "_user",
|
|
294
|
+
type: "address",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
name: "getUserPendingRewards",
|
|
298
|
+
outputs: [
|
|
299
|
+
{
|
|
300
|
+
internalType: "uint256",
|
|
301
|
+
name: "",
|
|
302
|
+
type: "uint256",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
stateMutability: "view",
|
|
306
|
+
type: "function",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
inputs: [
|
|
310
|
+
{
|
|
311
|
+
internalType: "contract INameService",
|
|
312
|
+
name: "_ns",
|
|
313
|
+
type: "address",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
name: "initialize",
|
|
317
|
+
outputs: [],
|
|
318
|
+
stateMutability: "nonpayable",
|
|
319
|
+
type: "function",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
inputs: [
|
|
323
|
+
{
|
|
324
|
+
internalType: "address",
|
|
325
|
+
name: "",
|
|
326
|
+
type: "address",
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
name: "lastRewardBlock",
|
|
330
|
+
outputs: [
|
|
331
|
+
{
|
|
332
|
+
internalType: "uint256",
|
|
333
|
+
name: "",
|
|
334
|
+
type: "uint256",
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
stateMutability: "view",
|
|
338
|
+
type: "function",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
inputs: [],
|
|
342
|
+
name: "monthlyReputationDistribution",
|
|
343
|
+
outputs: [
|
|
344
|
+
{
|
|
345
|
+
internalType: "uint256",
|
|
346
|
+
name: "",
|
|
347
|
+
type: "uint256",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
stateMutability: "view",
|
|
351
|
+
type: "function",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
inputs: [],
|
|
355
|
+
name: "nameService",
|
|
356
|
+
outputs: [
|
|
357
|
+
{
|
|
358
|
+
internalType: "contract INameService",
|
|
359
|
+
name: "",
|
|
360
|
+
type: "address",
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
stateMutability: "view",
|
|
364
|
+
type: "function",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
inputs: [],
|
|
368
|
+
name: "nativeToken",
|
|
369
|
+
outputs: [
|
|
370
|
+
{
|
|
371
|
+
internalType: "contract IGoodDollar",
|
|
372
|
+
name: "",
|
|
373
|
+
type: "address",
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
stateMutability: "view",
|
|
377
|
+
type: "function",
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
inputs: [
|
|
381
|
+
{
|
|
382
|
+
internalType: "address",
|
|
383
|
+
name: "",
|
|
384
|
+
type: "address",
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
name: "rewardsMintedSoFar",
|
|
388
|
+
outputs: [
|
|
389
|
+
{
|
|
390
|
+
internalType: "uint256",
|
|
391
|
+
name: "",
|
|
392
|
+
type: "uint256",
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
stateMutability: "view",
|
|
396
|
+
type: "function",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
inputs: [
|
|
400
|
+
{
|
|
401
|
+
internalType: "address",
|
|
402
|
+
name: "",
|
|
403
|
+
type: "address",
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
name: "rewardsPerBlock",
|
|
407
|
+
outputs: [
|
|
408
|
+
{
|
|
409
|
+
internalType: "uint256",
|
|
410
|
+
name: "",
|
|
411
|
+
type: "uint256",
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
stateMutability: "view",
|
|
415
|
+
type: "function",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
inputs: [
|
|
419
|
+
{
|
|
420
|
+
internalType: "uint256",
|
|
421
|
+
name: "newMonthlyReputationDistribution",
|
|
422
|
+
type: "uint256",
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
name: "setMonthlyReputationDistribution",
|
|
426
|
+
outputs: [],
|
|
427
|
+
stateMutability: "nonpayable",
|
|
428
|
+
type: "function",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
inputs: [
|
|
432
|
+
{
|
|
433
|
+
internalType: "address",
|
|
434
|
+
name: "",
|
|
435
|
+
type: "address",
|
|
436
|
+
},
|
|
437
|
+
],
|
|
438
|
+
name: "totalRewardsAccumulated",
|
|
439
|
+
outputs: [
|
|
440
|
+
{
|
|
441
|
+
internalType: "uint256",
|
|
442
|
+
name: "",
|
|
443
|
+
type: "uint256",
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
stateMutability: "view",
|
|
447
|
+
type: "function",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
inputs: [
|
|
451
|
+
{
|
|
452
|
+
internalType: "address",
|
|
453
|
+
name: "_contract",
|
|
454
|
+
type: "address",
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
name: "totalRewardsPerShare",
|
|
458
|
+
outputs: [
|
|
459
|
+
{
|
|
460
|
+
internalType: "uint256",
|
|
461
|
+
name: "",
|
|
462
|
+
type: "uint256",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
stateMutability: "view",
|
|
466
|
+
type: "function",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
inputs: [],
|
|
470
|
+
name: "updateAvatar",
|
|
471
|
+
outputs: [],
|
|
472
|
+
stateMutability: "nonpayable",
|
|
473
|
+
type: "function",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
inputs: [
|
|
477
|
+
{
|
|
478
|
+
internalType: "address",
|
|
479
|
+
name: "newImplementation",
|
|
480
|
+
type: "address",
|
|
481
|
+
},
|
|
482
|
+
],
|
|
483
|
+
name: "upgradeTo",
|
|
484
|
+
outputs: [],
|
|
485
|
+
stateMutability: "nonpayable",
|
|
486
|
+
type: "function",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
inputs: [
|
|
490
|
+
{
|
|
491
|
+
internalType: "address",
|
|
492
|
+
name: "newImplementation",
|
|
493
|
+
type: "address",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
internalType: "bytes",
|
|
497
|
+
name: "data",
|
|
498
|
+
type: "bytes",
|
|
499
|
+
},
|
|
500
|
+
],
|
|
501
|
+
name: "upgradeToAndCall",
|
|
502
|
+
outputs: [],
|
|
503
|
+
stateMutability: "payable",
|
|
504
|
+
type: "function",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
inputs: [
|
|
508
|
+
{
|
|
509
|
+
internalType: "address",
|
|
510
|
+
name: "_staker",
|
|
511
|
+
type: "address",
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
internalType: "uint256",
|
|
515
|
+
name: "_value",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
name: "userStaked",
|
|
520
|
+
outputs: [],
|
|
521
|
+
stateMutability: "nonpayable",
|
|
522
|
+
type: "function",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
inputs: [
|
|
526
|
+
{
|
|
527
|
+
internalType: "address",
|
|
528
|
+
name: "_staker",
|
|
529
|
+
type: "address",
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
internalType: "uint256",
|
|
533
|
+
name: "_value",
|
|
534
|
+
type: "uint256",
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
name: "userWithdraw",
|
|
538
|
+
outputs: [],
|
|
539
|
+
stateMutability: "nonpayable",
|
|
540
|
+
type: "function",
|
|
541
|
+
},
|
|
542
|
+
];
|
|
543
|
+
|
|
544
|
+
const _bytecode =
|
|
545
|
+
"0x60a06040523060601b60805234801561001757600080fd5b5060805160601c6128d561004b600039600081816107390152818161078201528181610aa70152610ae701526128d56000f3fe6080604052600436106101265760003560e01c806305a6aafa1461012b5780631b3c90a81461014d578063213b329e1461016257806322dec37b146101875780632d36bd88146101b45780632e42a896146101e957806331903da11461027b5780633659cfe6146102a85780633c8c043a146102c85780633d9a12cc146102de5780633e458a8e146102fe5780633e6326fc1461031e5780634162169f1461034b57806347b3e7e81461036b5780634f1db7f6146103985780634f1ef286146103f657806352e62ac2146104095780635aef7de6146104295780637bcbb9ff14610449578063846141b31461047f578063862a4d47146104ac5780638aaa31de146104c2578063a39b2153146104e2578063c4d66de814610502578063e1758bd814610522575b600080fd5b34801561013757600080fd5b5061014b6101463660046121b0565b610537565b005b34801561015957600080fd5b5061014b610544565b34801561016e57600080fd5b506202a3005b6040519081526020015b60405180910390f35b34801561019357600080fd5b506101746101a23660046121ee565b609c6020526000908152604090205481565b3480156101c057600080fd5b506101d46101cf366004612251565b610689565b6040805192835260208301919091520161017e565b3480156101f557600080fd5b50610248610204366004612314565b60a0602090815260009283526040808420909152908252902080546001909101546001600160801b0380831692600160801b90819004821692808316929190041684565b604080516001600160801b039586168152938516602085015291841691830191909152909116606082015260800161017e565b34801561028757600080fd5b506101746102963660046121ee565b609d6020526000908152604090205481565b3480156102b457600080fd5b5061014b6102c33660046121ee565b61072e565b3480156102d457600080fd5b5061017460d35481565b3480156102ea57600080fd5b506101746102f936600461234d565b610800565b34801561030a57600080fd5b5061014b610319366004612397565b6108f4565b34801561032a57600080fd5b5060675461033e906001600160a01b031681565b60405161017e91906123c3565b34801561035757600080fd5b5060655461033e906001600160a01b031681565b34801561037757600080fd5b506101746103863660046121ee565b609f6020526000908152604090205481565b3480156103a457600080fd5b506101d46103b3366004612314565b6001600160a01b03918216600081815260a06020908152604080832094909516825292835283812054918152609a909252919020546001600160801b0390911691565b61014b6104043660046123d7565b610a9c565b34801561041557600080fd5b50610174610424366004612251565b610b56565b34801561043557600080fd5b5060665461033e906001600160a01b031681565b34801561045557600080fd5b506101746104643660046121ee565b6001600160a01b03166000908152609b602052604090205490565b34801561048b57600080fd5b5061017461049a3660046121ee565b609e6020526000908152604090205481565b3480156104b857600080fd5b5061017460d45481565b3480156104ce57600080fd5b5061014b6104dd36600461247e565b610ceb565b3480156104ee57600080fd5b5061014b6104fd366004612397565b610d2d565b34801561050e57600080fd5b5061014b61051d3660046121ee565b610e63565b34801561052e57600080fd5b5061033e610f2d565b61053f610fc9565b60d355565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156105a257600080fd5b505afa1580156105b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105da9190612505565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b15801561062f57600080fd5b505afa158015610643573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106679190612505565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b60008060006106988585610b56565b90506000805b86518110156107235760a060008883815181106106bd576106bd612522565b6020908102919091018101516001600160a01b0390811683528282019390935260409182016000908120938a16815292905290206001015461070f90600160801b90046001600160801b03168361254e565b91508061071b81612566565b91505061069e565b509590945092505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156107805760405162461bcd60e51b815260040161077790612581565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166107b261109d565b6001600160a01b0316146107d85760405162461bcd60e51b8152600401610777906125bb565b6107e1816110b9565b604080516000808252602082019092526107fd918391906110c1565b50565b6001600160a01b03808516600081815260a0602090815260408083209486168352938152838220845160808101865281546001600160801b038082168352600160801b9182900481168386015260019093015480841683890152049091166060820152928252609a9052918220548290156108ea576000610882888888611208565b91505082604001516001600160801b0316915082602001516001600160801b0316676765c793fa10079d601b1b8285600001516001600160801b03166108c891906125f5565b6108d29190612614565b6108dc9190612636565b6108e6908361254e565b9150505b9695505050505050565b60675460405163bf40fac160e01b81523391600091829182916001600160a01b039091169063bf40fac19061092b9060040161264d565b60206040518083038186803b15801561094357600080fd5b505afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190612505565b6001600160a01b031663d0250144856040518263ffffffff1660e01b81526004016109a691906123c3565b60806040518083038186803b1580156109be57600080fd5b505afa1580156109d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f6919061269a565b935093509350508015610a0b57505050505050565b610a2a848787866001600160401b0316866001600160401b0316611300565b50604080516001808252818301909252600091602080830190803683370190505090508481600081518110610a6157610a61612522565b60200260200101906001600160a01b031690816001600160a01b031681525050610a8b878261139d565b610a93611693565b50505050505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610ae55760405162461bcd60e51b815260040161077790612581565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b1761109d565b6001600160a01b031614610b3d5760405162461bcd60e51b8152600401610777906125bb565b610b46826110b9565b610b52828260016110c1565b5050565b60008060005b8451811015610ce35760675460405163bf40fac160e01b8152600091829182916001600160a01b03169063bf40fac190610b989060040161264d565b60206040518083038186803b158015610bb057600080fd5b505afa158015610bc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be89190612505565b6001600160a01b031663d0250144898681518110610c0857610c08612522565b60200260200101516040518263ffffffff1660e01b8152600401610c2c91906123c3565b60806040518083038186803b158015610c4457600080fd5b505afa158015610c58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7c919061269a565b919550935091505080610ccd57610cc0888581518110610c9e57610c9e612522565b6020026020010151846001600160401b0316846001600160401b03168a610800565b610cca908661254e565b94505b5050508080610cdb90612566565b915050610b5c565b509392505050565b610d288383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061139d92505050565b505050565b60675460405163bf40fac160e01b81523391600091829182916001600160a01b039091169063bf40fac190610d649060040161264d565b60206040518083038186803b158015610d7c57600080fd5b505afa158015610d90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db49190612505565b6001600160a01b031663d0250144856040518263ffffffff1660e01b8152600401610ddf91906123c3565b60806040518083038186803b158015610df757600080fd5b505afa158015610e0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2f919061269a565b935093509350508015610e4457505050505050565b610a2a848787866001600160401b0316866001600160401b0316611bc3565b600054610100900460ff1680610e7c575060005460ff16155b610edf5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610777565b600054610100900460ff16158015610f01576000805461ffff19166101011790555b66d3c21bcecceda160191b60d355610f1882611c36565b8015610b52576000805461ff00191690555050565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b158015610f8c57600080fd5b505afa158015610fa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc49190612505565b905090565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110459190612505565b6001600160a01b03161461109b5760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610777565b565b600080516020612859833981519152546001600160a01b031690565b6107fd610fc9565b60006110cb61109d565b90506110d684611c59565b6000835111806110e35750815b156110f4576110f28484611cec565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661120157805460ff1916600117815560405161116f9086906111409085906024016123c3565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052611cec565b50805460ff1916815561118061109d565b6001600160a01b0316826001600160a01b0316146111f85760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610777565b61120185611dd7565b5050505050565b6001600160a01b0383166000908152609b6020908152604080832054609e9092529091205490838210801561123d5750834310155b6112475781611249565b835b9150600083431161125a574361125c565b835b90508481108061126c5750838310155b1561127757506112f8565b60006112838483612636565b6001600160a01b0388166000908152609f6020526040812054919250906112aa90836125f5565b6001600160a01b0389166000908152609a60205260409020549091506112db82676765c793fa10079d601b1b6125f5565b6112e59190612614565b6112ef908561254e565b93508294505050505b935093915050565b600061130d868484611e17565b6001600160a01b03808716600090815260a06020908152604080832093891683529290522054611354908790879061134f9088906001600160801b0316612636565b611e92565b6001600160a01b0386166000908152609a6020526040902054611378908590612636565b6001600160a01b0387166000908152609a602052604090205550600195945050505050565b60675460405163bf40fac160e01b815260009182916001600160a01b039091169063bf40fac1906113d09060040161264d565b60206040518083038186803b1580156113e857600080fd5b505afa1580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190612505565b905060005b835181101561152f576000806000846001600160a01b031663d025014488868151811061145457611454612522565b60200260200101516040518263ffffffff1660e01b815260040161147891906123c3565b60806040518083038186803b15801561149057600080fd5b505afa1580156114a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c8919061269a565b9195509350915050806115195761150c8785815181106114ea576114ea612522565b602002602001015189856001600160401b0316856001600160401b031661200e565b611516908761254e565b95505b505050808061152790612566565b915050611425565b50811561168d5760675460405163bf40fac160e01b815260206004820152600a6024820152692922a82aaa20aa24a7a760b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b15801561159457600080fd5b505afa1580156115a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cc9190612505565b6040516340c10f1960e01b81526001600160a01b0386811660048301526024820185905291909116906340c10f1990604401602060405180830381600087803b15801561161857600080fd5b505af115801561162c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165091906126f9565b507fb5bb6cf2a7d73ab2167d87f348feea953c3e405a4ece2a262cd92cdce829f6d284848460405161168493929190612714565b60405180910390a15b50505050565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac1906116c29060040161264d565b60206040518083038186803b1580156116da57600080fd5b505afa1580156116ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117129190612505565b6001600160a01b03161461109b5760675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac19061174f9060040161264d565b60206040518083038186803b15801561176757600080fd5b505afa15801561177b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179f9190612505565b90506000816001600160a01b0316630e47dbd96040518163ffffffff1660e01b815260040160206040518083038186803b1580156117dc57600080fd5b505afa1580156117f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118149190612779565b90506000816001600160401b038111156118305761183061220b565b604051908082528060200260200182016040528015611859578160200160208202803683370190505b5090506000826001600160401b038111156118765761187661220b565b60405190808252806020026020018201604052801561189f578160200160208202803683370190505b5090506000805b84811015611b07576040516372d00e9f60e01b8152600481018290526001600160a01b038716906372d00e9f9060240160206040518083038186803b1580156118ee57600080fd5b505afa158015611902573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119269190612505565b84828151811061193857611938612522565b60200260200101906001600160a01b031690816001600160a01b031681525050600080876001600160a01b031663d025014487858151811061197c5761197c612522565b60200260200101516040518263ffffffff1660e01b81526004016119a091906123c3565b60806040518083038186803b1580156119b857600080fd5b505afa1580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f0919061269a565b50925092505043826001600160401b031611158015611a17575043816001600160401b0316115b15611af2576000868481518110611a3057611a30612522565b60200260200101516001600160a01b031663e99b5d3d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a7057600080fd5b505afa158015611a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa89190612779565b905080868581518110611abd57611abd612522565b602002602001018181525050858481518110611adb57611adb612522565b602002602001015185611aee919061254e565b9450505b50508080611aff90612566565b9150506118a6565b5060005b84811015611bbb576000808311611b2f578560d354611b2a9190612614565b611b61565b82848381518110611b4257611b42612522565b602002602001015160d354611b5791906125f5565b611b619190612614565b90506000848381518110611b7757611b77612522565b60200260200101511115611ba857611ba8858381518110611b9a57611b9a612522565b602002602001015182612143565b5080611bb381612566565b915050611b0b565b505050505050565b6000611bd0868484611e17565b6001600160a01b03808716600090815260a06020908152604080832093891683529290522054611c12908790879061134f9088906001600160801b031661254e565b6001600160a01b0386166000908152609a602052604090205461137890859061254e565b606780546001600160a01b0319166001600160a01b0383161790556107fd610544565b803b611cbd5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610777565b60008051602061285983398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b611d4b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610777565b600080846001600160a01b031684604051611d6691906127be565b600060405180830381855af49150503d8060008114611da1576040519150601f19603f3d011682016040523d82523d6000602084013e611da6565b606091505b5091509150611dce828260405180606001604052806027815260200161287960279139612170565b95945050505050565b611de081611c59565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0383166000908152609a6020526040902054611e525750506001600160a01b03166000908152609e60205260409020439055565b600080611e60858585611208565b6001600160a01b039096166000908152609b6020908152604080832098909855609e9052959095209490945550505050565b6001600160a01b03808416600090815260a06020908152604080832093861683529290522080546001600160801b031615611f9e5780546001600160a01b0385166000908152609b602052604081205490916001600160801b03600160801b8204811692676765c793fa10079d601b1b92611f0d92166125f5565b611f179190612614565b611f219190612636565b6001830154909150611f3d9082906001600160801b03166127da565b6001830180546001600160801b0319166001600160801b03929092169190911790556001600160a01b0385166000908152609d6020526040902054611f8390829061254e565b6001600160a01b0386166000908152609d6020526040902055505b80546001600160801b0319166001600160801b0383161781556001600160a01b0384166000908152609b6020526040902054676765c793fa10079d601b1b90611fe790846125f5565b611ff19190612614565b81546001600160801b03918216600160801b029116179055505050565b600061201b858484611e17565b6001600160a01b03808616600090815260a0602090815260408083209388168352929052205461205790869086906001600160801b0316611e92565b6001600160a01b03858116600090815260a06020908152604080832093881683529290522060010180546001600160801b0380821692839290916010916120a7918591600160801b9004166127da565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03888116600081815260a060209081526040808320948c16835293815283822060010180546001600160801b0319169055918152609c909152205461211792509083169061254e565b6001600160a01b0387166000908152609c60205260409020556001600160801b03169050949350505050565b6121506202a30082612614565b6001600160a01b039092166000908152609f602052604090209190915550565b6060831561217f5750816121a9565b82511561218f5782518084602001fd5b8160405162461bcd60e51b81526004016107779190612805565b9392505050565b6000602082840312156121c257600080fd5b5035919050565b6001600160a01b03811681146107fd57600080fd5b80356121e9816121c9565b919050565b60006020828403121561220057600080fd5b81356121a9816121c9565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156122495761224961220b565b604052919050565b6000806040838503121561226457600080fd5b82356001600160401b038082111561227b57600080fd5b818501915085601f83011261228f57600080fd5b81356020828211156122a3576122a361220b565b8160051b92506122b4818401612221565b82815292840181019281810190898511156122ce57600080fd5b948201945b848610156122f857853593506122e8846121c9565b83825294820194908201906122d3565b965061230790508782016121de565b9450505050509250929050565b6000806040838503121561232757600080fd5b8235612332816121c9565b91506020830135612342816121c9565b809150509250929050565b6000806000806080858703121561236357600080fd5b843561236e816121c9565b93506020850135925060408501359150606085013561238c816121c9565b939692955090935050565b600080604083850312156123aa57600080fd5b82356123b5816121c9565b946020939093013593505050565b6001600160a01b0391909116815260200190565b600080604083850312156123ea57600080fd5b82356123f5816121c9565b91506020838101356001600160401b038082111561241257600080fd5b818601915086601f83011261242657600080fd5b8135818111156124385761243861220b565b61244a601f8201601f19168501612221565b9150808252878482850101111561246057600080fd5b80848401858401376000848284010152508093505050509250929050565b60008060006040848603121561249357600080fd5b833561249e816121c9565b925060208401356001600160401b03808211156124ba57600080fd5b818601915086601f8301126124ce57600080fd5b8135818111156124dd57600080fd5b8760208260051b85010111156124f257600080fd5b6020830194508093505050509250925092565b60006020828403121561251757600080fd5b81516121a9816121c9565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561256157612561612538565b500190565b600060001982141561257a5761257a612538565b5060010190565b6020808252602c9082015260008051602061283983398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061283983398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600081600019048311821515161561260f5761260f612538565b500290565b60008261263157634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561264857612648612538565b500390565b6020808252600c908201526b232aa7222fa6a0a720a3a2a960a11b604082015260600190565b80516001600160401b03811681146121e957600080fd5b805180151581146121e957600080fd5b600080600080608085870312156126b057600080fd5b845163ffffffff811681146126c457600080fd5b93506126d260208601612673565b92506126e060408601612673565b91506126ee6060860161268a565b905092959194509250565b60006020828403121561270b57600080fd5b6121a98261268a565b6001600160a01b038481168252606060208084018290528551918401829052600092868201929091906080860190855b81811015612762578551851683529483019491830191600101612744565b505080945050505050826040830152949350505050565b60006020828403121561278b57600080fd5b5051919050565b60005b838110156127ad578181015183820152602001612795565b8381111561168d5750506000910152565b600082516127d0818460208701612792565b9190910192915050565b60006001600160801b038281168482168083038211156127fc576127fc612538565b01949350505050565b6020815260008251806020840152612824816040850160208701612792565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220366ca391e1d79726fda5540b911ff2ca0d114f527575faa5acc41ebef433b7e564736f6c63430008080033";
|
|
546
|
+
|
|
547
|
+
type StakersDistributionConstructorParams =
|
|
548
|
+
| [signer?: Signer]
|
|
549
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
550
|
+
|
|
551
|
+
const isSuperArgs = (
|
|
552
|
+
xs: StakersDistributionConstructorParams
|
|
553
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
554
|
+
|
|
555
|
+
export class StakersDistribution__factory extends ContractFactory {
|
|
556
|
+
constructor(...args: StakersDistributionConstructorParams) {
|
|
557
|
+
if (isSuperArgs(args)) {
|
|
558
|
+
super(...args);
|
|
559
|
+
} else {
|
|
560
|
+
super(_abi, _bytecode, args[0]);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
deploy(
|
|
565
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
566
|
+
): Promise<StakersDistribution> {
|
|
567
|
+
return super.deploy(overrides || {}) as Promise<StakersDistribution>;
|
|
568
|
+
}
|
|
569
|
+
getDeployTransaction(
|
|
570
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
571
|
+
): TransactionRequest {
|
|
572
|
+
return super.getDeployTransaction(overrides || {});
|
|
573
|
+
}
|
|
574
|
+
attach(address: string): StakersDistribution {
|
|
575
|
+
return super.attach(address) as StakersDistribution;
|
|
576
|
+
}
|
|
577
|
+
connect(signer: Signer): StakersDistribution__factory {
|
|
578
|
+
return super.connect(signer) as StakersDistribution__factory;
|
|
579
|
+
}
|
|
580
|
+
static readonly bytecode = _bytecode;
|
|
581
|
+
static readonly abi = _abi;
|
|
582
|
+
static createInterface(): StakersDistributionInterface {
|
|
583
|
+
return new utils.Interface(_abi) as StakersDistributionInterface;
|
|
584
|
+
}
|
|
585
|
+
static connect(
|
|
586
|
+
address: string,
|
|
587
|
+
signerOrProvider: Signer | Provider
|
|
588
|
+
): StakersDistribution {
|
|
589
|
+
return new Contract(address, _abi, signerOrProvider) as StakersDistribution;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { Staking, StakingInterface } from "../Staking";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "uint256",
|
|
14
|
+
name: "amount",
|
|
15
|
+
type: "uint256",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
name: "stakeDAI",
|
|
19
|
+
outputs: [],
|
|
20
|
+
stateMutability: "nonpayable",
|
|
21
|
+
type: "function",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "staker",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "stakers",
|
|
32
|
+
outputs: [
|
|
33
|
+
{
|
|
34
|
+
components: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
name: "stakedDAI",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
internalType: "uint256",
|
|
42
|
+
name: "lastStake",
|
|
43
|
+
type: "uint256",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
internalType: "struct Staking.Staker",
|
|
47
|
+
name: "",
|
|
48
|
+
type: "tuple",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
stateMutability: "view",
|
|
52
|
+
type: "function",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [],
|
|
56
|
+
name: "withdrawStake",
|
|
57
|
+
outputs: [],
|
|
58
|
+
stateMutability: "nonpayable",
|
|
59
|
+
type: "function",
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
export class Staking__factory {
|
|
64
|
+
static readonly abi = _abi;
|
|
65
|
+
static createInterface(): StakingInterface {
|
|
66
|
+
return new utils.Interface(_abi) as StakingInterface;
|
|
67
|
+
}
|
|
68
|
+
static connect(
|
|
69
|
+
address: string,
|
|
70
|
+
signerOrProvider: Signer | Provider
|
|
71
|
+
): Staking {
|
|
72
|
+
return new Contract(address, _abi, signerOrProvider) as Staking;
|
|
73
|
+
}
|
|
74
|
+
}
|