Commit Graph

410 Commits

Author SHA1 Message Date
kiwiidb
a3c6f294e0 fix merge conflict 2022-03-08 14:57:46 +01:00
kiwiidb
f86543ee0e Merge pull request #127 from getAlby/keysend-implementation
Keysend implementation
2022-03-08 14:51:28 +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
2548de40a5 Change keysend endpoint method to POST 2022-03-08 12:30:43 +01:00
kiwiidb
894317194a Merge pull request #124 from getAlby/sentry-notifications
Sensitive data from sentry payload
2022-03-08 08:33:28 +01:00
Stefan Kostic
3a12f908c4 Cleanup keysend ctrl 2022-03-08 01:29:01 +01:00
Stefan Kostic
03e44fac58 Fix keysend response body type 2022-03-08 01:21:28 +01:00
Stefan Kostic
c6b4c3028c Remove todo and cleanup 2022-03-08 01:15:37 +01:00
Stefan Kostic
ba7c045729 Add keysend tests 2022-03-08 01:11:02 +01:00
Stefan Kostic
6dc4e608fb Fix invoice keysend spelling 2022-03-08 01:09:43 +01:00
Stefan Kostic
c6ba661227 Fix key send response body 2022-03-08 01:09:11 +01:00
Stefan Kostic
b82deb3835 Register endpoint 2022-03-08 01:08:57 +01:00
Stefan Kostic
7e528489d7 Add check for user balance after successful payment 2022-03-07 11:28:58 +01:00
kiwiidb
96b1657abb Merge pull request #122 from getAlby/chore/go-mod-tidy
run go mod tidy
2022-03-05 07:39:28 +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
f13e8888bc Add test for negative balance 2022-03-04 18:32:35 +01:00
Stefan Kostic
a881131b8d Adapt balance constraint 2022-03-04 18:29:31 +01:00
Stefan Kostic
90e90dc79c Merge branch 'main' into fee-handling 2022-03-04 17:46:36 +01:00
Stefan Kostic
831895a8e0 Remove integration tests util todo and fix comment 2022-03-04 17:28:04 +01:00
Stefan Kostic
9c81020829 Fix tests 2022-03-04 17:24:38 +01:00
Stefan Kostic
6266156fda Bad request on auth controller bad req body 2022-03-04 15:25:12 +01:00
kiwiidb
7c938477a6 make keysend work on regtest 2022-03-04 15:15:43 +01:00
Stefan Kostic
7c28270c6a Add proper err response to create ctrl 2022-03-04 15:11:23 +01:00
kiwiidb
d02d9ffd67 run go mod tidy 2022-03-04 11:28:12 +01:00
kiwiidb
3d8ecd425f keysend: low-level work and instructions 2022-03-04 11:08:27 +01:00
kiwiidb
8e4646982d Merge pull request #116 from getAlby/refresh-token-fix
Refresh token fix
2022-03-02 13:39:13 +01:00
kiwiidb
836fbcb75d Merge pull request #115 from getAlby/fix-init-migration
Use sql for init migration
2022-03-02 13:35:54 +01:00
Stefan Kostic
cd6a08690c Fix PR comments 2022-03-01 23:22:45 +01:00
Stefan Kostic
8b0a721c75 Add auth tests for failing scenarios 2022-03-01 22:55:23 +01:00
kiwiidb
c63aa0c7d2 add lnd3 credentials 2022-03-01 13:05:39 +01:00
kiwiidb
735cd6a839 fee handling should come from payment response 2022-03-01 10:06:29 +01:00
Stefan Kostic
d572b1585f Add fee check to internal payment test 2022-02-25 20:24:06 +01:00
Stefan Kostic
0669546a08 Add amount checks for internal payment test transaction entries 2022-02-25 20:13:00 +01:00
Stefan Kostic
31cf4fbd13 Add transaction entries checks in outgoing payment test 2022-02-25 20:08:16 +01:00
Stefan Kostic
5033a33593 Add fee handling to tests 2022-02-25 19:40:46 +01:00
Stefan Kostic
e489320363 Change transaction entries count in existing tests 2022-02-25 19:21:16 +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
f615564728 Return bad auth error response properly 2022-02-24 23:16:21 +01:00
Stefan Kostic
d4032de94c Check if token is valid in util method 2022-02-24 22:54:50 +01:00
Stefan Kostic
98b9fc1fe7 Add login by refresh token test 2022-02-24 22:54:35 +01:00
Stefan Kostic
4c379fc856 Implement refresh token case in auth service 2022-02-24 21:18:41 +01:00
Stefan Kostic
5301d592bd Extend util method to check if token is refresh 2022-02-24 21:18:13 +01:00
Stefan Kostic
371124f77e Add jwt util to parse user id from token 2022-02-24 21:05:12 +01:00
Stefan Kostic
4d0300a330 Set different expiry for access and refresh tokens 2022-02-24 20:46:05 +01:00
Stefan Kostic
de823e478a Fix migration according to PR comments 2022-02-23 18:41:58 +01:00
Stefan Kostic
b25c1cb1c4 Use sql for init migration 2022-02-22 15:52:21 +01:00