From 2ea69efd4989ae88e58dc2a5492cf805c171d5a2 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 29 Jul 2024 19:14:47 +0530 Subject: [PATCH] Update onboarding demo and cleanup steps --- testnet-onboarding-demo.md | 41 +++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/testnet-onboarding-demo.md b/testnet-onboarding-demo.md index 78c6a5a..46a977d 100644 --- a/testnet-onboarding-demo.md +++ b/testnet-onboarding-demo.md @@ -642,7 +642,9 @@ - Run Laconic Wallet - - Run on android: + - Follow the steps to `Run on Android` or `Run as a website` as per the chosen setup + + - Run on Android: - Connect your phone with the PC (Make sure that USB debugging is enabled on your phone) - Setup port forwarding for your device using the following command: @@ -674,6 +676,8 @@ - Press `a` to run the application on android and wait till the wallet app opens up on your phone + OR + - Run as a website: - Open `laconic-wallet-web` at @@ -979,14 +983,21 @@ - Onboard participants - Open the `testnet-onboarding-app` at - - Connect to the testnet-onboarding app by clicking on the WalletConnect icon on the top right corner in the wallet and scanning QR code of the app + - Read and accept the `Terms and Conditions` + - Connect to the testnet-onboarding app to wallet: + - Click on `CONNECT WALLET` button on the testnet-onboarding app + - Click on the WalletConnect icon on the top right corner in the wallet + - If using the wallet Android app, scan the QR code from the onboarding app + - If using the wallet website, enter WalletConnect URI for pairing - Choose Alice's nitro and laconicd account to onboard - Use nitro accounts for which ledger channels have been created on L2 - Sign using the nitro key - Approve sign request on Wallet - - Fund the laconic account by clicking on the `REQUEST TOKENS FROM FAUCET` button + - Perform the user verification steps + - Select the desired participant role (`Validator` or `Participant`) and accept the onboarding terms and conditions + - In the next step, fund your laconic account by clicking on the `REQUEST TOKENS FROM FAUCET` button; ensure that the displayed balance is updated - Send transaction request to the Wallet - - Approve and send transaction to laconicd chain + - From wallet, approve and send transaction to laconicd chain - Repeat onboarding for other (Charlies's) account by clicking on the web app header "Testnet Onboarding" - List the participants on stage 1 (run in the directory where laconicd deployment was created): @@ -1249,7 +1260,27 @@ - Reset wallet and stop the app: - In laconic-wallet, click on the `Reset Wallet` button to disconnect all apps and clear the accounts - - Stop (`Ctrl+C`) both `laconic-wallet` and `testnet-onboarding-app` + - Stop (`Ctrl+C`) the `laconic-wallet` if running locally in dev mode + + - Stop and cleanup the `laconic-wallet-web` deployment: + + ```bash + # Run where deployments are created + laconic-so deployment --dir laconic-wallet-web-deployment stop + + sudo rm -rf laconic-wallet-web-deployment + ``` + + - Stop and cleanup the `onboarding-app` and `onboarding-api` deployments: + + ```bash + # Run where deployments are created + laconic-so deployment --dir onboarding-app-deployment stop + laconic-so deployment --dir onboarding-api-deployment stop + + sudo rm -rf onboarding-app-deployment + sudo rm -rf onboarding-api-deployment + ``` - Clean up stage 0 and stage 1 laconicd deployments: - Stop deployment and remove volumes: