Update onboarding demo and cleanup steps

This commit is contained in:
Prathamesh Musale 2024-07-29 19:14:47 +05:30
parent 8d5c4ccce5
commit 42c46440bf

View File

@ -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 <https://wallet.laconic.com>
@ -979,14 +983,21 @@
- Onboard participants
- Open the `testnet-onboarding-app` at <http://localhost:3000>
- 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: