Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ MINT_DATABASE=data/mint

# Funding source backends
# Set one funding source backend for each unit
# Supported: FakeWallet, LndRestWallet, LndRPCWallet, CLNRestWallet, BlinkWallet, LNbitsWallet, StrikeWallet, SparkL2Wallet, CoreLightningRestWallet (deprecated)
# Supported: FakeWallet, LndRestWallet, LndRPCWallet, CLNRestWallet, StrikeWallet, SparkL2Wallet, CoreLightningRestWallet (deprecated)

MINT_BACKEND_BOLT11_SAT=FakeWallet
# Only works if a usd derivation path is set
Expand Down Expand Up @@ -101,13 +101,6 @@ MINT_CORELIGHTNING_REST_URL=https://localhost:3001
MINT_CORELIGHTNING_REST_MACAROON="./clightning-2-rest/access.macaroon"
MINT_CORELIGHTNING_REST_CERT="./clightning-2-rest/certificate.pem"

# Use with LNbitsWallet
MINT_LNBITS_ENDPOINT=https://legend.lnbits.com
MINT_LNBITS_KEY=yourkeyasdasdasd

# Use with BlinkWallet
MINT_BLINK_KEY=blink_abcdefgh

# Use with StrikeWallet for BTC, USD, and EUR
MINT_STRIKE_KEY=ABC123

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
python-version: ["3.12"]
poetry-version: ["2.3.2"]
backend-wallet-class:
["LndRPCWallet", "LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet", "LNbitsWallet"]
["LndRPCWallet", "LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet"]
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
# mint-database: ["./test_data/test_mint"]
with:
Expand All @@ -86,7 +86,7 @@ jobs:
python-version: ["3.12"]
poetry-version: ["2.3.2"]
backend-wallet-class:
["LndRPCWallet", "LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet", "LNbitsWallet"]
["LndRPCWallet", "LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet"]
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
# mint-database: ["./test_data/test_mint"]
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/regtest-mint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
MINT_TEST_DATABASE: ${{ inputs.mint-database }}
TOR: false
MINT_BACKEND_BOLT11_SAT: ${{ inputs.backend-wallet-class }}
# LNbits wallet
MINT_LNBITS_ENDPOINT: http://localhost:5001
MINT_LNBITS_KEY: d08a3313322a4514af75d488bcc27eee
# LndRestWallet
MINT_LND_REST_ENDPOINT: https://localhost:8081/
MINT_LND_REST_CERT: ./regtest/data/lnd-3/tls.cert
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/regtest-wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
MINT_TEST_DATABASE: ${{ inputs.mint-database }}
TOR: false
MINT_BACKEND_BOLT11_SAT: ${{ inputs.backend-wallet-class }}
# LNbits wallet
MINT_LNBITS_ENDPOINT: http://localhost:5001
MINT_LNBITS_KEY: d08a3313322a4514af75d488bcc27eee
# LndRestWallet
MINT_LND_REST_ENDPOINT: https://localhost:8081/
MINT_LND_REST_CERT: ./regtest/data/lnd-3/tls.cert
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You can choose one of the nodes as a backend for nutshell using the `.env` varia

```
# Choose one from:
# LndRPCWallet, LndRestWallet, CLNRestWallet, CoreLightningRestWallet, LNbitsWallet
# LndRPCWallet, LndRestWallet, CLNRestWallet, CoreLightningRestWallet

MINT_BACKEND_BOLT11_SAT=LndRestWallet
```
Expand Down
3 changes: 0 additions & 3 deletions cashu/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ class MintBackends(MintSettings):
mint_backend_bolt11_usd: str = Field(default="")
mint_backend_bolt11_eur: str = Field(default="")

mint_lnbits_endpoint: Optional[str] = Field(default=None)
mint_lnbits_key: Optional[str] = Field(default=None)
mint_strike_key: Optional[str] = Field(default=None)
mint_blink_key: Optional[str] = Field(default=None)

mint_spark_network: str = Field(default="TESTNET")
mint_spark_api_key: Optional[str] = Field(default=None)
Expand Down
2 changes: 0 additions & 2 deletions cashu/lightning/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# type: ignore
from ..core.settings import settings
from .blink import BlinkWallet # noqa: F401
from .clnrest import CLNRestWallet # noqa: F401
from .corelightningrest import CoreLightningRestWallet # noqa: F401
from .fake import FakeWallet # noqa: F401
from .lnbits import LNbitsWallet # noqa: F401
from .lnd_grpc.lnd_grpc import LndRPCWallet # noqa: F401
from .lndrest import LndRestWallet # noqa: F401
from .sparkl2 import SparkL2Wallet # noqa: F401
Expand Down
Loading
Loading