@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,1015 @@
|
|
|
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 { UBIScheme, UBISchemeInterface } from "../UBIScheme";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: true,
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "account",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
name: "ActivatedUser",
|
|
21
|
+
type: "event",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
anonymous: false,
|
|
25
|
+
inputs: [
|
|
26
|
+
{
|
|
27
|
+
indexed: false,
|
|
28
|
+
internalType: "address",
|
|
29
|
+
name: "previousAdmin",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
indexed: false,
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "newAdmin",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
name: "AdminChanged",
|
|
40
|
+
type: "event",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
anonymous: false,
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
indexed: true,
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "beacon",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "BeaconUpgraded",
|
|
53
|
+
type: "event",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
anonymous: false,
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
indexed: false,
|
|
60
|
+
internalType: "uint256",
|
|
61
|
+
name: "newCycleLength",
|
|
62
|
+
type: "uint256",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "CycleLengthSet",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: false,
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "newDay",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "DaySet",
|
|
79
|
+
type: "event",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
anonymous: false,
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
indexed: true,
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "caller",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
indexed: true,
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "fished_account",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
indexed: false,
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "claimAmount",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
name: "InactiveUserFished",
|
|
104
|
+
type: "event",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
anonymous: false,
|
|
108
|
+
inputs: [
|
|
109
|
+
{
|
|
110
|
+
indexed: false,
|
|
111
|
+
internalType: "bool",
|
|
112
|
+
name: "ShouldWithdrawFromDAO",
|
|
113
|
+
type: "bool",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
name: "ShouldWithdrawFromDAOSet",
|
|
117
|
+
type: "event",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
anonymous: false,
|
|
121
|
+
inputs: [
|
|
122
|
+
{
|
|
123
|
+
indexed: false,
|
|
124
|
+
internalType: "uint256",
|
|
125
|
+
name: "total",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
name: "TotalFished",
|
|
130
|
+
type: "event",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
anonymous: false,
|
|
134
|
+
inputs: [
|
|
135
|
+
{
|
|
136
|
+
indexed: false,
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "day",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
indexed: false,
|
|
143
|
+
internalType: "uint256",
|
|
144
|
+
name: "dailyUbi",
|
|
145
|
+
type: "uint256",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
indexed: false,
|
|
149
|
+
internalType: "uint256",
|
|
150
|
+
name: "blockNumber",
|
|
151
|
+
type: "uint256",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
name: "UBICalculated",
|
|
155
|
+
type: "event",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
anonymous: false,
|
|
159
|
+
inputs: [
|
|
160
|
+
{
|
|
161
|
+
indexed: true,
|
|
162
|
+
internalType: "address",
|
|
163
|
+
name: "claimer",
|
|
164
|
+
type: "address",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
indexed: false,
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "amount",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "UBIClaimed",
|
|
174
|
+
type: "event",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
anonymous: false,
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "day",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
indexed: false,
|
|
187
|
+
internalType: "uint256",
|
|
188
|
+
name: "pool",
|
|
189
|
+
type: "uint256",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
indexed: false,
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "cycleLength",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
indexed: false,
|
|
199
|
+
internalType: "uint256",
|
|
200
|
+
name: "dailyUBIPool",
|
|
201
|
+
type: "uint256",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
name: "UBICycleCalculated",
|
|
205
|
+
type: "event",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
anonymous: false,
|
|
209
|
+
inputs: [
|
|
210
|
+
{
|
|
211
|
+
indexed: true,
|
|
212
|
+
internalType: "address",
|
|
213
|
+
name: "implementation",
|
|
214
|
+
type: "address",
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
name: "Upgraded",
|
|
218
|
+
type: "event",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
anonymous: false,
|
|
222
|
+
inputs: [
|
|
223
|
+
{
|
|
224
|
+
indexed: false,
|
|
225
|
+
internalType: "uint256",
|
|
226
|
+
name: "prevBalance",
|
|
227
|
+
type: "uint256",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
indexed: false,
|
|
231
|
+
internalType: "uint256",
|
|
232
|
+
name: "newBalance",
|
|
233
|
+
type: "uint256",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
name: "WithdrawFromDao",
|
|
237
|
+
type: "event",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
inputs: [],
|
|
241
|
+
name: "activeUsersCount",
|
|
242
|
+
outputs: [
|
|
243
|
+
{
|
|
244
|
+
internalType: "uint256",
|
|
245
|
+
name: "",
|
|
246
|
+
type: "uint256",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
stateMutability: "view",
|
|
250
|
+
type: "function",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
inputs: [],
|
|
254
|
+
name: "avatar",
|
|
255
|
+
outputs: [
|
|
256
|
+
{
|
|
257
|
+
internalType: "address",
|
|
258
|
+
name: "",
|
|
259
|
+
type: "address",
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
stateMutability: "view",
|
|
263
|
+
type: "function",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "address",
|
|
269
|
+
name: "_member",
|
|
270
|
+
type: "address",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
name: "checkEntitlement",
|
|
274
|
+
outputs: [
|
|
275
|
+
{
|
|
276
|
+
internalType: "uint256",
|
|
277
|
+
name: "",
|
|
278
|
+
type: "uint256",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
stateMutability: "view",
|
|
282
|
+
type: "function",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
inputs: [],
|
|
286
|
+
name: "checkEntitlement",
|
|
287
|
+
outputs: [
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256",
|
|
290
|
+
name: "",
|
|
291
|
+
type: "uint256",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
stateMutability: "view",
|
|
295
|
+
type: "function",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
inputs: [],
|
|
299
|
+
name: "claim",
|
|
300
|
+
outputs: [
|
|
301
|
+
{
|
|
302
|
+
internalType: "bool",
|
|
303
|
+
name: "",
|
|
304
|
+
type: "bool",
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
stateMutability: "nonpayable",
|
|
308
|
+
type: "function",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
inputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "uint256",
|
|
314
|
+
name: "",
|
|
315
|
+
type: "uint256",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
name: "claimDay",
|
|
319
|
+
outputs: [
|
|
320
|
+
{
|
|
321
|
+
internalType: "uint256",
|
|
322
|
+
name: "amountOfClaimers",
|
|
323
|
+
type: "uint256",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
internalType: "uint256",
|
|
327
|
+
name: "claimAmount",
|
|
328
|
+
type: "uint256",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
stateMutability: "view",
|
|
332
|
+
type: "function",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
inputs: [],
|
|
336
|
+
name: "currentCycleLength",
|
|
337
|
+
outputs: [
|
|
338
|
+
{
|
|
339
|
+
internalType: "uint256",
|
|
340
|
+
name: "",
|
|
341
|
+
type: "uint256",
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
stateMutability: "view",
|
|
345
|
+
type: "function",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
inputs: [],
|
|
349
|
+
name: "currentDay",
|
|
350
|
+
outputs: [
|
|
351
|
+
{
|
|
352
|
+
internalType: "uint256",
|
|
353
|
+
name: "",
|
|
354
|
+
type: "uint256",
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
stateMutability: "view",
|
|
358
|
+
type: "function",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
inputs: [],
|
|
362
|
+
name: "currentDayInCycle",
|
|
363
|
+
outputs: [
|
|
364
|
+
{
|
|
365
|
+
internalType: "uint256",
|
|
366
|
+
name: "",
|
|
367
|
+
type: "uint256",
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
stateMutability: "view",
|
|
371
|
+
type: "function",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
inputs: [],
|
|
375
|
+
name: "cycleLength",
|
|
376
|
+
outputs: [
|
|
377
|
+
{
|
|
378
|
+
internalType: "uint256",
|
|
379
|
+
name: "",
|
|
380
|
+
type: "uint256",
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
stateMutability: "view",
|
|
384
|
+
type: "function",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
inputs: [],
|
|
388
|
+
name: "dailyCyclePool",
|
|
389
|
+
outputs: [
|
|
390
|
+
{
|
|
391
|
+
internalType: "uint256",
|
|
392
|
+
name: "",
|
|
393
|
+
type: "uint256",
|
|
394
|
+
},
|
|
395
|
+
],
|
|
396
|
+
stateMutability: "view",
|
|
397
|
+
type: "function",
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
inputs: [
|
|
401
|
+
{
|
|
402
|
+
internalType: "uint256",
|
|
403
|
+
name: "",
|
|
404
|
+
type: "uint256",
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
name: "dailyUBIHistory",
|
|
408
|
+
outputs: [
|
|
409
|
+
{
|
|
410
|
+
internalType: "bool",
|
|
411
|
+
name: "hasWithdrawn",
|
|
412
|
+
type: "bool",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
internalType: "uint256",
|
|
416
|
+
name: "openAmount",
|
|
417
|
+
type: "uint256",
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
stateMutability: "view",
|
|
421
|
+
type: "function",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
inputs: [],
|
|
425
|
+
name: "dailyUbi",
|
|
426
|
+
outputs: [
|
|
427
|
+
{
|
|
428
|
+
internalType: "uint256",
|
|
429
|
+
name: "",
|
|
430
|
+
type: "uint256",
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
stateMutability: "view",
|
|
434
|
+
type: "function",
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
inputs: [],
|
|
438
|
+
name: "dao",
|
|
439
|
+
outputs: [
|
|
440
|
+
{
|
|
441
|
+
internalType: "contract Controller",
|
|
442
|
+
name: "",
|
|
443
|
+
type: "address",
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
stateMutability: "view",
|
|
447
|
+
type: "function",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
inputs: [],
|
|
451
|
+
name: "defaultDailyUbi",
|
|
452
|
+
outputs: [
|
|
453
|
+
{
|
|
454
|
+
internalType: "uint256",
|
|
455
|
+
name: "",
|
|
456
|
+
type: "uint256",
|
|
457
|
+
},
|
|
458
|
+
],
|
|
459
|
+
stateMutability: "view",
|
|
460
|
+
type: "function",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
inputs: [],
|
|
464
|
+
name: "estimateNextDailyUBI",
|
|
465
|
+
outputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: "uint256",
|
|
468
|
+
name: "",
|
|
469
|
+
type: "uint256",
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
stateMutability: "view",
|
|
473
|
+
type: "function",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
inputs: [],
|
|
477
|
+
name: "firstClaimPool",
|
|
478
|
+
outputs: [
|
|
479
|
+
{
|
|
480
|
+
internalType: "contract IFirstClaimPool",
|
|
481
|
+
name: "",
|
|
482
|
+
type: "address",
|
|
483
|
+
},
|
|
484
|
+
],
|
|
485
|
+
stateMutability: "view",
|
|
486
|
+
type: "function",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
inputs: [
|
|
490
|
+
{
|
|
491
|
+
internalType: "address",
|
|
492
|
+
name: "_account",
|
|
493
|
+
type: "address",
|
|
494
|
+
},
|
|
495
|
+
],
|
|
496
|
+
name: "fish",
|
|
497
|
+
outputs: [
|
|
498
|
+
{
|
|
499
|
+
internalType: "bool",
|
|
500
|
+
name: "",
|
|
501
|
+
type: "bool",
|
|
502
|
+
},
|
|
503
|
+
],
|
|
504
|
+
stateMutability: "nonpayable",
|
|
505
|
+
type: "function",
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
inputs: [
|
|
509
|
+
{
|
|
510
|
+
internalType: "address[]",
|
|
511
|
+
name: "_accounts",
|
|
512
|
+
type: "address[]",
|
|
513
|
+
},
|
|
514
|
+
],
|
|
515
|
+
name: "fishMulti",
|
|
516
|
+
outputs: [
|
|
517
|
+
{
|
|
518
|
+
internalType: "uint256",
|
|
519
|
+
name: "",
|
|
520
|
+
type: "uint256",
|
|
521
|
+
},
|
|
522
|
+
],
|
|
523
|
+
stateMutability: "nonpayable",
|
|
524
|
+
type: "function",
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
inputs: [
|
|
528
|
+
{
|
|
529
|
+
internalType: "address",
|
|
530
|
+
name: "",
|
|
531
|
+
type: "address",
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
name: "fishedUsersAddresses",
|
|
535
|
+
outputs: [
|
|
536
|
+
{
|
|
537
|
+
internalType: "bool",
|
|
538
|
+
name: "",
|
|
539
|
+
type: "bool",
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
stateMutability: "view",
|
|
543
|
+
type: "function",
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
inputs: [
|
|
547
|
+
{
|
|
548
|
+
internalType: "uint256",
|
|
549
|
+
name: "day",
|
|
550
|
+
type: "uint256",
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
name: "getClaimAmount",
|
|
554
|
+
outputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "uint256",
|
|
557
|
+
name: "",
|
|
558
|
+
type: "uint256",
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
stateMutability: "view",
|
|
562
|
+
type: "function",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
inputs: [
|
|
566
|
+
{
|
|
567
|
+
internalType: "uint256",
|
|
568
|
+
name: "day",
|
|
569
|
+
type: "uint256",
|
|
570
|
+
},
|
|
571
|
+
],
|
|
572
|
+
name: "getClaimerCount",
|
|
573
|
+
outputs: [
|
|
574
|
+
{
|
|
575
|
+
internalType: "uint256",
|
|
576
|
+
name: "",
|
|
577
|
+
type: "uint256",
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
stateMutability: "view",
|
|
581
|
+
type: "function",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
inputs: [],
|
|
585
|
+
name: "getDailyStats",
|
|
586
|
+
outputs: [
|
|
587
|
+
{
|
|
588
|
+
internalType: "uint256",
|
|
589
|
+
name: "",
|
|
590
|
+
type: "uint256",
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
internalType: "uint256",
|
|
594
|
+
name: "",
|
|
595
|
+
type: "uint256",
|
|
596
|
+
},
|
|
597
|
+
],
|
|
598
|
+
stateMutability: "view",
|
|
599
|
+
type: "function",
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
inputs: [
|
|
603
|
+
{
|
|
604
|
+
internalType: "address",
|
|
605
|
+
name: "account",
|
|
606
|
+
type: "address",
|
|
607
|
+
},
|
|
608
|
+
],
|
|
609
|
+
name: "hasClaimed",
|
|
610
|
+
outputs: [
|
|
611
|
+
{
|
|
612
|
+
internalType: "bool",
|
|
613
|
+
name: "",
|
|
614
|
+
type: "bool",
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
stateMutability: "view",
|
|
618
|
+
type: "function",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
inputs: [
|
|
622
|
+
{
|
|
623
|
+
internalType: "contract INameService",
|
|
624
|
+
name: "_ns",
|
|
625
|
+
type: "address",
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
internalType: "contract IFirstClaimPool",
|
|
629
|
+
name: "_firstClaimPool",
|
|
630
|
+
type: "address",
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
internalType: "uint256",
|
|
634
|
+
name: "_maxInactiveDays",
|
|
635
|
+
type: "uint256",
|
|
636
|
+
},
|
|
637
|
+
],
|
|
638
|
+
name: "initialize",
|
|
639
|
+
outputs: [],
|
|
640
|
+
stateMutability: "nonpayable",
|
|
641
|
+
type: "function",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
inputs: [
|
|
645
|
+
{
|
|
646
|
+
internalType: "address",
|
|
647
|
+
name: "_account",
|
|
648
|
+
type: "address",
|
|
649
|
+
},
|
|
650
|
+
],
|
|
651
|
+
name: "isActiveUser",
|
|
652
|
+
outputs: [
|
|
653
|
+
{
|
|
654
|
+
internalType: "bool",
|
|
655
|
+
name: "",
|
|
656
|
+
type: "bool",
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
stateMutability: "view",
|
|
660
|
+
type: "function",
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
inputs: [
|
|
664
|
+
{
|
|
665
|
+
internalType: "address",
|
|
666
|
+
name: "_account",
|
|
667
|
+
type: "address",
|
|
668
|
+
},
|
|
669
|
+
],
|
|
670
|
+
name: "isNotNewUser",
|
|
671
|
+
outputs: [
|
|
672
|
+
{
|
|
673
|
+
internalType: "bool",
|
|
674
|
+
name: "",
|
|
675
|
+
type: "bool",
|
|
676
|
+
},
|
|
677
|
+
],
|
|
678
|
+
stateMutability: "view",
|
|
679
|
+
type: "function",
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
inputs: [],
|
|
683
|
+
name: "iterationGasLimit",
|
|
684
|
+
outputs: [
|
|
685
|
+
{
|
|
686
|
+
internalType: "uint256",
|
|
687
|
+
name: "",
|
|
688
|
+
type: "uint256",
|
|
689
|
+
},
|
|
690
|
+
],
|
|
691
|
+
stateMutability: "view",
|
|
692
|
+
type: "function",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
inputs: [
|
|
696
|
+
{
|
|
697
|
+
internalType: "address",
|
|
698
|
+
name: "",
|
|
699
|
+
type: "address",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
name: "lastClaimed",
|
|
703
|
+
outputs: [
|
|
704
|
+
{
|
|
705
|
+
internalType: "uint256",
|
|
706
|
+
name: "",
|
|
707
|
+
type: "uint256",
|
|
708
|
+
},
|
|
709
|
+
],
|
|
710
|
+
stateMutability: "view",
|
|
711
|
+
type: "function",
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
inputs: [],
|
|
715
|
+
name: "lastWithdrawDay",
|
|
716
|
+
outputs: [
|
|
717
|
+
{
|
|
718
|
+
internalType: "uint256",
|
|
719
|
+
name: "",
|
|
720
|
+
type: "uint256",
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
stateMutability: "view",
|
|
724
|
+
type: "function",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
inputs: [],
|
|
728
|
+
name: "maxInactiveDays",
|
|
729
|
+
outputs: [
|
|
730
|
+
{
|
|
731
|
+
internalType: "uint256",
|
|
732
|
+
name: "",
|
|
733
|
+
type: "uint256",
|
|
734
|
+
},
|
|
735
|
+
],
|
|
736
|
+
stateMutability: "view",
|
|
737
|
+
type: "function",
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
inputs: [],
|
|
741
|
+
name: "nameService",
|
|
742
|
+
outputs: [
|
|
743
|
+
{
|
|
744
|
+
internalType: "contract INameService",
|
|
745
|
+
name: "",
|
|
746
|
+
type: "address",
|
|
747
|
+
},
|
|
748
|
+
],
|
|
749
|
+
stateMutability: "view",
|
|
750
|
+
type: "function",
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
inputs: [],
|
|
754
|
+
name: "nativeToken",
|
|
755
|
+
outputs: [
|
|
756
|
+
{
|
|
757
|
+
internalType: "contract IGoodDollar",
|
|
758
|
+
name: "",
|
|
759
|
+
type: "address",
|
|
760
|
+
},
|
|
761
|
+
],
|
|
762
|
+
stateMutability: "view",
|
|
763
|
+
type: "function",
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
inputs: [
|
|
767
|
+
{
|
|
768
|
+
internalType: "bool",
|
|
769
|
+
name: "_pause",
|
|
770
|
+
type: "bool",
|
|
771
|
+
},
|
|
772
|
+
],
|
|
773
|
+
name: "pause",
|
|
774
|
+
outputs: [],
|
|
775
|
+
stateMutability: "nonpayable",
|
|
776
|
+
type: "function",
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
inputs: [],
|
|
780
|
+
name: "paused",
|
|
781
|
+
outputs: [
|
|
782
|
+
{
|
|
783
|
+
internalType: "bool",
|
|
784
|
+
name: "",
|
|
785
|
+
type: "bool",
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
stateMutability: "view",
|
|
789
|
+
type: "function",
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
inputs: [],
|
|
793
|
+
name: "periodStart",
|
|
794
|
+
outputs: [
|
|
795
|
+
{
|
|
796
|
+
internalType: "uint256",
|
|
797
|
+
name: "",
|
|
798
|
+
type: "uint256",
|
|
799
|
+
},
|
|
800
|
+
],
|
|
801
|
+
stateMutability: "view",
|
|
802
|
+
type: "function",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
inputs: [
|
|
806
|
+
{
|
|
807
|
+
internalType: "uint256",
|
|
808
|
+
name: "_activeUserCount",
|
|
809
|
+
type: "uint256",
|
|
810
|
+
},
|
|
811
|
+
],
|
|
812
|
+
name: "setActiveUserCount",
|
|
813
|
+
outputs: [],
|
|
814
|
+
stateMutability: "nonpayable",
|
|
815
|
+
type: "function",
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
inputs: [
|
|
819
|
+
{
|
|
820
|
+
internalType: "uint256",
|
|
821
|
+
name: "_newLength",
|
|
822
|
+
type: "uint256",
|
|
823
|
+
},
|
|
824
|
+
],
|
|
825
|
+
name: "setCycleLength",
|
|
826
|
+
outputs: [],
|
|
827
|
+
stateMutability: "nonpayable",
|
|
828
|
+
type: "function",
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
inputs: [],
|
|
832
|
+
name: "setDay",
|
|
833
|
+
outputs: [],
|
|
834
|
+
stateMutability: "nonpayable",
|
|
835
|
+
type: "function",
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
inputs: [
|
|
839
|
+
{
|
|
840
|
+
internalType: "bool",
|
|
841
|
+
name: "_shouldWithdraw",
|
|
842
|
+
type: "bool",
|
|
843
|
+
},
|
|
844
|
+
],
|
|
845
|
+
name: "setShouldWithdrawFromDAO",
|
|
846
|
+
outputs: [],
|
|
847
|
+
stateMutability: "nonpayable",
|
|
848
|
+
type: "function",
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
inputs: [
|
|
852
|
+
{
|
|
853
|
+
internalType: "bool",
|
|
854
|
+
name: "_use",
|
|
855
|
+
type: "bool",
|
|
856
|
+
},
|
|
857
|
+
],
|
|
858
|
+
name: "setUseFirstClaimPool",
|
|
859
|
+
outputs: [],
|
|
860
|
+
stateMutability: "nonpayable",
|
|
861
|
+
type: "function",
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
inputs: [],
|
|
865
|
+
name: "shouldWithdrawFromDAO",
|
|
866
|
+
outputs: [
|
|
867
|
+
{
|
|
868
|
+
internalType: "bool",
|
|
869
|
+
name: "",
|
|
870
|
+
type: "bool",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
stateMutability: "view",
|
|
874
|
+
type: "function",
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
inputs: [],
|
|
878
|
+
name: "startOfCycle",
|
|
879
|
+
outputs: [
|
|
880
|
+
{
|
|
881
|
+
internalType: "uint256",
|
|
882
|
+
name: "",
|
|
883
|
+
type: "uint256",
|
|
884
|
+
},
|
|
885
|
+
],
|
|
886
|
+
stateMutability: "view",
|
|
887
|
+
type: "function",
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
inputs: [
|
|
891
|
+
{
|
|
892
|
+
internalType: "address",
|
|
893
|
+
name: "",
|
|
894
|
+
type: "address",
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
name: "totalClaimsPerUser",
|
|
898
|
+
outputs: [
|
|
899
|
+
{
|
|
900
|
+
internalType: "uint256",
|
|
901
|
+
name: "",
|
|
902
|
+
type: "uint256",
|
|
903
|
+
},
|
|
904
|
+
],
|
|
905
|
+
stateMutability: "view",
|
|
906
|
+
type: "function",
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
inputs: [],
|
|
910
|
+
name: "updateAvatar",
|
|
911
|
+
outputs: [],
|
|
912
|
+
stateMutability: "nonpayable",
|
|
913
|
+
type: "function",
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
inputs: [],
|
|
917
|
+
name: "upgrade",
|
|
918
|
+
outputs: [],
|
|
919
|
+
stateMutability: "nonpayable",
|
|
920
|
+
type: "function",
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
inputs: [
|
|
924
|
+
{
|
|
925
|
+
internalType: "address",
|
|
926
|
+
name: "newImplementation",
|
|
927
|
+
type: "address",
|
|
928
|
+
},
|
|
929
|
+
],
|
|
930
|
+
name: "upgradeTo",
|
|
931
|
+
outputs: [],
|
|
932
|
+
stateMutability: "nonpayable",
|
|
933
|
+
type: "function",
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
inputs: [
|
|
937
|
+
{
|
|
938
|
+
internalType: "address",
|
|
939
|
+
name: "newImplementation",
|
|
940
|
+
type: "address",
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
internalType: "bytes",
|
|
944
|
+
name: "data",
|
|
945
|
+
type: "bytes",
|
|
946
|
+
},
|
|
947
|
+
],
|
|
948
|
+
name: "upgradeToAndCall",
|
|
949
|
+
outputs: [],
|
|
950
|
+
stateMutability: "payable",
|
|
951
|
+
type: "function",
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
inputs: [],
|
|
955
|
+
name: "useFirstClaimPool",
|
|
956
|
+
outputs: [
|
|
957
|
+
{
|
|
958
|
+
internalType: "bool",
|
|
959
|
+
name: "",
|
|
960
|
+
type: "bool",
|
|
961
|
+
},
|
|
962
|
+
],
|
|
963
|
+
stateMutability: "view",
|
|
964
|
+
type: "function",
|
|
965
|
+
},
|
|
966
|
+
];
|
|
967
|
+
|
|
968
|
+
const _bytecode =
|
|
969
|
+
"0x60a06040523060601b60805234801561001757600080fd5b5060805160601c612d1261004b60003960008181610e4201528181610e82015281816112c301526113030152612d126000f3fe60806040526004361061022e5760003560e01c8063013eba921461023357806302329a2914610273578063069786ea146102955780630ce82d67146102bf5780631099da4f146102d45780631248b101146102ea5780631794bb3c146103215780631a787f2e146103415780631b3c90a8146103615780631bbc644c146103765780631d8f5ea9146103a657806322b45727146103bc5780633659cfe6146103d25780633d84ceca146103f25780633e6326fc146104125780634162169f1461043f5780634202d2141461045f578063456ac1c21461047f5780634b4c7180146104995780634e71d92d146104b35780634f1ef286146104c85780635231e2f0146104db578063560796d11461050b5780635aef7de61461055c5780635c9302c91461057c5780635c975abb1461059257806373b2e80e146105ac578063741470ac146105cc5780638081cbbd146105e25780638fd247d21461060257806398d6621b146106225780639dc2c03314610637578063a21f698a1461064d578063b656223d1461066d578063ba07541014610683578063c033abf214610699578063c1337508146106af578063c7713870146106cf578063c7a76adf146106e4578063cc054dfc14610704578063cef6360014610731578063d55ec69714610751578063d6a9f61814610766578063d7c4cbb814610786578063dddc36161461079c578063de1de3a0146107b1578063e1758bd8146107d1578063eac471a0146107e6578063eda4e6d6146107fc575b600080fd5b34801561023f57600080fd5b5061026061024e36600461269a565b609b6020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561027f57600080fd5b5061029361028e3660046126c5565b610812565b005b3480156102a157600080fd5b506102aa61082d565b6040805192835260208301919091520161026a565b3480156102cb57600080fd5b5061026061086b565b3480156102e057600080fd5b5061026060a95481565b3480156102f657600080fd5b506102aa6103053660046126e2565b609a602052600090815260409020600181015460029091015482565b34801561032d57600080fd5b5061029361033c3660046126fb565b61088e565b34801561034d57600080fd5b5061026061035c36600461269a565b610a19565b34801561036d57600080fd5b50610293610b50565b34801561038257600080fd5b5061039661039136600461269a565b610c95565b604051901515815260200161026a565b3480156103b257600080fd5b50610260609e5481565b3480156103c857600080fd5b5061026060a05481565b3480156103de57600080fd5b506102936103ed36600461269a565b610e37565b3480156103fe57600080fd5b5061029361040d3660046126e2565b610f00565b34801561041e57600080fd5b50606754610432906001600160a01b031681565b60405161026a919061273c565b34801561044b57600080fd5b50606554610432906001600160a01b031681565b34801561046b57600080fd5b5061039661047a36600461269a565b610f91565b34801561048b57600080fd5b5060a3546103969060ff1681565b3480156104a557600080fd5b5060a8546103969060ff1681565b3480156104bf57600080fd5b50610396610ff3565b6102936104d63660046127bd565b6112b8565b3480156104e757600080fd5b506103966104f636600461269a565b60ac6020526000908152604090205460ff1681565b34801561051757600080fd5b506105456105263660046126e2565b60ab602052600090815260409020805460019091015460ff9091169082565b60408051921515835260208301919091520161026a565b34801561056857600080fd5b50606654610432906001600160a01b031681565b34801561058857600080fd5b50610260609c5481565b34801561059e57600080fd5b5060ae546103969060ff1681565b3480156105b857600080fd5b506103966105c736600461269a565b611372565b3480156105d857600080fd5b5061026060a75481565b3480156105ee57600080fd5b5060aa54610432906001600160a01b031681565b34801561060e57600080fd5b5061029361061d3660046126e2565b61139e565b34801561062e57600080fd5b506102606113ab565b34801561064357600080fd5b5061026060a55481565b34801561065957600080fd5b5061039661066836600461269a565b6113b6565b34801561067957600080fd5b5061026060a25481565b34801561068f57600080fd5b5061026060a65481565b3480156106a557600080fd5b50610260609f5481565b3480156106bb57600080fd5b506102606106ca36600461284f565b6113dc565b3480156106db57600080fd5b50610260611591565b3480156106f057600080fd5b506102606106ff3660046126e2565b611695565b34801561071057600080fd5b5061026061071f36600461269a565b60ad6020526000908152604090205481565b34801561073d57600080fd5b5061026061074c3660046126e2565b6116aa565b34801561075d57600080fd5b506102936116bf565b34801561077257600080fd5b506102936107813660046126c5565b611735565b34801561079257600080fd5b5061026060a15481565b3480156107a857600080fd5b50610293611750565b3480156107bd57600080fd5b506102936107cc3660046126c5565b6117af565b3480156107dd57600080fd5b506104326117fe565b3480156107f257600080fd5b5061026060a45481565b34801561080857600080fd5b50610260609d5481565b61081a611895565b60ae805460ff1916911515919091179055565b600080600062015180609d54426108449190612916565b61084e919061292d565b905061085981611695565b610862826116aa565b92509250509091565b60006201518060a6544261087f9190612916565b610889919061292d565b905090565b600054610100900460ff16806108a7575060005460ff16155b61090f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff16158015610931576000805461ffff19166101011790555b600082116109815760405162461bcd60e51b815260206004820181905260248201527f4d617820696e61637469766520646179732063616e6e6f74206265207a65726f6044820152606401610906565b61098a84611969565b60a282905560aa80546001600160a01b0319166001600160a01b03851617905560a3805460ff19169055605a60a455620249f0609f556109cd620151804261292d565b6109da906201518061294f565b6109e69061a8c061296e565b609d81905560a65560a8805460ff1916600117905561138860a9558015610a13576000805461ff00191690555b50505050565b6000609d54421015610a2d57506000919050565b60a85460ff168015610a675750610a43826113b6565b1580610a6757506001600160a01b038216600090815260ac602052604090205460ff165b15610af85760aa60009054906101000a90046001600160a01b03166001600160a01b031663830953ab6040518163ffffffff1660e01b815260040160206040518083038186803b158015610aba57600080fd5b505afa158015610ace573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af29190612986565b92915050565b62015180609d5442610b0a9190612916565b610b14919061292d565b609c54148015610b2657506000609e54115b15610b4857610b3482611372565b610b4057609e54610af2565b600092915050565b610af2611591565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b158015610bae57600080fd5b505afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be6919061299f565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b158015610c3b57600080fd5b505afa158015610c4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c73919061299f565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b60ae5460009060ff16158015610cad57506000609d54115b8015610cbb5750609d544210155b610cd75760405162461bcd60e51b8152600401610906906129bc565b610ce0826113b6565b8015610cf25750610cf082610f91565b155b610d385760405162461bcd60e51b815260206004820152601760248201527634b9903737ba1030b71034b730b1ba34bb32903ab9b2b960491b6044820152606401610906565b6001600160a01b038216600090815260ac602052604090205460ff1615610d925760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e48199a5cda195960921b6044820152606401610906565b6001600160a01b038216600090815260ac60205260408120805460ff19166001179055610dbd61198c565b60a05490915015610de157600160a06000828254610ddb9190612916565b90915550505b610dee3382600080611c2f565b6040518181526001600160a01b0384169033907f3c91d315d82534112f8ce552cb79133a14191077a2d715fd65cabd026fc27c749060200160405180910390a350600192915050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610e805760405162461bcd60e51b8152600401610906906129f3565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610eb2611ee4565b6001600160a01b031614610ed85760405162461bcd60e51b815260040161090690612a2d565b610ee181611f00565b60408051600080825260208201909252610efd91839190611f08565b50565b610f08611895565b60008111610f625760405162461bcd60e51b815260206004820152602160248201527f6379636c65206d757374206265206174206c65617374203120646179206c6f6e6044820152606760f81b6064820152608401610906565b60a4819055600060a755604051818152600080516020612c56833981519152906020015b60405180910390a150565b6001600160a01b0381166000908152609b6020526040812054610fb3836113b6565b15610fea57600062015180610fc88342612916565b610fd2919061292d565b905060a254811015610fe8575060019392505050565b505b50600092915050565b60ae5460009060ff1615801561100b57506000609d54115b80156110195750609d544210155b6110355760405162461bcd60e51b8152600401610906906129bc565b60675460405163bf40fac160e01b81526020600482015260086024820152674944454e5449545960c01b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b15801561109157600080fd5b505afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c9919061299f565b6001600160a01b0316633af32abf336040518263ffffffff1660e01b81526004016110f4919061273c565b60206040518083038186803b15801561110c57600080fd5b505afa158015611120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111449190612a67565b61118d5760405162461bcd60e51b815260206004820152601a60248201527915509254d8da195b594e881b9bdd081dda1a5d195b1a5cdd195960321b6044820152606401610906565b600061119833612048565b60675460405163bf40fac160e01b815260206004820152600d60248201526c4744414f5f434c41494d45525360981b60448201529192506000916001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156111ff57600080fd5b505afa158015611213573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611237919061299f565b905081801561124e57506001600160a01b03811615155b156112b25760405163748abee960e11b81526001600160a01b0382169063e9157dd29061127f90339060040161273c565b600060405180830381600087803b15801561129957600080fd5b505af11580156112ad573d6000803e3d6000fd5b505050505b50905090565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156113015760405162461bcd60e51b8152600401610906906129f3565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611333611ee4565b6001600160a01b0316146113595760405162461bcd60e51b815260040161090690612a2d565b61136282611f00565b61136e82826001611f08565b5050565b609c546000908152609a602090815260408083206001600160a01b039094168352929052205460ff1690565b6113a6611895565b60a055565b600061088933610a19565b6001600160a01b0381166000908152609b602052604081205415610b4057506001919050565b60ae5460009060ff161580156113f457506000609d54115b80156114025750609d544210155b61141e5760405162461bcd60e51b8152600401610906906129bc565b60005b825181101561156357609f545a101561145b57604051818152600080516020612cbd8339815191529060200160405180910390a192915050565b61147d83828151811061147057611470612a84565b60200260200101516113b6565b80156114a857506114a683828151811061149957611499612a84565b6020026020010151610f91565b155b80156114ee575060ac60008483815181106114c5576114c5612a84565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16155b156115535761151583828151811061150857611508612a84565b6020026020010151610c95565b6115535760405162461bcd60e51b815260206004820152600f60248201526e199a5cda081a185cc819985a5b1959608a1b6044820152606401610906565b61155c81612a9a565b9050611421565b50600080516020612cbd833981519152825160405161158491815260200190565b60405180910390a1505190565b60008061159c6117fe565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016115c7919061273c565b60206040518083038186803b1580156115df57600080fd5b505afa1580156115f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116179190612986565b9050600060a55460a4548361162c919061292d565b119050600060a5549050600060a75461164361086b565b10158061164d5750825b156116625760a45461165f908561292d565b91505b60a0541561167e5760a054611677908361292d565b905061168d565b60a85460ff1661168d575060a9545b949350505050565b6000908152609a602052604090206001015490565b6000908152609a602052604090206002015490565b6116c7611895565b60ae805460ff1916600117905561c35060a0556000609e819055601e60a45560a7556116f66277f88042612916565b60a65563621e0ac0609d5561170961198c565b50600080516020612c5683398151915260a45460405161172b91815260200190565b60405180910390a1565b61173d611895565b60a8805460ff1916911515919091179055565b600062015180609d54426117649190612916565b61176e919061292d565b9050609c54811115610efd57609c8190556040518181527f67eb03bd555181f9dd23f546e4331ddfb8b4a7d0c8d261ba44e037f30ce894ea90602001610f86565b6117b7611895565b60a3805460ff191682151590811790915560405160ff909116151581527f6cd9a0fd2e006be39a9918bf56c85cae1d4f4599474483ff18cb93355ebaaf8e90602001610f86565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b15801561185d57600080fd5b505afa158015611871573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610889919061299f565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b1580156118d957600080fd5b505afa1580156118ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611911919061299f565b6001600160a01b0316146119675760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610906565b565b606780546001600160a01b0319166001600160a01b038316179055610efd610b50565b6000611996611750565b60a154609c541415806119a95750609e54155b15611c285760006119b86117fe565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016119e8919061273c565b60206040518083038186803b158015611a0057600080fd5b505afa158015611a14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a389190612986565b9050600060a55460a45483611a4d919061292d565b11905060a754611a5b61086b565b101580611a655750805b15611b7d5760a35460ff1615611a7d57611a7d612184565b6040516370a0823160e01b81526001600160a01b038416906370a0823190611aa990309060040161273c565b60206040518083038186803b158015611ac157600080fd5b505afa158015611ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af99190612986565b915060a45482611b09919061292d565b60a55560a45460a755611b1e610e104261292d565b611b2a90610e1061294f565b60a655609c5460a45460a554604080519384526020840186905283019190915260608201527f83e0d535b9e84324e0a25922406398d6ff5f96d0c686204ee490e16d7670566f9060800160405180910390a15b609c5460a1819055600090815260ab6020526040902060a354815460ff191660ff90911615151781556001810183905560a05415611bcd5760a05460a554611bc5919061292d565b609e55611bde565b60a85460ff16611bde5760a954609e555b609c54609e546040805192835260208301919091524382820152517f836fa39995340265746dfe9587d9fe5c5de35b7bce778afd9b124ce1cfeafdc49181900360600190a1505050505b50609e5490565b8180611c385750805b15611cc6576001609a6000609c5481526020019081526020016000206001016000828254611c66919061296e565b9091555050609c546000908152609a602090815260408083206001600160a01b03881684528252808320805460ff19166001908117909155609b835281842042905560ad9092528220805491929091611cc090849061296e565b90915550505b8015611db05760aa54604051636bf2228d60e11b81526000916001600160a01b03169063d7e4451a90611cfd90889060040161273c565b602060405180830381600087803b158015611d1757600080fd5b505af1158015611d2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d4f9190612986565b905080609a6000609c5481526020019081526020016000206002016000828254611d79919061296e565b90915550506040518181526001600160a01b03861690600080516020612c368339815191529060200160405180910390a250610a13565b8115611e0c57609c546000908152609a602052604081206002018054859290611dda90849061296e565b90915550506040518381526001600160a01b03851690600080516020612c368339815191529060200160405180910390a25b6000611e166117fe565b60405163a9059cbb60e01b81529091506001600160a01b0382169063a9059cbb90611e479088908890600401612ab5565b602060405180830381600087803b158015611e6157600080fd5b505af1158015611e75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e999190612a67565b611edd5760405162461bcd60e51b815260206004820152601560248201527418db185a5b481d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610906565b5050505050565b600080516020612c76833981519152546001600160a01b031690565b610efd611895565b6000611f12611ee4565b9050611f1d84612487565b600083511180611f2a5750815b15611f3b57611f39848461251a565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16611edd57805460ff19166001178155604051611fb6908690611f8790859060240161273c565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b17905261251a565b50805460ff19168155611fc7611ee4565b6001600160a01b0316826001600160a01b03161461203f5760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610906565b611edd85612605565b60008061205361198c565b905061205e836113b6565b801561208357506001600160a01b038316600090815260ac602052604090205460ff16155b8015612095575061209383611372565b155b156120b1576120a8838260016000611c2f565b50600192915050565b6120ba836113b6565b15806120de57506001600160a01b038316600090815260ac602052604090205460ff165b15610fea57600160a060008282546120f6919061296e565b90915550506001600160a01b038316600090815260ac60205260409020805460ff1916905560a85460ff161561213957612134836000806001611c2f565b612147565b612147838260016000611c2f565b6040516001600160a01b038416907f2f9cfaa2a5c422dfab45f7d0da071f030fc2d3a7a1f0a255c028eff9b6d3d93690600090a250600192915050565b600061218e6117fe565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016121be919061273c565b60206040518083038186803b1580156121d657600080fd5b505afa1580156121ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220e9190612986565b6066546040516370a0823160e01b81529192506000916001600160a01b03858116926370a0823192612246929091169060040161273c565b60206040518083038186803b15801561225e57600080fd5b505afa158015612272573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122969190612986565b6065546040519192506001600160a01b03169063d1b7089a9085906122c19030908690602401612ab5565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052606654905160e085901b6001600160e01b031916815261231c9392916001600160a01b031690600090600401612b26565b600060405180830381600087803b15801561233657600080fd5b505af115801561234a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123729190810190612b5a565b5060009050612381828461296e565b6040516370a0823160e01b81529091506001600160a01b038516906370a08231906123b090309060040161273c565b60206040518083038186803b1580156123c857600080fd5b505afa1580156123dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124009190612986565b81146124485760405162461bcd60e51b8152602060048201526017602482015276111053c81d1c985b9cd9995c881a185cc819985a5b1959604a1b6044820152606401610906565b60408051848152602081018390527f3107ec7eaa50b775d2486c7a394472235804b6fe1c0d4b7bd1d79b09df60f2ba910160405180910390a150505050565b803b6124eb5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610906565b600080516020612c7683398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6125795760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610906565b600080846001600160a01b0316846040516125949190612be6565b600060405180830381855af49150503d80600081146125cf576040519150601f19603f3d011682016040523d82523d6000602084013e6125d4565b606091505b50915091506125fc8282604051806060016040528060278152602001612c9660279139612645565b95945050505050565b61260e81612487565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060831561265457508161267e565b8251156126645782518084602001fd5b8160405162461bcd60e51b81526004016109069190612c02565b9392505050565b6001600160a01b0381168114610efd57600080fd5b6000602082840312156126ac57600080fd5b813561267e81612685565b8015158114610efd57600080fd5b6000602082840312156126d757600080fd5b813561267e816126b7565b6000602082840312156126f457600080fd5b5035919050565b60008060006060848603121561271057600080fd5b833561271b81612685565b9250602084013561272b81612685565b929592945050506040919091013590565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561278e5761278e612750565b604052919050565b60006001600160401b038211156127af576127af612750565b50601f01601f191660200190565b600080604083850312156127d057600080fd5b82356127db81612685565b915060208301356001600160401b038111156127f657600080fd5b8301601f8101851361280757600080fd5b803561281a61281582612796565b612766565b81815286602083850101111561282f57600080fd5b816020840160208301376000602083830101528093505050509250929050565b6000602080838503121561286257600080fd5b82356001600160401b038082111561287957600080fd5b818501915085601f83011261288d57600080fd5b81358181111561289f5761289f612750565b8060051b91506128b0848301612766565b81815291830184019184810190888411156128ca57600080fd5b938501935b838510156128f457843592506128e483612685565b82825293850193908501906128cf565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561292857612928612900565b500390565b60008261294a57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561296957612969612900565b500290565b6000821982111561298157612981612900565b500190565b60006020828403121561299857600080fd5b5051919050565b6000602082840312156129b157600080fd5b815161267e81612685565b6020808252601e908201527f6e6f7420696e20706572696f6453746172746564206f72207061757365640000604082015260600190565b6020808252602c90820152600080516020612c1683398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020612c1683398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612a7957600080fd5b815161267e816126b7565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612aae57612aae612900565b5060010190565b6001600160a01b03929092168252602082015260400190565b60005b83811015612ae9578181015183820152602001612ad1565b83811115610a135750506000910152565b60008151808452612b12816020860160208601612ace565b601f01601f19169290920160200192915050565b600060018060a01b03808716835260806020840152612b486080840187612afa565b94166040830152506060015292915050565b60008060408385031215612b6d57600080fd5b8251612b78816126b7565b60208401519092506001600160401b03811115612b9457600080fd5b8301601f81018513612ba557600080fd5b8051612bb361281582612796565b818152866020838501011115612bc857600080fd5b612bd9826020830160208601612ace565b8093505050509250929050565b60008251612bf8818460208701612ace565b9190910192915050565b60208152600061267e6020830184612afa56fe46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682089ed24731df6b066e4c5186901fffdba18cd9a10f07494aff900bdee260d1304a61e6cca2c12e2a0a493683acfe95b034f0f50d793434f4dfe3ba06ea201f344360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c656472b174db45b7e58932cb0c6bf37a7158f40424a078b07677d823cafdb3db540fa26469706673582212208bf38984404596b09ce617ade5ace96dd496dc0c59223478d703e728861993a464736f6c63430008080033";
|
|
970
|
+
|
|
971
|
+
type UBISchemeConstructorParams =
|
|
972
|
+
| [signer?: Signer]
|
|
973
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
974
|
+
|
|
975
|
+
const isSuperArgs = (
|
|
976
|
+
xs: UBISchemeConstructorParams
|
|
977
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
978
|
+
|
|
979
|
+
export class UBIScheme__factory extends ContractFactory {
|
|
980
|
+
constructor(...args: UBISchemeConstructorParams) {
|
|
981
|
+
if (isSuperArgs(args)) {
|
|
982
|
+
super(...args);
|
|
983
|
+
} else {
|
|
984
|
+
super(_abi, _bytecode, args[0]);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
deploy(
|
|
989
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
990
|
+
): Promise<UBIScheme> {
|
|
991
|
+
return super.deploy(overrides || {}) as Promise<UBIScheme>;
|
|
992
|
+
}
|
|
993
|
+
getDeployTransaction(
|
|
994
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
995
|
+
): TransactionRequest {
|
|
996
|
+
return super.getDeployTransaction(overrides || {});
|
|
997
|
+
}
|
|
998
|
+
attach(address: string): UBIScheme {
|
|
999
|
+
return super.attach(address) as UBIScheme;
|
|
1000
|
+
}
|
|
1001
|
+
connect(signer: Signer): UBIScheme__factory {
|
|
1002
|
+
return super.connect(signer) as UBIScheme__factory;
|
|
1003
|
+
}
|
|
1004
|
+
static readonly bytecode = _bytecode;
|
|
1005
|
+
static readonly abi = _abi;
|
|
1006
|
+
static createInterface(): UBISchemeInterface {
|
|
1007
|
+
return new utils.Interface(_abi) as UBISchemeInterface;
|
|
1008
|
+
}
|
|
1009
|
+
static connect(
|
|
1010
|
+
address: string,
|
|
1011
|
+
signerOrProvider: Signer | Provider
|
|
1012
|
+
): UBIScheme {
|
|
1013
|
+
return new Contract(address, _abi, signerOrProvider) as UBIScheme;
|
|
1014
|
+
}
|
|
1015
|
+
}
|