1#[allow(clippy::derive_partial_eq_without_eq)]
10#[derive(Clone, PartialEq, ::prost::Message)]
11pub struct Request {
12 #[prost(oneof="request::Value", tags="1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17")]
13 pub value: ::core::option::Option<request::Value>,
14}
15pub mod request {
17 #[allow(clippy::derive_partial_eq_without_eq)]
18#[derive(Clone, PartialEq, ::prost::Oneof)]
19 pub enum Value {
20 #[prost(message, tag="1")]
21 Echo(super::RequestEcho),
22 #[prost(message, tag="2")]
23 Flush(super::RequestFlush),
24 #[prost(message, tag="3")]
25 Info(super::RequestInfo),
26 #[prost(message, tag="5")]
27 InitChain(super::RequestInitChain),
28 #[prost(message, tag="6")]
29 Query(super::RequestQuery),
30 #[prost(message, tag="7")]
31 BeginBlock(super::RequestBeginBlock),
32 #[prost(message, tag="8")]
33 CheckTx(super::RequestCheckTx),
34 #[prost(message, tag="9")]
35 DeliverTx(super::RequestDeliverTx),
36 #[prost(message, tag="10")]
37 EndBlock(super::RequestEndBlock),
38 #[prost(message, tag="11")]
39 Commit(super::RequestCommit),
40 #[prost(message, tag="12")]
41 ListSnapshots(super::RequestListSnapshots),
42 #[prost(message, tag="13")]
43 OfferSnapshot(super::RequestOfferSnapshot),
44 #[prost(message, tag="14")]
45 LoadSnapshotChunk(super::RequestLoadSnapshotChunk),
46 #[prost(message, tag="15")]
47 ApplySnapshotChunk(super::RequestApplySnapshotChunk),
48 #[prost(message, tag="16")]
49 PrepareProposal(super::RequestPrepareProposal),
50 #[prost(message, tag="17")]
51 ProcessProposal(super::RequestProcessProposal),
52 }
53}
54#[allow(clippy::derive_partial_eq_without_eq)]
55#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct RequestEcho {
57 #[prost(string, tag="1")]
58 pub message: ::prost::alloc::string::String,
59}
60#[allow(clippy::derive_partial_eq_without_eq)]
61#[derive(Clone, PartialEq, ::prost::Message)]
62pub struct RequestFlush {
63}
64#[allow(clippy::derive_partial_eq_without_eq)]
65#[derive(Clone, PartialEq, ::prost::Message)]
66pub struct RequestInfo {
67 #[prost(string, tag="1")]
68 pub version: ::prost::alloc::string::String,
69 #[prost(uint64, tag="2")]
70 pub block_version: u64,
71 #[prost(uint64, tag="3")]
72 pub p2p_version: u64,
73 #[prost(string, tag="4")]
74 pub abci_version: ::prost::alloc::string::String,
75}
76#[allow(clippy::derive_partial_eq_without_eq)]
77#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct RequestInitChain {
79 #[prost(message, optional, tag="1")]
80 pub time: ::core::option::Option<::prost_types::Timestamp>,
81 #[prost(string, tag="2")]
82 pub chain_id: ::prost::alloc::string::String,
83 #[prost(message, optional, tag="3")]
84 pub consensus_params: ::core::option::Option<super::types::ConsensusParams>,
85 #[prost(message, repeated, tag="4")]
86 pub validators: ::prost::alloc::vec::Vec<ValidatorUpdate>,
87 #[prost(bytes="bytes", tag="5")]
88 pub app_state_bytes: ::prost::bytes::Bytes,
89 #[prost(int64, tag="6")]
90 pub initial_height: i64,
91}
92#[allow(clippy::derive_partial_eq_without_eq)]
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct RequestQuery {
95 #[prost(bytes="bytes", tag="1")]
96 pub data: ::prost::bytes::Bytes,
97 #[prost(string, tag="2")]
98 pub path: ::prost::alloc::string::String,
99 #[prost(int64, tag="3")]
100 pub height: i64,
101 #[prost(bool, tag="4")]
102 pub prove: bool,
103}
104#[allow(clippy::derive_partial_eq_without_eq)]
105#[derive(Clone, PartialEq, ::prost::Message)]
106pub struct RequestBeginBlock {
107 #[prost(bytes="bytes", tag="1")]
108 pub hash: ::prost::bytes::Bytes,
109 #[prost(message, optional, tag="2")]
110 pub header: ::core::option::Option<super::types::Header>,
111 #[prost(message, optional, tag="3")]
112 pub last_commit_info: ::core::option::Option<CommitInfo>,
113 #[prost(message, repeated, tag="4")]
114 pub byzantine_validators: ::prost::alloc::vec::Vec<Misbehavior>,
115}
116#[allow(clippy::derive_partial_eq_without_eq)]
117#[derive(Clone, PartialEq, ::prost::Message)]
118pub struct RequestCheckTx {
119 #[prost(bytes="bytes", tag="1")]
120 pub tx: ::prost::bytes::Bytes,
121 #[prost(enumeration="CheckTxType", tag="2")]
122 pub r#type: i32,
123}
124#[allow(clippy::derive_partial_eq_without_eq)]
125#[derive(Clone, PartialEq, ::prost::Message)]
126pub struct RequestDeliverTx {
127 #[prost(bytes="bytes", tag="1")]
128 pub tx: ::prost::bytes::Bytes,
129}
130#[allow(clippy::derive_partial_eq_without_eq)]
131#[derive(Clone, PartialEq, ::prost::Message)]
132pub struct RequestEndBlock {
133 #[prost(int64, tag="1")]
134 pub height: i64,
135}
136#[allow(clippy::derive_partial_eq_without_eq)]
137#[derive(Clone, PartialEq, ::prost::Message)]
138pub struct RequestCommit {
139}
140#[allow(clippy::derive_partial_eq_without_eq)]
142#[derive(Clone, PartialEq, ::prost::Message)]
143pub struct RequestListSnapshots {
144}
145#[allow(clippy::derive_partial_eq_without_eq)]
147#[derive(Clone, PartialEq, ::prost::Message)]
148pub struct RequestOfferSnapshot {
149 #[prost(message, optional, tag="1")]
151 pub snapshot: ::core::option::Option<Snapshot>,
152 #[prost(bytes="bytes", tag="2")]
154 pub app_hash: ::prost::bytes::Bytes,
155}
156#[allow(clippy::derive_partial_eq_without_eq)]
158#[derive(Clone, PartialEq, ::prost::Message)]
159pub struct RequestLoadSnapshotChunk {
160 #[prost(uint64, tag="1")]
161 pub height: u64,
162 #[prost(uint32, tag="2")]
163 pub format: u32,
164 #[prost(uint32, tag="3")]
165 pub chunk: u32,
166}
167#[allow(clippy::derive_partial_eq_without_eq)]
169#[derive(Clone, PartialEq, ::prost::Message)]
170pub struct RequestApplySnapshotChunk {
171 #[prost(uint32, tag="1")]
172 pub index: u32,
173 #[prost(bytes="bytes", tag="2")]
174 pub chunk: ::prost::bytes::Bytes,
175 #[prost(string, tag="3")]
176 pub sender: ::prost::alloc::string::String,
177}
178#[allow(clippy::derive_partial_eq_without_eq)]
179#[derive(Clone, PartialEq, ::prost::Message)]
180pub struct RequestPrepareProposal {
181 #[prost(int64, tag="1")]
183 pub max_tx_bytes: i64,
184 #[prost(bytes="bytes", repeated, tag="2")]
187 pub txs: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
188 #[prost(message, optional, tag="3")]
189 pub local_last_commit: ::core::option::Option<ExtendedCommitInfo>,
190 #[prost(message, repeated, tag="4")]
191 pub misbehavior: ::prost::alloc::vec::Vec<Misbehavior>,
192 #[prost(int64, tag="5")]
193 pub height: i64,
194 #[prost(message, optional, tag="6")]
195 pub time: ::core::option::Option<::prost_types::Timestamp>,
196 #[prost(bytes="bytes", tag="7")]
197 pub next_validators_hash: ::prost::bytes::Bytes,
198 #[prost(bytes="bytes", tag="8")]
200 pub proposer_address: ::prost::bytes::Bytes,
201}
202#[allow(clippy::derive_partial_eq_without_eq)]
203#[derive(Clone, PartialEq, ::prost::Message)]
204pub struct RequestProcessProposal {
205 #[prost(bytes="bytes", repeated, tag="1")]
206 pub txs: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
207 #[prost(message, optional, tag="2")]
208 pub proposed_last_commit: ::core::option::Option<CommitInfo>,
209 #[prost(message, repeated, tag="3")]
210 pub misbehavior: ::prost::alloc::vec::Vec<Misbehavior>,
211 #[prost(bytes="bytes", tag="4")]
213 pub hash: ::prost::bytes::Bytes,
214 #[prost(int64, tag="5")]
215 pub height: i64,
216 #[prost(message, optional, tag="6")]
217 pub time: ::core::option::Option<::prost_types::Timestamp>,
218 #[prost(bytes="bytes", tag="7")]
219 pub next_validators_hash: ::prost::bytes::Bytes,
220 #[prost(bytes="bytes", tag="8")]
222 pub proposer_address: ::prost::bytes::Bytes,
223}
224#[allow(clippy::derive_partial_eq_without_eq)]
228#[derive(Clone, PartialEq, ::prost::Message)]
229pub struct Response {
230 #[prost(oneof="response::Value", tags="1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18")]
231 pub value: ::core::option::Option<response::Value>,
232}
233pub mod response {
235 #[allow(clippy::derive_partial_eq_without_eq)]
236#[derive(Clone, PartialEq, ::prost::Oneof)]
237 pub enum Value {
238 #[prost(message, tag="1")]
239 Exception(super::ResponseException),
240 #[prost(message, tag="2")]
241 Echo(super::ResponseEcho),
242 #[prost(message, tag="3")]
243 Flush(super::ResponseFlush),
244 #[prost(message, tag="4")]
245 Info(super::ResponseInfo),
246 #[prost(message, tag="6")]
247 InitChain(super::ResponseInitChain),
248 #[prost(message, tag="7")]
249 Query(super::ResponseQuery),
250 #[prost(message, tag="8")]
251 BeginBlock(super::ResponseBeginBlock),
252 #[prost(message, tag="9")]
253 CheckTx(super::ResponseCheckTx),
254 #[prost(message, tag="10")]
255 DeliverTx(super::ResponseDeliverTx),
256 #[prost(message, tag="11")]
257 EndBlock(super::ResponseEndBlock),
258 #[prost(message, tag="12")]
259 Commit(super::ResponseCommit),
260 #[prost(message, tag="13")]
261 ListSnapshots(super::ResponseListSnapshots),
262 #[prost(message, tag="14")]
263 OfferSnapshot(super::ResponseOfferSnapshot),
264 #[prost(message, tag="15")]
265 LoadSnapshotChunk(super::ResponseLoadSnapshotChunk),
266 #[prost(message, tag="16")]
267 ApplySnapshotChunk(super::ResponseApplySnapshotChunk),
268 #[prost(message, tag="17")]
269 PrepareProposal(super::ResponsePrepareProposal),
270 #[prost(message, tag="18")]
271 ProcessProposal(super::ResponseProcessProposal),
272 }
273}
274#[allow(clippy::derive_partial_eq_without_eq)]
276#[derive(Clone, PartialEq, ::prost::Message)]
277pub struct ResponseException {
278 #[prost(string, tag="1")]
279 pub error: ::prost::alloc::string::String,
280}
281#[allow(clippy::derive_partial_eq_without_eq)]
282#[derive(Clone, PartialEq, ::prost::Message)]
283pub struct ResponseEcho {
284 #[prost(string, tag="1")]
285 pub message: ::prost::alloc::string::String,
286}
287#[allow(clippy::derive_partial_eq_without_eq)]
288#[derive(Clone, PartialEq, ::prost::Message)]
289pub struct ResponseFlush {
290}
291#[allow(clippy::derive_partial_eq_without_eq)]
292#[derive(Clone, PartialEq, ::prost::Message)]
293pub struct ResponseInfo {
294 #[prost(string, tag="1")]
295 pub data: ::prost::alloc::string::String,
296 #[prost(string, tag="2")]
297 pub version: ::prost::alloc::string::String,
298 #[prost(uint64, tag="3")]
299 pub app_version: u64,
300 #[prost(int64, tag="4")]
301 pub last_block_height: i64,
302 #[prost(bytes="bytes", tag="5")]
303 pub last_block_app_hash: ::prost::bytes::Bytes,
304}
305#[allow(clippy::derive_partial_eq_without_eq)]
306#[derive(Clone, PartialEq, ::prost::Message)]
307pub struct ResponseInitChain {
308 #[prost(message, optional, tag="1")]
309 pub consensus_params: ::core::option::Option<super::types::ConsensusParams>,
310 #[prost(message, repeated, tag="2")]
311 pub validators: ::prost::alloc::vec::Vec<ValidatorUpdate>,
312 #[prost(bytes="bytes", tag="3")]
313 pub app_hash: ::prost::bytes::Bytes,
314}
315#[allow(clippy::derive_partial_eq_without_eq)]
316#[derive(Clone, PartialEq, ::prost::Message)]
317pub struct ResponseQuery {
318 #[prost(uint32, tag="1")]
319 pub code: u32,
320 #[prost(string, tag="3")]
324 pub log: ::prost::alloc::string::String,
325 #[prost(string, tag="4")]
327 pub info: ::prost::alloc::string::String,
328 #[prost(int64, tag="5")]
329 pub index: i64,
330 #[prost(bytes="bytes", tag="6")]
331 pub key: ::prost::bytes::Bytes,
332 #[prost(bytes="bytes", tag="7")]
333 pub value: ::prost::bytes::Bytes,
334 #[prost(message, optional, tag="8")]
335 pub proof_ops: ::core::option::Option<super::crypto::ProofOps>,
336 #[prost(int64, tag="9")]
337 pub height: i64,
338 #[prost(string, tag="10")]
339 pub codespace: ::prost::alloc::string::String,
340}
341#[allow(clippy::derive_partial_eq_without_eq)]
342#[derive(Clone, PartialEq, ::prost::Message)]
343pub struct ResponseBeginBlock {
344 #[prost(message, repeated, tag="1")]
345 pub events: ::prost::alloc::vec::Vec<Event>,
346}
347#[allow(clippy::derive_partial_eq_without_eq)]
348#[derive(Clone, PartialEq, ::prost::Message)]
349pub struct ResponseCheckTx {
350 #[prost(uint32, tag="1")]
351 pub code: u32,
352 #[prost(bytes="bytes", tag="2")]
353 pub data: ::prost::bytes::Bytes,
354 #[prost(string, tag="3")]
356 pub log: ::prost::alloc::string::String,
357 #[prost(string, tag="4")]
359 pub info: ::prost::alloc::string::String,
360 #[prost(int64, tag="5")]
361 pub gas_wanted: i64,
362 #[prost(int64, tag="6")]
363 pub gas_used: i64,
364 #[prost(message, repeated, tag="7")]
365 pub events: ::prost::alloc::vec::Vec<Event>,
366 #[prost(string, tag="8")]
367 pub codespace: ::prost::alloc::string::String,
368 #[prost(string, tag="9")]
369 pub sender: ::prost::alloc::string::String,
370 #[prost(int64, tag="10")]
371 pub priority: i64,
372 #[prost(string, tag="11")]
375 pub mempool_error: ::prost::alloc::string::String,
376}
377#[allow(clippy::derive_partial_eq_without_eq)]
378#[derive(Clone, PartialEq, ::prost::Message)]
379pub struct ResponseDeliverTx {
380 #[prost(uint32, tag="1")]
381 pub code: u32,
382 #[prost(bytes="bytes", tag="2")]
383 pub data: ::prost::bytes::Bytes,
384 #[prost(string, tag="3")]
386 pub log: ::prost::alloc::string::String,
387 #[prost(string, tag="4")]
389 pub info: ::prost::alloc::string::String,
390 #[prost(int64, tag="5")]
391 pub gas_wanted: i64,
392 #[prost(int64, tag="6")]
393 pub gas_used: i64,
394 #[prost(message, repeated, tag="7")]
396 pub events: ::prost::alloc::vec::Vec<Event>,
397 #[prost(string, tag="8")]
398 pub codespace: ::prost::alloc::string::String,
399}
400#[allow(clippy::derive_partial_eq_without_eq)]
401#[derive(Clone, PartialEq, ::prost::Message)]
402pub struct ResponseEndBlock {
403 #[prost(message, repeated, tag="1")]
404 pub validator_updates: ::prost::alloc::vec::Vec<ValidatorUpdate>,
405 #[prost(message, optional, tag="2")]
406 pub consensus_param_updates: ::core::option::Option<super::types::ConsensusParams>,
407 #[prost(message, repeated, tag="3")]
408 pub events: ::prost::alloc::vec::Vec<Event>,
409}
410#[allow(clippy::derive_partial_eq_without_eq)]
411#[derive(Clone, PartialEq, ::prost::Message)]
412pub struct ResponseCommit {
413 #[prost(bytes="bytes", tag="2")]
415 pub data: ::prost::bytes::Bytes,
416 #[prost(int64, tag="3")]
417 pub retain_height: i64,
418}
419#[allow(clippy::derive_partial_eq_without_eq)]
420#[derive(Clone, PartialEq, ::prost::Message)]
421pub struct ResponseListSnapshots {
422 #[prost(message, repeated, tag="1")]
423 pub snapshots: ::prost::alloc::vec::Vec<Snapshot>,
424}
425#[allow(clippy::derive_partial_eq_without_eq)]
426#[derive(Clone, PartialEq, ::prost::Message)]
427pub struct ResponseOfferSnapshot {
428 #[prost(enumeration="response_offer_snapshot::Result", tag="1")]
429 pub result: i32,
430}
431pub mod response_offer_snapshot {
433 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
434 #[repr(i32)]
435 pub enum Result {
436 Unknown = 0,
438 Accept = 1,
440 Abort = 2,
442 Reject = 3,
444 RejectFormat = 4,
446 RejectSender = 5,
448 }
449 impl Result {
450 pub fn as_str_name(&self) -> &'static str {
455 match self {
456 Result::Unknown => "UNKNOWN",
457 Result::Accept => "ACCEPT",
458 Result::Abort => "ABORT",
459 Result::Reject => "REJECT",
460 Result::RejectFormat => "REJECT_FORMAT",
461 Result::RejectSender => "REJECT_SENDER",
462 }
463 }
464 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
466 match value {
467 "UNKNOWN" => Some(Self::Unknown),
468 "ACCEPT" => Some(Self::Accept),
469 "ABORT" => Some(Self::Abort),
470 "REJECT" => Some(Self::Reject),
471 "REJECT_FORMAT" => Some(Self::RejectFormat),
472 "REJECT_SENDER" => Some(Self::RejectSender),
473 _ => None,
474 }
475 }
476 }
477}
478#[allow(clippy::derive_partial_eq_without_eq)]
479#[derive(Clone, PartialEq, ::prost::Message)]
480pub struct ResponseLoadSnapshotChunk {
481 #[prost(bytes="bytes", tag="1")]
482 pub chunk: ::prost::bytes::Bytes,
483}
484#[allow(clippy::derive_partial_eq_without_eq)]
485#[derive(Clone, PartialEq, ::prost::Message)]
486pub struct ResponseApplySnapshotChunk {
487 #[prost(enumeration="response_apply_snapshot_chunk::Result", tag="1")]
488 pub result: i32,
489 #[prost(uint32, repeated, tag="2")]
491 pub refetch_chunks: ::prost::alloc::vec::Vec<u32>,
492 #[prost(string, repeated, tag="3")]
494 pub reject_senders: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
495}
496pub mod response_apply_snapshot_chunk {
498 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
499 #[repr(i32)]
500 pub enum Result {
501 Unknown = 0,
503 Accept = 1,
505 Abort = 2,
507 Retry = 3,
509 RetrySnapshot = 4,
511 RejectSnapshot = 5,
513 }
514 impl Result {
515 pub fn as_str_name(&self) -> &'static str {
520 match self {
521 Result::Unknown => "UNKNOWN",
522 Result::Accept => "ACCEPT",
523 Result::Abort => "ABORT",
524 Result::Retry => "RETRY",
525 Result::RetrySnapshot => "RETRY_SNAPSHOT",
526 Result::RejectSnapshot => "REJECT_SNAPSHOT",
527 }
528 }
529 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
531 match value {
532 "UNKNOWN" => Some(Self::Unknown),
533 "ACCEPT" => Some(Self::Accept),
534 "ABORT" => Some(Self::Abort),
535 "RETRY" => Some(Self::Retry),
536 "RETRY_SNAPSHOT" => Some(Self::RetrySnapshot),
537 "REJECT_SNAPSHOT" => Some(Self::RejectSnapshot),
538 _ => None,
539 }
540 }
541 }
542}
543#[allow(clippy::derive_partial_eq_without_eq)]
544#[derive(Clone, PartialEq, ::prost::Message)]
545pub struct ResponsePrepareProposal {
546 #[prost(bytes="bytes", repeated, tag="1")]
547 pub txs: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
548}
549#[allow(clippy::derive_partial_eq_without_eq)]
550#[derive(Clone, PartialEq, ::prost::Message)]
551pub struct ResponseProcessProposal {
552 #[prost(enumeration="response_process_proposal::ProposalStatus", tag="1")]
553 pub status: i32,
554}
555pub mod response_process_proposal {
557 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
558 #[repr(i32)]
559 pub enum ProposalStatus {
560 Unknown = 0,
561 Accept = 1,
562 Reject = 2,
563 }
564 impl ProposalStatus {
565 pub fn as_str_name(&self) -> &'static str {
570 match self {
571 ProposalStatus::Unknown => "UNKNOWN",
572 ProposalStatus::Accept => "ACCEPT",
573 ProposalStatus::Reject => "REJECT",
574 }
575 }
576 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
578 match value {
579 "UNKNOWN" => Some(Self::Unknown),
580 "ACCEPT" => Some(Self::Accept),
581 "REJECT" => Some(Self::Reject),
582 _ => None,
583 }
584 }
585 }
586}
587#[allow(clippy::derive_partial_eq_without_eq)]
591#[derive(Clone, PartialEq, ::prost::Message)]
592pub struct CommitInfo {
593 #[prost(int32, tag="1")]
594 pub round: i32,
595 #[prost(message, repeated, tag="2")]
596 pub votes: ::prost::alloc::vec::Vec<VoteInfo>,
597}
598#[allow(clippy::derive_partial_eq_without_eq)]
599#[derive(Clone, PartialEq, ::prost::Message)]
600pub struct ExtendedCommitInfo {
601 #[prost(int32, tag="1")]
603 pub round: i32,
604 #[prost(message, repeated, tag="2")]
607 pub votes: ::prost::alloc::vec::Vec<ExtendedVoteInfo>,
608}
609#[allow(clippy::derive_partial_eq_without_eq)]
613#[derive(Clone, PartialEq, ::prost::Message)]
614pub struct Event {
615 #[prost(string, tag="1")]
616 pub r#type: ::prost::alloc::string::String,
617 #[prost(message, repeated, tag="2")]
618 pub attributes: ::prost::alloc::vec::Vec<EventAttribute>,
619}
620#[allow(clippy::derive_partial_eq_without_eq)]
622#[derive(Clone, PartialEq, ::prost::Message)]
623pub struct EventAttribute {
624 #[prost(string, tag="1")]
625 pub key: ::prost::alloc::string::String,
626 #[prost(string, tag="2")]
627 pub value: ::prost::alloc::string::String,
628 #[prost(bool, tag="3")]
630 pub index: bool,
631}
632#[allow(clippy::derive_partial_eq_without_eq)]
636#[derive(Clone, PartialEq, ::prost::Message)]
637pub struct TxResult {
638 #[prost(int64, tag="1")]
639 pub height: i64,
640 #[prost(uint32, tag="2")]
641 pub index: u32,
642 #[prost(bytes="bytes", tag="3")]
643 pub tx: ::prost::bytes::Bytes,
644 #[prost(message, optional, tag="4")]
645 pub result: ::core::option::Option<ResponseDeliverTx>,
646}
647#[allow(clippy::derive_partial_eq_without_eq)]
652#[derive(Clone, PartialEq, ::prost::Message)]
653pub struct Validator {
654 #[prost(bytes="bytes", tag="1")]
656 pub address: ::prost::bytes::Bytes,
657 #[prost(int64, tag="3")]
661 pub power: i64,
662}
663#[allow(clippy::derive_partial_eq_without_eq)]
665#[derive(Clone, PartialEq, ::prost::Message)]
666pub struct ValidatorUpdate {
667 #[prost(message, optional, tag="1")]
668 pub pub_key: ::core::option::Option<super::crypto::PublicKey>,
669 #[prost(int64, tag="2")]
670 pub power: i64,
671}
672#[allow(clippy::derive_partial_eq_without_eq)]
674#[derive(Clone, PartialEq, ::prost::Message)]
675pub struct VoteInfo {
676 #[prost(message, optional, tag="1")]
677 pub validator: ::core::option::Option<Validator>,
678 #[prost(bool, tag="2")]
679 pub signed_last_block: bool,
680}
681#[allow(clippy::derive_partial_eq_without_eq)]
682#[derive(Clone, PartialEq, ::prost::Message)]
683pub struct ExtendedVoteInfo {
684 #[prost(message, optional, tag="1")]
685 pub validator: ::core::option::Option<Validator>,
686 #[prost(bool, tag="2")]
687 pub signed_last_block: bool,
688 #[prost(bytes="bytes", tag="3")]
690 pub vote_extension: ::prost::bytes::Bytes,
691}
692#[allow(clippy::derive_partial_eq_without_eq)]
693#[derive(Clone, PartialEq, ::prost::Message)]
694pub struct Misbehavior {
695 #[prost(enumeration="MisbehaviorType", tag="1")]
696 pub r#type: i32,
697 #[prost(message, optional, tag="2")]
699 pub validator: ::core::option::Option<Validator>,
700 #[prost(int64, tag="3")]
702 pub height: i64,
703 #[prost(message, optional, tag="4")]
705 pub time: ::core::option::Option<::prost_types::Timestamp>,
706 #[prost(int64, tag="5")]
710 pub total_voting_power: i64,
711}
712#[allow(clippy::derive_partial_eq_without_eq)]
716#[derive(Clone, PartialEq, ::prost::Message)]
717pub struct Snapshot {
718 #[prost(uint64, tag="1")]
720 pub height: u64,
721 #[prost(uint32, tag="2")]
723 pub format: u32,
724 #[prost(uint32, tag="3")]
726 pub chunks: u32,
727 #[prost(bytes="bytes", tag="4")]
729 pub hash: ::prost::bytes::Bytes,
730 #[prost(bytes="bytes", tag="5")]
732 pub metadata: ::prost::bytes::Bytes,
733}
734#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
735#[repr(i32)]
736pub enum CheckTxType {
737 New = 0,
738 Recheck = 1,
739}
740impl CheckTxType {
741 pub fn as_str_name(&self) -> &'static str {
746 match self {
747 CheckTxType::New => "NEW",
748 CheckTxType::Recheck => "RECHECK",
749 }
750 }
751 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
753 match value {
754 "NEW" => Some(Self::New),
755 "RECHECK" => Some(Self::Recheck),
756 _ => None,
757 }
758 }
759}
760#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
761#[repr(i32)]
762pub enum MisbehaviorType {
763 Unknown = 0,
764 DuplicateVote = 1,
765 LightClientAttack = 2,
766}
767impl MisbehaviorType {
768 pub fn as_str_name(&self) -> &'static str {
773 match self {
774 MisbehaviorType::Unknown => "UNKNOWN",
775 MisbehaviorType::DuplicateVote => "DUPLICATE_VOTE",
776 MisbehaviorType::LightClientAttack => "LIGHT_CLIENT_ATTACK",
777 }
778 }
779 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
781 match value {
782 "UNKNOWN" => Some(Self::Unknown),
783 "DUPLICATE_VOTE" => Some(Self::DuplicateVote),
784 "LIGHT_CLIENT_ATTACK" => Some(Self::LightClientAttack),
785 _ => None,
786 }
787 }
788}
789