kiwiidb
|
a0c6cd4729
|
fix internal keysends
|
2022-05-18 13:14:31 +02:00 |
|
kiwiidb
|
d01b9c492f
|
internal keysend payments
|
2022-05-18 11:46:15 +02:00 |
|
kiwiidb
|
36ee813ff6
|
fix merge conflicts
|
2022-05-03 09:04:54 +02:00 |
|
kiwiidb
|
6aa753cd3e
|
fix merge conflicts
|
2022-05-02 13:46:45 +02:00 |
|
kiwiidb
|
017bf282fd
|
publish incoming and outgoing payments to respective topics
|
2022-04-27 12:25:28 +02:00 |
|
kiwiidb
|
b150d8c8ec
|
change topic type to string
|
2022-04-27 12:21:15 +02:00 |
|
kiwiidb
|
b5497e434a
|
publish invoice for internal payments
|
2022-04-21 13:27:53 +02:00 |
|
Stefan Kostic
|
e2947cf9a1
|
Replace math rand with crypto rand
|
2022-04-13 20:21:35 +02:00 |
|
Stefan Kostic
|
edc51df4fb
|
Make fixed fees dynamic
|
2022-03-23 16:55:13 +01:00 |
|
kiwiidb
|
be8a5a4acc
|
feature: allow custom records to keysend
|
2022-03-18 12:19:19 +01:00 |
|
kiwiidb
|
a3c6f294e0
|
fix merge conflict
|
2022-03-08 14:57:46 +01:00 |
|
Stefan Kostic
|
fb1be3bd8b
|
Rename struct
|
2022-03-08 13:46:51 +01:00 |
|
Stefan Kostic
|
f7b2ea76d6
|
Group payreq and keysend flag into struct
|
2022-03-08 12:32:02 +01:00 |
|
Stefan Kostic
|
6dc4e608fb
|
Fix invoice keysend spelling
|
2022-03-08 01:09:43 +01:00 |
|
Stefan Kostic
|
7e528489d7
|
Add check for user balance after successful payment
|
2022-03-07 11:28:58 +01:00 |
|
Stefan Kostic
|
dd600af5b2
|
Refactor send payment sync a bit to reduce code duplication
|
2022-03-04 20:05:59 +01:00 |
|
Stefan Kostic
|
8b077cd5ea
|
First key send endpoint impl based on pay invoice ctrl
|
2022-03-04 19:53:25 +01:00 |
|
kiwiidb
|
3d8ecd425f
|
keysend: low-level work and instructions
|
2022-03-04 11:08:27 +01:00 |
|
Stefan Kostic
|
cd6a08690c
|
Fix PR comments
|
2022-03-01 23:22:45 +01:00 |
|
kiwiidb
|
735cd6a839
|
fee handling should come from payment response
|
2022-03-01 10:06:29 +01:00 |
|
Stefan Kostic
|
3858528607
|
Add transaction entry for fee
|
2022-02-25 00:23:37 +01:00 |
|
Stefan Kostic
|
596dbc6eca
|
Use sentry capture for handle payment errors
|
2022-02-18 12:46:35 +01:00 |
|
Stefan Kostic
|
fd80bcea5d
|
Fix error logging todos
|
2022-02-17 20:36:04 +01:00 |
|
Stefan Kostic
|
130760bbb1
|
Add error message field to invoice
|
2022-02-17 20:29:45 +01:00 |
|
Stefan Kostic
|
63a3ea09b3
|
Add simple failure test
|
2022-02-17 18:32:30 +01:00 |
|
Stefan Kostic
|
2e5f411cf1
|
Use context background on all needed places
|
2022-02-17 15:17:05 +01:00 |
|
Stefan Kostic
|
fea16623ab
|
Implement handle failed payment method
|
2022-02-17 15:10:42 +01:00 |
|
Stefan Kostic
|
1d9e24f21c
|
Implement handle successful payment method
|
2022-02-17 14:27:49 +01:00 |
|
kiwiidb
|
74da8f8088
|
new pr scope: don't bother with callbacks
|
2022-02-17 11:31:39 +01:00 |
|
kiwiidb
|
7ff25113e5
|
outline behaviour in comments
|
2022-02-16 12:29:11 +01:00 |
|
kiwiidb
|
26694c821f
|
remove transactions, add empty func that will handle failed payments
|
2022-02-16 11:23:30 +01:00 |
|
kiwiidb
|
61966e3d1c
|
address PR comments
|
2022-02-16 09:12:37 +01:00 |
|
kiwiidb
|
d88ebf11d8
|
use the correct expiresAt timestamp
|
2022-02-15 18:16:10 +01:00 |
|
kiwiidb
|
20610aef06
|
remove btcec dependency
|
2022-02-15 17:24:57 +01:00 |
|
kiwiidb
|
fb8fe70d07
|
remove zpay32 dep
|
2022-02-15 17:19:35 +01:00 |
|
Stefan Kostic
|
f93bdd54f9
|
Replace hardcoded strings with common constants
|
2022-02-09 22:27:01 +01:00 |
|
Stefan Kostic
|
3f4cc70d22
|
Revert commits related to constants
|
2022-02-09 22:24:52 +01:00 |
|
Stefan Kostic
|
3152f6f2e6
|
Replace hardcoded strings with common constants
|
2022-02-09 22:17:49 +01:00 |
|
Stefan Kostic
|
0da4b359d6
|
Pass in ctx as service methods first argument
|
2022-02-08 13:35:02 +01:00 |
|
Michael Bumann
|
2f44889be6
|
300 sat it is for now. this should work for most payments
|
2022-01-31 13:31:07 +01:00 |
|
Michael Bumann
|
f2ca4ac0ca
|
Set fixed fee limit
Very small amounts have problems with the percentage based fee limit.
This has to be changed soon to be smarter and more dynamic
|
2022-01-31 13:27:45 +01:00 |
|
Michael Bumann
|
d10701ad2f
|
Custom HTTP error handler and send sentry notifications
|
2022-01-24 23:37:03 +01:00 |
|
Michael Bumann
|
f6367b33a0
|
Merge pull request #69 from getAlby/bugfix/fix-invoices-without-description
Do not fail if invoice does not have a description
|
2022-01-24 20:12:29 +02:00 |
|
Michael Bumann
|
3053ad0549
|
Merge pull request #68 from getAlby/payinvoice-response
Better payinvoice response + DRY errors
|
2022-01-24 20:12:21 +02:00 |
|
Michael Bumann
|
436baeeccb
|
Merge pull request #64 from getAlby/invoice-update-subscriptions
First draft to subscribe for LND invoice update
|
2022-01-23 00:22:46 +02:00 |
|
Michael Bumann
|
edd2abedfb
|
Do not fail if invoice does not have a description
|
2022-01-22 23:05:21 +01:00 |
|
Michael Bumann
|
35e7da2f30
|
Search for correct state
|
2022-01-22 22:57:14 +01:00 |
|
Michael Bumann
|
af8c72d2c9
|
Store invoice expiry and use search for not expired invoices in the invoice subscription
When subscribing for invoice updates we only subscribe to not expired invoices.
We assume expired invoices will never get paid.
|
2022-01-22 21:11:19 +01:00 |
|
Michael Bumann
|
1359d97d6a
|
Better payinvoice response
This is not exactly the response that lndhub gives but it should be good enough
|
2022-01-22 19:20:40 +01:00 |
|
kiwiidb
|
366f66a2e2
|
use bun.Tx to avoid db locked err
|
2022-01-22 10:33:54 +01:00 |
|