Commit Graph

142 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
2023-03-26 18:17:47 -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
Paul Fletcher-Hill
9307b57778 changeset version and make custom packages private (#752) 2023-03-24 17:11:47 -04: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
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
Anthony D'Addeo
91b788d78f feat: add EthersV5Eip712Signer (#720) 2023-03-22 16:17:24 -05: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
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
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
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
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
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) 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
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
adityapk00
bbae5da485 fix: Correctly get SSL / Insecure client (#691) 2023-03-19 17:40:36 -07:00
Varun Srinivasan
c503d19eb2 docs: add documentation for userdata, verifications and streaming services (#687)
* docs: add getUserData usage

* docs: add docs for verifications

* docs: add docs for streaming
2023-03-19 16:53:40 -07:00
Vincent Liao
f875c1ed65 chore: turn prettier into its own package (#653)
* chore: separate out prettier from eslint into its own package

* fix: duplicate package name in package.json
2023-03-19 12:47:15 -07:00
Vincent Liao
fde61010b8 fix: contributing.md 404 (#663) 2023-03-19 12:46:28 -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
1f202ed555 docs(hub-nodejs): add documentation for pagination, responses (#680)
* docs: fix makeVerificationRemove and dataOptions in builders

* docs: simplify main example, fix typo

* docs: add pagination documentation
2023-03-19 10:05:12 -07:00
Anthony D'Addeo
614720c246 docs: minor doc fixes (#662) 2023-03-18 21:27:15 -07: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
Anthony D'Addeo
86c00f5326 refactor: simplify Eip712Signer interface (#673)
* refactor: simplify Eip712Signer interface

* add changeset
2023-03-18 14:55:09 -05: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
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
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
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