side_proto/prost/side/
side.oracle.rs

1// @generated
2/// Params defines the parameters for the module.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Params {
6    /// define how many block headers keep on side chain
7    #[prost(uint32, tag = "1")]
8    pub keep_bitcoin_blocks: u32,
9}
10impl ::prost::Name for Params {
11    const NAME: &'static str = "Params";
12    const PACKAGE: &'static str = "side.oracle";
13    fn full_name() -> ::prost::alloc::string::String {
14        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
15    }
16}
17/// Oracle Price from Price Extention
18#[allow(clippy::derive_partial_eq_without_eq)]
19#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct OraclePrice {
21    /// id
22    #[prost(string, tag = "1")]
23    pub symbol: ::prost::alloc::string::String,
24    #[prost(string, tag = "2")]
25    pub price: ::prost::alloc::string::String,
26}
27impl ::prost::Name for OraclePrice {
28    const NAME: &'static str = "OraclePrice";
29    const PACKAGE: &'static str = "side.oracle";
30    fn full_name() -> ::prost::alloc::string::String {
31        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
32    }
33}
34/// Bitcoin Block Header From Price Extention
35#[allow(clippy::derive_partial_eq_without_eq)]
36#[derive(Clone, PartialEq, ::prost::Message)]
37pub struct BlockHeader {
38    #[prost(int32, tag = "1")]
39    pub version: i32,
40    #[prost(string, tag = "2")]
41    pub hash: ::prost::alloc::string::String,
42    #[prost(int32, tag = "3")]
43    pub height: i32,
44    #[prost(string, tag = "4")]
45    pub previous_block_hash: ::prost::alloc::string::String,
46    #[prost(string, tag = "5")]
47    pub merkle_root: ::prost::alloc::string::String,
48    #[prost(uint64, tag = "6")]
49    pub nonce: u64,
50    #[prost(string, tag = "7")]
51    pub bits: ::prost::alloc::string::String,
52    #[prost(int64, tag = "8")]
53    pub time: i64,
54    #[prost(int32, tag = "9")]
55    pub ntx: i32,
56}
57impl ::prost::Name for BlockHeader {
58    const NAME: &'static str = "BlockHeader";
59    const PACKAGE: &'static str = "side.oracle";
60    fn full_name() -> ::prost::alloc::string::String {
61        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
62    }
63}
64/// Oracle Vote Extenstion
65#[allow(clippy::derive_partial_eq_without_eq)]
66#[derive(Clone, PartialEq, ::prost::Message)]
67pub struct OracleVoteExtension {
68    #[prost(int64, tag = "1")]
69    pub height: i64,
70    #[prost(map = "string, string", tag = "2")]
71    pub prices:
72        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
73    #[prost(message, repeated, tag = "3")]
74    pub blocks: ::prost::alloc::vec::Vec<BlockHeader>,
75    #[prost(bool, tag = "4")]
76    pub has_error: bool,
77}
78impl ::prost::Name for OracleVoteExtension {
79    const NAME: &'static str = "OracleVoteExtension";
80    const PACKAGE: &'static str = "side.oracle";
81    fn full_name() -> ::prost::alloc::string::String {
82        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
83    }
84}
85/// GenesisState defines the oracle module's genesis state.
86#[allow(clippy::derive_partial_eq_without_eq)]
87#[derive(Clone, PartialEq, ::prost::Message)]
88pub struct GenesisState {
89    #[prost(message, optional, tag = "1")]
90    pub params: ::core::option::Option<Params>,
91    #[prost(message, repeated, tag = "2")]
92    pub prices: ::prost::alloc::vec::Vec<OraclePrice>,
93    #[prost(message, repeated, tag = "3")]
94    pub blocks: ::prost::alloc::vec::Vec<BlockHeader>,
95}
96impl ::prost::Name for GenesisState {
97    const NAME: &'static str = "GenesisState";
98    const PACKAGE: &'static str = "side.oracle";
99    fn full_name() -> ::prost::alloc::string::String {
100        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
101    }
102}
103/// QueryPoolRequest is request type for the Query/Pool RPC method.
104#[allow(clippy::derive_partial_eq_without_eq)]
105#[derive(Clone, PartialEq, ::prost::Message)]
106pub struct QueryGetPriceBySymbolRequest {
107    #[prost(string, tag = "1")]
108    pub symbol: ::prost::alloc::string::String,
109}
110impl ::prost::Name for QueryGetPriceBySymbolRequest {
111    const NAME: &'static str = "QueryGetPriceBySymbolRequest";
112    const PACKAGE: &'static str = "side.oracle";
113    fn full_name() -> ::prost::alloc::string::String {
114        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
115    }
116}
117/// QueryPoolResponse is response type for the Query/Pool RPC method.
118#[allow(clippy::derive_partial_eq_without_eq)]
119#[derive(Clone, PartialEq, ::prost::Message)]
120pub struct QueryGetPriceBySymbolResponse {
121    #[prost(string, tag = "1")]
122    pub price: ::prost::alloc::string::String,
123}
124impl ::prost::Name for QueryGetPriceBySymbolResponse {
125    const NAME: &'static str = "QueryGetPriceBySymbolResponse";
126    const PACKAGE: &'static str = "side.oracle";
127    fn full_name() -> ::prost::alloc::string::String {
128        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
129    }
130}
131/// QueryPoolsRequest is request type for the Query/Pools RPC method.
132#[allow(clippy::derive_partial_eq_without_eq)]
133#[derive(Clone, PartialEq, ::prost::Message)]
134pub struct QueryListPricesRequest {}
135impl ::prost::Name for QueryListPricesRequest {
136    const NAME: &'static str = "QueryListPricesRequest";
137    const PACKAGE: &'static str = "side.oracle";
138    fn full_name() -> ::prost::alloc::string::String {
139        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
140    }
141}
142/// QueryPoolsResponse is response type for the Query/Pools RPC method.
143#[allow(clippy::derive_partial_eq_without_eq)]
144#[derive(Clone, PartialEq, ::prost::Message)]
145pub struct QueryListPricesResponse {
146    #[prost(message, repeated, tag = "1")]
147    pub prices: ::prost::alloc::vec::Vec<OraclePrice>,
148}
149impl ::prost::Name for QueryListPricesResponse {
150    const NAME: &'static str = "QueryListPricesResponse";
151    const PACKAGE: &'static str = "side.oracle";
152    fn full_name() -> ::prost::alloc::string::String {
153        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
154    }
155}
156/// QueryParamsRequest is request type for the Query/Params RPC method.
157#[allow(clippy::derive_partial_eq_without_eq)]
158#[derive(Clone, PartialEq, ::prost::Message)]
159pub struct QueryParamsRequest {}
160impl ::prost::Name for QueryParamsRequest {
161    const NAME: &'static str = "QueryParamsRequest";
162    const PACKAGE: &'static str = "side.oracle";
163    fn full_name() -> ::prost::alloc::string::String {
164        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
165    }
166}
167/// QueryParamsResponse is response type for the Query/Params RPC method.
168#[allow(clippy::derive_partial_eq_without_eq)]
169#[derive(Clone, PartialEq, ::prost::Message)]
170pub struct QueryParamsResponse {
171    /// params holds all the parameters of this module.
172    #[prost(message, optional, tag = "1")]
173    pub params: ::core::option::Option<Params>,
174}
175impl ::prost::Name for QueryParamsResponse {
176    const NAME: &'static str = "QueryParamsResponse";
177    const PACKAGE: &'static str = "side.oracle";
178    fn full_name() -> ::prost::alloc::string::String {
179        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
180    }
181}
182/// QueryChainTipRequest is request type for the Query/ChainTip RPC method.
183#[allow(clippy::derive_partial_eq_without_eq)]
184#[derive(Clone, PartialEq, ::prost::Message)]
185pub struct QueryChainTipRequest {}
186impl ::prost::Name for QueryChainTipRequest {
187    const NAME: &'static str = "QueryChainTipRequest";
188    const PACKAGE: &'static str = "side.oracle";
189    fn full_name() -> ::prost::alloc::string::String {
190        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
191    }
192}
193/// QueryChainTipResponse is response type for the Query/ChainTip RPC method.
194#[allow(clippy::derive_partial_eq_without_eq)]
195#[derive(Clone, PartialEq, ::prost::Message)]
196pub struct QueryChainTipResponse {
197    #[prost(string, tag = "1")]
198    pub hash: ::prost::alloc::string::String,
199    #[prost(uint64, tag = "2")]
200    pub height: u64,
201}
202impl ::prost::Name for QueryChainTipResponse {
203    const NAME: &'static str = "QueryChainTipResponse";
204    const PACKAGE: &'static str = "side.oracle";
205    fn full_name() -> ::prost::alloc::string::String {
206        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
207    }
208}
209/// QueryBlockHeaderByHeightRequest is the request type for the Query/BlockHeaderByHeight RPC method.
210#[allow(clippy::derive_partial_eq_without_eq)]
211#[derive(Clone, PartialEq, ::prost::Message)]
212pub struct QueryBlockHeaderByHeightRequest {
213    #[prost(uint64, tag = "1")]
214    pub height: u64,
215}
216impl ::prost::Name for QueryBlockHeaderByHeightRequest {
217    const NAME: &'static str = "QueryBlockHeaderByHeightRequest";
218    const PACKAGE: &'static str = "side.oracle";
219    fn full_name() -> ::prost::alloc::string::String {
220        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
221    }
222}
223/// QueryBlockHeaderByHeightResponse is the response type for the Query/BlockHeaderByHeight RPC method.
224#[allow(clippy::derive_partial_eq_without_eq)]
225#[derive(Clone, PartialEq, ::prost::Message)]
226pub struct QueryBlockHeaderByHeightResponse {
227    #[prost(message, optional, tag = "1")]
228    pub block_header: ::core::option::Option<BlockHeader>,
229}
230impl ::prost::Name for QueryBlockHeaderByHeightResponse {
231    const NAME: &'static str = "QueryBlockHeaderByHeightResponse";
232    const PACKAGE: &'static str = "side.oracle";
233    fn full_name() -> ::prost::alloc::string::String {
234        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
235    }
236}
237/// QueryBlockHeaderByHashRequest is the request type for the Query/BlockHeaderByHash RPC method.
238#[allow(clippy::derive_partial_eq_without_eq)]
239#[derive(Clone, PartialEq, ::prost::Message)]
240pub struct QueryBlockHeaderByHashRequest {
241    #[prost(string, tag = "1")]
242    pub hash: ::prost::alloc::string::String,
243}
244impl ::prost::Name for QueryBlockHeaderByHashRequest {
245    const NAME: &'static str = "QueryBlockHeaderByHashRequest";
246    const PACKAGE: &'static str = "side.oracle";
247    fn full_name() -> ::prost::alloc::string::String {
248        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
249    }
250}
251/// QueryBlockHeaderByHashResponse is the response type for the Query/BlockHeaderByHash RPC method.
252#[allow(clippy::derive_partial_eq_without_eq)]
253#[derive(Clone, PartialEq, ::prost::Message)]
254pub struct QueryBlockHeaderByHashResponse {
255    #[prost(message, optional, tag = "1")]
256    pub block_header: ::core::option::Option<BlockHeader>,
257}
258impl ::prost::Name for QueryBlockHeaderByHashResponse {
259    const NAME: &'static str = "QueryBlockHeaderByHashResponse";
260    const PACKAGE: &'static str = "side.oracle";
261    fn full_name() -> ::prost::alloc::string::String {
262        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
263    }
264}
265/// QueryBestBlockHeaderRequest is the request type for the Query/BestBlockHeader RPC method.
266#[allow(clippy::derive_partial_eq_without_eq)]
267#[derive(Clone, PartialEq, ::prost::Message)]
268pub struct QueryBestBlockHeaderRequest {}
269impl ::prost::Name for QueryBestBlockHeaderRequest {
270    const NAME: &'static str = "QueryBestBlockHeaderRequest";
271    const PACKAGE: &'static str = "side.oracle";
272    fn full_name() -> ::prost::alloc::string::String {
273        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
274    }
275}
276/// QueryBestBlockHeaderResponse is the response type for the Query/BestBlockHeader RPC method.
277#[allow(clippy::derive_partial_eq_without_eq)]
278#[derive(Clone, PartialEq, ::prost::Message)]
279pub struct QueryBestBlockHeaderResponse {
280    #[prost(message, optional, tag = "1")]
281    pub block_header: ::core::option::Option<BlockHeader>,
282}
283impl ::prost::Name for QueryBestBlockHeaderResponse {
284    const NAME: &'static str = "QueryBestBlockHeaderResponse";
285    const PACKAGE: &'static str = "side.oracle";
286    fn full_name() -> ::prost::alloc::string::String {
287        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
288    }
289}
290/// MsgUpdateParams is the Msg/UpdateParams request type.
291///
292/// Since: cosmos-sdk 0.47
293#[allow(clippy::derive_partial_eq_without_eq)]
294#[derive(Clone, PartialEq, ::prost::Message)]
295pub struct MsgUpdateParams {
296    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
297    #[prost(string, tag = "1")]
298    pub authority: ::prost::alloc::string::String,
299    /// params defines the x/oracle parameters to be updated.
300    ///
301    /// NOTE: All parameters must be supplied.
302    #[prost(message, optional, tag = "2")]
303    pub params: ::core::option::Option<Params>,
304}
305impl ::prost::Name for MsgUpdateParams {
306    const NAME: &'static str = "MsgUpdateParams";
307    const PACKAGE: &'static str = "side.oracle";
308    fn full_name() -> ::prost::alloc::string::String {
309        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
310    }
311}
312/// MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
313///
314/// Since: cosmos-sdk 0.47
315#[allow(clippy::derive_partial_eq_without_eq)]
316#[derive(Clone, PartialEq, ::prost::Message)]
317pub struct MsgUpdateParamsResponse {}
318impl ::prost::Name for MsgUpdateParamsResponse {
319    const NAME: &'static str = "MsgUpdateParamsResponse";
320    const PACKAGE: &'static str = "side.oracle";
321    fn full_name() -> ::prost::alloc::string::String {
322        ::prost::alloc::format!("side.oracle.{}", Self::NAME)
323    }
324}
325include!("side.oracle.serde.rs");
326include!("side.oracle.tonic.rs");
327// @@protoc_insertion_point(module)