From 287815b7c06269ec668c9e6c2c744bfc96c33565 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 29 Jul 2024 18:24:03 +0530 Subject: [PATCH] Update steps to run wallet, onboarding app and api --- testnet-onboarding-demo.md | 82 +++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 32 deletions(-) diff --git a/testnet-onboarding-demo.md b/testnet-onboarding-demo.md index 86f6531..78c6a5a 100644 --- a/testnet-onboarding-demo.md +++ b/testnet-onboarding-demo.md @@ -5,9 +5,9 @@ ### Laconic Wallet - The `laconicd-wallet` can be installed using an APK on a Android device or run as a website using `laconic-wallet-web` -- Follow one of the following (`Run on Android` or `Run as a website`) sections as desired +- Follow one of the following (`Setup On Android` or `Setup As Website`) sections as desired -#### Run On Android +#### Setup On Android - Install laconic wallet using [latest APK release](https://git.vdb.to/cerc-io/laconic-wallet/releases) @@ -60,7 +60,7 @@ cd ../ ``` -#### Run As Website +#### Setup As Website - Use the hosted `laconic-wallet-web` at @@ -107,7 +107,7 @@ WALLET_CONNECT_ID=39bc93c... ``` -### Testnet Onboarding App and Onboarding API stacks +### Testnet Onboarding App and Onboarding API Stacks - Clone the stack repo: @@ -630,49 +630,67 @@ laconic-so deployment --dir bridge-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $L1_ASSET_ADDRESS --to $C_CHAIN_ADDRESS --amount 1000 --network geth" ``` -- Start testnet-onboarding-app (run command in testnet-onboarding-app repo) +- Start `onboarding-app` and `onboarding-api` deployments (run where deployments are created): ```bash - # In testnet-onboarding-app - yarn start + laconic-so deployment --dir onboarding-app-deployment start + + laconic-so deployment --dir onboarding-api-deployment start ``` - NOTE: Ignore source map warnings in the terminal + The `testnet-onboarding-app` should now be accessible at - Run Laconic Wallet - - Connect your phone with the PC (Make sure that USB debugging is enabled on your phone) + - 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: - - ```bash - # Get device id - adb devices - - # Setup port forwarding - adb -s reverse tcp:26657 tcp:26657 - ``` - - - Open Laconic Wallet app that was installed from the APK - - - (Optional) Start `laconic-wallet` android app (run steps in laconic-wallet repo) - - - Set up the Android device - - For a physical device, refer to the [React Native documentation for running on a physical device](https://reactnative.dev/docs/running-on-device) - - For a virtual device, continue with the steps - - - Start the application: + - Setup port forwarding for your device using the following command: ```bash - # In laconic-wallet - yarn start + # Get device id + adb devices + + # Setup port forwarding + adb -s reverse tcp:26657 tcp:26657 ``` - - Press `a` to run the application on android and wait till the wallet app opens up on your phone + - Open Laconic Wallet app that was installed from the APK + + OR + + - (Optional) Start `laconic-wallet` android app (run steps in laconic-wallet repo) + + - Set up the Android device + - For a physical device, refer to the [React Native documentation for running on a physical device](https://reactnative.dev/docs/running-on-device) + - For a virtual device, continue with the steps + + - Start the application: + + ```bash + # In laconic-wallet + yarn start + ``` + + - Press `a` to run the application on android and wait till the wallet app opens up on your phone + + - Run as a website: + - Open `laconic-wallet-web` at + + OR + + - (Optional) Run the `laconic-wallet-web` stack: + + ```bash + laconic-so deployment --dir laconic-wallet-web-deployment start + ``` + + Open `laconic-wallet-web` at ## Demo -- In laconic-wallet app, click on `Create wallet` and add laconicd chain using `Add network` button: +- In laconic-wallet, click on `Create wallet` and add laconicd chain using `Add network` button: + ```bash Network type - `COSMOS`