Commit graph

550 commits

Author SHA1 Message Date
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
Jonathan Zernik
6e42663c12
Add sync package (#543)
* Move network sync modules to new sync package

* Run sync worker thread from main module

* Got sync worker working in admin handler

* Use squeak_controller in sync_controller

* Use squeak_controller in peer task

* Remove old commented args replaced by squeak_controller

* Use squeak_controller method to get best block height

* Improve constructor for network sync task

* Improve constructor for network sync task
2021-01-02 05:46:49 -08:00
Jonathan Zernik
558380a7ba
Add typed dependencies for mypy precommit (#542) 2021-01-01 23:04:28 -08:00
Jonathan Zernik
285f3d5463
Remove wait-for-it (#541) 2021-01-01 22:52:07 -08:00
Jonathan Zernik
a94d4ccd63
Simplify frontend readme (#539)
* Simplify frontend readme

* Fix bitcoin user and pass configs in frontend readme
2021-01-01 22:21:27 -08:00
Jonathan Zernik
bf57996607
Update frontend dev readme (#538)
* Update instructions for frontend dev

* Update frontend README
2021-01-01 22:08:30 -08:00
Jonathan Zernik
173130ab31
Use mypy precommit hook (#537)
* Add mypy precommit hook

* Add mypy precommit hook
2021-01-01 21:39:33 -08:00
Jonathan Zernik
ca79271d06
Delete createdb script (#536) 2021-01-01 14:53:04 -08:00
yzernik
2fa55414e0 Release version 0.1.5 2020-12-31 19:59:13 -08:00
Jonathan Zernik
b2766f5ab0
Add admin rpc enabled config (#535)
* Add config to enable admin rpc server

* Allow squeaknode to run on mainnet

* Clean up main module more

* Clean up configs in main module more
2020-12-31 19:49:26 -08:00
yzernik
2257f8af4f Release version 0.1.4 2020-12-31 16:57:43 -08:00
Jonathan Zernik
63f8d1ccb3
Don't allow running in mainnet (#533) 2020-12-31 16:56:56 -08:00
Jonathan Zernik
86b2f6895c
Remove createdb script from manifest (#532) 2020-12-31 16:35:31 -08:00
Jonathan Zernik
9fcb87aeed
Make config.ini file optional (#531) 2020-12-31 15:30:58 -08:00
Jonathan Zernik
705ffef8a9
Debug failed webapp reply (#530)
* Add log line to debug webapp hanlder reply

* Log request message

* Log type of handler reply

* Log type of request message

* Fix callling serialize reply

* Remove debug log lines
2020-12-31 08:56:12 -08:00
Jonathan Zernik
98d9b5a87d
Make dockerfile run with cmd (#529)
* Add cmd to dockerfile

* Remove waiting for cert file in start script

* Output docker container dirs before starting script

* Remove failing ls line

* Add lnd tls cert path and macaroon path env vars

* Add env vars for webadmin congis
2020-12-31 00:05:20 -08:00
Jonathan Zernik
9b14c8016b
Package for umbrel (#528)
* Switch dockerfile base image to buster

* Try to make build work for umbrel

* Remove libs from Dockerfile

* Add build-essential to dockerfile

* Make sqk_dir configurable with environment variable

* Use new env var names
2020-12-30 16:46:48 -08:00
yzernik
d06283c9b1 Release 0.1.3 2020-12-29 01:11:32 -08:00
Jonathan Zernik
22f6b4fc3c
Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00