From 8f614ed374c6b2bfc36fbb709299b9678f615721 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Tue, 22 Oct 2024 11:33:59 +0530 Subject: [PATCH] Update instructions for setting deployments directory --- testnet-nitro-node.md | 44 +++++++++---------------------------------- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git a/testnet-nitro-node.md b/testnet-nitro-node.md index 464faf9..bcfb688 100644 --- a/testnet-nitro-node.md +++ b/testnet-nitro-node.md @@ -28,43 +28,17 @@ ```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_chain_url: "" - # na_address: "" - # ca_address: "" - # vpa_address: "" - # bridge_nitro_address: "" - # nitro_l1_bridge_multiaddr: "" - # nitro_l2_bridge_multiaddr: "" ``` * Fetch required asset addresses: ```bash wget -O assets.json https://git.vdb.to/cerc-io/testnet-laconicd-stack/raw/branch/main/ops/stage2/assets.json - - # Example output: - # { - # "1212": [ - # { - # "name": "geth", - # "chainId": "1212", - # "contracts": { - # "TestToken": { - # "address": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9" - # }, - # "TestToken2": { - # "address": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - # } - # } - # } - # ] - # } ``` -* Request tokens for your address from Laconic +* Ask testnet operator to send L1 tokens to your chain address + + * [Reference doc for operators](./ops/nitro-token-ops.md) * Edit `nitro-vars.yml` and add the following variables: @@ -90,15 +64,15 @@ nitro_l2_ext_multiaddr: "" ``` -* Update the target dir in `setup-vars.yml`: +* Edit the `setup-vars.yml` to update the target directory: ```bash - # Set path to desired deployments dir (under your user) - DEPLOYMENTS_DIR= + # Set absolute path to desired deployments directory (under your user) + ... + nitro_directory: + ... - sed -i "s|^nitro_directory:.*|nitro_directory: $DEPLOYMENTS_DIR/nitro-node|" setup-vars.yml - - # Will create deployments at $DEPLOYMENTS_DIR/nitro-node/l1-nitro-deployment and $DEPLOYMENTS_DIR/nitro-node/l2-nitro-deployment + # Will create deployments at /nitro-node/l1-nitro-deployment and /nitro-node/l2-nitro-deployment ``` ## Run Nitro Nodes