tendermint-protobuf-def

module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: Apache-2.0

README

tendermint-protobuf-def

This repository contains Protobuf definitions for the Tendermint Firehose integration.

The GitHub workflow depends on protoc v3.20.0 and protoc-gen-go v1.27.1.

https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.0

go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1

proto file destination

Those 2 file are used to generate go binding

  • fig/tendermint/codec/v1/codec.proto
  • fig/tendermint/transform/v1/transform.proto This file is used to generate tendermint.ts in graph-ts and is copied to graph-node/chain/tendermint/proto/codec.proto
  • graph-ts/chain/tendermint.proto

The file in graph-ts are copied to graph-ts/chain/tendermint/proto/src/

  • graph-ts/chain/tendermint/proto/src/annotations.proto
  • graph-ts/chain/tendermint/proto/src/cosmos.v1.proto
  • graph-ts/chain/tendermint/proto/src/gogo.proto
  • graph-ts/chain/tendermint/proto/src/liquidity.v1.proto
  • graph-ts/chain/tendermint/proto/src/openapiv2.proto
  • graph-ts/chain/tendermint/proto/src/t.v1.proto

Generating code

To generate Go bindings for the Protobuf definitions, execute:

make generate

Protobuf formatting

make format

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL