Evan Gray 25357d3848 bridge_ui: fix oasis explorer link 3 år sedan
..
public 461e8f256e bridge_ui: confidence enhancement 4 år sedan
src 25357d3848 bridge_ui: fix oasis explorer link 3 år sedan
.env.sample a956e570fb run bridge_ui in devnet 4 år sedan
.gitignore 5e37afdb82 bridge_ui: initial commit 4 år sedan
Dockerfile b0ed42681d Use stable Buildkit syntax 4 år sedan
README.md a956e570fb run bridge_ui in devnet 4 år sedan
craco.config.js b1a237db99 bridge_ui: solana balances, begin wasm integration 4 år sedan
package-lock.json 195a61714e bridge_ui: oasis support 3 år sedan
package.json 195a61714e bridge_ui: oasis support 3 år sedan
tsconfig.json 5187120fa0 bridge_ui: eth wrapped assets and getSignedVAA 4 år sedan

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