Skip to content

Commit

Permalink
regen proto
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Aug 8, 2024
1 parent 4a43e06 commit c39e7fe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.1.0
3a7ba9b80551996fa90ab121b5dafe2c37978127
Original file line number Diff line number Diff line change
Expand Up @@ -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<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
/// 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,
Expand Down Expand Up @@ -228,7 +252,7 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ContractmanagerQuerier<'a, Q> {
failure_id: u64,
pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
) -> Result<QueryFailuresResponse, cosmwasm_std::StdError> {
QueryFailuresRequest {
QueryFailureRequest {
address,
failure_id,
pagination,
Expand All @@ -238,25 +262,21 @@ 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<super::super::cosmos::base::query::v1beta1::PageRequest>,
) -> Result<QueryFailuresResponse, cosmwasm_std::StdError> {
QueryFailuresRequest {
address,
failure_id,
pagination,
}
.query(self.querier)
}
pub fn failures(
&self,
address: ::prost::alloc::string::String,
failure_id: u64,
pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
) -> Result<QueryFailuresResponse, cosmwasm_std::StdError> {
QueryFailuresRequest {
address,
failure_id,
pagination,
}
.query(self.querier)
Expand Down
2 changes: 1 addition & 1 deletion proto-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit c39e7fe

Please sign in to comment.