#module #cosmos-sdk #injective #standard #cosmwasm #auction #proto

injective-std

Standard library for Injective with CosmWasm support included

18 releases (2 stable)

new 1.13.2 Dec 2, 2024
1.13.2-testnet Jul 26, 2024
1.13.2-auction Oct 9, 2024
1.12.11-testnet-rc1 May 10, 2024
0.1.3 Jun 13, 2023

#2 in #cosmos-sdk

Download history 232/week @ 2024-08-12 237/week @ 2024-08-19 312/week @ 2024-08-26 334/week @ 2024-09-02 233/week @ 2024-09-09 180/week @ 2024-09-16 222/week @ 2024-09-23 120/week @ 2024-09-30 270/week @ 2024-10-07 177/week @ 2024-10-14 174/week @ 2024-10-21 167/week @ 2024-10-28 186/week @ 2024-11-04 72/week @ 2024-11-11 207/week @ 2024-11-18 105/week @ 2024-11-25

572 downloads per month
Used in 3 crates

MIT/Apache

1MB
16K SLoC

injective-std

BETA VERSION:

The bindings are currently tracking an unofficial release of Injective.

Injective's proto-generated types and helpers built using Buf. Enables interaction with both custom and standard modules.

Supported Version

  • Injective-Core@74af4ec3eceea1e7a59e2ae57fe848ae02d2f34f

Build Instructions

Pre-requisites:

Buf 1.17.0

In order to generate an individual proto file run:

buf generate [/path/to/injective-core] --template [/path/to/buf.gen.yaml] --output [output-path] --path [/path/to/module/proto]

Follow by:

buf build [/path/to/injective-core] --as-file-descriptor-set -o [/tmp/path/injective/descriptor_injective.bin] --path [/path/to/module/proto]

Example buf.gen.yaml file:

plugins:
  - plugin: buf.build/community/neoeinstein-prost
    out: .
    opt:
      - extern_path=.google.protobuf.Timestamp=crate::shim::Timestamp
      - extern_path=.google.protobuf.Duration=crate::shim::Duration
      - extern_path=.google.protobuf.Any=crate::shim::Any

Examples

Lets try to create the bindings for

First create a directory with the dependencies as below:

├── README.md
└── dependencies
    ├── cosmos-sdk
    ├── injective-core
    └── wasmd

Next generate the proto:

buf generate /Users/wandlitz/go/src/github.com/osmosis-labs/osmosis-rust/packages/proto-build-injective/../../dependencies/injective-core/proto --template /Users/wandlitz/go/src/github.com/osmosis-labs/osmosis-rust/packages/proto-build-injective/buf.gen.yaml --output ./tmp/tmp-protobuf/injective --path /Users/wandlitz/go/src/github.com/osmosis-labs/osmosis-rust/packages/proto-build-injective/../../dependencies/injective-core/proto/injective/auction
buf build /Users/wandlitz/go/src/github.com/osmosis-labs/osmosis-rust/packages/proto-build-injective/../../dependencies/injective-core/proto  --path /Users/wandlitz/go/src/github.com/osmosis-labs/osmosis-rust/packages/proto-build-injective/../../dependencies/injective-core/proto/injective/auction

Dependencies

~5.5–9MB
~175K SLoC