Add demo readme for onboarding testnet participants #6
@ -298,7 +298,7 @@
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
@ -546,19 +546,6 @@
|
||||
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
|
||||
|
||||
- Start the stack for stage 0 laconicd (run command in directory where stage0-deployment had been created)
|
||||
@ -574,21 +561,35 @@
|
||||
|
||||
- Fund accounts on laconicd:
|
||||
- Export laconic addresses of Alice and Charlie (take the addresses from laconic wallet):
|
||||
|
||||
```bash
|
||||
export A_LACONIC_ADDRESS=<Alice Laconic address>
|
||||
export C_LACONIC_ADDRESS=<Charlie Laconic address>
|
||||
```
|
||||
|
||||
- Send photons from funded account to Alice and Charlie:
|
||||
|
||||
```bash
|
||||
# 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"
|
||||
|
||||
# Send funds from funded account to Charlie
|
||||
laconic-so deployment --dir stage0-deployment exec laconicd "laconicd tx bank send alice $C_LACONIC_ADDRESS 100000000000photon --fees 100photon --keyring-backend test"
|
||||
```
|
||||
|
||||
TODO: Use a faucet for funding accounts
|
||||
|
||||
- Go to go-nitro repo root and start the nitro bridge using CLI:
|
||||
|
||||
```bash
|
||||
export A_LACONIC_ADDRESS=<Alice Laconic address>
|
||||
export C_LACONIC_ADDRESS=<Charlie Laconic address>
|
||||
# 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
|
||||
```
|
||||
|
||||
- Send photons from funded account to Alice and Charlie:
|
||||
```bash
|
||||
# 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"
|
||||
|
||||
# Send funds from funded account to Charlie
|
||||
laconic-so deployment --dir stage0-deployment exec laconicd "laconicd tx bank send alice $C_LACONIC_ADDRESS 100000000000photon --fees 100photon --keyring-backend test"
|
||||
```
|
||||
|
||||
TODO: Use a faucet for funding accounts
|
||||
- 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:
|
||||
|
Loading…
Reference in New Issue
Block a user