diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index f045e753..7187e63e 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -93ca90d30a0c4f75af0d30f52cd9abdf8018a715 \ No newline at end of file +1bf83371924e7f3f5a756c8a9ea35e2d607a984e \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/neutron/contractmanager/mod.rs b/packages/neutron-sdk/src/proto_types/neutron/contractmanager/mod.rs index f882ee5e..19185a55 100644 --- a/packages/neutron-sdk/src/proto_types/neutron/contractmanager/mod.rs +++ b/packages/neutron-sdk/src/proto_types/neutron/contractmanager/mod.rs @@ -132,10 +132,34 @@ pub struct QueryParamsResponse { )] #[proto_message(type_url = "/neutron.contractmanager.QueryFailuresRequest")] #[proto_query( - path = "/neutron.contractmanager.Query/AddressFailure", + path = "/neutron.contractmanager.Query/AddressFailures", response_type = QueryFailuresResponse )] pub struct QueryFailuresRequest { + /// address of the contract which Sudo call failed. + #[prost(string, tag = "1")] + pub address: ::prost::alloc::string::String, + #[prost(message, optional, tag = "3")] + pub pagination: ::core::option::Option, +} +/// QueryFailureRequest is request type for the Query/Failures 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 = "/neutron.contractmanager.QueryFailureRequest")] +#[proto_query( + path = "/neutron.contractmanager.Query/AddressFailure", + response_type = QueryFailureResponse +)] +pub struct QueryFailureRequest { /// address of the contract which Sudo call failed. #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, @@ -147,8 +171,23 @@ pub struct QueryFailuresRequest { deserialize_with = "crate::serde::as_str::deserialize" )] pub failure_id: u64, - #[prost(message, optional, tag = "3")] - pub pagination: ::core::option::Option, +} +/// QueryFailureResponse is response type for the Query/Failure 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 = "/neutron.contractmanager.QueryFailureResponse")] +pub struct QueryFailureResponse { + #[prost(message, optional, tag = "1")] + pub failure: ::core::option::Option, } /// QueryFailuresResponse is response type for the Query/Failures RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -226,24 +265,20 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ContractmanagerQuerier<'a, Q> { &self, address: ::prost::alloc::string::String, failure_id: u64, - pagination: ::core::option::Option, - ) -> Result { - QueryFailuresRequest { + ) -> Result { + QueryFailureRequest { address, failure_id, - pagination, } .query(self.querier) } pub fn address_failures( &self, address: ::prost::alloc::string::String, - failure_id: u64, pagination: ::core::option::Option, ) -> Result { QueryFailuresRequest { address, - failure_id, pagination, } .query(self.querier) @@ -251,12 +286,10 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ContractmanagerQuerier<'a, Q> { pub fn failures( &self, address: ::prost::alloc::string::String, - failure_id: u64, pagination: ::core::option::Option, ) -> Result { QueryFailuresRequest { address, - failure_id, pagination, } .query(self.querier) diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index b1d9325a..e88509ba 100644 --- a/proto-build/src/main.rs +++ b/proto-build/src/main.rs @@ -23,7 +23,7 @@ const SLINKY_REPO: &str = "https://github.com/skip-mev/slinky.git"; const COSMOS_SDK_REV: &str = "v0.50.8-neutron"; /// The Neutron commit or tag to be cloned and used to build the proto files -const NEUTRON_REV: &str = "93ca90d30a0c4f75af0d30f52cd9abdf8018a715"; +const NEUTRON_REV: &str = "1bf83371924e7f3f5a756c8a9ea35e2d607a984e"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0";