Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename SNTPlaceHolder to SNTOptimismController #19

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions script/DeployBridge.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions test/OptimismMintableMiniMeToken.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down