Commit graph

310 commits

Author SHA1 Message Date
Jonathan Zernik
4bd11da03b
Show peers list (#281)
* Add new tab for peers in wallet page

* Show peers list in peers tabl

* Include address in peer list item

* Go to lightning node page from peers list item click
2020-10-11 01:23:44 -07:00
yzernik
4860641bd8 Show disconnect peer button in lightning node page 2020-10-10 04:12:26 -07:00
Jonathan Zernik
8b9f87990d
Show peer connection in lightning node (#280)
* Show peer connection status for lightning node

* Add connect peer button to lightning node page

* Add test for connect peer

* Add working test for list peers and connect peer

* Add test for disconnect peer

* Fix sqk dir config

* Fix sqk_dir config

* Successfully connect to sqkserver_other in docker-compose

* Remove unused dialog from lightning node page
2020-10-09 05:55:32 -07:00
azernik
1b81730220
use constant for squeak directory path (#274)
* use constant for squeak directory path

* fixed issues with squeak directory path constant
2020-10-08 22:07:51 -07:00
Jonathan Zernik
48b1b34338
Add list peers rpc method (#279) 2020-10-05 07:18:14 -07:00
Jonathan Zernik
d9a06024dc
Go to lightning node from offer page on click (#278) 2020-10-04 03:17:40 -07:00
Jonathan Zernik
f3c7653c60
Add offer page (#277) 2020-10-04 01:16:06 -07:00
Jonathan Zernik
d822ab97ca
Remove unnecessary div from transactions grid (#276) 2020-10-03 23:28:04 -07:00
Jonathan Zernik
9de4db766a
Improve transctions display in wallet transactions tab (#275) 2020-10-03 20:21:35 -07:00
Jonathan Zernik
41a6a87545
Use docker-compose build with option to fix dockerignore (#273) 2020-10-02 19:09:05 -07:00
Jonathan Zernik
b1f67abee2
Implement transaction item frontend component (#268) 2020-09-30 04:16:55 -07:00
Jonathan Zernik
24d041348f
Add test for send coins (#267)
* Add itest for sendcoins and get transactions

* Rename send coins itest
2020-09-30 01:37:23 -07:00
Jonathan Zernik
3a6011c645
Add get transactions rpc (#266)
* Add get transactions rpc method

* Use context manager for opening channel in itest

* Set up lnd connection in open connection context manager
2020-09-29 23:07:58 -07:00
Jonathan Zernik
71a2dacdb9
Add list channels rpc (#265)
* Add rpc method for list channels

* Add test for list channels rpc method
2020-09-29 20:49:11 -07:00
Jonathan Zernik
e795c20f58
Rename functions in receive bitcoin dialog (#263) 2020-09-29 03:07:46 -07:00
Jonathan Zernik
377eaa62d5
Add receive bitcoin button (#262)
* Add receive bitcoin button

* Add new address rpc method

* Successfully show new address in dialog in wallet

* Make address field in new address dialog read only
2020-09-28 02:02:42 -07:00
Jonathan Zernik
7e8202f442
Use default port in frontend configuration (#261) 2020-09-27 23:32:34 -07:00
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