@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,922 @@
|
|
|
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
|
+
GovernanceStaking,
|
|
9
|
+
GovernanceStakingInterface,
|
|
10
|
+
} from "../GovernanceStaking";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "contract INameService",
|
|
17
|
+
name: "_ns",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
stateMutability: "nonpayable",
|
|
22
|
+
type: "constructor",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
anonymous: false,
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
indexed: false,
|
|
29
|
+
internalType: "address",
|
|
30
|
+
name: "previousAdmin",
|
|
31
|
+
type: "address",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
indexed: false,
|
|
35
|
+
internalType: "address",
|
|
36
|
+
name: "newAdmin",
|
|
37
|
+
type: "address",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
name: "AdminChanged",
|
|
41
|
+
type: "event",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
anonymous: false,
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
indexed: true,
|
|
48
|
+
internalType: "address",
|
|
49
|
+
name: "owner",
|
|
50
|
+
type: "address",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
indexed: true,
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "spender",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
indexed: false,
|
|
60
|
+
internalType: "uint256",
|
|
61
|
+
name: "value",
|
|
62
|
+
type: "uint256",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "Approval",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "beacon",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "BeaconUpgraded",
|
|
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: "uint256",
|
|
93
|
+
name: "amount",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "ReputationEarned",
|
|
98
|
+
type: "event",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
anonymous: false,
|
|
102
|
+
inputs: [
|
|
103
|
+
{
|
|
104
|
+
indexed: true,
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "staker",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
indexed: false,
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "amount",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
name: "StakeWithdraw",
|
|
117
|
+
type: "event",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
anonymous: false,
|
|
121
|
+
inputs: [
|
|
122
|
+
{
|
|
123
|
+
indexed: true,
|
|
124
|
+
internalType: "address",
|
|
125
|
+
name: "staker",
|
|
126
|
+
type: "address",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
indexed: false,
|
|
130
|
+
internalType: "uint256",
|
|
131
|
+
name: "amount",
|
|
132
|
+
type: "uint256",
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
name: "Staked",
|
|
136
|
+
type: "event",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
anonymous: false,
|
|
140
|
+
inputs: [
|
|
141
|
+
{
|
|
142
|
+
indexed: true,
|
|
143
|
+
internalType: "address",
|
|
144
|
+
name: "from",
|
|
145
|
+
type: "address",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
indexed: true,
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "to",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
indexed: false,
|
|
155
|
+
internalType: "uint256",
|
|
156
|
+
name: "value",
|
|
157
|
+
type: "uint256",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
name: "Transfer",
|
|
161
|
+
type: "event",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
anonymous: false,
|
|
165
|
+
inputs: [
|
|
166
|
+
{
|
|
167
|
+
indexed: true,
|
|
168
|
+
internalType: "address",
|
|
169
|
+
name: "implementation",
|
|
170
|
+
type: "address",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "Upgraded",
|
|
174
|
+
type: "event",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
inputs: [],
|
|
178
|
+
name: "FUSE_MONTHLY_BLOCKS",
|
|
179
|
+
outputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
stateMutability: "view",
|
|
187
|
+
type: "function",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "address",
|
|
193
|
+
name: "owner",
|
|
194
|
+
type: "address",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
internalType: "address",
|
|
198
|
+
name: "spender",
|
|
199
|
+
type: "address",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
name: "allowance",
|
|
203
|
+
outputs: [
|
|
204
|
+
{
|
|
205
|
+
internalType: "uint256",
|
|
206
|
+
name: "",
|
|
207
|
+
type: "uint256",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
stateMutability: "view",
|
|
211
|
+
type: "function",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
inputs: [
|
|
215
|
+
{
|
|
216
|
+
internalType: "address",
|
|
217
|
+
name: "spender",
|
|
218
|
+
type: "address",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
internalType: "uint256",
|
|
222
|
+
name: "amount",
|
|
223
|
+
type: "uint256",
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
name: "approve",
|
|
227
|
+
outputs: [
|
|
228
|
+
{
|
|
229
|
+
internalType: "bool",
|
|
230
|
+
name: "",
|
|
231
|
+
type: "bool",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
stateMutability: "nonpayable",
|
|
235
|
+
type: "function",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
inputs: [],
|
|
239
|
+
name: "avatar",
|
|
240
|
+
outputs: [
|
|
241
|
+
{
|
|
242
|
+
internalType: "address",
|
|
243
|
+
name: "",
|
|
244
|
+
type: "address",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
stateMutability: "view",
|
|
248
|
+
type: "function",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
inputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "address",
|
|
254
|
+
name: "account",
|
|
255
|
+
type: "address",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "balanceOf",
|
|
259
|
+
outputs: [
|
|
260
|
+
{
|
|
261
|
+
internalType: "uint256",
|
|
262
|
+
name: "",
|
|
263
|
+
type: "uint256",
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
stateMutability: "view",
|
|
267
|
+
type: "function",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
inputs: [
|
|
271
|
+
{
|
|
272
|
+
internalType: "address",
|
|
273
|
+
name: "",
|
|
274
|
+
type: "address",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
internalType: "address",
|
|
278
|
+
name: "",
|
|
279
|
+
type: "address",
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
name: "contractToUsers",
|
|
283
|
+
outputs: [
|
|
284
|
+
{
|
|
285
|
+
internalType: "uint128",
|
|
286
|
+
name: "amount",
|
|
287
|
+
type: "uint128",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
internalType: "uint128",
|
|
291
|
+
name: "rewardDebt",
|
|
292
|
+
type: "uint128",
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
internalType: "uint128",
|
|
296
|
+
name: "rewardEarn",
|
|
297
|
+
type: "uint128",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
internalType: "uint128",
|
|
301
|
+
name: "rewardMinted",
|
|
302
|
+
type: "uint128",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
stateMutability: "view",
|
|
306
|
+
type: "function",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
inputs: [],
|
|
310
|
+
name: "dao",
|
|
311
|
+
outputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "contract Controller",
|
|
314
|
+
name: "",
|
|
315
|
+
type: "address",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
stateMutability: "view",
|
|
319
|
+
type: "function",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
inputs: [],
|
|
323
|
+
name: "decimals",
|
|
324
|
+
outputs: [
|
|
325
|
+
{
|
|
326
|
+
internalType: "uint8",
|
|
327
|
+
name: "",
|
|
328
|
+
type: "uint8",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
stateMutability: "view",
|
|
332
|
+
type: "function",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
inputs: [
|
|
336
|
+
{
|
|
337
|
+
internalType: "address",
|
|
338
|
+
name: "spender",
|
|
339
|
+
type: "address",
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
internalType: "uint256",
|
|
343
|
+
name: "subtractedValue",
|
|
344
|
+
type: "uint256",
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
name: "decreaseAllowance",
|
|
348
|
+
outputs: [
|
|
349
|
+
{
|
|
350
|
+
internalType: "bool",
|
|
351
|
+
name: "",
|
|
352
|
+
type: "bool",
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
stateMutability: "nonpayable",
|
|
356
|
+
type: "function",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
inputs: [],
|
|
360
|
+
name: "getChainBlocksPerMonth",
|
|
361
|
+
outputs: [
|
|
362
|
+
{
|
|
363
|
+
internalType: "uint256",
|
|
364
|
+
name: "",
|
|
365
|
+
type: "uint256",
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
stateMutability: "pure",
|
|
369
|
+
type: "function",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
inputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "address",
|
|
375
|
+
name: "_user",
|
|
376
|
+
type: "address",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
name: "getProductivity",
|
|
380
|
+
outputs: [
|
|
381
|
+
{
|
|
382
|
+
internalType: "uint256",
|
|
383
|
+
name: "",
|
|
384
|
+
type: "uint256",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
internalType: "uint256",
|
|
388
|
+
name: "",
|
|
389
|
+
type: "uint256",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
stateMutability: "view",
|
|
393
|
+
type: "function",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
inputs: [
|
|
397
|
+
{
|
|
398
|
+
internalType: "address",
|
|
399
|
+
name: "_contract",
|
|
400
|
+
type: "address",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
internalType: "address",
|
|
404
|
+
name: "_user",
|
|
405
|
+
type: "address",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
name: "getProductivity",
|
|
409
|
+
outputs: [
|
|
410
|
+
{
|
|
411
|
+
internalType: "uint256",
|
|
412
|
+
name: "",
|
|
413
|
+
type: "uint256",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "uint256",
|
|
417
|
+
name: "",
|
|
418
|
+
type: "uint256",
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
stateMutability: "view",
|
|
422
|
+
type: "function",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
inputs: [],
|
|
426
|
+
name: "getRewardsPerBlock",
|
|
427
|
+
outputs: [
|
|
428
|
+
{
|
|
429
|
+
internalType: "uint256",
|
|
430
|
+
name: "",
|
|
431
|
+
type: "uint256",
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
stateMutability: "view",
|
|
435
|
+
type: "function",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
inputs: [
|
|
439
|
+
{
|
|
440
|
+
internalType: "address",
|
|
441
|
+
name: "_contract",
|
|
442
|
+
type: "address",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
internalType: "uint256",
|
|
446
|
+
name: "_blockStart",
|
|
447
|
+
type: "uint256",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
internalType: "uint256",
|
|
451
|
+
name: "_blockEnd",
|
|
452
|
+
type: "uint256",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
internalType: "address",
|
|
456
|
+
name: "_user",
|
|
457
|
+
type: "address",
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
name: "getUserPendingReward",
|
|
461
|
+
outputs: [
|
|
462
|
+
{
|
|
463
|
+
internalType: "uint256",
|
|
464
|
+
name: "",
|
|
465
|
+
type: "uint256",
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
stateMutability: "view",
|
|
469
|
+
type: "function",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
inputs: [
|
|
473
|
+
{
|
|
474
|
+
internalType: "address",
|
|
475
|
+
name: "_user",
|
|
476
|
+
type: "address",
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
name: "getUserPendingReward",
|
|
480
|
+
outputs: [
|
|
481
|
+
{
|
|
482
|
+
internalType: "uint256",
|
|
483
|
+
name: "",
|
|
484
|
+
type: "uint256",
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
stateMutability: "view",
|
|
488
|
+
type: "function",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
inputs: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "address",
|
|
494
|
+
name: "spender",
|
|
495
|
+
type: "address",
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
internalType: "uint256",
|
|
499
|
+
name: "addedValue",
|
|
500
|
+
type: "uint256",
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
name: "increaseAllowance",
|
|
504
|
+
outputs: [
|
|
505
|
+
{
|
|
506
|
+
internalType: "bool",
|
|
507
|
+
name: "",
|
|
508
|
+
type: "bool",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
stateMutability: "nonpayable",
|
|
512
|
+
type: "function",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
inputs: [
|
|
516
|
+
{
|
|
517
|
+
internalType: "address",
|
|
518
|
+
name: "",
|
|
519
|
+
type: "address",
|
|
520
|
+
},
|
|
521
|
+
],
|
|
522
|
+
name: "lastRewardBlock",
|
|
523
|
+
outputs: [
|
|
524
|
+
{
|
|
525
|
+
internalType: "uint256",
|
|
526
|
+
name: "",
|
|
527
|
+
type: "uint256",
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
stateMutability: "view",
|
|
531
|
+
type: "function",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
inputs: [],
|
|
535
|
+
name: "name",
|
|
536
|
+
outputs: [
|
|
537
|
+
{
|
|
538
|
+
internalType: "string",
|
|
539
|
+
name: "",
|
|
540
|
+
type: "string",
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
stateMutability: "view",
|
|
544
|
+
type: "function",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
inputs: [],
|
|
548
|
+
name: "nameService",
|
|
549
|
+
outputs: [
|
|
550
|
+
{
|
|
551
|
+
internalType: "contract INameService",
|
|
552
|
+
name: "",
|
|
553
|
+
type: "address",
|
|
554
|
+
},
|
|
555
|
+
],
|
|
556
|
+
stateMutability: "view",
|
|
557
|
+
type: "function",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
inputs: [],
|
|
561
|
+
name: "nativeToken",
|
|
562
|
+
outputs: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "contract IGoodDollar",
|
|
565
|
+
name: "",
|
|
566
|
+
type: "address",
|
|
567
|
+
},
|
|
568
|
+
],
|
|
569
|
+
stateMutability: "view",
|
|
570
|
+
type: "function",
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
inputs: [
|
|
574
|
+
{
|
|
575
|
+
internalType: "address",
|
|
576
|
+
name: "",
|
|
577
|
+
type: "address",
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
name: "rewardsMintedSoFar",
|
|
581
|
+
outputs: [
|
|
582
|
+
{
|
|
583
|
+
internalType: "uint256",
|
|
584
|
+
name: "",
|
|
585
|
+
type: "uint256",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
stateMutability: "view",
|
|
589
|
+
type: "function",
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
inputs: [
|
|
593
|
+
{
|
|
594
|
+
internalType: "address",
|
|
595
|
+
name: "",
|
|
596
|
+
type: "address",
|
|
597
|
+
},
|
|
598
|
+
],
|
|
599
|
+
name: "rewardsPerBlock",
|
|
600
|
+
outputs: [
|
|
601
|
+
{
|
|
602
|
+
internalType: "uint256",
|
|
603
|
+
name: "",
|
|
604
|
+
type: "uint256",
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
stateMutability: "view",
|
|
608
|
+
type: "function",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
inputs: [
|
|
612
|
+
{
|
|
613
|
+
internalType: "uint256",
|
|
614
|
+
name: "_monthlyAmount",
|
|
615
|
+
type: "uint256",
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
name: "setMonthlyRewards",
|
|
619
|
+
outputs: [],
|
|
620
|
+
stateMutability: "nonpayable",
|
|
621
|
+
type: "function",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
inputs: [
|
|
625
|
+
{
|
|
626
|
+
internalType: "uint256",
|
|
627
|
+
name: "_amount",
|
|
628
|
+
type: "uint256",
|
|
629
|
+
},
|
|
630
|
+
],
|
|
631
|
+
name: "stake",
|
|
632
|
+
outputs: [],
|
|
633
|
+
stateMutability: "nonpayable",
|
|
634
|
+
type: "function",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
inputs: [],
|
|
638
|
+
name: "symbol",
|
|
639
|
+
outputs: [
|
|
640
|
+
{
|
|
641
|
+
internalType: "string",
|
|
642
|
+
name: "",
|
|
643
|
+
type: "string",
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
stateMutability: "view",
|
|
647
|
+
type: "function",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
inputs: [
|
|
651
|
+
{
|
|
652
|
+
internalType: "address",
|
|
653
|
+
name: "",
|
|
654
|
+
type: "address",
|
|
655
|
+
},
|
|
656
|
+
],
|
|
657
|
+
name: "totalRewardsAccumulated",
|
|
658
|
+
outputs: [
|
|
659
|
+
{
|
|
660
|
+
internalType: "uint256",
|
|
661
|
+
name: "",
|
|
662
|
+
type: "uint256",
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
stateMutability: "view",
|
|
666
|
+
type: "function",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
inputs: [
|
|
670
|
+
{
|
|
671
|
+
internalType: "address",
|
|
672
|
+
name: "_contract",
|
|
673
|
+
type: "address",
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
name: "totalRewardsPerShare",
|
|
677
|
+
outputs: [
|
|
678
|
+
{
|
|
679
|
+
internalType: "uint256",
|
|
680
|
+
name: "",
|
|
681
|
+
type: "uint256",
|
|
682
|
+
},
|
|
683
|
+
],
|
|
684
|
+
stateMutability: "view",
|
|
685
|
+
type: "function",
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
inputs: [],
|
|
689
|
+
name: "totalRewardsPerShare",
|
|
690
|
+
outputs: [
|
|
691
|
+
{
|
|
692
|
+
internalType: "uint256",
|
|
693
|
+
name: "",
|
|
694
|
+
type: "uint256",
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
stateMutability: "view",
|
|
698
|
+
type: "function",
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
inputs: [],
|
|
702
|
+
name: "totalSupply",
|
|
703
|
+
outputs: [
|
|
704
|
+
{
|
|
705
|
+
internalType: "uint256",
|
|
706
|
+
name: "",
|
|
707
|
+
type: "uint256",
|
|
708
|
+
},
|
|
709
|
+
],
|
|
710
|
+
stateMutability: "view",
|
|
711
|
+
type: "function",
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
inputs: [
|
|
715
|
+
{
|
|
716
|
+
internalType: "address",
|
|
717
|
+
name: "recipient",
|
|
718
|
+
type: "address",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
internalType: "uint256",
|
|
722
|
+
name: "amount",
|
|
723
|
+
type: "uint256",
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
name: "transfer",
|
|
727
|
+
outputs: [
|
|
728
|
+
{
|
|
729
|
+
internalType: "bool",
|
|
730
|
+
name: "",
|
|
731
|
+
type: "bool",
|
|
732
|
+
},
|
|
733
|
+
],
|
|
734
|
+
stateMutability: "nonpayable",
|
|
735
|
+
type: "function",
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
inputs: [
|
|
739
|
+
{
|
|
740
|
+
internalType: "address",
|
|
741
|
+
name: "sender",
|
|
742
|
+
type: "address",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
internalType: "address",
|
|
746
|
+
name: "recipient",
|
|
747
|
+
type: "address",
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
internalType: "uint256",
|
|
751
|
+
name: "amount",
|
|
752
|
+
type: "uint256",
|
|
753
|
+
},
|
|
754
|
+
],
|
|
755
|
+
name: "transferFrom",
|
|
756
|
+
outputs: [
|
|
757
|
+
{
|
|
758
|
+
internalType: "bool",
|
|
759
|
+
name: "",
|
|
760
|
+
type: "bool",
|
|
761
|
+
},
|
|
762
|
+
],
|
|
763
|
+
stateMutability: "nonpayable",
|
|
764
|
+
type: "function",
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
inputs: [],
|
|
768
|
+
name: "updateAvatar",
|
|
769
|
+
outputs: [],
|
|
770
|
+
stateMutability: "nonpayable",
|
|
771
|
+
type: "function",
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
inputs: [
|
|
775
|
+
{
|
|
776
|
+
internalType: "address",
|
|
777
|
+
name: "newImplementation",
|
|
778
|
+
type: "address",
|
|
779
|
+
},
|
|
780
|
+
],
|
|
781
|
+
name: "upgradeTo",
|
|
782
|
+
outputs: [],
|
|
783
|
+
stateMutability: "nonpayable",
|
|
784
|
+
type: "function",
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
inputs: [
|
|
788
|
+
{
|
|
789
|
+
internalType: "address",
|
|
790
|
+
name: "newImplementation",
|
|
791
|
+
type: "address",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
internalType: "bytes",
|
|
795
|
+
name: "data",
|
|
796
|
+
type: "bytes",
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
name: "upgradeToAndCall",
|
|
800
|
+
outputs: [],
|
|
801
|
+
stateMutability: "payable",
|
|
802
|
+
type: "function",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
inputs: [
|
|
806
|
+
{
|
|
807
|
+
internalType: "address",
|
|
808
|
+
name: "_user",
|
|
809
|
+
type: "address",
|
|
810
|
+
},
|
|
811
|
+
],
|
|
812
|
+
name: "users",
|
|
813
|
+
outputs: [
|
|
814
|
+
{
|
|
815
|
+
components: [
|
|
816
|
+
{
|
|
817
|
+
internalType: "uint128",
|
|
818
|
+
name: "amount",
|
|
819
|
+
type: "uint128",
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
internalType: "uint128",
|
|
823
|
+
name: "rewardDebt",
|
|
824
|
+
type: "uint128",
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
internalType: "uint128",
|
|
828
|
+
name: "rewardEarn",
|
|
829
|
+
type: "uint128",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
internalType: "uint128",
|
|
833
|
+
name: "rewardMinted",
|
|
834
|
+
type: "uint128",
|
|
835
|
+
},
|
|
836
|
+
],
|
|
837
|
+
internalType: "struct MultiBaseGovernanceShareField.UserInfo",
|
|
838
|
+
name: "",
|
|
839
|
+
type: "tuple",
|
|
840
|
+
},
|
|
841
|
+
],
|
|
842
|
+
stateMutability: "view",
|
|
843
|
+
type: "function",
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
inputs: [],
|
|
847
|
+
name: "withdrawRewards",
|
|
848
|
+
outputs: [
|
|
849
|
+
{
|
|
850
|
+
internalType: "uint256",
|
|
851
|
+
name: "",
|
|
852
|
+
type: "uint256",
|
|
853
|
+
},
|
|
854
|
+
],
|
|
855
|
+
stateMutability: "nonpayable",
|
|
856
|
+
type: "function",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
inputs: [
|
|
860
|
+
{
|
|
861
|
+
internalType: "uint256",
|
|
862
|
+
name: "_amount",
|
|
863
|
+
type: "uint256",
|
|
864
|
+
},
|
|
865
|
+
],
|
|
866
|
+
name: "withdrawStake",
|
|
867
|
+
outputs: [],
|
|
868
|
+
stateMutability: "nonpayable",
|
|
869
|
+
type: "function",
|
|
870
|
+
},
|
|
871
|
+
];
|
|
872
|
+
|
|
873
|
+
const _bytecode =
|
|
874
|
+
"0x60a06040523060601b6080523480156200001857600080fd5b5060405162002f4638038062002f468339810160408190526200003b9162000564565b62000046816200018c565b6101045460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b158015620000a657600080fd5b505afa158015620000bb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000e1919062000564565b61016980546001600160a01b0319166001600160a01b0392909216919091179055604080518082018252601381527f4724205374616b696e6720466f7220474f4f4400000000000000000000000000602080830191909152825180840190935260038352621cd1c960ea1b908301526200015b91620001b5565b620001756207e9006a01a784379d99db420000006200058b565b306000908152606a60205260409020555062000639565b61010480546001600160a01b0319166001600160a01b038316179055620001b262000248565b50565b600054610100900460ff1680620001cf575060005460ff16155b620001f75760405162461bcd60e51b8152600401620001ee90620005ae565b60405180910390fd5b600054610100900460ff161580156200021a576000805461ffff19166101011790555b6200022462000398565b62000230838362000409565b801562000243576000805461ff00191690555b505050565b6101045460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b158015620002a857600080fd5b505afa158015620002bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e3919062000564565b61010280546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b1580156200033a57600080fd5b505afa1580156200034f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000375919062000564565b61010380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680620003b2575060005460ff16155b620003d15760405162461bcd60e51b8152600401620001ee90620005ae565b600054610100900460ff16158015620003f4576000805461ffff19166101011790555b8015620001b2576000805461ff001916905550565b600054610100900460ff168062000423575060005460ff16155b620004425760405162461bcd60e51b8152600401620001ee90620005ae565b600054610100900460ff1615801562000465576000805461ffff19166101011790555b82516200047a906036906020860190620004a8565b50815162000490906037906020850190620004a8565b50801562000243576000805461ff0019169055505050565b828054620004b690620005fc565b90600052602060002090601f016020900481019282620004da576000855562000525565b82601f10620004f557805160ff191683800117855562000525565b8280016001018555821562000525579182015b828111156200052557825182559160200191906001019062000508565b506200053392915062000537565b5090565b5b8082111562000533576000815560010162000538565b6001600160a01b0381168114620001b257600080fd5b6000602082840312156200057757600080fd5b815162000584816200054e565b9392505050565b600082620005a957634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c908216806200061157607f821691505b602082108114156200063357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c6128d96200066d60003960008181610cb301528181610cf301528181610eef0152610f2f01526128d96000f3fe6080604052600436106101aa5760003560e01c806306fdde03146101af578063095ea7b3146101da5780630c1cd7f31461020a57806318160ddd146102365780631b3c90a81461024b578063213b329e1461026257806322dec37b1461027857806323b872dd146102a557806325d5971f146102c557806328e964e9146102e55780632e42a8961461031a578063313ce567146103ac57806331903da1146103c85780633659cfe6146103f557806339509351146104155780633d9a12cc146104355780633e6326fc146104555780634162169f1461048357806347b3e7e8146104a45780634f1db7f6146104d15780634f1ef286146104f15780635aef7de61461050457806370a08231146105255780637bcbb9ff1461055b578063846141b31461057b57806395d89b41146105a8578063a457c2d7146105bd578063a694fc3a146105dd578063a87430ba146105fd578063a9059cbb146106eb578063b46aa5271461070b578063bf8e9b6e14610722578063c671062914610737578063c76279a214610757578063c7b8981c14610777578063dd62ed3e1461078c578063e1758bd8146107d2575b600080fd5b3480156101bb57600080fd5b506101c46107e7565b6040516101d1919061239d565b60405180910390f35b3480156101e657600080fd5b506101fa6101f53660046123e5565b610879565b60405190151581526020016101d1565b34801561021657600080fd5b50306000908152606a60205260409020545b6040519081526020016101d1565b34801561024257600080fd5b50603554610228565b34801561025757600080fd5b5061026061088f565b005b34801561026e57600080fd5b506207e900610228565b34801561028457600080fd5b50610228610293366004612411565b60676020526000908152604090205481565b3480156102b157600080fd5b506101fa6102c036600461242e565b6109d7565b3480156102d157600080fd5b506102606102e036600461246f565b610a88565b3480156102f157600080fd5b50610305610300366004612411565b610c92565b604080519283526020830191909152016101d1565b34801561032657600080fd5b50610379610335366004612488565b606b602090815260009283526040808420909152908252902080546001909101546001600160801b0380831692600160801b90819004821692808316929190041684565b604080516001600160801b03958616815293851660208501529184169183019190915290911660608201526080016101d1565b3480156103b857600080fd5b50604051600281526020016101d1565b3480156103d457600080fd5b506102286103e3366004612411565b60686020526000908152604090205481565b34801561040157600080fd5b50610260610410366004612411565b610ca8565b34801561042157600080fd5b506101fa6104303660046123e5565b610d71565b34801561044157600080fd5b506102286104503660046124c1565b610dad565b34801561046157600080fd5b5061010454610476906001600160a01b031681565b6040516101d1919061250b565b34801561048f57600080fd5b5061010254610476906001600160a01b031681565b3480156104b057600080fd5b506102286104bf366004612411565b606a6020526000908152604090205481565b3480156104dd57600080fd5b506103056104ec366004612488565b610ea1565b6102606104ff366004612535565b610ee4565b34801561051057600080fd5b5061010354610476906001600160a01b031681565b34801561053157600080fd5b50610228610540366004612411565b6001600160a01b031660009081526033602052604090205490565b34801561056757600080fd5b50610228610576366004612411565b610f9e565b34801561058757600080fd5b50610228610596366004612411565b60696020526000908152604090205481565b3480156105b457600080fd5b506101c4610fb9565b3480156105c957600080fd5b506101fa6105d83660046123e5565b610fc8565b3480156105e957600080fd5b506102606105f836600461246f565b611061565b34801561060957600080fd5b506106a8610618366004612411565b60408051608081018252600080825260208201819052918101829052606081019190915250306000908152606b602090815260408083206001600160a01b0394909416835292815290829020825160808101845281546001600160801b038082168352600160801b9182900481169483019490945260019092015480841694820194909452920416606082015290565b6040516101d1919081516001600160801b039081168252602080840151821690830152604080840151821690830152606092830151169181019190915260800190565b3480156106f757600080fd5b506101fa6107063660046123e5565b611226565b34801561071757600080fd5b506102286207e90081565b34801561072e57600080fd5b50610228611233565b34801561074357600080fd5b50610228610752366004612411565b611243565b34801561076357600080fd5b5061026061077236600461246f565b611258565b34801561078357600080fd5b5061022861126a565b34801561079857600080fd5b506102286107a7366004612488565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b3480156107de57600080fd5b506104766112aa565b6060603680546107f6906125f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610822906125f8565b801561086f5780601f106108445761010080835404028352916020019161086f565b820191906000526020600020905b81548152906001019060200180831161085257829003601f168201915b5050505050905090565b6000610886338484611342565b50600192915050565b6101045460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156108ee57600080fd5b505afa158015610902573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109269190612633565b61010280546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b15801561097c57600080fd5b505afa158015610990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b49190612633565b61010380546001600160a01b0319166001600160a01b0392909216919091179055565b60006109e4848484611466565b6001600160a01b038416600090815260346020908152604080832033845290915290205482811015610a6e5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610a7b8533858403611342565b60019150505b9392505050565b6002610137541415610aac5760405162461bcd60e51b8152600401610a6590612650565b6002610137556000610abe3033610ea1565b50905081610aca578091505b60008211610b1a5760405162461bcd60e51b815260206004820152601f60248201527f53686f756c6420776974686472617720706f73697469766520616d6f756e74006044820152606401610a65565b81811015610b645760405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da081d1bdad95b881cdd185ad959604a1b6044820152606401610a65565b81610b6f33846114a8565b610b7d3033856000436115e4565b50610b8733611681565b50610169546001600160a01b031663a9059cbb33836040518363ffffffff1660e01b8152600401610bb9929190612687565b602060405180830381600087803b158015610bd357600080fd5b505af1158015610be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0b91906126a0565b610c525760405162461bcd60e51b81526020600482015260186024820152771dda5d1a191c985dc81d1c985b9cd9995c8819985a5b195960421b6044820152606401610a65565b60405183815233907f1248d48e2de900a1010c7fce73506969ecec243600bfc08b641b158f26d857cd9060200160405180910390a2505060016101375550565b600080610c9f3084610ea1565b91509150915091565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610cf15760405162461bcd60e51b8152600401610a65906126c2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d236117eb565b6001600160a01b031614610d495760405162461bcd60e51b8152600401610a65906126fc565b610d5281611807565b60408051600080825260208201909252610d6e9183919061180f565b50565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610886918590610da890869061274c565b611342565b6001600160a01b038085166000818152606b602090815260408083209486168352938152838220845160808101865281546001600160801b038082168352600160801b91829004811683860152600190930154808416838901520490911660608201529282526065905291822054829015610e97576000610e2f888888611956565b91505082604001516001600160801b0316915082602001516001600160801b0316676765c793fa10079d601b1b8285600001516001600160801b0316610e759190612764565b610e7f9190612783565b610e8991906127a5565b610e93908361274c565b9150505b9695505050505050565b6001600160a01b039182166000818152606b60209081526040808320949095168252928352838120549181526065909252919020546001600160801b0390911691565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610f2d5760405162461bcd60e51b8152600401610a65906126c2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f5f6117eb565b6001600160a01b031614610f855760405162461bcd60e51b8152600401610a65906126fc565b610f8e82611807565b610f9a8282600161180f565b5050565b6001600160a01b031660009081526066602052604090205490565b6060603780546107f6906125f8565b3360009081526034602090815260408083206001600160a01b03861684529091528120548281101561104a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a65565b6110573385858403611342565b5060019392505050565b600081116110c35760405162461bcd60e51b815260206004820152602960248201527f596f75206e65656420746f207374616b65206120706f73697469766520746f6b604482015268195b88185b5bdd5b9d60ba1b6064820152608401610a65565b610169546001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401602060405180830381600087803b15801561112457600080fd5b505af1158015611138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115c91906126a0565b6111cb5760405162461bcd60e51b815260206004820152603a60248201527f7472616e7366657246726f6d206661696c65642c206d616b652073757265207960448201527937ba9030b8383937bb32b2103a37b5b2b7103a3930b739b332b960311b6064820152608401610a65565b6111d9303383600043611a4e565b506111e43382611ac1565b6111ed33611681565b5060405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a250565b6000610886338484611466565b600061123e30610f9e565b905090565b60006112523060004385610dad565b92915050565b611260611b8e565b610d6e3082611c63565b600060026101375414156112905760405162461bcd60e51b8152600401610a6590612650565b60026101375561129f33611681565b905060016101375590565b6101045460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b15801561130a57600080fd5b505afa15801561131e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123e9190612633565b6001600160a01b0383166113a45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a65565b6001600160a01b0382166114055760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a65565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6114743084836000436115e4565b50611483308383600043611a4e565b5061148d83611681565b5061149782611681565b506114a3838383611c90565b505050565b6001600160a01b0382166115085760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a65565b6001600160a01b0382166000908152603360205260409020548181101561157c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a65565b6001600160a01b03831660009081526033602052604081208383039055603580548492906115ab9084906127a5565b90915550506040518281526000906001600160a01b038516906000805160206128848339815191529060200160405180910390a3505050565b60006115f1868484611e4e565b6001600160a01b038087166000908152606b602090815260408083209389168352929052205461163890879087906116339088906001600160801b03166127a5565b611ec9565b6001600160a01b03861660009081526065602052604090205461165c9085906127a5565b6001600160a01b03871660009081526065602052604090205550600195945050505050565b6000806116913084600043612045565b90508015611252576101045460405163bf40fac160e01b815260206004820152600a6024820152692922a82aaa20aa24a7a760b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156116f857600080fd5b505afa15801561170c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117309190612633565b6001600160a01b03166340c10f1984836040518363ffffffff1660e01b815260040161175d929190612687565b602060405180830381600087803b15801561177757600080fd5b505af115801561178b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117af91906127bc565b5060405181815233907f43848d0574703c28d68ae8958e0571521618f60c4bcacfb094cff2156eaae0f19060200160405180910390a292915050565b60008051602061283d833981519152546001600160a01b031690565b610d6e611b8e565b60006118196117eb565b90506118248461217a565b6000835111806118315750815b1561184257611840848461220d565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661194f57805460ff191660011781556040516118bd90869061188e90859060240161250b565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b17905261220d565b50805460ff191681556118ce6117eb565b6001600160a01b0316826001600160a01b0316146119465760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610a65565b61194f856122f8565b5050505050565b6001600160a01b03831660009081526066602090815260408083205460699092529091205490838210801561198b5750834310155b6119955781611997565b835b915060008343116119a857436119aa565b835b9050848110806119ba5750838310155b156119c55750611a46565b60006119d184836127a5565b6001600160a01b0388166000908152606a6020526040812054919250906119f89083612764565b6001600160a01b038916600090815260656020526040902054909150611a2982676765c793fa10079d601b1b612764565b611a339190612783565b611a3d908561274c565b93508294505050505b935093915050565b6000611a5b868484611e4e565b6001600160a01b038087166000908152606b6020908152604080832093891683529290522054611a9d90879087906116339088906001600160801b031661274c565b6001600160a01b03861660009081526065602052604090205461165c90859061274c565b6001600160a01b038216611b175760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a65565b8060356000828254611b29919061274c565b90915550506001600160a01b03821660009081526033602052604081208054839290611b5690849061274c565b90915550506040518181526001600160a01b038316906000906000805160206128848339815191529060200160405180910390a35050565b6101025460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b158015611bd357600080fd5b505afa158015611be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0b9190612633565b6001600160a01b031614611c615760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610a65565b565b611c706207e90082612783565b6001600160a01b039092166000908152606a602052604090209190915550565b6001600160a01b038316611cf45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a65565b6001600160a01b038216611d565760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a65565b6001600160a01b03831660009081526033602052604090205481811015611dce5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a65565b6001600160a01b03808516600090815260336020526040808220858503905591851681529081208054849290611e0590849061274c565b92505081905550826001600160a01b0316846001600160a01b031660008051602061288483398151915284604051611e3f91815260200190565b60405180910390a35b50505050565b6001600160a01b038316600090815260656020526040902054611e895750506001600160a01b03166000908152606960205260409020439055565b600080611e97858585611956565b6001600160a01b0390961660009081526066602090815260408083209890985560699052959095209490945550505050565b6001600160a01b038084166000908152606b6020908152604080832093861683529290522080546001600160801b031615611fd55780546001600160a01b03851660009081526066602052604081205490916001600160801b03600160801b8204811692676765c793fa10079d601b1b92611f449216612764565b611f4e9190612783565b611f5891906127a5565b6001830154909150611f749082906001600160801b03166127d5565b6001830180546001600160801b0319166001600160801b03929092169190911790556001600160a01b038516600090815260686020526040902054611fba90829061274c565b6001600160a01b038616600090815260686020526040902055505b80546001600160801b0319166001600160801b0383161781556001600160a01b038416600090815260666020526040902054676765c793fa10079d601b1b9061201e9084612764565b6120289190612783565b81546001600160801b03918216600160801b029116179055505050565b6000612052858484611e4e565b6001600160a01b038086166000908152606b602090815260408083209388168352929052205461208e90869086906001600160801b0316611ec9565b6001600160a01b038581166000908152606b6020908152604080832093881683529290522060010180546001600160801b0380821692839290916010916120de918591600160801b9004166127d5565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038881166000818152606b60209081526040808320948c16835293815283822060010180546001600160801b03191690559181526067909152205461214e92509083169061274c565b6001600160a01b0387166000908152606760205260409020556001600160801b03169050949350505050565b803b6121de5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a65565b60008051602061283d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b61226c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a65565b600080846001600160a01b0316846040516122879190612800565b600060405180830381855af49150503d80600081146122c2576040519150601f19603f3d011682016040523d82523d6000602084013e6122c7565b606091505b50915091506122ef828260405180606001604052806027815260200161285d60279139612338565b95945050505050565b6123018161217a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60608315612347575081610a81565b8251156123575782518084602001fd5b8160405162461bcd60e51b8152600401610a65919061239d565b60005b8381101561238c578181015183820152602001612374565b83811115611e485750506000910152565b60208152600082518060208401526123bc816040850160208701612371565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610d6e57600080fd5b600080604083850312156123f857600080fd5b8235612403816123d0565b946020939093013593505050565b60006020828403121561242357600080fd5b8135610a81816123d0565b60008060006060848603121561244357600080fd5b833561244e816123d0565b9250602084013561245e816123d0565b929592945050506040919091013590565b60006020828403121561248157600080fd5b5035919050565b6000806040838503121561249b57600080fd5b82356124a6816123d0565b915060208301356124b6816123d0565b809150509250929050565b600080600080608085870312156124d757600080fd5b84356124e2816123d0565b935060208501359250604085013591506060850135612500816123d0565b939692955090935050565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561254857600080fd5b8235612553816123d0565b915060208301356001600160401b038082111561256f57600080fd5b818501915085601f83011261258357600080fd5b8135818111156125955761259561251f565b604051601f8201601f19908116603f011681019083821181831017156125bd576125bd61251f565b816040528281528860208487010111156125d657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600181811c9082168061260c57607f821691505b6020821081141561262d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561264557600080fd5b8151610a81816123d0565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6001600160a01b03929092168252602082015260400190565b6000602082840312156126b257600080fd5b81518015158114610a8157600080fd5b6020808252602c9082015260008051602061281d83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061281d83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561275f5761275f612736565b500190565b600081600019048311821515161561277e5761277e612736565b500290565b6000826127a057634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156127b7576127b7612736565b500390565b6000602082840312156127ce57600080fd5b5051919050565b60006001600160801b038281168482168083038211156127f7576127f7612736565b01949350505050565b60008251612812818460208701612371565b919091019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220686582ce741ae0eed34e655fd989633f8920575f354073af4fde776571a00a3264736f6c63430008080033";
|
|
875
|
+
|
|
876
|
+
type GovernanceStakingConstructorParams =
|
|
877
|
+
| [signer?: Signer]
|
|
878
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
879
|
+
|
|
880
|
+
const isSuperArgs = (
|
|
881
|
+
xs: GovernanceStakingConstructorParams
|
|
882
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
883
|
+
|
|
884
|
+
export class GovernanceStaking__factory extends ContractFactory {
|
|
885
|
+
constructor(...args: GovernanceStakingConstructorParams) {
|
|
886
|
+
if (isSuperArgs(args)) {
|
|
887
|
+
super(...args);
|
|
888
|
+
} else {
|
|
889
|
+
super(_abi, _bytecode, args[0]);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
deploy(
|
|
894
|
+
_ns: string,
|
|
895
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
896
|
+
): Promise<GovernanceStaking> {
|
|
897
|
+
return super.deploy(_ns, overrides || {}) as Promise<GovernanceStaking>;
|
|
898
|
+
}
|
|
899
|
+
getDeployTransaction(
|
|
900
|
+
_ns: string,
|
|
901
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
902
|
+
): TransactionRequest {
|
|
903
|
+
return super.getDeployTransaction(_ns, overrides || {});
|
|
904
|
+
}
|
|
905
|
+
attach(address: string): GovernanceStaking {
|
|
906
|
+
return super.attach(address) as GovernanceStaking;
|
|
907
|
+
}
|
|
908
|
+
connect(signer: Signer): GovernanceStaking__factory {
|
|
909
|
+
return super.connect(signer) as GovernanceStaking__factory;
|
|
910
|
+
}
|
|
911
|
+
static readonly bytecode = _bytecode;
|
|
912
|
+
static readonly abi = _abi;
|
|
913
|
+
static createInterface(): GovernanceStakingInterface {
|
|
914
|
+
return new utils.Interface(_abi) as GovernanceStakingInterface;
|
|
915
|
+
}
|
|
916
|
+
static connect(
|
|
917
|
+
address: string,
|
|
918
|
+
signerOrProvider: Signer | Provider
|
|
919
|
+
): GovernanceStaking {
|
|
920
|
+
return new Contract(address, _abi, signerOrProvider) as GovernanceStaking;
|
|
921
|
+
}
|
|
922
|
+
}
|