Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GridX TypeScript SDK

Generated TypeScript protobuf SDK for the GridX - P2P Energy Trading Platform.

This SDK contains TypeScript protobuf types generated from the protobuf repository.

Purpose

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

Generated Files

Do not manually edit files inside:

src/gen/

These files are generated automatically from the protobuf contract repo.

Install

Using GitHub tag dependency:

npm install github:p2p-energy-trading-platform/typescript-sdk#v0.2.0

Usage

Import 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,
};

Build

npm install
npm run build

Versioning

This SDK follows the same version as the protobuf contract release.

Example:

protobuf       v0.2.0
typescript-sdk v0.2.0

About

Generated TypeScript protobuf SDK for GridX services using Protobuf-ES and Connect.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages