mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-04 09:24:22 +01:00
Mint: Talk to LND via gRPC (#595)
* protos + lnd_grpc.py + __init__ + status method * `create_invoice` * `pay_invoice`, `pay_partial_invoice` and router pb2 * `get_invoice_status` * channel keep-alive options * Update lnd_grpc.py * `get_payment_status` + make format * `get_payment_quote` and `paid_invoices_stream`. This was suspiciously easy... * download_and_build script modified to fix the imports on generated code * pyproject with new dependencies * update poetry.lock * fixed errors in `pay_partial_invoice` * update .env.example * make format * enable regtest * update .env.example * suggested fixes * suggested changes pt.2 * Update cashu/core/settings.py Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com> --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
@@ -201,6 +201,10 @@ class LndRestFundingSource(MintSettings):
|
||||
mint_lnd_rest_invoice_macaroon: Optional[str] = Field(default=None)
|
||||
mint_lnd_enable_mpp: bool = Field(default=False)
|
||||
|
||||
class LndRPCFundingSource(MintSettings):
|
||||
mint_lnd_rpc_endpoint: Optional[str] = Field(default=None)
|
||||
mint_lnd_rpc_cert: Optional[str] = Field(default=None)
|
||||
mint_lnd_rpc_macaroon: Optional[str] = Field(default=None)
|
||||
|
||||
class CLNRestFundingSource(MintSettings):
|
||||
mint_clnrest_url: Optional[str] = Field(default=None)
|
||||
@@ -217,6 +221,7 @@ class CoreLightningRestFundingSource(MintSettings):
|
||||
|
||||
class Settings(
|
||||
EnvSettings,
|
||||
LndRPCFundingSource,
|
||||
LndRestFundingSource,
|
||||
CoreLightningRestFundingSource,
|
||||
CLNRestFundingSource,
|
||||
|
||||
Reference in New Issue
Block a user