side_proto/prost/side/
side.dlc.rs

1// @generated
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct DlcOracle {
5    #[prost(uint64, tag = "1")]
6    pub id: u64,
7    #[prost(string, tag = "2")]
8    pub desc: ::prost::alloc::string::String,
9    #[prost(string, repeated, tag = "3")]
10    pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
11    #[prost(uint32, tag = "4")]
12    pub threshold: u32,
13    #[prost(string, tag = "5")]
14    pub pubkey: ::prost::alloc::string::String,
15    #[prost(uint64, tag = "6")]
16    pub nonce_index: u64,
17    #[prost(message, optional, tag = "7")]
18    pub time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
19    #[prost(enumeration = "DlcOracleStatus", tag = "8")]
20    pub status: i32,
21}
22impl ::prost::Name for DlcOracle {
23    const NAME: &'static str = "DLCOracle";
24    const PACKAGE: &'static str = "side.dlc";
25    fn full_name() -> ::prost::alloc::string::String {
26        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
27    }
28}
29#[allow(clippy::derive_partial_eq_without_eq)]
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct Agency {
32    #[prost(uint64, tag = "1")]
33    pub id: u64,
34    #[prost(string, tag = "2")]
35    pub desc: ::prost::alloc::string::String,
36    #[prost(string, repeated, tag = "3")]
37    pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
38    #[prost(uint32, tag = "4")]
39    pub threshold: u32,
40    #[prost(string, tag = "5")]
41    pub pubkey: ::prost::alloc::string::String,
42    #[prost(message, optional, tag = "6")]
43    pub time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
44    #[prost(enumeration = "AgencyStatus", tag = "7")]
45    pub status: i32,
46}
47impl ::prost::Name for Agency {
48    const NAME: &'static str = "Agency";
49    const PACKAGE: &'static str = "side.dlc";
50    fn full_name() -> ::prost::alloc::string::String {
51        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
52    }
53}
54#[allow(clippy::derive_partial_eq_without_eq)]
55#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct DlcNonce {
57    #[prost(uint64, tag = "1")]
58    pub index: u64,
59    #[prost(string, tag = "2")]
60    pub nonce: ::prost::alloc::string::String,
61    #[prost(string, tag = "3")]
62    pub oracle_pubkey: ::prost::alloc::string::String,
63    #[prost(message, optional, tag = "4")]
64    pub time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
65}
66impl ::prost::Name for DlcNonce {
67    const NAME: &'static str = "DLCNonce";
68    const PACKAGE: &'static str = "side.dlc";
69    fn full_name() -> ::prost::alloc::string::String {
70        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
71    }
72}
73#[allow(clippy::derive_partial_eq_without_eq)]
74#[derive(Clone, PartialEq, ::prost::Message)]
75pub struct DlcPriceEvent {
76    #[prost(uint64, tag = "1")]
77    pub id: u64,
78    #[prost(string, tag = "2")]
79    pub trigger_price: ::prost::alloc::string::String,
80    #[prost(string, tag = "3")]
81    pub price_decimal: ::prost::alloc::string::String,
82    #[prost(string, tag = "4")]
83    pub nonce: ::prost::alloc::string::String,
84    #[prost(string, tag = "5")]
85    pub pubkey: ::prost::alloc::string::String,
86    #[prost(string, tag = "6")]
87    pub description: ::prost::alloc::string::String,
88    #[prost(bool, tag = "7")]
89    pub has_triggered: bool,
90    #[prost(message, optional, tag = "8")]
91    pub publish_at: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
92}
93impl ::prost::Name for DlcPriceEvent {
94    const NAME: &'static str = "DLCPriceEvent";
95    const PACKAGE: &'static str = "side.dlc";
96    fn full_name() -> ::prost::alloc::string::String {
97        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
98    }
99}
100#[allow(clippy::derive_partial_eq_without_eq)]
101#[derive(Clone, PartialEq, ::prost::Message)]
102pub struct DlcAttestation {
103    #[prost(uint64, tag = "1")]
104    pub id: u64,
105    #[prost(uint64, tag = "2")]
106    pub event_id: u64,
107    #[prost(message, optional, tag = "3")]
108    pub time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
109    #[prost(string, tag = "4")]
110    pub pubkey: ::prost::alloc::string::String,
111    #[prost(string, tag = "5")]
112    pub outcome: ::prost::alloc::string::String,
113    #[prost(string, tag = "6")]
114    pub signature: ::prost::alloc::string::String,
115}
116impl ::prost::Name for DlcAttestation {
117    const NAME: &'static str = "DLCAttestation";
118    const PACKAGE: &'static str = "side.dlc";
119    fn full_name() -> ::prost::alloc::string::String {
120        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
121    }
122}
123#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
124#[repr(i32)]
125pub enum DlcOracleStatus {
126    OracleStatusPending = 0,
127    OracleStatusFailed = 1,
128    OracleStatusTimedout = 2,
129    OracleStatusEnable = 3,
130    OracleStatusDisable = 4,
131}
132impl DlcOracleStatus {
133    /// String value of the enum field names used in the ProtoBuf definition.
134    ///
135    /// The values are not transformed in any way and thus are considered stable
136    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
137    pub fn as_str_name(&self) -> &'static str {
138        match self {
139            DlcOracleStatus::OracleStatusPending => "Oracle_Status_Pending",
140            DlcOracleStatus::OracleStatusFailed => "Oracle_Status_Failed",
141            DlcOracleStatus::OracleStatusTimedout => "Oracle_Status_Timedout",
142            DlcOracleStatus::OracleStatusEnable => "Oracle_status_Enable",
143            DlcOracleStatus::OracleStatusDisable => "Oracle_status_Disable",
144        }
145    }
146    /// Creates an enum from field names used in the ProtoBuf definition.
147    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
148        match value {
149            "Oracle_Status_Pending" => Some(Self::OracleStatusPending),
150            "Oracle_Status_Failed" => Some(Self::OracleStatusFailed),
151            "Oracle_Status_Timedout" => Some(Self::OracleStatusTimedout),
152            "Oracle_status_Enable" => Some(Self::OracleStatusEnable),
153            "Oracle_status_Disable" => Some(Self::OracleStatusDisable),
154            _ => None,
155        }
156    }
157}
158#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
159#[repr(i32)]
160pub enum AgencyStatus {
161    Pending = 0,
162    Failed = 1,
163    Timedout = 2,
164    Enable = 3,
165    Disable = 4,
166}
167impl AgencyStatus {
168    /// String value of the enum field names used in the ProtoBuf definition.
169    ///
170    /// The values are not transformed in any way and thus are considered stable
171    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
172    pub fn as_str_name(&self) -> &'static str {
173        match self {
174            AgencyStatus::Pending => "Agency_Status_Pending",
175            AgencyStatus::Failed => "Agency_Status_Failed",
176            AgencyStatus::Timedout => "Agency_Status_Timedout",
177            AgencyStatus::Enable => "Agency_status_Enable",
178            AgencyStatus::Disable => "Agency_status_Disable",
179        }
180    }
181    /// Creates an enum from field names used in the ProtoBuf definition.
182    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
183        match value {
184            "Agency_Status_Pending" => Some(Self::Pending),
185            "Agency_Status_Failed" => Some(Self::Failed),
186            "Agency_Status_Timedout" => Some(Self::Timedout),
187            "Agency_status_Enable" => Some(Self::Enable),
188            "Agency_status_Disable" => Some(Self::Disable),
189            _ => None,
190        }
191    }
192}
193#[allow(clippy::derive_partial_eq_without_eq)]
194#[derive(Clone, PartialEq, ::prost::Message)]
195pub struct PriceInterval {
196    #[prost(string, tag = "1")]
197    pub price_pair: ::prost::alloc::string::String,
198    #[prost(int32, tag = "2")]
199    pub interval: i32,
200}
201impl ::prost::Name for PriceInterval {
202    const NAME: &'static str = "PriceInterval";
203    const PACKAGE: &'static str = "side.dlc";
204    fn full_name() -> ::prost::alloc::string::String {
205        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
206    }
207}
208/// Params defines the parameters for the module.
209#[allow(clippy::derive_partial_eq_without_eq)]
210#[derive(Clone, PartialEq, ::prost::Message)]
211pub struct Params {
212    #[prost(uint32, tag = "1")]
213    pub nonce_queue_size: u32,
214    #[prost(message, repeated, tag = "2")]
215    pub price_intervals: ::prost::alloc::vec::Vec<PriceInterval>,
216    #[prost(message, optional, tag = "3")]
217    pub dkg_timeout_period: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
218}
219impl ::prost::Name for Params {
220    const NAME: &'static str = "Params";
221    const PACKAGE: &'static str = "side.dlc";
222    fn full_name() -> ::prost::alloc::string::String {
223        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
224    }
225}
226/// GenesisState defines the dlc module's genesis state.
227#[allow(clippy::derive_partial_eq_without_eq)]
228#[derive(Clone, PartialEq, ::prost::Message)]
229pub struct GenesisState {
230    #[prost(message, optional, tag = "1")]
231    pub params: ::core::option::Option<Params>,
232    #[prost(message, repeated, tag = "2")]
233    pub events: ::prost::alloc::vec::Vec<DlcPriceEvent>,
234    #[prost(message, repeated, tag = "3")]
235    pub attestations: ::prost::alloc::vec::Vec<DlcAttestation>,
236}
237impl ::prost::Name for GenesisState {
238    const NAME: &'static str = "GenesisState";
239    const PACKAGE: &'static str = "side.dlc";
240    fn full_name() -> ::prost::alloc::string::String {
241        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
242    }
243}
244#[allow(clippy::derive_partial_eq_without_eq)]
245#[derive(Clone, PartialEq, ::prost::Message)]
246pub struct QueryAttestationRequest {
247    #[prost(uint64, tag = "1")]
248    pub id: u64,
249}
250impl ::prost::Name for QueryAttestationRequest {
251    const NAME: &'static str = "QueryAttestationRequest";
252    const PACKAGE: &'static str = "side.dlc";
253    fn full_name() -> ::prost::alloc::string::String {
254        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
255    }
256}
257#[allow(clippy::derive_partial_eq_without_eq)]
258#[derive(Clone, PartialEq, ::prost::Message)]
259pub struct QueryAttestationResponse {
260    #[prost(message, optional, tag = "1")]
261    pub attestation: ::core::option::Option<DlcAttestation>,
262}
263impl ::prost::Name for QueryAttestationResponse {
264    const NAME: &'static str = "QueryAttestationResponse";
265    const PACKAGE: &'static str = "side.dlc";
266    fn full_name() -> ::prost::alloc::string::String {
267        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
268    }
269}
270#[allow(clippy::derive_partial_eq_without_eq)]
271#[derive(Clone, PartialEq, ::prost::Message)]
272pub struct QueryAttestationsRequest {
273    #[prost(message, optional, tag = "1")]
274    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
275}
276impl ::prost::Name for QueryAttestationsRequest {
277    const NAME: &'static str = "QueryAttestationsRequest";
278    const PACKAGE: &'static str = "side.dlc";
279    fn full_name() -> ::prost::alloc::string::String {
280        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
281    }
282}
283#[allow(clippy::derive_partial_eq_without_eq)]
284#[derive(Clone, PartialEq, ::prost::Message)]
285pub struct QueryAttestationsResponse {
286    #[prost(message, repeated, tag = "1")]
287    pub attestations: ::prost::alloc::vec::Vec<DlcAttestation>,
288    #[prost(message, optional, tag = "2")]
289    pub pagination:
290        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
291}
292impl ::prost::Name for QueryAttestationsResponse {
293    const NAME: &'static str = "QueryAttestationsResponse";
294    const PACKAGE: &'static str = "side.dlc";
295    fn full_name() -> ::prost::alloc::string::String {
296        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
297    }
298}
299#[allow(clippy::derive_partial_eq_without_eq)]
300#[derive(Clone, PartialEq, ::prost::Message)]
301pub struct QueryAgenciesRequest {
302    #[prost(enumeration = "AgencyStatus", tag = "1")]
303    pub status: i32,
304    #[prost(message, optional, tag = "2")]
305    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
306}
307impl ::prost::Name for QueryAgenciesRequest {
308    const NAME: &'static str = "QueryAgenciesRequest";
309    const PACKAGE: &'static str = "side.dlc";
310    fn full_name() -> ::prost::alloc::string::String {
311        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
312    }
313}
314#[allow(clippy::derive_partial_eq_without_eq)]
315#[derive(Clone, PartialEq, ::prost::Message)]
316pub struct QueryAgenciesResponse {
317    #[prost(message, repeated, tag = "1")]
318    pub agencies: ::prost::alloc::vec::Vec<Agency>,
319    #[prost(message, optional, tag = "2")]
320    pub pagination:
321        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
322}
323impl ::prost::Name for QueryAgenciesResponse {
324    const NAME: &'static str = "QueryAgenciesResponse";
325    const PACKAGE: &'static str = "side.dlc";
326    fn full_name() -> ::prost::alloc::string::String {
327        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
328    }
329}
330#[allow(clippy::derive_partial_eq_without_eq)]
331#[derive(Clone, PartialEq, ::prost::Message)]
332pub struct QueryOraclesRequest {
333    #[prost(enumeration = "DlcOracleStatus", tag = "1")]
334    pub status: i32,
335    #[prost(message, optional, tag = "2")]
336    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
337}
338impl ::prost::Name for QueryOraclesRequest {
339    const NAME: &'static str = "QueryOraclesRequest";
340    const PACKAGE: &'static str = "side.dlc";
341    fn full_name() -> ::prost::alloc::string::String {
342        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
343    }
344}
345#[allow(clippy::derive_partial_eq_without_eq)]
346#[derive(Clone, PartialEq, ::prost::Message)]
347pub struct QueryOraclesResponse {
348    #[prost(message, repeated, tag = "1")]
349    pub oracles: ::prost::alloc::vec::Vec<DlcOracle>,
350    #[prost(message, optional, tag = "2")]
351    pub pagination:
352        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
353}
354impl ::prost::Name for QueryOraclesResponse {
355    const NAME: &'static str = "QueryOraclesResponse";
356    const PACKAGE: &'static str = "side.dlc";
357    fn full_name() -> ::prost::alloc::string::String {
358        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
359    }
360}
361#[allow(clippy::derive_partial_eq_without_eq)]
362#[derive(Clone, PartialEq, ::prost::Message)]
363pub struct QueryCountNoncesRequest {}
364impl ::prost::Name for QueryCountNoncesRequest {
365    const NAME: &'static str = "QueryCountNoncesRequest";
366    const PACKAGE: &'static str = "side.dlc";
367    fn full_name() -> ::prost::alloc::string::String {
368        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
369    }
370}
371/// QueryCountNoncesResponse is response type for the Query/CountNonces RPC method.
372/// counts should use the same order as recommended oracles in Params
373#[allow(clippy::derive_partial_eq_without_eq)]
374#[derive(Clone, PartialEq, ::prost::Message)]
375pub struct QueryCountNoncesResponse {
376    /// qty of nonce in the cache queue
377    #[prost(uint32, repeated, tag = "1")]
378    pub counts: ::prost::alloc::vec::Vec<u32>,
379}
380impl ::prost::Name for QueryCountNoncesResponse {
381    const NAME: &'static str = "QueryCountNoncesResponse";
382    const PACKAGE: &'static str = "side.dlc";
383    fn full_name() -> ::prost::alloc::string::String {
384        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
385    }
386}
387#[allow(clippy::derive_partial_eq_without_eq)]
388#[derive(Clone, PartialEq, ::prost::Message)]
389pub struct QueryNonceRequest {
390    #[prost(uint64, tag = "1")]
391    pub oracle_id: u64,
392    #[prost(uint64, tag = "2")]
393    pub index: u64,
394}
395impl ::prost::Name for QueryNonceRequest {
396    const NAME: &'static str = "QueryNonceRequest";
397    const PACKAGE: &'static str = "side.dlc";
398    fn full_name() -> ::prost::alloc::string::String {
399        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
400    }
401}
402#[allow(clippy::derive_partial_eq_without_eq)]
403#[derive(Clone, PartialEq, ::prost::Message)]
404pub struct QueryNonceResponse {
405    #[prost(message, optional, tag = "1")]
406    pub nonce: ::core::option::Option<DlcNonce>,
407}
408impl ::prost::Name for QueryNonceResponse {
409    const NAME: &'static str = "QueryNonceResponse";
410    const PACKAGE: &'static str = "side.dlc";
411    fn full_name() -> ::prost::alloc::string::String {
412        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
413    }
414}
415#[allow(clippy::derive_partial_eq_without_eq)]
416#[derive(Clone, PartialEq, ::prost::Message)]
417pub struct QueryNoncesRequest {
418    #[prost(uint64, tag = "1")]
419    pub oracle_id: u64,
420    #[prost(message, optional, tag = "2")]
421    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
422}
423impl ::prost::Name for QueryNoncesRequest {
424    const NAME: &'static str = "QueryNoncesRequest";
425    const PACKAGE: &'static str = "side.dlc";
426    fn full_name() -> ::prost::alloc::string::String {
427        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
428    }
429}
430#[allow(clippy::derive_partial_eq_without_eq)]
431#[derive(Clone, PartialEq, ::prost::Message)]
432pub struct QueryNoncesResponse {
433    #[prost(message, repeated, tag = "1")]
434    pub nonces: ::prost::alloc::vec::Vec<DlcNonce>,
435    #[prost(message, optional, tag = "2")]
436    pub pagination:
437        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
438}
439impl ::prost::Name for QueryNoncesResponse {
440    const NAME: &'static str = "QueryNoncesResponse";
441    const PACKAGE: &'static str = "side.dlc";
442    fn full_name() -> ::prost::alloc::string::String {
443        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
444    }
445}
446/// QueryEventRequest is request type for the Query/Event RPC method.
447#[allow(clippy::derive_partial_eq_without_eq)]
448#[derive(Clone, PartialEq, ::prost::Message)]
449pub struct QueryEventRequest {
450    #[prost(uint64, tag = "1")]
451    pub id: u64,
452}
453impl ::prost::Name for QueryEventRequest {
454    const NAME: &'static str = "QueryEventRequest";
455    const PACKAGE: &'static str = "side.dlc";
456    fn full_name() -> ::prost::alloc::string::String {
457        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
458    }
459}
460/// QueryEventResponse is response type for the Query/Event RPC method.
461#[allow(clippy::derive_partial_eq_without_eq)]
462#[derive(Clone, PartialEq, ::prost::Message)]
463pub struct QueryEventResponse {
464    #[prost(message, optional, tag = "1")]
465    pub event: ::core::option::Option<DlcPriceEvent>,
466}
467impl ::prost::Name for QueryEventResponse {
468    const NAME: &'static str = "QueryEventResponse";
469    const PACKAGE: &'static str = "side.dlc";
470    fn full_name() -> ::prost::alloc::string::String {
471        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
472    }
473}
474/// QueryEventsRequest is request type for the Query/Events RPC method.
475#[allow(clippy::derive_partial_eq_without_eq)]
476#[derive(Clone, PartialEq, ::prost::Message)]
477pub struct QueryEventsRequest {
478    #[prost(bool, tag = "1")]
479    pub triggered: bool,
480    #[prost(message, optional, tag = "2")]
481    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
482}
483impl ::prost::Name for QueryEventsRequest {
484    const NAME: &'static str = "QueryEventsRequest";
485    const PACKAGE: &'static str = "side.dlc";
486    fn full_name() -> ::prost::alloc::string::String {
487        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
488    }
489}
490/// QueryEventsResponse is response type for the Query/Events RPC method.
491#[allow(clippy::derive_partial_eq_without_eq)]
492#[derive(Clone, PartialEq, ::prost::Message)]
493pub struct QueryEventsResponse {
494    #[prost(message, repeated, tag = "1")]
495    pub events: ::prost::alloc::vec::Vec<DlcPriceEvent>,
496    #[prost(message, optional, tag = "2")]
497    pub pagination:
498        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
499}
500impl ::prost::Name for QueryEventsResponse {
501    const NAME: &'static str = "QueryEventsResponse";
502    const PACKAGE: &'static str = "side.dlc";
503    fn full_name() -> ::prost::alloc::string::String {
504        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
505    }
506}
507/// QueryPriceRequest is request type for the Query/Price RPC method.
508#[allow(clippy::derive_partial_eq_without_eq)]
509#[derive(Clone, PartialEq, ::prost::Message)]
510pub struct QueryPriceRequest {
511    #[prost(string, tag = "1")]
512    pub symbol: ::prost::alloc::string::String,
513}
514impl ::prost::Name for QueryPriceRequest {
515    const NAME: &'static str = "QueryPriceRequest";
516    const PACKAGE: &'static str = "side.dlc";
517    fn full_name() -> ::prost::alloc::string::String {
518        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
519    }
520}
521/// QueryPriceResponse is response type for the Query/Price RPC method.
522#[allow(clippy::derive_partial_eq_without_eq)]
523#[derive(Clone, PartialEq, ::prost::Message)]
524pub struct QueryPriceResponse {
525    #[prost(uint64, tag = "1")]
526    pub price: u64,
527}
528impl ::prost::Name for QueryPriceResponse {
529    const NAME: &'static str = "QueryPriceResponse";
530    const PACKAGE: &'static str = "side.dlc";
531    fn full_name() -> ::prost::alloc::string::String {
532        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
533    }
534}
535/// QueryParamsRequest is request type for the Query/Params RPC method.
536#[allow(clippy::derive_partial_eq_without_eq)]
537#[derive(Clone, PartialEq, ::prost::Message)]
538pub struct QueryParamsRequest {}
539impl ::prost::Name for QueryParamsRequest {
540    const NAME: &'static str = "QueryParamsRequest";
541    const PACKAGE: &'static str = "side.dlc";
542    fn full_name() -> ::prost::alloc::string::String {
543        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
544    }
545}
546/// QueryParamsResponse is response type for the Query/Params RPC method.
547#[allow(clippy::derive_partial_eq_without_eq)]
548#[derive(Clone, PartialEq, ::prost::Message)]
549pub struct QueryParamsResponse {
550    #[prost(message, optional, tag = "1")]
551    pub params: ::core::option::Option<Params>,
552}
553impl ::prost::Name for QueryParamsResponse {
554    const NAME: &'static str = "QueryParamsResponse";
555    const PACKAGE: &'static str = "side.dlc";
556    fn full_name() -> ::prost::alloc::string::String {
557        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
558    }
559}
560#[allow(clippy::derive_partial_eq_without_eq)]
561#[derive(Clone, PartialEq, ::prost::Message)]
562pub struct MsgSubmitAgencyPubKey {
563    #[prost(string, tag = "1")]
564    pub sender: ::prost::alloc::string::String,
565    #[prost(string, tag = "2")]
566    pub pub_key: ::prost::alloc::string::String,
567    #[prost(uint64, tag = "3")]
568    pub agency_id: u64,
569    #[prost(string, tag = "4")]
570    pub agency_pubkey: ::prost::alloc::string::String,
571    #[prost(string, tag = "5")]
572    pub signature: ::prost::alloc::string::String,
573}
574impl ::prost::Name for MsgSubmitAgencyPubKey {
575    const NAME: &'static str = "MsgSubmitAgencyPubKey";
576    const PACKAGE: &'static str = "side.dlc";
577    fn full_name() -> ::prost::alloc::string::String {
578        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
579    }
580}
581#[allow(clippy::derive_partial_eq_without_eq)]
582#[derive(Clone, PartialEq, ::prost::Message)]
583pub struct MsgSubmitAgencyPubKeyResponse {}
584impl ::prost::Name for MsgSubmitAgencyPubKeyResponse {
585    const NAME: &'static str = "MsgSubmitAgencyPubKeyResponse";
586    const PACKAGE: &'static str = "side.dlc";
587    fn full_name() -> ::prost::alloc::string::String {
588        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
589    }
590}
591#[allow(clippy::derive_partial_eq_without_eq)]
592#[derive(Clone, PartialEq, ::prost::Message)]
593pub struct MsgSubmitOraclePubKey {
594    #[prost(string, tag = "1")]
595    pub sender: ::prost::alloc::string::String,
596    #[prost(string, tag = "2")]
597    pub pub_key: ::prost::alloc::string::String,
598    #[prost(uint64, tag = "3")]
599    pub oracle_id: u64,
600    #[prost(string, tag = "4")]
601    pub oracle_pubkey: ::prost::alloc::string::String,
602    #[prost(string, tag = "5")]
603    pub signature: ::prost::alloc::string::String,
604}
605impl ::prost::Name for MsgSubmitOraclePubKey {
606    const NAME: &'static str = "MsgSubmitOraclePubKey";
607    const PACKAGE: &'static str = "side.dlc";
608    fn full_name() -> ::prost::alloc::string::String {
609        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
610    }
611}
612#[allow(clippy::derive_partial_eq_without_eq)]
613#[derive(Clone, PartialEq, ::prost::Message)]
614pub struct MsgSubmitOraclePubKeyResponse {}
615impl ::prost::Name for MsgSubmitOraclePubKeyResponse {
616    const NAME: &'static str = "MsgSubmitOraclePubKeyResponse";
617    const PACKAGE: &'static str = "side.dlc";
618    fn full_name() -> ::prost::alloc::string::String {
619        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
620    }
621}
622#[allow(clippy::derive_partial_eq_without_eq)]
623#[derive(Clone, PartialEq, ::prost::Message)]
624pub struct MsgSubmitNonce {
625    #[prost(string, tag = "1")]
626    pub sender: ::prost::alloc::string::String,
627    #[prost(string, tag = "2")]
628    pub nonce: ::prost::alloc::string::String,
629    #[prost(string, tag = "3")]
630    pub oracle_pubkey: ::prost::alloc::string::String,
631    #[prost(string, tag = "4")]
632    pub signature: ::prost::alloc::string::String,
633}
634impl ::prost::Name for MsgSubmitNonce {
635    const NAME: &'static str = "MsgSubmitNonce";
636    const PACKAGE: &'static str = "side.dlc";
637    fn full_name() -> ::prost::alloc::string::String {
638        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
639    }
640}
641#[allow(clippy::derive_partial_eq_without_eq)]
642#[derive(Clone, PartialEq, ::prost::Message)]
643pub struct MsgSubmitNonceResponse {}
644impl ::prost::Name for MsgSubmitNonceResponse {
645    const NAME: &'static str = "MsgSubmitNonceResponse";
646    const PACKAGE: &'static str = "side.dlc";
647    fn full_name() -> ::prost::alloc::string::String {
648        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
649    }
650}
651#[allow(clippy::derive_partial_eq_without_eq)]
652#[derive(Clone, PartialEq, ::prost::Message)]
653pub struct MsgSubmitAttestation {
654    #[prost(string, tag = "1")]
655    pub sender: ::prost::alloc::string::String,
656    #[prost(uint64, tag = "2")]
657    pub event_id: u64,
658    #[prost(string, tag = "3")]
659    pub signature: ::prost::alloc::string::String,
660}
661impl ::prost::Name for MsgSubmitAttestation {
662    const NAME: &'static str = "MsgSubmitAttestation";
663    const PACKAGE: &'static str = "side.dlc";
664    fn full_name() -> ::prost::alloc::string::String {
665        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
666    }
667}
668#[allow(clippy::derive_partial_eq_without_eq)]
669#[derive(Clone, PartialEq, ::prost::Message)]
670pub struct MsgSubmitAttestationResponse {}
671impl ::prost::Name for MsgSubmitAttestationResponse {
672    const NAME: &'static str = "MsgSubmitAttestationResponse";
673    const PACKAGE: &'static str = "side.dlc";
674    fn full_name() -> ::prost::alloc::string::String {
675        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
676    }
677}
678#[allow(clippy::derive_partial_eq_without_eq)]
679#[derive(Clone, PartialEq, ::prost::Message)]
680pub struct MsgCreateOracle {
681    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
682    #[prost(string, tag = "1")]
683    pub authority: ::prost::alloc::string::String,
684    #[prost(string, repeated, tag = "2")]
685    pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
686    #[prost(uint32, tag = "3")]
687    pub threshold: u32,
688}
689impl ::prost::Name for MsgCreateOracle {
690    const NAME: &'static str = "MsgCreateOracle";
691    const PACKAGE: &'static str = "side.dlc";
692    fn full_name() -> ::prost::alloc::string::String {
693        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
694    }
695}
696#[allow(clippy::derive_partial_eq_without_eq)]
697#[derive(Clone, PartialEq, ::prost::Message)]
698pub struct MsgCreateOracleResponse {}
699impl ::prost::Name for MsgCreateOracleResponse {
700    const NAME: &'static str = "MsgCreateOracleResponse";
701    const PACKAGE: &'static str = "side.dlc";
702    fn full_name() -> ::prost::alloc::string::String {
703        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
704    }
705}
706#[allow(clippy::derive_partial_eq_without_eq)]
707#[derive(Clone, PartialEq, ::prost::Message)]
708pub struct MsgCreateAgency {
709    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
710    #[prost(string, tag = "1")]
711    pub authority: ::prost::alloc::string::String,
712    #[prost(string, repeated, tag = "2")]
713    pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
714    #[prost(uint32, tag = "3")]
715    pub threshold: u32,
716}
717impl ::prost::Name for MsgCreateAgency {
718    const NAME: &'static str = "MsgCreateAgency";
719    const PACKAGE: &'static str = "side.dlc";
720    fn full_name() -> ::prost::alloc::string::String {
721        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
722    }
723}
724#[allow(clippy::derive_partial_eq_without_eq)]
725#[derive(Clone, PartialEq, ::prost::Message)]
726pub struct MsgCreateAgencyResponse {}
727impl ::prost::Name for MsgCreateAgencyResponse {
728    const NAME: &'static str = "MsgCreateAgencyResponse";
729    const PACKAGE: &'static str = "side.dlc";
730    fn full_name() -> ::prost::alloc::string::String {
731        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
732    }
733}
734/// MsgUpdateParams is the Msg/UpdateParams request type.
735///
736/// Since: cosmos-sdk 0.47
737#[allow(clippy::derive_partial_eq_without_eq)]
738#[derive(Clone, PartialEq, ::prost::Message)]
739pub struct MsgUpdateParams {
740    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
741    #[prost(string, tag = "1")]
742    pub authority: ::prost::alloc::string::String,
743    /// params defines the x/dlc parameters to be updated.
744    ///
745    /// NOTE: All parameters must be supplied.
746    #[prost(message, optional, tag = "2")]
747    pub params: ::core::option::Option<Params>,
748}
749impl ::prost::Name for MsgUpdateParams {
750    const NAME: &'static str = "MsgUpdateParams";
751    const PACKAGE: &'static str = "side.dlc";
752    fn full_name() -> ::prost::alloc::string::String {
753        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
754    }
755}
756/// MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
757///
758/// Since: cosmos-sdk 0.47
759#[allow(clippy::derive_partial_eq_without_eq)]
760#[derive(Clone, PartialEq, ::prost::Message)]
761pub struct MsgUpdateParamsResponse {}
762impl ::prost::Name for MsgUpdateParamsResponse {
763    const NAME: &'static str = "MsgUpdateParamsResponse";
764    const PACKAGE: &'static str = "side.dlc";
765    fn full_name() -> ::prost::alloc::string::String {
766        ::prost::alloc::format!("side.dlc.{}", Self::NAME)
767    }
768}
769include!("side.dlc.serde.rs");
770include!("side.dlc.tonic.rs");
771// @@protoc_insertion_point(module)