wormhole/bridge_ui
Evan Gray f9a41d15d8 bridge_ui: remove neon from mainnet 2022-06-15 21:27:58 -04:00
..
public bridge_ui - update Portal twitter (#1123) 2022-04-29 07:27:52 -04:00
src bridge_ui: remove neon from mainnet 2022-06-15 21:27:58 -04:00
.env.sample Tilt tests (#688) 2022-02-08 03:55:10 -05:00
.gitignore
Dockerfile feat: improve bridge_ui tilt 2022-02-14 07:56:38 -05:00
README.md
config-overrides.js bridge_ui: moved to webpack 5 and react-app-rewired, updated solana wallet deps 2022-03-16 22:20:30 -04:00
package-lock.json Neon to testnet (#1262) 2022-06-14 10:22:49 -04:00
package.json Neon to testnet (#1262) 2022-06-14 10:22:49 -04: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