diff --git a/packages/neutron-std/src/types/NEUTRON_COMMIT b/packages/neutron-std/src/types/NEUTRON_COMMIT index 88d050b..8eb3891 100644 --- a/packages/neutron-std/src/types/NEUTRON_COMMIT +++ b/packages/neutron-std/src/types/NEUTRON_COMMIT @@ -1 +1 @@ -main \ No newline at end of file +v5.0.0 \ No newline at end of file diff --git a/packages/neutron-std/src/types/neutron/contractmanager/mod.rs b/packages/neutron-std/src/types/neutron/contractmanager/mod.rs index 19185a5..e27e251 100644 --- a/packages/neutron-std/src/types/neutron/contractmanager/mod.rs +++ b/packages/neutron-std/src/types/neutron/contractmanager/mod.rs @@ -251,6 +251,45 @@ pub struct MsgUpdateParams { )] #[proto_message(type_url = "/neutron.contractmanager.MsgUpdateParamsResponse")] pub struct MsgUpdateParamsResponse {} +/// MsgResubmitFailure - contract that has failed acknowledgement can resubmit its failure +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive( + Clone, + PartialEq, + Eq, + ::prost::Message, + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt, +)] +#[proto_message(type_url = "/neutron.contractmanager.MsgResubmitFailure")] +pub struct MsgResubmitFailure { + /// sender is the contract which failure to acknowledge is resubmitted. + #[prost(string, tag = "1")] + pub sender: ::prost::alloc::string::String, + /// failure_id is id of failure to resubmit + #[prost(uint64, tag = "2")] + #[serde(alias = "failureID")] + #[serde( + serialize_with = "crate::serde::as_str::serialize", + deserialize_with = "crate::serde::as_str::deserialize" + )] + pub failure_id: u64, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive( + Clone, + PartialEq, + Eq, + ::prost::Message, + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt, +)] +#[proto_message(type_url = "/neutron.contractmanager.MsgResubmitFailureResponse")] +pub struct MsgResubmitFailureResponse {} pub struct ContractmanagerQuerier<'a, Q: cosmwasm_std::CustomQuery> { querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>, } diff --git a/packages/neutron-std/src/types/osmosis/tokenfactory/v1beta1.rs b/packages/neutron-std/src/types/osmosis/tokenfactory/v1beta1.rs index a440483..1938859 100644 --- a/packages/neutron-std/src/types/osmosis/tokenfactory/v1beta1.rs +++ b/packages/neutron-std/src/types/osmosis/tokenfactory/v1beta1.rs @@ -215,6 +215,8 @@ pub struct QueryDenomsFromCreatorResponse { #[prost(string, repeated, tag = "1")] pub denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +/// QueryBeforeSendHookAddressRequest defines the request structure for the +/// BeforeSendHookAddress gRPC query. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -238,7 +240,7 @@ pub struct QueryBeforeSendHookAddressRequest { pub subdenom: ::prost::alloc::string::String, } /// QueryBeforeSendHookAddressResponse defines the response structure for the -/// DenomBeforeSendHook gRPC query. +/// BeforeSendHookAddress gRPC query. #[allow(clippy::derive_partial_eq_without_eq)] #[derive( Clone, @@ -255,6 +257,48 @@ pub struct QueryBeforeSendHookAddressResponse { #[prost(string, tag = "1")] pub contract_addr: ::prost::alloc::string::String, } +/// QueryFullDenomRequest defines the request structure for the +/// FullDenom gRPC query. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive( + Clone, + PartialEq, + Eq, + ::prost::Message, + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt, +)] +#[proto_message(type_url = "/osmosis.tokenfactory.v1beta1.QueryFullDenomRequest")] +#[proto_query( + path = "/osmosis.tokenfactory.v1beta1.Query/FullDenom", + response_type = QueryFullDenomResponse +)] +pub struct QueryFullDenomRequest { + #[prost(string, tag = "1")] + pub creator: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub subdenom: ::prost::alloc::string::String, +} +/// QueryFullDenomResponse defines the response structure for the +/// FullDenom gRPC query. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive( + Clone, + PartialEq, + Eq, + ::prost::Message, + ::serde::Serialize, + ::serde::Deserialize, + ::schemars::JsonSchema, + CosmwasmExt, +)] +#[proto_message(type_url = "/osmosis.tokenfactory.v1beta1.QueryFullDenomResponse")] +pub struct QueryFullDenomResponse { + #[prost(string, tag = "1")] + pub full_denom: ::prost::alloc::string::String, +} /// MsgCreateDenom defines the message structure for the CreateDenom gRPC service /// method. It allows an account to create a new denom. It requires a sender /// address and a sub denomination. The (sender_address, sub_denomination) tuple @@ -587,4 +631,11 @@ impl<'a, Q: cosmwasm_std::CustomQuery> TokenfactoryQuerier<'a, Q> { ) -> Result { QueryBeforeSendHookAddressRequest { creator, subdenom }.query(self.querier) } + pub fn full_denom( + &self, + creator: ::prost::alloc::string::String, + subdenom: ::prost::alloc::string::String, + ) -> Result { + QueryFullDenomRequest { creator, subdenom }.query(self.querier) + } } diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index ec805c4..99db0eb 100644 --- a/proto-build/src/main.rs +++ b/proto-build/src/main.rs @@ -24,7 +24,7 @@ const ADMIN_MODULE_REPO: &str = "https://github.com/neutron-org/admin-module.git const COSMOS_SDK_REV: &str = "v0.50.9-neutron"; /// The Neutron commit or tag to be cloned and used to build the proto files -const NEUTRON_REV: &str = "main"; +const NEUTRON_REV: &str = "v5.0.0"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.53.0-neutron";