No description
Find a file
Jonathan Zernik df20352908
Organize frontend client requests in module (#306)
* Refactor getFollowedSqueaks into requests module

* Simplify getsqueaks method

* Refactor client requests in wallet page to requests module

* Make request name functions consistent

* Refactor set following profile function into requests module

* Refactor all rpc calls from profile page to requests module

* Refactor rpc functions out of lightning node

* Refactor rpc functions out of squeak peers page

* Refactor rpc functions out of buy offer dialog

* Refactor rpc functions out of close channel dialog

* Refactor rpc functions out of buy page

* Refactor rpc functions out of channel page

* Refactor rpc function out of offer page

* Refactor rpc functions out of peer page

* Refactor rpc functions out of profiles page

* Refactor rpc functions out of make squeak dialog

* Refactor rpc out of squeak page

* Refactor rpc out of squeak address page

* Delete connect peer dialog

* Refactor rpc out of create contact profile dialog

* Refactor rpc out of create signing profile dialog

* Refactor rpc out of create peer dialog

* Refactor rpc out of delete peer dialog

* Refactor rpc out of delete profile dialog

* Refactor rpc out of delete squeak dialog

* Refactor rpc out of open channel dialog

* Refactor rpc out of receive bitcoin dialog
2020-10-19 11:43:08 -04:00
docker Wait for lnd tls cert to exist in docker volume before start sqkserver (#288) 2020-10-13 12:22:34 -07:00
frontend Organize frontend client requests in module (#306) 2020-10-19 11:43:08 -04:00
itests Add rpc method for get sent payment by id (#300) 2020-10-18 16:23:59 -04:00
proto Add rpc method for get sent payment by id (#300) 2020-10-18 16:23:59 -04:00
squeakserver Improve channel item component (#304) 2020-10-18 21:37:42 -04:00
tests Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
.dockerignore Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
.gitignore Update makefile. 2020-02-22 19:59:29 -08:00
createdb.sql Fix setting up schema in createdb and postgres params (#189) 2020-07-31 22:08:19 -07:00
install-rpc.sh Lnd get info from frontend (#100) 2020-07-20 22:52:04 -07:00
LICENSE Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Makefile Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
MANIFEST.in Use configurable engine for db (#251) 2020-08-19 23:14:45 -07:00
README.md Build python protos in setup (#254) 2020-08-20 04:41:35 -07:00
requirements-itest.txt Use pytest for itest (#161) 2020-07-28 19:49:44 -07:00
requirements.txt Use sqlalchemy for create tables (#249) 2020-08-18 23:18:48 -07:00
setup.cfg Rename squeaknode to squeakserver (#28) 2020-06-04 17:47:49 -07:00
setup.py Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
tox.ini Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
wait-for-it.sh Make docker compose run (#45) 2020-06-11 20:09:02 -07:00

squeakserver

Server for Squeak protocol

Test

Run unit tests:

$ make test

Run integration tests:

$ make itest

Run

Run with docker:

  • Edit docker/config.ini to use your external IP address for external_host
  • Start the squeak server:
    $ cd docker
    $ docker-compose up
    

Run without docker:

  • Create a config.ini file and fill in the relevant values:
    [squeaknode]
    network=testnet
    price=<YOUR_SELLING_PRICE_IN_SATOSHIS>
    max_squeaks_per_address_per_hour=<YOUR_RATE_LIMIT>
    
    [lnd]
    host=<YOUR_LND_HOST>
    external_host=<YOUR_LND_HOST>
    port=9735
    rpc_port=10009
    tls_cert_path=/root/.lnd/tls.cert
    macaroon_path=/root/.lnd/data/chain/bitcoin/testnet/admin.macaroon
    
    [bitcoin]
    rpc_host=btcd
    rpc_port=18334
    rpc_user=devuser
    rpc_pass=devpass
    
    [server]
    rpc_host=0.0.0.0
    rpc_port=8774
    
    [admin]
    rpc_host=0.0.0.0
    rpc_port=8994
    
  • Run the createdb.sql script on the postgres server to initialize the database.
  • Install the server requirements:
    $ pip3 install -r requirements.txt
    $ cp proto/* squeakserver/proto/
    $ python3 setup.py install
    
  • Start the squeak server:
    $ runsqueakserver --config config.ini run-server