0.17.2 • Published 6 months ago

@solar-republic/cosmos-grpc v0.17.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Cosmos gRPC

Generates ultralight, tree-shakable TypeScript APIs from the .proto files of any blockchain built using the Cosmos-SDK. Intended for use in a Web environment.

Generated code is strongly-typed, self-contained, and dependency-free.

The generated module includes:

  • gRPC REST clients compatible with Cosmos REST endpoints (via gRPC-gateway)
  • Protobuf message encoders & decoders, including for strongly-typed google.protobuf.Any interfaces
  • Positional destructors for the JSON serialization of messages (e.g., those returned by gRPC-gateway)

Some goals for this project include:

  • adding Amino transcoders

Motivation

Other generated clients use protoc plugins that end up producing extremely bloated code with many unused functions, hefty classes, and poor tree-shakability, leading to large bundles. Part of the reason is due to how those protoc plugins map Messages to classes, support a variety of transports, and import bulky dependencies for encoding/decoding.

This project implements its own ultralight protobuf encoder & decoder, exports every operation as its own ESM function (for optimal tree-shaking), and focusses solely on Cosmos-SDK's gRPC-gateway REST endpoints for transport.

Using in a project

yarn add @solar-republic/cosmos-grpc

Contributing

yarn install
yarn build
0.17.0-beta.1

8 months ago

0.18.0-beta.8

7 months ago

0.18.0-beta.9

7 months ago

0.19.0

6 months ago

0.17.2

8 months ago

0.19.1

6 months ago

0.18.0-beta.11

7 months ago

0.18.0-beta.10

7 months ago

0.18.0-beta.6

8 months ago

0.18.0-beta.7

7 months ago

0.18.0-beta.4

8 months ago

0.18.0-beta.5

8 months ago

0.18.0-beta.2

8 months ago

0.18.0-beta.3

8 months ago

0.18.0-beta.1

8 months ago

0.18.0

6 months ago

0.15.5

1 year ago

0.16.4

1 year ago

0.16.5

1 year ago

0.16.6

1 year ago

0.17.0

1 year ago

0.17.1

1 year ago

0.16.3

1 year ago

0.15.4

1 year ago

0.16.2

1 year ago

0.16.0

1 year ago

0.16.1

1 year ago

0.15.3

1 year ago

0.15.1

1 year ago

0.15.2

1 year ago

0.15.0

1 year ago

0.14.2

1 year ago

0.14.0

1 year ago

0.14.1

1 year ago

0.13.0

1 year ago

0.12.0

1 year ago

0.11.1

1 year ago

0.11.2

1 year ago

0.11.0

1 year ago

0.10.5

1 year ago

0.10.3

2 years ago

0.10.4

2 years ago

0.10.1

2 years ago

0.10.2

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.3.0

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago