pyth-crosschain/bridge_ui
Stan Drozd 28906caeea Haul in change 1882 state from upstream - p2w envs and configs 2021-11-29 11:51:29 +01:00
..
public Test Dockerfile Action 2021-11-09 09:22:50 +02:00
src Haul in change 1882 state from upstream - p2w envs and configs 2021-11-29 11:51:29 +01:00
.env.sample Test Dockerfile Action 2021-11-09 09:22:50 +02:00
.gitignore Test Dockerfile Action 2021-11-09 09:22:50 +02:00
Dockerfile Test Dockerfile Action 2021-11-09 09:22:50 +02:00
README.md Test Dockerfile Action 2021-11-09 09:22:50 +02:00
craco.config.js Test Dockerfile Action 2021-11-09 09:22:50 +02:00
package-lock.json Test Dockerfile Action 2021-11-09 09:22:50 +02:00
package.json Test Dockerfile Action 2021-11-09 09:22:50 +02:00
tsconfig.json Test Dockerfile Action 2021-11-09 09:22:50 +02:00

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