Skip to content

smishraIOV/boltz-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boltz-poc

0. Requirements

Boltz/RSK Docker images

1. Setup environment

  • Run: npm run docker:reset
  • Run: npm run docker:start

2. Start server

  • Run: npm run server

3. Start client

  • Run: npm run client
  • Go to: http://localhost:3000

4. Stop environment

  • Run: npm run docker:stop

X. Miscellaneous

Generate contract.go

  • install protoc (here)
  • install solc (here and here)
  • Clone Geth / make / make devtools (doc)
  • abigen --abi=server/abi/EtherSwap.json --out=server/abi/EtherSwap.go --pkg=abi

Fix common error: lightningnetwork/lnd#1177

  • Generate btc blocks

docker exec -it polar-n1-backend1 bitcoin-cli -chain=regtest -rpcuser=polaruser -rpcpassword=polarpass -generate 1

Connect to docker images

  • Connect to bitcoin node

docker exec -it --user lnd polar-n1-backend1 /bin/bash

  • Connect to a LN node

docker exec -it --user lnd polar-n1-alice /bin/bash

Connect btw LN nodes

  • docker exec -it --user lnd polar-n1-alice lncli --network=regtest connect 02045b28b45f0b8efdac9381287b728d7c6897aa8c4d26fa5e9570078dc949e11b@host.docker.internal:9739
  • docker exec -it --user lnd polar-n1-alice lncli --network=regtest connect 03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740
  • docker exec -it --user lnd polar-n1-bob lncli --network=regtest connect 03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740

LN nodes URLs:

  • alice: 02e7dd429d9148b6fde3e026d39ac63d2d76a3d3a5469ad8a64e0310fc6f62f302@host.docker.internal:9735
  • bob: 02045b28b45f0b8efdac9381287b728d7c6897aa8c4d26fa5e9570078dc949e11b@host.docker.internal:9739
  • carol: 03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published