From 54a761bc42ad98dcfb0fa7d3cdab563ad0b22e35 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Thu, 5 Oct 2023 14:43:26 +0200 Subject: [PATCH] refactor: rename `SNTPlaceHolder` to `SNTOptimismController` As discussed in https://github.com/logos-co/optimism-bridge-snt/pull/17#discussion_r1347332217 --- contracts/{SNTPlaceHolder.sol => SNTOptimismController.sol} | 2 +- script/DeployBridge.s.sol | 6 +++--- test/OptimismMintableMiniMeToken.t.sol | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename contracts/{SNTPlaceHolder.sol => SNTOptimismController.sol} (97%) diff --git a/contracts/SNTPlaceHolder.sol b/contracts/SNTOptimismController.sol similarity index 97% rename from contracts/SNTPlaceHolder.sol rename to contracts/SNTOptimismController.sol index 37bd5cc..c25c45b 100644 --- a/contracts/SNTPlaceHolder.sol +++ b/contracts/SNTOptimismController.sol @@ -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) { diff --git a/script/DeployBridge.s.sol b/script/DeployBridge.s.sol index c69d1fa..f82cc3a 100644 --- a/script/DeployBridge.s.sol +++ b/script/DeployBridge.s.sol @@ -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); diff --git a/test/OptimismMintableMiniMeToken.t.sol b/test/OptimismMintableMiniMeToken.t.sol index 3a4906b..c593e6e 100644 --- a/test/OptimismMintableMiniMeToken.t.sol +++ b/test/OptimismMintableMiniMeToken.t.sol @@ -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;