wormhole/bridge_ui
Chase Moran a68d93dc58 bridge_ui: add avax to coming soon list
Change-Id: I4471446113ba516e08cd68275d7a8f0d65e88103
2021-12-15 09:17:43 -05:00
..
public bridge_ui: confidence enhancement 2021-10-07 11:12:10 -04:00
src bridge_ui: add avax to coming soon list 2021-12-15 09:17:43 -05:00
.env.sample run bridge_ui in devnet 2021-10-27 21:16:07 +00:00
.gitignore
Dockerfile Use stable Buildkit syntax 2021-12-13 15:38:17 +01:00
README.md run bridge_ui in devnet 2021-10-27 21:16:07 +00:00
craco.config.js
package-lock.json bridge_ui: add avalanche to testnet / beta 2021-12-14 17:27:38 -05:00
package.json bridge_ui: add avalanche to testnet / beta 2021-12-14 17:27:38 -05:00
tsconfig.json

README.md

Example Token Bridge UI

Prerequisites

  • Docker
  • NodeJS v14+
  • NPM v7.18+

Run the following from the root of this repo

DOCKER_BUILDKIT=1 docker build --target node-export -f Dockerfile.proto -o type=local,dest=. .
DOCKER_BUILDKIT=1 docker build -f solana/Dockerfile.wasm -o type=local,dest=. solana
npm ci --prefix ethereum
npm ci --prefix sdk/js
npm run build --prefix sdk/js

The remaining steps can be run from this folder

Install

npm ci

Develop

npm start

Build for local tilt network

npm run build

Build for testnet

REACT_APP_CLUSTER=testnet npm run build

Build for mainnet

REACT_APP_CLUSTER=mainnet REACT_APP_COVALENT_API_KEY=YOUR_API_KEY REACT_APP_SOLANA_API_URL=YOUR_CUSTOM_RPC npm run build

Test Server

npx serve -s build

Environment Variables (optional)

Create .env from the sample file, then add your Covalent API key:

cp .env.sample .env