Skip to content
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

chore: bump testnet release version #230

Merged
merged 3 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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 packages/injective-protobuf/src/proto/mod.rs
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;
2 changes: 1 addition & 1 deletion packages/injective-std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT OR Apache-2.0"
name = "injective-std"
readme = "README.md"
repository = "https://github.com/InjectiveLabs/cw-injective/tree/dev/packages/injective-std"
version = "1.12.10-testnet-rc2.2"
version = "1.13.2-testnet"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
39 changes: 29 additions & 10 deletions packages/injective-std/src/types/cosmos/authz/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub struct QueryGranterGrantsResponse {
#[prost(message, optional, tag = "2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
}
/// QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.
/// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
#[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.authz.v1beta1.QueryGranteeGrantsRequest")]
Expand Down Expand Up @@ -184,14 +184,11 @@ pub struct MsgGrant {
#[prost(message, optional, tag = "3")]
pub grant: ::core::option::Option<Grant>,
}
/// MsgExecResponse defines the Msg/MsgExecResponse response type.
/// MsgGrantResponse defines the Msg/MsgGrant response type.
#[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.authz.v1beta1.MsgExecResponse")]
pub struct MsgExecResponse {
#[prost(bytes = "vec", repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
#[proto_message(type_url = "/cosmos.authz.v1beta1.MsgGrantResponse")]
pub struct MsgGrantResponse {}
/// MsgExec attempts to execute the provided messages using
/// authorizations granted to the grantee. Each message should have only
/// one signer corresponding to the granter of the authorization.
Expand All @@ -207,11 +204,14 @@ pub struct MsgExec {
#[prost(message, repeated, tag = "2")]
pub msgs: ::prost::alloc::vec::Vec<crate::shim::Any>,
}
/// MsgGrantResponse defines the Msg/MsgGrant response type.
/// MsgExecResponse defines the Msg/MsgExecResponse response type.
#[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.authz.v1beta1.MsgGrantResponse")]
pub struct MsgGrantResponse {}
#[proto_message(type_url = "/cosmos.authz.v1beta1.MsgExecResponse")]
pub struct MsgExecResponse {
#[prost(bytes = "vec", repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
/// MsgRevoke revokes any authorization with the provided sdk.Msg type on the
/// granter's account with that has been granted to the grantee.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand All @@ -230,6 +230,25 @@ pub struct MsgRevoke {
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.authz.v1beta1.MsgRevokeResponse")]
pub struct MsgRevokeResponse {}
/// MsgExecCompatResponse defines the Msg/MsgExecCompatResponse response type.
#[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.authz.v1beta1.MsgExecCompatResponse")]
pub struct MsgExecCompatResponse {
#[prost(bytes = "vec", repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
/// MsgExecCompat supports legacy amino codec for frontend metamask signing
/// Functions are same as MsgExec, but input for msgs is array of strings
#[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.authz.v1beta1.MsgExecCompat")]
pub struct MsgExecCompat {
#[prost(string, tag = "1")]
pub grantee: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub msgs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
pub struct AuthzQuerier<'a, Q: cosmwasm_std::CustomQuery> {
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
}
Expand Down
10 changes: 8 additions & 2 deletions packages/injective-std/src/types/cosmos/bank/module/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ use osmosis_std_derive::CosmwasmExt;
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.bank.module.v1.Module")]
pub struct Module {
/// blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds.
/// If left empty it defaults to the list of account names supplied in the auth module configuration as
/// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
/// funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
/// module_account_permissions
#[prost(string, repeated, tag = "1")]
pub blocked_module_accounts_override: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// authority defines the custom module authority. If not set, defaults to the governance module.
#[prost(string, tag = "2")]
pub authority: ::prost::alloc::string::String,
/// restrictions_order specifies the order of send restrictions and should be
/// a list of module names which provide a send restriction instance. If no
/// order is provided, then restrictions will be applied in alphabetical order
/// of module names.
#[prost(string, repeated, tag = "3")]
pub restrictions_order: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
115 changes: 114 additions & 1 deletion packages/injective-std/src/types/cosmos/bank/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,36 @@ pub struct Metadata {
/// Since: cosmos-sdk 0.46
#[prost(string, tag = "8")]
pub uri_hash: ::prost::alloc::string::String,
/// Decimals represent the number of decimals use to represent token amount on chain
///
/// Since: cosmos-sdk 0.50
#[prost(uint32, tag = "9")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub decimals: u32,
}
/// EventSetBalance is an event that tracks the latest bank balance.
#[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.bank.v1beta1.EventSetBalances")]
pub struct EventSetBalances {
#[prost(message, repeated, tag = "1")]
pub balance_updates: ::prost::alloc::vec::Vec<BalanceUpdate>,
}
/// BalanceUpdate contains a given address's latest balance
#[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.bank.v1beta1.BalanceUpdate")]
pub struct BalanceUpdate {
#[prost(bytes = "vec", tag = "1")]
pub addr: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes = "vec", tag = "2")]
pub denom: ::prost::alloc::vec::Vec<u8>,
/// the latest amount
#[prost(string, tag = "3")]
pub amt: ::prost::alloc::string::String,
}
/// GenesisState defines the bank module's genesis state.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -216,6 +246,11 @@ pub struct QueryAllBalancesRequest {
/// pagination defines an optional pagination for the request.
#[prost(message, optional, tag = "2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
/// resolve_denom is the flag to resolve the denom into a human-readable form from the metadata.
///
/// Since: cosmos-sdk 0.50
#[prost(bool, tag = "3")]
pub resolve_denom: bool,
}
/// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
/// method.
Expand Down Expand Up @@ -362,6 +397,7 @@ pub struct QueryParamsRequest {}
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.bank.v1beta1.QueryParamsResponse")]
pub struct QueryParamsResponse {
/// params provides the parameters of the bank module.
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
Expand Down Expand Up @@ -414,6 +450,30 @@ pub struct QueryDenomMetadataResponse {
#[prost(message, optional, tag = "1")]
pub metadata: ::core::option::Option<Metadata>,
}
/// QueryDenomMetadataByQueryStringRequest is the request type for the Query/DenomMetadata RPC method.
/// Identical with QueryDenomMetadataRequest but receives denom as query string.
#[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.bank.v1beta1.QueryDenomMetadataByQueryStringRequest")]
#[proto_query(
path = "/cosmos.bank.v1beta1.Query/DenomMetadataByQueryString",
response_type = QueryDenomMetadataByQueryStringResponse
)]
pub struct QueryDenomMetadataByQueryStringRequest {
/// denom is the coin denom to query the metadata for.
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
}
/// QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC
/// method. Identical with QueryDenomMetadataResponse but receives denom as query string in request.
#[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.bank.v1beta1.QueryDenomMetadataByQueryStringResponse")]
pub struct QueryDenomMetadataByQueryStringResponse {
/// metadata describes and provides all the client information for the requested token.
#[prost(message, optional, tag = "1")]
pub metadata: ::core::option::Option<Metadata>,
}
/// QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query,
/// which queries for a paginated set of all account holders of a particular
/// denomination.
Expand Down Expand Up @@ -461,6 +521,39 @@ pub struct QueryDenomOwnersResponse {
#[prost(message, optional, tag = "2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
}
/// QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query,
/// which queries for a paginated set of all account holders of a particular
/// denomination.
///
/// Since: cosmos-sdk 0.50.3
#[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.bank.v1beta1.QueryDenomOwnersByQueryRequest")]
#[proto_query(
path = "/cosmos.bank.v1beta1.Query/DenomOwnersByQuery",
response_type = QueryDenomOwnersByQueryResponse
)]
pub struct QueryDenomOwnersByQueryRequest {
/// denom defines the coin denomination to query all account holders for.
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
/// pagination defines an optional pagination for the request.
#[prost(message, optional, tag = "2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
}
/// QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query.
///
/// Since: cosmos-sdk 0.50.3
#[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.bank.v1beta1.QueryDenomOwnersByQueryResponse")]
pub struct QueryDenomOwnersByQueryResponse {
#[prost(message, repeated, tag = "1")]
pub denom_owners: ::prost::alloc::vec::Vec<DenomOwner>,
/// pagination defines the pagination in the response.
#[prost(message, optional, tag = "2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
}
/// QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries.
///
/// Since: cosmos-sdk 0.47
Expand Down Expand Up @@ -563,6 +656,7 @@ pub struct MsgUpdateParamsResponse {}
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
#[proto_message(type_url = "/cosmos.bank.v1beta1.MsgSetSendEnabled")]
pub struct MsgSetSendEnabled {
/// authority is the address that controls the module.
#[prost(string, tag = "1")]
pub authority: ::prost::alloc::string::String,
/// send_enabled is the list of entries to add or update.
Expand Down Expand Up @@ -600,8 +694,14 @@ impl<'a, Q: cosmwasm_std::CustomQuery> BankQuerier<'a, Q> {
&self,
address: ::prost::alloc::string::String,
pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
resolve_denom: bool,
) -> Result<QueryAllBalancesResponse, cosmwasm_std::StdError> {
QueryAllBalancesRequest { address, pagination }.query(self.querier)
QueryAllBalancesRequest {
address,
pagination,
resolve_denom,
}
.query(self.querier)
}
pub fn spendable_balances(
&self,
Expand Down Expand Up @@ -632,6 +732,12 @@ impl<'a, Q: cosmwasm_std::CustomQuery> BankQuerier<'a, Q> {
pub fn denom_metadata(&self, denom: ::prost::alloc::string::String) -> Result<QueryDenomMetadataResponse, cosmwasm_std::StdError> {
QueryDenomMetadataRequest { denom }.query(self.querier)
}
pub fn denom_metadata_by_query_string(
&self,
denom: ::prost::alloc::string::String,
) -> Result<QueryDenomMetadataByQueryStringResponse, cosmwasm_std::StdError> {
QueryDenomMetadataByQueryStringRequest { denom }.query(self.querier)
}
pub fn denoms_metadata(
&self,
pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
Expand All @@ -645,6 +751,13 @@ impl<'a, Q: cosmwasm_std::CustomQuery> BankQuerier<'a, Q> {
) -> Result<QueryDenomOwnersResponse, cosmwasm_std::StdError> {
QueryDenomOwnersRequest { denom, pagination }.query(self.querier)
}
pub fn denom_owners_by_query(
&self,
denom: ::prost::alloc::string::String,
pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
) -> Result<QueryDenomOwnersByQueryResponse, cosmwasm_std::StdError> {
QueryDenomOwnersByQueryRequest { denom, pagination }.query(self.querier)
}
pub fn send_enabled(
&self,
denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
Expand Down
44 changes: 44 additions & 0 deletions packages/injective-std/src/types/cosmos/base/node/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,48 @@ pub struct ConfigRequest {}
pub struct ConfigResponse {
#[prost(string, tag = "1")]
pub minimum_gas_price: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub pruning_keep_recent: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub pruning_interval: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub halt_height: u64,
}
/// StateRequest defines the request structure for the status of a node.
#[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.node.v1beta1.StatusRequest")]
pub struct StatusRequest {}
/// StateResponse defines the response structure for the status of a node.
#[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.node.v1beta1.StatusResponse")]
pub struct StatusResponse {
/// earliest block height available in the store
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub earliest_store_height: u64,
/// current block height
#[prost(uint64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub height: u64,
/// block height timestamp
#[prost(message, optional, tag = "3")]
pub timestamp: ::core::option::Option<crate::shim::Timestamp>,
/// app hash of the current block
#[prost(bytes = "vec", tag = "4")]
pub app_hash: ::prost::alloc::vec::Vec<u8>,
/// validator hash provided by the consensus header
#[prost(bytes = "vec", tag = "5")]
pub validator_hash: ::prost::alloc::vec::Vec<u8>,
}
4 changes: 2 additions & 2 deletions packages/injective-std/src/types/cosmos/base/query/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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 = "/cosmos.base.query.v1beta1.PageRequest")]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageRequestPageRequestPageRequest")]
pub struct PageRequest {
/// key is a value returned in PageResponse.next_key to begin
/// querying the next page most efficiently. Only one of offset or key
Expand Down Expand Up @@ -53,7 +53,7 @@ pub struct PageRequest {
/// }
#[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.query.v1beta1.PageResponse")]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageResponsePageResponsePageResponse")]
pub struct PageResponse {
/// next_key is the key to be passed to PageRequest.key to
/// query the next page most efficiently. It will be empty if
Expand Down
2 changes: 2 additions & 0 deletions packages/injective-std/src/types/cosmos/base/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub struct DecCoin {
pub amount: ::prost::alloc::string::String,
}
/// IntProto defines a Protobuf wrapper around an Int object.
/// 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")]
Expand All @@ -34,6 +35,7 @@ pub struct IntProto {
pub int: ::prost::alloc::string::String,
}
/// DecProto defines a Protobuf wrapper around a Dec object.
/// 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")]
Expand Down
Loading
Loading