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
Showing only changes of commit 1bf0066234 - Show all commits

View File

@ -60,40 +60,34 @@
cd testnet-ops/l2-setup cd testnet-ops/l2-setup
``` ```
* Edit `templates/configs/l2-config.env` and fill in the following values: * Edit `l2-vars.yml` with required values:
```bash ```bash
# L1 chain ID (Sepolia: 11155111) # L1 chain ID (Sepolia: 11155111)
CERC_L1_CHAIN_ID=11155111 l1_chain_id: "11155111"
# L1 RPC endpoint # L1 RPC endpoint
CERC_L1_RPC= l1_rpc: ""
# L1 RPC endpoint host or IP address # L1 RPC endpoint host or IP address
CERC_L1_HOST= l1_host: ""
# L1 RPC endpoint port number # L1 RPC endpoint port number
CERC_L1_PORT= l1_port: ""
# L1 Beacon endpoint # L1 Beacon endpoint
CERC_L1_BEACON= l1_beacon: ""
# Account credentials for the Admin account # Account credentials for the Admin account
# Used for Optimism contracts deployment and funding other generated accounts # Used for Optimism contracts deployment and funding other generated accounts
CERC_L1_ADDRESS= l1_address: ""
CERC_L1_PRIV_KEY= l1_priv_key: ""
# Funding amount for Optimism Proposer account on L1 (default: 0.2 ether)
CERC_L2_PROPOSER_AMOUNT=
# Funding amount for Optimism Batcher account on L1 (default: 0.1 ether)
CERC_L2_BATCHER_AMOUNT=
``` ```
* Update the target dir in `vars.yml`: * Update the target dir in `setup-vars.yml`:
```bash ```bash
sed -i 's|^l2_directory:.*|l2_directory: /srv/l2|' vars.yml sed -i 's|^l2_directory:.*|l2_directory: /srv/l2|' setup-vars.yml
# Will create deployment at /srv/l2/optimism-deployment # Will create deployment at /srv/l2/optimism-deployment
``` ```
@ -156,16 +150,16 @@
cp bridge-vars-example.yml bridge-vars.yml cp bridge-vars-example.yml bridge-vars.yml
``` ```
* Edit `bridge-vars.yml` and fill in the following values: * Edit `bridge-vars.yml` with required values:
```bash ```bash
# L1 WS endpoint # L1 WS endpoint
l1_nitro_chain_url: "" nitro_l1_chain_url: ""
# L2 WS endpoint # L2 WS endpoint
l2_nitro_chain_url: '' nitro_l2_chain_url: ""
# Private key for your Nitro address # Private key for bridge Nitro address
nitro_sc_pk: "" nitro_sc_pk: ""
# Private key for a funded account on L1 # Private key for a funded account on L1
@ -181,12 +175,12 @@
# L2 RPC endpoint # L2 RPC endpoint
optimism_url: "" optimism_url: ""
# Private key for a funded account on L1 to use for contracts deployment on L1 # Private key for a funded account for L1 contracts deployment
geth_deployer_pk: '' geth_deployer_pk: ""
# Private key for a funded account on L2 to use for contracts deployment on L2 # Private key for a funded account for L2 contracts deployment
# Use the same account for L1 and L2 deployments # Use the same account for L1 and L2 deployments
optimism_deployer_pk: '' optimism_deployer_pk: ""
``` ```
* Update the target dir in `setup-vars.yml`: * Update the target dir in `setup-vars.yml`: