-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mint-fix-fee-reserve-msat
- Loading branch information
Showing
55 changed files
with
3,083 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ NOSTR_RELAYS=["wss://nostr-pub.wellorder.net"] | |
# Wallet API port | ||
API_PORT=4448 | ||
|
||
# Wallet default unit | ||
WALLET_UNIT="sat" | ||
|
||
# --------- MINT --------- | ||
|
||
# Network | ||
|
@@ -38,29 +41,44 @@ MINT_INFO_CONTACT=[["email","[email protected]"],["twitter","@me"],["nostr","npub.. | |
MINT_INFO_MOTD="Message to users" | ||
|
||
MINT_PRIVATE_KEY=supersecretprivatekey | ||
# increment derivation path to rotate to a new keyset | ||
MINT_DERIVATION_PATH="0/0/0/0" | ||
|
||
# Increment derivation path to rotate to a new keyset | ||
# Example: m/0'/0'/0' -> m/0'/0'/1' | ||
MINT_DERIVATION_PATH="m/0'/0'/0'" | ||
|
||
# Multiple derivation paths and units. Unit is parsed from the derivation path. | ||
# m/0'/0'/0' is "sat" (default) | ||
# m/0'/1'/0' is "msat" | ||
# m/0'/2'/0' is "usd" | ||
# In this example, we have 2 keysets for sat, 1 for msat and 1 for usd | ||
# MINT_DERIVATION_PATH_LIST=["m/0'/0'/0'", "m/0'/0'/1'", "m/0'/1'/0'", "m/0'/2'/0'"] | ||
|
||
MINT_DATABASE=data/mint | ||
|
||
# Lightning | ||
# Supported: LndRestWallet, LNbitsWallet, FakeWallet | ||
MINT_LIGHTNING_BACKEND=LNbitsWallet | ||
# Supported: FakeWallet, LndRestWallet, CoreLightningRestWallet, BlinkWallet, LNbitsWallet, StrikeWallet | ||
MINT_LIGHTNING_BACKEND=FakeWallet | ||
|
||
# for use with LNbitsWallet | ||
MINT_LNBITS_ENDPOINT=https://legend.lnbits.com | ||
MINT_LNBITS_KEY=yourkeyasdasdasd | ||
|
||
# LndRestWallet | ||
# Use with LndRestWallet | ||
MINT_LND_REST_ENDPOINT=https://127.0.0.1:8086 | ||
MINT_LND_REST_CERT="/home/lnd/.lnd/tls.cert" | ||
MINT_LND_REST_MACAROON="/home/lnd/.lnd/data/chain/bitcoin/regtest/admin.macaroon" | ||
|
||
# CoreLightningRestWallet | ||
# Use with CoreLightningRestWallet | ||
MINT_CORELIGHTNING_REST_URL=https://localhost:3001 | ||
MINT_CORELIGHTNING_REST_MACAROON="/home/cln/cln-rest/access.macaroon" | ||
MINT_CORELIGHTNING_REST_CERT="/home/cln/cln-rest/certificate.pem" | ||
|
||
# Use with BlinkWallet | ||
MINT_BLINK_KEY=blink_abcdefgh | ||
|
||
# Use with StrikeWallet | ||
MINT_STRIKE_KEY=ABC123 | ||
|
||
# Fee to reserve in percent of the amount | ||
LIGHTNING_FEE_PERCENT=1.0 | ||
# minimum Lightning fee to reserve in msat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Docker Build | ||
|
||
on: | ||
push: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Determine Tag | ||
id: get_tag | ||
run: | | ||
if [[ "${{ github.event_name }}" == "push" ]]; then | ||
echo "::set-output name=tag::latest" | ||
elif [[ "${{ github.event_name }}" == "release" ]]; then | ||
echo "::set-output name=tag::${{ github.event.release.tag_name }}" | ||
fi | ||
- name: Build and push on release | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: ${{ github.event_name == 'release' }} | ||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:${{ steps.get_tag.outputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.