Commit graph

456 commits

Author SHA1 Message Date
Jonathan Zernik
ffe326fa32
Refactor squeak node into controller and node (#461)
* Rename squeak node to squeak controller

* Rename SqueakNode class to SqueakController

* Got itest working with refactored squeaknode and squeakcontroller classes
2020-11-14 19:28:39 -05:00
Jonathan Zernik
c240833815
Fix server defaults empty string (#460)
* Fix server_defaults for migration empty strings

* Show buyer client addr in frontend
2020-11-13 05:03:48 -05:00
Jonathan Zernik
0c072ae470
Include client_addr in sent_offer and received_payment tables (#458) 2020-11-13 04:29:20 -05:00
Jonathan Zernik
416d5a34f8
Save invoice time and epiry in sent offers table (#457) 2020-11-13 03:01:04 -05:00
Jonathan Zernik
4e17c4611d
Make fields nullable false in models (#456) 2020-11-13 00:42:28 -05:00
Jonathan Zernik
2f4ad44a44
Include settle_index field when saving received payment (#455) 2020-11-12 22:37:07 -05:00
Jonathan Zernik
6a90a59946
Update static build (#454) 2020-11-12 14:08:30 -05:00
Jonathan Zernik
2c8d6e0df5
Fix timestamp in get received payments (#453)
* Fix timestamp in get received payment rpc

* Update static build

* Fix proto numbering of received payment

* Include log line with returned received payments

* Lg the received payments reply

* Lg received payments reply list

* Lg received payments reply list

* Fix received payment component

* Remove log lines from frontend

* Remove log lines for received payment
2020-11-12 14:04:28 -05:00
Jonathan Zernik
1724d0dded
Fix parse of received payment query result (#452) 2020-11-12 04:06:42 -05:00
Jonathan Zernik
1d68e0b569
Add sent offer table (#451)
* Rename received payments to sent offers

* Add received payments table

* Add get received payments rpc method

* Rename old received payment to sent offer in frontend

* Add received payment frontend component

* Improve logging of error in admin web request
2020-11-12 04:02:28 -05:00
Jonathan Zernik
2f8d718518
Add received payments worker (#450)
* Got subscribe invoices worker working

* Improve error message in lnd invoice worker

* Only mark received payments if paid if the invoice is settled

* Check if invoice is settled before marking received payment as paid

* Pass settle index as param to mark paid db method

* Add migration to include settle_index in sent payments table

* Got latest settle index query working, I think

* Only return received payments that are already paid in db query

* Remove unused column from get latest settle index query

* Update static build
2020-11-11 22:02:26 -05:00
Jonathan Zernik
d8ff4d3627
Update readmes (#449) 2020-11-11 16:23:23 -05:00
Jonathan Zernik
284916bbdb
Show received payments in frontend (#448)
* Show received payments in frontend

* Update static build

* Fix sent payments query

* Fixed frontend received payments code

* Update static build

* Remove received payments component

* Fill in received payments component

* Fix receive payments component

* Fix parameter setting in received payments

* Fix showing payment time for received payment

* Show special message for payment time when payment time is null

* Remove old console log lines in payments page
2020-11-11 14:28:54 -05:00
Jonathan Zernik
0dde62bf46
Add received payments table and get it in rpc method (#443) 2020-11-11 03:04:09 -05:00
Jonathan Zernik
f7c5fabe43
Simplify squeak db table by using serialized squeak (#442) 2020-11-11 00:30:23 -05:00
Jonathan Zernik
7195174a8b
Rename common module to lightning (#439) 2020-11-10 18:50:33 -05:00
Jonathan Zernik
4981c99440
Rename blockchain folder to bitcoin (#438) 2020-11-10 18:43:27 -05:00
Jonathan Zernik
a536d18573
Rename postgres_db to squeak_db variables everywhere (#437) 2020-11-10 18:35:11 -05:00
Jonathan Zernik
45dcfb1eb0
Remove old lnd unavailable dialog (#436)
* Remove old lnd unavailable dialog

* Update static build
2020-11-10 18:17:14 -05:00
Jonathan Zernik
75056776ac
Update static build for sent payments (#435) 2020-11-10 18:09:50 -05:00
Jonathan Zernik
c03d8c651e
Rename satoshis to sats (#434) 2020-11-10 17:33:58 -05:00
Jonathan Zernik
fa9a84c1df
Include peer name in sent payment result (#433)
* Include peer_name sent payment rpc result

* Show peer name in sent payment in frontend
2020-11-10 17:32:20 -05:00
Jonathan Zernik
298d34efe8
Show sent payments in descending time order (#432) 2020-11-10 15:56:52 -05:00
Jonathan Zernik
b1d8d133e6
Show time in sent payment (#431)
* Get time field in sent payment rpc

* Show sent payment time in frontend
2020-11-10 15:55:26 -05:00
Jonathan Zernik
e709793617
Add payments page (#429)
* Add payments page

* Add payments page link to sidebar

* Create sent payment component

* Got sent payments list showing

* Show link to squeak and to lightning node in sent payment

* Fix lightning node pubkey link

* Add link to peer page from sent payment
2020-11-10 14:44:26 -05:00
Jonathan Zernik
6641e64995
Use msat as price unit (#427)
* Use price_msat for config and internally

* Use price_msat in admin protocol for offer message

* Use price_msat in sent payments table and protocol

* Update frontend to use new protocol with price_msat for offer

* Update static build
2020-11-10 02:35:24 -05:00
Jonathan Zernik
53fa118f20
Remove max squeaks config from docker config.ini (#426) 2020-11-09 23:12:22 -05:00
Jonathan Zernik
05e03a5979
Fix sync interval s config (#425) 2020-11-09 22:56:08 -05:00
Jonathan Zernik
2a0e861fb2
Add sync_interval_s config (#424) 2020-11-09 22:39:06 -05:00
Jonathan Zernik
efd12e8332
Fix alembic messing up logging (#423) 2020-11-09 21:43:51 -05:00
Jonathan Zernik
1fb1c62a62
Add env var for db connection string (#422) 2020-11-09 21:19:47 -05:00
Jonathan Zernik
9b17906360
Use db connection string config (#421)
* Use db connection string config

* Fix get db connection string imports
2020-11-09 20:33:02 -05:00
Jonathan Zernik
24abdd0ee3
Add alembic (#418)
* Add alembic with init command

* Create separate models class

* Add target metadata to alembic config

* Got initial migration working

* Move migration code into separate module

* Add documentation for migrations
2020-11-08 21:23:19 -05:00
Jonathan Zernik
7297949239
Show address in profile page (#416)
* Show address in profile page

* Update static build
2020-11-08 14:16:08 -05:00
Jonathan Zernik
0a50a377e0
Add get profile by name rpc method (#415) 2020-11-08 12:09:46 -05:00
Jonathan Zernik
ba5ab85163
Add unique constraints for profile name and address (#414) 2020-11-08 11:32:07 -05:00
Jonathan Zernik
8b7ec2ecf6
Allow enable sync to be configured with envvar (#413) 2020-11-08 10:28:23 -05:00
Jonathan Zernik
12a8ddc88f
Add squeak detail page (#412)
* Created squeak detail page

* Add get squeak details rpc method

* Got squeak serialized data to show

* Put style back

* Show raw squeak data in text field

* Show hash in squeak details page

* Include link to zoom in to squeak detail page from squeak page

* Update static build and frontend makefile
2020-11-07 22:19:24 -05:00
Jonathan Zernik
59598dfcee
Show error aler on payment fail (#411)
* Show alert on payment failure with error message

* Show error alert when open channel fails

* Don't try to handle close channel response because it won't work

* Update static build
2020-11-07 17:57:05 -05:00
Jonathan Zernik
13a5be4d6b
Fix lnd unavailable logic (#409)
* Fix lnd unavailable function logic

* Update static build
2020-11-07 16:54:44 -05:00
Jonathan Zernik
0488696025
Show dialog when lnd is unavailable (#408)
* Show dialog when lnd is unavailable

* update static build
2020-11-07 16:47:33 -05:00
Jonathan Zernik
56b501cd4a
Fix error handling frontend request (#407)
* Makerequest function in frontend takes handleError argument

* Add deserializeMsg parameter to handleResponse function

* Update makeRequest function to handle deserialization

* Update requests to handle response better

* Stop showing alert when lndgetinfo fails
2020-11-07 16:24:15 -05:00
Jonathan Zernik
e2bf25d9ae
Fix add contact profile button (#406)
* Fix add contact profile button

* Fix add contact button

* Update static build
2020-11-07 15:32:17 -05:00
Jonathan Zernik
1a80c39c9b
Remove unnecessary clone of googleapis for proto gneration (#403) 2020-11-06 23:26:31 -05:00
Jonathan Zernik
478443af45
Make clean with makefile in frontend folder (#401) 2020-11-06 18:05:29 -05:00
Jonathan Zernik
c3a5740bbb
Remove old unused comments from dockerfile (#399) 2020-11-06 13:14:10 -05:00
Jonathan Zernik
a69a2bd859
Delete old unused modules (#398) 2020-11-06 12:51:07 -05:00
Jonathan Zernik
a90a34aa06
Fix example configs in README (#396) 2020-11-06 12:28:34 -05:00
Jonathan Zernik
245fee3f15
Fix click contact profile profiles page (#395)
* Fix click contact profile action in profiles page

* Update static build
2020-11-06 12:25:53 -05:00
Jonathan Zernik
dbc99925cc
Make log level configurable (#394) 2020-11-05 18:37:32 -05:00