Commit Graph

11 Commits

Author SHA1 Message Date
Nadav Ivgi b6dc91cf99 Add "msatoshi_received" with the actual amount paid 2018-01-26 14:06:22 +02:00
Nadav Ivgi 0327af234f Compatibility with c-lightning's latest API changes
- Use the new `status` argument for `delinvoice`, remove our manual status verification.

- Use the new `paid_at` field instead of using our local time when processing payments,
  rename our `completed_at` to match (but still expose `completed_at` for now).

- Read from the `expires_at` field (renamed from `expiry_time`, now matches our local field name).

- test: `getpeers` -> `listpeers`

- test: Remove use of addfunds.

- test: Set --allow-deprecated-apis=false by default, overridable with ALLOW_DEPRECATED.

- Remove the `completed` column and determine completion status based on the presence of `pay_index`,
  but still expose `completed` for now.
  Not entirely related to c-lightning's API changes, but tightly coupled with the other changes.

Refs: https://github.com/ElementsProject/lightning/pull/623
2018-01-20 15:02:52 +02:00
Nadav Ivgi 45ac79eeb3 Update waitanyinvoice to use pay_index
Refs https://github.com/ElementsProject/lightning/pull/474
2017-12-31 07:11:58 +02:00
Nadav Ivgi 2d2c28d81c Remove redundant peerid
It's already embedded as part of the BOLT11 payment request.
2017-12-29 20:18:58 +02:00
Nadav Ivgi 68ff299788 Make the invoice description and expiry configurable 2017-11-28 17:56:01 +02:00
Nadav Ivgi 6b634f1e1d Keep track of last paid invoice separately 2017-11-24 06:38:28 +02:00
Nadav Ivgi 9cb020e65e Change {created|completed}_at fields to integer 2017-11-24 02:31:19 +02:00
Nadav Ivgi 4f4b1d5b9b Allow specifying amounts in fiat currencies and auto-convert based on the current exchange rates. Closes #1. 2017-11-19 17:12:45 +02:00
Nadav Ivgi ce15f39f16 Store msatoshi as string 2017-11-19 17:04:59 +02:00
Nadav Ivgi 53f476565b Send updated invoice to web hooks (application/json request body) 2017-11-14 22:00:26 +02:00
Nadav Ivgi a4df13e3e7 initial commit, working PoC 2017-11-14 15:00:18 +02:00