Skip to content

Commit

Permalink
remove unneeded prost types for request
Browse files Browse the repository at this point in the history
  • Loading branch information
max-dfinity committed Jan 29, 2025
1 parent 93436e7 commit 8083f45
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions rs/nns/governance/api/src/ic_nns_governance.pb.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3484,23 +3484,20 @@ pub struct ListProposalInfoResponse {
/// will be returned in the current page.
#[derive(candid::CandidType, candid::Deserialize, serde::Serialize, comparable::Comparable)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, PartialEq)]
pub struct ListNeurons {
/// The neurons to get information about. The "requested list"
/// contains all of these neuron IDs.
#[prost(fixed64, repeated, packed = "false", tag = "1")]
pub neuron_ids: Vec<u64>,
/// If true, the "requested list" also contains the neuron ID of the
/// neurons that the calling principal is authorized to read.
#[prost(bool, tag = "2")]
pub include_neurons_readable_by_caller: bool,
/// Whether to also include empty neurons readable by the caller. This field only has an effect
/// when `include_neurons_readable_by_caller` is true. If a neuron's id already exists in the
/// `neuron_ids` field, then the neuron will be included in the response regardless of the value of
/// this field. Since the previous behavior was to always include empty neurons readable by caller,
/// if this field is not provided, it defaults to true, in order to maintain backwards
/// compatibility. Here, being "empty" means 0 stake, 0 maturity and 0 staked maturity.
#[prost(bool, optional, tag = "3")]
pub include_empty_neurons_readable_by_caller: Option<bool>,
/// If this is set to true, and a neuron in the "requested list" has its
/// visibility set to public, then, it will (also) be included in the
Expand All @@ -3510,20 +3507,16 @@ pub struct ListNeurons {
/// requested list. In general, you probably want to set this to true, but
/// since this feature was added later, it is opt in to avoid confusing
/// existing (unmigrated) callers.
#[prost(bool, optional, tag = "4")]
pub include_public_neurons_in_full_neurons: Option<bool>,
/// If this is set, we return the batch of neurons at a given page, using the `page_size` to
/// determine how many neurons are returned in each page.
#[prost(uint64, optional, tag = "5")]
pub page_number: Option<u64>,
/// If this is set, we use the page limit provided to determine how large pages will be.
/// This cannot be greater than MAX_LIST_NEURONS_RESULTS, which is set to 500.
/// If not set, this defaults to MAX_LIST_NEURONS_RESULTS.
#[prost(uint64, optional, tag = "6")]
pub page_size: Option<u64>,
/// A list of neurons by subaccounts to return in the response. If the neurons are not
/// found by subaccount, no error is returned, but the page will still be returned.
#[prost(message, repeated, tag = "7")]
pub neuron_subaccounts: Option<Vec<list_neurons::NeuronSubaccount>>,
}

Expand Down

0 comments on commit 8083f45

Please sign in to comment.