diff --git a/testnet-onboarding-demo.md b/testnet-onboarding-demo.md index aa2a144..f79a38c 100644 --- a/testnet-onboarding-demo.md +++ b/testnet-onboarding-demo.md @@ -336,23 +336,13 @@ - Create a spec-file for the deployment, map container ports to host ports and set env variables: ```bash - laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge deploy init --map-ports-to-host any-same --output bridge-nitro-spec.yml --config CERC_NITRO_L1_CHAIN_URL=ws://host.docker.internal:8546, \ - CERC_NITRO_L2_CHAIN_URL=ws://host.docker.internal:9546, \ - CERC_NITRO_CHAIN_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218, \ - CERC_NITRO_SC_PK=0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4, \ - CERC_GETH_URL=http://host.docker.internal:8545, \ - CERC_OPTIMISM_URL=http://host.docker.internal:9545, \ - CERC_GETH_DEPLOYER_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218, \ - CERC_OPTIMISM_DEPLOYER_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218, \ - CERC_TOKEN_NAME=LaconicNetworkToken, \ - CERC_TOKEN_SYMBOL=LNT, \ - CERC_INITIAL_TOKEN_SUPPLY=10000000, \ + laconic-so --stack ~/projects/ds-repos/nitro-stack/stack-orchestrator/stacks/bridge deploy init --map-ports-to-host any-same --output bridge-nitro-spec.yml --config 'CERC_NITRO_L1_CHAIN_URL=ws://host.docker.internal:8546,CERC_NITRO_L2_CHAIN_URL=ws://host.docker.internal:9546,CERC_NITRO_CHAIN_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218,CERC_NITRO_SC_PK=0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4,CERC_GETH_URL=http://host.docker.internal:8545,CERC_OPTIMISM_URL=http://host.docker.internal:9545,CERC_GETH_DEPLOYER_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218,CERC_OPTIMISM_DEPLOYER_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218,CERC_TOKEN_NAME=LaconicNetworkToken,CERC_TOKEN_SYMBOL=LNT,CERC_INITIAL_TOKEN_SUPPLY=10000000' ``` - Create a deployment from the spec file: ```bash - laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge deploy create --spec-file bridge-spec.yml --deployment-dir bridge-deployment + laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge deploy create --spec-file bridge-nitro-spec.yml --deployment-dir bridge-deployment #### Nitro-node Stack @@ -539,27 +529,6 @@ # 100000000000000000 ``` -- In `bridge-nitro-deployment/config.env` file, set the following env variable: - - ```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 - - # Private key of the account on chain that is used for funding channels in Nitro node - CERC_NITRO_CHAIN_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218 - - CERC_NITRO_SC_PK=0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4 - - CERC_GETH_URL=http://host.docker.internal:8545 - CERC_OPTIMISM_URL=http://host.docker.internal:9545 - CERC_GETH_DEPLOYER_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218 - CERC_OPTIMISM_DEPLOYER_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218 - CERC_TOKEN_NAME=LaconicNetworkToken - CERC_TOKEN_SYMBOL=LNT - CERC_INITIAL_TOKEN_SUPPLY=10000000 - ``` - - Start the nitro bridge ```bash @@ -575,7 +544,7 @@ ```bash - export L1_ASSET_ADDRESS="" + export L1_ASSET_ADDRESS="$(laconic-so deployment --dir bridge-deployment exec nitro-contracts "jq -r '.\"1212\"[0].contracts.Token.address' /app/deployment/nitro-addresses.json")" export A_CHAIN_ADDRESS="0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a" export C_CHAIN_ADDRESS="0xf1ac8Dd1f6D6F5c0dA99097c57ebF50CD99Ce293" ``` @@ -584,10 +553,10 @@ ```bash # Send tokens to Alice - laconic-so deployment --dir bridge-deployment exec nitro-bridge yarn hardhat transfer --contract $L1_ASSET_ADDRESS --to $A_CHAIN_ADDRESS --amount 1000 --network geth + laconic-so deployment --dir bridge-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $L1_ASSET_ADDRESS --to $A_CHAIN_ADDRESS --amount 1000 --network geth" #Send tokens to Charlie - laconic-so deployment --dir bridge-deployment exec nitro-bridge yarn hardhat transfer --contract $L1_ASSET_ADDRESS --to $C_CHAIN_ADDRESS --amount 1000 --network geth + laconic-so deployment --dir bridge-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $L1_ASSET_ADDRESS --to $C_CHAIN_ADDRESS --amount 1000 --network geth" ``` - Start testnet-onboarding-app (run command in testnet-onboarding-app repo)