** TECHNICAL DEMO ONLY DO NOT USE FOR SIGNIFICANT VALUE **
This is the User Interface component of the Supercavitations Swaps service.
It's a react web app that:
- Reads contract registry from EVM and lists SwapOfferings (not implemented)
- Communicates with Supercavitation Server instances
- Allows users to request swap creation
- Displays LN invoices for users to pay
- Shows swap status at various stages
- Handles swap settlment in case server goes offline
- For production, a registry address (TODO)
- For development, a Supercavitation Server configured (running locally or remotely)
- Clone this repo
npm i
Edit src/config.js
Use npm run dev
with environment variables
# example
DEV_SERVER='http://localhost8081' DEV_CONTRACT='0x123' GANACHE=1 npm run dev;
All of the env vars are optional:
DEV_SERVER
uri of Supercavitation Server (overrides contract-specified URL)DEV_CONTRACT
add this contract contract to top of the registryGANACHE
to use a localhost evm & skip invoice validation
npm run build
- renderAccountBalance
- disable auto-populate alice
- deploy to ipfs
- rename
GANACHE
toEVM_URI
, addNO_INVOICE_VERIFICATION
- Registry
- Timeouts
- Sign messages from alice
- Testing for edge cases
- ...