elys_std/types/tendermint/
p2p.rs1use elys_std_deriv::CosmwasmExt;
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(
4 Clone,
5 PartialEq,
6 Eq,
7 ::prost::Message,
8 ::serde::Serialize,
9 ::serde::Deserialize,
10 ::schemars::JsonSchema,
11 CosmwasmExt,
12)]
13#[proto_message(type_url = "/tendermint.p2p.NetAddress")]
14pub struct NetAddress {
15 #[prost(string, tag = "1")]
16 #[serde(alias = "ID")]
17 pub id: ::prost::alloc::string::String,
18 #[prost(string, tag = "2")]
19 pub ip: ::prost::alloc::string::String,
20 #[prost(uint32, tag = "3")]
21 #[serde(
22 serialize_with = "crate::serde::as_str::serialize",
23 deserialize_with = "crate::serde::as_str::deserialize"
24 )]
25 pub port: u32,
26}
27#[allow(clippy::derive_partial_eq_without_eq)]
28#[derive(
29 Clone,
30 PartialEq,
31 Eq,
32 ::prost::Message,
33 ::serde::Serialize,
34 ::serde::Deserialize,
35 ::schemars::JsonSchema,
36 CosmwasmExt,
37)]
38#[proto_message(type_url = "/tendermint.p2p.ProtocolVersion")]
39pub struct ProtocolVersion {
40 #[prost(uint64, tag = "1")]
41 #[serde(
42 serialize_with = "crate::serde::as_str::serialize",
43 deserialize_with = "crate::serde::as_str::deserialize"
44 )]
45 pub p2p: u64,
46 #[prost(uint64, tag = "2")]
47 #[serde(
48 serialize_with = "crate::serde::as_str::serialize",
49 deserialize_with = "crate::serde::as_str::deserialize"
50 )]
51 pub block: u64,
52 #[prost(uint64, tag = "3")]
53 #[serde(
54 serialize_with = "crate::serde::as_str::serialize",
55 deserialize_with = "crate::serde::as_str::deserialize"
56 )]
57 pub app: u64,
58}
59#[allow(clippy::derive_partial_eq_without_eq)]
60#[derive(
61 Clone,
62 PartialEq,
63 Eq,
64 ::prost::Message,
65 ::serde::Serialize,
66 ::serde::Deserialize,
67 ::schemars::JsonSchema,
68 CosmwasmExt,
69)]
70#[proto_message(type_url = "/tendermint.p2p.DefaultNodeInfo")]
71pub struct DefaultNodeInfo {
72 #[prost(message, optional, tag = "1")]
73 pub protocol_version: ::core::option::Option<ProtocolVersion>,
74 #[prost(string, tag = "2")]
75 #[serde(alias = "default_nodeID")]
76 pub default_node_id: ::prost::alloc::string::String,
77 #[prost(string, tag = "3")]
78 pub listen_addr: ::prost::alloc::string::String,
79 #[prost(string, tag = "4")]
80 pub network: ::prost::alloc::string::String,
81 #[prost(string, tag = "5")]
82 pub version: ::prost::alloc::string::String,
83 #[prost(bytes = "vec", tag = "6")]
84 #[serde(
85 serialize_with = "crate::serde::as_base64_encoded_string::serialize",
86 deserialize_with = "crate::serde::as_base64_encoded_string::deserialize"
87 )]
88 pub channels: ::prost::alloc::vec::Vec<u8>,
89 #[prost(string, tag = "7")]
90 pub moniker: ::prost::alloc::string::String,
91 #[prost(message, optional, tag = "8")]
92 pub other: ::core::option::Option<DefaultNodeInfoOther>,
93}
94#[allow(clippy::derive_partial_eq_without_eq)]
95#[derive(
96 Clone,
97 PartialEq,
98 Eq,
99 ::prost::Message,
100 ::serde::Serialize,
101 ::serde::Deserialize,
102 ::schemars::JsonSchema,
103 CosmwasmExt,
104)]
105#[proto_message(type_url = "/tendermint.p2p.DefaultNodeInfoOther")]
106pub struct DefaultNodeInfoOther {
107 #[prost(string, tag = "1")]
108 pub tx_index: ::prost::alloc::string::String,
109 #[prost(string, tag = "2")]
110 pub rpc_address: ::prost::alloc::string::String,
111}