Commit Graph

115 Commits

Author SHA1 Message Date
kiwiidb
a5ae01a5f2 add proper pubsub 2022-04-06 18:00:04 +02:00
kiwiidb
45e0c48f1f fix conflicts 2022-04-06 16:38:01 +02:00
kiwiidb
4cb60a5c91 clean up PR 2022-04-06 16:36:06 +02:00
kiwiidb
87f290f37d Merge pull request #142 from getAlby/feature/metrics
Feature/metrics
2022-04-06 16:19:03 +02:00
kiwiidb
07b93fc574 add prometheus on seperate port 2022-03-31 11:40:32 +02:00
Stefan Kostic
23bd588724 Add unit tests for calc fee limit fn 2022-03-30 18:59:03 +02:00
Stefan Kostic
edc51df4fb Make fixed fees dynamic 2022-03-23 16:55:13 +01:00
kiwiidb
96af86dcc3 Merge pull request #134 from getAlby/unauthorized-invoice-endpoint
Unauthorized invoice endpoint
2022-03-22 07:51:08 +01:00
kiwiidb
cd2456ec34 merge in event stream 2022-03-21 13:06:40 +01:00
kiwiidb
61ea259f2e Merge branch 'unauthorized-invoice-endpoint' 2022-03-21 13:05:46 +01:00
kiwiidb
fcbee32d76 wrap bolt12 response 2022-03-21 12:01:13 +01:00
kiwiidb
ce80647a23 fix conflicts 2022-03-21 11:57:16 +01:00
kiwiidb
93ad471dac feature: settled invoice stream 2022-03-20 13:17:38 +01:00
Stefan Kostic
61c8d8a53c Add method to fetch user by login 2022-03-18 18:03:32 +01:00
kiwiidb
be8a5a4acc feature: allow custom records to keysend 2022-03-18 12:19:19 +01:00
Stefan Kostic
412b2d4659 Add rate limit params to config 2022-03-15 12:31:58 +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
Stefan Kostic
90e90dc79c Merge branch 'main' into fee-handling 2022-03-04 17:46:36 +01:00
kiwiidb
7c938477a6 make keysend work on regtest 2022-03-04 15:15:43 +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
b99182db64 Add configurable fixed amount for fee 2022-02-25 00:23:09 +01:00
Stefan Kostic
902135838c Cleanup 2022-02-24 23:36:08 +01:00
Stefan Kostic
4c379fc856 Implement refresh token case in auth service 2022-02-24 21:18:41 +01:00
Stefan Kostic
4d0300a330 Set different expiry for access and refresh tokens 2022-02-24 20:46:05 +01:00
kiwiidb
8a91d3e391 Merge branch 'main' into feature/bolt12 2022-02-23 15:03:01 +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
0987912a92 Merge branch 'chore/remove-unnecesary-deps' into feature/bolt12 2022-02-15 18:16:22 +01:00
kiwiidb
d88ebf11d8 use the correct expiresAt timestamp 2022-02-15 18:16:10 +01:00
kiwiidb
7d3eefd26b should work now 2022-02-15 18:10:14 +01:00
kiwiidb
b63885ca4f add transform bolt12 function again 2022-02-15 17:54:16 +01:00
kiwiidb
a1b4e895c4 fix merge conflicts 2022-02-15 17:48:07 +01:00