This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@farcaster/protobufs
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@farcaster/protobufs

Specifications for API's and data formats used in Hubble, including both Farcaster protocol types and Hubble specific types.

Schema Type Description Docs
Message Types for Farcaster deltas docs
RPC Types for gRPC APIs exposed by Hubs docs
Gossip Types for gossiping data between Hubs
IdRegistryEvent Types for representing on-chain activity
NameRegistryEvent Types for representing on-chain activity
HubState Types for for maintaining internal state

Getting Started

Generate Bindings

Coming soon

Generate Docs

Documentation of gRPC endpoints is done manually, but protoc can be used to generate Message docs:

  1. Install protoc
  2. Download latest protoc-gen-doc binary from the repo and place in this folder
  3. On OS X, you may need to remove the binary from quaratine with xattr -d com.apple.quarantine protoc-gen-doc
  4. Run protoc --plugin=protoc-gen-doc=./protoc-gen-doc --doc_out=. --doc_opt=markdown,message.md src/schemas/message.proto

The output should be merged with the existing documentation by hand because it makes some errors like not correctly documenting oneOf. It also organizes items alphabetically which makes it harder to parse.

Readme

Keywords

none

Package Sidebar

Install

npm i @farcaster/protobufs

Weekly Downloads

32

Version

0.2.0

License

MIT

Unpacked Size

828 kB

Total Files

5

Last publish

Collaborators

  • aditiharini
  • caheart_mm
  • ecm_merkle
  • sanjayprabhu
  • adityapk00
  • daddeo
  • varunsrin
  • sds