Commit Graph

26 Commits

Author SHA1 Message Date
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
kiwiidb
860e2fa402 refactor addinvoice 2022-01-19 14:10:37 +01:00
kiwiidb
e22ab6ce49 rename context to service 2022-01-19 13:53:40 +01:00
Michael Bumann
f8aa8d5962 Reuse user model for account lookup 2022-01-19 13:21:08 +01:00
Michael Bumann
a07aa749f0 Move balance calculationo to User model 2022-01-19 13:16:25 +01:00
Michael Bumann
a6405fb6c4 Calculate user balance 2022-01-19 13:07:44 +01:00
Michael Bumann
ccc8ad8cd5 Comments 2022-01-19 11:46:10 +01:00
Michael Bumann
d86c7b680d Test creating account transactions for outgoing transaction 2022-01-19 11:00:08 +01:00
Michael Bumann
eb0e882941 Create user accounts on user create
Incoming: the account we debit on incoming transactions
Current: the account that we credit on incoming transactions and debit on outgoing transactions (this is the user's balance)
Outgoing: the acount we credit on outgoing transactions
Fees: the account we credit for fees
2022-01-19 10:59:40 +01:00
Viktor Patchev
919affa2db Update package name to new repo 2022-01-18 10:42:53 +01:00
Michael Bumann
b191d19707 Trying to use lnrpc in a controller 2022-01-17 22:52:10 +01:00
Michael Bumann
6478c6e0db Make JWT expiry configurable and require to set a JWT secret 2022-01-17 11:11:28 +01:00
Michael Bumann
236427b8e2 Use Echo logger 2022-01-17 10:22:02 +01:00
Michael Bumann
2e387132d1 Example 2022-01-17 10:19:53 +01:00
Roman Useinov
e7e5904829 UserMiddleware added 2022-01-16 14:02:58 +00:00
Michael Bumann
95512462f6 Cleanup typos (#28)
* Typo

* Typoc
2022-01-16 14:13:45 +01:00
Michael Bumann
2c19244cad Fix auth controller update (#31)
* Fix auth controller update

We should update the user here

* Remove database update on auth call as we simply rely on JWT
2022-01-16 14:11:49 +01:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00