Commit Graph

181 Commits

Author SHA1 Message Date
Sanjay
52fc714970 chore: Release 1.2.1 (#925) 2023-04-27 14:36:13 -07:00
Michael Huang
6a8486017e feat: implement ViemLocalEip712Signer (#787)
* Implement viemEip712Signer

* Add tests

* clean

* Stubs

* Deps

* Fixes

* Clean

* Fix bugs

* Rename

* Add changeset

* rename

* clean up

* rename

* update import

* Upgrade

* Update test

* ViemEip712Signer -> ViemLocalEip712Signer

* clean up

* Convert hash bytes to hex string before signing

* use random wallet

* Add test for mnemonic account

* Simplify

* Use random mnemonic phrase

* More clean up

* Add comment

* refactor EIP-712 signer tests into util

* update changeset to patch core

---------

Co-authored-by: Tony D'Addeo <tony@merklemanufactory.com>
Co-authored-by: Paul Fletcher-Hill <pfletcherhill@gmail.com>
2023-04-27 12:40:35 -04:00
Sanjay
421c385453 feat: Add sync stats to getInfo call (#916)
* refactor: Rename sync events flag for clarity

* feat: Add sync statuts to HubInfo RPC call

* feat: Add sync stats to getInfo rpc call

* re-patch hub-web to use default export as before

* changeset
2023-04-25 10:40:59 -07:00
Varun Srinivasan
a57e335da6 chore(hub-nodejs): update write-cast example for v0.7 (#915) 2023-04-24 21:36:46 -07:00
Varun Srinivasan
812386f338 chore(hub-nodejs): update write-data example (#910) 2023-04-24 14:18:24 -07:00
Varun Srinivasan
b225a84410 chore(hub-nodejs): add hub urls, steps to chron-feed examples (#905) 2023-04-23 21:25:27 -07:00
Zach Terrell
0c3c33f2b8 docs(hub-nodejs): update example (#900)
* update hub-nodejs example

* change to getSSLHubRpcClient
2023-04-20 20:22:59 -07:00
Paul Fletcher-Hill
c5a6aac6e4 changeset version (#889) 2023-04-19 00:43:57 -04:00
Paul Fletcher-Hill
87b2789124 feat: support arbitrary target types (#847)
* support CastId embeds, url parents and reaction targets

* docs(changeset): support CastId embeds, cast parent URLs, and reaction target URLs

* fix validations test

* add version and embeds deprecated validation

* docs(changeset): upgrade to protocol version 2023.4.19

* update protobuf generated code

* add reaction service tests

* add more examples to builder tests

* add more cast and reaction tests
2023-04-18 23:10:13 -04:00
Paul Fletcher-Hill
0cb0a522b2 chore: re-organize sync engine to use submitMessage rather than mergeMessage (#878)
* upgrade hub-web in examples and move gossip to hubble

* use submitMessage for sync

* simplify logging in sync engine

* remove sync related methods from storage engine

* cleanup imports and remove test methods

* add changeset
2023-04-18 00:49:57 -04:00
github-actions[bot]
3be3a3842e version packages (#875)
Co-authored-by: Paul Fletcher-Hill <pfletcherhill@gmail.com>
2023-04-14 11:58:16 -04:00
Paul Fletcher-Hill
ee953ec4ad fix: examples and patch hub-web to use grpc-web default export (#867)
* fix chron-feed example

* update chron-feed example

* intermediate commit

* add chron-feed hub-web example

* add changeset

* remove commented out imports from example
2023-04-14 11:16:21 -04:00
Satyajeet Pal
f89fe7f982 docs: update examples for making casts and writing data (#834) 2023-04-12 06:25:01 -07:00
Vincent Liao
3be37fe8c0 docs: add error code in Utils.md (#773) 2023-04-12 06:20:56 -07:00
Paul Fletcher-Hill
d25b7038b6 changeset version @farcaster/hub-web (#859) 2023-04-11 17:58:18 -04:00
Paul Fletcher-Hill
932f0ef392 chore: add hub-web docs (#857) 2023-04-11 14:09:39 -04:00
Paul Fletcher-Hill
6e5449acb2 fix: do not change observable stream in grpc-web client (#856)
* do not change observable stream in grpc-web client

* add changeset
2023-04-11 13:31:18 -04:00
Sanjay
562b9639b1 chore: Add test to ensure verification and claim must have same network (#836)
* chore: Add test to ensure verification and claim must have same network

* cleanup
2023-04-10 09:58:14 -07:00
Varun Srinivasan
038a647bd7 chore: release new versions (#839) 2023-04-06 17:47:33 -07:00
Sanjay
edea195dba feat: ensure hub networks match when syncing with peers (#837)
* feat: ensure hub networks match when syncing with peers

* send the network when gossiping
2023-04-06 17:29:20 -07:00
Paul Fletcher-Hill
833c4cc0b4 fix: map grpc error codes to hub error codes (#832)
* map grpc codes to hub error codes

* add changeset
2023-04-06 13:42:35 -04:00
Paul Fletcher-Hill
52035aa031 run changeset version (#826) 2023-04-05 20:22:47 -04:00
PangZhi
b6508b9aca update readme (#829) 2023-04-05 17:19:56 -07:00
PangZhi
74ec2526e5 fix: add grpc error code as fallback (#828)
* add grpc error code as fallback

* add changeset
2023-04-05 17:12:59 -07:00
PangZhi
7d58347545 fiix error code for no connection (#827) 2023-04-05 16:49:49 -07:00
PangZhi
7194054d24 chore: export getAuthMetadata & getHubRpcClient (#822)
* export getAuthMetadata

* add changeset

* expose getHubRpcClient

* update error logging and readme

* update changeset

* fix errorcode

* fix typo
2023-04-05 13:38:13 -07:00
PangZhi
9f0dc6a0bb chore: enable getSSLHubRpcClient (#821)
* enable getSSLHubRpcClient

* add changeset
2023-04-05 08:08:00 -07:00
Paul Fletcher-Hill
64418e9495 changeset version (#820) 2023-04-04 23:28:23 -04:00
Paul Fletcher-Hill
1e4e5ba522 chore: update tsup configs (#819)
* update tsup configs

* add more browser options

* add changeset

* update browser versions
2023-04-04 23:21:01 -04:00
PangZhi
c4529a7ef2 feat: merge protobufs and utils into core package (#818)
* remove protobufs as a package, merge into utils

* update yarn.lock

* rename utils package to core

* update docker

* add changeset

* tsup config

* change schema path in workflow file

* update protobufs readme link
2023-04-04 19:21:30 -07:00
Paul Fletcher-Hill
58af42fdda chore: run changeset version (#816)
* update hub-web changeset from major to minor

* run changeset version
2023-04-04 18:52:33 -04:00
PangZhi
ce7929e2aa feat: wrap hub-web client to provide consistent APIs with hub-nodejs (#811)
* wrap client for hub-web so that the APIs are consistent with hub-nodejs

* update readme for new APIs

* fix type export

* add changeset

* rename client to be consistent with hub-nodejs

* update README

* remove envoy folder from root
2023-04-04 15:28:42 -07:00
Sanjay
759e1cfbc0 feat: ignore hubs below minimum version for sync (#808)
* feat: ignore hubs below minimum version for sync

* fix tests and add changeset
2023-04-04 13:09:31 -07:00
adityapk00
13415ead71 fix: Prevent slow subscribers from crashing the hub (#799)
* fix: Prevent slow subscribers from crashing the hub

* changeset

* Add bufferedStreamWriter

* register listeners first

* Check if iterator has ended before ending it

* fix compile
2023-04-04 11:52:50 -07:00
PangZhi
1f47906693 feat: refactor protobufs and utils to remove grpc-js dependency (#798)
* remove grpc-js dependency from protobufs, refactor hubble to use hub-nodejs

* hub-web to use @farcaster/protobufs and utils

* add yarn.lock

* refactor hubble app to only use hub-nodejs

* update readme

* update export order

* update export order

* fix protobufs namespace build issue

* update codecov

* fix protobufCommand naming

---------

Co-authored-by: Paul Fletcher-Hill <pfletcherhill@gmail.com>
2023-04-04 09:27:53 -07:00
adityapk00
9e39bb8156 docs: update docs to close() grpc connection (#790)
* docs: Update docs to close grpc connections

* changeset
2023-04-04 07:07:10 -07:00
PangZhi
3ac5315fd5 feat: add hub-web package to only depend on grpc-web (#797)
* add new hub-web package and generate code from grpc-web

* expose RpcWebClient

* add envoy support

* update readme and changelog

* add changeset

* move envoy to apps/hubble and fix service name

* reduce the code generation from protoc to only rpc.proto
2023-04-03 11:35:08 -07:00
Paul Fletcher-Hill
142f3f52c2 add getIdRegistryEventByAddress method (#791) 2023-03-31 12:10:34 -04:00
Varun Srinivasan
2f51472cca docs(hub-nodejs): point urls to testnet hubs (#764) 2023-03-27 12:28:42 -07:00
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