Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mint] Synthetic USD E-Cash with LNMarketsWallet #608

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
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
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ MINT_BLINK_KEY=blink_abcdefgh
# Use with StrikeWallet for BTC, USD, and EUR
MINT_STRIKE_KEY=ABC123

# Use with LNMarketsWallet for USD
# you can also specify paths from which `ACCESS_KEY`, `SECRET` and `PASSPHRASE` will be read
MINT_LNMARKETS_REST_URL="https://api.lnmarkets.com"
MINT_LNMARKETS_REST_ACCESS_KEY="<YOUR_API_ACCESS_KEY>"
MINT_LNMARKETS_REST_SECRET="<YOUR_API_SECRET>"
MINT_LNMARKETS_REST_PASSPHRASE="<YOUR_API_PASSPHRASE>"

# fee to reserve in percent of the amount
LIGHTNING_FEE_PERCENT=1.0
# minimum fee to reserve
Expand Down
7 changes: 7 additions & 0 deletions cashu/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,20 @@ class CoreLightningRestFundingSource(MintSettings):
mint_corelightning_rest_macaroon: Optional[str] = Field(default=None)
mint_corelightning_rest_cert: Optional[str] = Field(default=None)

class LNMarketsRestFundingSource(MintSettings):
mint_lnmarkets_rest_url: Optional[str] = Field(default=None)
mint_lnmarkets_rest_access_key: Optional[str] = Field(default=None)
mint_lnmarkets_rest_passphrase: Optional[str] = Field(default=None)
mint_lnmarkets_rest_secret: Optional[str] = Field(default=None)


class Settings(
EnvSettings,
LndRPCFundingSource,
LndRestFundingSource,
CoreLightningRestFundingSource,
CLNRestFundingSource,
LNMarketsRestFundingSource,
FakeWalletSettings,
MintLimits,
MintBackends,
Expand Down
1 change: 1 addition & 0 deletions cashu/lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .lnbits import LNbitsWallet # noqa: F401
from .lnd_grpc.lnd_grpc import LndRPCWallet # noqa: F401
from .lndrest import LndRestWallet # noqa: F401
from .lnmarkets import LNMarketsWallet # noqa: F401
from .strike import StrikeWallet # noqa: F401

backend_settings = [
Expand Down
Loading
Loading