@hyperlane-xyz/cosmos-types
TypeScript icon, indicating that this package has built-in type declarations

11.0.0 • Public • Published

Hyperlane Cosmos Module SDK Types

The Hyperlane Cosmos SDK Types contains autogenerated TypeScript types and proto encoders/decoders for the Cosmos Hyperlane Module Implementation. It can be used inside an SDK for type support and for encoding and decoding the Hyperlane specific Cosmos transactions as well as other projects which might benefit from the Hyperlane Cosmos types.

Install

# Install with NPM
npm install @hyperlane-xyz/cosmos-types

# Or with Yarn
yarn add @hyperlane-xyz/cosmos-types

Setup

Before contributing make sure docker is installed and running which is needed for the type generation. Furthermore Node 18 or newer is required.

Contribute

First you need to install the dependencies by running yarn install.

Generating TS Types

You can automatically generate the TypeScript types from the proto files of the Cosmos Hyperlane Module by executing the following commands. Note that this only needs to be done if the proto files change in the Cosmos Hyperlane Module project.

cd typescript/cosmos-types
docker compose up

After this command has finished the newly generated types can be found under src/types.

Building the project

You can build the project with yarn build, the build output can be found under dist.

Package Sidebar

Install

npm i @hyperlane-xyz/cosmos-types

Weekly Downloads

25

Version

11.0.0

License

Apache-2.0

Unpacked Size

11.4 MB

Total Files

130

Last publish

Collaborators

  • nambrot
  • yorhodes
  • cmcewen