@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,65 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
PausableUpgradeable,
|
|
9
|
+
PausableUpgradeableInterface,
|
|
10
|
+
} from "../PausableUpgradeable";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "account",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
name: "Paused",
|
|
24
|
+
type: "event",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
anonymous: false,
|
|
28
|
+
inputs: [
|
|
29
|
+
{
|
|
30
|
+
indexed: false,
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "account",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "Unpaused",
|
|
37
|
+
type: "event",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [],
|
|
41
|
+
name: "paused",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "bool",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "bool",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
stateMutability: "view",
|
|
50
|
+
type: "function",
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
export class PausableUpgradeable__factory {
|
|
55
|
+
static readonly abi = _abi;
|
|
56
|
+
static createInterface(): PausableUpgradeableInterface {
|
|
57
|
+
return new utils.Interface(_abi) as PausableUpgradeableInterface;
|
|
58
|
+
}
|
|
59
|
+
static connect(
|
|
60
|
+
address: string,
|
|
61
|
+
signerOrProvider: Signer | Provider
|
|
62
|
+
): PausableUpgradeable {
|
|
63
|
+
return new Contract(address, _abi, signerOrProvider) as PausableUpgradeable;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
ProtocolUpgradeFuseRecover,
|
|
9
|
+
ProtocolUpgradeFuseRecoverInterface,
|
|
10
|
+
} from "../ProtocolUpgradeFuseRecover";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "contract Controller",
|
|
17
|
+
name: "_controller",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "_owner",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
type: "constructor",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "contract INameService",
|
|
33
|
+
name: "ns",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "firstClaimPool",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "ubiScheme",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "bytes32[]",
|
|
48
|
+
name: "nameHash",
|
|
49
|
+
type: "bytes32[]",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "address[]",
|
|
53
|
+
name: "nameAddress",
|
|
54
|
+
type: "address[]",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "upgrade",
|
|
58
|
+
outputs: [],
|
|
59
|
+
stateMutability: "nonpayable",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "schemeRegistrar",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "upgradeScheme",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "compoundVotingMachine",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "upgradeGovernance",
|
|
81
|
+
outputs: [],
|
|
82
|
+
stateMutability: "nonpayable",
|
|
83
|
+
type: "function",
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
const _bytecode =
|
|
88
|
+
"0x608060405234801561001057600080fd5b50604051610e6c380380610e6c83398101604081905261002f9161010b565b600080546001600160a01b038085166001600160a01b03199283168117909355600180549185169190921617905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b15801561009357600080fd5b505afa1580156100a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100cb9190610145565b600280546001600160a01b0319166001600160a01b0392909216919091179055506101699050565b6001600160a01b038116811461010857600080fd5b50565b6000806040838503121561011e57600080fd5b8251610129816100f3565b602084015190925061013a816100f3565b809150509250929050565b60006020828403121561015757600080fd5b8151610162816100f3565b9392505050565b610cf4806101786000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635c0d087b1461003b5780639869277b14610050575b600080fd5b61004e610049366004610905565b610063565b005b61004e61005e36600461099b565b610280565b6001546001600160a01b031633146100965760405162461bcd60e51b815260040161008d90610a42565b60405180910390fd5b6000805460025460405163e869d45f60e01b81526001600160a01b0385811660048301526024820194909452601f60e01b6044820152908316606482015291169063e869d45f90608401602060405180830381600087803b1580156100fa57600080fd5b505af115801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610a7b565b61018f5760405162461bcd60e51b815260206004820152602860248201527f7265676973746572696e6720636f6d706f756e64566f74696e674d616368696e604482015267194819985a5b195960c21b606482015260840161008d565b600054600254604051636c525b1360e01b81526001600160a01b0392831692636c525b13926101c392911690600401610a9d565b602060405180830381600087803b1580156101dd57600080fd5b505af11580156101f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102159190610a7b565b6102725760405162461bcd60e51b815260206004820152602860248201527f756e7265676973746572696e672050726f746f636f6c55706772616465467573604482015267194819985a5b195960c21b606482015260840161008d565b6001546001600160a01b0316ff5b6001546001600160a01b031633146102aa5760405162461bcd60e51b815260040161008d90610a42565b8281146102eb5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161008d565b610359878585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061036c92505050565b61036385876104ad565b50505050505050565b600080546040516001600160a01b039091169063d1b7089a9086906103979087908790602401610ab1565b60408051601f198184030181529181526020820180516001600160e01b0316634ab01f5b60e01b179052600254905160e085901b6001600160e01b03191681526103f29392916001600160a01b031690600090600401610b61565b600060405180830381600087803b15801561040c57600080fd5b505af1158015610420573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104489190810190610bc8565b509050806104a75760405162461bcd60e51b815260206004820152602660248201527f43616c6c696e67207365744e616d6553657276696365436f6e7472616374732060448201526519985a5b195960d21b606482015260840161008d565b50505050565b60025460408051631c2eb17b60e31b815290516000926001600160a01b03169163e1758bd8916004808301926020929190829003018186803b1580156104f257600080fd5b505afa158015610506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a9190610c88565b6002546040516370a0823160e01b81529192506000916001600160a01b03808516926370a08231926105629290911690600401610a9d565b60206040518083038186803b15801561057a57600080fd5b505afa15801561058e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b29190610ca5565b6000805460405192935090916001600160a01b039091169063d1b7089a9086906105e0908990602401610a9d565b60408051601f198184030181529181526020820180516001600160e01b0316631619b41160e11b179052600254905160e085901b6001600160e01b031916815261063b9392916001600160a01b031690600090600401610b61565b600060405180830381600087803b15801561065557600080fd5b505af1158015610669573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106919190810190610bc8565b509050806106d75760405162461bcd60e51b81526020600482015260136024820152721cd95d15509254d8da195b594819985a5b1959606a1b604482015260640161008d565b6000805460408051602480820185905282518083039091018152604490910182526020810180516001600160e01b0316631ad53ec360e31b17905260025491516368db844d60e11b81526001600160a01b039384169463d1b7089a94610746948c949391169190600401610b61565b600060405180830381600087803b15801561076057600080fd5b505af1158015610774573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261079c9190810190610bc8565b509050806107ea5760405162461bcd60e51b815260206004820152601b60248201527a1cd95d155cd9519a5c9cdd10db185a5b541bdbdb0819985a5b1959602a1b604482015260640161008d565b81156108e65760005460025460405163b9a04cdd60e01b81526001600160a01b038681166004830152888116602483015260448201869052918216606482015291169063b9a04cdd90608401602060405180830381600087803b15801561085057600080fd5b505af1158015610864573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108889190610a7b565b9050806108e65760405162461bcd60e51b815260206004820152602660248201527f66756e6473207472616e7366657220746f206e657720756269736368656d652060448201526519985a5b195960d21b606482015260840161008d565b5050505050565b6001600160a01b038116811461090257600080fd5b50565b60008060006060848603121561091a57600080fd5b8335610925816108ed565b92506020840135610935816108ed565b91506040840135610945816108ed565b809150509250925092565b60008083601f84011261096257600080fd5b5081356001600160401b0381111561097957600080fd5b6020830191508360208260051b850101111561099457600080fd5b9250929050565b600080600080600080600060a0888a0312156109b657600080fd5b87356109c1816108ed565b965060208801356109d1816108ed565b955060408801356109e1816108ed565b945060608801356001600160401b03808211156109fd57600080fd5b610a098b838c01610950565b909650945060808a0135915080821115610a2257600080fd5b50610a2f8a828b01610950565b989b979a50959850939692959293505050565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b80518015158114610a7657600080fd5b919050565b600060208284031215610a8d57600080fd5b610a9682610a66565b9392505050565b6001600160a01b0391909116815260200190565b604080825283519082018190526000906020906060840190828701845b82811015610aea57815184529284019290840190600101610ace565b5050508381038285015284518082528583019183019060005b81811015610b285783516001600160a01b031683529284019291840191600101610b03565b5090979650505050505050565b60005b83811015610b50578181015183820152602001610b38565b838111156104a75750506000910152565b600060018060a01b038087168352608060208401528551806080850152610b8f8160a0860160208a01610b35565b9416604083015250606081019190915260a0601f909201601f1916010192915050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610bdb57600080fd5b610be483610a66565b60208401519092506001600160401b0380821115610c0157600080fd5b818501915085601f830112610c1557600080fd5b815181811115610c2757610c27610bb2565b604051601f8201601f19908116603f01168101908382118183101715610c4f57610c4f610bb2565b81604052828152886020848701011115610c6857600080fd5b610c79836020830160208801610b35565b80955050505050509250929050565b600060208284031215610c9a57600080fd5b8151610a96816108ed565b600060208284031215610cb757600080fd5b505191905056fea26469706673582212208eb40a1aef52b5188e9d9c81dfda8b8e133097830bcf88ae2be0946860258c2264736f6c63430008080033";
|
|
89
|
+
|
|
90
|
+
type ProtocolUpgradeFuseRecoverConstructorParams =
|
|
91
|
+
| [signer?: Signer]
|
|
92
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
93
|
+
|
|
94
|
+
const isSuperArgs = (
|
|
95
|
+
xs: ProtocolUpgradeFuseRecoverConstructorParams
|
|
96
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
97
|
+
|
|
98
|
+
export class ProtocolUpgradeFuseRecover__factory extends ContractFactory {
|
|
99
|
+
constructor(...args: ProtocolUpgradeFuseRecoverConstructorParams) {
|
|
100
|
+
if (isSuperArgs(args)) {
|
|
101
|
+
super(...args);
|
|
102
|
+
} else {
|
|
103
|
+
super(_abi, _bytecode, args[0]);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
deploy(
|
|
108
|
+
_controller: string,
|
|
109
|
+
_owner: string,
|
|
110
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
111
|
+
): Promise<ProtocolUpgradeFuseRecover> {
|
|
112
|
+
return super.deploy(
|
|
113
|
+
_controller,
|
|
114
|
+
_owner,
|
|
115
|
+
overrides || {}
|
|
116
|
+
) as Promise<ProtocolUpgradeFuseRecover>;
|
|
117
|
+
}
|
|
118
|
+
getDeployTransaction(
|
|
119
|
+
_controller: string,
|
|
120
|
+
_owner: string,
|
|
121
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
122
|
+
): TransactionRequest {
|
|
123
|
+
return super.getDeployTransaction(_controller, _owner, overrides || {});
|
|
124
|
+
}
|
|
125
|
+
attach(address: string): ProtocolUpgradeFuseRecover {
|
|
126
|
+
return super.attach(address) as ProtocolUpgradeFuseRecover;
|
|
127
|
+
}
|
|
128
|
+
connect(signer: Signer): ProtocolUpgradeFuseRecover__factory {
|
|
129
|
+
return super.connect(signer) as ProtocolUpgradeFuseRecover__factory;
|
|
130
|
+
}
|
|
131
|
+
static readonly bytecode = _bytecode;
|
|
132
|
+
static readonly abi = _abi;
|
|
133
|
+
static createInterface(): ProtocolUpgradeFuseRecoverInterface {
|
|
134
|
+
return new utils.Interface(_abi) as ProtocolUpgradeFuseRecoverInterface;
|
|
135
|
+
}
|
|
136
|
+
static connect(
|
|
137
|
+
address: string,
|
|
138
|
+
signerOrProvider: Signer | Provider
|
|
139
|
+
): ProtocolUpgradeFuseRecover {
|
|
140
|
+
return new Contract(
|
|
141
|
+
address,
|
|
142
|
+
_abi,
|
|
143
|
+
signerOrProvider
|
|
144
|
+
) as ProtocolUpgradeFuseRecover;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
ProtocolUpgradeFuse,
|
|
9
|
+
ProtocolUpgradeFuseInterface,
|
|
10
|
+
} from "../ProtocolUpgradeFuse";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "contract Controller",
|
|
17
|
+
name: "_controller",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "_owner",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
type: "constructor",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "contract INameService",
|
|
33
|
+
name: "ns",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address[]",
|
|
38
|
+
name: "oldContracts",
|
|
39
|
+
type: "address[]",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "ubiScheme",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "bytes32[]",
|
|
48
|
+
name: "nameHash",
|
|
49
|
+
type: "bytes32[]",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "address[]",
|
|
53
|
+
name: "nameAddress",
|
|
54
|
+
type: "address[]",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "upgrade",
|
|
58
|
+
outputs: [],
|
|
59
|
+
stateMutability: "nonpayable",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "schemeRegistrar",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "upgradeScheme",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "compoundVotingMachine",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "upgradeGovernance",
|
|
81
|
+
outputs: [],
|
|
82
|
+
stateMutability: "nonpayable",
|
|
83
|
+
type: "function",
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
const _bytecode =
|
|
88
|
+
"0x60806040523480156200001157600080fd5b506040516200171a3803806200171a833981016040819052620000349162000116565b600080546001600160a01b038085166001600160a01b03199283168117909355600180549185169190921617905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b1580156200009957600080fd5b505afa158015620000ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d4919062000155565b600280546001600160a01b0319166001600160a01b0392909216919091179055506200017c9050565b6001600160a01b03811681146200011357600080fd5b50565b600080604083850312156200012a57600080fd5b82516200013781620000fd565b60208401519092506200014a81620000fd565b809150509250929050565b6000602082840312156200016857600080fd5b81516200017581620000fd565b9392505050565b61158e806200018c6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80632224deea1461003b5780635c0d087b14610050575b600080fd5b61004e610049366004611133565b610063565b005b61004e61005e366004611260565b61055c565b6001546001600160a01b031633146100965760405162461bcd60e51b815260040161008d906112ab565b60405180910390fd5b8281146100d75760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161008d565b85516004146101265760405162461bcd60e51b815260206004820152601b60248201527a0ded8c840c6dedce8e4c2c6e8e640e6d2f4ca40dad2e6dac2e8c6d602b1b604482015260640161008d565b6101658660028151811061013c5761013c6112cf565b60200260200101518688600381518110610158576101586112cf565b6020026020010151610a25565b6101d38785858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808902828101820190935288825290935088925087918291850190849080828437600092019190915250610f3992505050565b60005460405163bf40fac160e01b81526020600482015260086024820152674944454e5449545960c01b60448201526001600160a01b039182169163e869d45f91908a169063bf40fac19060640160206040518083038186803b15801561023957600080fd5b505afa15801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906112e5565b6002546040516001600160e01b031960e085901b1681526102a89291600091600160e01b916001600160a01b031690600401611309565b602060405180830381600087803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fa919061134e565b6103445760405162461bcd60e51b815260206004820152601b60248201527a1c9959da5cdd195c9a5b99c81259195b9d1a5d1e4819985a5b1959602a1b604482015260640161008d565b60006001600160a01b031686600081518110610362576103626112cf565b60200260200101516001600160a01b0316146105535760005460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526001600160a01b039182169163039de01d91908a169063bf40fac19060640160206040518083038186803b1580156103e057600080fd5b505afa1580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041891906112e5565b6001600160a01b0316634b75f54f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561045057600080fd5b505afa158015610464573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048891906112e5565b6002546040516001600160e01b031960e085901b1681526104b692916001600160a01b031690600401611369565b602060405180830381600087803b1580156104d057600080fd5b505af11580156104e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610508919061134e565b6105535760405162461bcd60e51b815260206004820152601c60248201527b1d5b9c9959da5cdd195c9a5b99c8199bdc9b5d5b184819985a5b195960221b604482015260640161008d565b50505050505050565b6001546001600160a01b031633146105865760405162461bcd60e51b815260040161008d906112ab565b6001600160a01b038316156106765760005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d926105cc92889290911690600401611369565b602060405180830381600087803b1580156105e657600080fd5b505af11580156105fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061e919061134e565b6106765760405162461bcd60e51b8152602060048201526024808201527f756e7265676973746572696e6720736368656d655265676973747261722066616044820152631a5b195960e21b606482015260840161008d565b6001600160a01b038216156107655760005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d926106bc92879290911690600401611369565b602060405180830381600087803b1580156106d657600080fd5b505af11580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e919061134e565b6107655760405162461bcd60e51b815260206004820152602260248201527f756e7265676973746572696e672075706772616465536368656d65206661696c604482015261195960f21b606482015260840161008d565b6000805460025460405163e869d45f60e01b81526001600160a01b039283169363e869d45f936107a3938793601f60e01b9290911690600401611309565b602060405180830381600087803b1580156107bd57600080fd5b505af11580156107d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f5919061134e565b6108525760405162461bcd60e51b815260206004820152602860248201527f7265676973746572696e6720636f6d706f756e64566f74696e674d616368696e604482015267194819985a5b195960c21b606482015260840161008d565b6000805460015460025460405163e869d45f60e01b81526001600160a01b039384169463e869d45f94610896948116939192601f60e01b9290911690600401611309565b602060405180830381600087803b1580156108b057600080fd5b505af11580156108c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e8919061134e565b6109345760405162461bcd60e51b815260206004820152601f60248201527f7265676973746572696e6720676f76206661696c73616665206661696c656400604482015260640161008d565b600054600254604051636c525b1360e01b81526001600160a01b0392831692636c525b139261096892911690600401611383565b602060405180830381600087803b15801561098257600080fd5b505af1158015610996573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ba919061134e565b610a175760405162461bcd60e51b815260206004820152602860248201527f756e7265676973746572696e672050726f746f636f6c55706772616465467573604482015267194819985a5b195960c21b606482015260840161008d565b6001546001600160a01b0316ff5b60025460408051631c2eb17b60e31b815290516000926001600160a01b03169163e1758bd8916004808301926020929190829003018186803b158015610a6a57600080fd5b505afa158015610a7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa291906112e5565b90506000816001600160a01b03166370a08231866040518263ffffffff1660e01b8152600401610ad29190611383565b60206040518083038186803b158015610aea57600080fd5b505afa158015610afe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b229190611397565b6000805460405192935090916001600160a01b039091169063d1b7089a908690610b50908990602401611383565b60408051601f198184030181529181526020820180516001600160e01b0316631619b41160e11b179052600254905160e085901b6001600160e01b0319168152610bab9392916001600160a01b0316906000906004016113dc565b600060405180830381600087803b158015610bc557600080fd5b505af1158015610bd9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c01919081019061142d565b50905080610c475760405162461bcd60e51b81526020600482015260136024820152721cd95d15509254d8da195b594819985a5b1959606a1b604482015260640161008d565b6001600160a01b03861615610e3557600080546040805160048082526024820183526020820180516001600160e01b0316633bef870760e21b17905260025492516368db844d60e11b81526001600160a01b039485169563d1b7089a95610cb4958e9594911692016113dc565b600060405180830381600087803b158015610cce57600080fd5b505af1158015610ce2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d0a919081019061142d565b50905080610d555760405162461bcd60e51b81526020600482015260186024820152771bdb19081d589a5cd8da195b5948195b990819985a5b195960421b604482015260640161008d565b60005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d92610d8c928b9290911690600401611369565b602060405180830381600087803b158015610da657600080fd5b505af1158015610dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dde919061134e565b610e355760405162461bcd60e51b815260206004820152602260248201527f756e7265676973746572696e67206f6c6420554249536368656d65206661696c604482015261195960f21b606482015260840161008d565b8115610f315760005460025460405163b9a04cdd60e01b81526001600160a01b038681166004830152888116602483015260448201869052918216606482015291169063b9a04cdd90608401602060405180830381600087803b158015610e9b57600080fd5b505af1158015610eaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed3919061134e565b905080610f315760405162461bcd60e51b815260206004820152602660248201527f66756e6473207472616e7366657220746f206e657720756269736368656d652060448201526519985a5b195960d21b606482015260840161008d565b505050505050565b600080546040516001600160a01b039091169063d1b7089a908690610f6490879087906024016114d4565b60408051601f198184030181529181526020820180516001600160e01b0316634ab01f5b60e01b179052600254905160e085901b6001600160e01b0319168152610fbf9392916001600160a01b0316906000906004016113dc565b600060405180830381600087803b158015610fd957600080fd5b505af1158015610fed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611015919081019061142d565b509050806110745760405162461bcd60e51b815260206004820152602660248201527f43616c6c696e67207365744e616d6553657276696365436f6e7472616374732060448201526519985a5b195960d21b606482015260840161008d565b50505050565b6001600160a01b038116811461108f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156110d0576110d0611092565b604052919050565b80356110e38161107a565b919050565b60008083601f8401126110fa57600080fd5b5081356001600160401b0381111561111157600080fd5b6020830191508360208260051b850101111561112c57600080fd5b9250929050565b600080600080600080600060a0888a03121561114e57600080fd5b87356111598161107a565b96506020888101356001600160401b038082111561117657600080fd5b818b0191508b601f83011261118a57600080fd5b81358181111561119c5761119c611092565b8060051b6111ab8582016110a8565b918252838101850191858101908f8411156111c557600080fd5b948601945b838610156111ef57853592506111df8361107a565b82825294860194908601906111ca565b9b506112019250505060408c016110d8565b975060608b013592508083111561121757600080fd5b6112238c848d016110e8565b909750955060808b013592508691508083111561123f57600080fd5b505061124d8a828b016110e8565b989b979a50959850939692959293505050565b60008060006060848603121561127557600080fd5b83356112808161107a565b925060208401356112908161107a565b915060408401356112a08161107a565b809150509250925092565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156112f757600080fd5b81516113028161107a565b9392505050565b6001600160a01b03948516815260208101939093526001600160e01b0319919091166040830152909116606082015260800190565b805180151581146110e357600080fd5b60006020828403121561136057600080fd5b6113028261133e565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0391909116815260200190565b6000602082840312156113a957600080fd5b5051919050565b60005b838110156113cb5781810151838201526020016113b3565b838111156110745750506000910152565b600060018060a01b03808716835260806020840152855180608085015261140a8160a0860160208a016113b0565b9416604083015250606081019190915260a0601f909201601f1916010192915050565b6000806040838503121561144057600080fd5b6114498361133e565b60208401519092506001600160401b038082111561146657600080fd5b818501915085601f83011261147a57600080fd5b81518181111561148c5761148c611092565b61149f601f8201601f19166020016110a8565b91508082528660208285010111156114b657600080fd5b6114c78160208401602086016113b0565b5080925050509250929050565b604080825283519082018190526000906020906060840190828701845b8281101561150d578151845292840192908401906001016114f1565b5050508381038285015284518082528583019183019060005b8181101561154b5783516001600160a01b031683529284019291840191600101611526565b509097965050505050505056fea2646970667358221220c92359d97a12db0aa1bfc7a2635d6dccbf119b88a37ff88c360ff67f373da37964736f6c63430008080033";
|
|
89
|
+
|
|
90
|
+
type ProtocolUpgradeFuseConstructorParams =
|
|
91
|
+
| [signer?: Signer]
|
|
92
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
93
|
+
|
|
94
|
+
const isSuperArgs = (
|
|
95
|
+
xs: ProtocolUpgradeFuseConstructorParams
|
|
96
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
97
|
+
|
|
98
|
+
export class ProtocolUpgradeFuse__factory extends ContractFactory {
|
|
99
|
+
constructor(...args: ProtocolUpgradeFuseConstructorParams) {
|
|
100
|
+
if (isSuperArgs(args)) {
|
|
101
|
+
super(...args);
|
|
102
|
+
} else {
|
|
103
|
+
super(_abi, _bytecode, args[0]);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
deploy(
|
|
108
|
+
_controller: string,
|
|
109
|
+
_owner: string,
|
|
110
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
111
|
+
): Promise<ProtocolUpgradeFuse> {
|
|
112
|
+
return super.deploy(
|
|
113
|
+
_controller,
|
|
114
|
+
_owner,
|
|
115
|
+
overrides || {}
|
|
116
|
+
) as Promise<ProtocolUpgradeFuse>;
|
|
117
|
+
}
|
|
118
|
+
getDeployTransaction(
|
|
119
|
+
_controller: string,
|
|
120
|
+
_owner: string,
|
|
121
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
122
|
+
): TransactionRequest {
|
|
123
|
+
return super.getDeployTransaction(_controller, _owner, overrides || {});
|
|
124
|
+
}
|
|
125
|
+
attach(address: string): ProtocolUpgradeFuse {
|
|
126
|
+
return super.attach(address) as ProtocolUpgradeFuse;
|
|
127
|
+
}
|
|
128
|
+
connect(signer: Signer): ProtocolUpgradeFuse__factory {
|
|
129
|
+
return super.connect(signer) as ProtocolUpgradeFuse__factory;
|
|
130
|
+
}
|
|
131
|
+
static readonly bytecode = _bytecode;
|
|
132
|
+
static readonly abi = _abi;
|
|
133
|
+
static createInterface(): ProtocolUpgradeFuseInterface {
|
|
134
|
+
return new utils.Interface(_abi) as ProtocolUpgradeFuseInterface;
|
|
135
|
+
}
|
|
136
|
+
static connect(
|
|
137
|
+
address: string,
|
|
138
|
+
signerOrProvider: Signer | Provider
|
|
139
|
+
): ProtocolUpgradeFuse {
|
|
140
|
+
return new Contract(address, _abi, signerOrProvider) as ProtocolUpgradeFuse;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
ProtocolUpgradeRecover,
|
|
9
|
+
ProtocolUpgradeRecoverInterface,
|
|
10
|
+
} from "../ProtocolUpgradeRecover";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "contract Controller",
|
|
17
|
+
name: "_controller",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "_owner",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
type: "constructor",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "contract INameService",
|
|
33
|
+
name: "ns",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "bytes32",
|
|
38
|
+
name: "airdrop",
|
|
39
|
+
type: "bytes32",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "setReserveGDXAirdrop",
|
|
43
|
+
outputs: [],
|
|
44
|
+
stateMutability: "nonpayable",
|
|
45
|
+
type: "function",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "contract INameService",
|
|
51
|
+
name: "ns",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "address[]",
|
|
56
|
+
name: "contracts",
|
|
57
|
+
type: "address[]",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
internalType: "uint256[]",
|
|
61
|
+
name: "rewards",
|
|
62
|
+
type: "uint256[]",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "setStakingRewards",
|
|
66
|
+
outputs: [],
|
|
67
|
+
stateMutability: "nonpayable",
|
|
68
|
+
type: "function",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [
|
|
72
|
+
{
|
|
73
|
+
internalType: "contract INameService",
|
|
74
|
+
name: "ns",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
internalType: "bytes32[]",
|
|
79
|
+
name: "nameHash",
|
|
80
|
+
type: "bytes32[]",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
internalType: "address[]",
|
|
84
|
+
name: "nameAddress",
|
|
85
|
+
type: "address[]",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
name: "upgradeBasic",
|
|
89
|
+
outputs: [],
|
|
90
|
+
stateMutability: "nonpayable",
|
|
91
|
+
type: "function",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
inputs: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "compoundVotingMachine",
|
|
98
|
+
type: "address",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
name: "upgradeGovernance",
|
|
102
|
+
outputs: [],
|
|
103
|
+
stateMutability: "nonpayable",
|
|
104
|
+
type: "function",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "contract INameService",
|
|
110
|
+
name: "ns",
|
|
111
|
+
type: "address",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
name: "upgradeReserve",
|
|
115
|
+
outputs: [],
|
|
116
|
+
stateMutability: "nonpayable",
|
|
117
|
+
type: "function",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
stateMutability: "payable",
|
|
121
|
+
type: "receive",
|
|
122
|
+
},
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
const _bytecode =
|
|
126
|
+
"0x60806040523480156200001157600080fd5b5060405162001ae138038062001ae1833981016040819052620000349162000116565b600080546001600160a01b038085166001600160a01b03199283168117909355600180549185169190921617905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b1580156200009957600080fd5b505afa158015620000ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d4919062000155565b600280546001600160a01b0319166001600160a01b0392909216919091179055506200017c9050565b6001600160a01b03811681146200011357600080fd5b50565b600080604083850312156200012a57600080fd5b82516200013781620000fd565b60208401519092506200014a81620000fd565b809150509250929050565b6000602082840312156200016857600080fd5b81516200017581620000fd565b9392505050565b611955806200018c6000396000f3fe60806040526004361061004e5760003560e01c80631fedded51461005a5780633f40cf5b1461007c5780638815bdae1461009c57806391ea50ae146100bc578063bdc27b9b146100dc57600080fd5b3661005557005b600080fd5b34801561006657600080fd5b5061007a61007536600461138f565b6100fc565b005b34801561008857600080fd5b5061007a6100973660046113b3565b610314565b3480156100a857600080fd5b5061007a6100b736600461142a565b6104e6565b3480156100c857600080fd5b5061007a6100d7366004611580565b6105c6565b3480156100e857600080fd5b5061007a6100f736600461138f565b61086c565b6001546001600160a01b0316331461012f5760405162461bcd60e51b815260040161012690611655565b60405180910390fd5b6000805460025460405163e869d45f60e01b81526001600160a01b0385811660048301526024820194909452601f60e01b6044820152908316606482015291169063e869d45f90608401602060405180830381600087803b15801561019357600080fd5b505af11580156101a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cb919061168e565b6102285760405162461bcd60e51b815260206004820152602860248201527f7265676973746572696e6720636f6d706f756e64566f74696e674d616368696e604482015267194819985a5b195960c21b6064820152608401610126565b600054600254604051636c525b1360e01b81526001600160a01b0392831692636c525b139261025c929116906004016116a9565b602060405180830381600087803b15801561027657600080fd5b505af115801561028a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ae919061168e565b6103065760405162461bcd60e51b8152602060048201526024808201527f756e7265676973746572696e672070726f746f636f6c757067726164652066616044820152631a5b195960e21b6064820152608401610126565b6001546001600160a01b0316ff5b6001546001600160a01b0316331461033e5760405162461bcd60e51b815260040161012690611655565b6000805460405163bf40fac160e01b81526001600160a01b039182169163d1b7089a919086169063bf40fac190610377906004016116bd565b60206040518083038186803b15801561038f57600080fd5b505afa1580156103a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c791906116de565b6040516024810186905260440160408051601f198184030181529181526020820180516001600160e01b0316630a7445bf60e41b179052600254905160e085901b6001600160e01b031916815261042f9392916001600160a01b031690600090600401611727565b600060405180830381600087803b15801561044957600080fd5b505af115801561045d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104859190810190611778565b509050806104e15760405162461bcd60e51b815260206004820152602360248201527f43616c6c696e67207365745265736572766547445841697264726f70206661696044820152621b195960ea1b6064820152608401610126565b505050565b6001546001600160a01b031633146105105760405162461bcd60e51b815260040161012690611655565b8281146105515760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610126565b6105bf85858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040805160208089028281018201909352888252909350889250879182918501908490808284376000920191909152506108ab92505050565b5050505050565b6001546001600160a01b031633146105f05760405162461bcd60e51b815260040161012690611655565b805182511461063b5760405162461bcd60e51b81526020600482015260176024820152760e6e8c2d6d2dcce40d8cadccee8d040dad2e6dac2e8c6d604b1b6044820152606401610126565b60005b8251811015610866576000805460405163bf40fac160e01b815260206004820152600c60248201526b232aa7222fa6a0a720a3a2a960a11b60448201526001600160a01b039182169163d1b7089a919088169063bf40fac19060640160206040518083038186803b1580156106b257600080fd5b505afa1580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea91906116de565b8585815181106106fc576106fc61181f565b60200260200101518786815181106107165761071661181f565b602090810291909101015160405160248101929092526001600160a01b031660448201526000606482018190526084820181905260a482015260c40160408051601f198184030181529181526020820180516001600160e01b0316631f1ad8ed60e21b179052600254905160e085901b6001600160e01b03191681526107ad9392916001600160a01b031690600090600401611727565b600060405180830381600087803b1580156107c757600080fd5b505af11580156107db573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108039190810190611778565b509050806108535760405162461bcd60e51b815260206004820181905260248201527f43616c6c696e67207365745374616b696e6752657761726473206661696c65646044820152606401610126565b508061085e81611835565b91505061063e565b50505050565b6001546001600160a01b031633146108965760405162461bcd60e51b815260040161012690611655565b61089f816109e6565b6108a881610eea565b50565b600080546040516001600160a01b039091169063d1b7089a9086906108d6908790879060240161185e565b60408051601f198184030181529181526020820180516001600160e01b0316634ab01f5b60e01b179052600254905160e085901b6001600160e01b03191681526109319392916001600160a01b031690600090600401611727565b600060405180830381600087803b15801561094b57600080fd5b505af115801561095f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109879190810190611778565b509050806108665760405162461bcd60e51b815260206004820152602660248201527f43616c6c696e67207365744e616d6553657276696365436f6e7472616374732060448201526519985a5b195960d21b6064820152608401610126565b6000805460405163bf40fac160e01b81526001600160a01b039182169163d1b7089a919085169063bf40fac190610a1f906004016118e2565b60206040518083038186803b158015610a3757600080fd5b505afa158015610a4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f91906116de565b60405163bf40fac160e01b81526001600160a01b0386169063bf40fac190610a99906004016116bd565b60206040518083038186803b158015610ab157600080fd5b505afa158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae991906116de565b604051602401610af991906116a9565b60408051601f198184030181529181526020820180516001600160e01b0316634c1d96ab60e11b179052600254905160e085901b6001600160e01b0319168152610b549392916001600160a01b031690600090600401611727565b600060405180830381600087803b158015610b6e57600080fd5b505af1158015610b82573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610baa9190810190611778565b50905080610bf55760405162461bcd60e51b815260206004820152601860248201527710d85b1b1a5b99c8185919135a5b9d195c8819985a5b195960421b6044820152606401610126565b60005460405163bf40fac160e01b81526001600160a01b039182169163d1b7089a919085169063bf40fac190610c2d906004016118e2565b60206040518083038186803b158015610c4557600080fd5b505afa158015610c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7d91906116de565b6040805160048082526024820183526020820180516001600160e01b0316639865027560e01b179052600254925160e086901b6001600160e01b0319168152610cd494936001600160a01b03169160009101611727565b600060405180830381600087803b158015610cee57600080fd5b505af1158015610d02573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d2a9190810190611778565b50905080610d7a5760405162461bcd60e51b815260206004820152601d60248201527f43616c6c696e672072656e6f756e63654d696e746572206661696c65640000006044820152606401610126565b60005460405163bf40fac160e01b81526001600160a01b039182169163e4537a74919085169063bf40fac190610db2906004016116bd565b60206040518083038186803b158015610dca57600080fd5b505afa158015610dde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0291906116de565b60025460405160e084901b6001600160e01b03191681526001600160a01b0392831660048201526000602482015291166044820152606401602060405180830381600087803b158015610e5457600080fd5b505af1158015610e68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8c919061168e565b905080610ee65760405162461bcd60e51b815260206004820152602260248201527f43616c6c696e6720616464476c6f62616c436f6e73747261696e74206661696c604482015261195960f21b6064820152608401610126565b5050565b600080826001600160a01b031663bf40fac16040518163ffffffff1660e01b8152600401610f30906020808252600490820152634344414960e01b604082015260600190565b60206040518083038186803b158015610f4857600080fd5b505afa158015610f5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8091906116de565b6002546040516370a0823160e01b81529192506000916001600160a01b03808516926370a0823192610fb892909116906004016116a9565b60206040518083038186803b158015610fd057600080fd5b505afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110089190611906565b60005460405163bf40fac160e01b81529192506001600160a01b039081169163b9a04cdd9185919088169063bf40fac190611045906004016116bd565b60206040518083038186803b15801561105d57600080fd5b505afa158015611071573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109591906116de565b60025460405160e085901b6001600160e01b03191681526001600160a01b039384166004820152918316602483015260448201869052919091166064820152608401602060405180830381600087803b1580156110f157600080fd5b505af1158015611105573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611129919061168e565b9250826111845760405162461bcd60e51b815260206004820152602360248201527f7472616e73666572206364616920746f206e65772072657365727665206661696044820152621b195960ea1b6064820152608401610126565b60005460405163bf40fac160e01b815260206004820152600c60248201526b26a0a925a2aa2fa6a0a5a2a960a11b60448201526001600160a01b039182169163d1b7089a919087169063bf40fac19060640160206040518083038186803b1580156111ee57600080fd5b505afa158015611202573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122691906116de565b6040516001600160a01b0386166024820152648cd0c73ebb6044820152660f5e1925bd0bc76064820152620c4b0b6084820152636216391460a482015260c40160408051601f198184030181529181526020820180516001600160e01b0316638ee090fb60e01b179052600254905160e085901b6001600160e01b03191681526112c19392916001600160a01b031690600090600401611727565b600060405180830381600087803b1580156112db57600080fd5b505af11580156112ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113179190810190611778565b509250826108665760405162461bcd60e51b815260206004820152602a60248201527f63616c6c696e67206d61726b65744d616b657220696e697469616c697a65546f6044820152691ad95b8819985a5b195960b21b6064820152608401610126565b6001600160a01b03811681146108a857600080fd5b6000602082840312156113a157600080fd5b81356113ac8161137a565b9392505050565b600080604083850312156113c657600080fd5b82356113d18161137a565b946020939093013593505050565b60008083601f8401126113f157600080fd5b5081356001600160401b0381111561140857600080fd5b6020830191508360208260051b850101111561142357600080fd5b9250929050565b60008060008060006060868803121561144257600080fd5b853561144d8161137a565b945060208601356001600160401b038082111561146957600080fd5b61147589838a016113df565b9096509450604088013591508082111561148e57600080fd5b5061149b888289016113df565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156114ea576114ea6114ac565b604052919050565b60006001600160401b0382111561150b5761150b6114ac565b5060051b60200190565b600082601f83011261152657600080fd5b8135602061153b611536836114f2565b6114c2565b82815260059290921b8401810191818101908684111561155a57600080fd5b8286015b84811015611575578035835291830191830161155e565b509695505050505050565b60008060006060848603121561159557600080fd5b83356115a08161137a565b92506020848101356001600160401b03808211156115bd57600080fd5b818701915087601f8301126115d157600080fd5b81356115df611536826114f2565b81815260059190911b8301840190848101908a8311156115fe57600080fd5b938501935b828510156116255784356116168161137a565b82529385019390850190611603565b96505050604087013592508083111561163d57600080fd5b505061164b86828701611515565b9150509250925092565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b8051801515811461168957600080fd5b919050565b6000602082840312156116a057600080fd5b6113ac82611679565b6001600160a01b0391909116815260200190565b6020808252600790820152665245534552564560c81b604082015260600190565b6000602082840312156116f057600080fd5b81516113ac8161137a565b60005b838110156117165781810151838201526020016116fe565b838111156108665750506000910152565b600060018060a01b0380871683526080602084015285518060808501526117558160a0860160208a016116fb565b9416604083015250606081019190915260a0601f909201601f1916010192915050565b6000806040838503121561178b57600080fd5b61179483611679565b60208401519092506001600160401b03808211156117b157600080fd5b818501915085601f8301126117c557600080fd5b8151818111156117d7576117d76114ac565b6117ea601f8201601f19166020016114c2565b915080825286602082850101111561180157600080fd5b6118128160208401602086016116fb565b5080925050509250929050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561185757634e487b7160e01b600052601160045260246000fd5b5060010190565b604080825283519082018190526000906020906060840190828701845b828110156118975781518452928401929084019060010161187b565b5050508381038285015284518082528583019183019060005b818110156118d55783516001600160a01b0316835292840192918401916001016118b0565b5090979650505050505050565b6020808252600a908201526923a7a7a22227a62620a960b11b604082015260600190565b60006020828403121561191857600080fd5b505191905056fea2646970667358221220a21b279b283883dd54445ef1b90ca1c3c566c619ccfbff391ee6831d72a3031b64736f6c63430008080033";
|
|
127
|
+
|
|
128
|
+
type ProtocolUpgradeRecoverConstructorParams =
|
|
129
|
+
| [signer?: Signer]
|
|
130
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
131
|
+
|
|
132
|
+
const isSuperArgs = (
|
|
133
|
+
xs: ProtocolUpgradeRecoverConstructorParams
|
|
134
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
135
|
+
|
|
136
|
+
export class ProtocolUpgradeRecover__factory extends ContractFactory {
|
|
137
|
+
constructor(...args: ProtocolUpgradeRecoverConstructorParams) {
|
|
138
|
+
if (isSuperArgs(args)) {
|
|
139
|
+
super(...args);
|
|
140
|
+
} else {
|
|
141
|
+
super(_abi, _bytecode, args[0]);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
deploy(
|
|
146
|
+
_controller: string,
|
|
147
|
+
_owner: string,
|
|
148
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
149
|
+
): Promise<ProtocolUpgradeRecover> {
|
|
150
|
+
return super.deploy(
|
|
151
|
+
_controller,
|
|
152
|
+
_owner,
|
|
153
|
+
overrides || {}
|
|
154
|
+
) as Promise<ProtocolUpgradeRecover>;
|
|
155
|
+
}
|
|
156
|
+
getDeployTransaction(
|
|
157
|
+
_controller: string,
|
|
158
|
+
_owner: string,
|
|
159
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
160
|
+
): TransactionRequest {
|
|
161
|
+
return super.getDeployTransaction(_controller, _owner, overrides || {});
|
|
162
|
+
}
|
|
163
|
+
attach(address: string): ProtocolUpgradeRecover {
|
|
164
|
+
return super.attach(address) as ProtocolUpgradeRecover;
|
|
165
|
+
}
|
|
166
|
+
connect(signer: Signer): ProtocolUpgradeRecover__factory {
|
|
167
|
+
return super.connect(signer) as ProtocolUpgradeRecover__factory;
|
|
168
|
+
}
|
|
169
|
+
static readonly bytecode = _bytecode;
|
|
170
|
+
static readonly abi = _abi;
|
|
171
|
+
static createInterface(): ProtocolUpgradeRecoverInterface {
|
|
172
|
+
return new utils.Interface(_abi) as ProtocolUpgradeRecoverInterface;
|
|
173
|
+
}
|
|
174
|
+
static connect(
|
|
175
|
+
address: string,
|
|
176
|
+
signerOrProvider: Signer | Provider
|
|
177
|
+
): ProtocolUpgradeRecover {
|
|
178
|
+
return new Contract(
|
|
179
|
+
address,
|
|
180
|
+
_abi,
|
|
181
|
+
signerOrProvider
|
|
182
|
+
) as ProtocolUpgradeRecover;
|
|
183
|
+
}
|
|
184
|
+
}
|