From 04fd1b8d9da36b3fe13484364bffe2f94b38fb65 Mon Sep 17 00:00:00 2001 From: bap2pecs <111917526+bap2pecs@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:14:48 -0500 Subject: [PATCH] chore: decouple `l2-bridge-set-env` from `l2-bridge-start` (#46) --- .env.bridge.example | 3 ++- Makefile | 6 +++++- scripts/l2/l2-stop.sh | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.env.bridge.example b/.env.bridge.example index c0c97a7..e364036 100644 --- a/.env.bridge.example +++ b/.env.bridge.example @@ -1,6 +1,7 @@ NEXT_PUBLIC_L1_CHAIN_ID=11155111 NEXT_PUBLIC_L1_CHAIN_NAME="Sepolia" -NEXT_PUBLIC_L1_RPC_URL=https://sepolia.infura.io/v3/ +# WARNING: The RPC URL is exposed to the browser client. We recommend using a public RPC URL. +NEXT_PUBLIC_L1_RPC_URL=https://rpc.ankr.com/eth_sepolia NEXT_PUBLIC_L1_EXPLORER_URL=https://sepolia.etherscan.io/ NEXT_PUBLIC_L2_CHAIN_ID=11155420 NEXT_PUBLIC_L2_CHAIN_NAME="Optimism Sepolia" diff --git a/Makefile b/Makefile index 91c8f37..a7a8636 100644 --- a/Makefile +++ b/Makefile @@ -96,9 +96,13 @@ l2-bridge-deploy-l1-multicall: @$(CURDIR)/scripts/l2-bridge/l2-bridge-deploy-l1-multicall.sh .PHONY: l2-bridge-deploy-l1-multicall +## Set the environment variables for the OP Bridge UI +l2-bridge-set-env: + @$(CURDIR)/scripts/l2-bridge/l2-bridge-set-env.sh +.PHONY: l2-bridge-set-env + ## Launch the OP Bridge UI l2-bridge-start: - @$(CURDIR)/scripts/l2-bridge/l2-bridge-set-env.sh @docker compose -f docker/docker-compose-l2.yml up -d op-bridge-ui .PHONY: l2-bridge-start diff --git a/scripts/l2/l2-stop.sh b/scripts/l2/l2-stop.sh index 766916a..3ef55e9 100755 --- a/scripts/l2/l2-stop.sh +++ b/scripts/l2/l2-stop.sh @@ -5,8 +5,8 @@ set -euo pipefail echo "Stopping and removing OP chain containers..." docker compose -f docker/docker-compose-l2.yml down -# Remove the .deploy directory -rm -rf "$(pwd)/.deploy" +# Remove(Move) the .deploy directory +sudo mv "$(pwd)/.deploy" "$(pwd)/.deploy-deprecated-$(date +%Y%m%d%H%M%S)" # Remove the op-chain-deployment volume echo "Removing the op-chain-deployment volume..."