Skip to content

Commit

Permalink
Merge pull request #82 from primevprotocol/standard-bridge-deploy-upd…
Browse files Browse the repository at this point in the history
…ates

deploy: standard bridge w/ docker
  • Loading branch information
shaspitz authored Feb 1, 2024
2 parents de30f89 + 640af07 commit 560b093
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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

0 comments on commit 560b093

Please sign in to comment.