pseudozach / lnstxbridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LN - STX Bridge with Provider Swap Network

Submarine/Atomic Swaps between assets on Stacks <-> Bitcoin (onchain and Lightning Network)

install

  • clone the repo, install requirements and compile
    git clone https://github.com/pseudozach/lnstxbridge.git
    cd lnstxbridge && npm i && npm run compile && npm rebuild
  • start btc & lnd
    npm run docker:regtest
  • start stacks
    npm run stacks:mocknet
  • fund a regtest account and deploy latest Clarity contract under contracts/
    npm run stacks:fund && npm run stacks:deploy
  • copy boltz.conf to ~/.lnstx/boltz.conf and modify as needed
  • start the app
    npm run start

integrate

  • clone lnstxbridge-client repo and start it with aggregatorUrl parameter set to this bridge IP:port.

use

About

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 47.0%Language:TypeScript 41.8%Language:HTML 5.8%Language:Clarity 4.2%Language:Dockerfile 0.4%Language:Python 0.3%Language:CSS 0.3%Language:Shell 0.2%