From 01a6e63a17273ff7ad45506618bdd165180171c6 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 19 Jun 2025 11:02:11 +0000 Subject: [PATCH] Rename wallet to Zenith wallet (#2) Part of https://www.notion.so/Implement-stacks-1b5a6b22d472806a82f5dafed6955138 Reviewed-on: https://git.vdb.to/LaconicNetwork/zenith-wallet-web/pulls/2 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- .env.example | 1 - README.md | 2 +- public/index.html | 4 +-- public/manifest.json | 4 +-- src/import-meta-env.d.ts | 1 - src/index.tsx | 2 +- src/screens/ApproveTransfer.tsx | 2 +- src/utils/constants.ts | 24 ----------------- stack/README.md | 4 +-- .../docker-compose-laconic-wallet-web.yml | 7 +++-- stack/stack-orchestrator/config/app/run.sh | 2 -- .../cerc-laconic-wallet-web/build.sh | 4 +-- .../stack/laconic-wallet-web/README.md | 27 +++++++++---------- .../stack/laconic-wallet-web/stack.yml | 8 +++--- 14 files changed, 30 insertions(+), 62 deletions(-) diff --git a/.env.example b/.env.example index 2e44075..9a31543 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,6 @@ REACT_APP_WALLET_CONNECT_PROJECT_ID= REACT_APP_DEFAULT_GAS_PRICE=0.025 # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 REACT_APP_GAS_ADJUSTMENT=2 -REACT_APP_LACONICD_RPC_URL=https://laconicd-sapo.laconic.com # Example: https://example-url-1.com,https://example-url-2.com REACT_APP_ALLOWED_URLS= diff --git a/README.md b/README.md index f97a391..baffe31 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# laconic-wallet-web \ No newline at end of file +# zenith-wallet-web diff --git a/public/index.html b/public/index.html index 25b8db1..da7e5f9 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@ - + @@ -27,7 +27,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - Laconic Wallet + Zenith Wallet diff --git a/public/manifest.json b/public/manifest.json index f3556e5..a7819c8 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "Laconic Wallet", - "name": "Laconic Wallet Web App", + "short_name": "Zenith Wallet", + "name": "Zenith Wallet Web App", "icons": [ { "src": "favicon.ico", diff --git a/src/import-meta-env.d.ts b/src/import-meta-env.d.ts index 388d2b7..aa0989f 100644 --- a/src/import-meta-env.d.ts +++ b/src/import-meta-env.d.ts @@ -4,7 +4,6 @@ interface ImportMetaEnv { readonly REACT_APP_WALLET_CONNECT_PROJECT_ID: string; readonly REACT_APP_DEFAULT_GAS_PRICE: string; readonly REACT_APP_GAS_ADJUSTMENT: string; - readonly REACT_APP_LACONICD_RPC_URL: string; readonly REACT_APP_ALLOWED_URLS: string; } diff --git a/src/index.tsx b/src/index.tsx index 61a4189..8e6f133 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -113,7 +113,7 @@ root.render( `Laconic | Wallet`, + formatter: () => `Zenith | Wallet`, }} theme={navigationTheme} > diff --git a/src/screens/ApproveTransfer.tsx b/src/screens/ApproveTransfer.tsx index 34fcdff..d64fb11 100644 --- a/src/screens/ApproveTransfer.tsx +++ b/src/screens/ApproveTransfer.tsx @@ -42,7 +42,7 @@ import TxErrorDialog from '../components/TxErrorDialog'; import { EIP155_SIGNING_METHODS } from '../utils/wallet-connect/EIP155Data'; import { COSMOS_METHODS } from '../utils/wallet-connect/COSMOSData'; -export const MEMO = 'Sending signed tx from Laconic Wallet'; +export const MEMO = 'Sending signed tx from Zenith Wallet'; // Reference: https://ethereum.org/en/developers/docs/gas/#what-is-gas-limit const ETH_MINIMUM_GAS = 21000; diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 3f93d29..8680e55 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -6,30 +6,6 @@ export const EIP155 = 'eip155'; export const COSMOS = 'cosmos'; export const DEFAULT_NETWORKS: NetworksFormData[] = [ - { - chainId: 'laconic-testnet-2', - networkName: 'laconicd testnet-2', - namespace: COSMOS, - rpcUrl: import.meta.env.REACT_APP_LACONICD_RPC_URL!, - blockExplorerUrl: '', - nativeDenom: 'alnt', - addressPrefix: 'laconic', - coinType: '118', - gasPrice: '0.001', - isDefault: true, - }, - { - chainId: 'laconic_9000-1', - networkName: 'laconicd', - namespace: COSMOS, - rpcUrl: "https://laconicd.laconic.com", - blockExplorerUrl: '', - nativeDenom: 'alnt', - addressPrefix: 'laconic', - coinType: '118', - gasPrice: '1', - isDefault: false, - }, { chainId: '1', networkName: EIP155_CHAINS['eip155:1'].name, diff --git a/stack/README.md b/stack/README.md index c70e35c..4245463 100644 --- a/stack/README.md +++ b/stack/README.md @@ -1,3 +1,3 @@ -# laconic-wallet-web-stack +# zenith-wallet-web-stack -[laconic-wallet-web stack documentation](./stack-orchestrator/stack/laconic-wallet-web/README.md) +[zenith-wallet-web stack documentation](./stack-orchestrator/stack/zenith-wallet-web/README.md) diff --git a/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml b/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml index b253f2c..fbe8cd0 100644 --- a/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml +++ b/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml @@ -1,15 +1,14 @@ services: - # Builds and serves the React laconic-wallet-web app - laconic-wallet-web: + # Builds and serves the React zenith-wallet-web app + zenith-wallet-web: restart: unless-stopped - image: cerc/laconic-wallet-web:local + image: cerc/zenith-wallet-web:local environment: CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG} WALLET_CONNECT_ID: ${WALLET_CONNECT_ID} WALLET_CONNECT_VERIFY_CODE: ${WALLET_CONNECT_VERIFY_CODE} CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE:-0.025} CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT:-2} - CERC_LACONICD_RPC_URL: ${CERC_LACONICD_RPC_URL:-https://laconicd.laconic.com} CERC_ZENITHD_RPC_URL: ${CERC_ZENITHD_RPC_URL} CERC_ALLOWED_URLS: ${CERC_ALLOWED_URLS} command: ["bash", "/scripts/run.sh"] diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index a9b2f31..1f7589b 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -9,14 +9,12 @@ echo "Using the following env variables:" echo "WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}" echo "CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE}" echo "CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT}" -echo "CERC_LACONICD_RPC_URL: ${CERC_LACONICD_RPC_URL}" echo "CERC_ALLOWED_URLS: ${CERC_ALLOWED_URLS}" # Build with required env export REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID export REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE export REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT -export REACT_APP_LACONICD_RPC_URL=$CERC_LACONICD_RPC_URL export REACT_APP_ALLOWED_URLS=$CERC_ALLOWED_URLS # Set env variables in build diff --git a/stack/stack-orchestrator/container-build/cerc-laconic-wallet-web/build.sh b/stack/stack-orchestrator/container-build/cerc-laconic-wallet-web/build.sh index c10643e..0f78204 100755 --- a/stack/stack-orchestrator/container-build/cerc-laconic-wallet-web/build.sh +++ b/stack/stack-orchestrator/container-build/cerc-laconic-wallet-web/build.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Build cerc/laconic-wallet-web +# Build cerc/zenith-wallet-web source ${CERC_CONTAINER_BASE_DIR}/build-base.sh @@ -8,4 +8,4 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) CERC_NPM_REGISTRY_URL="https://git.vdb.to/api/packages/cerc-io/npm/" -docker build -t cerc/laconic-wallet-web:local ${build_command_args} -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/laconic-wallet-web +docker build -t cerc/zenith-wallet-web:local ${build_command_args} -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/zenith-wallet-web diff --git a/stack/stack-orchestrator/stack/laconic-wallet-web/README.md b/stack/stack-orchestrator/stack/laconic-wallet-web/README.md index ba2b399..4747cf0 100644 --- a/stack/stack-orchestrator/stack/laconic-wallet-web/README.md +++ b/stack/stack-orchestrator/stack/laconic-wallet-web/README.md @@ -1,29 +1,29 @@ -# laconic-wallet-web +# zenith-wallet-web -Instructions for running the `laconic-wallet-web` using [laconic-so](https://git.vdb.to/cerc-io/stack-orchestrator) +Instructions for running the `zenith-wallet-web` using [laconic-so](https://git.vdb.to/cerc-io/stack-orchestrator) ## Setup * Clone the stack repo: ```bash - laconic-so fetch-stack git.vdb.to/LaconicNetwork/laconic-wallet-web + laconic-so fetch-stack git.vdb.to/LaconicNetwork/zenith-wallet-web ``` * Build the container image: ```bash - laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web build-containers + laconic-so --stack ~/cerc/zenith-wallet-web/stack/stack-orchestrator/stack/zenith-wallet-web build-containers ``` - This should create the `cerc/laconic-wallet-web` image locally + This should create the `cerc/zenith-wallet-web` image locally ## Create a deployment * Create a spec file for the deployment: ```bash - laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web deploy init --output laconic-wallet-web-spec.yml + laconic-so --stack ~/cerc/zenith-wallet-web/stack/stack-orchestrator/stack/zenith-wallet-web deploy init --output zenith-wallet-web-spec.yml ``` * Edit `network` in the spec file to map container ports to host ports as required: @@ -31,22 +31,22 @@ Instructions for running the `laconic-wallet-web` using [laconic-so](https://git ```bash network: ports: - laconic-wallet-web: + zenith-wallet-web: - '3000:80' ``` * Create a deployment from the spec file: ```bash - laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web deploy create --spec-file laconic-wallet-web-spec.yml --deployment-dir laconic-wallet-web-deployment + laconic-so --stack ~/cerc/zenith-wallet-web/stack/stack-orchestrator/stack/zenith-wallet-web deploy create --spec-file zenith-wallet-web-spec.yml --deployment-dir zenith-wallet-web-deployment ``` ## Configuration -* Inside the `laconic-wallet-web-deployment` deployment directory, open `config.env` file and set following env variables: +* Inside the `zenith-wallet-web-deployment` deployment directory, open `config.env` file and set following env variables: ```bash - # WalletConnect project ID, same should be used in the laconic-wallet + # WalletConnect project ID WALLET_CONNECT_ID= # Allowed urls is a comma separated list of allowed urls @@ -64,9 +64,6 @@ Instructions for running the `laconic-wallet-web` using [laconic-so](https://git # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 CERC_GAS_ADJUSTMENT= - # RPC endpoint of laconicd node (default: https://laconicd.laconic.com) - CERC_LACONICD_RPC_URL= - # Zenith RPC endpoint CERC_ZENITHD_RPC_URL= ``` @@ -74,7 +71,7 @@ Instructions for running the `laconic-wallet-web` using [laconic-so](https://git ## Start the deployment ```bash -laconic-so deployment --dir laconic-wallet-web-deployment start +laconic-so deployment --dir zenith-wallet-web-deployment start ``` Open the wallet app in a browser at @@ -84,5 +81,5 @@ Open the wallet app in a browser at * Stop the deployment: ```bash - laconic-so deployment --dir laconic-wallet-web-deployment stop + laconic-so deployment --dir zenith-wallet-web-deployment stop ``` diff --git a/stack/stack-orchestrator/stack/laconic-wallet-web/stack.yml b/stack/stack-orchestrator/stack/laconic-wallet-web/stack.yml index 380c8fd..267fb0d 100644 --- a/stack/stack-orchestrator/stack/laconic-wallet-web/stack.yml +++ b/stack/stack-orchestrator/stack/laconic-wallet-web/stack.yml @@ -1,7 +1,7 @@ version: "1.0" -name: laconic-wallet-web -description: "Laconic web wallet" +name: zenith-wallet-web +description: "Zenith web wallet" containers: - - cerc/laconic-wallet-web + - cerc/zenith-wallet-web pods: - - laconic-wallet-web + - zenith-wallet-web