Update mobymask-v2 demo instructions

This commit is contained in:
Prathamesh Musale 2023-04-05 17:46:38 +05:30
parent 9e1c82bbd2
commit 017f3a2bae
3 changed files with 9 additions and 17 deletions

View File

@ -30,7 +30,7 @@ if [ -f ./config.json ]; then
CONTRACT_ADDRESS=$(echo "$DEPLOYMENT_DETAILS" | jq -r '.address')
cd ../hardhat
if yarn hardhat verify-deployment --network deployment --contract "${CONTRACT_ADDRESS}"; then
if yarn verifyDeployment --network optimism --contract "${CONTRACT_ADDRESS}"; then
echo "Deployment verfication successful"
cd ../server
else
@ -42,7 +42,7 @@ fi
# Wait until balance for deployer account is reflected
cd ../hardhat
while true; do
ACCOUNT_BALANCE=$(yarn hardhat --network optimism balance $PRIVATE_KEY_DEPLOYER | grep ETH)
ACCOUNT_BALANCE=$(yarn balance --network optimism $PRIVATE_KEY_DEPLOYER | grep ETH)
if [ "$ACCOUNT_BALANCE" != "0.0 ETH" ]; then
echo "Account balance updated: $ACCOUNT_BALANCE"

View File

@ -3,7 +3,7 @@
* Get the root invite link URL for mobymask-app:
```bash
laconic-so --stack mobymask-v2 deploy-system logs mobymask
docker logs -f $(docker ps -aq --filter name="mobymask-1")
```
The invite link is seen at the end of the logs. Example log:
@ -29,19 +29,11 @@
* In the `MESSAGES` tab of other browsers, a message can be seen with the signed invocations.
* In a terminal check logs from the watcher peer container.
* In a terminal, check logs from the watcher peer container:
* Get the container id:
```bash
laconic-so --stack mobymask-v2 deploy-system ps | grep mobymask-watcher-server
```
* Check logs:
```bash
docker logs -f <CONTAINER_ID>
```
```bash
docker logs -f $(docker ps -aq --filter name="mobymask-watcher-server")
```
* It should have received the message, sent transaction to L2 chain and received a transaction receipt for an `invoke` message with block details.
@ -74,7 +66,7 @@
* Get the deployed contract address:
```bash
laconic-so --stack mobymask-v2 deploy-system exec mobymask-app "cat src/config.json"
docker exec -it $(docker ps -aq --filter name="mobymask-app") cat src/config.json
```
The value of `address` field is the deployed contract address

View File

@ -74,7 +74,7 @@ See [Tests](./README.md#tests) and [Demo](./README.md#demo) to interact with sta
Stop all services running in the background:
```bash
laconic-so --stack mobymask-v2 deploy down --include watcher-mobymask-v2
laconic-so --stack mobymask-v2 deploy --include watcher-mobymask-v2 down
```
Clear volumes created by this stack: