diff --git a/ops/deployments-from-scratch.md b/ops/deployments-from-scratch.md index 3fadedf..7e1c946 100644 --- a/ops/deployments-from-scratch.md +++ b/ops/deployments-from-scratch.md @@ -60,40 +60,34 @@ 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 # L1 chain ID (Sepolia: 11155111) - CERC_L1_CHAIN_ID=11155111 + l1_chain_id: "11155111" # L1 RPC endpoint - CERC_L1_RPC= + l1_rpc: "" # L1 RPC endpoint host or IP address - CERC_L1_HOST= + l1_host: "" # L1 RPC endpoint port number - CERC_L1_PORT= + l1_port: "" # L1 Beacon endpoint - CERC_L1_BEACON= + l1_beacon: "" # Account credentials for the Admin account # Used for Optimism contracts deployment and funding other generated accounts - CERC_L1_ADDRESS= - CERC_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= + l1_address: "" + l1_priv_key: "" ``` -* Update the target dir in `vars.yml`: +* Update the target dir in `setup-vars.yml`: ```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 ``` @@ -156,16 +150,16 @@ 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 # L1 WS endpoint - l1_nitro_chain_url: "" + nitro_l1_chain_url: "" # 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: "" # Private key for a funded account on L1 @@ -181,12 +175,12 @@ # L2 RPC endpoint optimism_url: "" - # Private key for a funded account on L1 to use for contracts deployment on L1 - geth_deployer_pk: '' + # Private key for a funded account for L1 contracts deployment + 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 - optimism_deployer_pk: '' + optimism_deployer_pk: "" ``` * Update the target dir in `setup-vars.yml`: