Skip to content

Commit

Permalink
revert: removed protocol version from governance tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Aug 31, 2023
1 parent 4773579 commit 9e8cbf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Inherit `ProtocolVersion` in `Plugin`, `PluginCloneable`, `PluginUUPSUpgradeable`, `PluginSetup`, `PermissionCondition`, `PermissionConditionUpgradeable` `PluginSetupProcessor`, `PluginRepoRegistry`, `DAORegistry`, `ENSSubdomainRegistrar`, `GovernanceERC20`, and `GovernanceWrappedERC20`.
- Inherit `ProtocolVersion` in `Plugin`, `PluginCloneable`, `PluginUUPSUpgradeable`, `PluginSetup`, `PermissionCondition`, `PermissionConditionUpgradeable` `PluginSetupProcessor`, `PluginRepoRegistry`, `DAORegistry`, and `ENSSubdomainRegistrar`.
- Added the `FunctionDeprecated` error to `DAO`.

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Ini
import {ERC165Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import {IVotesUpgradeable} from "@openzeppelin/contracts-upgradeable/governance/utils/IVotesUpgradeable.sol";

import {IProtocolVersion, ProtocolVersion} from "../../../utils/protocol/ProtocolVersion.sol";
import {DaoAuthorizableUpgradeable} from "../../../core/plugin/dao-authorizable/DaoAuthorizableUpgradeable.sol";
import {IDAO} from "../../../core/dao/IDAO.sol";
import {IERC20MintableUpgradeable} from "../IERC20MintableUpgradeable.sol";
Expand All @@ -23,8 +22,7 @@ contract GovernanceERC20 is
Initializable,
ERC165Upgradeable,
ERC20VotesUpgradeable,
DaoAuthorizableUpgradeable,
ProtocolVersion
DaoAuthorizableUpgradeable
{
/// @notice The permission identifier to mint new tokens
bytes32 public constant MINT_PERMISSION_ID = keccak256("MINT_PERMISSION");
Expand Down Expand Up @@ -99,7 +97,6 @@ contract GovernanceERC20 is
_interfaceId == type(IERC20MetadataUpgradeable).interfaceId ||
_interfaceId == type(IVotesUpgradeable).interfaceId ||
_interfaceId == type(IERC20MintableUpgradeable).interfaceId ||
_interfaceId == type(IProtocolVersion).interfaceId ||
super.supportsInterface(_interfaceId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {ERC20VotesUpgradeable} from "@openzeppelin/contracts-upgradeable/token/E
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {ERC165Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";

import {IProtocolVersion, ProtocolVersion} from "../../../utils/protocol/ProtocolVersion.sol";
import {DaoAuthorizableUpgradeable} from "../../../core/plugin/dao-authorizable/DaoAuthorizableUpgradeable.sol";
import {IDAO} from "../../../core/dao/IDAO.sol";
import {IGovernanceWrappedERC20} from "./IGovernanceWrappedERC20.sol";
Expand All @@ -30,8 +29,7 @@ contract GovernanceWrappedERC20 is
Initializable,
ERC165Upgradeable,
ERC20VotesUpgradeable,
ERC20WrapperUpgradeable,
ProtocolVersion
ERC20WrapperUpgradeable
{
/// @notice Calls the initialize function.
/// @param _token The underlying [ERC-20](https://eips.ethereum.org/EIPS/eip-20) token.
Expand Down Expand Up @@ -65,7 +63,6 @@ contract GovernanceWrappedERC20 is
_interfaceId == type(IERC20PermitUpgradeable).interfaceId ||
_interfaceId == type(IERC20MetadataUpgradeable).interfaceId ||
_interfaceId == type(IVotesUpgradeable).interfaceId ||
_interfaceId == type(IProtocolVersion).interfaceId ||
super.supportsInterface(_interfaceId);
}

Expand Down

0 comments on commit 9e8cbf9

Please sign in to comment.