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