Commit Graph

57 Commits

Author SHA1 Message Date
Varun Srinivasan
d139dae5d4 chore: bump versions (#700) 2023-03-20 14:16:44 -07:00
adityapk00
1b0e3a7efc feat: Allow setting rpcAuth via env variables (#698)
* feat: Allow setting rpcAuth via env variables

* changeset
2023-03-20 13:49:48 -07:00
David Furlong
c459855337 docs: fix broken signer doc links in builders (#694)
* Update Builders.md

* add changeset and links to Eip712Signer as well

---------

Co-authored-by: Tony D'Addeo <tony@merklemanufactory.com>
2023-03-20 14:14:15 -05:00
Anthony D'Addeo
8de734cb5b chore: bump signers change from batch to minor (#681) 2023-03-20 10:45:11 -07:00
Paul Fletcher-Hill
469825e7e1 feat: add reverse rpc pageOption (#695)
* add reverse rpc pageOption

* implement reverse for cast and reaction indices

* add changeset
2023-03-20 13:18:14 -04:00
Shane da Silva
a91afdb634 Allow specifying hub name via environment variable (#692)
This makes it easier to set the name when deploying multiple hubs.
2023-03-19 18:14:49 -07:00
Shane da Silva
d63e05f0f9 Switch to time-based check for process shutdown file (#688)
Using `fs.watch` uses `inotify`, which doesn't work with network file
systems like EFS where other kernels could be responsible for changes to
the file system.

Instead, check every 10 seconds to see if there is a change.

Ran this locally and it seemed to work fine.
2023-03-19 14:54:45 -07:00
adityapk00
b596ec9189 feat: Exit if superseeded by a newer hub (#684)
* feat: Exit if superseeded by a newer hub

* changeset
2023-03-19 13:17:12 -07:00
Anthony D'Addeo
99518efe30 refactor: introduce generic and dependency specific signers (#677)
* refactor: update ethers to v6.1 from v5.7

* refactor: generic signer classes

* remove neverthrow from crypto and signers

* update docs

* rm signer util fns

* add comment to getSignerKey

* rm not present methods from signers

* fix doc

* fix docs

* simplify Eip712Factory

* add changeset

---------

Co-authored-by: Varun Srinivasan <varunsrin@gmail.com>
2023-03-19 12:44:32 -05:00
Varun Srinivasan
59920f9716 refactor: update ethers to v6.1 from v5.7 (#670) 2023-03-18 17:38:17 -07:00
Varun Srinivasan
1e4482e6ba chore: upgrade minor and patch versions of packages (#678)
* chore: update all devDependencies to the latest versions

* chore: update @noble/hashes to 1.3.0

* chore: update @swc/core to 1.3.41

* chore: update @noble/ed25519 by a patch version

* chore: update ts-proto and eslint/parser dev deps

* chore: upgrade pino minor version

* chore: upgrade tsx minor version

* chore: add changeset
2023-03-18 17:26:45 -07:00
Shane da Silva
75ed86a30a chore: changeset version bumps (#676) 2023-03-18 13:13:38 -07:00
adityapk00
4e6b83e10c feat: Retry rocksDB lock during open (#666) 2023-03-18 12:58:22 -07:00
Anthony D'Addeo
86c00f5326 refactor: simplify Eip712Signer interface (#673)
* refactor: simplify Eip712Signer interface

* add changeset
2023-03-18 14:55:09 -05:00
adityapk00
8f2c6ef0e7 fix: Increase Q limits now that we have more memory. (#668)
* fix: Increase Q limits now that we have more memory.

* changeset
2023-03-17 14:28:40 -07:00
Varun Srinivasan
73d11308fb chore: changeset version bumps (#660) 2023-03-16 13:28:19 -07:00
Varun Srinivasan
a74ecb2097 refactor(farcaster/hub-nodejs): rename farcaster/js to farcaster/hub-nodejs (#658)
* refactor: rename farcaster/js to farcaster/hub-nodejs

* chore: add changeset
2023-03-16 13:08:05 -07:00
Paul Fletcher-Hill
0a3b77c9e5 feat: make name and fromId optional (#652)
* make name and fromId optional

* add changeset
2023-03-15 23:47:01 -04:00
Paul Fletcher-Hill
68230b7f86 chore: move submitIdRegistryEvent and submitNameRegistryEvent to admin grpc service (#650)
* move submitIdRegistryEvent and submitNameRegistryEvent to admin grpc service

* add changeset

* fix imports
2023-03-15 13:31:36 -04:00
Anthony D'Addeo
e7602bdd31 feat: pagination for list queries and gRPC (#610)
* poc

* address pr feedback, add pagination to getAllSignerMessagesByFid

* fix types

* use bytes and uint32

* move makeEndPrefix into utils

* getSignersByFid

* fix: getCastsByFid should return items in reverse chronological order

* returns casts in chronological order

* fix: getCastsByFid should return casts in chronological order

In the RocksDB iterator we use to construct thashes for the messages query, select only the CastMessages which are CastAdds

* rename page options and move page iterator to message file

* intermediate commit

* fix tests

* use suffixes as tokens rather than full keys

* remove commented out code

* paginate getCastsByParent, getCastsByMention, getReactionsByCast

* add changeset and fix linting

* update multiPeerSyncEngine test

* add more tests

* fix import

---------

Co-authored-by: bstchow <36556453+bstchow@users.noreply.github.com>
Co-authored-by: Paul Fletcher-Hill <pfletcherhill@gmail.com>
2023-03-15 01:15:31 -04:00
Shane da Silva
935b6ec6e8 chore: changeset version (#640) 2023-03-12 14:34:11 -07:00
Shane da Silva
2d90f5bf1c fix: Validate embed URLs using utf8 byte length (#638)
We want to ensure these URLs remain under 256 bytes when encoded as
utf8.
2023-03-12 13:46:33 -07:00
Paul Fletcher-Hill
f55fa8a219 feat: refactor @farcaster/js to only export from utils and protobufs (#636)
* remove js files and export from utils and protobufs

* remove hex methods and add changeset
2023-03-11 18:38:12 -05:00
Shane da Silva
fe503a29c8 chore: changeset version (#637) 2023-03-11 14:10:18 -08:00
Shane da Silva
e75e46b361 fix: validate length limits in terms of utf8 bytes and allow 10 mentions (#633)
We want to know exactly how many bytes we're storing. Check using utf8
byte length instead of character length.

This also requires changes to our mentions validations, since we now
need to check in terms of bytes instead of characters.

While here, based on team discussion and current cast data, increase
maximum number of mentions from 5 to 10.
2023-03-10 21:37:50 -08:00
Paul Fletcher-Hill
42680b459d chore: changeset version (#629) 2023-03-07 22:52:38 -05:00
Paul Fletcher-Hill
6f1c5a92fb use ts-proto removeEnumPrefix flag (#628) 2023-03-07 21:27:34 -05:00
Zach Terrell
ea7b9c9c66 feat: add name field to signers (#627)
* add: SignerAdd and SignerRemove to message.proto

* add: finish message.proto and validations

* progress: refactor signer factory

* update tests to support signerAddBody and signerRemoveBody

* add changeset

---------

Co-authored-by: Paul Fletcher-Hill <pfletcherhill@gmail.com>
2023-03-07 19:54:48 -05:00
Shane da Silva
cf8624d340 chore: bump changeset versions (#615)
Ran `yarn changeset version`
2023-02-25 22:59:36 -08:00
Paul Fletcher-Hill
d04d5d4a3c feat: support fromId param in subscribe method (#604)
* support fromId param in subscribe method

* add fromId to js event filters

* support filtering by fromId and eventTypes

* add changeset
2023-02-23 12:32:05 -05:00
Paul Fletcher-Hill
22a9d46015 chore: remove location (#603)
* remove location from UserDataAdd types

* add changeset
2023-02-23 01:25:48 -05:00
Paul Fletcher-Hill
4056b5d4d1 feat: add hub events log and delete amps (for now) (#602)
* add hub events and delete amps

* include hub_event.proto
2023-02-23 01:03:17 -05:00
Shane da Silva
d7c9e0a4ab chore: bump changeset versions (#597) 2023-02-19 21:20:24 -08:00
Shane da Silva
96468718d0 Allow duplicate mentionsPositions (#596)
It is possible for a cast to have multiple mentions with the same
position. Consider the following cast:

    @a@b@c

In this case, we are mentioning the users `a`, `b`, and `c`, without
separating their names with any other text. The resulting
`mentionsPositions` will be `[0, 0, 0]`, since there is no change in
position.

Relax our validations to allow this case.
2023-02-19 21:11:41 -08:00
Paul Fletcher-Hill
245718cb13 bump package versions (#592) 2023-02-19 10:34:11 -05:00
Shane da Silva
3096e00f1a fix: Allow empty cast text (#591)
* Allow empty cast text

Since a cast could consist of just a mention, a valid cast can have no
actual text, only a mention.

We should not fail in this case.

* Create silly-trees-tickle.md

---------

Co-authored-by: Paul Fletcher-Hill <1607180+pfletcherhill@users.noreply.github.com>
2023-02-19 10:25:30 -05:00
Paul Fletcher-Hill
a31de82054 update changeset version (#572) 2023-02-14 17:42:09 -08:00
Paul Fletcher-Hill
6a66bae932 feat: add mentionsPositions to CastAddBody (#568)
* add mentionsPositions to CastAddBody

* validate mentionsPositions sorted in ascending order
2023-02-13 18:26:23 -05:00
Paul Fletcher-Hill
1151fea239 feat: change farcaster epoch (#566)
* update fromFarcasterTime and confirm 320 byte cast text limit

* fix sync tests that use the farcaster epoch

* add changeset
2023-02-13 11:31:33 -05:00
Paul Fletcher-Hill
cf9c64c3a0 feat: asynchronously fetch NameRegistryEvent expiry (#553)
* intermediate name expiry commit

* integrate fname expiry update job with hubble

* add changeset
2023-02-10 12:09:59 -05:00
Paul Fletcher-Hill
d21a8f2e55 chore: remove unused packages and investigate async job memory leak (#515)
* investigate async job memory leak

* add changeset
2023-02-03 17:55:54 -05:00
Paul Fletcher-Hill
d9ff6b3030 bump versions (#498) 2023-02-01 12:29:38 -05:00
Paul Fletcher-Hill
9558382d60 chore: remove unused dependencies from packages (#496)
* delete unused dependencies

* add changeset
2023-02-01 12:16:55 -05:00
Paul Fletcher-Hill
6be998397d chore: port subscribe gRPC method and event streaming to protobufs (#492)
* support event streaming

* remove commented out code
2023-01-31 22:50:29 -05:00
Paul Fletcher-Hill
fbcd9e3967 changeset version (#481) 2023-01-30 15:13:31 -05:00
Paul Fletcher-Hill
d49fd11944 chore: rename protohub to hub (#480)
* rename protohub folder to hub

* rename @farcaster/protohub to hub
2023-01-30 15:06:53 -05:00
Paul Fletcher-Hill
58738a4409 nuke flatbuffers code (#479) 2023-01-30 14:45:08 -05:00
Paul Fletcher-Hill
a26d8ff76e feat: update js package to use protobufs (#469)
* update js package to use protobufs

* add changeset

* add client to js package

* remove nice-grpc

* fix reactionType

* resolve merge conflicts
2023-01-30 12:30:58 -05:00
Paul Fletcher-Hill
2e32983f07 fix flaky job test and update validations to enforce fixed size for addresses and hashes (#464) 2023-01-26 20:36:55 -05:00
Paul Fletcher-Hill
526bd17cae feat: add protobuf job implementation (#462) 2023-01-26 15:08:30 -05:00