Skip to content

Commit

Permalink
regen proto
Browse files Browse the repository at this point in the history
  • Loading branch information
joldie777 committed Sep 5, 2024
1 parent 57e76c6 commit 6e42428
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 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 @@
93ca90d30a0c4f75af0d30f52cd9abdf8018a715
1bf83371924e7f3f5a756c8a9ea35e2d607a984e
55 changes: 44 additions & 11 deletions packages/neutron-sdk/src/proto_types/neutron/contractmanager/mod.rs
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 = QueryFailureResponse
)]
pub struct QueryFailureRequest {
/// address of the contract which Sudo call failed.
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
Expand All @@ -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<super::super::cosmos::base::query::v1beta1::PageRequest>,
}
/// 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<Failure>,
}
/// QueryFailuresResponse is response type for the Query/Failures RPC method.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -226,37 +265,31 @@ impl<'a, Q: cosmwasm_std::CustomQuery> ContractmanagerQuerier<'a, Q> {
&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 {
) -> Result<QueryFailureResponse, cosmwasm_std::StdError> {
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<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 = "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";
Expand Down

0 comments on commit 6e42428

Please sign in to comment.