eVESTX Mainchain protobuf schemas with methods for encoding and decoding protobuf messages as well as working with gRPC services.
Version: 0.1.2 beta
Add dependency to your pom.xml
<dependency>
<groupId>com.vrp</groupId>
<artifactId>protobuf-schemas</artifactId>
<version>{version}</version>
</dependency>
Npm package: @evestx/protobuf-mainchain
.
The @evestx/protobuf-mainchain contains JavaScript classes, as well as raw proto files. The default build uses CommonJS, ES6 and includes all of the proto files necessary for the operation.
long.js
is used for 64-bit integers: int64
, uint64
, etc.
Example:
npm install --save @evestx/protobuf-mainchain
- Default build usage
const { vrp } = require("@evestx/protobuf-mainchain")
const block = new vrp.Block();
block.header = // ... set necessary fields
const buffer = vrp.Block.encode(block);
const blockDecoded = vrp.Block.decode(buffer);
Add dependency to your Cargo.toml
[dependencies]
vrp-protobuf-schemas = { git = "https://github.com/eVESTXCOIN/protobuf-mainchain" }
Use mvn package
to create JAR artifacts:
protobuf-schemas-{version}-protobuf-src.jar
- raw .proto filesprotobuf-schemas-{version}.jar
- protoc-generated Java classes