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

deploy: standard bridge w/ docker #82

Merged
merged 4 commits into from
Feb 1, 2024
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ARG PRIVATE_KEY
ARG CHAIN_ID
ARG DEPLOY_TYPE
ARG HYP_ERC20_ADDR
ARG RELAYER_ADDR

RUN chmod +x entrypoint.sh

Expand Down
16 changes: 16 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,20 @@ elif [ "$DEPLOY_TYPE" = "whitelist" ]; then
fi
echo "Deploying whitelist contract"
HYP_ERC20_ADDR="$HYP_ERC20_ADDR" $FORGE_BIN_PATH script ${SCRIPT_PATH_PREFIX}DeployScripts.s.sol:DeployWhitelist --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --chain-id $CHAIN_ID -vvvv --use 0.8.23 $ROOT_OPTION

elif [ "$DEPLOY_TYPE" = "settlement-gateway" ]; then
if [ -z "$RELAYER_ADDR" ]; then
echo "RELAYER_ADDR not specified"
exit 1
fi
echo "Deploying gateway contract on settlement chain"
RELAYER_ADDR="$RELAYER_ADDR" $FORGE_BIN_PATH script ${SCRIPT_PATH_PREFIX}DeployStandardBridge.s.sol:DeploySettlementGateway --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --chain-id $CHAIN_ID -vvvv --use 0.8.23 $ROOT_OPTION

elif [ "$DEPLOY_TYPE" = "l1-gateway" ]; then
if [ -z "$RELAYER_ADDR" ]; then
echo "RELAYER_ADDR not specified"
exit 1
fi
echo "Deploying gateway contract on L1"
RELAYER_ADDR="$RELAYER_ADDR" $FORGE_BIN_PATH script ${SCRIPT_PATH_PREFIX}DeployStandardBridge.s.sol:DeployL1Gateway --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --chain-id $CHAIN_ID -vvvv --use 0.8.23 $ROOT_OPTION
fi
Loading