From 2c7077d2f785ee8683c1a87ca47e784f6dec412a Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 5 Sep 2024 12:36:41 +0530 Subject: [PATCH] Fill in values for L2 deployment config --- ops/deployments-from-scratch.md | 18 +++++++++--------- testnet-nitro-node.md | 28 ++++++++++++++++++++++------ 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/ops/deployments-from-scratch.md b/ops/deployments-from-scratch.md index 7e1c946..3070555 100644 --- a/ops/deployments-from-scratch.md +++ b/ops/deployments-from-scratch.md @@ -10,7 +10,7 @@ cd /srv ``` -### Prerequisites +## Prerequisites * laconic-so: see [installation](https://git.vdb.to/cerc-io/stack-orchestrator#install) @@ -35,12 +35,12 @@ * * -* Target dir: `/srv/l2/optimism-deployment` +* Target dir: `/srv/op-sepolia/optimism-deployment` * Cleanup an existing deployment if required: ```bash - cd /srv/l2 + cd /srv/op-sepolia # Stop the deployment laconic-so deployment --dir optimism-deployment stop --delete-volumes @@ -67,16 +67,16 @@ l1_chain_id: "11155111" # L1 RPC endpoint - l1_rpc: "" + l1_rpc: "http://host.docker.internal:8545" # L1 RPC endpoint host or IP address - l1_host: "" + l1_host: "host.docker.internal" # L1 RPC endpoint port number - l1_port: "" + l1_port: "8545" # L1 Beacon endpoint - l1_beacon: "" + l1_beacon: "http://host.docker.internal:8001" # Account credentials for the Admin account # Used for Optimism contracts deployment and funding other generated accounts @@ -87,9 +87,9 @@ * Update the target dir in `setup-vars.yml`: ```bash - sed -i 's|^l2_directory:.*|l2_directory: /srv/l2|' setup-vars.yml + sed -i 's|^l2_directory:.*|l2_directory: /srv/op-sepolia|' setup-vars.yml - # Will create deployment at /srv/l2/optimism-deployment + # Will create deployment at /srv/op-sepolia/optimism-deployment ``` ### Run diff --git a/testnet-nitro-node.md b/testnet-nitro-node.md index 0ed4d4a..3ff45e7 100644 --- a/testnet-nitro-node.md +++ b/testnet-nitro-node.md @@ -28,16 +28,25 @@ ```bash wget -O nitro-vars.yml https://git.vdb.to/cerc-io/testnet-laconicd-stack/raw/branch/main/ops/stage2/nitro-node-config.yml + + # Expected variables in the fetched config file: + + # nitro_l1_chain_url: "" + # nitro_l2_chain_url: "" + # na_address: "" + # vpa_address: "" + # ca_address: "" + # bridge_contract_address: "" + # bridge_nitro_address: "" + # nitro_l1_bridge_multiaddr: "" + # nitro_l2_bridge_multiaddr: "" ``` * TODO: Get Laconic tokens on your address -* Edit `nitro-vars.yml` and fill in the following values: +* Edit `nitro-vars.yml` and add the following variables: ```bash - # L1 WS endpoint - l1_nitro_chain_url: "" - # Private key for your Nitro address nitro_sc_pk: "" @@ -45,10 +54,17 @@ # This account should have Laconic tokens for funding your Nitro channels nitro_chain_pk: "" - # Multiaddr with publically accessible IP address / DNS for your nitro node + # Multiaddr with publically accessible IP address / DNS for your L1 nitro node + # Use port 3007 + # Example: "/ip4/192.168.x.y/tcp/3007" + # Example: "/dns4/example.com/tcp/3007" + nitro_l1_ext_multiaddr: "" + + # Multiaddr with publically accessible IP address / DNS for your L2 nitro node + # Use port 3009 # Example: "/ip4/192.168.x.y/tcp/3009" # Example: "/dns4/example.com/tcp/3009" - nitro_node_multiaddr: "" + nitro_l2_ext_multiaddr: "" ``` * Update the target dir in `setup-vars.yml`: