From de50a4d9be85f01f281fb3fcb427e16414b72e52 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Fri, 19 Jul 2024 11:58:45 +0530 Subject: [PATCH] Move bridge config to Run --- .../stacks/testnet-laconicd/README.md | 2 +- testnet-onboarding-demo.md | 33 ++++++++++--------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/stack-orchestrator/stacks/testnet-laconicd/README.md b/stack-orchestrator/stacks/testnet-laconicd/README.md index 28664b6..c7b32ff 100644 --- a/stack-orchestrator/stacks/testnet-laconicd/README.md +++ b/stack-orchestrator/stacks/testnet-laconicd/README.md @@ -220,7 +220,7 @@ laconic-so deployment --dir laconic-console-deployment start ```bash # Note: # Edit the staking amount and other fields as required - # Replace with your node's moniker for "moniker" field and the file name in command below + # Replace with your node's moniker in command below laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat < -validator.json { diff --git a/testnet-onboarding-demo.md b/testnet-onboarding-demo.md index b4c9e56..e9bee6f 100644 --- a/testnet-onboarding-demo.md +++ b/testnet-onboarding-demo.md @@ -670,24 +670,27 @@ yarn hardhat transfer --contract $L1_ASSET_ADDRESS --to $C_CHAIN_ADDRESS --amount 1000 --network geth ``` -- Go to go-nitro repo root +- In `bridge-nitro-deployment/config.env` file, set the following env variable: - ```bash - cd ../../ - ``` + ```bash + # URL endpoint of the L2 and L2 chains + CERC_NITRO_L1_CHAIN_URL=ws://host.docker.internal:8546 + CERC_NITRO_L2_CHAIN_URL=ws://host.docker.internal:9546 -- Update `cmd/test-configs/bridge.toml` config file + # Private key of the account on chain that is used for funding channels in Nitro node + CERC_NITRO_CHAIN_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218 - ```bash - chainpk = "888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218" - statechannelpk = "0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4" - l1chainurl = "ws://127.0.0.1:8546" - l2chainurl = "ws://127.0.0.1:9546" - nodel1msgport = 3005 - nodel2msgport = 3006 - rpcport = 4006 - assetmapfilepath = "bridge-assets-map.toml" - ``` + CERC_NITRO_SC_PK=0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4 + + # Port to be used by P2P message service + CERC_NITRO_L1_MSG_PORT=3005 + CERC_NITRO_L2_MSG_PORT=3006 + + # Port to be used by RPC server + CERC_NITRO_RPC_PORT=4006 + + CERC_NITRO_PUBLIC_P2P_HOST= + ``` - Start testnet-onboarding-app (run command in testnet-onboarding-app repo)