diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index 5469c48c..7dadcb16 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -v4.1.0 \ No newline at end of file +3a7ba9b80551996fa90ab121b5dafe2c37978127 \ 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..0c14f815 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 = QueryFailuresResponse +)] +pub struct QueryFailureRequest { /// address of the contract which Sudo call failed. #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, @@ -228,7 +252,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ContractmanagerQuerier<'a, Q> { failure_id: u64, pagination: ::core::option::Option, ) -> Result { - QueryFailuresRequest { + QueryFailureRequest { address, failure_id, pagination, @@ -238,12 +262,10 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ContractmanagerQuerier<'a, Q> { 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 +273,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 52f00d8c..b9329c25 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 = "v4.1.0"; +const NEUTRON_REV: &str = "3a7ba9b80551996fa90ab121b5dafe2c37978127"; /// The wasmd commit or tag to be cloned and used to build the proto files const WASMD_REV: &str = "v0.51.0";