Rename wallet to Zenith wallet (#2)

Part of https://www.notion.so/Implement-stacks-1b5a6b22d472806a82f5dafed6955138

Reviewed-on: LaconicNetwork/zenith-wallet-web#2
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
Prathamesh Musale 2025-06-19 11:02:11 +00:00 committed by nabarun
parent d0623be1c3
commit 01a6e63a17
14 changed files with 30 additions and 62 deletions

View File

@ -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=

View File

@ -1 +1 @@
# laconic-wallet-web
# zenith-wallet-web

View File

@ -6,7 +6,7 @@
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Laconic Wallet Web App" />
<meta name="description" content="Zenith Wallet Web App" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
@ -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`.
-->
<title>Laconic Wallet</title>
<title>Zenith Wallet</title>
<script>
globalThis.import_meta_env = JSON.parse('"import_meta_env_placeholder"');
</script>

View File

@ -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",

View File

@ -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;
}

View File

@ -113,7 +113,7 @@ root.render(
<NavigationContainer
linking={linking}
documentTitle={{
formatter: () => `Laconic | Wallet`,
formatter: () => `Zenith | Wallet`,
}}
theme={navigationTheme}
>

View File

@ -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;

View File

@ -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,

View File

@ -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)

View File

@ -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"]

View File

@ -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

View File

@ -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

View File

@ -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 <http://localhost:3000>
@ -84,5 +81,5 @@ Open the wallet app in a browser at <http://localhost:3000>
* Stop the deployment:
```bash
laconic-so deployment --dir laconic-wallet-web-deployment stop
laconic-so deployment --dir zenith-wallet-web-deployment stop
```

View File

@ -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