Move bridge config to Run

This commit is contained in:
IshaVenikar 2024-07-19 11:58:45 +05:30
parent 6285bc0102
commit de50a4d9be
2 changed files with 19 additions and 16 deletions

View File

@ -220,7 +220,7 @@ laconic-so deployment --dir laconic-console-deployment start
```bash
# Note:
# Edit the staking amount and other fields as required
# Replace <your-node-moniker> with your node's moniker for "moniker" field and the file name in command below
# Replace <your-node-moniker> with your node's moniker in command below
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat <<EOF > <your-node-moniker>-validator.json
{

View File

@ -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)