Commit graph

293 commits

Author SHA1 Message Date
Jonathan Zernik
9aef37bd71
Update docker compose yaml (#259)
* Use sqlite for squeak node in docker compose

* Include other sqkserver in docker docker-compose

* Use second instance of squeak node in docker compose

* Remove old log line
2020-09-27 14:54:34 -07:00
Jonathan Zernik
8d1bb513ac
Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
Jonathan Zernik
b8dfac1e75
Use sqlite db file (#257)
* Use file for sqlite db

* Use squeak as relative path parent for sqlite db file
2020-09-26 01:30:47 -07:00
Jonathan Zernik
5f482bf9be
Fix ipv6 in lnd docker itest (#256)
* Fix ipv6 in lnd docker itest

* Clean up itest.sh
2020-09-21 01:00:48 -07:00
Jonathan Zernik
fafb89006a
Add config to enable sync (#255)
* Add config to enable sync

* Include block information in logs
2020-09-16 01:47:36 -07:00
Jonathan Zernik
a97b1a6cc8
Build python protos in setup (#254)
* Generate python proto files in setup.py

* Generate python protos in setup.py install

* Update readme
2020-08-20 04:41:35 -07:00
Jonathan Zernik
1681776ebe
Use sqlite (#253)
* sqlite db engine works in itest

* Remove unused comment

* Use integer for invoice timestamp and invoice expir

* Fix insert offer

* Remove show tables in queries
2020-08-20 03:33:37 -07:00
Jonathan Zernik
b88dce6146
Move main module (#252)
* Move main module out of server folder

* Check which database is used to load engine

* Remove imported lnd proto modules in lightning client
2020-08-20 00:34:14 -07:00
Jonathan Zernik
ceca429d78
Use configurable engine for db (#251)
* Use configurable engine in db class constructor

* Remove unused tables in db class

* Rename squeak db class

* Remove load db params comment
2020-08-19 23:14:45 -07:00
Jonathan Zernik
2735d80d3f
Use sqlalchemy queries (#250)
* Use sqlalchemy for insert peer

* Use sqlalchemy to get peer by id

* Use sqlalchemy for get_peers

* Use sqlalchemy for set peer downloading

* Use sqlalchemy for peer delet

* Use sqlalchemy to insert squeak

* Use sqlalchemy for get squeak

* Use sqlalchemy to get squeak with profile

* Use sqlalchemy to get followed squeaks

* Use sqlalchemy for get squeaks for address

* Use sqlalchemy for get thread ancestor squeaks

* Use sqlalchemy for lookup query

* Use sqlalchemy for lookup squeaks by time

* Use sqlalchemy for lookup squeaks needing offers

* Use sqlalchemy for profile queries

* Use sqlalchemy for profile updates

* Remove log lines from insert squeak

* Use sqlalchemy for get unverified block squeaks

* Use sqlalchemy for insert offer

* Use sqlalchemy for get offer with peer

* Use sqlalchemy to delete expired offers

* Remove import of psycopg2 in db class

* Delete init.sql file
2020-08-19 21:24:35 -07:00
Jonathan Zernik
86778c8fac
Use sqlalchemy for create tables (#249)
* Use sqlalchemy for create peers table

* Use sqlalchemy to create squeak table

* Add index to squeak table

* Use sqlalchemy fo create profile table

* Use sqlalchemy to create offer table

* Use sqlalchemy to create all tables

* Define tables in db class
2020-08-18 23:18:48 -07:00
Jonathan Zernik
96623eabf6
Rename lightning page to wallet (#248) 2020-08-17 04:01:27 -07:00
Jonathan Zernik
4472e14b0f
Use moment js for relative time (#247)
* Use momentjs to show relative time for squeak list item components

* Use moment to format time in squeak detail component

* Use momentjs to show relative offer expire time
2020-08-17 03:49:34 -07:00
Jonathan Zernik
d3b7b9130b
Add lightning node page (#246)
* Add lightningnode page

* Add tabs to lightning node page

* Show node info for lightning node in node info tab

* Fix style of lightning node page

* Add port number to params for lightning node page
2020-08-17 03:29:58 -07:00
Jonathan Zernik
b42e783338
Add node info tab (#245)
* Add node info tab in lighting page

* Add node pubkey to node status tab
2020-08-17 00:45:15 -07:00
Jonathan Zernik
4fe34e2696
Use tabs for lightning page (#244)
* Use tabs for lightning page

* Use singleton instance of client class
2020-08-16 23:18:43 -07:00
Jonathan Zernik
cb27225b5e
Make logs less verbose with debug level (#243) 2020-08-16 00:29:27 -07:00
Jonathan Zernik
0ba4d90f03
Fix proto field numbering for buy offer respnose (#242) 2020-08-15 18:49:05 -07:00
Jonathan Zernik
61c460de40
Add thread to remove expired offers (#241)
* Add thread to remove expired offers

* Remove old comment from squeak offer getter

* Remove load offers request from buy frontend page
2020-08-15 18:36:21 -07:00
Jonathan Zernik
86a3bd5ba1
Get offers in sync thread (#240)
* Get offers in sync background thread

* Fix get squeaks needing offer database query

* Fix getting squeak download and offer in signle sync

* Remove get offer controller

* Remove old comments and log lines

* Remove load offers rpc method
2020-08-15 17:41:09 -07:00
Jonathan Zernik
1394c0b620
Include expiry info in offer message (#239)
* Include expire time in offer message

* Show expire time in offer display component
2020-08-07 20:51:31 -07:00
Jonathan Zernik
f9313527ec
Include peer in offer response (#238)
* Include peer in offer display entry

* Show peer info in offer item display
2020-08-07 19:31:35 -07:00
Jonathan Zernik
de69b8313e
Fix itest to work with new buy offer response message (#237) 2020-08-07 18:15:39 -07:00
Jonathan Zernik
e0ac71ac36
Remove amount and pubkey from buy offer reponse message (#236) 2020-08-07 17:59:08 -07:00
Jonathan Zernik
686edbcd77
Decode payment request on get offer (#235)
* Decode payment request after getting offer

* Decode amount and node_pubkey from payment request string

* Rename fields in offer database table

* Include invoice time and expiry time in offer table

* Fix block time display in squeak detail component
2020-08-07 17:50:06 -07:00
Jonathan Zernik
a365128b40
Show offers in buy page (#234)
* Successfully load offers from rpc request

* Create offer item component

* Change display of offers
2020-08-06 18:15:39 -07:00
Jonathan Zernik
9648e70034
Improve logging in uploader and downloader (#233) 2020-08-06 01:56:58 -07:00
Jonathan Zernik
de353e5891
Add get offers method (#232)
* Include offer id field in offer namedtuple

* Add go to buy page on click on buy button

* Use button for buy click area in squeak detail component
2020-08-06 01:43:10 -07:00
Jonathan Zernik
be36252131
Add buy page (#231)
* Add todo comments to handle exceptions in upload/download

* Log the proof and expected proof in get offer task

* Convert offer message to namedtuple

* Successfully save offer in database
2020-08-05 23:39:52 -07:00
Jonathan Zernik
901b257b37
Add peer get offer (#230)
* Add rpc method to load buy offers for squeak hash

* Add test for load buy offers

* Fix get buy offer method challenge parameter

* Add get offers rpc method

* Fix min_block and max_block params in lookup request
2020-08-05 20:48:49 -07:00
Jonathan Zernik
4e58415299
Add offer table (#229)
* Add offer table to db schema

* Add offer table to db schema

* Add sent payment table
2020-08-05 04:16:08 -07:00
Jonathan Zernik
fc08f74801
Improve setup download upload threads (#228)
* Improve setup of download and upload threads

* Rename squeak peer sync worker class
2020-08-05 02:44:22 -07:00
Jonathan Zernik
ba3b7f9b2d
Add buy to unlock text box in squeak detail component (#227) 2020-08-05 01:18:47 -07:00
Jonathan Zernik
d956cda20a
Show locked squeak with icon (#226)
* Show lock icon when squeak thread item is locekd

* Squeak thread item locked display now looks good

* Show squeak detail item differently when locked
2020-08-05 01:00:56 -07:00
Jonathan Zernik
4aebbfbbaf
Reset fields in makesqueak dialog on enter (#225) 2020-08-04 23:51:34 -07:00
Jonathan Zernik
559c1448a5
Remove hello method from rpc (#224)
* Remove old sayhello method from rpc

* Reset dialog fields when create contact dialog starts

* Reset fields in all dialogs when starting dialog
2020-08-04 21:46:17 -07:00
Jonathan Zernik
953173f70f
Add button to create profile for unknown address (#223) 2020-08-04 20:44:33 -07:00
Jonathan Zernik
fd4928e7f1
Show address when author unknown (#222)
* Show address for squeak when author unknown

* Fix left join query to show squeaks for address when profile does not exist
2020-08-04 20:03:03 -07:00
Jonathan Zernik
452d9d37f4
Add delete peer dialog (#221)
* Add delete peer dialog

* Got delete peer button working
2020-08-04 19:03:45 -07:00
Jonathan Zernik
321a754f24
Add delete profile button (#220)
* Delete profile working

* Add delete profile button
2020-08-04 18:36:09 -07:00
Jonathan Zernik
fe47116430
Add delete profile method (#218) 2020-08-04 03:33:14 -07:00
Jonathan Zernik
e7a515fae3
Add delete peer method (#217)
* Add delete peer method

* Include error details when peer resource not found
2020-08-04 03:07:32 -07:00
Jonathan Zernik
089e0d8fbf
Fail gracefully in block verifier when blockchain not available (#216) 2020-08-04 01:23:43 -07:00
Jonathan Zernik
c53c4b4205
Enable block verifier periodic worker thread (#215) 2020-08-04 01:15:29 -07:00
Jonathan Zernik
af0ffca75a
Add peer sync (#214)
* Add peer sync controller class

* Got sync downloader with remote connection working

* Got lookup hashes to download working in sync downloader

* Add peer sync status class

* Check stopped event flag before continuing with download

* Got peer download running in a separate thread for each peer

* Rename peer download class

* Fix get current download in sync status

* Add peer upload thread

* Got peer upload working

* Got peer download working

* Display different message in frontend when squeak is locked

* Change default quota for upload rate limit
2020-08-04 00:54:14 -07:00
Jonathan Zernik
b032c57117
Redirect to peer page on peer create (#213) 2020-08-03 04:35:29 -07:00
Jonathan Zernik
2486a05d60
Rename subscription to peer (#212)
* Rename subscription to peer

* Rename subscribed to downloading

* Rename publishing to uploading

* Rename subcription to peer in frontend
2020-08-03 04:20:05 -07:00
Jonathan Zernik
8767573aef
Update npm dependencies (#211) 2020-08-03 01:46:02 -07:00
Jonathan Zernik
087e68eb0b
Change sqkserver log level in docker (#210) 2020-08-02 23:11:06 -07:00
Jonathan Zernik
6ed3ad7d2f
Change default subscribe update interval to 60 seconds (#209) 2020-08-02 03:45:18 -07:00