Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 923 Bytes

File metadata and controls

22 lines (16 loc) · 923 Bytes

static-frontend

React + TypeScript frontend for the Static cross-chain swap app. Users sell stablecoins and receive payment over the Lightning Network, using a hash-locked invoice to bind the on-chain transfer to the off-chain payment.

Chain Token Address
Polygon XSGD 0xdc3326e71d45186f113a2f448984ca0e8d201995
Solana USDC EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Tron USDT TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t

Bootstrapped with Create React App and styled with Tailwind CSS.

Setup

bun install
npm start    # dev server on http://localhost:3000
npm run build
npm test

Create a .env with REACT_APP_WALLET_CONNECT_PROJECT_ID (from https://cloud.walletconnect.com). The GraphQL endpoint is hard-coded in src/App.tsx.