dchain-sdk-proto 0.9.0

Protobuf stuct defintions for Dchain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
// @generated
// This file is @generated by prost-build.
/// WeightedVoteOption defines a unit of vote for vote split.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WeightedVoteOption {
    /// option defines the valid vote options, it must not contain duplicate vote options.
    #[prost(enumeration = "VoteOption", tag = "1")]
    pub option: i32,
    /// weight is the vote weight associated with the vote option.
    #[prost(string, tag = "2")]
    pub weight: ::prost::alloc::string::String,
}
/// Deposit defines an amount deposited by an account address to an active
/// proposal.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Deposit {
    /// proposal_id defines the unique id of the proposal.
    #[prost(uint64, tag = "1")]
    pub proposal_id: u64,
    /// depositor defines the deposit addresses from the proposals.
    #[prost(string, tag = "2")]
    pub depositor: ::prost::alloc::string::String,
    /// amount to be deposited by depositor.
    #[prost(message, repeated, tag = "3")]
    pub amount: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
}
/// Proposal defines the core field members of a governance proposal.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Proposal {
    /// id defines the unique id of the proposal.
    #[prost(uint64, tag = "1")]
    pub id: u64,
    /// messages are the arbitrary messages to be executed if the proposal passes.
    #[prost(message, repeated, tag = "2")]
    pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>,
    /// status defines the proposal status.
    #[prost(enumeration = "ProposalStatus", tag = "3")]
    pub status: i32,
    /// final_tally_result is the final tally result of the proposal. When
    /// querying a proposal via gRPC, this field is not populated until the
    /// proposal's voting period has ended.
    #[prost(message, optional, tag = "4")]
    pub final_tally_result: ::core::option::Option<TallyResult>,
    /// submit_time is the time of proposal submission.
    #[prost(message, optional, tag = "5")]
    pub submit_time: ::core::option::Option<::prost_types::Timestamp>,
    /// deposit_end_time is the end time for deposition.
    #[prost(message, optional, tag = "6")]
    pub deposit_end_time: ::core::option::Option<::prost_types::Timestamp>,
    /// total_deposit is the total deposit on the proposal.
    #[prost(message, repeated, tag = "7")]
    pub total_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
    /// voting_start_time is the starting time to vote on a proposal.
    #[prost(message, optional, tag = "8")]
    pub voting_start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// voting_end_time is the end time of voting on a proposal.
    #[prost(message, optional, tag = "9")]
    pub voting_end_time: ::core::option::Option<::prost_types::Timestamp>,
    /// metadata is any arbitrary metadata attached to the proposal.
    /// the recommended format of the metadata is to be found here:
    /// <https://docs.cosmos.network/v0.47/modules/gov#proposal-3>
    #[prost(string, tag = "10")]
    pub metadata: ::prost::alloc::string::String,
    /// title is the title of the proposal
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(string, tag = "11")]
    pub title: ::prost::alloc::string::String,
    /// summary is a short summary of the proposal
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(string, tag = "12")]
    pub summary: ::prost::alloc::string::String,
    /// proposer is the address of the proposal sumbitter
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(string, tag = "13")]
    pub proposer: ::prost::alloc::string::String,
    /// expedited defines if the proposal is expedited
    ///
    /// Since: cosmos-sdk 0.50
    /// Deprecated: Use ProposalType instead.
    #[deprecated]
    #[prost(bool, tag = "14")]
    pub expedited: bool,
    /// failed_reason defines the reason why the proposal failed
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(string, tag = "15")]
    pub failed_reason: ::prost::alloc::string::String,
    /// proposal_type defines the type of the proposal
    ///
    /// Since: x/gov v1.0.0
    #[prost(enumeration = "ProposalType", tag = "16")]
    pub proposal_type: i32,
}
/// ProposalVoteOptions defines the stringified vote options for proposals.
/// This allows to support multiple choice options for a given proposal.
///
/// Since: x/gov v1.0.0
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProposalVoteOptions {
    /// option_one is the first option of the proposal
    #[prost(string, tag = "1")]
    pub option_one: ::prost::alloc::string::String,
    /// option_two is the second option of the proposal
    #[prost(string, tag = "2")]
    pub option_two: ::prost::alloc::string::String,
    /// option_three is the third option of the proposal
    #[prost(string, tag = "3")]
    pub option_three: ::prost::alloc::string::String,
    /// option_four is the fourth option of the proposal
    #[prost(string, tag = "4")]
    pub option_four: ::prost::alloc::string::String,
    /// option_spam is always present for all proposals.
    #[prost(string, tag = "5")]
    pub option_spam: ::prost::alloc::string::String,
}
/// TallyResult defines a standard tally for a governance proposal.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TallyResult {
    /// yes_count is the number of yes votes on a proposal.
    ///
    /// option 1
    #[deprecated]
    #[prost(string, tag = "1")]
    pub yes_count: ::prost::alloc::string::String,
    /// abstain_count is the number of abstain votes on a proposal.
    ///
    /// option 2
    #[deprecated]
    #[prost(string, tag = "2")]
    pub abstain_count: ::prost::alloc::string::String,
    /// no_count is the number of no votes on a proposal.
    ///
    /// option 3
    #[deprecated]
    #[prost(string, tag = "3")]
    pub no_count: ::prost::alloc::string::String,
    /// no_with_veto_count is the number of no with veto votes on a proposal.
    ///
    /// option 4
    #[deprecated]
    #[prost(string, tag = "4")]
    pub no_with_veto_count: ::prost::alloc::string::String,
    /// option_one_count corresponds to the number of votes for option one (= yes_count for non multiple choice proposals).
    #[prost(string, tag = "5")]
    pub option_one_count: ::prost::alloc::string::String,
    /// option_two_count corresponds to the number of votes for option two (= abstain_count for non multiple choice
    /// proposals).
    #[prost(string, tag = "6")]
    pub option_two_count: ::prost::alloc::string::String,
    /// option_three_count corresponds to the number of votes for option three (= no_count for non multiple choice
    /// proposals).
    #[prost(string, tag = "7")]
    pub option_three_count: ::prost::alloc::string::String,
    /// option_four_count corresponds to the number of votes for option four (= no_with_veto_count for non multiple choice
    /// proposals).
    #[prost(string, tag = "8")]
    pub option_four_count: ::prost::alloc::string::String,
    /// spam_count is the number of spam votes on a proposal.
    #[prost(string, tag = "9")]
    pub spam_count: ::prost::alloc::string::String,
}
/// Vote defines a vote on a governance proposal.
/// A Vote consists of a proposal ID, the voter, and the vote option.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Vote {
    /// proposal_id defines the unique id of the proposal.
    #[prost(uint64, tag = "1")]
    pub proposal_id: u64,
    /// voter is the voter address of the proposal.
    #[prost(string, tag = "2")]
    pub voter: ::prost::alloc::string::String,
    /// options is the weighted vote options.
    #[prost(message, repeated, tag = "4")]
    pub options: ::prost::alloc::vec::Vec<WeightedVoteOption>,
    /// metadata is any arbitrary metadata attached to the vote.
    /// the recommended format of the metadata is to be found here: <https://docs.cosmos.network/v0.47/modules/gov#vote-5>
    #[prost(string, tag = "5")]
    pub metadata: ::prost::alloc::string::String,
}
/// DepositParams defines the params for deposits on governance proposals.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DepositParams {
    /// Minimum deposit for a proposal to enter voting period.
    #[prost(message, repeated, tag = "1")]
    pub min_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
    /// Maximum period for Atom holders to deposit on a proposal. Initial value: 2
    /// months.
    #[prost(message, optional, tag = "2")]
    pub max_deposit_period: ::core::option::Option<::prost_types::Duration>,
}
/// VotingParams defines the params for voting on governance proposals.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct VotingParams {
    /// Duration of the voting period.
    #[prost(message, optional, tag = "1")]
    pub voting_period: ::core::option::Option<::prost_types::Duration>,
}
/// TallyParams defines the params for tallying votes on governance proposals.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TallyParams {
    /// Minimum percentage of total stake needed to vote for a result to be
    /// considered valid.
    #[prost(string, tag = "1")]
    pub quorum: ::prost::alloc::string::String,
    /// Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
    #[prost(string, tag = "2")]
    pub threshold: ::prost::alloc::string::String,
    /// Minimum value of Veto votes to Total votes ratio for proposal to be
    /// vetoed. Default value: 1/3.
    #[prost(string, tag = "3")]
    pub veto_threshold: ::prost::alloc::string::String,
}
/// Params defines the parameters for the x/gov module.
///
/// Since: cosmos-sdk 0.47
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Params {
    /// Minimum deposit for a proposal to enter voting period.
    #[prost(message, repeated, tag = "1")]
    pub min_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
    /// Maximum period for stake holders to deposit on a proposal. Initial value: 2
    /// months.
    #[prost(message, optional, tag = "2")]
    pub max_deposit_period: ::core::option::Option<::prost_types::Duration>,
    /// Duration of the voting period.
    #[prost(message, optional, tag = "3")]
    pub voting_period: ::core::option::Option<::prost_types::Duration>,
    ///   Minimum percentage of total stake needed to vote for a result to be
    ///   considered valid.
    #[prost(string, tag = "4")]
    pub quorum: ::prost::alloc::string::String,
    ///   Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
    #[prost(string, tag = "5")]
    pub threshold: ::prost::alloc::string::String,
    ///   Minimum value of Veto votes to Total votes ratio for proposal to be
    ///   vetoed. Default value: 1/3.
    #[prost(string, tag = "6")]
    pub veto_threshold: ::prost::alloc::string::String,
    ///   The ratio representing the proportion of the deposit value that must be paid at proposal submission.
    #[prost(string, tag = "7")]
    pub min_initial_deposit_ratio: ::prost::alloc::string::String,
    /// The cancel ratio which will not be returned back to the depositors when a proposal is cancelled.
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(string, tag = "8")]
    pub proposal_cancel_ratio: ::prost::alloc::string::String,
    /// The address which will receive (proposal_cancel_ratio * deposit) proposal deposits.
    /// If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned.
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(string, tag = "9")]
    pub proposal_cancel_dest: ::prost::alloc::string::String,
    /// Duration of the voting period of an expedited proposal.
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(message, optional, tag = "10")]
    pub expedited_voting_period: ::core::option::Option<::prost_types::Duration>,
    /// Minimum proportion of Yes votes for proposal to pass. Default value: 0.67.
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(string, tag = "11")]
    pub expedited_threshold: ::prost::alloc::string::String,
    ///   Minimum expedited deposit for a proposal to enter voting period.
    #[prost(message, repeated, tag = "12")]
    pub expedited_min_deposit: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
    /// burn deposits if a proposal does not meet quorum
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(bool, tag = "13")]
    pub burn_vote_quorum: bool,
    /// burn deposits if the proposal does not enter voting period
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(bool, tag = "14")]
    pub burn_proposal_deposit_prevote: bool,
    /// burn deposits if quorum with vote type no_veto is met
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(bool, tag = "15")]
    pub burn_vote_veto: bool,
    /// The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
    /// Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be
    /// required.
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(string, tag = "16")]
    pub min_deposit_ratio: ::prost::alloc::string::String,
    /// proposal_cancel_max_period defines how far in the voting period a proposer can cancel a proposal.
    /// If the proposal is cancelled before the max cancel period, the deposit will be returned/burn to the
    /// depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters.
    /// After the max cancel period, the proposal cannot be cancelled anymore.
    ///
    /// Since: x/gov v1.0.0
    #[prost(string, tag = "17")]
    pub proposal_cancel_max_period: ::prost::alloc::string::String,
    /// optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can
    /// submit optimistic proposals
    ///
    /// Since: x/gov v1.0.0
    #[prost(string, repeated, tag = "18")]
    pub optimistic_authorized_addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be
    /// converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens.
    ///
    /// Since: x/gov v1.0.0
    #[prost(string, tag = "19")]
    pub optimistic_rejected_threshold: ::prost::alloc::string::String,
    /// yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass.
    /// Default value: 0 (disabled).
    ///
    /// Since: x/gov v1.0.0
    #[prost(string, tag = "20")]
    pub yes_quorum: ::prost::alloc::string::String,
}
/// MessageBasedParams defines the parameters of specific messages in a proposal.
/// It is used to define the parameters of a proposal that is based on a specific message.
/// Once a message has message based params, it only supports a standard proposal type.
///
/// Since: x/gov v1.0.0
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageBasedParams {
    /// Duration of the voting period.
    #[prost(message, optional, tag = "1")]
    pub voting_period: ::core::option::Option<::prost_types::Duration>,
    /// Minimum percentage of total stake needed to vote for a result to be considered valid.
    #[prost(string, tag = "2")]
    pub quorum: ::prost::alloc::string::String,
    /// yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass.
    /// If zero then the yes_quorum is disabled.
    #[prost(string, tag = "20")]
    pub yes_quorum: ::prost::alloc::string::String,
    /// Minimum proportion of Yes votes for proposal to pass.
    #[prost(string, tag = "3")]
    pub threshold: ::prost::alloc::string::String,
    /// Minimum value of Veto votes to Total votes ratio for proposal to be vetoed.
    #[prost(string, tag = "4")]
    pub veto_threshold: ::prost::alloc::string::String,
}
/// ProposalType enumerates the valid proposal types.
/// All proposal types are v1.Proposal which have different voting periods or tallying logic.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProposalType {
    /// PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD.
    Unspecified = 0,
    /// PROPOSAL_TYPE_STANDARD defines the type for a standard proposal.
    Standard = 1,
    /// PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal.
    MultipleChoice = 2,
    /// PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal.
    Optimistic = 3,
    /// PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal.
    Expedited = 4,
}
impl ProposalType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "PROPOSAL_TYPE_UNSPECIFIED",
            Self::Standard => "PROPOSAL_TYPE_STANDARD",
            Self::MultipleChoice => "PROPOSAL_TYPE_MULTIPLE_CHOICE",
            Self::Optimistic => "PROPOSAL_TYPE_OPTIMISTIC",
            Self::Expedited => "PROPOSAL_TYPE_EXPEDITED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PROPOSAL_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "PROPOSAL_TYPE_STANDARD" => Some(Self::Standard),
            "PROPOSAL_TYPE_MULTIPLE_CHOICE" => Some(Self::MultipleChoice),
            "PROPOSAL_TYPE_OPTIMISTIC" => Some(Self::Optimistic),
            "PROPOSAL_TYPE_EXPEDITED" => Some(Self::Expedited),
            _ => None,
        }
    }
}
/// VoteOption enumerates the valid vote options for a given governance proposal.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum VoteOption {
    /// VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
    Unspecified = 0,
    /// VOTE_OPTION_ONE defines the first proposal vote option.
    One = 1,
    /// VOTE_OPTION_TWO defines the second proposal vote option.
    Two = 2,
    /// VOTE_OPTION_THREE defines the third proposal vote option.
    Three = 3,
    /// VOTE_OPTION_FOUR defines the fourth proposal vote option.
    Four = 4,
    /// VOTE_OPTION_SPAM defines the spam proposal vote option.
    Spam = 5,
}
impl VoteOption {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "VOTE_OPTION_UNSPECIFIED",
            Self::One => "VOTE_OPTION_ONE",
            Self::Two => "VOTE_OPTION_TWO",
            Self::Three => "VOTE_OPTION_THREE",
            Self::Four => "VOTE_OPTION_FOUR",
            Self::Spam => "VOTE_OPTION_SPAM",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "VOTE_OPTION_UNSPECIFIED" => Some(Self::Unspecified),
            "VOTE_OPTION_ONE" => Some(Self::One),
            "VOTE_OPTION_TWO" => Some(Self::Two),
            "VOTE_OPTION_THREE" => Some(Self::Three),
            "VOTE_OPTION_FOUR" => Some(Self::Four),
            "VOTE_OPTION_SPAM" => Some(Self::Spam),
            _ => None,
        }
    }
}
/// ProposalStatus enumerates the valid statuses of a proposal.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProposalStatus {
    /// PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
    Unspecified = 0,
    /// PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
    /// period.
    DepositPeriod = 1,
    /// PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
    /// period.
    VotingPeriod = 2,
    /// PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
    /// passed.
    Passed = 3,
    /// PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
    /// been rejected.
    Rejected = 4,
    /// PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
    /// failed.
    Failed = 5,
}
impl ProposalStatus {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "PROPOSAL_STATUS_UNSPECIFIED",
            Self::DepositPeriod => "PROPOSAL_STATUS_DEPOSIT_PERIOD",
            Self::VotingPeriod => "PROPOSAL_STATUS_VOTING_PERIOD",
            Self::Passed => "PROPOSAL_STATUS_PASSED",
            Self::Rejected => "PROPOSAL_STATUS_REJECTED",
            Self::Failed => "PROPOSAL_STATUS_FAILED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PROPOSAL_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
            "PROPOSAL_STATUS_DEPOSIT_PERIOD" => Some(Self::DepositPeriod),
            "PROPOSAL_STATUS_VOTING_PERIOD" => Some(Self::VotingPeriod),
            "PROPOSAL_STATUS_PASSED" => Some(Self::Passed),
            "PROPOSAL_STATUS_REJECTED" => Some(Self::Rejected),
            "PROPOSAL_STATUS_FAILED" => Some(Self::Failed),
            _ => None,
        }
    }
}
/// GenesisState defines the gov module's genesis state.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisState {
    /// starting_proposal_id is the ID of the starting proposal.
    #[prost(uint64, tag = "1")]
    pub starting_proposal_id: u64,
    /// deposits defines all the deposits present at genesis.
    #[prost(message, repeated, tag = "2")]
    pub deposits: ::prost::alloc::vec::Vec<Deposit>,
    /// votes defines all the votes present at genesis.
    #[prost(message, repeated, tag = "3")]
    pub votes: ::prost::alloc::vec::Vec<Vote>,
    /// proposals defines all the proposals present at genesis.
    #[prost(message, repeated, tag = "4")]
    pub proposals: ::prost::alloc::vec::Vec<Proposal>,
    /// Deprecated: Prefer to use `params` instead.
    /// deposit_params defines all the parameters of related to deposit.
    #[deprecated]
    #[prost(message, optional, tag = "5")]
    pub deposit_params: ::core::option::Option<DepositParams>,
    /// Deprecated: Prefer to use `params` instead.
    /// voting_params defines all the parameters of related to voting.
    #[deprecated]
    #[prost(message, optional, tag = "6")]
    pub voting_params: ::core::option::Option<VotingParams>,
    /// Deprecated: Prefer to use `params` instead.
    /// tally_params defines all the parameters of related to tally.
    #[deprecated]
    #[prost(message, optional, tag = "7")]
    pub tally_params: ::core::option::Option<TallyParams>,
    /// params defines all the parameters of x/gov module.
    ///
    /// Since: cosmos-sdk 0.47
    #[prost(message, optional, tag = "8")]
    pub params: ::core::option::Option<Params>,
    /// The constitution allows builders to lay a foundation and define purpose.
    /// This is an immutable string set in genesis.
    /// There are no amendments, to go outside of scope, just fork.
    /// constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals.
    ///
    /// Since: cosmos-sdk 0.50
    #[prost(string, tag = "9")]
    pub constitution: ::prost::alloc::string::String,
}
// @@protoc_insertion_point(module)