Commit Graph

96 Commits

Author SHA1 Message Date
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
Pavol Rusnak
b2bc378a6f
small followup to #1597 2023-04-03 17:54:55 +02:00
Pavol Rusnak
689c443d72
increase readability by using f-strings (#1597)
* increase readability by using f-strings

* readd merge conflict stuff

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:17 +02:00
dni ⚡
fe9e821af5
BUG: proper exception for already paid internal invoices (#1593)
* BUG: proper exception for paid interal invoices

* test should now fail, because we pay invoice twice, and should also work in regtest

* sorting

* unpack check_internal

* introduce another crud fn for checking internal paid payment

* rename

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-04-03 14:44:17 +02:00
dni ⚡
ca75b328a1
remove invoices (#1515)
* remove invoices

* remove invoices tests

* remove unused tests/extensions dir

* fix issue

* formatting

* test passing locally. and i dont know why

* fix _extension_dir loading

* gitkeep extension dir

* formatting

* remove bundle from check

* do not prettier compliled css

* do not prettier compliled css

* create extension dir, if it does not exists, just to be sure

* Update lnbits/extension_manager.py

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-02-20 15:34:18 +01:00
dni ⚡
4211998959
remove lnaddress (#1525)
* remove lnaddress
2023-02-20 09:08:23 +01:00
dni ⚡
451c8f7a9e
remove bleskomat (#1521) 2023-02-17 16:06:04 +01:00
Arc
1026b242ba
Removed lnurlp (#1511)
* Removed lnurlp
* comment out extension checks for lnurlp

---------

Co-authored-by: dni  <office@dnilabs.com>
2023-02-17 15:21:53 +01:00
dni ⚡
7baa248204
remove boltz 2023-02-15 10:06:21 +01:00
dni ⚡
db97ef5543
reintroduce extension migration check (#1490)
* reintroduce extension migration check

* introduce checkversions again and remove extensions from dbversions table
2023-02-14 13:06:01 +01:00
dni ⚡
3276347d5d
remove all extensions from migration data at once (#1489)
* remove all extnesions from migration data at once

* nerf workflow for now

* check dbversions
2023-02-14 12:42:46 +01:00
ben
82add2189a Removes events 2023-02-11 08:53:24 +00:00
dni ⚡
0dffb2c1a0
moving build file into tools, keep rootdir clean (#1434)
* moving build file into tools, keep rootdir clean

* formatting

* make flake happy
2023-02-01 17:19:56 +01:00
dni ⚡
3ac6a98adc
TEST: add helpers and a test to pay external invoice (#1414)
* add helpers and a test to pay external invoice

* skip real test in fakewallet

* formatting

* fix test

* formatting
2023-02-01 16:54:07 +01:00
ben
9b21e2028e Removed example from mock 2023-01-31 22:39:10 +00:00
Pavol Rusnak
58a7098be5
fix unused variable 2023-01-30 11:46:45 +00:00
Pavol Rusnak
24fbb9ef5d
fix flake8 F811 (redefinition of unused) 2023-01-30 11:46:45 +00: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
Pavol Rusnak
a02f147482
fix flake8 E302 (expected 2 blank lines) 2023-01-30 11:46:44 +00:00
Pavol Rusnak
f6bd8684d3
fix flake8 E712 (comparison-to-bool) 2023-01-30 11:46:44 +00:00
Pavol Rusnak
15d7fbeace
run autoflake
```
autoflake -i --remove-unused-variables $(find . -name "*.py")
```
2023-01-30 11:46:43 +00:00
ben
0668fd79b6 Removed usermanager 2023-01-28 21:01:01 +00:00
ben
432ca98663 Pulled tpos 2023-01-27 13:03:21 +00:00
ben
f22e5069df Removed lnticket 2023-01-27 12:16:54 +00:00
ben
e4479fcb78 removed copilot from mock data 2023-01-26 12:51:13 +00: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
dni ⚡
d89a6a337a
boltz extension v2, recurring swaps (#981)
* add status to statusdialog

* first commits for boltz update

* formatting

* add latest boltz-clien package

* big refactor, depending on boltz_client package, clean up, mypy issues, not tested yet

* blacking, sorting and stuff

* remove unused req_wrap helper

* remove api docs from frontend

* bug: frontend boltz limits error

* clean up buttons

* update to boltz-client 0.0.8

* fix tests to poetry version 1.3.1

* update requirements

* formatting

* recurring swap works now, need more finetuning

* add exceptions for multiple auto swaps and swapping in with active auto swap

* black

* auto reverse swap actually works :)

* remove swap status dialogs

* update to boltz_client 0.0.9

* update to boltz-client 0.1.1, and fix startup

* update requirement.txt for boltz-client

* fixup columns in table, remove unused payment.extra, change deezy label

* remove balance check for auto swap out

* update boltzc-lient to 0.1.2, fix mypy issue inside boltz package

* nitpicks calle tasks.py

* calle nitpicks crud

* calle nitpicks crud

* refactor

* fix formatting

* circular import

* black :)

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-01-19 10:30:47 +01:00
callebtc
1629609569 remove subfolder from mock_data.zip 2023-01-10 15:59:25 +01:00
callebtc
6e719c8fba update mock data to 6 2023-01-10 15:46:03 +01:00
Uthpala Heenatigala
5dc7a77e43 running format and adding sqlite db to mock_data.zip 2023-01-06 00:41:20 +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
Pavol Rusnak
a377381942
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify 2022-12-29 16:46:35 +01:00
Vlad Stan
2eeef5c1ed
Merge branch 'main' into FinalAdminUI 2022-12-16 12:21:25 +02:00
callebtc
a7fe203abd fix: regtest error expectations fixed 2022-12-14 18:40:23 +01:00
callebtc
fa7bbb62e2 correct error codes in tests 2022-12-14 14:59:11 +01:00
Vlad Stan
1859ff5e36 fix: watchonly db (not sure why it was corrupted) 2022-12-12 18:28:24 +02:00
Vlad Stan
ae194b3bc7 fix: update dbversions after merge 2022-12-12 12:18:15 +02:00
Vlad Stan
6cab77ece4
Merge branch 'main' into FinalAdminUI 2022-12-12 10:49:31 +02:00
Vlad Stan
4cd2fe7ee1
Merge branch 'main' into FinalAdminUI 2022-12-09 14:06:47 +02:00
dni ⚡
b4e8659006 fix default value for reserve fee
format
2022-12-07 15:58:33 +01:00
dni ⚡
32459168f4 make value 4000, but it is failing locally for me 2022-12-07 15:32:24 +01:00
dni ⚡
5bc2c68cde test: bleskomat, another try 2022-12-07 14:29:58 +01:00
dni ⚡
57b8073eec test: fix bleskomat, get wallet from conftest 2022-12-07 14:21:35 +01:00
dni ⚡
b470d40e38 bleskomat WALLET class 2022-12-07 13:55:29 +01:00
dni ⚡
4227fd70da bleskomat import WALLET from helpers 2022-12-07 13:43:27 +01:00
dni ⚡
89933c2d30 test should pass now, WALLET is initialised after the settings are loaded from db. 2022-12-07 13:38:33 +01:00
callebtc
00a3bd9ce7 add migrated mock data to tests 2022-12-06 13:26:42 +01:00
Arc
69ef0f2bb1
Merge pull request #1160 from blackcoffeexbt/bugfix/lnbits-casing
LNbits casing fixes
2022-12-01 12:24:27 +00:00
callebtc
33eb460d5c restore 7f64f426c2 2022-12-01 12:21:25 +01:00
callebtc
35c5542b2f restore 7f64f426c2 2022-11-30 16:24:13 +01:00