Commit graph

74 commits

Author SHA1 Message Date
Jonathan Zernik
7658a4d95c
Upgrade squeaklib to v013 (#2165)
* Upgrade to squeaklib v0.13

* Allow different squeak types in server reponse

* Add core method for create resqueak.

* Add make resqueak method for squeak store

* Update db migration to include resqueak hash

* Add db method to insert and get resqueak

* Return resqueak as squeak entry in db query method

* Add RPC method for make resqueak

* Got make resqueak modal working in frontend

* Show different content for resqueak in frontend

* Show resqueaed squeak in display

* Show resqueak correctly

* Got resqueak display working on squeak card component

* Fix display for missing resqueaked squeak.

* Fix display for missing resqueaked squeak in squeak card.

* Got resqueak from squeak card working

* Fix prevent default action on resqueak unlock click

* Fix prevent default on make reply squeak in squeak card

* Got number of replies to resqueaked squeak working

* Fix click on squeak card

* Fix too many characters warning message

* Fix click on squeak card image and name and pubkey

* Rename set reply modal state function

* Fix toggle modals for resqueaked squeak

* Fix form submit action for squeak modals

* Include num resqueaks and num resqueaked resqueaks in get squeak entry db query

* Show number of resqueaks in frontend

* Fix distinct count in query for num replies and num resqueaks

* Update resqueaked squeak in slice state

* Update frontend build
2022-04-24 17:54:07 -07:00
Jonathan Zernik
f7fec3b8a3
Show sent payments for profile (#2100)
* Add db methods to get sent and received payments for pubkey

* Add flask endpoints for payments per pubkey

* Got amount earned summary working in profile page.

* Update frontend build
2022-03-30 19:58:49 -07:00
Jonathan Zernik
b251263394
Show payments for squeak (#2078)
* Add get received payment summary for squeak and get sent payment summary for squeak.

* Add get sent payments for squeak.

* Add get received payments for squeak.

* Add RPC and flask endpoint for get payment summary for squeak.

* Got payment summary fields working in squeak page.

* Refetch payment summary from backend after buy completes successfully

* Update frontend build
2022-03-29 23:20:38 -07:00
Jonathan Zernik
4d349005d4
Simplify add peer UI (#1999)
* Remove non-null constraint on peer name

* Remove validation requiring non-empty name for peer

* Update database to use autoconnect true by default

* Remove connect peer button and modal from peers page

* Show saved peers tab by default in peers page

* Update frontend build
2022-03-15 17:38:18 -07:00
Jonathan Zernik
aef9afda61
Split set secret key and set decrypted content into separate methods of squeak db class (#1908) 2021-12-27 19:53:35 -08:00
Jonathan Zernik
51f412d75f
Update squeaklib to support private messages (#1897)
* 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
2021-12-27 00:56:31 -08:00
Jonathan Zernik
1a159a5f10
Fix max squeaks per public key per block height config (#1896) 2021-12-26 10:08:00 -08:00
Jonathan Zernik
9f0d5e4097
Include bearer token in twitter account (#1881)
* Got twitter forwarder working with bearer token in twitter accounts table

* Update frontend to use bearer token in twitter account

* Update frontend build
2021-12-22 16:10:03 -08:00
Jonathan Zernik
5198467889
Use new squeak protocol with schnorr and pubkey as identifier (#1870)
* 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
2021-12-20 09:28:38 -08:00
Jonathan Zernik
0a5d0d1d10
Remove profile custom price (#1807)
* Remove custom price from profile

* Remove profile custom price from frontend

* Update frontend build
2021-11-19 00:04:07 -08:00
Jonathan Zernik
488ed5dfc4
Add global sell price setting (#1791)
* 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
2021-11-10 01:53:55 -08:00
Jonathan Zernik
6c40891ad8
Add twitter forwarder (#1755)
* 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
2021-11-04 19:10:00 -07:00
Jonathan Zernik
0b1f0a9257
Use custom db error when db init fails (#1720) 2021-10-24 16:53:39 -07:00
Jonathan Zernik
583d076394
Use payment hash as parameter for set received offer paid (#1718) 2021-10-24 16:19:23 -07:00
Jonathan Zernik
b2d5326d34
Delete received offers when out of configured retention from download time (#1708) 2021-10-23 09:34:21 -07:00
Jonathan Zernik
dea903e98e
Add tests for get received payment summary and get sent payment summary (#1705) 2021-10-23 09:04:20 -07:00
Jonathan Zernik
cb0a5971ec
Add test for get latest settle index and clear settle indexes (#1704) 2021-10-23 08:51:23 -07:00
Jonathan Zernik
dca65ede97
Add test for yield received payments from settle index (#1703) 2021-10-23 08:38:44 -07:00
Jonathan Zernik
d0754d27a3
Add test for duplicate inserted received payment db method (#1702) 2021-10-23 08:24:58 -07:00
Jonathan Zernik
773b38de2f
Add test for get multiple received payments db method (#1700) 2021-10-23 08:16:09 -07:00
Jonathan Zernik
4c71be584a
Add test for set sent offer paid (#1698)
* Add test for set sent offer paid

* Add test for set sent offer not paid
2021-10-23 00:26:04 -07:00
Jonathan Zernik
5d739bd4d0
Add tests for delete expired sent offers db method (#1696) 2021-10-22 23:24:44 -07:00
Jonathan Zernik
ee6e7ca1a9
Add test for get sent offers (#1695) 2021-10-22 23:04:40 -07:00
Jonathan Zernik
dc6cef8cff
Add test for get sent offer by squeak and peer (#1693) 2021-10-22 22:20:10 -07:00
Jonathan Zernik
76e1bd29cc
Add test for get sent offer by payment hash missing (#1692) 2021-10-22 19:02:04 -07:00
Jonathan Zernik
74222b9a62
Add test for get sent offer by payment hash (#1691) 2021-10-22 18:56:07 -07:00
Jonathan Zernik
a14cbb4663
Add test for get sent payment with non existent id (#1690) 2021-10-22 18:41:33 -07:00
Jonathan Zernik
a9c97c5df7
Add test for get inserted sent payments (#1689) 2021-10-22 18:36:47 -07:00
Jonathan Zernik
cc1a2c0a2b
Add test for get inserted sent payment db method (#1685) 2021-10-22 18:03:18 -07:00
Jonathan Zernik
3fc34c8965
Add test for set received offer paid db method (#1678) 2021-10-22 17:16:37 -07:00
Jonathan Zernik
faa7a9513a
Add test for delete expired received offers (#1672) 2021-10-22 16:01:52 -07:00
Jonathan Zernik
bc8fc125b5
Add test for insert duplicate received offer (#1668) 2021-10-22 15:15:16 -07:00
Jonathan Zernik
4af20e7b03
Add test case for get received offer db method when none (#1667) 2021-10-22 12:44:25 -07:00
Jonathan Zernik
8b5c651db4
Add test for get received offers db method (#1666)
* Add test for get received offers db method

* Remove print statements
2021-10-22 12:32:26 -07:00
Jonathan Zernik
ded954fca9
Add test for insert and get received offer db methods (#1665) 2021-10-22 10:46:31 -07:00
Jonathan Zernik
695570064b
Add test for delete peer db method (#1664) 2021-10-22 10:35:23 -07:00
Jonathan Zernik
baa882056a
Add test for rename peer db method (#1663) 2021-10-22 10:27:08 -07:00
Jonathan Zernik
0193647cdf
Add test for get autoconnect peers (#1662) 2021-10-22 10:18:18 -07:00
Jonathan Zernik
f437939895
Add tests for get peers db method (#1659) 2021-10-19 07:50:07 -07:00
Jonathan Zernik
17ad673a33
Add tests for get peer db method (#1658) 2021-10-19 07:16:38 -07:00
Jonathan Zernik
31dbb29fdc
Add test for delete squeak db method (#1657) 2021-10-19 06:53:20 -07:00
Jonathan Zernik
1a4e46c439
Add test for set profile image db method (#1656) 2021-10-19 06:32:23 -07:00
Jonathan Zernik
0fa9755dea
Simplify profile fixtures for test db (#1655)
* Simplify and remove fixtures for profile tests in db test

* Delete old comments
2021-10-19 06:16:15 -07:00
Jonathan Zernik
93057f90b4
Add test for delete profile db method (#1654) 2021-10-19 06:07:06 -07:00
Jonathan Zernik
aac56d4aa5
Add test for set profile name db method (#1653) 2021-10-19 05:58:59 -07:00
Jonathan Zernik
204d5a388e
Add test for profile use custom price db method (#1652)
* Add test for set profile use custom price field db method

* Add test for set profile custom price field db method
2021-10-19 05:49:30 -07:00
Jonathan Zernik
94b16e03e6
Add test for get profile by name (#1651) 2021-10-19 05:07:25 -07:00
Jonathan Zernik
77f89389db
Add test for get profile by addresss db method (#1650) 2021-10-19 04:59:33 -07:00
Jonathan Zernik
718cc60e9f
Simplify test for get profile method (#1649) 2021-10-19 04:53:00 -07:00
Jonathan Zernik
3646fbb742
Add test for get following profiles db method (#1647) 2021-10-19 04:32:14 -07:00