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

chore(protocol): update L1 deployment script to set treasure address #13545

Merged
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
4 changes: 4 additions & 0 deletions packages/protocol/script/DeployOnL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ contract DeployOnL1 is Script, AddressResolver {

address public soloProposer = vm.envAddress("SOLO_PROPOSER");

address public treasure = vm.envAddress("TREASURE");

address public taikoTokenPremintRecipient =
vm.envAddress("TAIKO_TOKEN_PREMINT_RECIPIENT");

Expand All @@ -50,6 +52,7 @@ contract DeployOnL1 is Script, AddressResolver {
require(l2ChainId != block.chainid, "same chainid");
require(owner != address(0), "owner is zero");
require(taikoL2Address != address(0), "taikoL2Address is zero");
require(treasure != address(0), "treasure is zero");
require(
taikoTokenPremintRecipient != address(0),
"taikoTokenPremintRecipient is zero"
Expand All @@ -72,6 +75,7 @@ contract DeployOnL1 is Script, AddressResolver {
setAddress(l2ChainId, "taiko", taikoL2Address);
setAddress("oracle_prover", oracleProver);
setAddress("solo_proposer", soloProposer);
setAddress(l2ChainId, "treasure", treasure);

// TaikoToken
TaikoToken taikoToken = new TaikoToken();
Expand Down
5 changes: 1 addition & 4 deletions packages/protocol/script/deploy_on_l1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ OWNER=0x70997970C51812dc3A010C7d01b50e0d17dc79C8 \
TAIKO_L2_ADDRESS=0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 \
TAIKO_TOKEN_PREMINT_RECIPIENT=0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 \
TAIKO_TOKEN_PREMINT_AMOUNT=0xffff \
TREASURE=0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 \
L2_GENESIS_HASH=0xee1950562d42f0da28bd4550d88886bc90894c77c9c9eaefef775d4c8223f259 \
L2_CHAIN_ID=167001 \
L2_GAS_EXCESS_MAX=3840000000 \
L2_BASE_FEE=5000000000 \
L2_GAS_TARGET=6000000 \
L2_EXPECTED_2X1X_RATIO=111 \
forge script script/DeployOnL1.s.sol:DeployOnL1 \
--fork-url http://localhost:8545 \
--broadcast \
Expand Down