Skip to content

Commit

Permalink
feat(protocol): update deployment script based on #13711
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed May 7, 2023
1 parent e460e01 commit 0b1a1f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/protocol/script/DeployOnL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contract DeployOnL1 is Script {
);

// TaikoL1
taikoL1 = new TaikoL1();
taikoL1 = new ProxiedTaikoL1();
uint256 l2ChainId = taikoL1.getConfig().chainId;
require(l2ChainId != block.chainid, "same chainid");

Expand All @@ -89,7 +89,7 @@ contract DeployOnL1 is Script {
setAddress(l2ChainId, "treasure", treasure);

// TaikoToken
TaikoToken taikoToken = new TaikoToken();
TaikoToken taikoToken = new ProxiedTaikoToken();

address[] memory premintRecipients = new address[](1);
uint256[] memory premintAmounts = new uint256[](1);
Expand Down Expand Up @@ -147,15 +147,15 @@ contract DeployOnL1 is Script {
setAddress("proto_broker", taikoL1Proxy);

// Bridge
Bridge bridge = new Bridge();
Bridge bridge = new ProxiedBridge();
deployProxy(
"bridge",
address(bridge),
bytes.concat(bridge.init.selector, abi.encode(addressManagerProxy))
);

// TokenVault
TokenVault tokenVault = new TokenVault();
TokenVault tokenVault = new ProxiedTokenVault();
deployProxy(
"token_vault",
address(tokenVault),
Expand All @@ -167,7 +167,7 @@ contract DeployOnL1 is Script {

// SignalService
if (sharedSignalService == address(0)) {
SignalService signalService = new SignalService();
SignalService signalService = new ProxiedSignalService();
deployProxy(
"signal_service",
address(signalService),
Expand Down

0 comments on commit 0b1a1f5

Please sign in to comment.