1#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct WeightedVoteOption {
6 #[prost(enumeration = "VoteOption", tag = "1")]
8 pub option: i32,
9 #[prost(string, tag = "2")]
11 pub weight: ::prost::alloc::string::String,
12}
13impl ::prost::Name for WeightedVoteOption {
14 const NAME: &'static str = "WeightedVoteOption";
15 const PACKAGE: &'static str = "cosmos.gov.v1";
16 fn full_name() -> ::prost::alloc::string::String {
17 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
18 }
19}
20#[allow(clippy::derive_partial_eq_without_eq)]
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct Deposit {
25 #[prost(uint64, tag = "1")]
27 pub proposal_id: u64,
28 #[prost(string, tag = "2")]
30 pub depositor: ::prost::alloc::string::String,
31 #[prost(message, repeated, tag = "3")]
33 pub amount: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
34}
35impl ::prost::Name for Deposit {
36 const NAME: &'static str = "Deposit";
37 const PACKAGE: &'static str = "cosmos.gov.v1";
38 fn full_name() -> ::prost::alloc::string::String {
39 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
40 }
41}
42#[allow(clippy::derive_partial_eq_without_eq)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct Proposal {
46 #[prost(uint64, tag = "1")]
48 pub id: u64,
49 #[prost(message, repeated, tag = "2")]
51 pub messages: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
52 #[prost(enumeration = "ProposalStatus", tag = "3")]
54 pub status: i32,
55 #[prost(message, optional, tag = "4")]
59 pub final_tally_result: ::core::option::Option<TallyResult>,
60 #[prost(message, optional, tag = "5")]
62 pub submit_time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
63 #[prost(message, optional, tag = "6")]
65 pub deposit_end_time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
66 #[prost(message, repeated, tag = "7")]
68 pub total_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
69 #[prost(message, optional, tag = "8")]
71 pub voting_start_time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
72 #[prost(message, optional, tag = "9")]
74 pub voting_end_time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
75 #[prost(string, tag = "10")]
79 pub metadata: ::prost::alloc::string::String,
80 #[prost(string, tag = "11")]
84 pub title: ::prost::alloc::string::String,
85 #[prost(string, tag = "12")]
89 pub summary: ::prost::alloc::string::String,
90 #[prost(string, tag = "13")]
94 pub proposer: ::prost::alloc::string::String,
95 #[prost(bool, tag = "14")]
99 pub expedited: bool,
100 #[prost(string, tag = "15")]
104 pub failed_reason: ::prost::alloc::string::String,
105}
106impl ::prost::Name for Proposal {
107 const NAME: &'static str = "Proposal";
108 const PACKAGE: &'static str = "cosmos.gov.v1";
109 fn full_name() -> ::prost::alloc::string::String {
110 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
111 }
112}
113#[allow(clippy::derive_partial_eq_without_eq)]
115#[derive(Clone, PartialEq, ::prost::Message)]
116pub struct TallyResult {
117 #[prost(string, tag = "1")]
119 pub yes_count: ::prost::alloc::string::String,
120 #[prost(string, tag = "2")]
122 pub abstain_count: ::prost::alloc::string::String,
123 #[prost(string, tag = "3")]
125 pub no_count: ::prost::alloc::string::String,
126 #[prost(string, tag = "4")]
128 pub no_with_veto_count: ::prost::alloc::string::String,
129}
130impl ::prost::Name for TallyResult {
131 const NAME: &'static str = "TallyResult";
132 const PACKAGE: &'static str = "cosmos.gov.v1";
133 fn full_name() -> ::prost::alloc::string::String {
134 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
135 }
136}
137#[allow(clippy::derive_partial_eq_without_eq)]
140#[derive(Clone, PartialEq, ::prost::Message)]
141pub struct Vote {
142 #[prost(uint64, tag = "1")]
144 pub proposal_id: u64,
145 #[prost(string, tag = "2")]
147 pub voter: ::prost::alloc::string::String,
148 #[prost(message, repeated, tag = "4")]
150 pub options: ::prost::alloc::vec::Vec<WeightedVoteOption>,
151 #[prost(string, tag = "5")]
154 pub metadata: ::prost::alloc::string::String,
155}
156impl ::prost::Name for Vote {
157 const NAME: &'static str = "Vote";
158 const PACKAGE: &'static str = "cosmos.gov.v1";
159 fn full_name() -> ::prost::alloc::string::String {
160 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
161 }
162}
163#[allow(clippy::derive_partial_eq_without_eq)]
165#[derive(Clone, PartialEq, ::prost::Message)]
166pub struct DepositParams {
167 #[prost(message, repeated, tag = "1")]
169 pub min_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
170 #[prost(message, optional, tag = "2")]
173 pub max_deposit_period: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
174}
175impl ::prost::Name for DepositParams {
176 const NAME: &'static str = "DepositParams";
177 const PACKAGE: &'static str = "cosmos.gov.v1";
178 fn full_name() -> ::prost::alloc::string::String {
179 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
180 }
181}
182#[allow(clippy::derive_partial_eq_without_eq)]
184#[derive(Clone, PartialEq, ::prost::Message)]
185pub struct VotingParams {
186 #[prost(message, optional, tag = "1")]
188 pub voting_period: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
189}
190impl ::prost::Name for VotingParams {
191 const NAME: &'static str = "VotingParams";
192 const PACKAGE: &'static str = "cosmos.gov.v1";
193 fn full_name() -> ::prost::alloc::string::String {
194 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
195 }
196}
197#[allow(clippy::derive_partial_eq_without_eq)]
199#[derive(Clone, PartialEq, ::prost::Message)]
200pub struct TallyParams {
201 #[prost(string, tag = "1")]
204 pub quorum: ::prost::alloc::string::String,
205 #[prost(string, tag = "2")]
207 pub threshold: ::prost::alloc::string::String,
208 #[prost(string, tag = "3")]
211 pub veto_threshold: ::prost::alloc::string::String,
212}
213impl ::prost::Name for TallyParams {
214 const NAME: &'static str = "TallyParams";
215 const PACKAGE: &'static str = "cosmos.gov.v1";
216 fn full_name() -> ::prost::alloc::string::String {
217 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
218 }
219}
220#[allow(clippy::derive_partial_eq_without_eq)]
224#[derive(Clone, PartialEq, ::prost::Message)]
225pub struct Params {
226 #[prost(message, repeated, tag = "1")]
228 pub min_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
229 #[prost(message, optional, tag = "2")]
232 pub max_deposit_period: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
233 #[prost(message, optional, tag = "3")]
235 pub voting_period: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
236 #[prost(string, tag = "4")]
239 pub quorum: ::prost::alloc::string::String,
240 #[prost(string, tag = "5")]
242 pub threshold: ::prost::alloc::string::String,
243 #[prost(string, tag = "6")]
246 pub veto_threshold: ::prost::alloc::string::String,
247 #[prost(string, tag = "7")]
249 pub min_initial_deposit_ratio: ::prost::alloc::string::String,
250 #[prost(string, tag = "8")]
254 pub proposal_cancel_ratio: ::prost::alloc::string::String,
255 #[prost(string, tag = "9")]
260 pub proposal_cancel_dest: ::prost::alloc::string::String,
261 #[prost(message, optional, tag = "10")]
265 pub expedited_voting_period:
266 ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
267 #[prost(string, tag = "11")]
271 pub expedited_threshold: ::prost::alloc::string::String,
272 #[prost(message, repeated, tag = "12")]
274 pub expedited_min_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
275 #[prost(bool, tag = "13")]
277 pub burn_vote_quorum: bool,
278 #[prost(bool, tag = "14")]
280 pub burn_proposal_deposit_prevote: bool,
281 #[prost(bool, tag = "15")]
283 pub burn_vote_veto: bool,
284 #[prost(string, tag = "16")]
290 pub min_deposit_ratio: ::prost::alloc::string::String,
291}
292impl ::prost::Name for Params {
293 const NAME: &'static str = "Params";
294 const PACKAGE: &'static str = "cosmos.gov.v1";
295 fn full_name() -> ::prost::alloc::string::String {
296 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
297 }
298}
299#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
301#[repr(i32)]
302pub enum VoteOption {
303 Unspecified = 0,
305 Yes = 1,
307 Abstain = 2,
309 No = 3,
311 NoWithVeto = 4,
313}
314impl VoteOption {
315 pub fn as_str_name(&self) -> &'static str {
320 match self {
321 VoteOption::Unspecified => "VOTE_OPTION_UNSPECIFIED",
322 VoteOption::Yes => "VOTE_OPTION_YES",
323 VoteOption::Abstain => "VOTE_OPTION_ABSTAIN",
324 VoteOption::No => "VOTE_OPTION_NO",
325 VoteOption::NoWithVeto => "VOTE_OPTION_NO_WITH_VETO",
326 }
327 }
328 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
330 match value {
331 "VOTE_OPTION_UNSPECIFIED" => Some(Self::Unspecified),
332 "VOTE_OPTION_YES" => Some(Self::Yes),
333 "VOTE_OPTION_ABSTAIN" => Some(Self::Abstain),
334 "VOTE_OPTION_NO" => Some(Self::No),
335 "VOTE_OPTION_NO_WITH_VETO" => Some(Self::NoWithVeto),
336 _ => None,
337 }
338 }
339}
340#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
342#[repr(i32)]
343pub enum ProposalStatus {
344 Unspecified = 0,
346 DepositPeriod = 1,
349 VotingPeriod = 2,
352 Passed = 3,
355 Rejected = 4,
358 Failed = 5,
361}
362impl ProposalStatus {
363 pub fn as_str_name(&self) -> &'static str {
368 match self {
369 ProposalStatus::Unspecified => "PROPOSAL_STATUS_UNSPECIFIED",
370 ProposalStatus::DepositPeriod => "PROPOSAL_STATUS_DEPOSIT_PERIOD",
371 ProposalStatus::VotingPeriod => "PROPOSAL_STATUS_VOTING_PERIOD",
372 ProposalStatus::Passed => "PROPOSAL_STATUS_PASSED",
373 ProposalStatus::Rejected => "PROPOSAL_STATUS_REJECTED",
374 ProposalStatus::Failed => "PROPOSAL_STATUS_FAILED",
375 }
376 }
377 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
379 match value {
380 "PROPOSAL_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
381 "PROPOSAL_STATUS_DEPOSIT_PERIOD" => Some(Self::DepositPeriod),
382 "PROPOSAL_STATUS_VOTING_PERIOD" => Some(Self::VotingPeriod),
383 "PROPOSAL_STATUS_PASSED" => Some(Self::Passed),
384 "PROPOSAL_STATUS_REJECTED" => Some(Self::Rejected),
385 "PROPOSAL_STATUS_FAILED" => Some(Self::Failed),
386 _ => None,
387 }
388 }
389}
390#[allow(clippy::derive_partial_eq_without_eq)]
392#[derive(Clone, PartialEq, ::prost::Message)]
393pub struct GenesisState {
394 #[prost(uint64, tag = "1")]
396 pub starting_proposal_id: u64,
397 #[prost(message, repeated, tag = "2")]
399 pub deposits: ::prost::alloc::vec::Vec<Deposit>,
400 #[prost(message, repeated, tag = "3")]
402 pub votes: ::prost::alloc::vec::Vec<Vote>,
403 #[prost(message, repeated, tag = "4")]
405 pub proposals: ::prost::alloc::vec::Vec<Proposal>,
406 #[deprecated]
409 #[prost(message, optional, tag = "5")]
410 pub deposit_params: ::core::option::Option<DepositParams>,
411 #[deprecated]
414 #[prost(message, optional, tag = "6")]
415 pub voting_params: ::core::option::Option<VotingParams>,
416 #[deprecated]
419 #[prost(message, optional, tag = "7")]
420 pub tally_params: ::core::option::Option<TallyParams>,
421 #[prost(message, optional, tag = "8")]
425 pub params: ::core::option::Option<Params>,
426 #[prost(string, tag = "9")]
433 pub constitution: ::prost::alloc::string::String,
434}
435impl ::prost::Name for GenesisState {
436 const NAME: &'static str = "GenesisState";
437 const PACKAGE: &'static str = "cosmos.gov.v1";
438 fn full_name() -> ::prost::alloc::string::String {
439 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
440 }
441}
442#[allow(clippy::derive_partial_eq_without_eq)]
444#[derive(Clone, PartialEq, ::prost::Message)]
445pub struct QueryConstitutionRequest {}
446impl ::prost::Name for QueryConstitutionRequest {
447 const NAME: &'static str = "QueryConstitutionRequest";
448 const PACKAGE: &'static str = "cosmos.gov.v1";
449 fn full_name() -> ::prost::alloc::string::String {
450 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
451 }
452}
453#[allow(clippy::derive_partial_eq_without_eq)]
455#[derive(Clone, PartialEq, ::prost::Message)]
456pub struct QueryConstitutionResponse {
457 #[prost(string, tag = "1")]
458 pub constitution: ::prost::alloc::string::String,
459}
460impl ::prost::Name for QueryConstitutionResponse {
461 const NAME: &'static str = "QueryConstitutionResponse";
462 const PACKAGE: &'static str = "cosmos.gov.v1";
463 fn full_name() -> ::prost::alloc::string::String {
464 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
465 }
466}
467#[allow(clippy::derive_partial_eq_without_eq)]
469#[derive(Clone, PartialEq, ::prost::Message)]
470pub struct QueryProposalRequest {
471 #[prost(uint64, tag = "1")]
473 pub proposal_id: u64,
474}
475impl ::prost::Name for QueryProposalRequest {
476 const NAME: &'static str = "QueryProposalRequest";
477 const PACKAGE: &'static str = "cosmos.gov.v1";
478 fn full_name() -> ::prost::alloc::string::String {
479 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
480 }
481}
482#[allow(clippy::derive_partial_eq_without_eq)]
484#[derive(Clone, PartialEq, ::prost::Message)]
485pub struct QueryProposalResponse {
486 #[prost(message, optional, tag = "1")]
488 pub proposal: ::core::option::Option<Proposal>,
489}
490impl ::prost::Name for QueryProposalResponse {
491 const NAME: &'static str = "QueryProposalResponse";
492 const PACKAGE: &'static str = "cosmos.gov.v1";
493 fn full_name() -> ::prost::alloc::string::String {
494 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
495 }
496}
497#[allow(clippy::derive_partial_eq_without_eq)]
499#[derive(Clone, PartialEq, ::prost::Message)]
500pub struct QueryProposalsRequest {
501 #[prost(enumeration = "ProposalStatus", tag = "1")]
503 pub proposal_status: i32,
504 #[prost(string, tag = "2")]
506 pub voter: ::prost::alloc::string::String,
507 #[prost(string, tag = "3")]
509 pub depositor: ::prost::alloc::string::String,
510 #[prost(message, optional, tag = "4")]
512 pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
513}
514impl ::prost::Name for QueryProposalsRequest {
515 const NAME: &'static str = "QueryProposalsRequest";
516 const PACKAGE: &'static str = "cosmos.gov.v1";
517 fn full_name() -> ::prost::alloc::string::String {
518 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
519 }
520}
521#[allow(clippy::derive_partial_eq_without_eq)]
524#[derive(Clone, PartialEq, ::prost::Message)]
525pub struct QueryProposalsResponse {
526 #[prost(message, repeated, tag = "1")]
528 pub proposals: ::prost::alloc::vec::Vec<Proposal>,
529 #[prost(message, optional, tag = "2")]
531 pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
532}
533impl ::prost::Name for QueryProposalsResponse {
534 const NAME: &'static str = "QueryProposalsResponse";
535 const PACKAGE: &'static str = "cosmos.gov.v1";
536 fn full_name() -> ::prost::alloc::string::String {
537 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
538 }
539}
540#[allow(clippy::derive_partial_eq_without_eq)]
542#[derive(Clone, PartialEq, ::prost::Message)]
543pub struct QueryVoteRequest {
544 #[prost(uint64, tag = "1")]
546 pub proposal_id: u64,
547 #[prost(string, tag = "2")]
549 pub voter: ::prost::alloc::string::String,
550}
551impl ::prost::Name for QueryVoteRequest {
552 const NAME: &'static str = "QueryVoteRequest";
553 const PACKAGE: &'static str = "cosmos.gov.v1";
554 fn full_name() -> ::prost::alloc::string::String {
555 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
556 }
557}
558#[allow(clippy::derive_partial_eq_without_eq)]
560#[derive(Clone, PartialEq, ::prost::Message)]
561pub struct QueryVoteResponse {
562 #[prost(message, optional, tag = "1")]
564 pub vote: ::core::option::Option<Vote>,
565}
566impl ::prost::Name for QueryVoteResponse {
567 const NAME: &'static str = "QueryVoteResponse";
568 const PACKAGE: &'static str = "cosmos.gov.v1";
569 fn full_name() -> ::prost::alloc::string::String {
570 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
571 }
572}
573#[allow(clippy::derive_partial_eq_without_eq)]
575#[derive(Clone, PartialEq, ::prost::Message)]
576pub struct QueryVotesRequest {
577 #[prost(uint64, tag = "1")]
579 pub proposal_id: u64,
580 #[prost(message, optional, tag = "2")]
582 pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
583}
584impl ::prost::Name for QueryVotesRequest {
585 const NAME: &'static str = "QueryVotesRequest";
586 const PACKAGE: &'static str = "cosmos.gov.v1";
587 fn full_name() -> ::prost::alloc::string::String {
588 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
589 }
590}
591#[allow(clippy::derive_partial_eq_without_eq)]
593#[derive(Clone, PartialEq, ::prost::Message)]
594pub struct QueryVotesResponse {
595 #[prost(message, repeated, tag = "1")]
597 pub votes: ::prost::alloc::vec::Vec<Vote>,
598 #[prost(message, optional, tag = "2")]
600 pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
601}
602impl ::prost::Name for QueryVotesResponse {
603 const NAME: &'static str = "QueryVotesResponse";
604 const PACKAGE: &'static str = "cosmos.gov.v1";
605 fn full_name() -> ::prost::alloc::string::String {
606 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
607 }
608}
609#[allow(clippy::derive_partial_eq_without_eq)]
611#[derive(Clone, PartialEq, ::prost::Message)]
612pub struct QueryParamsRequest {
613 #[prost(string, tag = "1")]
616 pub params_type: ::prost::alloc::string::String,
617}
618impl ::prost::Name for QueryParamsRequest {
619 const NAME: &'static str = "QueryParamsRequest";
620 const PACKAGE: &'static str = "cosmos.gov.v1";
621 fn full_name() -> ::prost::alloc::string::String {
622 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
623 }
624}
625#[allow(clippy::derive_partial_eq_without_eq)]
627#[derive(Clone, PartialEq, ::prost::Message)]
628pub struct QueryParamsResponse {
629 #[deprecated]
632 #[prost(message, optional, tag = "1")]
633 pub voting_params: ::core::option::Option<VotingParams>,
634 #[deprecated]
637 #[prost(message, optional, tag = "2")]
638 pub deposit_params: ::core::option::Option<DepositParams>,
639 #[deprecated]
642 #[prost(message, optional, tag = "3")]
643 pub tally_params: ::core::option::Option<TallyParams>,
644 #[prost(message, optional, tag = "4")]
648 pub params: ::core::option::Option<Params>,
649}
650impl ::prost::Name for QueryParamsResponse {
651 const NAME: &'static str = "QueryParamsResponse";
652 const PACKAGE: &'static str = "cosmos.gov.v1";
653 fn full_name() -> ::prost::alloc::string::String {
654 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
655 }
656}
657#[allow(clippy::derive_partial_eq_without_eq)]
659#[derive(Clone, PartialEq, ::prost::Message)]
660pub struct QueryDepositRequest {
661 #[prost(uint64, tag = "1")]
663 pub proposal_id: u64,
664 #[prost(string, tag = "2")]
666 pub depositor: ::prost::alloc::string::String,
667}
668impl ::prost::Name for QueryDepositRequest {
669 const NAME: &'static str = "QueryDepositRequest";
670 const PACKAGE: &'static str = "cosmos.gov.v1";
671 fn full_name() -> ::prost::alloc::string::String {
672 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
673 }
674}
675#[allow(clippy::derive_partial_eq_without_eq)]
677#[derive(Clone, PartialEq, ::prost::Message)]
678pub struct QueryDepositResponse {
679 #[prost(message, optional, tag = "1")]
681 pub deposit: ::core::option::Option<Deposit>,
682}
683impl ::prost::Name for QueryDepositResponse {
684 const NAME: &'static str = "QueryDepositResponse";
685 const PACKAGE: &'static str = "cosmos.gov.v1";
686 fn full_name() -> ::prost::alloc::string::String {
687 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
688 }
689}
690#[allow(clippy::derive_partial_eq_without_eq)]
692#[derive(Clone, PartialEq, ::prost::Message)]
693pub struct QueryDepositsRequest {
694 #[prost(uint64, tag = "1")]
696 pub proposal_id: u64,
697 #[prost(message, optional, tag = "2")]
699 pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
700}
701impl ::prost::Name for QueryDepositsRequest {
702 const NAME: &'static str = "QueryDepositsRequest";
703 const PACKAGE: &'static str = "cosmos.gov.v1";
704 fn full_name() -> ::prost::alloc::string::String {
705 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
706 }
707}
708#[allow(clippy::derive_partial_eq_without_eq)]
710#[derive(Clone, PartialEq, ::prost::Message)]
711pub struct QueryDepositsResponse {
712 #[prost(message, repeated, tag = "1")]
714 pub deposits: ::prost::alloc::vec::Vec<Deposit>,
715 #[prost(message, optional, tag = "2")]
717 pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
718}
719impl ::prost::Name for QueryDepositsResponse {
720 const NAME: &'static str = "QueryDepositsResponse";
721 const PACKAGE: &'static str = "cosmos.gov.v1";
722 fn full_name() -> ::prost::alloc::string::String {
723 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
724 }
725}
726#[allow(clippy::derive_partial_eq_without_eq)]
728#[derive(Clone, PartialEq, ::prost::Message)]
729pub struct QueryTallyResultRequest {
730 #[prost(uint64, tag = "1")]
732 pub proposal_id: u64,
733}
734impl ::prost::Name for QueryTallyResultRequest {
735 const NAME: &'static str = "QueryTallyResultRequest";
736 const PACKAGE: &'static str = "cosmos.gov.v1";
737 fn full_name() -> ::prost::alloc::string::String {
738 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
739 }
740}
741#[allow(clippy::derive_partial_eq_without_eq)]
743#[derive(Clone, PartialEq, ::prost::Message)]
744pub struct QueryTallyResultResponse {
745 #[prost(message, optional, tag = "1")]
747 pub tally: ::core::option::Option<TallyResult>,
748}
749impl ::prost::Name for QueryTallyResultResponse {
750 const NAME: &'static str = "QueryTallyResultResponse";
751 const PACKAGE: &'static str = "cosmos.gov.v1";
752 fn full_name() -> ::prost::alloc::string::String {
753 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
754 }
755}
756#[allow(clippy::derive_partial_eq_without_eq)]
759#[derive(Clone, PartialEq, ::prost::Message)]
760pub struct MsgSubmitProposal {
761 #[prost(message, repeated, tag = "1")]
763 pub messages: ::prost::alloc::vec::Vec<::tendermint_proto::google::protobuf::Any>,
764 #[prost(message, repeated, tag = "2")]
766 pub initial_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
767 #[prost(string, tag = "3")]
769 pub proposer: ::prost::alloc::string::String,
770 #[prost(string, tag = "4")]
772 pub metadata: ::prost::alloc::string::String,
773 #[prost(string, tag = "5")]
777 pub title: ::prost::alloc::string::String,
778 #[prost(string, tag = "6")]
782 pub summary: ::prost::alloc::string::String,
783 #[prost(bool, tag = "7")]
787 pub expedited: bool,
788}
789impl ::prost::Name for MsgSubmitProposal {
790 const NAME: &'static str = "MsgSubmitProposal";
791 const PACKAGE: &'static str = "cosmos.gov.v1";
792 fn full_name() -> ::prost::alloc::string::String {
793 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
794 }
795}
796#[allow(clippy::derive_partial_eq_without_eq)]
798#[derive(Clone, PartialEq, ::prost::Message)]
799pub struct MsgSubmitProposalResponse {
800 #[prost(uint64, tag = "1")]
802 pub proposal_id: u64,
803}
804impl ::prost::Name for MsgSubmitProposalResponse {
805 const NAME: &'static str = "MsgSubmitProposalResponse";
806 const PACKAGE: &'static str = "cosmos.gov.v1";
807 fn full_name() -> ::prost::alloc::string::String {
808 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
809 }
810}
811#[allow(clippy::derive_partial_eq_without_eq)]
814#[derive(Clone, PartialEq, ::prost::Message)]
815pub struct MsgExecLegacyContent {
816 #[prost(message, optional, tag = "1")]
818 pub content: ::core::option::Option<::tendermint_proto::google::protobuf::Any>,
819 #[prost(string, tag = "2")]
821 pub authority: ::prost::alloc::string::String,
822}
823impl ::prost::Name for MsgExecLegacyContent {
824 const NAME: &'static str = "MsgExecLegacyContent";
825 const PACKAGE: &'static str = "cosmos.gov.v1";
826 fn full_name() -> ::prost::alloc::string::String {
827 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
828 }
829}
830#[allow(clippy::derive_partial_eq_without_eq)]
832#[derive(Clone, PartialEq, ::prost::Message)]
833pub struct MsgExecLegacyContentResponse {}
834impl ::prost::Name for MsgExecLegacyContentResponse {
835 const NAME: &'static str = "MsgExecLegacyContentResponse";
836 const PACKAGE: &'static str = "cosmos.gov.v1";
837 fn full_name() -> ::prost::alloc::string::String {
838 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
839 }
840}
841#[allow(clippy::derive_partial_eq_without_eq)]
843#[derive(Clone, PartialEq, ::prost::Message)]
844pub struct MsgVote {
845 #[prost(uint64, tag = "1")]
847 pub proposal_id: u64,
848 #[prost(string, tag = "2")]
850 pub voter: ::prost::alloc::string::String,
851 #[prost(enumeration = "VoteOption", tag = "3")]
853 pub option: i32,
854 #[prost(string, tag = "4")]
856 pub metadata: ::prost::alloc::string::String,
857}
858impl ::prost::Name for MsgVote {
859 const NAME: &'static str = "MsgVote";
860 const PACKAGE: &'static str = "cosmos.gov.v1";
861 fn full_name() -> ::prost::alloc::string::String {
862 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
863 }
864}
865#[allow(clippy::derive_partial_eq_without_eq)]
867#[derive(Clone, PartialEq, ::prost::Message)]
868pub struct MsgVoteResponse {}
869impl ::prost::Name for MsgVoteResponse {
870 const NAME: &'static str = "MsgVoteResponse";
871 const PACKAGE: &'static str = "cosmos.gov.v1";
872 fn full_name() -> ::prost::alloc::string::String {
873 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
874 }
875}
876#[allow(clippy::derive_partial_eq_without_eq)]
878#[derive(Clone, PartialEq, ::prost::Message)]
879pub struct MsgVoteWeighted {
880 #[prost(uint64, tag = "1")]
882 pub proposal_id: u64,
883 #[prost(string, tag = "2")]
885 pub voter: ::prost::alloc::string::String,
886 #[prost(message, repeated, tag = "3")]
888 pub options: ::prost::alloc::vec::Vec<WeightedVoteOption>,
889 #[prost(string, tag = "4")]
891 pub metadata: ::prost::alloc::string::String,
892}
893impl ::prost::Name for MsgVoteWeighted {
894 const NAME: &'static str = "MsgVoteWeighted";
895 const PACKAGE: &'static str = "cosmos.gov.v1";
896 fn full_name() -> ::prost::alloc::string::String {
897 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
898 }
899}
900#[allow(clippy::derive_partial_eq_without_eq)]
902#[derive(Clone, PartialEq, ::prost::Message)]
903pub struct MsgVoteWeightedResponse {}
904impl ::prost::Name for MsgVoteWeightedResponse {
905 const NAME: &'static str = "MsgVoteWeightedResponse";
906 const PACKAGE: &'static str = "cosmos.gov.v1";
907 fn full_name() -> ::prost::alloc::string::String {
908 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
909 }
910}
911#[allow(clippy::derive_partial_eq_without_eq)]
913#[derive(Clone, PartialEq, ::prost::Message)]
914pub struct MsgDeposit {
915 #[prost(uint64, tag = "1")]
917 pub proposal_id: u64,
918 #[prost(string, tag = "2")]
920 pub depositor: ::prost::alloc::string::String,
921 #[prost(message, repeated, tag = "3")]
923 pub amount: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
924}
925impl ::prost::Name for MsgDeposit {
926 const NAME: &'static str = "MsgDeposit";
927 const PACKAGE: &'static str = "cosmos.gov.v1";
928 fn full_name() -> ::prost::alloc::string::String {
929 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
930 }
931}
932#[allow(clippy::derive_partial_eq_without_eq)]
934#[derive(Clone, PartialEq, ::prost::Message)]
935pub struct MsgDepositResponse {}
936impl ::prost::Name for MsgDepositResponse {
937 const NAME: &'static str = "MsgDepositResponse";
938 const PACKAGE: &'static str = "cosmos.gov.v1";
939 fn full_name() -> ::prost::alloc::string::String {
940 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
941 }
942}
943#[allow(clippy::derive_partial_eq_without_eq)]
947#[derive(Clone, PartialEq, ::prost::Message)]
948pub struct MsgUpdateParams {
949 #[prost(string, tag = "1")]
951 pub authority: ::prost::alloc::string::String,
952 #[prost(message, optional, tag = "2")]
956 pub params: ::core::option::Option<Params>,
957}
958impl ::prost::Name for MsgUpdateParams {
959 const NAME: &'static str = "MsgUpdateParams";
960 const PACKAGE: &'static str = "cosmos.gov.v1";
961 fn full_name() -> ::prost::alloc::string::String {
962 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
963 }
964}
965#[allow(clippy::derive_partial_eq_without_eq)]
970#[derive(Clone, PartialEq, ::prost::Message)]
971pub struct MsgUpdateParamsResponse {}
972impl ::prost::Name for MsgUpdateParamsResponse {
973 const NAME: &'static str = "MsgUpdateParamsResponse";
974 const PACKAGE: &'static str = "cosmos.gov.v1";
975 fn full_name() -> ::prost::alloc::string::String {
976 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
977 }
978}
979#[allow(clippy::derive_partial_eq_without_eq)]
983#[derive(Clone, PartialEq, ::prost::Message)]
984pub struct MsgCancelProposal {
985 #[prost(uint64, tag = "1")]
987 pub proposal_id: u64,
988 #[prost(string, tag = "2")]
990 pub proposer: ::prost::alloc::string::String,
991}
992impl ::prost::Name for MsgCancelProposal {
993 const NAME: &'static str = "MsgCancelProposal";
994 const PACKAGE: &'static str = "cosmos.gov.v1";
995 fn full_name() -> ::prost::alloc::string::String {
996 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
997 }
998}
999#[allow(clippy::derive_partial_eq_without_eq)]
1004#[derive(Clone, PartialEq, ::prost::Message)]
1005pub struct MsgCancelProposalResponse {
1006 #[prost(uint64, tag = "1")]
1008 pub proposal_id: u64,
1009 #[prost(message, optional, tag = "2")]
1011 pub canceled_time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
1012 #[prost(uint64, tag = "3")]
1014 pub canceled_height: u64,
1015}
1016impl ::prost::Name for MsgCancelProposalResponse {
1017 const NAME: &'static str = "MsgCancelProposalResponse";
1018 const PACKAGE: &'static str = "cosmos.gov.v1";
1019 fn full_name() -> ::prost::alloc::string::String {
1020 ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME)
1021 }
1022}
1023include!("cosmos.gov.v1.serde.rs");
1024include!("cosmos.gov.v1.tonic.rs");
1025