Commit Graph

509 Commits

Author SHA1 Message Date
Varun Srinivasan
57c540d520 chore: release new version of packages (#761)
* chore: changelog bump to app/hubble to prep for release

* chore: don't minor bump hubble and protobufs for client changes

* chore: bump versions for publishing
@farcaster/hubble@1.0.18 @farcaster/utils@0.4.0 @farcaster/protobufs@0.1.11 @farcaster/hub-nodejs@0.6.0
2023-03-26 18:17:47 -07:00
adityapk00
048052b218 fix: Test data messages should be gossiped (#760) 2023-03-26 14:49:29 -07:00
adityapk00
f965209daa fix: Don't get recursive snapshots (#759)
* fix: Don't sync if engine is pruning

* move divergence prefix

* no timeouts
2023-03-26 13:54:54 -07:00
adityapk00
2b1ec6199a bump sync limit to 10s (#758) 2023-03-26 12:04:50 -07:00
adityapk00
55b7e7d80a chore: improve logging for failure cases (#756)
* chore: improve logging for failure cases

* 2 min timeout

* add tests

* Improve logging in merkleTrie.ts

* change shutdown order
2023-03-26 09:02:39 -07:00
adityapk00
e5cb3276c5 docs: Use SSL or Insecure clients in examples (#754)
* docs: Use SSL or Insecure clients in examples

* remove unnecessary awaits

* Remove getHubRpcClient

* changeset

* Fix changeset

* improve error message
2023-03-25 13:20:07 -07:00
adityapk00
96c73f8b9c fix: Sync stalls when peer is not responding (#755) 2023-03-25 10:08:20 -07:00
adityapk00
74588d351c feat: Dynamically recover from syncTrie corruption (#753)
* feat: Dynamically recover from syncTrie corruption

* log
2023-03-24 16:55:49 -07:00
Paul Fletcher-Hill
9307b57778 changeset version and make custom packages private (#752) 2023-03-24 17:11:47 -04:00
adityapk00
7a6599a405 fix: Attempt cleanshutdown on unexpected exceptions (#751) 2023-03-24 13:42:34 -07:00
adityapk00
7e77816045 fix: Handle errors when peer unexpectedly disconnects (#750) 2023-03-24 12:25:08 -07:00
adityapk00
111e926a45 fix: Catch any SSL errors if peer unexpectedly dies (#749) 2023-03-24 11:10:51 -07:00
Paul Fletcher-Hill
fa6cab2ce5 feat: commit one event at a time (#748)
* commit one event at a time

* ensure we end revoke iterator

* add revoke tests to stores

* improve pruning and revoking logging

* get rid of commented code

* test fname add revoke and transfer

* fix log typo
2023-03-24 13:10:04 -04:00
Shane da Silva
ffe5bf68a4 Include package to enable Node.js runtime metrics collection (#747) 2023-03-24 01:15:40 -07:00
Vincent Liao
f42e8a262b docs(hub-nodejs): add docs for utils.md (#736)
* docs: add bytes-hex docs

* add: timestamp docs

* docs: verification table, params and return

* docs: add hubresult wrapper type

* docs: clarify some examples, address nit

* update: s/hexString/byteArray

* docs: add import to toFarcasterTime
2023-03-23 22:13:52 -07:00
Varun Srinivasan
627416746b docs(hub-nodejs): fix parentCastId of CastAdd incorrectly labelled (#745) 2023-03-23 19:32:17 -07:00
Varun Srinivasan
5c7840518e fix(hubble): crash by bumping ethers to 6.2.1 (#744)
* fix: crash by bumping ethers to 6.2.1

* chore: add changeset
2023-03-23 19:19:51 -07:00
Varun Srinivasan
fd9314afea docs(hub-nodejs): more cleanups and fixes (#734)
* docs: clearly document unsafeUnwrap usage in docs

* docs: replace all instances of Buffer.from with hexStringToBytes

* docs: fix DataOptions links
2023-03-23 14:39:17 -07:00
Varun Srinivasan
1b5f6b2c1f docs(hub-nodejs): more cleanup based on user testing (#743)
* docs(hub-nodejs): fix incorrect submitMessage signature

* docs: fix broken links in examples

* docs: fix relative links not working on npm

* docs: fix stackblitz link for chron-feed

* chore: add changeset
2023-03-23 14:37:58 -07:00
Paul Fletcher-Hill
23de6e7eaf feat: move revoking messages into delayed job (#741)
* move revoking messages into delayed job

* fix imports, add changeset, add revoke tests
2023-03-23 16:08:14 -04:00
adityapk00
ed35c2d16b fix: Don't use RPC while handling gossip messages (#740) 2023-03-23 12:31:26 -07:00
adityapk00
21b9d3fae5 chore: better logging (#739) 2023-03-23 10:46:40 -07:00
adityapk00
6a0bf29f91 fix: Share dns name when gossiping contactinfo (#738)
* fix: Share dns name when gossiping contactinfo

* changeset
2023-03-23 10:08:11 -07:00
Varun Srinivasan
24519c5217 docs(hub-nodejs): small cleanups and improvements (#732)
* docs: update RPC port to 2283

* docs: add note about submitMessage rate limits

* docs: converting Message to specific types
2023-03-22 22:17:14 -07:00
Varun Srinivasan
1df9cd6bac docs(hub-nodejs): add examples for constructing casts (#731)
* docs: make configurable parameters in examples clearer

* docs: add example for constructing casts
2023-03-22 21:50:53 -07:00
Paul Fletcher-Hill
aa970d2dfe fix: prune in serial (#730)
* changeset version

* fix pruning error logging

* Revert "changeset version"

This reverts commit 144fa7071a.

* prune bug investigation
2023-03-22 23:13:44 -04:00
adityapk00
d5e6395dfd chore: Improve sync logging (#729) 2023-03-22 18:57:57 -07:00
Paul Fletcher-Hill
13c316b9bb chore: improve logging for pruning errors (#728)
* changeset version

* fix pruning error logging

* Revert "changeset version"

This reverts commit 144fa7071a.
2023-03-22 21:48:07 -04:00
adityapk00
0f6737bfc6 feat: IP based rate limiting for submitMessage RPC (#722) 2023-03-22 14:53:39 -07:00
adityapk00
3d45ccba81 chore: Change port numbers (#726) 2023-03-22 14:44:49 -07:00
adityapk00
7a2beb5f12 fix: Remove peerIDs checked into config file (#723)
* fix: Remove peerIDs checked into config file

* Change dockerfile
2023-03-22 14:30:43 -07:00
Paul Fletcher-Hill
72ca1416d6 move signer pruning before other sets (#725) 2023-03-22 17:30:22 -04:00
Anthony D'Addeo
dc69b6686b chore: add changeset for ethers v5 (#724) 2023-03-22 16:23:12 -05:00
Anthony D'Addeo
91b788d78f feat: add EthersV5Eip712Signer (#720) 2023-03-22 16:17:24 -05:00
Paul Fletcher-Hill
9710f4af40 chore: minor pruning refactor (#721)
* minor pruning refactor

* fix imports

* prune batches of fids in parallel
2023-03-22 17:13:37 -04:00
adityapk00
c26fafa255 feat: Add test data into test hubs (#719)
* feat: Add test data into test hubs

* changeset
2023-03-22 11:57:31 -07:00
Paul Fletcher-Hill
3e45dbe24c use warn rather than error for submitMessage (#718) 2023-03-22 00:58:18 -04:00
Paul Fletcher-Hill
b47a170f0a feat: add storage cache to speed up pruning (#717)
* add storage cache

* use event emitter to call revokeMessagesBySigner in engine

* test engine listeners

* log engine start and stop

* fix prune messages cron

* add more processEvent tests

* ensure event listeners are removed on engine stop

* move validation worker back into constructor

* fix imports

* more logging in engine and storage cache
2023-03-22 00:45:19 -04:00
Anthony D'Addeo
12c9c40081 chore: use subset of ethers Signer class (#716)
* chore: use subset of ethers Signer class

* use changeset
2023-03-21 17:03:10 -05:00
adityapk00
a89a5b9520 feat: Reset DB if DB_RESET_TOKEN is set (#713)
* feat: Reset DB if DB_RESET_TOKEN is set

* changeset
2023-03-21 10:24:31 -07:00
Varun Srinivasan
9138b5226a docs(hub-nodejs): add docs for reverse param (#711)
* docs(hub-nodejs): fix chron-feed example to return in reverse chron

* docs(hub-nodejs): add docs for reverse param
2023-03-21 09:18:43 -07:00
adityapk00
b4105c94b1 fix: Handle ethersv6 contract listener change (#712)
* fix: Handle ethersv6 contract listener change

* forgot test file
2023-03-21 08:27:24 -07:00
Varun Srinivasan
4d15c45695 docs(hub-nodejs): example that demonstrates writing messages to hubs (#710)
* docs(hub-nodejs): example that demonstrates writing messages to hubs

* docs: renaming things for clarity
2023-03-21 07:35:48 -07:00
Paul Fletcher-Hill
e090a3d6f5 feat: revoke messages immediately (#705)
* revoke messages immediately

* ensure db calls are wrapped in fromPromise
2023-03-21 00:42:32 -04:00
Varun Srinivasan
9a0f18c55c docs(hub-nodejs): add chronological feed example (#704) 2023-03-20 21:03:26 -07:00
Varun Srinivasan
5dfbd1c572 docs: configuration for use with ethersv5 (#709) 2023-03-20 20:57:47 -07:00
adityapk00
e29958ea04 fix: Terminate webworker at end of tests (#708)
* fix: Terminate webworker at end of tests

* changeset
2023-03-20 19:20:09 -07:00
Anthony D'Addeo
245096f1ca docs: minor adjustments to signer related docs (#702)
* docs: minor adjustments to signer related docs

* fix typo

* fix: use bytes
2023-03-20 18:25:59 -05:00
Varun Srinivasan
b8eaa9a857 docs(hub-nodejs): update invocations to match 0.5.0 release, fix minor typos (#701)
* docs: fix all instances of types imports

* docs: fix issues with EthersEip712Signers

* docs: fix issues with NobleEd25519Signer

* docs: fix issues with Builders and Utils

* docs: cleanup primary README example
2023-03-20 15:34:27 -07:00
Varun Srinivasan
d139dae5d4 chore: bump versions (#700) @farcaster/utils@0.3.0 @farcaster/hub-nodejs@0.5.0 @farcaster/protobufs@0.1.9 2023-03-20 14:16:44 -07:00