Skip to content

Commit

Permalink
feat: fixed some duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Jan 14, 2025
1 parent 2fec10e commit 7cd02e2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
35 changes: 22 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ injective-testing = { version = "1.1.0", path = "./packages/injective-testing
itertools = { version = "0.10.3" }
primitive-types = { version = "0.12.2", default-features = false }
proc-macro2 = { version = "1.0.40" }
prost = { version = "0.12.6" }
prost-types = { version = "0.12.6", default-features = false }
prost = { version = "0.13.4", features = [ "prost-derive" ] }
prost-types = { version = "0.13.4", default-features = false }
quote = { version = "1.0.20" }
rand = { version = "0.4.6" }
schemars = { version = "0.8.16" }
Expand Down
8 changes: 4 additions & 4 deletions packages/injective-std/src/types/cosmos/base/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use injective_std_derive::CosmwasmExt;
/// signatures required by gogoproto.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.v1beta1.CoinCoinCoin")]
#[proto_message(type_url = "/cosmos.base.v1beta1.Coin")]
pub struct Coin {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
Expand All @@ -18,7 +18,7 @@ pub struct Coin {
/// signatures required by gogoproto.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoinDecCoinDecCoin")]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoin")]
pub struct DecCoin {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
Expand All @@ -29,7 +29,7 @@ pub struct DecCoin {
/// Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.v1beta1.IntProtoIntProtoIntProto")]
#[proto_message(type_url = "/cosmos.base.v1beta1.IntProto")]
pub struct IntProto {
#[prost(string, tag = "1")]
pub int: ::prost::alloc::string::String,
Expand All @@ -38,7 +38,7 @@ pub struct IntProto {
/// Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecProtoDecProtoDecProto")]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecProto")]
pub struct DecProto {
#[prost(string, tag = "1")]
pub dec: ::prost::alloc::string::String,
Expand Down

0 comments on commit 7cd02e2

Please sign in to comment.