Add expected output for commands in nitro-node readme
This commit is contained in:
parent
428e40a39c
commit
5610385b14
@ -297,6 +297,20 @@
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir alice-nitro-deployment exec nitro-rpc-client "nitro-rpc-client get-ledger-channel $LEDGER_CHANNEL_ID -p 4005 -h nitro-node"
|
||||
|
||||
# Expected output:
|
||||
# {
|
||||
# ID: '0x72e631943d8b89d9c70af7d3daa75a169fc84c84034ab77c850ceaf4a530a650',
|
||||
# Status: 'Open',
|
||||
# Balance: {
|
||||
# AssetAddress: '0x2b79f4a92c177b4e61f5c4ac37b1b8a623c665a4',
|
||||
# Me: '0x4b64e26da8279ab12bcd4ca9974ec2b4741e175e',
|
||||
# Them: '0x03eb7a84e286c671836b9897aae24b31d36f9ca8',
|
||||
# MyBalance: 1000000n,
|
||||
# TheirBalance: 1000000n
|
||||
# },
|
||||
# ChannelMode: 'Open'
|
||||
# }
|
||||
```
|
||||
|
||||
- Create virtual channel from Alice to Charlie
|
||||
@ -304,7 +318,23 @@
|
||||
```bash
|
||||
laconic-so deployment --dir alice-nitro-deployment exec nitro-rpc-client "nitro-rpc-client virtual-fund 0x03Eb7a84E286c671836b9897AaE24b31D36f9cA8 --amount 1000 -p 4005 -h nitro-node"
|
||||
|
||||
# Set the payment channel id in a variable
|
||||
# Expected output:
|
||||
# {
|
||||
# ID: '0xf982de03e17fd8ff30b138f142bc17c3deb24a48ec38b41c13e621fa65172f3c',
|
||||
# Status: 'Open',
|
||||
# Balance: {
|
||||
# AssetAddress: '0x0000000000000000000000000000000000000000',
|
||||
# Payee: '0x03eb7a84e286c671836b9897aae24b31d36f9ca8',
|
||||
# Payer: '0x4b64e26da8279ab12bcd4ca9974ec2b4741e175e',
|
||||
# PaidSoFar: 0n,
|
||||
# RemainingFunds: 1000n
|
||||
# }
|
||||
# }
|
||||
```
|
||||
|
||||
- Set the payment channel id in a variable
|
||||
|
||||
```bash
|
||||
PAYMENT_CHANNEL_ID=<payment channel id>
|
||||
```
|
||||
|
||||
@ -318,6 +348,12 @@
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir alice-nitro-deployment exec nitro-rpc-client "nitro-rpc-client pay $PAYMENT_CHANNEL_ID 200 -p 4005 -h nitro-node"
|
||||
|
||||
# Expected output:
|
||||
# {
|
||||
# Amount: 200,
|
||||
# Channel: '0xf982de03e17fd8ff30b138f142bc17c3deb24a48ec38b41c13e621fa65172f3c'
|
||||
# }
|
||||
```
|
||||
|
||||
- Close payment channel after payments
|
||||
@ -336,6 +372,21 @@
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir alice-nitro-deployment exec nitro-rpc-client "nitro-rpc-client get-ledger-channel $LEDGER_CHANNEL_ID -p 4005 -h nitro-node"
|
||||
|
||||
# Expected output:
|
||||
# {
|
||||
# ID: '0x72e631943d8b89d9c70af7d3daa75a169fc84c84034ab77c850ceaf4a530a650',
|
||||
# Status: 'Complete',
|
||||
# Balance: {
|
||||
# AssetAddress: '0x2b79f4a92c177b4e61f5c4ac37b1b8a623c665a4',
|
||||
# Me: '0x4b64e26da8279ab12bcd4ca9974ec2b4741e175e',
|
||||
# Them: '0x03eb7a84e286c671836b9897aae24b31d36f9ca8',
|
||||
# MyBalance: 999800n,
|
||||
# TheirBalance: 1000200n
|
||||
# },
|
||||
# ChannelMode: 'Open'
|
||||
# }
|
||||
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user