mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
# Lux gRPC
|
|
|
|
Now Serving: **Protocol Version 42**
|
|
|
|
Protobuf files are hosted at
|
|
[https://buf.build/luxfi/lux](https://buf.build/luxfi/lux) and
|
|
can be used as dependencies in other projects.
|
|
|
|
Protobuf linting and generation for this project is managed by
|
|
[buf](https://github.com/bufbuild/buf).
|
|
|
|
Please find installation instructions on
|
|
[https://docs.buf.build/installation/](https://docs.buf.build/installation/).
|
|
|
|
Any changes made to proto definition can be updated by running
|
|
`protobuf_codegen.sh` located in the `scripts/` directory of Lux Node.
|
|
|
|
`buf` Quickstart
|
|
[https://buf.build/docs/cli/quickstart](https://buf.build/docs/cli/quickstart)
|
|
|
|
## Protocol Version Compatibility
|
|
|
|
The protobuf definitions and generated code are versioned based on the
|
|
[RPCChainVMProtocol](../version/version.go#L13) defined for the RPCChainVM.
|
|
Many versions of a Lux client can use the same
|
|
[RPCChainVMProtocol](../version/version.go#L13). But each Lux client and
|
|
chain VM must use the same protocol version to be compatible.
|
|
|
|
## Publishing to Buf Schema Registry
|
|
|
|
- Checkout appropriate tag in Lux Node `git checkout v1.10.1`
|
|
- Change to proto/ directory `cd proto`.
|
|
- Publish new tag to buf registry. `buf push -t v26`
|
|
|
|
Note: Publishing requires auth to the luxfi org in buf
|
|
https://buf.build/luxfi/repositories
|