Move the step to run bridge to Demo section

This commit is contained in:
Prathamesh Musale 2024-07-16 19:18:07 +05:30
parent 5c808de518
commit d3af85ec85

View File

@ -298,7 +298,7 @@
```bash ```bash
cd ~ cd ~
# 'yarn global' commands work only in Yarn versions below 2.x. # 'yarn global' commands only work with Yarn versions below 2.x.
yarn global add file:<go-nitro-repo-absolute-path>/packages/nitro-rpc-client yarn global add file:<go-nitro-repo-absolute-path>/packages/nitro-rpc-client
``` ```
@ -546,19 +546,6 @@
Gas Price - `200000` Gas Price - `200000`
``` ```
- Go to go-nitro repo root
- Start nitro bridge using CLI
```bash
# Export contract addresses stored in output files
source ./packages/nitro-protocol/hardhat-deployments/geth/.contracts.env
source ./packages/nitro-protocol/hardhat-deployments/optimism/.contracts.env
# Start bridge CLI
./nitro-bridge -config cmd/test-configs/bridge.toml
```
## Demo ## Demo
- Start the stack for stage 0 laconicd (run command in directory where stage0-deployment had been created) - Start the stack for stage 0 laconicd (run command in directory where stage0-deployment had been created)
@ -574,12 +561,14 @@
- Fund accounts on laconicd: - Fund accounts on laconicd:
- Export laconic addresses of Alice and Charlie (take the addresses from laconic wallet): - Export laconic addresses of Alice and Charlie (take the addresses from laconic wallet):
```bash ```bash
export A_LACONIC_ADDRESS=<Alice Laconic address> export A_LACONIC_ADDRESS=<Alice Laconic address>
export C_LACONIC_ADDRESS=<Charlie Laconic address> export C_LACONIC_ADDRESS=<Charlie Laconic address>
``` ```
- Send photons from funded account to Alice and Charlie: - Send photons from funded account to Alice and Charlie:
```bash ```bash
# Send funds from funded account to Alice # Send funds from funded account to Alice
laconic-so deployment --dir stage0-deployment exec laconicd "laconicd tx bank send alice $A_LACONIC_ADDRESS 100000000000photon --fees 100photon --keyring-backend test" laconic-so deployment --dir stage0-deployment exec laconicd "laconicd tx bank send alice $A_LACONIC_ADDRESS 100000000000photon --fees 100photon --keyring-backend test"
@ -589,6 +578,18 @@
``` ```
TODO: Use a faucet for funding accounts TODO: Use a faucet for funding accounts
- Go to go-nitro repo root and start the nitro bridge using CLI:
```bash
# Export contract addresses stored in output files
source ./packages/nitro-protocol/hardhat-deployments/geth/.contracts.env
source ./packages/nitro-protocol/hardhat-deployments/optimism/.contracts.env
# Start bridge CLI
./nitro-bridge -config cmd/test-configs/bridge.toml
```
- Get Ethereum private keys for accounts Alice and Charlie from `laconic-wallet` (to be used as statechannel PKs) - Get Ethereum private keys for accounts Alice and Charlie from `laconic-wallet` (to be used as statechannel PKs)
- Start nitro nodes for Alice and Charlie on L1 and L2: - Start nitro nodes for Alice and Charlie on L1 and L2: