Skip to content

Commit

Permalink
f/injective-std-built-from-new-protos
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Jan 15, 2025
1 parent 447344a commit 32a5a21
Show file tree
Hide file tree
Showing 28 changed files with 43 additions and 182 deletions.
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/auth/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/auth/module/v1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/auth/module/v1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// Module is the config object for the auth module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/auth/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/auth/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/auth/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// BaseAccount defines a base account type. It contains all the necessary fields
/// for basic account functionality. Any custom account type should extend this
/// type for additional functionality (e.g. vesting).
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/authz/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/authz/module/v1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/authz/module/v1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// Module is the config object of the authz module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/authz/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/authz/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/authz/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// GenericAuthorization gives the grantee unrestricted permissions to execute
/// the provided method on behalf of the granter's account.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/bank/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/bank/module/v1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/bank/module/v1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// Module is the config object of the bank module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/bank/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/bank/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/bank/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// SendAuthorization allows the grantee to spend up to spend_limit coins from
/// the granter's account.
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;

Check failure on line 1 in packages/injective-std/src/types/cosmos/base/node/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`

Check failure on line 1 in packages/injective-std/src/types/cosmos/base/node/v1beta1.rs

View workflow job for this annotation

GitHub Actions / Lints

unresolved import `osmosis_std_derive`
/// ConfigRequest defines the request structure for the Config gRPC query.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// PageRequest is to be embedded in gRPC request messages for efficient
/// pagination. Ex:
///
Expand Down
10 changes: 5 additions & 5 deletions packages/injective-std/src/types/cosmos/base/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// Coin defines a token with a denomination and an amount.
///
/// NOTE: The amount field is an Int which implements the custom method
/// 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.Coin")]
#[proto_message(type_url = "/cosmos.base.v1beta1.CoinCoinCoin")]
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.DecCoin")]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoinDecCoinDecCoin")]
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.IntProto")]
#[proto_message(type_url = "/cosmos.base.v1beta1.IntProtoIntProtoIntProto")]
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.DecProto")]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecProtoDecProtoDecProto")]
pub struct DecProto {
#[prost(string, tag = "1")]
pub dec: ::prost::alloc::string::String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the distribution module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// Params defines the set of params for the distribution module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the feegrant module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// BasicAllowance implements Allowance with a one-time grant of coins
/// that optionally expires. The grantee can use up to SpendLimit to cover fees.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/gov/module/v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the gov module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/gov/v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// WeightedVoteOption defines a unit of vote for vote split.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/gov/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// WeightedVoteOption defines a unit of vote for vote split.
///
/// Since: cosmos-sdk 0.43
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// Module is the config object of the params module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/params/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// ParameterChangeProposal defines a proposal to change one or more parameters.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmos/staking/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// NOTE: The following type is not implemented due to current limitations of code generator
/// which currently has issue with tendermint_proto.
/// This will be fixed in the upcoming release.
Expand Down
2 changes: 1 addition & 1 deletion packages/injective-std/src/types/cosmwasm/wasm/v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
/// AccessTypeParam
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand Down
21 changes: 10 additions & 11 deletions packages/injective-std/src/types/injective/auction/v1beta1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use injective_std_derive::CosmwasmExt;
use osmosis_std_derive::CosmwasmExt;
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/injective.auction.v1beta1.Params")]
Expand All @@ -13,8 +13,7 @@ pub struct Params {
/// min_next_bid_increment_rate defines the minimum increment rate for new bids
#[prost(string, tag = "2")]
pub min_next_bid_increment_rate: ::prost::alloc::string::String,
/// inj_basket_max_cap defines the maximum cap for INJ contained in an auction
/// basket
/// inj_basket_max_cap defines the maximum cap for INJ contained in an auction basket
#[prost(string, tag = "3")]
pub inj_basket_max_cap: ::prost::alloc::string::String,
}
Expand All @@ -24,8 +23,8 @@ pub struct Params {
pub struct Bid {
#[prost(string, tag = "1")]
pub bidder: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand All @@ -35,8 +34,8 @@ pub struct LastAuctionResult {
#[prost(string, tag = "1")]
pub winner: ::prost::alloc::string::String,
/// amount describes the amount the winner get from the auction
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
/// round defines the round number of auction
#[prost(uint64, tag = "3")]
#[serde(
Expand All @@ -53,8 +52,8 @@ pub struct EventBid {
#[prost(string, tag = "1")]
pub bidder: ::prost::alloc::string::String,
/// amount describes the amount the bidder put on the auction
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
/// round defines the round number of auction
#[prost(uint64, tag = "3")]
#[serde(
Expand All @@ -71,8 +70,8 @@ pub struct EventAuctionResult {
#[prost(string, tag = "1")]
pub winner: ::prost::alloc::string::String,
/// amount describes the amount the winner get from the auction
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
/// round defines the round number of auction
#[prost(uint64, tag = "3")]
#[serde(
Expand Down
Loading

0 comments on commit 32a5a21

Please sign in to comment.