* Revert "Remove usage of squeak_core from squeak_store (#2029)"
This reverts commit bd15c653aa.
* Add make squeak method to squeak store class
* Add pay offer method to squeak store
* Remove squeak_core from controller constructor
* Remove default port param from controller constructor
* Fix broken itests
* Got download single squeak working synchronously
* Got basic web server running for peer
* Got squeak route and lookup route working
* Got secret key route working
* Got offer endpoint working
* Remove old comment
* Move peer server code to server subdir
* Create client subdir for peer client
* Return empty list for lookup when pubkeys is empty
* Add peer client and network controller class
* Remove old network code
* Remove old block subscription worker
* Remove network handler class
* Remove more old classes
* Add back twitter forwarder worker
* Remove download methods from controller
* Add websocket endpoint
* Add websocket subscribe method
* Add websocket client library
* Fetch squeaks from peer (slowly) on UI timeline load
* Fetch squeaks from peer (slowly) on UI pubkey squeaks load
* Got download squeaks working with HTTP requests
* Fixed external address method in controller
* Remove download pubkey squeak button and action
* Remove unused connection displays from peer ana peers page
* Fix 404 not found for offer endpoint
* Better handling of null cases in peer client downloader
* Simplify peer downloader
* Create subclass for range download
* Got single squeak download working
* Fix itest for get external address
* Split save secret key and unlock content methods of squeak store
* Unlock squeak content automatically after saving private key when squeak is not private
* Use mock db for tests in squeak store
* Add assertion about event listener call in save squeak test
* Add test for save squeak when max squeaks is exceeded
* Add test for save squeak when max squeaks per pubkey per block is exceeded
* Update squeaklib and update import from keys module
* Rename signing key variable to private key in test util
* Fix calling make squeak function
* Update db data file to v3
* Add recipient public key column to squeak table
* Got squeak entry db query working with alias for profiles table
* Add test for make squeak with recipient
* Add test case for get profile from squeak entry query
* Got outer join with recipient profile working
* Use outer join to get recipient profile for all squeak entry db queries
* Got itest passing with refactored squeak_store
* Remove unused config from squeak store class
* Add test for insert squeak in squeak store
* Add test for delete squeak in squeak store
* Add test for save and get sent offer
* Add test for get received offer in squeak store
* Add subscription methods for squeak store
* Use squeak store in squeak controller
* Use squeak store for save squeak method in controller
* Use squeak store for unlock squeak method in controller
* Add comment to make squeak method
* Use squeak_store for more methods in controller
* Use squeak_store for price policy in controller
* Use squeak_store for create signing profile in controller
* Use squeak_store for more profile methods in controller
* Use squeak_store for more profile methods in controller
* Use squeak_store for create peer method in controller
* Use squeak_store for more peer methods in controller
* Use squeak_store for pay offer method in controller
* Use squeak_store for get sent payments and received payments method in controller
* Use squeak_store for get received offers method in controller
* Use squeak store for delete expired offers method
* Use squeak store for get squeak entries methods
* Use squeak store for save received offer method of controller
* Use squeak store for get followed public keys method of controller
* Use squeak store for reprocess received payments method of controller
* Use squeak store for delete old squeaks method of controller
* Use squeak store for like and unlike squeak method of controller
* Use squeak store for get connected peers method of controller
* Use squeak store for add and remove twitter account methods of controller
* Remove squeak_db param from controller constructor
* Use squeak core in squeak store for save squeak andunlock squeak
* Use squeak core in squeak store for make and get sent offer
* Remove old comments
* Remove more old comments
* Use squeak core in squeak store for save received offer
* Use squeak core in squeak store for pay received offer
* Use squeak core in squeak store for get interested struct
* Update twitter forwarder to use squeak store instead of squeak controller
* Update squeak deletion worker to use squeak store instead of squeak controller
* Delete old comments with lines about squeak controller
* Update squeak forwarder worker to use squeak store instead of squeak controller
* Update squeak secret key forwarder worker to use squeak store instead of squeak controller
* Update delete expired offers worker to use squeak store instead of squeak controller
* Update peer subscription workers to use squeak store instead of squeak controller
* Update peer autoconnect worker to use squeak store instead of squeak controller
* Remove usage of squeak controller in download manager start method.
* Add network handler class
* Remove unused constructor params from network handler
* Remove old comments
* Got all tests in core dir passing
* Got all tests in db dir passing
* Got tests for admin dir passing
* Got all unit tests passing
* Added migration for squeak table and profile table using new pubkey
* Re-start db migrations with new data-v2.db file
* Fix column type for profile public key
* Got all itests passing
* Log the public key in hex in create contact profile handle fn
* Rename rpc methods to use pubkey instead of address
* Got frontend mostly working with new profile pubkey
* Update frontend to use pubkey instead of address
* Change size of squeak profile detail item
* Update create contact profile dialog to use pubkey
* Update twitter account item to use pubkey
* Include label for pubkey in profile detail item
* Decrease size of profile detail item
* Update frontend build
* Improve logging of requests in handler
* Add sell price setting to db
* Add rpc method for set and get sell price setting
* Fix servicer methods for get and set sell price
* Add settings page in frontend
* Include default sell price in get sell price rpc
* Show sell price in settings page
* Got set sell price working in frontend
* Remove frontend validation of sell price dialog
* Use sell price from settings when determining price
* Add rpc to clear sell price setting
* Add clear sell price to frontend
* Remove unused imports in frontend
* Update frontend build
* Add share_for_free column to peer table in db and to core struct
* Got set share for free toggle working in frontend
* Got share for free working with price zero in controller
* Add twitter stream class
* Got twitter forwarder subscription working
* Add config table in db with twitter bearer token
* Only run forward tweets task when twitter bearer token and twitter handles are not null
* Add twitter page to frontend and add button to set bearer token
* Reload bearer token in ui after setting value
* Add twitter accounts table to db
* Got get twitter accounts request working
* Display twitter account list items in twitter page
* Show twitter accounts in twitter page
* Got create squeak from tweet working
* Update twitter stream upon twitter accounts changes
* Got terminate twitter stream connection working
* Update frontend build
* Remove print statements from itest
* Remove main function from twitter stream module
* Make tweet forwarder worker run as daemon thread
* Use custom config for subscribe tweets retry interval
* Fix shutdown threadpool in download manager
* Call event.wait with timeout value so it stops eventually
* Cancel all running downloads when download manager shuts down
* Use active download class for explicit downloads
* Delete old temporary interest manager and expiringdict dependency
* Delete old comments related to temporary interest manager
* Add log line after successful download single squeak
* Add unit test for mark download complete
* Add unit test for wait for stop method of download
* Add test for download hash not interested
* Add test for get download result
* Add test for initiate download for hash download
* Add test for initiate download for interest download
* Rename interest download
* Remove commented old method
* Remove another comment from active download
* Use limit 1 for hash download
* Rename wait for complete method of download
* Replace use_tor field with network in peer address
* Got itest passing with network column in db.
* Got frontend working with network (ipv4 or torv3) configurable
* Fix go to peer address page navigation from sent payment and received payment
* Added get default peer port rpc command
* Use default port in connect peer dialog
* Got default port working on create peer dialog
* Got default port working in both connect peer and create peer.
* Remove default peer usage in create peer backend
* Remove default peer handling for connect peer in backend
* Reset port back to empty when use custom is checked or unchecked.
* Added use_tor option to peer address class and grpc message
* Got itest passing without tor
* Got peer connection working in UI with tor toggle
* Able to connect to with and without tor
* Got save peer working with tor and without tor
* Add use_tor field to peer address everywhere.
* Fix usage of useMemo in peer address page
* Set up itest for sending free secret key
* Got itest working for download and unlock free squeak
* Simplified getting offer or free secret key from controller
* Rename get offer method of controller
* Add check for per address rate limit in controller
* Delete rate limiter class
* Add check for interest and rate limit to save received squeak
* Got single squeak download working using temporary interest
* Use polymorphic interest classes for temporary interest manager
* Change order of checking temporary interests before permanent interests
* Used timed dict for temporary interests
* Include check for limit in temporary interest
* Update connect peer and disconnect peer rpc to use peer addrss struct
* Update get connected peer rpc to use peer addrss struct
* Use peer address struct in create saved peer rpc
* Use peer address struct in squeak peer struct
* Use peer address for requests functions in frontend
* Update frontend build
* Remove uploading and downloading fields and add autoconnect field in all backend code
* Remove uploading and downloading fields and add autoconnect in frontend
* Update frontend build
* Refactor network commands into network manager
* Start and stop peer server and peer client inside network manager
* Pass handle connection fn to peer handler instead of self object
* Remove old comments
* Got basic tcp connection working
* Got passing itest for open tcp connection
* Got most of protocol working. still need to send offer correctly
* Got offer from peer over tcp connectrion
* Got single squeak download working on tcp connection
* Remove rpc peer client
* Remove old rpc clients
* Remove old squeak client modules
* Got sharesqueaks peer message working
* Remove peer rpc server
* Remove server rpc fixtures
* Remove old itests
* Remove old sync modules
* Run worker background task to keep peers synced
* Add peer connection worker
* Add test for disconnect peer
* Remove old itest util
* Delete old peer rpc client helpers.
* Handle insert duplicate received offer
* Use more specific exception handling for duplicate offer insert