Commit Graph

433 Commits

Author SHA1 Message Date
Shane da Silva
75ed86a30a chore: changeset version bumps (#676) @farcaster/hub-nodejs@0.4.1 @farcaster/utils@0.2.12 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
Paul Fletcher-Hill
269337c7e6 improve engine error messages (#674) 2023-03-18 15:44:33 -04: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
adityapk00
2bd81f6255 feat: Admin server on localhost only (#667) 2023-03-17 13:27:11 -07:00
Varun Srinivasan
046cb77681 docs(hub-nodejs): improve docs based on feedback (#664)
* fix: typo in VerificationAddEthAddress

* fix: address and hash types should be Uint8Array not string

* docs: SignerBody is now SignerAddBody or SignerRemoveBody

* docs: clarify MessageData structure

* docs: placeholders for utils

* docs: replace stub data with better defaults

* docs: making verification messages
2023-03-16 21:25:25 -07:00
Varun Srinivasan
42f9da1ea4 chore: add instructions and nudges to add changesets (#661) 2023-03-16 13:50:18 -07:00
Varun Srinivasan
73d11308fb chore: changeset version bumps (#660) @farcaster/utils@0.2.11 @farcaster/hub-nodejs@0.4.0 @farcaster/protobufs@0.1.8 2023-03-16 13:28:19 -07:00
Varun Srinivasan
2e0d95f33a chore: upgrade minor and patch versions of monorepo dependencies (#659) 2023-03-16 13:18:35 -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
Varun Srinivasan
3a1ead3039 chore: upgrade typescript to v5 from v5beta (#656) 2023-03-16 10:48:06 -07:00
Paul Fletcher-Hill
9b4a7fea27 fix prune messages job (#655) 2023-03-16 13:00:45 -04:00
Varun Srinivasan
cfc47a97da docs(@farcaster/js): update documentation for client and builders to match refactor (#648) 2023-03-16 09:17:45 -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
adityapk00
d809846423 fix: Catch timeouts during shutdown (#643) 2023-03-13 09:33:26 -07:00
Varun Srinivasan
7588fffdd5 docs: remove typedoc and outdated docs (#639) 2023-03-13 05:19:11 -07: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
f132d9a345 force shutdown on stop (#632) 2023-03-09 14:47:46 -05:00
Varun Srinivasan
ea3f80154b docs: remove auto-generated typedocs and write manual docs (#630) 2023-03-09 11:34:16 -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
adityapk00
30cc4a59ba fix doc to use pubkey instead of priv key (#626) 2023-03-07 09:43:45 -08:00
Vincent Liao
2a2eb36559 docs: remove verbose types (#617)
* remove: return types on builders.ts

* add: custom return type to makeCastAdd

* add: types to cast add message return

* docs: align left for return table

* update: document the return of functions in builders.ts

* fix: wrong link in returns

* remove: one-liner signatures

* update: add return tables for signers

* add: barebones docs for client.ts

* fix: wrong link in types

* fix: table overflow when function could return two types
2023-03-03 15:36:37 -08:00
Alex Paden
321ad56be5 update packages/js/README.md (#619) 2023-03-03 12:35:54 -08:00
adityapk00
114dfabec9 fix: Fix rpcAuth test db name (#625) 2023-03-01 09:46:25 -08:00
adityapk00
cf0c452e3f feat: Add RPC Auth and SSL support (#624)
* feat: Add RPC Auth and SSL support

* tests
2023-03-01 09:35:47 -08:00
payton
bf5beb879d feat: add ability to change contract configuration via cli (#623)
* feat: add ability to change contract configuration via cli

* feat: add cli options for id + name registry contract addresses,
starting block, and block chunk size for historical event syncing

* feat: generalize makeWithGoerli into build factory method for
EthEventsProvider

* feat: default to Goerli constants from hubble.ts instead of
eth/ethEventsProvider.ts

Signed-off-by: Payton Garland <payton.r.g@gmail.com>

* feat: set 10000 as default chunk size in cli

Signed-off-by: Payton Garland <payton.r.g@gmail.com>

* fix: remove redundant default from command option

Signed-off-by: Payton Garland <payton.r.g@gmail.com>

---------

Signed-off-by: Payton Garland <payton.r.g@gmail.com>
2023-03-01 09:16:21 -08:00
adityapk00
a237a6554a feat: Add warpcast client setup command (#621) 2023-02-28 10:00:34 -08:00
Anthony D'Addeo
74c9d071fe docs: add TSDoc annotations re timestamps (#444) 2023-02-27 11:36:54 -06:00
adityapk00
5d16644020 chore: Add multiple signer test for sync (#618) 2023-02-27 07:25:30 -08:00
Shane da Silva
cf8624d340 chore: bump changeset versions (#615)
Ran `yarn changeset version`
2023-02-25 22:59:36 -08:00
Vincent Liao
3e34a4e0b3 docs: add JS docs to message builders (#612)
* update: ignore all data functions

* add: docs to message builders

* add: docs to verification message builder and signer remove
2023-02-25 17:14:33 -08:00
Varun Srinivasan
d0d7c1172a docs: make improvements to documentation (#613)
* docs: remove amp types

* docs: update quickstart guide in farcaster/js readme
2023-02-25 17:12:49 -08:00
adityapk00
cbb6b4aea8 feat: Implement rate limits for gossip/sync (#609)
* feat: Rate limit gossip messages

* rename const
2023-02-24 06:38:17 -08:00
Vincent Liao
7af59f9fd4 docs: @farcaster/js (#590)
* fix: relative path on hubble docs not resolving to contributing.md

* add: initial table structure of the docs

* remove: link on first column

* add: docs/Ed25519Signer.md

* fix: wrong links in Ed25519Signer.md

* fix: wrong link again

* add: constructor to ed25519signer.md

* add docs/Eip712Signer.md

* update: replace ambiguous description with TODO

* update: code example on readme

* add: a comment about neverthrow

* add: js docs to interact with hub

* update: wrong import on docs

* remove: make Data and Amp functions

* update: clarify the eddsa private key part

* update: move signer docs to readme

* update: readme table

* fix: wrong path

* add: docs for eip signer but in js

* remove: ambiguous descriptions

* add: doc generation with TypeDoc

* add: docs for ed25519 signer

* update: build first before running docs

* update: only use packages/js for typedoc entrypoint

* remove: function name in tsdoc comments

* update: move examples up for clarity

* add: typedoc.json

* add: description for properties of signers

* update: link to classes in readme

* update: move make message explanation above

* remove: ambiguous description in readme

* add: a line in contributing.md about generating docs for packages/*

* remove: old docs

* update: recompiled docs and add plugin on typedoc.json

* add: description to sign verification

Co-authored-by: Anthony D'Addeo <tony@tavour.com>

* update: use yarn instead of npm

Co-authored-by: Anthony D'Addeo <tony@tavour.com>

* update: disable typedoc source

* update: contributing.md packages/* to packages/js

* update: TODO to TODO DOCS

* fix: eip712 signer not rendering properly

* add: docs to message builders

* add: docs to client

---------

Co-authored-by: Anthony D'Addeo <tony@tavour.com>
2023-02-23 21:15:07 -08:00
adityapk00
4b6e7149a1 fix: Handle startup errors gracefully (#605) 2023-02-23 09:40:48 -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
Varun Srinivasan
ad4dfcfa1d docs: update READMEs to match latest behavior (#601) 2023-02-22 20:36:52 -08:00
adityapk00
a3f6668b4f feat: Add admin debug commands (#600) 2023-02-21 07:49:17 -08:00
adityapk00
af69c98419 fix: Sync stalls after a few hours are not stored (#599) 2023-02-20 14:57:39 -08:00