@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,207 @@
|
|
|
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
|
+
ProtocolUpgrade,
|
|
9
|
+
ProtocolUpgradeInterface,
|
|
10
|
+
} from "../ProtocolUpgrade";
|
|
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: "nameHash",
|
|
39
|
+
type: "bytes32[]",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address[]",
|
|
43
|
+
name: "nameAddress",
|
|
44
|
+
type: "address[]",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "address[]",
|
|
48
|
+
name: "staking",
|
|
49
|
+
type: "address[]",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "uint256[]",
|
|
53
|
+
name: "monthlyRewards",
|
|
54
|
+
type: "uint256[]",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "upgradeBasic",
|
|
58
|
+
outputs: [],
|
|
59
|
+
stateMutability: "nonpayable",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "contract INameService",
|
|
66
|
+
name: "ns",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "oldDonationStaking",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "address payable",
|
|
76
|
+
name: "donationStaking",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
internalType: "address",
|
|
81
|
+
name: "oldSimpleDAIStaking",
|
|
82
|
+
type: "address",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: "upgradeDonationStaking",
|
|
86
|
+
outputs: [],
|
|
87
|
+
stateMutability: "nonpayable",
|
|
88
|
+
type: "function",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
inputs: [
|
|
92
|
+
{
|
|
93
|
+
internalType: "address",
|
|
94
|
+
name: "schemeRegistrar",
|
|
95
|
+
type: "address",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
internalType: "address",
|
|
99
|
+
name: "upgradeScheme",
|
|
100
|
+
type: "address",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "compoundVotingMachine",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
name: "upgradeGovernance",
|
|
109
|
+
outputs: [],
|
|
110
|
+
stateMutability: "nonpayable",
|
|
111
|
+
type: "function",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [
|
|
115
|
+
{
|
|
116
|
+
internalType: "contract INameService",
|
|
117
|
+
name: "ns",
|
|
118
|
+
type: "address",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
internalType: "address",
|
|
122
|
+
name: "oldReserve",
|
|
123
|
+
type: "address",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "address",
|
|
127
|
+
name: "oldMarketMaker",
|
|
128
|
+
type: "address",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
internalType: "address",
|
|
132
|
+
name: "oldFundManager",
|
|
133
|
+
type: "address",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "COMP",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "upgradeReserve",
|
|
142
|
+
outputs: [],
|
|
143
|
+
stateMutability: "nonpayable",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
stateMutability: "payable",
|
|
148
|
+
type: "receive",
|
|
149
|
+
},
|
|
150
|
+
];
|
|
151
|
+
|
|
152
|
+
const _bytecode =
|
|
153
|
+
"0x60806040523480156200001157600080fd5b5060405162002d1438038062002d14833981016040819052620000349162000116565b600080546001600160a01b038085166001600160a01b03199283168117909355600180549185169190921617905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b1580156200009957600080fd5b505afa158015620000ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d4919062000155565b600280546001600160a01b0319166001600160a01b0392909216919091179055506200017c9050565b6001600160a01b03811681146200011357600080fd5b50565b600080604083850312156200012a57600080fd5b82516200013781620000fd565b60208401519092506200014a81620000fd565b809150509250929050565b6000602082840312156200016857600080fd5b81516200017581620000fd565b9392505050565b612b88806200018c6000396000f3fe6080604052600436106100435760003560e01c80634cbcfaf41461004f5780635c0d087b146100715780635ee6d77c146100915780637d14c7c7146100b157600080fd5b3661004a57005b600080fd5b34801561005b57600080fd5b5061006f61006a36600461250f565b6100d1565b005b34801561007d57600080fd5b5061006f61008c366004612580565b610210565b34801561009d57600080fd5b5061006f6100ac366004612616565b6106e3565b3480156100bd57600080fd5b5061006f6100cc3660046126ee565b610d2e565b6001546001600160a01b031633146101045760405162461bcd60e51b81526004016100fb9061274a565b60405180910390fd5b61010d85611353565b6001600160a01b038416156102095761012885858584611857565b60005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d9261015f9287929091169060040161276e565b602060405180830381600087803b15801561017957600080fd5b505af115801561018d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b1919061279d565b6102095760405162461bcd60e51b8152602060048201526024808201527f756e7265676973746572696e67206f6c642046756e644d616e616765722066616044820152631a5b195960e21b60648201526084016100fb565b5050505050565b6001546001600160a01b0316331461023a5760405162461bcd60e51b81526004016100fb9061274a565b6001600160a01b0383161561032a5760005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d926102809288929091169060040161276e565b602060405180830381600087803b15801561029a57600080fd5b505af11580156102ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d2919061279d565b61032a5760405162461bcd60e51b8152602060048201526024808201527f756e7265676973746572696e6720736368656d655265676973747261722066616044820152631a5b195960e21b60648201526084016100fb565b6001600160a01b038216156104195760005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d926103709287929091169060040161276e565b602060405180830381600087803b15801561038a57600080fd5b505af115801561039e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c2919061279d565b6104195760405162461bcd60e51b815260206004820152602260248201527f756e7265676973746572696e672075706772616465536368656d65206661696c604482015261195960f21b60648201526084016100fb565b6000805460025460405163e869d45f60e01b81526001600160a01b039283169363e869d45f93610457938793601f60e01b92909116906004016127bf565b602060405180830381600087803b15801561047157600080fd5b505af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061279d565b6105065760405162461bcd60e51b815260206004820152602860248201527f7265676973746572696e6720636f6d706f756e64566f74696e674d616368696e604482015267194819985a5b195960c21b60648201526084016100fb565b6000805460015460025460405163e869d45f60e01b81526001600160a01b039384169463e869d45f9461054a948116939192601f60e01b92909116906004016127bf565b602060405180830381600087803b15801561056457600080fd5b505af1158015610578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059c919061279d565b6105f75760405162461bcd60e51b815260206004820152602660248201527f7265676973746572696e6720676f7665726e616e6365206661696c736166652060448201526519985a5b195960d21b60648201526084016100fb565b600054600254604051636c525b1360e01b81526001600160a01b0392831692636c525b139261062b929116906004016127f4565b602060405180830381600087803b15801561064557600080fd5b505af1158015610659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067d919061279d565b6106d55760405162461bcd60e51b8152602060048201526024808201527f756e7265676973746572696e672070726f746f636f6c757067726164652066616044820152631a5b195960e21b60648201526084016100fb565b6001546001600160a01b0316ff5b6001546001600160a01b0316331461070d5760405162461bcd60e51b81526004016100fb9061274a565b86851461074e5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016100fb565b8281146107975760405162461bcd60e51b81526020600482015260176024820152760e6e8c2d6d2dcce40d8cadccee8d040dad2e6dac2e8c6d604b1b60448201526064016100fb565b6108058989898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808d0282810182019093528c82529093508c92508b91829185019084908082843760009201919091525061207092505050565b61087389858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040805160208089028281018201909352888252909350889250879182918501908490808284376000920191909152506121b192505050565b60005460405163bf40fac160e01b81526020600482015260086024820152674944454e5449545960c01b60448201526001600160a01b039182169163e869d45f91908c169063bf40fac19060640160206040518083038186803b1580156108d957600080fd5b505afa1580156108ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109119190612808565b6002546040516001600160e01b031960e085901b1681526109489291600091600160e01b916001600160a01b0316906004016127bf565b602060405180830381600087803b15801561096257600080fd5b505af1158015610976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099a919061279d565b6109e45760405162461bcd60e51b815260206004820152601b60248201527a1c9959da5cdd195c9a5b99c81259195b9d1a5d1e4819985a5b1959602a1b60448201526064016100fb565b60405163bf40fac160e01b81526000906001600160a01b038b169063bf40fac190610a1190600401612825565b60206040518083038186803b158015610a2957600080fd5b505afa158015610a3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a619190612808565b6001600160a01b0316634b75f54f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9957600080fd5b505afa158015610aad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad19190612808565b600054600254604051639be2faed60e01b81529293506001600160a01b0391821692639be2faed92610b0a92869291169060040161276e565b60206040518083038186803b158015610b2257600080fd5b505afa158015610b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5a919061279d565b15610d225760005460405163bf40fac160e01b81526001600160a01b039182169163039de01d91908d169063bf40fac190610b9790600401612825565b60206040518083038186803b158015610baf57600080fd5b505afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190612808565b6001600160a01b0316634b75f54f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1f57600080fd5b505afa158015610c33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c579190612808565b6002546040516001600160e01b031960e085901b168152610c8592916001600160a01b03169060040161276e565b602060405180830381600087803b158015610c9f57600080fd5b505af1158015610cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd7919061279d565b610d225760405162461bcd60e51b815260206004820152601c60248201527b1d5b9c9959da5cdd195c9a5b99c8199bdc9b5d5b184819985a5b195960221b60448201526064016100fb565b50505050505050505050565b6001546001600160a01b03163314610d585760405162461bcd60e51b81526004016100fb9061274a565b600080546040805160048082526024820183526020820180516001600160e01b0316633bef870760e21b17905260025492516368db844d60e11b81526060946001600160a01b039081169463d1b7089a94610dbe948c9491939290921691899101612875565b600060405180830381600087803b158015610dd857600080fd5b505af1158015610dec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e1491908101906128dc565b909250905081610e745760405162461bcd60e51b815260206004820152602560248201527f43616c6c696e67206f6c64446f6e6174696f6e5374616b696e6720656e642066604482015264185a5b195960da1b60648201526084016100fb565b60008082806020019051810190610e8b919061299c565b60005460405163bf40fac160e01b815260206004820152600360248201526244414960e81b60448201529294509092506001600160a01b039081169163b9a04cdd918b169063bf40fac19060640160206040518083038186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f299190612808565b6002546040516001600160e01b031960e085901b168152610f5b92918b9188916001600160a01b0316906004016129c0565b602060405180830381600087803b158015610f7557600080fd5b505af1158015610f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fad919061279d565b93508361100d5760405162461bcd60e51b815260206004820152602860248201527f43616c6c696e67204441492065787465726e616c546f6b656e5472616e7366656044820152671c8819985a5b195960c21b60648201526084016100fb565b80156110f6576000546002546040516331a4b2ed60e11b8152600481018490523060248201526001600160a01b03918216604482015291169063634965da90606401602060405180830381600087803b15801561106957600080fd5b505af115801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a1919061279d565b9350836110ec5760405162461bcd60e51b815260206004820152601960248201527810d85b1b1a5b99c8081cd95b99115d1a195c8819985a5b1959603a1b60448201526064016100fb565b6110f686826123dc565b856001600160a01b031663b678ce7b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113157600080fd5b505af1158015611145573d6000803e3d6000fd5b5050600080546040805160048082526024820183526020820180516001600160e01b0316633bef870760e21b17905260025492516368db844d60e11b81526001600160a01b03948516975063d1b7089a96506111aa958d959394909316929101612875565b600060405180830381600087803b1580156111c457600080fd5b505af11580156111d8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261120091908101906128dc565b9094509250836112625760405162461bcd60e51b815260206004820152602760248201527f43616c6c696e67206f6c642053696d706c654441495374616b696e6720656e646044820152660819985a5b195960ca1b60648201526084016100fb565b60005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d92611299928a929091169060040161276e565b602060405180830381600087803b1580156112b357600080fd5b505af11580156112c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112eb919061279d565b6113495760405162461bcd60e51b815260206004820152602960248201527f756e7265676973746572696e67206f6c642053696d706c654441495374616b696044820152681b99c819985a5b195960ba1b60648201526084016100fb565b5050505050505050565b6000805460405163bf40fac160e01b81526001600160a01b039182169163d1b7089a919085169063bf40fac19061138c90600401612825565b60206040518083038186803b1580156113a457600080fd5b505afa1580156113b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113dc9190612808565b60405163bf40fac160e01b81526001600160a01b0386169063bf40fac190611406906004016129eb565b60206040518083038186803b15801561141e57600080fd5b505afa158015611432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114569190612808565b60405160240161146691906127f4565b60408051601f198184030181529181526020820180516001600160e01b0316634c1d96ab60e11b179052600254905160e085901b6001600160e01b03191681526114c19392916001600160a01b031690600090600401612875565b600060405180830381600087803b1580156114db57600080fd5b505af11580156114ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261151791908101906128dc565b509050806115625760405162461bcd60e51b815260206004820152601860248201527710d85b1b1a5b99c8185919135a5b9d195c8819985a5b195960421b60448201526064016100fb565b60005460405163bf40fac160e01b81526001600160a01b039182169163d1b7089a919085169063bf40fac19061159a90600401612825565b60206040518083038186803b1580156115b257600080fd5b505afa1580156115c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ea9190612808565b6040805160048082526024820183526020820180516001600160e01b0316639865027560e01b179052600254925160e086901b6001600160e01b031916815261164194936001600160a01b03169160009101612875565b600060405180830381600087803b15801561165b57600080fd5b505af115801561166f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261169791908101906128dc565b509050806116e75760405162461bcd60e51b815260206004820152601d60248201527f43616c6c696e672072656e6f756e63654d696e746572206661696c656400000060448201526064016100fb565b60005460405163bf40fac160e01b81526001600160a01b039182169163e4537a74919085169063bf40fac19061171f906004016129eb565b60206040518083038186803b15801561173757600080fd5b505afa15801561174b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176f9190612808565b60025460405160e084901b6001600160e01b03191681526001600160a01b0392831660048201526000602482015291166044820152606401602060405180830381600087803b1580156117c157600080fd5b505af11580156117d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f9919061279d565b9050806118535760405162461bcd60e51b815260206004820152602260248201527f43616c6c696e6720616464476c6f62616c436f6e73747261696e74206661696c604482015261195960f21b60648201526084016100fb565b5050565b60006001600160a01b0382161561199d576000546040516001600160a01b039091169063d1b7089a9086906118909086906024016127f4565b60408051601f198184030181529181526020820180516001600160e01b0316630336197b60e21b179052600254905160e085901b6001600160e01b03191681526118eb9392916001600160a01b031690600090600401612875565b600060405180830381600087803b15801561190557600080fd5b505af1158015611919573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261194191908101906128dc565b5090508061199d5760405162461bcd60e51b815260206004820152602360248201527f63616c6c696e67205265736572766520636f6d70207265636f766572206661696044820152621b195960ea1b60648201526084016100fb565b60405163bf40fac160e01b81526000906001600160a01b0387169063bf40fac1906119e3906004016020808252600490820152634344414960e01b604082015260600190565b60206040518083038186803b1580156119fb57600080fd5b505afa158015611a0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a339190612808565b90506000816001600160a01b03166370a08231876040518263ffffffff1660e01b8152600401611a6391906127f4565b60206040518083038186803b158015611a7b57600080fd5b505afa158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab39190612a0c565b600080546040805160048082526024820183526020820180516001600160e01b0316633bef870760e21b17905260025492516368db844d60e11b81529596506001600160a01b039384169563d1b7089a95611b14958e951692909101612875565b600060405180830381600087803b158015611b2e57600080fd5b505af1158015611b42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b6a91908101906128dc565b50925082611bb75760405162461bcd60e51b815260206004820152601a60248201527918d85b1b1a5b99c814995cd95c9d9948195b990819985a5b195960321b60448201526064016100fb565b60405163835bbd5560e01b81526000906001600160a01b0387169063835bbd5590611be69086906004016127f4565b60606040518083038186803b158015611bfe57600080fd5b505afa158015611c12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c369190612a25565b60005460405163bf40fac160e01b81529192506001600160a01b039081169163b9a04cdd918691908c169063bf40fac190611c73906004016129eb565b60206040518083038186803b158015611c8b57600080fd5b505afa158015611c9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc39190612808565b6002546040516001600160e01b031960e086901b168152611cf693929188916001600160a01b03909116906004016129c0565b602060405180830381600087803b158015611d1057600080fd5b505af1158015611d24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d48919061279d565b935083611da35760405162461bcd60e51b815260206004820152602360248201527f7472616e73666572206364616920746f206e65772072657365727665206661696044820152621b195960ea1b60648201526084016100fb565b60005460405163bf40fac160e01b815260206004820152600c60248201526b26a0a925a2aa2fa6a0a5a2a960a11b60448201526001600160a01b039182169163d1b7089a91908b169063bf40fac19060640160206040518083038186803b158015611e0d57600080fd5b505afa158015611e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e459190612808565b6040848101518551602087015192516001600160a01b038a1660248201526044810192909252606482015263ffffffff9091166084820152600060a482015260c40160408051601f198184030181529181526020820180516001600160e01b0316638ee090fb60e01b179052600254905160e085901b6001600160e01b0319168152611ee29392916001600160a01b031690600090600401612875565b600060405180830381600087803b158015611efc57600080fd5b505af1158015611f10573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f3891908101906128dc565b50935083611f9b5760405162461bcd60e51b815260206004820152602a60248201527f63616c6c696e67206d61726b65744d616b657220696e697469616c697a65546f6044820152691ad95b8819985a5b195960b21b60648201526084016100fb565b60005460025460405163039de01d60e01b81526001600160a01b039283169263039de01d92611fd2928c929091169060040161276e565b602060405180830381600087803b158015611fec57600080fd5b505af1158015612000573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612024919061279d565b6113495760405162461bcd60e51b815260206004820181905260248201527f756e7265676973746572696e67206f6c642072657365727665206661696c656460448201526064016100fb565b600080546040516001600160a01b039091169063d1b7089a90869061209b9087908790602401612a8f565b60408051601f198184030181529181526020820180516001600160e01b0316634ab01f5b60e01b179052600254905160e085901b6001600160e01b03191681526120f69392916001600160a01b031690600090600401612875565b600060405180830381600087803b15801561211057600080fd5b505af1158015612124573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261214c91908101906128dc565b509050806121ab5760405162461bcd60e51b815260206004820152602660248201527f43616c6c696e67207365744e616d6553657276696365436f6e7472616374732060448201526519985a5b195960d21b60648201526084016100fb565b50505050565b60005b82518110156121ab576000805460405163bf40fac160e01b815260206004820152600c60248201526b232aa7222fa6a0a720a3a2a960a11b60448201526001600160a01b039182169163d1b7089a919088169063bf40fac19060640160206040518083038186803b15801561222857600080fd5b505afa15801561223c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122609190612808565b85858151811061227257612272612b13565b602002602001015187868151811061228c5761228c612b13565b602090810291909101015160405160248101929092526001600160a01b031660448201526000606482018190526084820181905260a482015260c40160408051601f198184030181529181526020820180516001600160e01b0316631f1ad8ed60e21b179052600254905160e085901b6001600160e01b03191681526123239392916001600160a01b031690600090600401612875565b600060405180830381600087803b15801561233d57600080fd5b505af1158015612351573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261237991908101906128dc565b509050806123c95760405162461bcd60e51b815260206004820181905260248201527f43616c6c696e67207365745374616b696e6752657761726473206661696c656460448201526064016100fb565b50806123d481612b29565b9150506121b4565b8047101561242c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016100fb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612479576040519150601f19603f3d011682016040523d82523d6000602084013e61247e565b606091505b50509050806124f25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b60648201526084016100fb565b505050565b6001600160a01b038116811461250c57600080fd5b50565b600080600080600060a0868803121561252757600080fd5b8535612532816124f7565b94506020860135612542816124f7565b93506040860135612552816124f7565b92506060860135612562816124f7565b91506080860135612572816124f7565b809150509295509295909350565b60008060006060848603121561259557600080fd5b83356125a0816124f7565b925060208401356125b0816124f7565b915060408401356125c0816124f7565b809150509250925092565b60008083601f8401126125dd57600080fd5b5081356001600160401b038111156125f457600080fd5b6020830191508360208260051b850101111561260f57600080fd5b9250929050565b600080600080600080600080600060a08a8c03121561263457600080fd5b893561263f816124f7565b985060208a01356001600160401b038082111561265b57600080fd5b6126678d838e016125cb565b909a50985060408c013591508082111561268057600080fd5b61268c8d838e016125cb565b909850965060608c01359150808211156126a557600080fd5b6126b18d838e016125cb565b909650945060808c01359150808211156126ca57600080fd5b506126d78c828d016125cb565b915080935050809150509295985092959850929598565b6000806000806080858703121561270457600080fd5b843561270f816124f7565b9350602085013561271f816124f7565b9250604085013561272f816124f7565b9150606085013561273f816124f7565b939692955090935050565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b6001600160a01b0392831681529116602082015260400190565b8051801515811461279857600080fd5b919050565b6000602082840312156127af57600080fd5b6127b882612788565b9392505050565b6001600160a01b03948516815260208101939093526001600160e01b0319919091166040830152909116606082015260800190565b6001600160a01b0391909116815260200190565b60006020828403121561281a57600080fd5b81516127b8816124f7565b6020808252600a908201526923a7a7a22227a62620a960b11b604082015260600190565b60005b8381101561286457818101518382015260200161284c565b838111156121ab5750506000910152565b600060018060a01b0380871683526080602084015285518060808501526128a38160a0860160208a01612849565b9416604083015250606081019190915260a0601f909201601f1916010192915050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156128ef57600080fd5b6128f883612788565b60208401519092506001600160401b038082111561291557600080fd5b818501915085601f83011261292957600080fd5b81518181111561293b5761293b6128c6565b604051601f8201601f19908116603f01168101908382118183101715612963576129636128c6565b8160405282815288602084870101111561297c57600080fd5b61298d836020830160208801612849565b80955050505050509250929050565b600080604083850312156129af57600080fd5b505080516020909101519092909150565b6001600160a01b03948516815292841660208401526040830191909152909116606082015260800190565b6020808252600790820152665245534552564560c81b604082015260600190565b600060208284031215612a1e57600080fd5b5051919050565b600060608284031215612a3757600080fd5b604051606081016001600160401b0381118282101715612a5957612a596128c6565b60405282518152602083015163ffffffff81168114612a7757600080fd5b60208201526040928301519281019290925250919050565b604080825283519082018190526000906020906060840190828701845b82811015612ac857815184529284019290840190600101612aac565b5050508381038285015284518082528583019183019060005b81811015612b065783516001600160a01b031683529284019291840191600101612ae1565b5090979650505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612b4b57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220e368d18af42caa99705c3c7cb4de904bcfcd62ec9678ccab1ec35226d939763364736f6c63430008080033";
|
|
154
|
+
|
|
155
|
+
type ProtocolUpgradeConstructorParams =
|
|
156
|
+
| [signer?: Signer]
|
|
157
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
158
|
+
|
|
159
|
+
const isSuperArgs = (
|
|
160
|
+
xs: ProtocolUpgradeConstructorParams
|
|
161
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
162
|
+
|
|
163
|
+
export class ProtocolUpgrade__factory extends ContractFactory {
|
|
164
|
+
constructor(...args: ProtocolUpgradeConstructorParams) {
|
|
165
|
+
if (isSuperArgs(args)) {
|
|
166
|
+
super(...args);
|
|
167
|
+
} else {
|
|
168
|
+
super(_abi, _bytecode, args[0]);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
deploy(
|
|
173
|
+
_controller: string,
|
|
174
|
+
_owner: string,
|
|
175
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
176
|
+
): Promise<ProtocolUpgrade> {
|
|
177
|
+
return super.deploy(
|
|
178
|
+
_controller,
|
|
179
|
+
_owner,
|
|
180
|
+
overrides || {}
|
|
181
|
+
) as Promise<ProtocolUpgrade>;
|
|
182
|
+
}
|
|
183
|
+
getDeployTransaction(
|
|
184
|
+
_controller: string,
|
|
185
|
+
_owner: string,
|
|
186
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
187
|
+
): TransactionRequest {
|
|
188
|
+
return super.getDeployTransaction(_controller, _owner, overrides || {});
|
|
189
|
+
}
|
|
190
|
+
attach(address: string): ProtocolUpgrade {
|
|
191
|
+
return super.attach(address) as ProtocolUpgrade;
|
|
192
|
+
}
|
|
193
|
+
connect(signer: Signer): ProtocolUpgrade__factory {
|
|
194
|
+
return super.connect(signer) as ProtocolUpgrade__factory;
|
|
195
|
+
}
|
|
196
|
+
static readonly bytecode = _bytecode;
|
|
197
|
+
static readonly abi = _abi;
|
|
198
|
+
static createInterface(): ProtocolUpgradeInterface {
|
|
199
|
+
return new utils.Interface(_abi) as ProtocolUpgradeInterface;
|
|
200
|
+
}
|
|
201
|
+
static connect(
|
|
202
|
+
address: string,
|
|
203
|
+
signerOrProvider: Signer | Provider
|
|
204
|
+
): ProtocolUpgrade {
|
|
205
|
+
return new Contract(address, _abi, signerOrProvider) as ProtocolUpgrade;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { ProxyAdmin, ProxyAdminInterface } from "../ProxyAdmin";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "proxy",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
name: "getProxyAdmin",
|
|
19
|
+
outputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "view",
|
|
27
|
+
type: "function",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "proxy",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
name: "getProxyImplementation",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
stateMutability: "view",
|
|
46
|
+
type: "function",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [],
|
|
50
|
+
name: "owner",
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: "address",
|
|
54
|
+
name: "",
|
|
55
|
+
type: "address",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "view",
|
|
59
|
+
type: "function",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "newOwner",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: "transferOwnership",
|
|
70
|
+
outputs: [],
|
|
71
|
+
stateMutability: "nonpayable",
|
|
72
|
+
type: "function",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "address",
|
|
78
|
+
name: "proxy",
|
|
79
|
+
type: "address",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: "address",
|
|
83
|
+
name: "implementation",
|
|
84
|
+
type: "address",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "upgrade",
|
|
88
|
+
outputs: [],
|
|
89
|
+
stateMutability: "nonpayable",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
|
|
94
|
+
export class ProxyAdmin__factory {
|
|
95
|
+
static readonly abi = _abi;
|
|
96
|
+
static createInterface(): ProxyAdminInterface {
|
|
97
|
+
return new utils.Interface(_abi) as ProxyAdminInterface;
|
|
98
|
+
}
|
|
99
|
+
static connect(
|
|
100
|
+
address: string,
|
|
101
|
+
signerOrProvider: Signer | Provider
|
|
102
|
+
): ProxyAdmin {
|
|
103
|
+
return new Contract(address, _abi, signerOrProvider) as ProxyAdmin;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
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
|
+
ProxyFactory1967,
|
|
9
|
+
ProxyFactory1967Interface,
|
|
10
|
+
} from "../ProxyFactory1967";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
stateMutability: "nonpayable",
|
|
16
|
+
type: "constructor",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
anonymous: false,
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
indexed: false,
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "addr",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "ContractCreated",
|
|
29
|
+
type: "event",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
anonymous: false,
|
|
33
|
+
inputs: [
|
|
34
|
+
{
|
|
35
|
+
indexed: false,
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "proxy",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "ProxyCreated",
|
|
42
|
+
type: "event",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint256",
|
|
48
|
+
name: "_salt",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "bytes",
|
|
53
|
+
name: "_bytecode",
|
|
54
|
+
type: "bytes",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "deployCode",
|
|
58
|
+
outputs: [
|
|
59
|
+
{
|
|
60
|
+
internalType: "address",
|
|
61
|
+
name: "",
|
|
62
|
+
type: "address",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
stateMutability: "nonpayable",
|
|
66
|
+
type: "function",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
inputs: [
|
|
70
|
+
{
|
|
71
|
+
internalType: "address",
|
|
72
|
+
name: "_logic",
|
|
73
|
+
type: "address",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "bytes",
|
|
77
|
+
name: "_data",
|
|
78
|
+
type: "bytes",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
name: "deployMinimal",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "proxy",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "nonpayable",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [
|
|
94
|
+
{
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "_salt",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
internalType: "address",
|
|
101
|
+
name: "_logic",
|
|
102
|
+
type: "address",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
internalType: "bytes",
|
|
106
|
+
name: "_data",
|
|
107
|
+
type: "bytes",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
name: "deployProxy",
|
|
111
|
+
outputs: [
|
|
112
|
+
{
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
stateMutability: "nonpayable",
|
|
119
|
+
type: "function",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
inputs: [
|
|
123
|
+
{
|
|
124
|
+
internalType: "uint256",
|
|
125
|
+
name: "_salt",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "_sender",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
internalType: "bytes32",
|
|
135
|
+
name: "_contractCodeHash",
|
|
136
|
+
type: "bytes32",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
name: "getDeploymentAddress",
|
|
140
|
+
outputs: [
|
|
141
|
+
{
|
|
142
|
+
internalType: "address",
|
|
143
|
+
name: "",
|
|
144
|
+
type: "address",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
stateMutability: "view",
|
|
148
|
+
type: "function",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
inputs: [
|
|
152
|
+
{
|
|
153
|
+
internalType: "uint256",
|
|
154
|
+
name: "_salt",
|
|
155
|
+
type: "uint256",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
internalType: "address",
|
|
159
|
+
name: "_sender",
|
|
160
|
+
type: "address",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
name: "getDeploymentAddress",
|
|
164
|
+
outputs: [
|
|
165
|
+
{
|
|
166
|
+
internalType: "address",
|
|
167
|
+
name: "",
|
|
168
|
+
type: "address",
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
stateMutability: "view",
|
|
172
|
+
type: "function",
|
|
173
|
+
},
|
|
174
|
+
];
|
|
175
|
+
|
|
176
|
+
const _bytecode =
|
|
177
|
+
"0x608060405234801561001057600080fd5b5060405161002060208201610044565b601f1982820381018352601f90910116604052805160209190910120600055610051565b6105c380610d8c83390190565b610d2c806100606000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630bf61a011461005c5780631b903b841461008557806340ad200d1461009857806381ae1f5b146100ab578063b3eeb5e2146100be575b600080fd5b61006f61006a366004610512565b6100d1565b60405161007c9190610568565b60405180910390f35b61006f61009336600461057c565b6100e7565b61006f6100a63660046105f7565b61016c565b61006f6100b936600461062c565b6101df565b61006f6100cc366004610658565b6101f5565b60006100df848484336102f2565b949350505050565b60008061012b853386868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103cd92505050565b90507fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca3128160405161015c9190610568565b60405180910390a1949350505050565b60008061017985856103fe565b6040516001600160f81b031960208201526001600160601b03193060601b166021820152603581018290526055810185905290915060009060750160408051808303601f1901815291905280516020909101206001600160a01b03169695505050505050565b60006101ee838360005461016c565b9392505050565b6000808360601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09250507efffc2da0b561cae30d9826d37709e9421c4725faebc226cbbb7ef5fc5e7349826040516102709190610568565b60405180910390a18251156102eb576000826001600160a01b03168460405161029991906106d5565b6000604051808303816000865af19150503d80600081146102d6576040519150601f19603f3d011682016040523d82523d6000602084013e6102db565b606091505b50509050806102e957600080fd5b505b5092915050565b6000806040518060200161030590610447565b601f1982820381018352601f90910116604052905060006103278785846103cd565b60405163347d5e2560e21b815290915081906001600160a01b0382169063d1f578949061035a908a908a906004016106f1565b600060405180830381600087803b15801561037457600080fd5b505af1158015610388573d6000803e3d6000fd5b505050507efffc2da0b561cae30d9826d37709e9421c4725faebc226cbbb7ef5fc5e7349816040516103ba9190610568565b60405180910390a1979650505050505050565b60008060006103dc86866103fe565b9050808451602086016000f59150813b6103f557600080fd5b50949350505050565b6000828260405160200161042992919091825260601b6001600160601b031916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b6105c38061073483390190565b80356001600160a01b038116811461046b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261049757600080fd5b81356001600160401b03808211156104b1576104b1610470565b604051601f8301601f19908116603f011681019082821181831017156104d9576104d9610470565b816040528381528660208588010111156104f257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561052757600080fd5b8335925061053760208501610454565b915060408401356001600160401b0381111561055257600080fd5b61055e86828701610486565b9150509250925092565b6001600160a01b0391909116815260200190565b60008060006040848603121561059157600080fd5b8335925060208401356001600160401b03808211156105af57600080fd5b818601915086601f8301126105c357600080fd5b8135818111156105d257600080fd5b8760208285010111156105e457600080fd5b6020830194508093505050509250925092565b60008060006060848603121561060c57600080fd5b8335925061061c60208501610454565b9150604084013590509250925092565b6000806040838503121561063f57600080fd5b8235915061064f60208401610454565b90509250929050565b6000806040838503121561066b57600080fd5b61067483610454565b915060208301356001600160401b0381111561068f57600080fd5b61069b85828601610486565b9150509250929050565b60005b838110156106c05781810151838201526020016106a8565b838111156106cf576000848401525b50505050565b600082516106e78184602087016106a5565b9190910192915050565b60018060a01b0383168152604060208201526000825180604084015261071e8160608501602087016106a5565b601f01601f191691909101606001939250505056fe608060405234801561001057600080fd5b506105a3806100206000396000f3fe6080604052600436106100225760003560e01c8063d1f578941461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f6100473660046103e0565b61005e565b61005c61005761013d565b61014c565b565b6000610068610170565b6001600160a01b0316146100b15760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064015b60405180910390fd5b6100dc60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610470565b600080516020610527833981519152146100f8576100f8610495565b6101388383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925061018c915050565b505050565b6000610147610170565b905090565b3660008037600080366000845af43d6000803e80801561016b573d6000f35b3d6000fd5b600080516020610527833981519152546001600160a01b031690565b610195836101b7565b6000825111806101a25750805b15610138576101b183836101f7565b50505050565b6101c081610223565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061021c8383604051806060016040528060278152602001610547602791396102bd565b9392505050565b61022c81610398565b61028e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016100a8565b60008051602061052783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60606102c884610398565b6103235760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016100a8565b600080856001600160a01b03168560405161033e91906104d7565b600060405180830381855af49150503d8060008114610379576040519150601f19603f3d011682016040523d82523d6000602084013e61037e565b606091505b509150915061038e8282866103a7565b9695505050505050565b6001600160a01b03163b151590565b606083156103b657508161021c565b8251156103c65782518084602001fd5b8160405162461bcd60e51b81526004016100a891906104f3565b6000806000604084860312156103f557600080fd5b83356001600160a01b038116811461040c57600080fd5b925060208401356001600160401b038082111561042857600080fd5b818601915086601f83011261043c57600080fd5b81358181111561044b57600080fd5b87602082850101111561045d57600080fd5b6020830194508093505050509250925092565b60008282101561049057634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b60005b838110156104c65781810151838201526020016104ae565b838111156101b15750506000910152565b600082516104e98184602087016104ab565b9190910192915050565b60208152600082518060208401526105128160408501602087016104ab565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220859dac0560f70effb099541786da94ecb702f189a8b02ff16bfd17936e03c51a64736f6c63430008080033a264697066735822122003ecc01549cdfba7e6f15aec9431b3cc40978f4e0546cb6b37c0418c0cbb8cd964736f6c63430008080033608060405234801561001057600080fd5b506105a3806100206000396000f3fe6080604052600436106100225760003560e01c8063d1f578941461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f6100473660046103e0565b61005e565b61005c61005761013d565b61014c565b565b6000610068610170565b6001600160a01b0316146100b15760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064015b60405180910390fd5b6100dc60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610470565b600080516020610527833981519152146100f8576100f8610495565b6101388383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925061018c915050565b505050565b6000610147610170565b905090565b3660008037600080366000845af43d6000803e80801561016b573d6000f35b3d6000fd5b600080516020610527833981519152546001600160a01b031690565b610195836101b7565b6000825111806101a25750805b15610138576101b183836101f7565b50505050565b6101c081610223565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061021c8383604051806060016040528060278152602001610547602791396102bd565b9392505050565b61022c81610398565b61028e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016100a8565b60008051602061052783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60606102c884610398565b6103235760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016100a8565b600080856001600160a01b03168560405161033e91906104d7565b600060405180830381855af49150503d8060008114610379576040519150601f19603f3d011682016040523d82523d6000602084013e61037e565b606091505b509150915061038e8282866103a7565b9695505050505050565b6001600160a01b03163b151590565b606083156103b657508161021c565b8251156103c65782518084602001fd5b8160405162461bcd60e51b81526004016100a891906104f3565b6000806000604084860312156103f557600080fd5b83356001600160a01b038116811461040c57600080fd5b925060208401356001600160401b038082111561042857600080fd5b818601915086601f83011261043c57600080fd5b81358181111561044b57600080fd5b87602082850101111561045d57600080fd5b6020830194508093505050509250925092565b60008282101561049057634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b60005b838110156104c65781810151838201526020016104ae565b838111156101b15750506000910152565b600082516104e98184602087016104ab565b9190910192915050565b60208152600082518060208401526105128160408501602087016104ab565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220859dac0560f70effb099541786da94ecb702f189a8b02ff16bfd17936e03c51a64736f6c63430008080033";
|
|
178
|
+
|
|
179
|
+
type ProxyFactory1967ConstructorParams =
|
|
180
|
+
| [signer?: Signer]
|
|
181
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
182
|
+
|
|
183
|
+
const isSuperArgs = (
|
|
184
|
+
xs: ProxyFactory1967ConstructorParams
|
|
185
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
186
|
+
|
|
187
|
+
export class ProxyFactory1967__factory extends ContractFactory {
|
|
188
|
+
constructor(...args: ProxyFactory1967ConstructorParams) {
|
|
189
|
+
if (isSuperArgs(args)) {
|
|
190
|
+
super(...args);
|
|
191
|
+
} else {
|
|
192
|
+
super(_abi, _bytecode, args[0]);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
deploy(
|
|
197
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
198
|
+
): Promise<ProxyFactory1967> {
|
|
199
|
+
return super.deploy(overrides || {}) as Promise<ProxyFactory1967>;
|
|
200
|
+
}
|
|
201
|
+
getDeployTransaction(
|
|
202
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
203
|
+
): TransactionRequest {
|
|
204
|
+
return super.getDeployTransaction(overrides || {});
|
|
205
|
+
}
|
|
206
|
+
attach(address: string): ProxyFactory1967 {
|
|
207
|
+
return super.attach(address) as ProxyFactory1967;
|
|
208
|
+
}
|
|
209
|
+
connect(signer: Signer): ProxyFactory1967__factory {
|
|
210
|
+
return super.connect(signer) as ProxyFactory1967__factory;
|
|
211
|
+
}
|
|
212
|
+
static readonly bytecode = _bytecode;
|
|
213
|
+
static readonly abi = _abi;
|
|
214
|
+
static createInterface(): ProxyFactory1967Interface {
|
|
215
|
+
return new utils.Interface(_abi) as ProxyFactory1967Interface;
|
|
216
|
+
}
|
|
217
|
+
static connect(
|
|
218
|
+
address: string,
|
|
219
|
+
signerOrProvider: Signer | Provider
|
|
220
|
+
): ProxyFactory1967 {
|
|
221
|
+
return new Contract(address, _abi, signerOrProvider) as ProxyFactory1967;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Proxy, ProxyInterface } from "../Proxy";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
stateMutability: "payable",
|
|
12
|
+
type: "fallback",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
stateMutability: "payable",
|
|
16
|
+
type: "receive",
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export class Proxy__factory {
|
|
21
|
+
static readonly abi = _abi;
|
|
22
|
+
static createInterface(): ProxyInterface {
|
|
23
|
+
return new utils.Interface(_abi) as ProxyInterface;
|
|
24
|
+
}
|
|
25
|
+
static connect(address: string, signerOrProvider: Signer | Provider): Proxy {
|
|
26
|
+
return new Contract(address, _abi, signerOrProvider) as Proxy;
|
|
27
|
+
}
|
|
28
|
+
}
|