Commit 48c7965f authored by Maurelian's avatar Maurelian

feat(ctb): Remove MCP from OptimismMintableERC20Factory

parent 10b06fb4
......@@ -2,9 +2,7 @@
pragma solidity 0.8.15;
import { OptimismMintableERC20 } from "src/universal/OptimismMintableERC20.sol";
import { Initializable } from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import { ISemver } from "src/universal/ISemver.sol";
import { Constants } from "src/libraries/Constants.sol";
/// @custom:proxied
/// @custom:predeployed 0x4200000000000000000000000000000000000012
......@@ -13,10 +11,9 @@ import { Constants } from "src/libraries/Constants.sol";
/// contracts on the network it's deployed to. Simplifies the deployment process for users
/// who may be less familiar with deploying smart contracts. Designed to be backwards
/// compatible with the older StandardL2ERC20Factory contract.
contract OptimismMintableERC20Factory is ISemver, Initializable {
contract OptimismMintableERC20Factory is ISemver {
/// @notice Address of the StandardBridge on this chain.
/// @custom:network-specific
address public bridge;
address public immutable BRIDGE;
/// @custom:legacy
/// @notice Emitted whenever a new OptimismMintableERC20 is created. Legacy version of the newer
......@@ -31,28 +28,16 @@ contract OptimismMintableERC20Factory is ISemver, Initializable {
/// @param deployer Address of the account that deployed the token.
event OptimismMintableERC20Created(address indexed localToken, address indexed remoteToken, address deployer);
/// @notice Semantic version.
/// @custom:semver 1.7.0
string public constant version = "1.7.0";
/// @notice The semver MUST be bumped any time that there is a change in
/// the OptimismMintableERC20 token contract since this contract
/// is responsible for deploying OptimismMintableERC20 contracts.
constructor() {
initialize({ _bridge: address(0) });
}
/// @notice Semantic version.
/// @custom:semver 1.8.0
string public constant version = "1.8.0";
/// @notice Initializer.
/// @param _bridge Address of the StandardBridge on this chain.
function initialize(address _bridge) public reinitializer(Constants.INITIALIZER) {
bridge = _bridge;
}
/// @notice Returns the address of the StandardBridge on this chain.
/// This is a legacy getter, use `bridge` instead.
/// @custom:legacy
function BRIDGE() external view returns (address) {
return bridge;
constructor(address _bridge) {
BRIDGE = _bridge;
}
/// @custom:legacy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment