Commit graph

568 commits

Author SHA1 Message Date
Jonathan Zernik
f9a02b2245
Add docstrings for core classes and methods (#611) 2021-01-11 19:43:33 -08:00
Jonathan Zernik
37f56696ed
Rename peer_id field in squeak peer (#610) 2021-01-11 18:24:26 -08:00
Jonathan Zernik
e300300d84
Fix frontend build copy static build to right folder (#609) 2021-01-11 17:47:27 -08:00
Jonathan Zernik
0442a9fc86
Improve frontend build so old build is deleted (#608) 2021-01-11 17:29:15 -08:00
Jonathan Zernik
3def6951e7
Update frontend build for new sent payment proto (#607) 2021-01-11 17:12:49 -08:00
Jonathan Zernik
ccc7b66c40
Rename received offer (#606)
* Rename received_offer db table

* Rename core struct to ReceivedOffer

* Rename received_offer_id field

* Move received offer with peer module
2021-01-11 16:33:56 -08:00
yzernik
96b3adb5a2 Release version 0.1.11 2021-01-11 11:49:50 -08:00
Jonathan Zernik
6970ce1331
Upgrade version of squeaklib in itest (#602) 2021-01-11 11:42:38 -08:00
Jonathan Zernik
1414c2163f
Delete sent offer and received offer after payment (#601)
* Delete sent offer and received offer after payment

* Fix itest for deleted offers after payment
2021-01-11 11:34:49 -08:00
Jonathan Zernik
1969308b20
Delete unused modules (#600) 2021-01-11 11:26:59 -08:00
Jonathan Zernik
f8a76f9121
Fix deletion of expired sent offers (#599) 2021-01-11 09:52:05 -08:00
yzernik
e743e55c26 Release version 0.1.10 2021-01-11 08:05:36 -08:00
Jonathan Zernik
534b94e53d
Parse the correct ip addr when saving sent offer (#597) 2021-01-11 07:58:15 -08:00
Jonathan Zernik
b176b7fdfc
Convert msg to core struct in core (#596)
* Convert BuyOffer message to core struct before usinging in core

* Remove unnecessary fields from BuyOffer

* Add log line with sending buy offer.
2021-01-11 07:01:41 -08:00
yzernik
d6acd9c243 Release version 0.1.9 2021-01-10 19:37:49 -08:00
Jonathan Zernik
80d7eb1878
Update squeaklib version and use new make squeak function (#594) 2021-01-10 19:28:56 -08:00
Jonathan Zernik
44a15ce7be
Delete squeak maker class (#593) 2021-01-10 18:57:48 -08:00
Jonathan Zernik
508d3ab539
Remove squeak store (#592)
* Stop using save_squeak method of squeak_store

* Stop using get_squeak method of squeak_store

* Stop using delete_squeak method of squeak store

* Stop using unlock_squeak in squeak_store

* Remove squeak_store usage from peer task

* Remove some usages of squeak_db from peer_task

* Remove all squeak_db usage from peer_task

* Remove squeak_store from main module

* Delete squeak store class
2021-01-10 18:57:36 -08:00
Jonathan Zernik
080ee1eac8
Remove received payments verifier (#591)
* Got received payments working without verifier class

* Process received payments works with better exception handling

* Delete sent offers verifier
2021-01-10 14:56:23 -08:00
azernik
f63c511149
fixed error handler for create squeak (#588) 2021-01-10 10:52:36 -08:00
Jonathan Zernik
2587100417
Update readme with new entrypoint description (#590) 2021-01-10 10:47:32 -08:00
Jonathan Zernik
c308a819f1
Simplify pay_offer method of controller (#589) 2021-01-10 10:47:21 -08:00
Jonathan Zernik
138ef7d984
Add squeak core module (#587)
* Add squeak_core module

* Remove unused import

* Delete squeakblockverifier

* Use squeak_core to make squeak

* Remove blockchain client from controller

* Move create offer method to squeak core

* Add some type hints

* Move get buy offer method to squeak_core

* Delete commented old get buy offer block

* Add pay_offer to squeak_core

* Add get received payments generator function to squak core

* Add get_offer method to squeak_core

* Remove lightning_client property from peer_task

* Remove old comments from payment verifier class

* Use bytes internally for payment_hash

* Represent secret_key as bytes internally
2021-01-10 09:31:41 -08:00
yzernik
ae61726053 Release version 0.1.8 2021-01-09 00:10:54 -08:00
Jonathan Zernik
b9eeaa3c32
Use correct base URL for block explorer block detail (#584)
* Add phony makefile targets in frontend folder

* Make block explorer url depending on network

* Got dynamic block explorer link working for detail page

* Got block explorer link working for ancestor thread squeaks

* Use network to get correct block explorer url in timeline

* Show correct block explorer link in address page

* Update static build
2021-01-09 00:09:36 -08:00
yzernik
fb8839f1c3 Release version 0.1.7 2021-01-08 18:50:25 -08:00
Jonathan Zernik
c39dbb44f1
Improve squeaknode entrypoint command (#583)
* Improve squeaknode entrypoint command

* Fix pargser in main module
2021-01-08 14:17:43 -08:00
Jonathan Zernik
cef4eeca03
Update main config ini (#582)
* Fix network in main config.ini

* Update README and DOCKER doc
2021-01-08 02:42:32 -08:00
yzernik
0a67cba7a8 Release version 0.1.6 2021-01-08 01:14:04 -08:00
Jonathan Zernik
cede35ed55
Fix serialization of payment hash db (#579)
* Use postgres for db in itest

* Fix serialization of payment hash in db tables
2021-01-08 00:48:16 -08:00
Jonathan Zernik
c984d41bcc
Use type hints for controller methods, and use bytes internally for s… (#578)
* Use type hints for controller methods, and use bytes internally for squeak hash

* Change internal representation of squeak_hash to bytes
2021-01-07 23:32:14 -08:00
Jonathan Zernik
e24eca5bf0
Use namedtuple for blockinfo and network sync result (#577) 2021-01-07 23:17:52 -08:00
Jonathan Zernik
1a64281d68
Use subclass of squeak whitelist for in memory whitelist (#576) 2021-01-07 10:37:30 -08:00
Jonathan Zernik
9acf878e81
Use created field for sent payment (#575) 2021-01-07 02:59:50 -08:00
Jonathan Zernik
a0a529542f
Use namedtuples (#573)
* Use namedtuples with types for core structures

* Use namedtuples with types for all core stuctures

* Use autoflake to remove unused imports
2021-01-07 01:45:57 -08:00
Jonathan Zernik
d62b9b757c
Update static build (#571) 2021-01-07 00:23:05 -08:00
azernik
87e4b9ae75
- use default value of '0' for port (#550)
- disable port input unless "use default port" toggled on
- remove unused styles
2021-01-06 23:58:29 -08:00
Jonathan Zernik
de949aff6d
Clean up makefile (#570) 2021-01-06 23:47:50 -08:00
Jonathan Zernik
62c13ddaba
Create peer with default port (#569)
* Added unit test for create peer

* Got test working for create peer with default port

* Use namedtuple for squeak peer class

* Rename test name in test create peer

* Use type hints for insert squeak peer
2021-01-06 23:47:03 -08:00
Jonathan Zernik
c587dc0d5f
Make sync enabled true by default (#567) 2021-01-06 09:35:21 -08:00
Jonathan Zernik
a57021ab0c
Use typed config (#566)
* Use typed config

* Use typed config

* Got bitcoin connection working in main config

* Use better defaults for lnd configs

* Got test working for get network using config fixture

* Use sqk_dir_path instead of sqk_dir

* Add logging of bitcoin configs

* Don't use config option when config file doesn't exist
2021-01-05 23:39:04 -08:00
Jonathan Zernik
d95ac6702f
Update readme simplify config (#564)
* Update README to simplify remove configs

* Remove lnd port from README example config
2021-01-05 14:53:42 -08:00
Jonathan Zernik
59c73c85b3
Add get network rpc method (#563) 2021-01-05 14:37:20 -08:00
Jonathan Zernik
16e8f9bc64
Add unit test for get network method of controller (#561) 2021-01-04 01:28:08 -08:00
Jonathan Zernik
10bd12f2ae
Use noninteractive build in dockerfile (#559) 2021-01-04 00:09:30 -08:00
Jonathan Zernik
27b3e1d166
Update main.yml (#555)
Use mode=max to cache all layers in github docker build
2021-01-03 23:09:10 -08:00
Jonathan Zernik
4b1656642e
Remove old comments in squeak controller (#560) 2021-01-03 22:30:08 -08:00
Jonathan Zernik
0b6b609864
Add unit tests for squeak controller (#557)
* Move squeak controller to core package

* Use config object in squeak controller to access configs

* Remove old comments in squeak controller

* Update unit test

* Add unit test for getting network with squeak_controller
2021-01-03 22:02:55 -08:00
Jonathan Zernik
f263dd60dd
Create main.yml (#554)
* Create main.yml

Add the yaml file for the github action

* Update main.yml

Try build and push docker image

* Update main.yml

Fix image tag

* Update main.yml

Specify platforms in docker build action

* Upgrade pip in dockerfile

* Pin version of grpcio in requirements.txt

* Install pip requirements with only-binary

* Change grpcio version

* Remove only-binary option for pip install

* Update main.yml

cache docker layers

* Update main.yml

Push version tags to dockerhub

* Update main.yml

export and import cache to local

* Update main.yml

Fix image name
2021-01-03 21:00:49 -08:00
Jonathan Zernik
d341d3cbc0
Remove old log lines from squeak_d (#544) 2021-01-02 17:04:46 -08:00