dni ⚡
37187bfc2c
feat: add negative topups ( #2835 )
...
* feat: add negative topups
* remove topup dialog
---------
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
2024-12-17 21:06:58 +01:00
Vlad Stan
ae4eda04ba
test: more payment tests ( #2738 )
...
* test: pay_invoice
2024-10-17 10:27:36 +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 ⚡
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 ⚡
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 ⚡
e0b7d2f739
chore: adhere to ruff's C
( #2379 )
2024-04-03 17:56:05 +02:00
Vlad Stan
d44339b018
fix: pending property for PaymentStatus ( #2324 )
...
* fix: pending property for PaymentStatus
* fix: invoice status
* fix: check pending status from the payment details
* refactor: make condition more explicit
2024-03-14 14:38:10 +02:00
Vlad Stan
352fd23c0b
refactor: dev-friendly payment status name ( #2322 )
...
* refactor: dev-friendly payment status name
* refactor: change `PaymentStatus(True, ...)` to `PaymentSuccessStatus(...)`
2024-03-13 16:17:33 +01:00
callebtc
3e91200d3f
FakeWallet: provide payment preimage
2023-11-13 15:42:57 +01:00
dni ⚡
1646b087cf
adding bolt11 lib and removing bolt11.py from the codebase ( #1817 )
...
* add latest bolt11 lib
decode exception handling for create_payment
fix json response for decode
bugfix hexing description hash
improvement on bolt11 lib
update to bolt11 2.0.1
fix clnrest
* bolt 2.0.4
* refactor core/crud.py
* catch bolt11 erxception clnrest
2023-09-25 12:06:54 +02:00
callebtc
172c277c2d
fakewallet: set tag of description_hash invoice correctly ( #1901 )
2023-08-28 11:02:58 +01:00
dni ⚡
4e6f229db2
[CHORE] string formatting default length 88 ( #1887 )
...
* [CHORE] string formatting default length 88
uses blacks default off 88 and enabled autostringformatting
* formatting
* nitpicks jackstar
fix
2023-08-24 10:26:09 +01:00
dni ⚡
ffb0f4ccb0
hotfix fakewallet
2023-04-14 12:03:06 +02:00
dni ⚡
6fae6dab92
remove *1000 for fake
2023-04-05 11:35:09 +02:00
callebtc
a8103ba091
remove unnecessary checking_id from fakewallet
2023-04-04 07:35:20 +02:00
Pavol Rusnak
9c8a79eb9b
fix pyright lnbits/wallets
...
Co-authored-by: dni ⚡ <office@dnilabs.com>
2023-04-04 07:34:50 +02:00
calle
f0d58a8365
Wallets: add custom invoice expiry ( #1396 )
...
* expiry for fakewallet
* expiry for lnd
* lnbits backend
* fix: eclair descriptionHash fixed and expiry added
* cln and sparko
* test expiry
* Eclair from AdminUI and bugfix for nonexistent payments
* add to settings and .env and remove lntxbot
* remove duplicate and format
* add invoice expiry
* add min max and step
* UI works now
* test should fail, sanity check, will revert
* revert, ready for merge
Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
2023-01-26 11:08:40 +01:00
Pavol Rusnak
3d0c66f0f6
remove unnecessary argument encoding from bytes.decode() and str.encode()
...
the encoding parameter defaults to utf-8, so it's not needed
2023-01-03 22:38:28 +01:00
dni ⚡
9e60b5374c
fake wallet queue issue
2022-12-05 12:18:59 +01:00
dni ⚡
c9ead25d50
bugfixes and fix topup wallet
2022-10-12 13:08:59 +02:00
dni ⚡
682a297422
fix fake wallet
2022-10-05 13:08:22 +02:00
dni ⚡
1ffc8c3498
use new settings and remove unused amdin extension stuff
2022-10-05 13:04:36 +02:00
calle
5a12f4f237
Improved SSE listeners ( #865 )
...
* logging listeners
* comments
* generate privkey upon init
* listener queue
* remove duplicate check
* make format
* reuse channel
* error handling in sse listener
* uuid for listeners
* register named invoices
* uuid for listeners and listener list
* fix poetry lock
* setuptools
* requirements asyncio timeout
* setuptool;s
* make format
* remove async-timeout
* async_timeout readd
* try lower setuptools version
* try lower lower setuptools version
* back to current version + fix, maybe
* fix worflows to use poetry 1.2.1
* remove uneeded setuptools from build-system
* fix up formatting workflow
* debug to trace
* more traces
* debug logs to trace
Co-authored-by: dni ⚡ <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
calle
e5d8c500d2
Wallets/unhashed_description ( #870 )
...
* new argument: unhashed_description
* accept in api
* set unhashed_description for memo case
* bolt11.py: dont be like CLN, accept the hash
* send hash to lnd in b64
* fix cln
* skip descr_hash for cln
* skip
* format
2022-08-13 14:29:04 +02:00
calle
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) ( #814 )
...
* description hashing in backend
2022-08-01 16:20:25 +02:00
dni
7667c2f531
doesnt touch class invoice and leave fake wallet as is
2022-07-26 12:31:29 +02:00
dni
a80fd5de7a
black formating
2022-07-25 12:03:06 +02:00
dni
8e9b3190e4
mypy fakewallet, macaroon, bolt11 invoice
2022-07-25 12:03:06 +02:00
calle
b8c99a15d1
do not mark payments as failed ( #750 )
2022-07-19 12:33:28 +02:00
calle
6646fce549
Core: add internal flag for invoice creation to use FakeWallet ( #646 )
...
* add internal flag for invoice creation to use FakeWallet
2022-07-17 14:34:25 +02:00
calle
f4e7d62ca3
make format
everything (#743 )
2022-07-16 14:23:03 +02:00
calle
089313f613
Logging with loguru ( #708 )
...
* logging
* requirements
* add loguru dependency
* restore it
* add loguru
* set log level in .env file
* remove service fee print
* set log level
* more logging
* more logging
* more logging
* pyament.checking_id
* fix
2022-07-07 14:30:16 +02:00
calle
0f97f8f18b
Fee reserve for lightning backends ( #557 )
...
* preparing fees
* fee_limit_msat
* await resp result
* clightning
* fix tests
* fix test
* add fee to test
* mypy
* invoice_status
* checking id fix
* fee reserve error message
* only for external payments
2022-03-16 07:20:15 +01:00
benarc
8db19f33e3
Removed key for password that generates a key
2022-02-03 12:52:51 +00:00
Ben Arc
b10a23dcc4
FakeWallet invoices to correct amount
2022-02-01 23:16:38 +00:00
Ben Arc
db734d4acd
added hex
2022-02-01 23:04:40 +00:00
Ben Arc
0415f3d7cc
Removed hex
2022-02-01 21:32:54 +00:00
Ben Arc
3927545e32
fixed buggy lnurl checks
2022-02-01 21:22:20 +00:00
Ben Arc
3f0a855526
Black
2022-02-01 20:51:40 +00:00
Ben Arc
615abffeb4
Replaced rustys hashed for hash
2022-02-01 20:22:02 +00:00
Ben Arc
31e300e05b
hex description_hash in fakewallet
2022-02-01 20:17:42 +00:00
Ben Arc
3ae6ef25a1
trypo
2022-01-31 16:52:35 +00:00
Ben Arc
0680669e59
Fixed fake invoices registering as paid
2022-01-31 16:35:46 +00:00
Ben Arc
dbab181759
Admin users can credit accounts
2022-01-31 16:29:42 +00:00
Ben Arc
649776951c
Works
2022-01-31 11:58:39 +00:00
Ben Arc
7c3b3ac200
Fake wallet working
2022-01-31 11:07:29 +00:00
Ben Arc
a147a07bab
works
2022-01-31 00:12:59 +00:00
benarc
228717195b
back
2022-01-30 19:43:30 +00:00
benarc
c96e7068e5
initi
2022-01-30 10:41:20 +00:00