Giter Site home page Giter Site logo

gateway-startos's Introduction

Wrapper for Fedimint Lightning Gateway

Lightning Gateways are lightning service providers for Fedimints. Running a lightning gateway lets you connect your lightning node to different Fedimints to earn routing fees for swapping ecash <> lightning.

This Gateway service runs alongside your LND node and connect to multiple Fedimints and provides a UI for managing liquidity across them.

Dependencies

Build enviroment

Prepare your StartOS build enviroment. In this example we are using Ubuntu 20.04.

  1. Install docker
curl -fsSL https://get.docker.com -o- | bash
sudo usermod -aG docker "$USER"
exec sudo su -l $USER
  1. Set buildx as the default builder
docker buildx install
docker buildx create --use
  1. Enable cross-arch emulated builds in docker
docker run --privileged --rm linuxkit/binfmt:v0.8
  1. Install yq

Ubuntu:

sudo snap install yq

Debian:

PLATFORM=$(dpkg --print-architecture)
wget -q https://github.com/mikefarah/yq/releases/latest/download/yq_linux_${PLATFORM} && sudo mv yq_linux_${PLATFORM} /usr/local/bin/yq && sudo chmod +x /usr/local/bin/yq
  1. Install essential build packages
sudo apt-get install -y build-essential openssl libssl-dev libc6-dev clang libclang-dev ca-certificates
  1. Install Rust
curl https://sh.rustup.rs -sSf | sh
# Choose nr 1 (default install)
source $HOME/.cargo/env
  1. Install toml
cargo install toml-cli
  1. Build and install start-sdk
cd ~/ && git clone https://github.com/Start9Labs/start-os.git
#checkout v0.3.5.1
git checkout 39de098461833e4c56bd3509644ddf7f1a0fc4ca
cd core/
./install-sdk.sh
start-sdk init

Cloning

Clone the project locally. Note the submodule link to the original project(s).

git clone https://github.com/Start9Labs/jam-startos
cd jam-startos
git submodule update --init --recursive

Building

To build the project, run the following commands:

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap

You should only run the above commands once to create a custom builder. Afterwards you will only need the below command to make the .s9pk file

make

Installing (on StartOS)

Sideload from the web-UI: System > Sideload Service

Sideload from the CLI: SSH into your StartOS device. scp the .s9pk to any directory from your local machine. Run the following command to install the package:

start-cli auth login
#Enter your StartOS server's master password, then run:
start-cli package install /path/to/jam.s9pk

Verify Install

Go to your StartOS Services page, select Jam and start the service.

#Done

gateway-startos's People

Contributors

kodylow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.