refactor: rename `SNTPlaceHolder` to `SNTOptimismController` (#19)
As discussed in https://github.com/logos-co/optimism-bridge-snt/pull/17#discussion_r1347332217
This commit is contained in:
parent
fe1a4e96ab
commit
c0a035c073
|
@ -29,7 +29,7 @@ import { Ownable2Step } from "@openzeppelin/contracts/access/Ownable2Step.sol";
|
|||
/// The contract allows for SNT transfers and transferFrom and implements the
|
||||
/// logic for transferring control of the token to the network when the offering
|
||||
/// asks it to do so.
|
||||
contract SNTPlaceHolder is TokenController, Ownable2Step {
|
||||
contract SNTOptimismController is TokenController, Ownable2Step {
|
||||
MiniMeBase public snt;
|
||||
|
||||
constructor(address payable _snt) {
|
|
@ -5,10 +5,10 @@ import { MiniMeBase } from "@vacp2p/minime/contracts/MiniMeBase.sol";
|
|||
import { BaseScript } from "./Base.s.sol";
|
||||
import { DeploymentConfig } from "./DeploymentConfig.s.sol";
|
||||
import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol";
|
||||
import { SNTPlaceHolder } from "../contracts/SNTPlaceHolder.sol";
|
||||
import { SNTOptimismController } from "../contracts/SNTOptimismController.sol";
|
||||
|
||||
contract DeployBridge is BaseScript {
|
||||
function run() public returns (DeploymentConfig, OptimismMintableMiniMeToken, SNTPlaceHolder) {
|
||||
function run() public returns (DeploymentConfig, OptimismMintableMiniMeToken, SNTOptimismController) {
|
||||
DeploymentConfig deploymentConfig = new DeploymentConfig(broadcaster);
|
||||
(
|
||||
address deployer,
|
||||
|
@ -33,7 +33,7 @@ contract DeployBridge is BaseScript {
|
|||
tokenSymbol,
|
||||
transferEnabled
|
||||
);
|
||||
SNTPlaceHolder tokenController = new SNTPlaceHolder(payable(address(bridgeToken)));
|
||||
SNTOptimismController tokenController = new SNTOptimismController(payable(address(bridgeToken)));
|
||||
bridgeToken.changeController(payable(address(tokenController)));
|
||||
vm.stopBroadcast();
|
||||
return (deploymentConfig, bridgeToken, tokenController);
|
||||
|
|
|
@ -6,11 +6,11 @@ import { DeployBridge } from "../script/DeployBridge.s.sol";
|
|||
import { DeploymentConfig } from "../script/DeploymentConfig.s.sol";
|
||||
|
||||
import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol";
|
||||
import { SNTPlaceHolder } from "../contracts/SNTPlaceHolder.sol";
|
||||
import { SNTOptimismController } from "../contracts/SNTOptimismController.sol";
|
||||
|
||||
contract OptmismMintableMiniMeTokenTest is Test {
|
||||
DeploymentConfig internal deploymentConfig;
|
||||
SNTPlaceHolder internal tokenController;
|
||||
SNTOptimismController internal tokenController;
|
||||
OptimismMintableMiniMeToken internal bridgeToken;
|
||||
|
||||
address internal deployer;
|
||||
|
|
Loading…
Reference in New Issue