Protos
is a repository that contains the protocol buffer definitions for the entire ecosystem of TxPull. We provide protocol buffer definitions for Go and JavaScript, and generate documentation and protoset files for use by our team and the wider community.
To use the protocol buffer definitions in this repository, you'll need to install the following tools:
protoc
: The protocol buffer compiler. You can download the latest release from the official website.make
: A build automation tool. You can install this on macOS with Homebrew by runningbrew install make
.npm
: The Node.js package manager. You can download the latest version of Node.js and npm from the official website.protoc-gen-go
: A Go plugin for the protocol buffer compiler that generates Go code from .proto files. You can download the latest release from the official repository.protoc-gen-go-grpc
: A Go plugin for the protocol buffer compiler that generates Go code with gRPC support from .proto files. You can download the latest release from the official repository.protoc-gen-docs
: A plugin for the protocol buffer compiler that generates documentation in Markdown format from .proto files. You can download the latest release from the official repository.protoc-gen-js
: A plugin for the protocol buffer compiler that generates JavaScript code from .proto files. You can install this using npm with the following command:npm install -g grpc-tools
.protoc-gen-grpc-web
: A plugin for the protocol buffer compiler that generates JavaScript code with gRPC-Web support from .proto files. You can install this using npm with the following command:npm install -g grpc-web
.
This command will install the necessary Go packages and JavaScript dependencies.
make deps
In case you have issues with javascript compiler issues, well you can use following command:
npm install
This command will install the necessary javascript modules.
We provide Makefile targets to make it easy to build the protocol buffer definitions in this repository.
Generates Go and JavaScript code, documentation, and protoset files for the entire repository.
Generates Go code for the protocol buffer definitions in this repository.
Generates JavaScript code for the protocol buffer definitions in this repository.
Removes generated files from previous builds.
Displays help information about the available Makefile targets.
We welcome contributions to this repository! To get started, please fork this repository and create a new branch for your changes. Then, submit a pull request to the master
branch of this repository.
This repository is licensed under the MIT License. See the LICENSE
file for more information.