dni ⚡ and GitHub
65db43ace4
feat: catch wallet init exception, string formatting ( #1846 )
...
this catches exception on set_wallet_class and switches to VoidWallet if it fails
2023-08-18 10:23:57 +01:00
dni ⚡ and GitHub
59acd3a2ef
[REFACTOR] cleanup views/api.py ( #1865 )
...
pull out models
line lengths
change models for tests
2023-08-18 10:22:22 +01:00
dni ⚡ and GitHub
905afc1f5c
FEAT: add installed extensions to log ( #1857 )
...
for immediate vision of installed extensions
2023-08-18 10:13:37 +01:00
dni ⚡ and GitHub
c7cf743852
[TEST] run tests.yml on py39 and py310 ( #1882 )
...
i think it is a good idea to test both at least for fakewallet tests.
2023-08-18 09:50:56 +01:00
b43e7efa0b
[FEATURE] Adding coverage for 'lntbs' signet prefix ( #1881 )
...
* Update bolt11-decoder.js
Adding coverage for 'lntbs' signet prefix
* adding 'make bundle' modified files
---------
Co-authored-by: enaples <enaples@users.noreply.github.com >
2023-08-18 09:48:45 +01:00
dni ⚡ and GitHub
c8414829d7
[TEST] dont install default extensions for tests ( #1861 )
2023-08-16 19:19:21 +02:00
dni ⚡ and GitHub
5e03f8eed8
[TEST] update pytest-cov to remove warning ( #1867 )
...
cleanup this warning when running tests
2023-08-16 16:26:48 +02:00
dni ⚡ and GitHub
511a0fd895
[CHORE] cln.py pyln-client is not optional ( #1859 )
...
* [refactor] pyln-client is not optional
some time ago we added pyln do main dependencies, its need for think like, saas or docker.
so this import was dead code
* stubs for pyln.client
2023-08-16 15:54:06 +02:00
dni ⚡ and GitHub
2434518d21
[TEST] better logs ( #1866 )
...
now you can see which lnbits logs belongs to which tests! :)
2023-08-16 12:31:56 +01:00
dni ⚡ and GitHub
26a0633d49
[CHORE] fix pyright warning in db.py ( #1868 )
...
```warning: Class methods should take a "cls" parameter (reportSelfClsParameterName)```
2023-08-16 12:41:49 +02:00
dni ⚡ and GitHub
f0a66e41fb
[CHORE] flake8 issues E402, E721 and F821 ( #1874 )
...
* F821: undefine name
disabled and logged webhook_listener for opennode and lnpay because they are obviously not working
* E402: module level import not at top of file
* E721 fixes, only popped up for python3.9 not 3.10
2023-08-16 12:22:14 +02:00
dni ⚡ and GitHub
355806608b
[CHORE] E722 bare exception fix ( #1871 )
...
* [CHORE] E722 bare exception fix
remove all bare exceptions from codebase and change it in `.flake8`
2023-08-16 12:17:54 +02:00
jackstar12 and GitHub
3aef1605be
Fix csv export ( #1852 )
...
* fetch all payments for csv export
* include fiat amount and currency in export
2023-08-15 12:39:12 +01:00
dni ⚡ and GitHub
f096b51f70
[TEST] proper credit_wallet function from services ( #1862 )
2023-08-07 21:49:37 +02:00
michael1011 and GitHub
03acf5e5ec
UI: hide paste payment request in unsupported environments ( #1853 )
2023-08-03 20:38:05 +02:00
772ae2a1ab
support uvicorn reload functionality ( #1841 )
...
* support uvicorn reload functionality
see:
https://github.com/encode/uvicorn/blob/8239373ec649b1a41179070b6ba2c8dc549df63e/uvicorn/main.py#L580-L582
* add docs for --reload
---------
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-08-03 09:53:36 +02:00
jackstar12 and GitHub
2577ce7f81
add cache utility ( #1790 )
...
* add simple caching utility
* test cache
* remove prefix, default on get
* check expiry in pop aswell
* remove unnecessary type
* improve invalidation task
increase default interval to 10 seconds - doesnt have to check that often.
instead of recreating the dict everytime mutate the existing one
2023-08-02 14:13:31 +02:00
callebtc and GitHub
9bc8a9db55
UI: paste payment request from clipboard ( #1845 )
...
* paste payment request from clipboard
* remove unelevated
2023-08-02 12:42:23 +01:00
callebtc and GitHub
9f40b3cdbd
Tests: hold invoice tests pending during payment ( #1839 )
...
* tests: hold invoice tests pending during payment
* sigh...
* ok
* hash preimage
* preimage_hash == payment_hash
* should error
* check that payment is gone
* cancel task while in-flight
* lnbits endpoing return error
* return error
* add both options
* fix list
* respond to error
* return false if payment status errors
* outgoing invoice should be deleted after one status check
* test api_payments_create error
2023-07-31 20:25:22 +02:00
jackstar12 and GitHub
1ab81f6d7e
Bug: invalid type converter ( #1842 )
...
* temporary test case
* remove buggy converter
2023-07-31 10:21:45 +02:00
jackstar12 and GitHub
67d3a4f359
remove nested filters ( #1843 )
...
* remove nested filters
* remove from openapi schema aswell
2023-07-31 10:21:30 +02:00
7f0c7138af
TEST: add hold invoices to test helpers and a basic test ( #1838 )
...
* add hold invoices and basic test
* run request in parallel
* create_task
* dont cancel it
---------
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2023-07-26 14:18:14 +02:00
jackstar12 and GitHub
dda6c1b3c1
websocket internal payment notifications ( #1831 )
...
* add send_payment_notification service
payment notifications are sent from multiple places with inconsistent and incomplete data
* adopt new send_payment_notification service
* add tests
2023-07-26 12:08:22 +02:00
Mariusz Kogen and GitHub
cf0a87582c
Ads layout fix ( #1835 )
2023-07-26 10:38:45 +02:00
4b25714b31
Fix drawer ( #1836 )
...
* make sidebar above tabs on mobile
* Can we add padding instead
* fix: add padding for small screen
* make bundle... again
---------
Co-authored-by: Ben <ben@arc.wales >
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com >
2023-07-26 10:35:52 +02:00
Mariusz Kogen and GitHub
0ff0abf442
Adding Start9 ( #1834 )
2023-07-25 15:38:54 +02:00
dni ⚡ and GitHub
6ce0387e1c
FEAT: proper failing invoice/payment responses for VoidWallet ( #1805 )
...
before that change anyone using the api just got a 500 error without any error message.
there was also a bug stacetrace in the logs each time.
flake8
2023-07-25 14:13:34 +01:00
dni ⚡ and GitHub
427f155c76
follow redirect for lnurls ( #1832 )
...
closes #976
2023-07-25 11:06:37 +02:00
dni ⚡ and GitHub
a81a2b5a08
fix ugly printed error of uvicorn.error ( #1833 )
2023-07-24 13:25:47 +02:00
callebtc and GitHub
11fec7a889
[Wallets] CLN: fix pending state check ( #1770 )
...
* better checking
* flake8 fix
* make format
* invoices scope are function for tests
* invoice back to sessionbut keep real_invoice for now
* make format
* comment
* get payment by checking id and test
2023-07-24 12:00:41 +02:00
dni ⚡ and GitHub
f478c1848a
update embit to 0.7.0 ( #1777 )
2023-07-21 10:42:35 +02:00
callebtc and GitHub
2d4c9f349b
Wallets: Catch errors during cleanup ( #1829 )
...
* jetz aba
* catch RuntimeError
2023-07-21 09:50:50 +02:00
Tiago Vasconcelos and GitHub
befb288900
Fix admin notifications ( #1803 )
...
* fix save badge being on all the time
* make deep copy and add restart to notification popup
2023-07-21 09:50:18 +02:00
dni ⚡ and GitHub
963fd5de50
add github workflow for checking openapi ( #1551 )
...
* add github workflow for checking openapi
* verbose errors
* actual fix? remove env_names from BaseSettings class?
* dont kill process in workflow
* poetry version 1.5.1 for openapiu
2023-07-19 12:28:27 +01:00
Arc and GitHub
a3aafe4b6f
Data returned from wallet websocket was not json ( #1823 )
...
* Fixed walet websocket json
* format
2023-07-19 12:14:03 +01:00
f384c5c366
Increase default invoice expiry to 1 hour ( #1825 )
...
* more reasonable default expiry
600 = 10 minutes which is a pretty short amount of time, for example when using lnbits fundingsource inside lnbits itself it would fail if you do a submarine swap or anything involved with hold invoices
i think 3600 = 1 hour should not make a difference in performance and is a way more reasonable expiry
* change default in .env.example
---------
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2023-07-19 13:13:46 +02:00
dni ⚡ and GitHub
153e22fb54
remove extensions dir completly, create it on startup ( #1778 )
...
* remove extensions dir compleltly, and create it on server.py start
* also ignore symlinks
2023-07-18 13:46:50 +02:00
dni ⚡ and GitHub
213be79aaa
quickfix for failing checks ( #1819 )
...
root package is needed for tests
root package is needed for mypy
removing testfile
2023-07-11 13:25:35 +02:00
dni ⚡ and GitHub
f7cbe74d77
Update poetry to 1.5.1 ( #1804 )
...
* update poetry to 1.5.1 inside workflows
* update lock file to poetry 1.5.1
* test run 1
* test run 2
* run 3
* try different sortorder
* cli should use --no-root
here are the refereneces.
https://python-poetry.org/docs/basic-usage/#installing-dependencies-only
https://pip.pypa.io/en/stable/topics/local-project-installs/#regular-installs
* cache migrations aswell
* test flake
* optimize docker image for regtest building
* playng
* remove test run 1
* remove run 2
* remove run 3
* run 4
* run 6
* run 7
* run 8
* run 9
* run 10
2023-07-11 12:46:40 +02:00
Arc and GitHub
d0d5c4d033
Update README.md ( #1818 )
2023-07-11 09:34:21 +01:00
Arc and GitHub
0adaf03de5
update favicon ( #1811 )
2023-07-07 10:21:24 +01:00
83a04d8f74
CI adjustment - Pinkify Legend ( #1766 )
...
Add files via upload
Update base.scss
* making the bundle for pinkify
fix flamingo
---------
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-07-05 14:39:39 +02:00
dni ⚡ and GitHub
e13426a56b
needs restart after saving killswitch ( #1800 )
...
fix prettier
0.10.9
2023-07-03 16:52:33 +02:00
6aaa46e5a0
Fix ip blocker 2nd try ( #1796 )
...
* fix ipblock v2
fix ipblock 2nd try
* remove sleep inside ip block
dont ignore other exceptions
typo
* remove asyncio
* Update lnbits/middleware.py
---------
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2023-07-03 11:25:00 +02:00
callebtc and GitHub
b9db3eafe0
remove sleep ( #1797 )
2023-07-03 11:12:09 +02:00
dni ⚡ and GitHub
ae9eb314cc
fix bundle for 0.10.9 ( #1792 )
2023-07-03 10:29:03 +02:00
dni ⚡ and GitHub
fe393b83ab
ip blocker only call next after validation ( #1791 )
...
* only call next after validation
* lets the blocked ips wait :)
* calles suggestion :)
2023-07-03 10:26:35 +02:00
jackstar12 and GitHub
bc55d52ea2
Refactor get walletclass ( #1776 )
...
* move `get_wallet_class` to wallets module
* adjust imports, fix type issues
flake8
2023-06-27 16:11:00 +02:00
dni ⚡ and GitHub
9a0878de19
ignore upgrades dir in linters and formatters and precommit ( #1783 )
2023-06-26 10:38:40 +02:00
callebtc and GitHub
be7c589722
add pre-commit-config ( #1785 )
2023-06-26 10:38:16 +02:00