Commit graph

326 commits

Author SHA1 Message Date
Jonathan Zernik
2e6777ccd9
Remove log lines from pay offer method (#297) 2020-10-18 00:44:18 -04:00
Jonathan Zernik
8ebdc754ca
Add pay offer dialog and backend method (#296)
* Add insert sent payment method

* Delete db container from itest

* Add other container in itest

* Connect to other squeak node in itest

* Use client lightning container for itest to get offers from main node

* Get offers itest working

* Open channel to buy offer in itest

* Successfully pay offer

* Remove old print statements from itest

* Successfully unlock squeak in pay offer method

* Assert that decrypted content is correct in pay offer itest
2020-10-18 00:27:49 -04:00
Jonathan Zernik
e9cfcd00c9
Add routes tab to lightning node page (#295) 2020-10-15 20:39:59 -04:00
Jonathan Zernik
aef185830b
Remove todo comment in get offer (#294) 2020-10-15 20:24:23 -04:00
Jonathan Zernik
88c137c0ed
Use peer host as default when lnd host not specified (#293) 2020-10-15 19:58:56 -04:00
Jonathan Zernik
a2a3af0cd4
Add channel page (#291)
* Add channel page

* Add channel page

* Add channels tab to wallet page

* Add close channel dialog

* Close channel working
2020-10-15 19:34:47 -04:00
Jonathan Zernik
416803b7e2
Only show relevant channels for node in channels tab in node page (#290) 2020-10-15 15:47:02 -04:00
yzernik
18918c563f Remove close channel button 2020-10-15 12:08:58 -07:00
yzernik
bff44f3448 Show correct value for hasOpenChannel to lightning node 2020-10-13 13:38:47 -07:00
Jonathan Zernik
571bbe5bed
Remove unused db params module (#289) 2020-10-13 12:46:42 -07:00
Jonathan Zernik
4d5482af3b
Wait for lnd tls cert to exist in docker volume before start sqkserver (#288) 2020-10-13 12:22:34 -07:00
Jonathan Zernik
8386e7e570
Show channels (#287)
* Show channels in channels tab

* Show channel in channels tab works
2020-10-13 07:37:18 -07:00
Jonathan Zernik
7f56df48d5
Add open channel dialog (#285)
* Add open channel dialog

* Show pubkey in open channel dialog

* Fix open channel dialog

* Improve transaction colors

* Show more info in channels tab
2020-10-13 07:13:58 -07:00
Jonathan Zernik
92a77ce7bb
Add subscribe channel events rpc (#283)
* Add subscribe channel events rpc

* Upgrade lnd to 0.11.1 (#284)

* Got test working for open and close channel with subscriptions
2020-10-11 07:01:35 -07:00
Jonathan Zernik
f6f03b2a0f
Upgrade lnd to 0.11.1 (#284) 2020-10-11 05:33:29 -07:00
Jonathan Zernik
45b089ce93
Add open channel close channel (#282)
* Add open channel and close channel rpc

* Use different context managers for open channel and connect peer

* Add test for opening channel rpc
2020-10-11 04:21:07 -07:00
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