kiwiidb
977fe8c514
Merge pull request #98 from getAlby/add-constants
...
Add constants for invoice state, type and account type
2022-02-10 18:23:08 +01:00
kiwiidb
3c08c5b349
Merge branch 'main' into feature/integration-testing-payments
2022-02-10 14:26:42 +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
2748b7f2f3
Use request context in handlers
2022-02-08 13:36:50 +01:00
kiwiidb
8006cec51d
internal payments: test working
2022-02-07 12:07:21 +01:00
kiwiidb
6a1803ceb4
tests: add deposit integration test
2022-02-04 15:28:34 +01:00
kiwiidb
1ae5df6b8c
Feature: integration testing
...
Add integration tests with testify/suite. Moved some structs
outside of controller funcs so we can re-use them in the testing
package. Add CI workflow for running tests on every push.
2022-02-01 11:47:11 +01:00
kiwiidb
7e2b432790
add optional custom node name
2022-02-01 09:22:44 +01:00
kiwiidb
242e1438a6
embed static files
2022-01-28 09:57:51 +01:00
kiwiidb
5c1b27398b
add index page
2022-01-27 16:04:03 +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
edd2abedfb
Do not fail if invoice does not have a description
2022-01-22 23:05:21 +01:00
Michael Bumann
891dd8394c
DRY up error responses
2022-01-22 20:38:14 +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
Michael Bumann
3e088a7652
Pass invoice description hash string to LND
2022-01-21 17:40:52 +01:00
Michael Bumann
f683a22a66
Correct gettxs and getuserinvoices responses
2022-01-21 12:22:49 +01:00
Michael Bumann
228edcbe39
Return user invoices
...
and maybe correctly encode the Buffers?
2022-01-21 11:49:08 +01:00
Michael Bumann
2097807c85
Support Amount values as string/integer in request JSON
2022-01-21 11:15:35 +01:00
Michael Bumann
7d6dc15b8c
Merge branch 'main' into payinvoice
...
* main:
Correct style
Add blank routes required for bluewallet
2022-01-20 14:28:26 +01:00
Michael Bumann
1d17708875
Correct style
2022-01-20 14:20:15 +01:00
Michael Bumann
31570b8adf
Add blank routes required for bluewallet
2022-01-20 14:02:32 +01:00
Michael Bumann
6822b274e5
Add check payment endpoint
2022-01-20 13:58:46 +01:00
Michael Bumann
70a7e1a8eb
Add DB constraints to check for user balances
2022-01-20 02:03:51 +01:00
Michael Bumann
d4183c100b
Add payinvoice endpoint
2022-01-20 01:57:31 +01:00
Michael Bumann
1db6f77dd9
Add check payment endpoint
2022-01-19 22:11:24 +01:00
Michael Bumann
56a3f79506
Cleanup
2022-01-19 21:42:42 +01:00
Michael Bumann
93e74d125f
Merge pull request #53 from getAlby/user-service
...
User service for all user related functions
2022-01-19 22:41:00 +02:00
Michael Bumann
237d0153bd
Merge pull request #49 from getAlby/getbtc
...
Add /getbtc endpoint
2022-01-19 22:40:28 +02:00
Michael Bumann
6a8d4bd52c
Merge pull request #50 from getAlby/getinfo
...
Add /getinfo endpoint
2022-01-19 22:39:55 +02:00
Michael Bumann
7bd74a69d8
User service for all user related functions
2022-01-19 21:16:20 +01:00
Michael Bumann
f625ef7efc
Implement addinvoice call
2022-01-19 19:43:29 +01:00
Michael Bumann
65fe75d7ce
Introduce a Blank controller for unsported endpoints
2022-01-19 17:56:33 +01:00
Michael Bumann
5c5f600147
Add /getinfo endpoint
...
For now we simple return the getinfo response from LND.
In the future we should limit the response and exactly define the response value.
Also we should add some caching here to not always needing to hit the lightning node
2022-01-19 17:40:06 +01:00
Michael Bumann
163dcb725c
Fix
2022-01-19 17:36:58 +01:00
Michael Bumann
585a8504e5
Add /getbtc endpoint
...
We do not support on chain transactions but for backwards compatibility we still implement these endpoints.
Here we return an empty array.
This is consumed by: a28a2b96bc/class/wallets/lightning-custodian-wallet.js (L327)
2022-01-19 17:18:50 +01:00
kiwiidb
2915d4a094
fix 2 bugs in create user func
2022-01-19 16:59:10 +01:00
kiwiidb
8eef14fccc
move service functions to service package
2022-01-19 16:10:55 +01:00
kiwiidb
d3948cce06
remove references to jwt in auth controller
2022-01-19 16:03:39 +01:00
kiwiidb
cbf3cecb32
refactor create endpoint
2022-01-19 15:40:41 +01:00
kiwiidb
18f65e4546
refactor payinvoice
2022-01-19 15:32:22 +01:00
kiwiidb
55fda4d3f4
refactor auth and addinvoice
2022-01-19 15:25:07 +01:00
kiwiidb
b8fb826ea5
move config to lib
2022-01-19 14:40:27 +01:00
kiwiidb
a83fbc6067
add constructor funcs for controllers
2022-01-19 14:35:46 +01:00
kiwiidb
0c80998b49
refactor payinvoice
2022-01-19 14:22:16 +01:00
kiwiidb
790239cfa5
refactor create
2022-01-19 14:19:45 +01:00
kiwiidb
ecd4894673
refactor balance
2022-01-19 14:18:34 +01:00
kiwiidb
c0644b1da7
refactor auth
2022-01-19 14:12:53 +01:00