-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include vendored proto definitions in the proto_descriptor file (#4425)
## Describe your changes This changes the proto build process to include cosmos/ibc-go proto files in the vendored proto file list used to generate the proto_descriptor file. As-implemented, there are some duplicate paths that appear both as dependencies of the penumbra protos and in ibc-go. The ibc-go protos will be included first so the penumbra protos take priority. This shouldn't be an issue in the way we currently use the protos but this seems important to document for future reference. ## Issue ticket number and link Closes #4422 ## Checklist before requesting a review - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > Just changes gRPC reflection returns
- Loading branch information
Showing
60 changed files
with
8,416 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/// PageRequest is to be embedded in gRPC request messages for efficient | ||
/// pagination. Ex: | ||
/// | ||
/// message SomeRequest { | ||
/// Foo some_parameter = 1; | ||
/// PageRequest pagination = 2; | ||
/// } | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct PageRequest { | ||
/// key is a value returned in PageResponse.next_key to begin | ||
/// querying the next page most efficiently. Only one of offset or key | ||
/// should be set. | ||
#[prost(bytes = "vec", tag = "1")] | ||
pub key: ::prost::alloc::vec::Vec<u8>, | ||
/// offset is a numeric offset that can be used when key is unavailable. | ||
/// It is less efficient than using key. Only one of offset or key should | ||
/// be set. | ||
#[prost(uint64, tag = "2")] | ||
pub offset: u64, | ||
/// limit is the total number of results to be returned in the result page. | ||
/// If left empty it will default to a value to be set by each app. | ||
#[prost(uint64, tag = "3")] | ||
pub limit: u64, | ||
/// count_total is set to true to indicate that the result set should include | ||
/// a count of the total number of items available for pagination in UIs. | ||
/// count_total is only respected when offset is used. It is ignored when key | ||
/// is set. | ||
#[prost(bool, tag = "4")] | ||
pub count_total: bool, | ||
} | ||
impl ::prost::Name for PageRequest { | ||
const NAME: &'static str = "PageRequest"; | ||
const PACKAGE: &'static str = "cosmos.base.query.v1beta1"; | ||
fn full_name() -> ::prost::alloc::string::String { | ||
::prost::alloc::format!("cosmos.base.query.v1beta1.{}", Self::NAME) | ||
} | ||
} | ||
/// PageResponse is to be embedded in gRPC response messages where the | ||
/// corresponding request message has used PageRequest. | ||
/// | ||
/// message SomeResponse { | ||
/// repeated Bar results = 1; | ||
/// PageResponse page = 2; | ||
/// } | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct PageResponse { | ||
/// next_key is the key to be passed to PageRequest.key to | ||
/// query the next page most efficiently | ||
#[prost(bytes = "vec", tag = "1")] | ||
pub next_key: ::prost::alloc::vec::Vec<u8>, | ||
/// total is total number of results available if PageRequest.count_total | ||
/// was set, its value is undefined otherwise | ||
#[prost(uint64, tag = "2")] | ||
pub total: u64, | ||
} | ||
impl ::prost::Name for PageResponse { | ||
const NAME: &'static str = "PageResponse"; | ||
const PACKAGE: &'static str = "cosmos.base.query.v1beta1"; | ||
fn full_name() -> ::prost::alloc::string::String { | ||
::prost::alloc::format!("cosmos.base.query.v1beta1.{}", Self::NAME) | ||
} | ||
} |
Oops, something went wrong.