Generated TypeScript protobuf SDK for the GridX - P2P Energy Trading Platform.
This SDK contains TypeScript protobuf types generated from the protobuf repository.
The TypeScript SDK is used by TypeScript services to share protobuf message and service contracts.
It can be used for:
- Kafka message encoding/decoding
- Connect/gRPC-style inter-service communication
Do not manually edit files inside:
src/gen/
These files are generated automatically from the protobuf contract repo.
Using GitHub tag dependency:
npm install github:p2p-energy-trading-platform/typescript-sdk#v0.2.0Import generated modules directly:
import { TestMoney } from "@p2p-energy-trading-platform/typescript-sdk/gen/gridx/test/v1/test_pb.js";
const money: TestMoney = {
currencyCode: "LKR",
units: BigInt(100),
nanos: 0,
};npm install
npm run buildThis SDK follows the same version as the protobuf contract release.
Example:
protobuf v0.2.0
typescript-sdk v0.2.0