Skip to content

Commit

Permalink
disable upgradeable
Browse files Browse the repository at this point in the history
  • Loading branch information
tnkshuuhei committed Oct 11, 2024
1 parent d0a79e4 commit 21b8d5b
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions src/CEP.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

import { IEAS, Attestation, AttestationRequest, AttestationRequestData } from "eas-contracts/IEAS.sol";
import { ISchemaRegistry } from "eas-contracts/ISchemaRegistry.sol";
Expand All @@ -20,7 +18,7 @@ import "./libraries/Metadata.sol";
import "./eas/AttesterResolver.sol";

// Comprehensive Evaluation Protocol
contract CEP is Initializable, OwnableUpgradeable, AccessControlUpgradeable, ReentrancyGuardUpgradeable, Errors {
contract CEP is AccessControl, ReentrancyGuard, Errors {
uint256 public evaluationCount;

address payable public treasury;
Expand Down Expand Up @@ -55,26 +53,14 @@ contract CEP is Initializable, OwnableUpgradeable, AccessControlUpgradeable, Ree
_;
}

/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}

function initialize(
constructor(
address _owner,
address _treasury,
CEPGovernor _gonernor,
VotingCEPToken _token,
IEAS _eas,
ISchemaRegistry _schemaRegistry
)
public
initializer
{
__Ownable_init(_owner);
__AccessControl_init();
__ReentrancyGuard_init();

) {
_grantRole(DEFAULT_ADMIN_ROLE, _owner);

_updateTreasury(payable(_treasury));
Expand Down

0 comments on commit 21b8d5b

Please sign in to comment.