@onflow/protobuf

1.3.1 • Public • Published

@onflow/protobuf

This package contains the protobuf files used by the Flow JS SDK to communicate with the Access API.

Status

  • Last Updated: July 27th 2020
  • Stable: Yes
  • Risk of Breaking Change: High

These change when the access nodes need different data. If the access nodes introduce a breaking change this package will proxy that breaking change into the SDK and FCL. This risk is what lead us to the interaction abstraction and our send functions acting as a translation layer between the interaction and these.

Install

npm install --save @onflow/protobuf

Versioning

The version of this package reflects the version of the AccessAPI spec for which it supports.

Generating Protobuf Files

First, ensure you have protoc installed on your machine. protoc is a tool that will allow us to generate js-protobuf files. To install protoc, follow the guide available here https://grpc.io/docs/quickstart/go/#protocol-buffers (note: MacOS users can install protoc using homebrew: brew install protoc)

To generate the js-protobuf files, run the generate script in package json:

npm run generate

/@onflow/protobuf/

    Package Sidebar

    Install

    npm i @onflow/protobuf

    Homepage

    onflow.org

    Weekly Downloads

    1,353

    Version

    1.3.1

    License

    Apache-2.0

    Unpacked Size

    2.49 MB

    Total Files

    8

    Last publish

    Collaborators

    • han210
    • dapperj
    • dapper_labs
    • jeffreydoyle
    • harry.eth
    • turbolent_flow
    • chasefleming
    • gregsantos
    • gregorggg
    • jribbink
    • bthaile
    • nialexsan
    • sisyphussmiling