lnbits-legend/lnbits/core
dni ⚡ 27b9e8254c
feat: NWC Funding source #2579 (#2631)
* feat: nwc funding source

* implement paid_invoices_stream, fix for unsettled invoices where settled_at is present but None

* cancel pending_payments_lookup_task on cleanup

* Rename subscription_timeout_task to timeout_task

* ensure preimage is not None

* Improve readability, return failed status on expiration in get_payment_status, ensure result_type is checked after error (some implementations might not set a result_type on error)

* fetch account info when possible

* workaround possible race condition on some nwc service providers, improve performance of fallback by using payment_hash from bolt11 invoice

* fundle

* make format

* fix formatting

* fix C901 `_on_message` is too complex (21 > 16)

* format

* fix lint

* format

* fix tests/wallets/test_nwc_wallets.py:80:11: C901 `run` is too complex (17 > 16)

* fix padding

* fix documentation for _verify_event method

* refactoring and fixes

* Split NWCWallet - NWCConnection

* refactor class methods into helpers

* update bundle

* format

* catch NWCError failure codes

* format and fix

* chore: bundle

* add example

* typos

---------

Co-authored-by: Riccardo Balbo <riccardo0blb@gmail.com>
Co-authored-by: benarc <ben@arc.wales>
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-08-07 09:56:53 +02:00
..
sso Add Keycloak SSO (#2272) 2024-02-14 09:23:37 +01:00
templates feat: NWC Funding source #2579 (#2631) 2024-08-07 09:56:53 +02:00
views feat: filter response fields for /api/v1/payments/decode (#2612) 2024-07-31 14:36:42 +03:00
__init__.py [feat] Pay to enable extension (#2516) 2024-05-28 12:07:33 +01:00
crud.py refactor: add status column to apipayments (#2537) 2024-07-24 16:47:26 +03:00
db.py [REFACTOR] core/__init__ to not have circular import issues (#1876) 2023-09-12 11:25:05 +01:00
helpers.py [feat] Pay to enable extension (#2516) 2024-05-28 12:07:33 +01:00
migrations.py refactor: add status column to apipayments (#2537) 2024-07-24 16:47:26 +03:00
models.py feat: filter response fields for /api/v1/payments/decode (#2612) 2024-07-31 14:36:42 +03:00
services.py test: fix flaky regtest (#2616) 2024-07-31 11:41:19 +02:00
tasks.py refactor: get_balance_delta and use pydantic model for openapi docs (#2492) 2024-05-13 17:59:29 +02:00