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
|
/// The contract allows for SNT transfers and transferFrom and implements the
|
||||||
/// logic for transferring control of the token to the network when the offering
|
/// logic for transferring control of the token to the network when the offering
|
||||||
/// asks it to do so.
|
/// asks it to do so.
|
||||||
contract SNTPlaceHolder is TokenController, Ownable2Step {
|
contract SNTOptimismController is TokenController, Ownable2Step {
|
||||||
MiniMeBase public snt;
|
MiniMeBase public snt;
|
||||||
|
|
||||||
constructor(address payable _snt) {
|
constructor(address payable _snt) {
|
|
@ -5,10 +5,10 @@ import { MiniMeBase } from "@vacp2p/minime/contracts/MiniMeBase.sol";
|
||||||
import { BaseScript } from "./Base.s.sol";
|
import { BaseScript } from "./Base.s.sol";
|
||||||
import { DeploymentConfig } from "./DeploymentConfig.s.sol";
|
import { DeploymentConfig } from "./DeploymentConfig.s.sol";
|
||||||
import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol";
|
import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol";
|
||||||
import { SNTPlaceHolder } from "../contracts/SNTPlaceHolder.sol";
|
import { SNTOptimismController } from "../contracts/SNTOptimismController.sol";
|
||||||
|
|
||||||
contract DeployBridge is BaseScript {
|
contract DeployBridge is BaseScript {
|
||||||
function run() public returns (DeploymentConfig, OptimismMintableMiniMeToken, SNTPlaceHolder) {
|
function run() public returns (DeploymentConfig, OptimismMintableMiniMeToken, SNTOptimismController) {
|
||||||
DeploymentConfig deploymentConfig = new DeploymentConfig(broadcaster);
|
DeploymentConfig deploymentConfig = new DeploymentConfig(broadcaster);
|
||||||
(
|
(
|
||||||
address deployer,
|
address deployer,
|
||||||
|
@ -33,7 +33,7 @@ contract DeployBridge is BaseScript {
|
||||||
tokenSymbol,
|
tokenSymbol,
|
||||||
transferEnabled
|
transferEnabled
|
||||||
);
|
);
|
||||||
SNTPlaceHolder tokenController = new SNTPlaceHolder(payable(address(bridgeToken)));
|
SNTOptimismController tokenController = new SNTOptimismController(payable(address(bridgeToken)));
|
||||||
bridgeToken.changeController(payable(address(tokenController)));
|
bridgeToken.changeController(payable(address(tokenController)));
|
||||||
vm.stopBroadcast();
|
vm.stopBroadcast();
|
||||||
return (deploymentConfig, bridgeToken, tokenController);
|
return (deploymentConfig, bridgeToken, tokenController);
|
||||||
|
|
|
@ -6,11 +6,11 @@ import { DeployBridge } from "../script/DeployBridge.s.sol";
|
||||||
import { DeploymentConfig } from "../script/DeploymentConfig.s.sol";
|
import { DeploymentConfig } from "../script/DeploymentConfig.s.sol";
|
||||||
|
|
||||||
import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol";
|
import { OptimismMintableMiniMeToken } from "../contracts/optimism/OptimismMintableMiniMeToken.sol";
|
||||||
import { SNTPlaceHolder } from "../contracts/SNTPlaceHolder.sol";
|
import { SNTOptimismController } from "../contracts/SNTOptimismController.sol";
|
||||||
|
|
||||||
contract OptmismMintableMiniMeTokenTest is Test {
|
contract OptmismMintableMiniMeTokenTest is Test {
|
||||||
DeploymentConfig internal deploymentConfig;
|
DeploymentConfig internal deploymentConfig;
|
||||||
SNTPlaceHolder internal tokenController;
|
SNTOptimismController internal tokenController;
|
||||||
OptimismMintableMiniMeToken internal bridgeToken;
|
OptimismMintableMiniMeToken internal bridgeToken;
|
||||||
|
|
||||||
address internal deployer;
|
address internal deployer;
|
||||||
|
|
Loading…
Reference in New Issue