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
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoteSignerError {
#[prost(int32, tag = "1")]
pub code: i32,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PubKeyRequest {
#[prost(string, tag = "1")]
pub chain_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PubKeyResponse {
#[prost(message, optional, tag = "1")]
pub pub_key: ::core::option::Option<super::crypto::PublicKey>,
#[prost(message, optional, tag = "2")]
pub error: ::core::option::Option<RemoteSignerError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignVoteRequest {
#[prost(message, optional, tag = "1")]
pub vote: ::core::option::Option<super::types::Vote>,
#[prost(string, tag = "2")]
pub chain_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignedVoteResponse {
#[prost(message, optional, tag = "1")]
pub vote: ::core::option::Option<super::types::Vote>,
#[prost(message, optional, tag = "2")]
pub error: ::core::option::Option<RemoteSignerError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignProposalRequest {
#[prost(message, optional, tag = "1")]
pub proposal: ::core::option::Option<super::types::Proposal>,
#[prost(string, tag = "2")]
pub chain_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignedProposalResponse {
#[prost(message, optional, tag = "1")]
pub proposal: ::core::option::Option<super::types::Proposal>,
#[prost(message, optional, tag = "2")]
pub error: ::core::option::Option<RemoteSignerError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Message {
#[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
pub sum: ::core::option::Option<message::Sum>,
}
pub mod message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(message, tag = "1")]
PubKeyRequest(super::PubKeyRequest),
#[prost(message, tag = "2")]
PubKeyResponse(super::PubKeyResponse),
#[prost(message, tag = "3")]
SignVoteRequest(super::SignVoteRequest),
#[prost(message, tag = "4")]
SignedVoteResponse(super::SignedVoteResponse),
#[prost(message, tag = "5")]
SignProposalRequest(super::SignProposalRequest),
#[prost(message, tag = "6")]
SignedProposalResponse(super::SignedProposalResponse),
#[prost(message, tag = "7")]
PingRequest(super::PingRequest),
#[prost(message, tag = "8")]
PingResponse(super::PingResponse),
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Errors {
Unknown = 0,
UnexpectedResponse = 1,
NoConnection = 2,
ConnectionTimeout = 3,
ReadTimeout = 4,
WriteTimeout = 5,
}
impl Errors {
pub fn as_str_name(&self) -> &'static str {
match self {
Errors::Unknown => "ERRORS_UNKNOWN",
Errors::UnexpectedResponse => "ERRORS_UNEXPECTED_RESPONSE",
Errors::NoConnection => "ERRORS_NO_CONNECTION",
Errors::ConnectionTimeout => "ERRORS_CONNECTION_TIMEOUT",
Errors::ReadTimeout => "ERRORS_READ_TIMEOUT",
Errors::WriteTimeout => "ERRORS_WRITE_TIMEOUT",
}
}
}