@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,1391 @@
|
|
|
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
|
+
GoodReserveCDai,
|
|
9
|
+
GoodReserveCDaiInterface,
|
|
10
|
+
} from "../GoodReserveCDai";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "owner",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
indexed: true,
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "spender",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
indexed: false,
|
|
49
|
+
internalType: "uint256",
|
|
50
|
+
name: "value",
|
|
51
|
+
type: "uint256",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
name: "Approval",
|
|
55
|
+
type: "event",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
anonymous: false,
|
|
59
|
+
inputs: [
|
|
60
|
+
{
|
|
61
|
+
indexed: true,
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "beacon",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "BeaconUpgraded",
|
|
68
|
+
type: "event",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
anonymous: false,
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
indexed: false,
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "account",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "Paused",
|
|
81
|
+
type: "event",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
anonymous: false,
|
|
85
|
+
inputs: [
|
|
86
|
+
{
|
|
87
|
+
indexed: true,
|
|
88
|
+
internalType: "bytes32",
|
|
89
|
+
name: "role",
|
|
90
|
+
type: "bytes32",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
indexed: true,
|
|
94
|
+
internalType: "bytes32",
|
|
95
|
+
name: "previousAdminRole",
|
|
96
|
+
type: "bytes32",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
indexed: true,
|
|
100
|
+
internalType: "bytes32",
|
|
101
|
+
name: "newAdminRole",
|
|
102
|
+
type: "bytes32",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
name: "RoleAdminChanged",
|
|
106
|
+
type: "event",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
anonymous: false,
|
|
110
|
+
inputs: [
|
|
111
|
+
{
|
|
112
|
+
indexed: true,
|
|
113
|
+
internalType: "bytes32",
|
|
114
|
+
name: "role",
|
|
115
|
+
type: "bytes32",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: true,
|
|
119
|
+
internalType: "address",
|
|
120
|
+
name: "account",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
indexed: true,
|
|
125
|
+
internalType: "address",
|
|
126
|
+
name: "sender",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "RoleGranted",
|
|
131
|
+
type: "event",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
anonymous: false,
|
|
135
|
+
inputs: [
|
|
136
|
+
{
|
|
137
|
+
indexed: true,
|
|
138
|
+
internalType: "bytes32",
|
|
139
|
+
name: "role",
|
|
140
|
+
type: "bytes32",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "account",
|
|
146
|
+
type: "address",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
indexed: true,
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "sender",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
name: "RoleRevoked",
|
|
156
|
+
type: "event",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
anonymous: false,
|
|
160
|
+
inputs: [
|
|
161
|
+
{
|
|
162
|
+
indexed: true,
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "caller",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
indexed: true,
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "inputToken",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
indexed: false,
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "inputAmount",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "actualReturn",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
indexed: true,
|
|
187
|
+
internalType: "address",
|
|
188
|
+
name: "receiverAddress",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
name: "TokenPurchased",
|
|
193
|
+
type: "event",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
anonymous: false,
|
|
197
|
+
inputs: [
|
|
198
|
+
{
|
|
199
|
+
indexed: true,
|
|
200
|
+
internalType: "address",
|
|
201
|
+
name: "caller",
|
|
202
|
+
type: "address",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
indexed: true,
|
|
206
|
+
internalType: "address",
|
|
207
|
+
name: "outputToken",
|
|
208
|
+
type: "address",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
indexed: false,
|
|
212
|
+
internalType: "uint256",
|
|
213
|
+
name: "gdAmount",
|
|
214
|
+
type: "uint256",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
indexed: false,
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "contributionAmount",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
indexed: false,
|
|
224
|
+
internalType: "uint256",
|
|
225
|
+
name: "actualReturn",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
indexed: true,
|
|
230
|
+
internalType: "address",
|
|
231
|
+
name: "receiverAddress",
|
|
232
|
+
type: "address",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
name: "TokenSold",
|
|
236
|
+
type: "event",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
anonymous: false,
|
|
240
|
+
inputs: [
|
|
241
|
+
{
|
|
242
|
+
indexed: true,
|
|
243
|
+
internalType: "address",
|
|
244
|
+
name: "from",
|
|
245
|
+
type: "address",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
indexed: true,
|
|
249
|
+
internalType: "address",
|
|
250
|
+
name: "to",
|
|
251
|
+
type: "address",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
indexed: false,
|
|
255
|
+
internalType: "uint256",
|
|
256
|
+
name: "value",
|
|
257
|
+
type: "uint256",
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
name: "Transfer",
|
|
261
|
+
type: "event",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
anonymous: false,
|
|
265
|
+
inputs: [
|
|
266
|
+
{
|
|
267
|
+
indexed: true,
|
|
268
|
+
internalType: "uint256",
|
|
269
|
+
name: "day",
|
|
270
|
+
type: "uint256",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
indexed: true,
|
|
274
|
+
internalType: "address",
|
|
275
|
+
name: "interestToken",
|
|
276
|
+
type: "address",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
indexed: false,
|
|
280
|
+
internalType: "uint256",
|
|
281
|
+
name: "interestReceived",
|
|
282
|
+
type: "uint256",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
indexed: false,
|
|
286
|
+
internalType: "uint256",
|
|
287
|
+
name: "gdInterestMinted",
|
|
288
|
+
type: "uint256",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
indexed: false,
|
|
292
|
+
internalType: "uint256",
|
|
293
|
+
name: "gdExpansionMinted",
|
|
294
|
+
type: "uint256",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
indexed: false,
|
|
298
|
+
internalType: "uint256",
|
|
299
|
+
name: "gdUbiTransferred",
|
|
300
|
+
type: "uint256",
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
name: "UBIMinted",
|
|
304
|
+
type: "event",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
anonymous: false,
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
indexed: false,
|
|
311
|
+
internalType: "address",
|
|
312
|
+
name: "account",
|
|
313
|
+
type: "address",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
name: "Unpaused",
|
|
317
|
+
type: "event",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
anonymous: false,
|
|
321
|
+
inputs: [
|
|
322
|
+
{
|
|
323
|
+
indexed: true,
|
|
324
|
+
internalType: "address",
|
|
325
|
+
name: "implementation",
|
|
326
|
+
type: "address",
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
name: "Upgraded",
|
|
330
|
+
type: "event",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
inputs: [],
|
|
334
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
335
|
+
outputs: [
|
|
336
|
+
{
|
|
337
|
+
internalType: "bytes32",
|
|
338
|
+
name: "",
|
|
339
|
+
type: "bytes32",
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
stateMutability: "view",
|
|
343
|
+
type: "function",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
inputs: [],
|
|
347
|
+
name: "MINTER_ROLE",
|
|
348
|
+
outputs: [
|
|
349
|
+
{
|
|
350
|
+
internalType: "bytes32",
|
|
351
|
+
name: "",
|
|
352
|
+
type: "bytes32",
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
stateMutability: "view",
|
|
356
|
+
type: "function",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
inputs: [],
|
|
360
|
+
name: "PAUSER_ROLE",
|
|
361
|
+
outputs: [
|
|
362
|
+
{
|
|
363
|
+
internalType: "bytes32",
|
|
364
|
+
name: "",
|
|
365
|
+
type: "bytes32",
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
stateMutability: "view",
|
|
369
|
+
type: "function",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
inputs: [],
|
|
373
|
+
name: "RESERVE_MINTER_ROLE",
|
|
374
|
+
outputs: [
|
|
375
|
+
{
|
|
376
|
+
internalType: "bytes32",
|
|
377
|
+
name: "",
|
|
378
|
+
type: "bytes32",
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
stateMutability: "view",
|
|
382
|
+
type: "function",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
inputs: [
|
|
386
|
+
{
|
|
387
|
+
internalType: "address",
|
|
388
|
+
name: "owner",
|
|
389
|
+
type: "address",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
internalType: "address",
|
|
393
|
+
name: "spender",
|
|
394
|
+
type: "address",
|
|
395
|
+
},
|
|
396
|
+
],
|
|
397
|
+
name: "allowance",
|
|
398
|
+
outputs: [
|
|
399
|
+
{
|
|
400
|
+
internalType: "uint256",
|
|
401
|
+
name: "",
|
|
402
|
+
type: "uint256",
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
stateMutability: "view",
|
|
406
|
+
type: "function",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
inputs: [
|
|
410
|
+
{
|
|
411
|
+
internalType: "address",
|
|
412
|
+
name: "spender",
|
|
413
|
+
type: "address",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "uint256",
|
|
417
|
+
name: "amount",
|
|
418
|
+
type: "uint256",
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
name: "approve",
|
|
422
|
+
outputs: [
|
|
423
|
+
{
|
|
424
|
+
internalType: "bool",
|
|
425
|
+
name: "",
|
|
426
|
+
type: "bool",
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
stateMutability: "nonpayable",
|
|
430
|
+
type: "function",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
inputs: [],
|
|
434
|
+
name: "avatar",
|
|
435
|
+
outputs: [
|
|
436
|
+
{
|
|
437
|
+
internalType: "address",
|
|
438
|
+
name: "",
|
|
439
|
+
type: "address",
|
|
440
|
+
},
|
|
441
|
+
],
|
|
442
|
+
stateMutability: "view",
|
|
443
|
+
type: "function",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
inputs: [
|
|
447
|
+
{
|
|
448
|
+
internalType: "address",
|
|
449
|
+
name: "account",
|
|
450
|
+
type: "address",
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
name: "balanceOf",
|
|
454
|
+
outputs: [
|
|
455
|
+
{
|
|
456
|
+
internalType: "uint256",
|
|
457
|
+
name: "",
|
|
458
|
+
type: "uint256",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
stateMutability: "view",
|
|
462
|
+
type: "function",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
inputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: "uint256",
|
|
468
|
+
name: "amount",
|
|
469
|
+
type: "uint256",
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
name: "burn",
|
|
473
|
+
outputs: [],
|
|
474
|
+
stateMutability: "nonpayable",
|
|
475
|
+
type: "function",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
inputs: [
|
|
479
|
+
{
|
|
480
|
+
internalType: "address",
|
|
481
|
+
name: "account",
|
|
482
|
+
type: "address",
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
internalType: "uint256",
|
|
486
|
+
name: "amount",
|
|
487
|
+
type: "uint256",
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
name: "burnFrom",
|
|
491
|
+
outputs: [],
|
|
492
|
+
stateMutability: "nonpayable",
|
|
493
|
+
type: "function",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
inputs: [
|
|
497
|
+
{
|
|
498
|
+
internalType: "uint256",
|
|
499
|
+
name: "_tokenAmount",
|
|
500
|
+
type: "uint256",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
internalType: "uint256",
|
|
504
|
+
name: "_minReturn",
|
|
505
|
+
type: "uint256",
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
internalType: "address",
|
|
509
|
+
name: "_targetAddress",
|
|
510
|
+
type: "address",
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
name: "buy",
|
|
514
|
+
outputs: [
|
|
515
|
+
{
|
|
516
|
+
internalType: "uint256",
|
|
517
|
+
name: "",
|
|
518
|
+
type: "uint256",
|
|
519
|
+
},
|
|
520
|
+
],
|
|
521
|
+
stateMutability: "nonpayable",
|
|
522
|
+
type: "function",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
inputs: [],
|
|
526
|
+
name: "cDaiAddress",
|
|
527
|
+
outputs: [
|
|
528
|
+
{
|
|
529
|
+
internalType: "address",
|
|
530
|
+
name: "",
|
|
531
|
+
type: "address",
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
stateMutability: "view",
|
|
535
|
+
type: "function",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
inputs: [],
|
|
539
|
+
name: "cap",
|
|
540
|
+
outputs: [
|
|
541
|
+
{
|
|
542
|
+
internalType: "uint256",
|
|
543
|
+
name: "",
|
|
544
|
+
type: "uint256",
|
|
545
|
+
},
|
|
546
|
+
],
|
|
547
|
+
stateMutability: "view",
|
|
548
|
+
type: "function",
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
inputs: [
|
|
552
|
+
{
|
|
553
|
+
internalType: "address",
|
|
554
|
+
name: "_user",
|
|
555
|
+
type: "address",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
internalType: "uint256",
|
|
559
|
+
name: "_gdx",
|
|
560
|
+
type: "uint256",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
internalType: "bytes32[]",
|
|
564
|
+
name: "_proof",
|
|
565
|
+
type: "bytes32[]",
|
|
566
|
+
},
|
|
567
|
+
],
|
|
568
|
+
name: "claimGDX",
|
|
569
|
+
outputs: [
|
|
570
|
+
{
|
|
571
|
+
internalType: "bool",
|
|
572
|
+
name: "",
|
|
573
|
+
type: "bool",
|
|
574
|
+
},
|
|
575
|
+
],
|
|
576
|
+
stateMutability: "nonpayable",
|
|
577
|
+
type: "function",
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
inputs: [],
|
|
581
|
+
name: "currentPrice",
|
|
582
|
+
outputs: [
|
|
583
|
+
{
|
|
584
|
+
internalType: "uint256",
|
|
585
|
+
name: "",
|
|
586
|
+
type: "uint256",
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
stateMutability: "view",
|
|
590
|
+
type: "function",
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
inputs: [],
|
|
594
|
+
name: "currentPriceDAI",
|
|
595
|
+
outputs: [
|
|
596
|
+
{
|
|
597
|
+
internalType: "uint256",
|
|
598
|
+
name: "",
|
|
599
|
+
type: "uint256",
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
stateMutability: "view",
|
|
603
|
+
type: "function",
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
inputs: [],
|
|
607
|
+
name: "daiAddress",
|
|
608
|
+
outputs: [
|
|
609
|
+
{
|
|
610
|
+
internalType: "address",
|
|
611
|
+
name: "",
|
|
612
|
+
type: "address",
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
stateMutability: "view",
|
|
616
|
+
type: "function",
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
inputs: [],
|
|
620
|
+
name: "dao",
|
|
621
|
+
outputs: [
|
|
622
|
+
{
|
|
623
|
+
internalType: "contract Controller",
|
|
624
|
+
name: "",
|
|
625
|
+
type: "address",
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
stateMutability: "view",
|
|
629
|
+
type: "function",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
inputs: [],
|
|
633
|
+
name: "decimals",
|
|
634
|
+
outputs: [
|
|
635
|
+
{
|
|
636
|
+
internalType: "uint8",
|
|
637
|
+
name: "",
|
|
638
|
+
type: "uint8",
|
|
639
|
+
},
|
|
640
|
+
],
|
|
641
|
+
stateMutability: "pure",
|
|
642
|
+
type: "function",
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
inputs: [
|
|
646
|
+
{
|
|
647
|
+
internalType: "address",
|
|
648
|
+
name: "spender",
|
|
649
|
+
type: "address",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
internalType: "uint256",
|
|
653
|
+
name: "subtractedValue",
|
|
654
|
+
type: "uint256",
|
|
655
|
+
},
|
|
656
|
+
],
|
|
657
|
+
name: "decreaseAllowance",
|
|
658
|
+
outputs: [
|
|
659
|
+
{
|
|
660
|
+
internalType: "bool",
|
|
661
|
+
name: "",
|
|
662
|
+
type: "bool",
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
stateMutability: "nonpayable",
|
|
666
|
+
type: "function",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
inputs: [],
|
|
670
|
+
name: "end",
|
|
671
|
+
outputs: [],
|
|
672
|
+
stateMutability: "nonpayable",
|
|
673
|
+
type: "function",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
inputs: [],
|
|
677
|
+
name: "gdxAirdrop",
|
|
678
|
+
outputs: [
|
|
679
|
+
{
|
|
680
|
+
internalType: "bytes32",
|
|
681
|
+
name: "",
|
|
682
|
+
type: "bytes32",
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
stateMutability: "view",
|
|
686
|
+
type: "function",
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
inputs: [],
|
|
690
|
+
name: "getMarketMaker",
|
|
691
|
+
outputs: [
|
|
692
|
+
{
|
|
693
|
+
internalType: "contract GoodMarketMaker",
|
|
694
|
+
name: "",
|
|
695
|
+
type: "address",
|
|
696
|
+
},
|
|
697
|
+
],
|
|
698
|
+
stateMutability: "view",
|
|
699
|
+
type: "function",
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
inputs: [
|
|
703
|
+
{
|
|
704
|
+
internalType: "bytes32",
|
|
705
|
+
name: "role",
|
|
706
|
+
type: "bytes32",
|
|
707
|
+
},
|
|
708
|
+
],
|
|
709
|
+
name: "getRoleAdmin",
|
|
710
|
+
outputs: [
|
|
711
|
+
{
|
|
712
|
+
internalType: "bytes32",
|
|
713
|
+
name: "",
|
|
714
|
+
type: "bytes32",
|
|
715
|
+
},
|
|
716
|
+
],
|
|
717
|
+
stateMutability: "view",
|
|
718
|
+
type: "function",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
inputs: [
|
|
722
|
+
{
|
|
723
|
+
internalType: "bytes32",
|
|
724
|
+
name: "role",
|
|
725
|
+
type: "bytes32",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
internalType: "uint256",
|
|
729
|
+
name: "index",
|
|
730
|
+
type: "uint256",
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
name: "getRoleMember",
|
|
734
|
+
outputs: [
|
|
735
|
+
{
|
|
736
|
+
internalType: "address",
|
|
737
|
+
name: "",
|
|
738
|
+
type: "address",
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
stateMutability: "view",
|
|
742
|
+
type: "function",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
inputs: [
|
|
746
|
+
{
|
|
747
|
+
internalType: "bytes32",
|
|
748
|
+
name: "role",
|
|
749
|
+
type: "bytes32",
|
|
750
|
+
},
|
|
751
|
+
],
|
|
752
|
+
name: "getRoleMemberCount",
|
|
753
|
+
outputs: [
|
|
754
|
+
{
|
|
755
|
+
internalType: "uint256",
|
|
756
|
+
name: "",
|
|
757
|
+
type: "uint256",
|
|
758
|
+
},
|
|
759
|
+
],
|
|
760
|
+
stateMutability: "view",
|
|
761
|
+
type: "function",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
inputs: [
|
|
765
|
+
{
|
|
766
|
+
internalType: "bytes32",
|
|
767
|
+
name: "role",
|
|
768
|
+
type: "bytes32",
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
internalType: "address",
|
|
772
|
+
name: "account",
|
|
773
|
+
type: "address",
|
|
774
|
+
},
|
|
775
|
+
],
|
|
776
|
+
name: "grantRole",
|
|
777
|
+
outputs: [],
|
|
778
|
+
stateMutability: "nonpayable",
|
|
779
|
+
type: "function",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
inputs: [
|
|
783
|
+
{
|
|
784
|
+
internalType: "bytes32",
|
|
785
|
+
name: "role",
|
|
786
|
+
type: "bytes32",
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
internalType: "address",
|
|
790
|
+
name: "account",
|
|
791
|
+
type: "address",
|
|
792
|
+
},
|
|
793
|
+
],
|
|
794
|
+
name: "hasRole",
|
|
795
|
+
outputs: [
|
|
796
|
+
{
|
|
797
|
+
internalType: "bool",
|
|
798
|
+
name: "",
|
|
799
|
+
type: "bool",
|
|
800
|
+
},
|
|
801
|
+
],
|
|
802
|
+
stateMutability: "view",
|
|
803
|
+
type: "function",
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
inputs: [
|
|
807
|
+
{
|
|
808
|
+
internalType: "address",
|
|
809
|
+
name: "spender",
|
|
810
|
+
type: "address",
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
internalType: "uint256",
|
|
814
|
+
name: "addedValue",
|
|
815
|
+
type: "uint256",
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
name: "increaseAllowance",
|
|
819
|
+
outputs: [
|
|
820
|
+
{
|
|
821
|
+
internalType: "bool",
|
|
822
|
+
name: "",
|
|
823
|
+
type: "bool",
|
|
824
|
+
},
|
|
825
|
+
],
|
|
826
|
+
stateMutability: "nonpayable",
|
|
827
|
+
type: "function",
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
inputs: [
|
|
831
|
+
{
|
|
832
|
+
internalType: "string",
|
|
833
|
+
name: "name",
|
|
834
|
+
type: "string",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
internalType: "string",
|
|
838
|
+
name: "symbol",
|
|
839
|
+
type: "string",
|
|
840
|
+
},
|
|
841
|
+
],
|
|
842
|
+
name: "initialize",
|
|
843
|
+
outputs: [],
|
|
844
|
+
stateMutability: "nonpayable",
|
|
845
|
+
type: "function",
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
inputs: [
|
|
849
|
+
{
|
|
850
|
+
internalType: "contract INameService",
|
|
851
|
+
name: "_ns",
|
|
852
|
+
type: "address",
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
internalType: "bytes32",
|
|
856
|
+
name: "_gdxAirdrop",
|
|
857
|
+
type: "bytes32",
|
|
858
|
+
},
|
|
859
|
+
],
|
|
860
|
+
name: "initialize",
|
|
861
|
+
outputs: [],
|
|
862
|
+
stateMutability: "nonpayable",
|
|
863
|
+
type: "function",
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
inputs: [
|
|
867
|
+
{
|
|
868
|
+
internalType: "address",
|
|
869
|
+
name: "",
|
|
870
|
+
type: "address",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
name: "isClaimedGDX",
|
|
874
|
+
outputs: [
|
|
875
|
+
{
|
|
876
|
+
internalType: "bool",
|
|
877
|
+
name: "",
|
|
878
|
+
type: "bool",
|
|
879
|
+
},
|
|
880
|
+
],
|
|
881
|
+
stateMutability: "view",
|
|
882
|
+
type: "function",
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
inputs: [],
|
|
886
|
+
name: "lastMinted",
|
|
887
|
+
outputs: [
|
|
888
|
+
{
|
|
889
|
+
internalType: "uint256",
|
|
890
|
+
name: "",
|
|
891
|
+
type: "uint256",
|
|
892
|
+
},
|
|
893
|
+
],
|
|
894
|
+
stateMutability: "view",
|
|
895
|
+
type: "function",
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
inputs: [
|
|
899
|
+
{
|
|
900
|
+
internalType: "address",
|
|
901
|
+
name: "to",
|
|
902
|
+
type: "address",
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
internalType: "uint256",
|
|
906
|
+
name: "amount",
|
|
907
|
+
type: "uint256",
|
|
908
|
+
},
|
|
909
|
+
],
|
|
910
|
+
name: "mint",
|
|
911
|
+
outputs: [],
|
|
912
|
+
stateMutability: "nonpayable",
|
|
913
|
+
type: "function",
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
inputs: [
|
|
917
|
+
{
|
|
918
|
+
internalType: "address",
|
|
919
|
+
name: "_token",
|
|
920
|
+
type: "address",
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
internalType: "address",
|
|
924
|
+
name: "_to",
|
|
925
|
+
type: "address",
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
internalType: "uint256",
|
|
929
|
+
name: "_amount",
|
|
930
|
+
type: "uint256",
|
|
931
|
+
},
|
|
932
|
+
],
|
|
933
|
+
name: "mintRewardFromRR",
|
|
934
|
+
outputs: [],
|
|
935
|
+
stateMutability: "nonpayable",
|
|
936
|
+
type: "function",
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
inputs: [
|
|
940
|
+
{
|
|
941
|
+
internalType: "uint256",
|
|
942
|
+
name: "_daiToConvert",
|
|
943
|
+
type: "uint256",
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
internalType: "uint256",
|
|
947
|
+
name: "_startingCDAIBalance",
|
|
948
|
+
type: "uint256",
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
internalType: "contract ERC20",
|
|
952
|
+
name: "_interestToken",
|
|
953
|
+
type: "address",
|
|
954
|
+
},
|
|
955
|
+
],
|
|
956
|
+
name: "mintUBI",
|
|
957
|
+
outputs: [
|
|
958
|
+
{
|
|
959
|
+
internalType: "uint256",
|
|
960
|
+
name: "",
|
|
961
|
+
type: "uint256",
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
internalType: "uint256",
|
|
965
|
+
name: "",
|
|
966
|
+
type: "uint256",
|
|
967
|
+
},
|
|
968
|
+
],
|
|
969
|
+
stateMutability: "nonpayable",
|
|
970
|
+
type: "function",
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
inputs: [],
|
|
974
|
+
name: "name",
|
|
975
|
+
outputs: [
|
|
976
|
+
{
|
|
977
|
+
internalType: "string",
|
|
978
|
+
name: "",
|
|
979
|
+
type: "string",
|
|
980
|
+
},
|
|
981
|
+
],
|
|
982
|
+
stateMutability: "view",
|
|
983
|
+
type: "function",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
inputs: [],
|
|
987
|
+
name: "nameService",
|
|
988
|
+
outputs: [
|
|
989
|
+
{
|
|
990
|
+
internalType: "contract INameService",
|
|
991
|
+
name: "",
|
|
992
|
+
type: "address",
|
|
993
|
+
},
|
|
994
|
+
],
|
|
995
|
+
stateMutability: "view",
|
|
996
|
+
type: "function",
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
inputs: [],
|
|
1000
|
+
name: "nativeToken",
|
|
1001
|
+
outputs: [
|
|
1002
|
+
{
|
|
1003
|
+
internalType: "contract IGoodDollar",
|
|
1004
|
+
name: "",
|
|
1005
|
+
type: "address",
|
|
1006
|
+
},
|
|
1007
|
+
],
|
|
1008
|
+
stateMutability: "view",
|
|
1009
|
+
type: "function",
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
inputs: [],
|
|
1013
|
+
name: "pause",
|
|
1014
|
+
outputs: [],
|
|
1015
|
+
stateMutability: "nonpayable",
|
|
1016
|
+
type: "function",
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
inputs: [],
|
|
1020
|
+
name: "paused",
|
|
1021
|
+
outputs: [
|
|
1022
|
+
{
|
|
1023
|
+
internalType: "bool",
|
|
1024
|
+
name: "",
|
|
1025
|
+
type: "bool",
|
|
1026
|
+
},
|
|
1027
|
+
],
|
|
1028
|
+
stateMutability: "view",
|
|
1029
|
+
type: "function",
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
inputs: [
|
|
1033
|
+
{
|
|
1034
|
+
internalType: "address",
|
|
1035
|
+
name: "_scheme",
|
|
1036
|
+
type: "address",
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
internalType: "bytes32",
|
|
1040
|
+
name: "_hash",
|
|
1041
|
+
type: "bytes32",
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
internalType: "bytes32",
|
|
1045
|
+
name: "_method",
|
|
1046
|
+
type: "bytes32",
|
|
1047
|
+
},
|
|
1048
|
+
],
|
|
1049
|
+
name: "pre",
|
|
1050
|
+
outputs: [
|
|
1051
|
+
{
|
|
1052
|
+
internalType: "bool",
|
|
1053
|
+
name: "",
|
|
1054
|
+
type: "bool",
|
|
1055
|
+
},
|
|
1056
|
+
],
|
|
1057
|
+
stateMutability: "pure",
|
|
1058
|
+
type: "function",
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
inputs: [
|
|
1062
|
+
{
|
|
1063
|
+
internalType: "contract ERC20",
|
|
1064
|
+
name: "_token",
|
|
1065
|
+
type: "address",
|
|
1066
|
+
},
|
|
1067
|
+
],
|
|
1068
|
+
name: "recover",
|
|
1069
|
+
outputs: [],
|
|
1070
|
+
stateMutability: "nonpayable",
|
|
1071
|
+
type: "function",
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
inputs: [
|
|
1075
|
+
{
|
|
1076
|
+
internalType: "bytes32",
|
|
1077
|
+
name: "role",
|
|
1078
|
+
type: "bytes32",
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
internalType: "address",
|
|
1082
|
+
name: "account",
|
|
1083
|
+
type: "address",
|
|
1084
|
+
},
|
|
1085
|
+
],
|
|
1086
|
+
name: "renounceRole",
|
|
1087
|
+
outputs: [],
|
|
1088
|
+
stateMutability: "nonpayable",
|
|
1089
|
+
type: "function",
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
inputs: [
|
|
1093
|
+
{
|
|
1094
|
+
internalType: "bytes32",
|
|
1095
|
+
name: "role",
|
|
1096
|
+
type: "bytes32",
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
internalType: "address",
|
|
1100
|
+
name: "account",
|
|
1101
|
+
type: "address",
|
|
1102
|
+
},
|
|
1103
|
+
],
|
|
1104
|
+
name: "revokeRole",
|
|
1105
|
+
outputs: [],
|
|
1106
|
+
stateMutability: "nonpayable",
|
|
1107
|
+
type: "function",
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
inputs: [
|
|
1111
|
+
{
|
|
1112
|
+
internalType: "uint256",
|
|
1113
|
+
name: "_gdAmount",
|
|
1114
|
+
type: "uint256",
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
internalType: "uint256",
|
|
1118
|
+
name: "_minReturn",
|
|
1119
|
+
type: "uint256",
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
internalType: "address",
|
|
1123
|
+
name: "_target",
|
|
1124
|
+
type: "address",
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
internalType: "address",
|
|
1128
|
+
name: "_seller",
|
|
1129
|
+
type: "address",
|
|
1130
|
+
},
|
|
1131
|
+
],
|
|
1132
|
+
name: "sell",
|
|
1133
|
+
outputs: [
|
|
1134
|
+
{
|
|
1135
|
+
internalType: "uint256",
|
|
1136
|
+
name: "",
|
|
1137
|
+
type: "uint256",
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
internalType: "uint256",
|
|
1141
|
+
name: "",
|
|
1142
|
+
type: "uint256",
|
|
1143
|
+
},
|
|
1144
|
+
],
|
|
1145
|
+
stateMutability: "nonpayable",
|
|
1146
|
+
type: "function",
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
inputs: [],
|
|
1150
|
+
name: "setAddresses",
|
|
1151
|
+
outputs: [],
|
|
1152
|
+
stateMutability: "nonpayable",
|
|
1153
|
+
type: "function",
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
inputs: [
|
|
1157
|
+
{
|
|
1158
|
+
internalType: "bytes32",
|
|
1159
|
+
name: "_airdrop",
|
|
1160
|
+
type: "bytes32",
|
|
1161
|
+
},
|
|
1162
|
+
],
|
|
1163
|
+
name: "setGDXAirdrop",
|
|
1164
|
+
outputs: [],
|
|
1165
|
+
stateMutability: "nonpayable",
|
|
1166
|
+
type: "function",
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
inputs: [
|
|
1170
|
+
{
|
|
1171
|
+
internalType: "uint256",
|
|
1172
|
+
name: "_nom",
|
|
1173
|
+
type: "uint256",
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
internalType: "uint256",
|
|
1177
|
+
name: "_denom",
|
|
1178
|
+
type: "uint256",
|
|
1179
|
+
},
|
|
1180
|
+
],
|
|
1181
|
+
name: "setReserveRatioDailyExpansion",
|
|
1182
|
+
outputs: [],
|
|
1183
|
+
stateMutability: "nonpayable",
|
|
1184
|
+
type: "function",
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
inputs: [
|
|
1188
|
+
{
|
|
1189
|
+
internalType: "bytes4",
|
|
1190
|
+
name: "interfaceId",
|
|
1191
|
+
type: "bytes4",
|
|
1192
|
+
},
|
|
1193
|
+
],
|
|
1194
|
+
name: "supportsInterface",
|
|
1195
|
+
outputs: [
|
|
1196
|
+
{
|
|
1197
|
+
internalType: "bool",
|
|
1198
|
+
name: "",
|
|
1199
|
+
type: "bool",
|
|
1200
|
+
},
|
|
1201
|
+
],
|
|
1202
|
+
stateMutability: "view",
|
|
1203
|
+
type: "function",
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
inputs: [],
|
|
1207
|
+
name: "symbol",
|
|
1208
|
+
outputs: [
|
|
1209
|
+
{
|
|
1210
|
+
internalType: "string",
|
|
1211
|
+
name: "",
|
|
1212
|
+
type: "string",
|
|
1213
|
+
},
|
|
1214
|
+
],
|
|
1215
|
+
stateMutability: "view",
|
|
1216
|
+
type: "function",
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
inputs: [],
|
|
1220
|
+
name: "totalSupply",
|
|
1221
|
+
outputs: [
|
|
1222
|
+
{
|
|
1223
|
+
internalType: "uint256",
|
|
1224
|
+
name: "",
|
|
1225
|
+
type: "uint256",
|
|
1226
|
+
},
|
|
1227
|
+
],
|
|
1228
|
+
stateMutability: "view",
|
|
1229
|
+
type: "function",
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
inputs: [
|
|
1233
|
+
{
|
|
1234
|
+
internalType: "address",
|
|
1235
|
+
name: "recipient",
|
|
1236
|
+
type: "address",
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
internalType: "uint256",
|
|
1240
|
+
name: "amount",
|
|
1241
|
+
type: "uint256",
|
|
1242
|
+
},
|
|
1243
|
+
],
|
|
1244
|
+
name: "transfer",
|
|
1245
|
+
outputs: [
|
|
1246
|
+
{
|
|
1247
|
+
internalType: "bool",
|
|
1248
|
+
name: "",
|
|
1249
|
+
type: "bool",
|
|
1250
|
+
},
|
|
1251
|
+
],
|
|
1252
|
+
stateMutability: "nonpayable",
|
|
1253
|
+
type: "function",
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
inputs: [
|
|
1257
|
+
{
|
|
1258
|
+
internalType: "address",
|
|
1259
|
+
name: "sender",
|
|
1260
|
+
type: "address",
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
internalType: "address",
|
|
1264
|
+
name: "recipient",
|
|
1265
|
+
type: "address",
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
internalType: "uint256",
|
|
1269
|
+
name: "amount",
|
|
1270
|
+
type: "uint256",
|
|
1271
|
+
},
|
|
1272
|
+
],
|
|
1273
|
+
name: "transferFrom",
|
|
1274
|
+
outputs: [
|
|
1275
|
+
{
|
|
1276
|
+
internalType: "bool",
|
|
1277
|
+
name: "",
|
|
1278
|
+
type: "bool",
|
|
1279
|
+
},
|
|
1280
|
+
],
|
|
1281
|
+
stateMutability: "nonpayable",
|
|
1282
|
+
type: "function",
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
inputs: [],
|
|
1286
|
+
name: "unpause",
|
|
1287
|
+
outputs: [],
|
|
1288
|
+
stateMutability: "nonpayable",
|
|
1289
|
+
type: "function",
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
inputs: [],
|
|
1293
|
+
name: "updateAvatar",
|
|
1294
|
+
outputs: [],
|
|
1295
|
+
stateMutability: "nonpayable",
|
|
1296
|
+
type: "function",
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
inputs: [
|
|
1300
|
+
{
|
|
1301
|
+
internalType: "address",
|
|
1302
|
+
name: "newImplementation",
|
|
1303
|
+
type: "address",
|
|
1304
|
+
},
|
|
1305
|
+
],
|
|
1306
|
+
name: "upgradeTo",
|
|
1307
|
+
outputs: [],
|
|
1308
|
+
stateMutability: "nonpayable",
|
|
1309
|
+
type: "function",
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
inputs: [
|
|
1313
|
+
{
|
|
1314
|
+
internalType: "address",
|
|
1315
|
+
name: "newImplementation",
|
|
1316
|
+
type: "address",
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
internalType: "bytes",
|
|
1320
|
+
name: "data",
|
|
1321
|
+
type: "bytes",
|
|
1322
|
+
},
|
|
1323
|
+
],
|
|
1324
|
+
name: "upgradeToAndCall",
|
|
1325
|
+
outputs: [],
|
|
1326
|
+
stateMutability: "payable",
|
|
1327
|
+
type: "function",
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
inputs: [],
|
|
1331
|
+
name: "when",
|
|
1332
|
+
outputs: [
|
|
1333
|
+
{
|
|
1334
|
+
internalType: "enum GlobalConstraintInterface.CallPhase",
|
|
1335
|
+
name: "",
|
|
1336
|
+
type: "uint8",
|
|
1337
|
+
},
|
|
1338
|
+
],
|
|
1339
|
+
stateMutability: "pure",
|
|
1340
|
+
type: "function",
|
|
1341
|
+
},
|
|
1342
|
+
];
|
|
1343
|
+
|
|
1344
|
+
const _bytecode =
|
|
1345
|
+
"0x60a06040523060601b60805234801561001757600080fd5b5060805160601c614bbd61004b6000396000818161126b015281816112ab015281816114ec015261152c0152614bbd6000f3fe60806040526004361061029c5760003560e01c806301ffc9a7146102a157806306fdde03146102d6578063095ea7b3146102f85780630cd865ec1461031857806318160ddd1461033a5780631b3c90a81461035a5780631de778a51461036f57806322c65b39146103a457806323b872dd146103bb578063248a9ca3146103db5780632c387275146103fb5780632f2ff15d14610429578063313ce567146104495780633426681d14610465578063355274ea1461048557806336568abe1461049c5780633659cfe6146104bc57806339509351146104dc5780633e6326fc146104fc5780633f4ba83a1461051c57806340c10f19146105315780634162169f1461055157806342966c68146105715780634cd88b76146105915780634f1ef286146105b15780634f8f0218146105c457806359a87bc1146105e45780635aef7de6146106045780635c975abb1461062457806370a082311461063d57806379cc67901461065d5780638456cb591461067d5780639010d07c1461069257806391d14854146106b257806395d89b41146106d25780639d1b464a146106e75780639f2d0d07146106fc578063a217fddf1461071c578063a457c2d714610731578063a7445bf014610751578063a7ca8c7d14610771578063a9059cbb14610793578063acea21d0146107b3578063bbc19ab0146107c8578063bc3a429b146107df578063be13f47c146107f4578063c1786ab214610814578063ca15c87314610834578063d539139314610854578063d547741f14610876578063dd62ed3e14610896578063df20c4af146108dd578063e092b0671461090e578063e1758bd814610923578063e2b0caef14610938578063e63ab1e914610954578063efbe1c1c14610976578063f2c65bf91461098b578063f8a9978f146109ac575b600080fd5b3480156102ad57600080fd5b506102c16102bc36600461420e565b6109cc565b60405190151581526020015b60405180910390f35b3480156102e257600080fd5b506102eb6109f7565b6040516102cd9190614264565b34801561030457600080fd5b506102c16103133660046142ac565b610a8a565b34801561032457600080fd5b506103386103333660046142d8565b610aa0565b005b34801561034657600080fd5b50610164545b6040519081526020016102cd565b34801561036657600080fd5b50610338610bca565b34801561037b57600080fd5b5061038f61038a3660046142f5565b610d0f565b604080519283526020830191909152016102cd565b3480156103b057600080fd5b5061034c6102605481565b3480156103c757600080fd5b506102c16103d636600461432e565b611035565b3480156103e757600080fd5b5061034c6103f636600461436f565b6110e2565b34801561040757600080fd5b5061025e5461041c906001600160a01b031681565b6040516102cd9190614388565b34801561043557600080fd5b5061033861044436600461439c565b6110f7565b34801561045557600080fd5b50604051600281526020016102cd565b34801561047157600080fd5b506102c1610480366004614412565b61111f565b34801561049157600080fd5b5061034c61025c5481565b3480156104a857600080fd5b506103386104b736600461439c565b61123d565b3480156104c857600080fd5b506103386104d73660046142d8565b611260565b3480156104e857600080fd5b506102c16104f73660046142ac565b611326565b34801561050857600080fd5b5060675461041c906001600160a01b031681565b34801561052857600080fd5b50610338611363565b34801561053d57600080fd5b5061033861054c3660046142ac565b6113e1565b34801561055d57600080fd5b5060655461041c906001600160a01b031681565b34801561057d57600080fd5b5061033861058c36600461436f565b611460565b34801561059d57600080fd5b506103386105ac36600461454c565b61146a565b6103386105bf3660046145af565b6114e1565b3480156105d057600080fd5b5061038f6105df366004614608565b611597565b3480156105f057600080fd5b5061034c6105ff3660046142f5565b611ab8565b34801561061057600080fd5b5060665461041c906001600160a01b031681565b34801561063057600080fd5b506101c65460ff166102c1565b34801561064957600080fd5b5061034c6106583660046142d8565b611deb565b34801561066957600080fd5b506103386106783660046142ac565b611e07565b34801561068957600080fd5b50610338611e88565b34801561069e57600080fd5b5061041c6106ad366004614652565b611f02565b3480156106be57600080fd5b506102c16106cd36600461439c565b611f1b565b3480156106de57600080fd5b506102eb611f46565b3480156106f357600080fd5b5061034c611f56565b34801561070857600080fd5b50610338610717366004614652565b611fe7565b34801561072857600080fd5b5061034c600081565b34801561073d57600080fd5b506102c161074c3660046142ac565b61205e565b34801561075d57600080fd5b5061033861076c36600461436f565b6120f8565b34801561077d57600080fd5b5061034c600080516020614aa183398151915281565b34801561079f57600080fd5b506102c16107ae3660046142ac565b612106565b3480156107bf57600080fd5b5061034c612113565b3480156107d457600080fd5b5061034c61025d5481565b3480156107eb57600080fd5b506103386121d2565b34801561080057600080fd5b5061033861080f3660046142ac565b6123a3565b34801561082057600080fd5b506102c161082f366004614674565b6124eb565b34801561084057600080fd5b5061034c61084f36600461436f565b61250a565b34801561086057600080fd5b5061034c600080516020614b4883398151915281565b34801561088257600080fd5b5061033861089136600461439c565b612522565b3480156108a257600080fd5b5061034c6108b13660046146a9565b6001600160a01b0391821660009081526101636020908152604080832093909416825291909152205490565b3480156108e957600080fd5b506102c16108f83660046142d8565b6102616020526000908152604090205460ff1681565b34801561091a57600080fd5b5061041c61252c565b34801561092f57600080fd5b5061041c6125c6565b34801561094457600080fd5b5060006040516102cd91906146d7565b34801561096057600080fd5b5061034c600080516020614b0183398151915281565b34801561098257600080fd5b506103386125f5565b34801561099757600080fd5b5061025f5461041c906001600160a01b031681565b3480156109b857600080fd5b506103386109c736600461432e565b6129dc565b60006001600160e01b03198216635a05180f60e01b14806109f157506109f182612a59565b92915050565b60606101658054610a07906146ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610a33906146ff565b8015610a805780601f10610a5557610100808354040283529160200191610a80565b820191906000526020600020905b815481529060010190602001808311610a6357829003601f168201915b5050505050905090565b6000610a97338484612a8e565b50600192915050565b610aa8612bb3565b6066546040516370a0823160e01b81526001600160a01b038084169263a9059cbb9291169083906370a0823190610ae3903090600401614388565b60206040518083038186803b158015610afb57600080fd5b505afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b33919061473a565b6040518363ffffffff1660e01b8152600401610b50929190614753565b602060405180830381600087803b158015610b6a57600080fd5b505af1158015610b7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba2919061476c565b610bc75760405162461bcd60e51b8152600401610bbe9061478e565b60405180910390fd5b50565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b158015610c2857600080fd5b505afa158015610c3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6091906147bf565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b158015610cb557600080fd5b505afa158015610cc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ced91906147bf565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b61025f5460405163140e25ad60e31b81526004810185905260009182916001600160a01b039091169063a0712d6890602401602060405180830381600087803b158015610d5b57600080fd5b505af1158015610d6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d93919061473a565b50600084846001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610dc39190614388565b60206040518083038186803b158015610ddb57600080fd5b505afa158015610def573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e13919061473a565b610e1d91906147f2565b90506000610e2961252c565b6001600160a01b03166374920d3086846040518363ffffffff1660e01b8152600401610e56929190614753565b602060405180830381600087803b158015610e7057600080fd5b505af1158015610e84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea8919061473a565b90506000610eb461252c565b6001600160a01b031663e72a0833876040518263ffffffff1660e01b8152600401610edf9190614388565b602060405180830381600087803b158015610ef957600080fd5b505af1158015610f0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f31919061473a565b90506000610f3f8284614809565b60675460405163bf40fac160e01b8152919250610fcc916001600160a01b039091169063bf40fac190610f7490600401614821565b60206040518083038186803b158015610f8c57600080fd5b505afa158015610fa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc491906147bf565b826000612c85565b4361025d8190556040805186815260208101869052908101849052606081018390526001600160a01b03891691907f1a962236b7c7b3d7b9f6b56036cbce44ab2f93a22b0827d2f2a92a8f055552b99060800160405180910390a3989297509195505050505050565b6000611042848484612fce565b6001600160a01b038416600090815261016360209081526040808320338452909152902054828110156110c85760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610bbe565b6110d58533858403612a8e565b60019150505b9392505050565b600090815260fe602052604090206001015490565b6111018282613197565b60008281526101306020526040902061111a90826131b4565b505050565b6001600160a01b0383166000908152610261602052604081205460ff161561117f5760405162461bcd60e51b81526020600482015260136024820152720c2d8e4cac2c8f240c6d8c2d2dacac840cec8f606b1b6044820152606401610bbe565b60008484604051602001611194929190614753565b60405160208183030381529060405280519060200120905060006111bc8461026054846131c9565b9050806112025760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610bbe565b61120c8686611452565b5050506001600160a01b038316600090815261026160205260409020805460ff191660019081179091559392505050565b6112478282613278565b60008281526101306020526040902061111a90826132f2565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156112a95760405162461bcd60e51b8152600401610bbe90614847565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112db613307565b6001600160a01b0316146113015760405162461bcd60e51b8152600401610bbe90614881565b61130a81613323565b60408051600080825260208201909252610bc79183919061332b565b336000818152610163602090815260408083206001600160a01b03871684529091528120549091610a9791859061135e908690614809565b612a8e565b61137b600080516020614b0183398151915233611f1b565b6113d75760405162461bcd60e51b81526020600482015260396024820152600080516020614a8183398151915260448201527876652070617573657220726f6c6520746f20756e706175736560381b6064820152608401610bbe565b6113df61346b565b565b6113f9600080516020614b4883398151915233611f1b565b6114525760405162461bcd60e51b81526020600482015260366024820152600080516020614a818339815191526044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b6064820152608401610bbe565b61145c82826134fa565b5050565b610bc733826135d5565b600054610100900460ff1680611483575060005460ff16155b61149f5760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff161580156114c1576000805461ffff19166101011790555b6114cb8383613720565b801561111a576000805461ff0019169055505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561152a5760405162461bcd60e51b8152600401610bbe90614847565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661155c613307565b6001600160a01b0316146115825760405162461bcd60e51b8152600401610bbe90614881565b61158b82613323565b61145c8282600161332b565b60008060006115a461252c565b60675460405163bf40fac160e01b81529192506001600160a01b03169063bf40fac1906115d390600401614909565b60206040518083038186803b1580156115eb57600080fd5b505afa1580156115ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162391906147bf565b6001600160a01b0316336001600160a01b03161461171c5760675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac19061166990600401614932565b60206040518083038186803b15801561168157600080fd5b505afa158015611695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b991906147bf565b6001600160a01b03166379cc679033896040518363ffffffff1660e01b81526004016116e6929190614753565b600060405180830381600087803b15801561170057600080fd5b505af1158015611714573d6000803e3d6000fd5b505050503393505b6001600160a01b038516156117315784611733565b335b9450600061174085611deb565b90506000888211156117525788611754565b815b905080156117665761176686826135d5565b600089808310156118d65760675460405163bf40fac160e01b815260206004820152601860248201527721a7a72a2924a12aaa24a7a72fa1a0a621aaa620aa24a7a760411b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156117dd57600080fd5b505afa1580156117f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181591906147bf565b61025f546001600160a01b0391821691632cfa94fe91889130918d911661183c89886147f2565b60405160e087901b6001600160e01b03191681526001600160a01b039586166004820152938516602485015291841660448401529092166064820152608481019190915260a40160206040518083038186803b15801561189b57600080fd5b505afa1580156118af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d3919061473a565b91505b61025f5460405163058c243360e11b81526001600160a01b0391821660048201526024810183905260448101849052600091871690630b18486690606401602060405180830381600087803b15801561192e57600080fd5b505af1158015611942573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611966919061473a565b90508a8110156119c95760405162461bcd60e51b815260206004820152602860248201527f546f6b656e2072657475726e206d7573742062652061626f766520746865206d60448201526734b72932ba3ab93760c11b6064820152608401610bbe565b61025f5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906119fc908d908590600401614753565b602060405180830381600087803b158015611a1657600080fd5b505af1158015611a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4e919061476c565b5061025f54604080518e8152602081018690529081018390526001600160a01b03808d1692811691908c16907f067ad67f3f4d17211f9f929d19036c2395bbc9b201d517e46e81f9ceae86032e9060600160405180910390a49b919a509098505050505050505050565b61025f546000906001600160a01b031681611ad161252c565b6001600160a01b031663cce7ec1383886040518363ffffffff1660e01b8152600401611afe929190614753565b602060405180830381600087803b158015611b1857600080fd5b505af1158015611b2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b50919061473a565b90506001600160a01b03841615611b675783611b69565b335b60675460405163bf40fac160e01b81529195506000916001600160a01b039091169063bf40fac190611b9d90600401614909565b60206040518083038186803b158015611bb557600080fd5b505afa158015611bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bed91906147bf565b9050336001600160a01b03821614611cfe576040516323b872dd60e01b8152336004820152306024820152604481018890526001600160a01b038416906323b872dd90606401602060405180830381600087803b158015611c4d57600080fd5b505af1158015611c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c85919061476c565b1515600114611cfe576040805162461bcd60e51b81526020600482015260248101919091527f7472616e7366657246726f6d206661696c65642c206d616b652073757265207960448201527f6f7520617070726f76656420696e70757420746f6b656e207472616e736665726064820152608401610bbe565b85821015611d5c5760405162461bcd60e51b815260206004820152602560248201527f47442072657475726e206d7573742062652061626f766520746865206d696e5260448201526432ba3ab93760d91b6064820152608401610bbe565b611d6885836001612c85565b611d728583611452565b61025f546001600160a01b03868116918116908316331415611d945732611d96565b335b6001600160a01b03167fcace70a03cbf3e4fa942b0ab9f70aa3834cfab0a31aa75bc4895262063444e128a86604051611dd9929190918252602082015260400190565b60405180910390a45095945050505050565b6001600160a01b03166000908152610162602052604090205490565b6000611e1383336108b1565b905081811015611e715760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610bbe565b611e7e8333848403612a8e565b61111a83836135d5565b611ea0600080516020614b0183398151915233611f1b565b611efa5760405162461bcd60e51b81526020600482015260376024820152600080516020614a8183398151915260448201527676652070617573657220726f6c6520746f20706175736560481b6064820152608401610bbe565b6113df6137c3565b6000828152610130602052604081206110db9083613840565b600091825260fe602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606101668054610a07906146ff565b6000611f6061252c565b61025f5460405163e9833c2f60e01b81526001600160a01b039283169263e9833c2f92611f9292911690600401614388565b60206040518083038186803b158015611faa57600080fd5b505afa158015611fbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe2919061473a565b905090565b611fef612bb3565b611ff761252c565b604051639f2d0d0760e01b815260048101849052602481018390526001600160a01b039190911690639f2d0d0790604401600060405180830381600087803b15801561204257600080fd5b505af1158015612056573d6000803e3d6000fd5b505050505050565b336000908152610163602090815260408083206001600160a01b0386168452909152812054828110156120e15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bbe565b6120ee3385858403612a8e565b5060019392505050565b612100612bb3565b61026055565b6000610a97338484612fce565b61025f546040805163182df0f560e01b815290516000926001600160a01b0316916b204fce5e3e2502611000000091839163182df0f5916004808301926020929190829003018186803b15801561216957600080fd5b505afa15801561217d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a1919061473a565b6121a9611f56565b6121b8906402540be400614956565b6121c29190614956565b6121cc9190614975565b91505090565b60675460405163bf40fac160e01b815260206004820152600360248201526244414960e81b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b15801561222957600080fd5b505afa15801561223d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061226191906147bf565b61025e80546001600160a01b0319166001600160a01b0392831617905560675460405163bf40fac160e01b815260206004808301919091526024820152634344414960e01b604482015291169063bf40fac19060640160206040518083038186803b1580156122cf57600080fd5b505afa1580156122e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230791906147bf565b61025f80546001600160a01b0319166001600160a01b0392831690811790915561025e5460405163095ea7b360e01b815292169163095ea7b3916123519160001990600401614753565b602060405180830381600087803b15801561236b57600080fd5b505af115801561237f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc7919061476c565b600054610100900460ff16806123bc575060005460ff16155b6123d85760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff161580156123fa576000805461ffff19166101011790555b61243a6040518060400160405280600381526020016208e88b60eb1b8152506040518060400160405280600381526020016208e48b60eb1b815250613720565b6124438361384c565b61244b6121d2565b612463600080516020614b488339815191523361123d565b61247b600080516020614b018339815191523361123d565b61248660003361123d565b60665461249e906000906001600160a01b031661386f565b6066546124c390600080516020614aa1833981519152906001600160a01b031661386f565b6607d0e36a81800061025c55610260829055801561111a576000805461ff0019169055505050565b600081696d696e74546f6b656e7360b01b14156120ee575060006110db565b6000818152610130602052604081206109f190613879565b6112478282613883565b60675460405163bf40fac160e01b815260206004820152600c60248201526b26a0a925a2aa2fa6a0a5a2a960a11b60448201526000916001600160a01b03169063bf40fac1906064015b60206040518083038186803b15801561258e57600080fd5b505afa1580156125a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe291906147bf565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac19061257690600401614932565b6125fd612bb3565b61025f546040516370a0823160e01b81526000916001600160a01b0316906370a082319061262f903090600401614388565b60206040518083038186803b15801561264757600080fd5b505afa15801561265b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267f919061473a565b111561279e5761025f546066546040516370a0823160e01b81526001600160a01b039283169263a9059cbb92169083906370a08231906126c3903090600401614388565b60206040518083038186803b1580156126db57600080fd5b505afa1580156126ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612713919061473a565b6040518363ffffffff1660e01b8152600401612730929190614753565b602060405180830381600087803b15801561274a57600080fd5b505af115801561275e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612782919061476c565b61279e5760405162461bcd60e51b8152600401610bbe9061478e565b60675460405163bf40fac160e01b81526000916001600160a01b03169063bf40fac1906127cd90600401614932565b60206040518083038186803b1580156127e557600080fd5b505afa1580156127f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061281d91906147bf565b6066546040516355138f0d60e11b81529192506001600160a01b038084169263aa271e1a92612850921690600401614388565b60206040518083038186803b15801561286857600080fd5b505afa15801561287c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a0919061476c565b61290957606654604051634c1d96ab60e11b81526001600160a01b038381169263983b2d56926128d69290911690600401614388565b600060405180830381600087803b1580156128f057600080fd5b505af1158015612904573d6000803e3d6000fd5b505050505b60675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac19061293790600401614932565b60206040518083038186803b15801561294f57600080fd5b505afa158015612963573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298791906147bf565b6001600160a01b031663986502756040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156129c157600080fd5b505af11580156129d5573d6000803e3d6000fd5b5050505050565b6129e461252c565b6001600160a01b031663d5dc7eda84836040518363ffffffff1660e01b8152600401612a11929190614753565b600060405180830381600087803b158015612a2b57600080fd5b505af1158015612a3f573d6000803e3d6000fd5b50505050612a4f82826000612c85565b61111a8282611452565b60006001600160e01b03198216637965db0b60e01b14806109f157506301ffc9a760e01b6001600160e01b03198316146109f1565b6001600160a01b038316612af05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bbe565b6001600160a01b038216612b515760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bbe565b6001600160a01b038381166000818152610163602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b158015612bf757600080fd5b505afa158015612c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2f91906147bf565b6001600160a01b0316146113df5760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610bbe565b8080612d1f575060675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac190612cba90600401614821565b60206040518083038186803b158015612cd257600080fd5b505afa158015612ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d0a91906147bf565b6001600160a01b0316336001600160a01b0316145b80612d3d5750612d3d600080516020614aa183398151915233611f1b565b612d855760405162461bcd60e51b815260206004820152601960248201527823b7b7b22932b9b2b93b329d103737ba10309036b4b73a32b960391b6044820152606401610bbe565b61025c5460675460405163bf40fac160e01b815284916001600160a01b03169063bf40fac190612db790600401614932565b60206040518083038186803b158015612dcf57600080fd5b505afa158015612de3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0791906147bf565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612e3f57600080fd5b505afa158015612e53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e77919061473a565b612e819190614809565b1115612ecb5760405162461bcd60e51b815260206004820152601960248201527811dbdbd914995cd95c9d994e8818d85c08195b999bdc98d959603a1b6044820152606401610bbe565b60675460405163bf40fac160e01b81526001600160a01b039091169063bf40fac190612ef990600401614932565b60206040518083038186803b158015612f1157600080fd5b505afa158015612f25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f4991906147bf565b6001600160a01b03166340c10f1984846040518363ffffffff1660e01b8152600401612f76929190614753565b602060405180830381600087803b158015612f9057600080fd5b505af1158015612fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fc8919061473a565b50505050565b6001600160a01b0383166130325760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610bbe565b6001600160a01b0382166130945760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610bbe565b61309f8383836138a0565b6001600160a01b03831660009081526101626020526040902054818110156131185760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610bbe565b6001600160a01b0380851660009081526101626020526040808220858503905591851681529081208054849290613150908490614809565b92505081905550826001600160a01b0316846001600160a01b0316600080516020614b688339815191528460405161318a91815260200190565b60405180910390a3612fc8565b6131a0826110e2565b6131aa81336138ab565b61111a838361390f565b60006110db836001600160a01b038416613995565b600081815b855181101561326d5760008682815181106131eb576131eb614997565b6020026020010151905080831161322d57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061325a565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613265816149ad565b9150506131ce565b509092149392505050565b6001600160a01b03811633146132e85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bbe565b61145c82826139e4565b60006110db836001600160a01b038416613a4b565b600080516020614ae1833981519152546001600160a01b031690565b610bc7612bb3565b6000613335613307565b905061334084613b3e565b60008351118061334d5750815b1561335e5761335c8484613bd1565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff166129d557805460ff191660011781556040516133d99086906133aa908590602401614388565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052613bd1565b50805460ff191681556133ea613307565b6001600160a01b0316826001600160a01b0316146134625760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610bbe565b6129d585613cbc565b6101c65460ff166134b55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bbe565b6101c6805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516134f09190614388565b60405180910390a1565b6001600160a01b0382166135505760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610bbe565b61355c600083836138a0565b80610164600082825461356f9190614809565b90915550506001600160a01b038216600090815261016260205260408120805483929061359d908490614809565b90915550506040518181526001600160a01b03831690600090600080516020614b688339815191529060200160405180910390a35050565b6001600160a01b0382166136355760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610bbe565b613641826000836138a0565b6001600160a01b03821660009081526101626020526040902054818110156136b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610bbe565b6001600160a01b038316600090815261016260205260408120838303905561016480548492906136e79084906147f2565b90915550506040518281526000906001600160a01b03851690600080516020614b688339815191529060200160405180910390a3505050565b600054610100900460ff1680613739575060005460ff16155b6137555760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff16158015613777576000805461ffff19166101011790555b61377f613cfc565b613787613cfc565b61378f613cfc565b613797613cfc565b6137a18383613d67565b6137a9613cfc565b6137b1613dfe565b6137b9613cfc565b6114cb8383613e74565b6101c65460ff161561380a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610bbe565b6101c6805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134e33390565b60006110db8383613f06565b606780546001600160a01b0319166001600160a01b038316179055610bc7610bca565b6111018282613f30565b60006109f1825490565b61388c826110e2565b61389681336138ab565b61111a83836139e4565b61111a838383613f3a565b6138b58282611f1b565b61145c576138cd816001600160a01b03166014613fa1565b6138d8836020613fa1565b6040516020016138e99291906149c8565b60408051601f198184030181529082905262461bcd60e51b8252610bbe91600401614264565b6139198282611f1b565b61145c57600082815260fe602090815260408083206001600160a01b03851684529091529020805460ff191660011790556139513390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546139dc575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f1565b5060006109f1565b6139ee8282611f1b565b1561145c57600082815260fe602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015613b34576000613a6f6001836147f2565b8554909150600090613a83906001906147f2565b9050818114613ae8576000866000018281548110613aa357613aa3614997565b9060005260206000200154905080876000018481548110613ac657613ac6614997565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613af957613af9614a37565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109f1565b60009150506109f1565b803b613ba25760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610bbe565b600080516020614ae183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b613c305760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610bbe565b600080846001600160a01b031684604051613c4b9190614a4d565b600060405180830381855af49150503d8060008114613c86576040519150601f19603f3d011682016040523d82523d6000602084013e613c8b565b606091505b5091509150613cb38282604051806060016040528060278152602001614b216027913961413c565b95945050505050565b613cc581613b3e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600054610100900460ff1680613d15575060005460ff16155b613d315760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff16158015613d53576000805461ffff19166101011790555b8015610bc7576000805461ff001916905550565b600054610100900460ff1680613d80575060005460ff16155b613d9c5760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff16158015613dbe576000805461ffff19166101011790555b8251613dd290610165906020860190614175565b508151613de790610166906020850190614175565b50801561111a576000805461ff0019169055505050565b600054610100900460ff1680613e17575060005460ff16155b613e335760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff16158015613e55576000805461ffff19166101011790555b6101c6805460ff191690558015610bc7576000805461ff001916905550565b600054610100900460ff1680613e8d575060005460ff16155b613ea95760405162461bcd60e51b8152600401610bbe906148bb565b600054610100900460ff16158015613ecb576000805461ffff19166101011790555b613ed660003361386f565b613eee600080516020614b488339815191523361386f565b6114cb600080516020614b018339815191523361386f565b6000826000018281548110613f1d57613f1d614997565b9060005260206000200154905092915050565b61145c828261390f565b6101c65460ff161561111a5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610bbe565b60606000613fb0836002614956565b613fbb906002614809565b6001600160401b03811115613fd257613fd26143cc565b6040519080825280601f01601f191660200182016040528015613ffc576020820181803683370190505b509050600360fc1b8160008151811061401757614017614997565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061404657614046614997565b60200101906001600160f81b031916908160001a905350600061406a846002614956565b614075906001614809565b90505b60018111156140ed576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106140a9576140a9614997565b1a60f81b8282815181106140bf576140bf614997565b60200101906001600160f81b031916908160001a90535060049490941c936140e681614a69565b9050614078565b5083156110db5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bbe565b6060831561414b5750816110db565b82511561415b5782518084602001fd5b8160405162461bcd60e51b8152600401610bbe9190614264565b828054614181906146ff565b90600052602060002090601f0160209004810192826141a357600085556141e9565b82601f106141bc57805160ff19168380011785556141e9565b828001600101855582156141e9579182015b828111156141e95782518255916020019190600101906141ce565b506141f59291506141f9565b5090565b5b808211156141f557600081556001016141fa565b60006020828403121561422057600080fd5b81356001600160e01b0319811681146110db57600080fd5b60005b8381101561425357818101518382015260200161423b565b83811115612fc85750506000910152565b6020815260008251806020840152614283816040850160208701614238565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610bc757600080fd5b600080604083850312156142bf57600080fd5b82356142ca81614297565b946020939093013593505050565b6000602082840312156142ea57600080fd5b81356110db81614297565b60008060006060848603121561430a57600080fd5b8335925060208401359150604084013561432381614297565b809150509250925092565b60008060006060848603121561434357600080fd5b833561434e81614297565b9250602084013561435e81614297565b929592945050506040919091013590565b60006020828403121561438157600080fd5b5035919050565b6001600160a01b0391909116815260200190565b600080604083850312156143af57600080fd5b8235915060208301356143c181614297565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561440a5761440a6143cc565b604052919050565b60008060006060848603121561442757600080fd5b833561443281614297565b9250602084810135925060408501356001600160401b038082111561445657600080fd5b818701915087601f83011261446a57600080fd5b81358181111561447c5761447c6143cc565b8060051b915061448d8483016143e2565b818152918301840191848101908a8411156144a757600080fd5b938501935b838510156144c5578435825293850193908501906144ac565b8096505050505050509250925092565b60006001600160401b038311156144ee576144ee6143cc565b614501601f8401601f19166020016143e2565b905082815283838301111561451557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261453d57600080fd5b6110db838335602085016144d5565b6000806040838503121561455f57600080fd5b82356001600160401b038082111561457657600080fd5b6145828683870161452c565b9350602085013591508082111561459857600080fd5b506145a58582860161452c565b9150509250929050565b600080604083850312156145c257600080fd5b82356145cd81614297565b915060208301356001600160401b038111156145e857600080fd5b8301601f810185136145f957600080fd5b6145a5858235602084016144d5565b6000806000806080858703121561461e57600080fd5b8435935060208501359250604085013561463781614297565b9150606085013561464781614297565b939692955090935050565b6000806040838503121561466557600080fd5b50508035926020909101359150565b60008060006060848603121561468957600080fd5b833561469481614297565b95602085013595506040909401359392505050565b600080604083850312156146bc57600080fd5b82356146c781614297565b915060208301356143c181614297565b60208101600383106146f957634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c9082168061471357607f821691505b6020821081141561473457634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561474c57600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b60006020828403121561477e57600080fd5b815180151581146110db57600080fd5b6020808252601790820152761c9958dbdd995c881d1c985b9cd9995c8819985a5b1959604a1b604082015260600190565b6000602082840312156147d157600080fd5b81516110db81614297565b634e487b7160e01b600052601160045260246000fd5b600082821015614804576148046147dc565b500390565b6000821982111561481c5761481c6147dc565b500190565b6020808252600c908201526b232aa7222fa6a0a720a3a2a960a11b604082015260600190565b6020808252602c90820152600080516020614ac183398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020614ac183398151915260408201526b6163746976652070726f787960a01b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252600f908201526e22ac21a420a723a2afa422a62822a960891b604082015260600190565b6020808252600a908201526923a7a7a22227a62620a960b11b604082015260600190565b6000816000190483118215151615614970576149706147dc565b500290565b60008261499257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156149c1576149c16147dc565b5060010190565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516149fa816017850160208801614238565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614a2b816028840160208801614238565b01602801949350505050565b634e487b7160e01b600052603160045260246000fd5b60008251614a5f818460208701614238565b9190910192915050565b600081614a7857614a786147dc565b50600019019056fe45524332305072657365744d696e7465725061757365723a206d75737420686182ce2ced7fc86cde9b16f1f3a5508a82078c42c54a7cf0af011ce529199a18bb46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220765e8bb3e18fb0f6a68a884c762148dc46b1836977b7929a4aaf9f50f347b59064736f6c63430008080033";
|
|
1346
|
+
|
|
1347
|
+
type GoodReserveCDaiConstructorParams =
|
|
1348
|
+
| [signer?: Signer]
|
|
1349
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1350
|
+
|
|
1351
|
+
const isSuperArgs = (
|
|
1352
|
+
xs: GoodReserveCDaiConstructorParams
|
|
1353
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
1354
|
+
|
|
1355
|
+
export class GoodReserveCDai__factory extends ContractFactory {
|
|
1356
|
+
constructor(...args: GoodReserveCDaiConstructorParams) {
|
|
1357
|
+
if (isSuperArgs(args)) {
|
|
1358
|
+
super(...args);
|
|
1359
|
+
} else {
|
|
1360
|
+
super(_abi, _bytecode, args[0]);
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
deploy(
|
|
1365
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1366
|
+
): Promise<GoodReserveCDai> {
|
|
1367
|
+
return super.deploy(overrides || {}) as Promise<GoodReserveCDai>;
|
|
1368
|
+
}
|
|
1369
|
+
getDeployTransaction(
|
|
1370
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1371
|
+
): TransactionRequest {
|
|
1372
|
+
return super.getDeployTransaction(overrides || {});
|
|
1373
|
+
}
|
|
1374
|
+
attach(address: string): GoodReserveCDai {
|
|
1375
|
+
return super.attach(address) as GoodReserveCDai;
|
|
1376
|
+
}
|
|
1377
|
+
connect(signer: Signer): GoodReserveCDai__factory {
|
|
1378
|
+
return super.connect(signer) as GoodReserveCDai__factory;
|
|
1379
|
+
}
|
|
1380
|
+
static readonly bytecode = _bytecode;
|
|
1381
|
+
static readonly abi = _abi;
|
|
1382
|
+
static createInterface(): GoodReserveCDaiInterface {
|
|
1383
|
+
return new utils.Interface(_abi) as GoodReserveCDaiInterface;
|
|
1384
|
+
}
|
|
1385
|
+
static connect(
|
|
1386
|
+
address: string,
|
|
1387
|
+
signerOrProvider: Signer | Provider
|
|
1388
|
+
): GoodReserveCDai {
|
|
1389
|
+
return new Contract(address, _abi, signerOrProvider) as GoodReserveCDai;
|
|
1390
|
+
}
|
|
1391
|
+
}
|