Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit b9c299f

Browse files
authored
Fix outdated interoperability example app README (#9189)
1 parent 83f3895 commit b9c299f

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

Diff for: examples/interop/README.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Install and build `pos-sidechain-example-two`
5353
#### Run apps using pm2
5454

5555
- Install [pm2](https://pm2.keymetrics.io/) if not installed using `npm install pm2 -g`
56-
- Install []`ts-node`](https://www.npmjs.com/package/ts-node) globally
56+
- Install [`ts-node`](https://www.npmjs.com/package/ts-node) globally
5757

5858
Run 2 instances mainchain node
5959

@@ -85,17 +85,26 @@ Interact with applications using `pm2`
8585

8686
#### Check chain status
8787

88-
- Run `./bin/run endpoint:invoke 'interoperability_getChainAccount' '{"chainID": "04000000" }'` to check chain status of mainchain account on sidechain. It should show lastCertificate with height 0 and status 0 if no CCU was sent yet.
89-
- Run `./bin/run endpoint:invoke 'interoperability_getChainAccount' '{"chainID": "04000001" }'` to check chain status of sidechain account on mainchain. It should show lastCertificate with height 0 and status 0 if no CCU was sent yet.
88+
- Run `./pos-sidechain-example-one/bin/run endpoint:invoke interoperability_getChainAccount '{"chainID": "04000000" }'` to check chain status of the mainchain account on the sidechain one. It should show lastCertificate with height 0 and status 0 if no CCU was sent yet.
89+
- Run `./pos-mainchain-fast/bin/run endpoint:invoke interoperability_getChainAccount '{"chainID": "04000001" }' --data-path ~/.lisk/mainchain-node-one` to check chain status of the sidechain one account on the mainchain, using mainchain node one. It should show lastCertificate with height 0 and status 0 if no CCU was sent yet.
9090

9191
Now observe logs, initially it will log `No valid CCU can be generated for the height: ${newBlockHeader.height}` until first finalized height is reached.
9292

9393
When the finalized height is reached, check chain status as described above and it should update lastCertificate `height > 0` and status to `1` which means the CCU was sent successfully and chain is active now.
9494

95-
### Authorize ChainConnector plugin to sign and send CCU(Cross-Chain Update) transactions
95+
### Authorize ChainConnector plugin to sign and send CCU (Cross-Chain Update) transactions
9696

97-
Run below command inside each application folder.
98-
`./bin/run endpoint:invoke 'chainConnector_authorize' '{"password": "lisk" }'`
97+
Authorize ChainConnector plugin on each of the 4 nodes:
98+
99+
```
100+
./pos-mainchain-fast/bin/run endpoint:invoke chainConnector_authorize '{"enable": true, "password": "lisk" }' --data-path ~/.lisk/mainchain-node-one
101+
102+
./pos-mainchain-fast/bin/run endpoint:invoke chainConnector_authorize '{"enable": true, "password": "lisk" }' --data-path ~/.lisk/mainchain-node-two
103+
104+
./pos-sidechain-example-one/bin/run endpoint:invoke chainConnector_authorize '{"enable": true, "password": "lisk" }'
105+
106+
./pos-sidechain-example-two/bin/run endpoint:invoke chainConnector_authorize '{"enable": true, "password": "lisk" }'
107+
```
99108

100109
#### Cross Chain transfers
101110

@@ -145,5 +154,4 @@ genesis-assets if you want to run an application for 103 validators. In order to
145154

146155
## Learn More
147156

148-
[Here](https://github.com/LiskHQ/lisk-docs/blob/7a7c1606c688f8cd91b50d0ddc199907c6b4f759/docs/modules/ROOT/images/build-blockchain/interop-example.png)
149-
is reference to diagram explaining interop setup nicely.
157+
[Here](https://github.com/LiskHQ/lisk-docs/blob/7a7c1606c688f8cd91b50d0ddc199907c6b4f759/docs/modules/ROOT/images/build-blockchain/interop-example.png) is a reference to the diagram explaining interop setup nicely.

0 commit comments

Comments
 (0)