Commit graph

28 commits

Author SHA1 Message Date
Jonathan Zernik
4ef08e6568
Add type hints for squeak entry db queries (#679) 2021-01-23 23:04:56 -08:00
Jonathan Zernik
5d31ca3689
Add valid column to sent payment table (#670)
* Add valid column to sent payment table

* Show valid field in sent payments frontend
2021-01-21 20:18:04 -08:00
Jonathan Zernik
00d346668a
Remove old server tests (#631) 2021-01-12 20:54:31 -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
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
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
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
16e8f9bc64
Add unit test for get network method of controller (#561) 2021-01-04 01:28: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
173130ab31
Use mypy precommit hook (#537)
* Add mypy precommit hook

* Add mypy precommit hook
2021-01-01 21:39:33 -08:00
Jonathan Zernik
22f6b4fc3c
Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
Jonathan Zernik
293cbc4db5
Got all flake8 checks passing (#514)
* Got all flake8 checks passing

* Remove reorder imports from codecheck tox env
2020-12-26 04:56:46 -08:00
Jonathan Zernik
62f21874f1
Autoformat python code with tox command (#510) 2020-12-26 02:01:22 -08:00
Jonathan Zernik
00fc72514f
Use squeaklib with ptlc (#502)
* Rename secret_key

* More work to convert to using PTLC

* Updated most code for PTLC

* More work to use ptlc with secret key

* Got itest passing

* Remove unused import

* Use version 0.5.0 of squeaklib

* Added simple unit test for squeak controller

* Use modular addition subtraction for secret key nonce tweak

* Move util to core folder

* Store secret key as hex in database

* Store nonce as hex in db
2020-12-25 20:17:54 -08:00
Jonathan Zernik
99ddc2df77
Rename to squeaknode (#342)
* Rename squeakserver to squeaknode and get itest passing

* Fix itest dockerfile

* Rename more squeakserver to squeaknode

* Rename database from squeakserver to squeaknode

* Update readme

* Remove frontend/build from git

* Rename squeakserver to squeaknode in tox and main
2020-10-29 14:35:17 -04:00
Jonathan Zernik
8d1bb513ac
Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
Jonathan Zernik
4a2961de54
Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
Jonathan Zernik
87b2a3de7d
Format imports with isort in makefile (#84) 2020-07-18 19:25:31 -07:00
Jonathan Zernik
824eabc418
Add make codeformat target (#80) 2020-07-18 04:38:10 -07:00
Jonathan Zernik
220b1eed22
Update to work with squeaklib 0.3.1 (#66) 2020-07-05 16:37:45 -07:00
Jonathan Zernik
0a47aa0568
Got unit tests passing (#30) 2020-06-04 18:30:48 -07:00
Jonathan Zernik
88108f7810
Rename squeaknode to squeakserver (#28)
* Rename server entrypoint

* Updated manifest

* Moved db init.sql file

* Rename module to squeakserver
2020-06-04 17:47:49 -07:00
Jonathan Zernik
77bec59911
Allow post squeaks (#4)
* Remove login_required and user id from blog posts.

* Remove login_required for blog endpoints.

* Rename update endpoint to show

* Remove auth.

* Tests passing.

* Remove unused auth fixture

* Remove users table from db
2020-03-17 18:07:47 -07:00
Jonathan Zernik
a2959e5bbd Fix make mypy 2020-03-01 00:29:58 -08:00
Jonathan Zernik
9939f9b75b
Add lightning and blockchaing clients (#2)
* Add lightning and blockchaing clients

* Fix import in lnd lighting client

* Added squeakmaker and test.
2020-02-29 19:08:15 -08:00
Jonathan Zernik
46dd7f5287
Use separate modules client server (#1)
* Put server in separate module

* Fix flask app name for server in submodule

* Added common module
2020-02-29 18:30:52 -08:00
Jonathan Zernik
35ed57cc8b Rename to squeaknode 2020-02-28 19:13:19 -08:00
Jonathan Zernik
cea55d63bd Initial commit 2020-02-22 19:33:40 -08:00