-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated to use injective-core v1.12.1 and the matching cosmos-sdk #218
Changes from all commits
c3cdb37
a880aec
35d3cdd
8957ee2
46df112
4d80824
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// @generated | ||
|
||
pub mod account; | ||
pub mod auth; | ||
pub mod coin; | ||
pub mod distribution; | ||
pub mod exchange; | ||
pub mod tx; | ||
pub mod oracle; | ||
pub mod account; | ||
pub mod tx; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# injective-std | ||
|
||
**BETA VERSION:** | ||
**BETA VERSION:** | ||
|
||
The bindings are currently tracking an unofficial release of Injective. | ||
|
||
Injective's proto-generated types and helpers built using [Buf](https://github.com/bufbuild/buf). Enables interaction with both custom and standard modules. | ||
|
||
## Supported Version | ||
|
||
* Injective-Core@e38d508c746a9b90d6e8a261ec2b03f99cc49351 | ||
- Injective-Core@e38d508c746a9b90d6e8a261ec2b03f99cc49351 | ||
|
||
## Build Instructions | ||
|
||
|
@@ -22,6 +22,12 @@ 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: | ||
|
||
```shell | ||
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: | ||
|
||
```yaml | ||
|
@@ -32,4 +38,28 @@ plugins: | |
- 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: | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify the language for the fenced code block to improve readability. - ```
+ ```plaintext |
||
``` | ||
├── README.md | ||
└── dependencies | ||
├── cosmos-sdk | ||
├── injective-core | ||
└── wasmd | ||
``` | ||
|
||
Next generate the proto: | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify the language for the fenced code block to improve readability. - ```
+ ```shell |
||
``` | ||
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 | ||
``` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify the language for the fenced code block to improve readability. - ```
+ ```shell |
||
``` | ||
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 | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod wasm; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod v1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct grammatical error for clarity.
Committable suggestion