The current supported languajes are:
- C++ (proto files in cpp_protos.zip)
- C# (proto files in csharp_protos.zip)
- Java (proto files in java_protos.zip)
- Python (proto files in python_protos.zip)
- Rust (proto files in rust_protos.zip)
Use the components in the ZIP files for each of the different languajes.
All original proto files can be found in the all_protos folder
If you are using the Injective proto components in Java you might want to use the following Maven dependencies (or use it as the base for your own Maven configuration):
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test</groupId>
<artifactId>injective_proto</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.25.1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.59.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.59.0</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</project>
To generate the proto files for all the supported languages run:
make run-fullbufCLI is required.- No local
protoc,grpc.tools, orrust_pluginsbinaries are required for generation. - The generation process uses pinned Buf remote plugins (configured in
buf.gen.yaml) to keep output reproducible.
make generatesyncs the source protos underproto/and runs a singlebuf generatefor all supported languages.scripts/normalize_generated.pyperforms compatibility normalization so C# and Rust outputs keep the expected source-relative tree shape.all_protosis refreshed fromproto/after generation.