1#[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 = "bitway.dlc";
23 fn full_name() -> ::prost::alloc::string::String {
24 ::prost::alloc::format!("bitway.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 = "bitway.dlc";
46 fn full_name() -> ::prost::alloc::string::String {
47 ::prost::alloc::format!("bitway.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 = "bitway.dlc";
65 fn full_name() -> ::prost::alloc::string::String {
66 ::prost::alloc::format!("bitway.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 = "bitway.dlc";
96 fn full_name() -> ::prost::alloc::string::String {
97 ::prost::alloc::format!("bitway.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 = "bitway.dlc";
119 fn full_name() -> ::prost::alloc::string::String {
120 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
121 }
122}
123#[allow(clippy::derive_partial_eq_without_eq)]
125#[derive(Clone, PartialEq, ::prost::Message)]
126pub struct OracleParticipantLiveness {
127 #[prost(string, tag = "1")]
129 pub consensus_pubkey: ::prost::alloc::string::String,
130 #[prost(bool, tag = "2")]
132 pub is_alive: bool,
133 #[prost(uint64, tag = "3")]
135 pub last_dkg_id: u64,
136 #[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 = "bitway.dlc";
143 fn full_name() -> ::prost::alloc::string::String {
144 ::prost::alloc::format!("bitway.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 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 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 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 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 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 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#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
233#[repr(i32)]
234pub enum SigningIntent {
235 Default = 0,
236}
237impl SigningIntent {
238 pub fn as_str_name(&self) -> &'static str {
243 match self {
244 SigningIntent::Default => "SIGNING_INTENT_DEFAULT",
245 }
246 }
247 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#[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 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 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#[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(message, optional, tag = "4")]
299 pub nonce_generation_timeout_duration:
300 ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
301 #[prost(string, repeated, tag = "5")]
302 pub allowed_oracle_participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
303 #[prost(uint32, tag = "6")]
304 pub oracle_participant_num: u32,
305 #[prost(uint32, tag = "7")]
306 pub oracle_participant_threshold: u32,
307}
308impl ::prost::Name for Params {
309 const NAME: &'static str = "Params";
310 const PACKAGE: &'static str = "bitway.dlc";
311 fn full_name() -> ::prost::alloc::string::String {
312 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
313 }
314}
315#[allow(clippy::derive_partial_eq_without_eq)]
317#[derive(Clone, PartialEq, ::prost::Message)]
318pub struct GenesisState {
319 #[prost(message, optional, tag = "1")]
320 pub params: ::core::option::Option<Params>,
321 #[prost(message, repeated, tag = "2")]
322 pub events: ::prost::alloc::vec::Vec<DlcEvent>,
323 #[prost(message, repeated, tag = "3")]
324 pub attestations: ::prost::alloc::vec::Vec<DlcAttestation>,
325}
326impl ::prost::Name for GenesisState {
327 const NAME: &'static str = "GenesisState";
328 const PACKAGE: &'static str = "bitway.dlc";
329 fn full_name() -> ::prost::alloc::string::String {
330 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
331 }
332}
333#[allow(clippy::derive_partial_eq_without_eq)]
334#[derive(Clone, PartialEq, ::prost::Message)]
335pub struct QueryAttestationRequest {
336 #[prost(uint64, tag = "1")]
337 pub id: u64,
338}
339impl ::prost::Name for QueryAttestationRequest {
340 const NAME: &'static str = "QueryAttestationRequest";
341 const PACKAGE: &'static str = "bitway.dlc";
342 fn full_name() -> ::prost::alloc::string::String {
343 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
344 }
345}
346#[allow(clippy::derive_partial_eq_without_eq)]
347#[derive(Clone, PartialEq, ::prost::Message)]
348pub struct QueryAttestationResponse {
349 #[prost(message, optional, tag = "1")]
350 pub attestation: ::core::option::Option<DlcAttestation>,
351}
352impl ::prost::Name for QueryAttestationResponse {
353 const NAME: &'static str = "QueryAttestationResponse";
354 const PACKAGE: &'static str = "bitway.dlc";
355 fn full_name() -> ::prost::alloc::string::String {
356 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
357 }
358}
359#[allow(clippy::derive_partial_eq_without_eq)]
360#[derive(Clone, PartialEq, ::prost::Message)]
361pub struct QueryAttestationByEventRequest {
362 #[prost(uint64, tag = "1")]
363 pub event_id: u64,
364}
365impl ::prost::Name for QueryAttestationByEventRequest {
366 const NAME: &'static str = "QueryAttestationByEventRequest";
367 const PACKAGE: &'static str = "bitway.dlc";
368 fn full_name() -> ::prost::alloc::string::String {
369 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
370 }
371}
372#[allow(clippy::derive_partial_eq_without_eq)]
373#[derive(Clone, PartialEq, ::prost::Message)]
374pub struct QueryAttestationByEventResponse {
375 #[prost(message, optional, tag = "1")]
376 pub attestation: ::core::option::Option<DlcAttestation>,
377}
378impl ::prost::Name for QueryAttestationByEventResponse {
379 const NAME: &'static str = "QueryAttestationByEventResponse";
380 const PACKAGE: &'static str = "bitway.dlc";
381 fn full_name() -> ::prost::alloc::string::String {
382 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
383 }
384}
385#[allow(clippy::derive_partial_eq_without_eq)]
386#[derive(Clone, PartialEq, ::prost::Message)]
387pub struct QueryAttestationsRequest {
388 #[prost(message, optional, tag = "1")]
389 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
390}
391impl ::prost::Name for QueryAttestationsRequest {
392 const NAME: &'static str = "QueryAttestationsRequest";
393 const PACKAGE: &'static str = "bitway.dlc";
394 fn full_name() -> ::prost::alloc::string::String {
395 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
396 }
397}
398#[allow(clippy::derive_partial_eq_without_eq)]
399#[derive(Clone, PartialEq, ::prost::Message)]
400pub struct QueryAttestationsResponse {
401 #[prost(message, repeated, tag = "1")]
402 pub attestations: ::prost::alloc::vec::Vec<DlcAttestation>,
403 #[prost(message, optional, tag = "2")]
404 pub pagination:
405 ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
406}
407impl ::prost::Name for QueryAttestationsResponse {
408 const NAME: &'static str = "QueryAttestationsResponse";
409 const PACKAGE: &'static str = "bitway.dlc";
410 fn full_name() -> ::prost::alloc::string::String {
411 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
412 }
413}
414#[allow(clippy::derive_partial_eq_without_eq)]
415#[derive(Clone, PartialEq, ::prost::Message)]
416pub struct QueryDcmRequest {
417 #[prost(uint64, tag = "1")]
418 pub id: u64,
419 #[prost(string, tag = "2")]
420 pub pub_key: ::prost::alloc::string::String,
421}
422impl ::prost::Name for QueryDcmRequest {
423 const NAME: &'static str = "QueryDCMRequest";
424 const PACKAGE: &'static str = "bitway.dlc";
425 fn full_name() -> ::prost::alloc::string::String {
426 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
427 }
428}
429#[allow(clippy::derive_partial_eq_without_eq)]
430#[derive(Clone, PartialEq, ::prost::Message)]
431pub struct QueryDcmResponse {
432 #[prost(message, optional, tag = "1")]
433 pub dcm: ::core::option::Option<Dcm>,
434 #[prost(string, repeated, tag = "2")]
435 pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
436}
437impl ::prost::Name for QueryDcmResponse {
438 const NAME: &'static str = "QueryDCMResponse";
439 const PACKAGE: &'static str = "bitway.dlc";
440 fn full_name() -> ::prost::alloc::string::String {
441 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
442 }
443}
444#[allow(clippy::derive_partial_eq_without_eq)]
445#[derive(Clone, PartialEq, ::prost::Message)]
446pub struct QueryDcMsRequest {
447 #[prost(enumeration = "DcmStatus", tag = "1")]
448 pub status: i32,
449 #[prost(message, optional, tag = "2")]
450 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
451}
452impl ::prost::Name for QueryDcMsRequest {
453 const NAME: &'static str = "QueryDCMsRequest";
454 const PACKAGE: &'static str = "bitway.dlc";
455 fn full_name() -> ::prost::alloc::string::String {
456 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
457 }
458}
459#[allow(clippy::derive_partial_eq_without_eq)]
460#[derive(Clone, PartialEq, ::prost::Message)]
461pub struct QueryDcMsResponse {
462 #[prost(message, repeated, tag = "1")]
463 pub dcms: ::prost::alloc::vec::Vec<Dcm>,
464 #[prost(message, optional, tag = "2")]
465 pub pagination:
466 ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
467}
468impl ::prost::Name for QueryDcMsResponse {
469 const NAME: &'static str = "QueryDCMsResponse";
470 const PACKAGE: &'static str = "bitway.dlc";
471 fn full_name() -> ::prost::alloc::string::String {
472 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
473 }
474}
475#[allow(clippy::derive_partial_eq_without_eq)]
476#[derive(Clone, PartialEq, ::prost::Message)]
477pub struct QueryOracleRequest {
478 #[prost(uint64, tag = "1")]
479 pub id: u64,
480 #[prost(string, tag = "2")]
481 pub pub_key: ::prost::alloc::string::String,
482}
483impl ::prost::Name for QueryOracleRequest {
484 const NAME: &'static str = "QueryOracleRequest";
485 const PACKAGE: &'static str = "bitway.dlc";
486 fn full_name() -> ::prost::alloc::string::String {
487 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
488 }
489}
490#[allow(clippy::derive_partial_eq_without_eq)]
491#[derive(Clone, PartialEq, ::prost::Message)]
492pub struct QueryOracleResponse {
493 #[prost(message, optional, tag = "1")]
494 pub oracle: ::core::option::Option<DlcOracle>,
495 #[prost(string, repeated, tag = "2")]
496 pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
497}
498impl ::prost::Name for QueryOracleResponse {
499 const NAME: &'static str = "QueryOracleResponse";
500 const PACKAGE: &'static str = "bitway.dlc";
501 fn full_name() -> ::prost::alloc::string::String {
502 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
503 }
504}
505#[allow(clippy::derive_partial_eq_without_eq)]
506#[derive(Clone, PartialEq, ::prost::Message)]
507pub struct QueryOraclesRequest {
508 #[prost(enumeration = "DlcOracleStatus", tag = "1")]
509 pub status: i32,
510 #[prost(message, optional, tag = "2")]
511 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
512}
513impl ::prost::Name for QueryOraclesRequest {
514 const NAME: &'static str = "QueryOraclesRequest";
515 const PACKAGE: &'static str = "bitway.dlc";
516 fn full_name() -> ::prost::alloc::string::String {
517 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
518 }
519}
520#[allow(clippy::derive_partial_eq_without_eq)]
521#[derive(Clone, PartialEq, ::prost::Message)]
522pub struct QueryOraclesResponse {
523 #[prost(message, repeated, tag = "1")]
524 pub oracles: ::prost::alloc::vec::Vec<DlcOracle>,
525 #[prost(message, optional, tag = "2")]
526 pub pagination:
527 ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
528}
529impl ::prost::Name for QueryOraclesResponse {
530 const NAME: &'static str = "QueryOraclesResponse";
531 const PACKAGE: &'static str = "bitway.dlc";
532 fn full_name() -> ::prost::alloc::string::String {
533 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
534 }
535}
536#[allow(clippy::derive_partial_eq_without_eq)]
537#[derive(Clone, PartialEq, ::prost::Message)]
538pub struct QueryNoncesRequest {
539 #[prost(uint64, tag = "1")]
540 pub oracle_id: u64,
541 #[prost(message, optional, tag = "2")]
542 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
543}
544impl ::prost::Name for QueryNoncesRequest {
545 const NAME: &'static str = "QueryNoncesRequest";
546 const PACKAGE: &'static str = "bitway.dlc";
547 fn full_name() -> ::prost::alloc::string::String {
548 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
549 }
550}
551#[allow(clippy::derive_partial_eq_without_eq)]
552#[derive(Clone, PartialEq, ::prost::Message)]
553pub struct QueryNoncesResponse {
554 #[prost(message, repeated, tag = "1")]
555 pub nonces: ::prost::alloc::vec::Vec<DlcNonce>,
556 #[prost(message, optional, tag = "2")]
557 pub pagination:
558 ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
559}
560impl ::prost::Name for QueryNoncesResponse {
561 const NAME: &'static str = "QueryNoncesResponse";
562 const PACKAGE: &'static str = "bitway.dlc";
563 fn full_name() -> ::prost::alloc::string::String {
564 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
565 }
566}
567#[allow(clippy::derive_partial_eq_without_eq)]
569#[derive(Clone, PartialEq, ::prost::Message)]
570pub struct QueryEventRequest {
571 #[prost(uint64, tag = "1")]
572 pub id: u64,
573}
574impl ::prost::Name for QueryEventRequest {
575 const NAME: &'static str = "QueryEventRequest";
576 const PACKAGE: &'static str = "bitway.dlc";
577 fn full_name() -> ::prost::alloc::string::String {
578 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
579 }
580}
581#[allow(clippy::derive_partial_eq_without_eq)]
583#[derive(Clone, PartialEq, ::prost::Message)]
584pub struct QueryEventResponse {
585 #[prost(message, optional, tag = "1")]
586 pub event: ::core::option::Option<DlcEvent>,
587}
588impl ::prost::Name for QueryEventResponse {
589 const NAME: &'static str = "QueryEventResponse";
590 const PACKAGE: &'static str = "bitway.dlc";
591 fn full_name() -> ::prost::alloc::string::String {
592 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
593 }
594}
595#[allow(clippy::derive_partial_eq_without_eq)]
597#[derive(Clone, PartialEq, ::prost::Message)]
598pub struct QueryEventsRequest {
599 #[prost(bool, tag = "1")]
600 pub triggered: bool,
601 #[prost(message, optional, tag = "2")]
602 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
603}
604impl ::prost::Name for QueryEventsRequest {
605 const NAME: &'static str = "QueryEventsRequest";
606 const PACKAGE: &'static str = "bitway.dlc";
607 fn full_name() -> ::prost::alloc::string::String {
608 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
609 }
610}
611#[allow(clippy::derive_partial_eq_without_eq)]
613#[derive(Clone, PartialEq, ::prost::Message)]
614pub struct QueryEventsResponse {
615 #[prost(message, repeated, tag = "1")]
616 pub events: ::prost::alloc::vec::Vec<DlcEvent>,
617 #[prost(message, optional, tag = "2")]
618 pub pagination:
619 ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
620}
621impl ::prost::Name for QueryEventsResponse {
622 const NAME: &'static str = "QueryEventsResponse";
623 const PACKAGE: &'static str = "bitway.dlc";
624 fn full_name() -> ::prost::alloc::string::String {
625 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
626 }
627}
628#[allow(clippy::derive_partial_eq_without_eq)]
629#[derive(Clone, PartialEq, ::prost::Message)]
630pub struct QueryOracleParticipantLivenessRequest {
631 #[prost(string, tag = "1")]
632 pub consensus_pubkey: ::prost::alloc::string::String,
633 #[prost(bool, tag = "2")]
634 pub alive: bool,
635}
636impl ::prost::Name for QueryOracleParticipantLivenessRequest {
637 const NAME: &'static str = "QueryOracleParticipantLivenessRequest";
638 const PACKAGE: &'static str = "bitway.dlc";
639 fn full_name() -> ::prost::alloc::string::String {
640 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
641 }
642}
643#[allow(clippy::derive_partial_eq_without_eq)]
644#[derive(Clone, PartialEq, ::prost::Message)]
645pub struct QueryOracleParticipantLivenessResponse {
646 #[prost(message, repeated, tag = "1")]
647 pub participant_livenesses: ::prost::alloc::vec::Vec<OracleParticipantLiveness>,
648}
649impl ::prost::Name for QueryOracleParticipantLivenessResponse {
650 const NAME: &'static str = "QueryOracleParticipantLivenessResponse";
651 const PACKAGE: &'static str = "bitway.dlc";
652 fn full_name() -> ::prost::alloc::string::String {
653 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
654 }
655}
656#[allow(clippy::derive_partial_eq_without_eq)]
658#[derive(Clone, PartialEq, ::prost::Message)]
659pub struct QueryParamsRequest {}
660impl ::prost::Name for QueryParamsRequest {
661 const NAME: &'static str = "QueryParamsRequest";
662 const PACKAGE: &'static str = "bitway.dlc";
663 fn full_name() -> ::prost::alloc::string::String {
664 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
665 }
666}
667#[allow(clippy::derive_partial_eq_without_eq)]
669#[derive(Clone, PartialEq, ::prost::Message)]
670pub struct QueryParamsResponse {
671 #[prost(message, optional, tag = "1")]
672 pub params: ::core::option::Option<Params>,
673}
674impl ::prost::Name for QueryParamsResponse {
675 const NAME: &'static str = "QueryParamsResponse";
676 const PACKAGE: &'static str = "bitway.dlc";
677 fn full_name() -> ::prost::alloc::string::String {
678 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
679 }
680}
681#[allow(clippy::derive_partial_eq_without_eq)]
682#[derive(Clone, PartialEq, ::prost::Message)]
683pub struct MsgCreateDcm {
684 #[prost(string, tag = "1")]
686 pub authority: ::prost::alloc::string::String,
687 #[prost(string, repeated, tag = "2")]
688 pub participants: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
689 #[prost(uint32, tag = "3")]
690 pub threshold: u32,
691 #[prost(message, optional, tag = "4")]
692 pub timeout_duration: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
693}
694impl ::prost::Name for MsgCreateDcm {
695 const NAME: &'static str = "MsgCreateDCM";
696 const PACKAGE: &'static str = "bitway.dlc";
697 fn full_name() -> ::prost::alloc::string::String {
698 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
699 }
700}
701#[allow(clippy::derive_partial_eq_without_eq)]
702#[derive(Clone, PartialEq, ::prost::Message)]
703pub struct MsgCreateDcmResponse {}
704impl ::prost::Name for MsgCreateDcmResponse {
705 const NAME: &'static str = "MsgCreateDCMResponse";
706 const PACKAGE: &'static str = "bitway.dlc";
707 fn full_name() -> ::prost::alloc::string::String {
708 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
709 }
710}
711#[allow(clippy::derive_partial_eq_without_eq)]
715#[derive(Clone, PartialEq, ::prost::Message)]
716pub struct MsgUpdateParams {
717 #[prost(string, tag = "1")]
719 pub authority: ::prost::alloc::string::String,
720 #[prost(message, optional, tag = "2")]
724 pub params: ::core::option::Option<Params>,
725}
726impl ::prost::Name for MsgUpdateParams {
727 const NAME: &'static str = "MsgUpdateParams";
728 const PACKAGE: &'static str = "bitway.dlc";
729 fn full_name() -> ::prost::alloc::string::String {
730 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
731 }
732}
733#[allow(clippy::derive_partial_eq_without_eq)]
737#[derive(Clone, PartialEq, ::prost::Message)]
738pub struct MsgUpdateParamsResponse {}
739impl ::prost::Name for MsgUpdateParamsResponse {
740 const NAME: &'static str = "MsgUpdateParamsResponse";
741 const PACKAGE: &'static str = "bitway.dlc";
742 fn full_name() -> ::prost::alloc::string::String {
743 ::prost::alloc::format!("bitway.dlc.{}", Self::NAME)
744 }
745}
746include!("bitway.dlc.serde.rs");
747include!("bitway.dlc.tonic.rs");
748