Files
smom-dbis-138/frontend-dapp/README.md
2026-03-28 15:38:51 -07:00

47 lines
1.2 KiB
Markdown

# Bridge DApp
Frontend DApp for the trustless bridge system.
## Setup
```bash
pnpm install
```
## Development
```bash
pnpm run dev
```
The app will be available at `http://localhost:3002`
## Features
- Multi-wallet support (MetaMask, WalletConnect, Coinbase Wallet)
- Bridge transfers from ChainID 138 to Ethereum
- DEX swap interface
- Reserve status and peg monitoring
- Transaction history
- Optional Chain 2138 frontend wallet/network support behind env flags
## Environment Variables
Copy `.env.example` to `.env.local` and set the values you need:
```
VITE_WALLETCONNECT_PROJECT_ID=your_project_id
VITE_THIRDWEB_CLIENT_ID=your_client_id
VITE_RPC_URL_138=https://rpc-http-pub.d-bis.org
# Optional Chain 2138 frontend support
# VITE_ENABLE_CHAIN2138=true
# VITE_RPC_URL_2138=https://rpc.public-2138.defi-oracle.io
# VITE_EXPLORER_URL_2138=https://public-2138.defi-oracle.io
# VITE_DEFAULT_FRONTEND_CHAIN_ID=2138
```
Notes:
- The shared network source of truth lives in `src/config/networks.ts`.
- `VITE_ENABLE_CHAIN2138` only enables optional frontend wallet/network flows.
- Trustless bridge and Chain 138-specific operational flows remain pinned to Chain 138 unless explicitly expanded.