60 Commits

Author SHA1 Message Date
Dominique Padiou
d872fc3573
Rename id of PaymentSent to paymentId for consistency 2024-03-19 11:29:27 +01:00
Dominique Padiou
3d37e0adc7
(cli) Add PhoenixCliCommand class for convenience
This abstract class catches errors and echoes a short message
instead of printing a stacktrace. This is especially useful
when the CLI cannot connect to phoenixd (e.g. wrong port). We
can also factorise some of the code.
2024-03-18 19:33:37 +01:00
Dominique Padiou
4b59be44b5
Add payment's UUID to /payinvoice response
The UUID is required to query details for the payment later
on, and should thus be exposed by the API when the payment
has been sent successfully.
2024-03-18 19:31:04 +01:00
Dominique Padiou
64775d2fd5
Merge channels and payments database
There is now only one database file, phoenix.db. This
makes database backup easier.

Legacy channels closing parts have been removed (we
use a dedicated table to store closings).

The tables storing lightning outgoing payments have
been renamed for consistency by addingd a "lightning"
prefix. The related kotlin classes have been renamed
as well.
2024-03-18 18:34:25 +01:00
Dominique Padiou
9d984591bc
Add API endpoint to list payments by external id
Creating an invoice now accepts an optional external id.
Also added new payment endpoints to the CLI.
2024-03-11 21:04:10 +01:00
pm47
65b1db5716
using lightning-kmp:1.6.2-FEECREDIT-1 2024-03-11 17:59:37 +01:00
Dominique Padiou
3027bd1aca
Add table storing payments metadata 2024-03-11 17:59:20 +01:00
pm47
e6e6707685
do not explicitly reference client impl 2024-03-11 15:25:32 +01:00
pm47
f843c0dcc2
remove fee-credit feature 2024-03-11 14:10:02 +01:00
Pierre-Marie Padiou
d791179125
Initial commit 2024-03-08 19:23:23 +01:00