** TECHNICAL DEMO ONLY DO NOT USE FOR SIGNIFICANT VALUE **
This is the server component of the Supercavitations Swaps service.
It's a node app that:
- Runs a web service (communicating with UI)
- Generates invoices (communicating with LND)
- Creates swaps (communicating with EVM)
- An LND node (at
localhost:10009by default, or seeconfig.js) - A mnemonic that derives to an RSK address with value ('owner')
- A deployed SwapOffering contract (owned by owner, with server URL set)
- Some proxy server configured serve from the URL set in the contract to the server port (8081)
- Clone this repo
npm i
- Condfigure
src/config.jsto your liking - Populate the
credsfolder:admin.macaroonfrom LNDtls.certfrom LNDmnemoniccontaining RSK seed for 'owner'
npm startproductionnpm run devdevelopment with reloadingGANACHE=1 npm run devfor offline development (ganache + mock LND)
- Write Docs
- Convert env vars to params
- Two Bob Deployments
- Resolve IP of localhost LND
- See
TODOin code... - Timeouts Logic
- Test Skipping Deposit / Deposit Whitelist
- Deal with LND invoice timeouts
- Persistant storage
- Handle restarts
- Tests