jackstar12
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
Arc
7e1f43933d
Adds security tools, such as a rate limiter, IP block/allow, server logs ( #1606 )
...
* added ratelimiter
* Adds server logs to admin ui
* Added IP allow/ban list
* fixed remove ips
* Split rate limit number and unit
* security tab and background tasks for killswitch
* fix test for auditor api
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
2023-06-20 11:26:33 +02:00
jackstar12
c0f66989cb
Serverside Pagination for payments ( #1613 )
...
* initial backend support
* implement payments pagination on frontend
* implement search for payments api
* fix pyright issues
* sqlite support for searching
* backwards compatability
* formatting, small fixes
* small optimization
* fix sorting issue, add error handling
* GET payments test
* filter by dates, use List instead of list
* fix sqlite
* update bundle
* test old payments endpoint aswell
* refactor for easier review
* optimise test
* revert unnecessary change
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
2023-05-09 09:18:53 +01:00
Vlad Stan
0d14d2b56e
fix: remove admin extensions for non admin users
2023-04-05 19:40:16 +03:00
Pavol Rusnak
a49a654137
fix flake8 F401+F403 (module imported but unused + unable to detect undefined names)
2023-01-30 11:46:45 +00:00
Vlad Stan
dd3fc7c2bb
fix: merge errors
2023-01-25 09:56:05 +02:00
Vlad Stan
9cca87f738
Merge branch 'main' into extension_install_02
2023-01-25 09:50:54 +02:00
ben
c0c4c86808
Added wallet authentication to creat, get and delete tinyurls
2023-01-24 21:26:18 +00:00
ben
5392b2cbfe
Fixed models
2023-01-24 13:30:15 +00:00
ben
274615f0b3
Man, broken
2023-01-24 13:27:30 +00:00
ben
e53ccb04ac
Added timestamp and endless
...
For future culling of links. If endless is not specified, then links older than x could be removed
2023-01-24 12:45:15 +00:00
ben
f3b1bca5b8
format
2023-01-23 20:25:47 +00:00
ben
165e5099c1
trying to fix mypy
2023-01-23 19:57:49 +00:00
Vlad Stan
6b360b927c
feat: returned the installed release
2023-01-18 17:38:51 +02:00
Vlad Stan
66c908e600
chore: migrate after major changes on main
2023-01-18 17:38:36 +02:00
ben
2b3a2afe83
Making universal tinyurl function
2023-01-12 15:16:37 +00:00
Vlad Stan
c370bd18c6
refactor: remove redundant # type: ignore
2023-01-10 09:45:12 +02:00
Pavol Rusnak
191ad1e224
make payment.extra non-optional
...
this makes handling in tasks.py so much easier
2023-01-05 09:22:34 +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
callebtc
ead5ae0d82
refactor: remove unused imports
2022-12-27 14:50:42 +01:00
Vlad Stan
6cab77ece4
Merge branch 'main' into FinalAdminUI
2022-12-12 10:49:31 +02:00
Vlad Stan
0d4954c01a
chore: temp commit (does not work); don't want to lose changes
2022-12-09 09:46:30 +02:00
Vlad Stan
d15782521d
refactor: include admin extension into core
2022-12-08 15:41:52 +02:00
dni ⚡
c189ec49e5
add superuser class to obscure superuser_id for admin in the ui
2022-12-07 11:00:48 +01:00
callebtc
07724eaa0f
clean up if clause
2022-12-06 13:21:34 +01:00
callebtc
269ea0f975
optional expiry (float now) in Payment model
2022-12-06 13:08:36 +01:00
callebtc
441d5337a3
fix expiry integer
2022-12-06 10:48:16 +01:00
callebtc
32448c4b0c
on-the-fly deletion
2022-12-02 18:55:53 +01:00
callebtc
167c2ce9f1
make format
2022-12-02 18:51:52 +01:00
callebtc
7a6450f032
add expiry to Payment model
2022-12-02 18:51:18 +01:00
dni ⚡
c845502f28
fix WALLET initialisation
2022-10-05 13:05:09 +02:00
calle
232d50baaa
Fix: tasks.py reuse db connection for invoice deletion ( #971 )
...
* check if wallet exists
* check wallet existence in key check
* reuse db connection for payment deletion
2022-09-15 14:48:59 +03:00
calle
d0ca0b18da
Fix/db reuse connection mark pending ( #964 )
...
* check if wallet exists
* check wallet existence in key check
* reuse connection for stataus update
* make format
2022-09-12 20:57:23 +03:00
calle
2ee10e28c5
Backend: Unstuck outgoing payments ( #857 )
...
* first attempts
* lndrest works
* fix details
* optional fee update
* use base64.urlsafe_b64encode
* return paymentstatus
* CLN: return pending for pending invoices
* grpc wip
* lndgrpc works
* cln: return pending for pending invoices really this time
* retry wallet out of exception
* wip eclair
* take all routines into try except
* cliche: return error
* rename payment.check_pending() to payment.check_status()
* rename payment.check_pending() to payment.check_status()
* eclair: works
* eclair: better error check
* opennode: works
* check payment.checking_id istead of payment.ok
* payment.ok check as well
* cln: works?
* cln: works
* lntxbot: works
* lnbits/wallets/lnpay.py
* cln: error handling
* make format
* lndhub full detail update
* spark: wip
* error to False
* wallets: return clean PaymentResponse
* opennode: strict error
* cliche: works
* lnbits: works
* cln: dont throw error
* preimage not error
* fix cln
* do not add duplicate payments
* revert cln
* extra safety for cln
* undo crud changes until tests work
* tasks: better logging and 0.5s sleep for regular status check
* 0.1 s
* check if wallet exists
* lnbits unhashed description
* remove sleep
* revert app.py
* cleanup
* add check
* clean error
* readd app.py
* fix eclaid
2022-08-30 13:28:58 +02:00
calle
4fc0a25d41
Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 ( #745 )
...
* readd lndgrpc
* debug logging
* Use TrackPaymentV2
* /v2/router/track
* lnd_router_grpc
* flag for blocking check
* error handling
* fix name
* regtest lndgrpc
* new test pipeline
* fix env
* check for description hash
* remove unnecessary asserts for clarity
* assume that description_hash is a hash already
* no lock
* description hashing in backend
* restore bolt11.py
* /api/v1/payments with hex of description
* comment
* refactor wallets
* forgot eclair
* fix lnpay
* bytes directly
* make format
* mypy check
* make format
* remove old code
* WIP status check
* LND GRPC docs
* restore cln to main
* fix regtest
* import
* remove unused import
* format
* do not expect ok
* check ok
* delete comments
2022-08-09 11:49:39 +02:00
dni
808bd36e23
some more mypy fixes
2022-07-25 12:02:59 +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
Ben Arc
dbab181759
Admin users can credit accounts
2022-01-31 16:29:42 +00:00
benarc
114a6f1fed
Made memo optional in model
2021-11-04 12:57:28 +00:00
benarc
e03370188a
Fixed payment checking
2021-10-22 00:41:30 +01:00
benarc
1d3bb016a2
I want them to turn black
2021-10-17 18:33:29 +01:00
Stefan Stammberger
fe79709698
fix: several more API calls restored
2021-08-29 19:38:42 +02:00
Stefan Stammberger
3e5af8c1d1
refactor: purge Quart from the codebase
...
Most functionality is still broken
2021-08-27 20:54:42 +02:00
Stefan Stammberger
f119053953
fix: main page and creating a user and a wallet
...
The wallet page will still not renders correctly, but the backend does
create the user his first wallet.
2021-08-24 21:23:18 +02:00
Ben Arc
c4b37c6508
Converted some core stuff
2021-08-20 21:31:01 +01:00
fiatjaf
e0496fb244
fix postgres type translation bug and add some logs.
2021-08-01 10:30:27 -03:00
fiatjaf
b55cc82f1c
evade lnurl encoding error for withdraw_full QR on localhost.
2021-04-21 23:27:57 -03:00
fiatjaf
efd9c6917f
lnurl balanceCheck and balanceNotify.
2021-04-17 23:21:19 -03:00
fiatjaf
946279674a
stop bloating the logs with checking routine.
2021-03-31 20:24:46 -03:00