Commit Graph

53 Commits

Author SHA1 Message Date
Pierre-Marie Padiou
b9c8ffd00e Use lightning-kmp 1.6.2-FEECREDIT-5 (#18)
There are no functional changes, this version is published on sonatype.
2024-03-27 11:43:21 +01:00
Pierre-Marie Padiou
ce86e82854 Factor initialization of datadir (#15)
Fixes #14.
2024-03-27 10:16:15 +01:00
Fabrice Drouin
3fc693e722 Add phoenix-cli script to the JVM distribution (#8)
* Add phoenix-cli script to the JVM distribution

* Close http client after use (otherwise it hangs on the JVM)
2024-03-26 16:37:25 +01:00
Pierre-Marie Padiou
0e9b0d6fe4 Update issue templates 2024-03-26 16:34:45 +01:00
Pierre-Marie Padiou
29e5fe1162 Update issue templates 2024-03-26 16:32:48 +01:00
Pierre-Marie Padiou
bfd521eba1 Update issue templates 2024-03-26 16:25:12 +01:00
pm47
c7be837117 Back to SNAPSHOT 2024-03-25 18:25:42 +01:00
pm47
414aa56bfa Set version to 0.1.2 2024-03-25 18:14:21 +01:00
Fabrice Drouin
613610eb14 Build a jvm application (#7)
Application is build and  packaged with the `application plugin`, which will create a  .zip file that includes all runtime dependencies and a starter script.

---------

Co-authored-by: pm47 <pm.padiou@gmail.com>
2024-03-25 18:14:21 +01:00
pm47
f3251e78e5 explicit message in case of 4XX failures
```
$ curl -u :bad-password http://127.0.0.1:9740/getinfo
Invalid authentication (use basic auth with the http password set in
phoenix.conf)

$ curl -u :4034..8232 http://127.0.0.1:9740/getinfowithtypo
Unknown endpoint (check api doc)

$ curl -u :4034..8232 -X POST http://127.0.0.1:9740/getinfowithtypo
Invalid http method (use the correct GET/POST)

```
2024-03-25 18:14:20 +01:00
pm47
df91b9604f get user consent from command line 2024-03-25 12:07:26 +01:00
pm47
f2b378484a optionnally provide an external seed
usage: `PHOENIX_SEED="focus certain canvas rude exist sausage chuckle
forget bronze brown warm comic" ./phoenixd`
2024-03-25 12:03:41 +01:00
pm47
0432da38e5 optionnally set datadir with env var
ex: `PHOENIX_DATADIR=/my/phoenix/dir ./phoenixd`
2024-03-25 11:37:33 +01:00
pm47
029bd7c162 back to SNAPSHOT 2024-03-25 10:50:56 +01:00
pm47
4e42a462e6 set version to 0.1.1 2024-03-22 18:10:50 +01:00
pm47
c665814d73 fixup! use lightning-kmp 1.6.2-FEECREDIT-4 2024-03-22 18:10:14 +01:00
Dominique Padiou
cc0d042927 Improve error message when payment is rejected 2024-03-22 17:49:55 +01:00
pm47
d36ad92ed5 use lightning-kmp 1.6.2-FEECREDIT-4 2024-03-22 17:42:00 +01:00
pm47
0698418f09 rework liquidity options 2024-03-22 15:03:25 +01:00
pm47
a181fac6be nit in --help 2024-03-22 11:04:12 +01:00
pm47
cb6aff83ac set version to 0.1.0 2024-03-21 16:21:26 +01:00
pm47
eb16d745f4 use release executable for packaging 2024-03-21 16:21:26 +01:00
pm47
920943d49b remove unused in-memory payments db 2024-03-21 16:21:26 +01:00
pm47
a012a7098b use lightning-kmp 1.6.2-FEECREDIT-3 2024-03-21 16:21:24 +01:00
pm47
1dc4d16543 add basic README 2024-03-21 15:15:51 +01:00
pm47
91e1ea6055 make invoice amount optional 2024-03-21 14:24:05 +01:00
pm47
3c39ff6d85 add os filtering on source sets 2024-03-21 14:14:57 +01:00
Dominique Padiou
a3840717ea Filter kexe files when packaging phoenix binaries 2024-03-21 14:14:46 +01:00
pm47
40e9509a13 remove exclusive lock on sqlite 2024-03-21 14:10:30 +01:00
pm47
97b6afce7c name db with chain+nodeId 2024-03-21 13:20:43 +01:00
pm47
fef5aadcf7 move cli options classes inside command class 2024-03-21 11:14:57 +01:00
pm47
bfe6b982b7 cosmetic changes 2024-03-20 18:57:55 +01:00
pm47
a869bc3f37 default to mainnet 2024-03-20 18:53:48 +01:00
pm47
10ac889201 add support for macos-arm64 2024-03-20 16:52:50 +01:00
pm47
64ec5b488a use lightning-kmp 1.6.2-FEECREDIT-2 2024-03-20 16:39:45 +01:00
pm47
5730c627b9 add zip package 2024-03-20 16:30:41 +01:00
pm47
5598a57acc rework onboarding 2024-03-20 16:30:41 +01:00
Dominique Padiou
9d460eeee5 Add version in log, command and api
A task has been added to generate a BuildVersions file
when building the project. Project's version can be
found in that file at runtime.

Also centralized declaration of the dependencies
versions to buildSrc.
2024-03-20 16:02:48 +01:00
pm47
6bffd418e8 add timestamps to logs 2024-03-20 14:04:41 +01:00
pm47
f0e21be318 use mempool.space instead of electrum 2024-03-19 21:50:19 +01:00
Dominique Padiou
026b8138ef Rename amountSat->balanceSat in balance response 2024-03-19 18:05:14 +01:00
Dominique Padiou
c02a09744a Add ktor client for darwin (macos) 2024-03-19 14:00:01 +01:00
Dominique Padiou
83dd62a98c Add externalId to PaymentReceived event
PaymentSent is also not a ApiEvent anymore.
2024-03-19 11:58:47 +01:00
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