Add instructions to setup and run testnet L2 and Nitro deployments #26

Merged
nabarun merged 22 commits from sk-l2-setup into main 2024-09-12 13:31:18 +00:00
2 changed files with 31 additions and 15 deletions
Showing only changes of commit 2c7077d2f7 - Show all commits

View File

@ -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 @@
* <github.com/ethereum-optimism/optimism@v1.7.7>
* <github.com/ethereum-optimism/op-geth@v1.101315.2>
* 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

View File

@ -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`: