Commit 48c7965f authored by Maurelian's avatar Maurelian

feat(ctb): Remove MCP from OptimismMintableERC20Factory

parent 10b06fb4
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
pragma solidity 0.8.15; pragma solidity 0.8.15;
import { OptimismMintableERC20 } from "src/universal/OptimismMintableERC20.sol"; import { OptimismMintableERC20 } from "src/universal/OptimismMintableERC20.sol";
import { Initializable } from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import { ISemver } from "src/universal/ISemver.sol"; import { ISemver } from "src/universal/ISemver.sol";
import { Constants } from "src/libraries/Constants.sol";
/// @custom:proxied /// @custom:proxied
/// @custom:predeployed 0x4200000000000000000000000000000000000012 /// @custom:predeployed 0x4200000000000000000000000000000000000012
...@@ -13,10 +11,9 @@ import { Constants } from "src/libraries/Constants.sol"; ...@@ -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 /// 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 /// who may be less familiar with deploying smart contracts. Designed to be backwards
/// compatible with the older StandardL2ERC20Factory contract. /// compatible with the older StandardL2ERC20Factory contract.
contract OptimismMintableERC20Factory is ISemver, Initializable { contract OptimismMintableERC20Factory is ISemver {
/// @notice Address of the StandardBridge on this chain. /// @notice Address of the StandardBridge on this chain.
/// @custom:network-specific address public immutable BRIDGE;
address public bridge;
/// @custom:legacy /// @custom:legacy
/// @notice Emitted whenever a new OptimismMintableERC20 is created. Legacy version of the newer /// @notice Emitted whenever a new OptimismMintableERC20 is created. Legacy version of the newer
...@@ -31,28 +28,16 @@ contract OptimismMintableERC20Factory is ISemver, Initializable { ...@@ -31,28 +28,16 @@ contract OptimismMintableERC20Factory is ISemver, Initializable {
/// @param deployer Address of the account that deployed the token. /// @param deployer Address of the account that deployed the token.
event OptimismMintableERC20Created(address indexed localToken, address indexed remoteToken, address deployer); 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 /// @notice The semver MUST be bumped any time that there is a change in
/// the OptimismMintableERC20 token contract since this contract /// the OptimismMintableERC20 token contract since this contract
/// is responsible for deploying OptimismMintableERC20 contracts. /// is responsible for deploying OptimismMintableERC20 contracts.
constructor() { /// @notice Semantic version.
initialize({ _bridge: address(0) }); /// @custom:semver 1.8.0
} string public constant version = "1.8.0";
/// @notice Initializer.
/// @param _bridge Address of the StandardBridge on this chain. /// @param _bridge Address of the StandardBridge on this chain.
function initialize(address _bridge) public reinitializer(Constants.INITIALIZER) { constructor(address _bridge) {
bridge = _bridge; 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;
} }
/// @custom:legacy /// @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