** 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:10009
by 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.js
to your liking - Populate the
creds
folder:admin.macaroon
from LNDtls.cert
from LNDmnemonic
containing RSK seed for 'owner'
npm start
productionnpm run dev
development with reloadingGANACHE=1 npm run dev
for offline development (ganache + mock LND)
- Write Docs
- Convert env vars to params
- Two Bob Deployments
- Resolve IP of localhost LND
- See
TODO
in code... - Timeouts Logic
- Test Skipping Deposit / Deposit Whitelist
- Deal with LND invoice timeouts
- Persistant storage
- Handle restarts
- Tests