Arc
c3d37a460c
Improved customisable homepage and added badge ( #2474 )
...
* Improved customisable homepage and added badge
* Added filled to styling of drop down
* format
* Wrong model
* lint hack
* Update .env.example
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
* reverted
* Spelling
* More explicit
* format
* Added if for badge
* spellling
* Fix for None
---------
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
2024-04-30 08:08:57 +01:00
Bitkarrot
c04c13b2f8
feat: phoenixd wallet integration ( #2362 )
...
* phoenixd integration
---------
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
2024-04-26 10:18:38 +02:00
dni ⚡
4b4bed59cd
feat: corelightning maxfee
and custom pay command ( #2464 )
...
* feat: corelightning `maxfee` and custom pay command
we should use maxfee instead of calculating the ratio and pass it
through.
also make it possible to run a custom pay command
* change for cln rest aswell
2024-04-25 12:54:00 +02:00
dni ⚡
4a0fb59461
chore: use prettier for all of the codebase ( #2466 )
...
* chore: use prettier for all of the codebase
we only checked `lnbits` dir before
2024-04-25 11:13:08 +02:00
Pavol Rusnak
f5293ca645
fix: compatibility with Python 3.12 ( #2463 )
...
by updating grpc a uvloop dependencies to latest
2024-04-24 08:39:41 +02:00
Vlad Stan
b2ff2d8cee
[test] add tests for lnbits
funding source ( #2460 )
2024-04-24 09:31:23 +03:00
Vlad Stan
8d3b156738
[test] add tests for eclair
funding source ( #2459 )
...
* fix: test data
* test: add `status` tests
* refactor: try-catch
* test: create invoice tests
* test: add first `payinvoice` test
* test: add pay_invoice error test
* feat: allow more test options
* test: add pending tests
* fix: make check
* test: add, pending no fee
* fix: make consistent with other API calls
* test: more assertions
* test: add pending
* test: first payment status test
* test: pending status
* refactor: remove duplicate code
* refactor: rename field
* chore: code format
* chore: uniform
2024-04-23 16:18:52 +01:00
dni ⚡
00f39a2007
test: add unit for fee_reserve and service_fee
...
:)
sorting
2024-04-22 11:38:24 +02:00
Vlad Stan
4ac30116a9
feat: add settings.lnbits_running
( #2450 )
...
* feat: add `settings.lnbits_runing `
2024-04-22 12:33:53 +03:00
dni ⚡
e91096c535
feat: remove magic argument parser from lnbits command ( #2448 )
...
got the idea from: https://github.com/lnbits/lnbits/issues/2447
arguments it should be explicity allowed with `click` and a description
should be added like here.
2024-04-19 13:23:56 +02:00
dni ⚡
e607ab7a3e
test: restructure tests ( #2444 )
...
unit, api, wallets
* only run test-api for migration
2024-04-19 13:22:06 +02:00
Vlad Stan
67fdb77339
test: unit tests for lndrpc ( #2442 )
2024-04-19 13:21:21 +02:00
Pavol Rusnak
4f118c5f98
chore: make bundle
2024-04-18 15:44:17 +02:00
Pavol Rusnak
33ace85f7d
i18n: refresh translations using AI script
2024-04-18 15:44:17 +02:00
Pavol Rusnak
33c50100ab
fix: small update to i18n-ai-tool system prompt
2024-04-18 15:44:17 +02:00
dni ⚡
782cbfc77f
fix: balances view on use non deleted wallets ( #2385 )
...
* fix: balances view on use non deleted wallets
closes #2224
* fixup! fix: balances view on use non deleted wallets
---------
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-04-18 11:49:40 +01:00
dni ⚡
bbfc301440
fix: broken lnurl_callback ( #2445 )
...
* fix: broken lnurl_callback
2024-04-18 12:16:00 +02:00
dni ⚡
98ec59df96
feat: adhere to ruff's B
rules ( #2423 )
...
* feat: adhere to ruff's `B` rules
last of the ruff checks.
closes #2308
* B904
* B008
* B005
* B025
* cleanup on fake
2024-04-17 13:11:51 +02:00
dni ⚡
e13a37c193
FEAT: add PYPI python package release workflow on tag ( #1628 )
...
* add pypi worflow, pyproject types, package metadata, ignore python package build, docker build fails if poetry uses readme for python package
* add pypi to release
2024-04-17 10:53:57 +02:00
dni ⚡
0c3aabf77a
feat: catch_everything_and_restart
print name of the task ( #2417 )
...
remove type from `Coroutine` from the create_tasks
2024-04-17 10:51:07 +02:00
arbadacarba
d9880c4de8
Clarified top-up success msg ( #2381 )
...
* Update admin_api.py
Common misconception is that the top up related to the funds on the funding source.
Success msg extended with info that correlated funds on funding source are needed and the amount is virtual until fitting.
* chore: code format
* feat: customise top-up message
* refactor: move the `Quasar.Notify` to `components.js`
* refactor: use `this.$q.notify` instead of `Quasar.Notify.create`
---------
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
2024-04-17 09:55:57 +02:00
Arc
0a4eb78ef0
Fixes ad issue on homepage + readme badges ( #2422 )
...
Fixes broken ad layout on homepage
* Removed telegram link
2024-04-17 08:54:48 +02:00
dni ⚡
daa1b5a313
chore: adhere to ruff's RUF
rules, 2nd try ( #2420 )
...
* chore: adhere to ruff's `RUF` rules, 2nd try
closes #2382
2024-04-17 07:36:22 +02:00
Arc
d78f6a1f9e
Added extra default ads to support project ( #2421 )
2024-04-16 16:26:04 +02:00
dni ⚡
839fe8b96d
feat: add PEP561 marker for types ( #2415 )
...
tasks.py:8: error: Skipping analyzing "lnbits.tasks": module is
installed, but missing library stubs or py.typed marker
[import-untyped]
https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
2024-04-16 16:16:45 +02:00
dni ⚡
25661ddff5
chore: remove lnurl wallet and withdraw feature ( #2293 )
...
* chore: remove lnurl wallet and withdraw feature
this feature is undocumented and the code is very outdated. i don't think it is worth to keep.
looking at the `/lnurlwallet` endpoint for example, it creates a new user and wallet without even checking if the creation of users is allowed
* remove lnurl callback
---------
Co-authored-by: Arc <33088785+arcbtc@users.noreply.github.com>
2024-04-16 14:10:32 +02:00
dni ⚡
55eb3be5d5
feat: make workflow reuseable for external repo ( #2419 )
...
* feat: make workflow reuseable for external repo
* fixup!
2024-04-16 10:43:53 +01:00
dni ⚡
0714570242
fix: ruff linting broke ( #2418 )
...
fix linting
2024-04-16 08:34:33 +02:00
Vlad Stan
69ce0e565b
[test] create unit-test framework for RPC wallets ( #2396 )
...
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
2024-04-15 17:24:28 +02:00
dni ⚡
b145bff566
chore: adhere to ruff's UP
...
basically use `list` and `type` instead of `List` and `Type`
this is save to use for python3.9 and has been deprecated. also has some
performance drawbacks.
read more here: https://docs.astral.sh/ruff/rules/non-pep585-annotation/
2024-04-15 13:38:04 +02:00
dni ⚡
a158056b99
chore: enable migration tests again ( #2414 )
...
PR has been merged. https://github.com/lnbits/lnbits-extensions/pull/300
2024-04-15 11:12:03 +02:00
Vlad Stan
e8479941c8
fix: check installed extensions, not available ones ( #2413 )
2024-04-15 10:21:15 +03:00
dni ⚡
6d5ad9e229
chore: adhere to ruff's "N" rules ( #2377 )
...
* chore: adhere to ruff's "N" rules
WARN: reinstall failing extensions!
bunch of more consistent variable naming. inspired by this issue.
https://github.com/lnbits/lnbits/issues/2308
* fixup! chore: adhere to ruff's "N" rules
* rename to funding_source
* skip jmeter
---------
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-04-15 09:02:21 +02:00
dni ⚡
055426ab53
chore: prepare version update to 0.12.6
( #2407 )
...
needed in preparation of https://github.com/lnbits/lnbits/pull/2377
2024-04-12 17:29:08 +02:00
dni ⚡
4bafe97167
fix: fastapi status import ( #2408 )
...
should use `from http import HTTPStatus`
2024-04-12 15:56:54 +02:00
dni ⚡
8aef6cd416
chore: update prettier ( #2405 )
...
update to new prettier version with some new formatting
2024-04-12 09:00:31 +02:00
Vlad Stan
adb8f9bdec
feat: add funding_source_max_retries
env setting ( #2404 )
...
* feat: add `funding_source_max_retries` env setting
* feat: default to zero retries
* feat: exponential retry time increase
* chore: Let's use the same value as the default
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
* feat: using 0.25 leads to less awkward numbers
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
---------
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-04-11 17:29:25 +01:00
dni ⚡
e9e69d9d17
chore: update lnbits to 0.12.5 ( #2401 )
...
update!!!
2024-04-11 14:20:25 +02:00
dni ⚡
2c5ccc0b1b
fix: check_fundingsource retries ( #2400 )
...
should fix SaaS crashing when retrying
2024-04-11 14:19:09 +02:00
Vlad Stan
ea58b51619
test: add tests for alby ( #2390 )
...
* test: initial commit
* chore: code format
* fix: comment out bad `status.pending` (to be fixed in core)
* fix: 404 tests
* test: extract first `create_invoice` test
* chore: reminder
* add: error test
* chore: experiment
* feat: adapt parsing
* refactor: data structure
* fix: some tests
* fix: make response uniform
* fix: test data
* chore: clean-up
* fix: uniform responses
* fix: user agent
* fix: user agent
* fix: user-agent again
* test: add `with error` test
* feat: customize test name
* fix: better exception handling for `status`
* fix: add `try-catch` for `raise_for_status`
* test: with no mocks
* chore: clean-up generalized tests
* chore: code format
* chore: code format
* chore: remove extracted tests
* test: add `create_invoice`: error test
* add: test for `create_invoice` with http 404
* test: extract `test_pay_invoice_ok`
* test: extract `test_pay_invoice_error_response`
* test: extract `test_pay_invoice_http_404`
* test: add "missing data"
* test: add `bad-json`
* test: add `no mocks` for `create_invoice`
* test: add `no mocks` for `pay_invoice`
* test: add `bad json` tests
* chore: re-order tests
* test: add `missing data` test for `pay_imvoice`
* chore: re-order tests
* test: add `success` test for `get_invoice_status `
* feat: update test structure
* test: new status
* test: add more test
* chore: code clean-up
* test: add success test for `get_payment_status `
* test: add `pending` tests for `check_payment_status`
* chore: remove extracted tests
* test: add more tests
* test: add `no mocks` test
* fix: funding source loading
* refactor: start to extract data model
* chore: final clean-up
* chore: rename file
* test: add tests for alby
* refactor: `KeyError` handling
* chore: log error
* chore: skip the negative fee test
* fix: error message fetching
2024-04-08 13:26:00 +03:00
Vlad Stan
bfda0b62da
test: add unit tests for wallets (funding sources) ( #2363 )
...
* test: initial commit
* feat: allow external label for `create_invoice` (useful for testing)
* chore: code format
* fix: ignore temp coverage files
* feat: add properties to the Status classes for a better readability
* fix: add extra validation for data
* fix: comment out bad `status.pending` (to be fixed in core)
* fix: 404 tests
* test: first draft of generic rest wallet tests
* test: migrate two more tests
* feat: add response type
* feat: test exceptions
* test: extract first `create_invoice` test
* chore: reminder
* add: error test
* chore: code format
* chore: experiment
* feat: adapt parsing
* refactor: data structure
* fix: some tests
* refactor: extract methods
* fix: make response uniform
* fix: test data
* chore: clean-up
* fix: uniform responses
* fix: user agent
* fix: user agent
* fix: user-agent again
* test: add `with error` test
* feat: customize test name
* fix: better exception handling for `status`
* fix: add `try-catch` for `raise_for_status`
* test: with no mocks
* chore: clean-up generalized tests
* chore: code format
* chore: code format
* chore: remove extracted tests
* test: add `create_invoice`: error test
* add: test for `create_invoice` with http 404
* test: extract `test_pay_invoice_ok`
* test: extract `test_pay_invoice_error_response`
* test: extract `test_pay_invoice_http_404`
* test: add "missing data"
* test: add `bad-json`
* test: add `no mocks` for `create_invoice`
* test: add `no mocks` for `pay_invoice`
* test: add `bad json` tests
* chore: re-order tests
* fix: response type
* test: add `missing data` test for `pay_imvoice`
* chore: re-order tests
* test: add `success` test for `get_invoice_status `
* feat: update test structure
* test: new status
* test: add more test
* fix: error handling
* chore: code clean-up
* test: add success test for `get_payment_status `
* test: add `pending` tests for `check_payment_status`
* chore: remove extracted tests
* test: add more tests
* test: add `no mocks` test
* fix: funding source loading
* refactor: extract `rest_wallet_fixtures_from_json` function
* chore: update comment
* feat: cover `cleanup` call also
* chore: code format
* refactor: start to extract data model
* refactor: extract mock class
* fix: typings
* refactor: improve typings
* chore: add some documentation
* chore: final clean-up
* chore: rename file
* chore: `poetry add --dev pytest_httpserver` (after rebase)
2024-04-08 12:18:21 +03:00
dni ⚡
b0a8e0d942
doc: add hint to configure reverse proxy in .env.template
( #2393 )
...
closes #2134
suggestion from issue
2024-04-05 15:55:26 +03:00
dni ⚡
2161b2511c
bundle
2024-04-05 11:00:45 +02:00
dni ⚡
1b2a9c54b6
feat: active state for manage menu items
...
closes #2190
2024-04-05 11:00:45 +02:00
dni ⚡
209e2c5bff
test: make nice pytest reports on github ( #2376 )
...
* test: make nice pytest reports on github
utilizing this action: https://github.com/pavelzw/pytest-action/
2024-04-05 08:35:51 +02:00
dni ⚡
820882db28
refactor: use new fastapi lifespan instead of startup/shutdown events ( #2294 )
...
* refactor: use new fastapi lifespan instead of events
recommended use: https://fastapi.tiangolo.com/advanced/events/?h=lifespan
threw warnings in pytest
* make startup and shutdown functions
* nix: add override for asgi-lifespan
---------
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-04-05 07:05:26 +02:00
dni ⚡
d64239f1ad
fix: remove trailing slash from admin.js
...
fixing 307 requests making a request to `/settings/`
2024-04-04 08:55:18 +02:00
dni ⚡
2066fff994
docs: improve installation for none ubuntu
...
closes #1878
2024-04-04 00:23:21 +02:00
dni ⚡
e0b7d2f739
chore: adhere to ruff's C
( #2379 )
2024-04-03 17:56:05 +02:00
dni ⚡
cd66b7d70c
chore: fix pycryptodomex
security issue
...
https://github.com/lnbits/lnbits/security/dependabot/41
2024-04-03 17:43:28 +02:00