4
4
pub struct DlcOracle {
5
5
#[ prost( uint64, tag = "1" ) ]
6
6
pub id : u64 ,
7
- #[ prost( string , tag = "2" ) ]
8
- pub desc : :: prost :: alloc :: string :: String ,
7
+ #[ prost( uint64 , tag = "2" ) ]
8
+ pub dkg_id : u64 ,
9
9
#[ prost( string, tag = "3" ) ]
10
+ pub desc : :: prost:: alloc:: string:: String ,
11
+ #[ prost( string, tag = "4" ) ]
10
12
pub pubkey : :: prost:: alloc:: string:: String ,
11
- #[ prost( uint64, tag = "4 " ) ]
13
+ #[ prost( uint64, tag = "5 " ) ]
12
14
pub nonce_index : u64 ,
13
- #[ prost( message, optional, tag = "5 " ) ]
15
+ #[ prost( message, optional, tag = "6 " ) ]
14
16
pub time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
15
- #[ prost( enumeration = "DlcOracleStatus" , tag = "6 " ) ]
17
+ #[ prost( enumeration = "DlcOracleStatus" , tag = "7 " ) ]
16
18
pub status : i32 ,
17
19
}
18
20
impl :: prost:: Name for DlcOracle {
@@ -27,13 +29,15 @@ impl ::prost::Name for DlcOracle {
27
29
pub struct Dcm {
28
30
#[ prost( uint64, tag = "1" ) ]
29
31
pub id : u64 ,
30
- #[ prost( string , tag = "2" ) ]
31
- pub desc : :: prost :: alloc :: string :: String ,
32
+ #[ prost( uint64 , tag = "2" ) ]
33
+ pub dkg_id : u64 ,
32
34
#[ prost( string, tag = "3" ) ]
35
+ pub desc : :: prost:: alloc:: string:: String ,
36
+ #[ prost( string, tag = "4" ) ]
33
37
pub pubkey : :: prost:: alloc:: string:: String ,
34
- #[ prost( message, optional, tag = "4 " ) ]
38
+ #[ prost( message, optional, tag = "5 " ) ]
35
39
pub time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
36
- #[ prost( enumeration = "DcmStatus" , tag = "5 " ) ]
40
+ #[ prost( enumeration = "DcmStatus" , tag = "6 " ) ]
37
41
pub status : i32 ,
38
42
}
39
43
impl :: prost:: Name for Dcm {
@@ -116,6 +120,30 @@ impl ::prost::Name for DlcAttestation {
116
120
:: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
117
121
}
118
122
}
123
+ /// Oracle participant liveness
124
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
125
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
126
+ pub 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
+ }
140
+ impl :: 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
+ }
119
147
#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
120
148
#[ repr( i32 ) ]
121
149
pub enum DlcOracleStatus {
@@ -382,6 +410,36 @@ impl ::prost::Name for QueryAttestationsResponse {
382
410
}
383
411
#[ allow( clippy:: derive_partial_eq_without_eq) ]
384
412
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
413
+ pub 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
+ }
419
+ impl :: 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 ) ]
428
+ pub 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
+ }
434
+ impl :: 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 ) ]
385
443
pub struct QueryDcMsRequest {
386
444
#[ prost( enumeration = "DcmStatus" , tag = "1" ) ]
387
445
pub status : i32 ,
@@ -413,6 +471,36 @@ impl ::prost::Name for QueryDcMsResponse {
413
471
}
414
472
#[ allow( clippy:: derive_partial_eq_without_eq) ]
415
473
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
474
+ pub 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
+ }
480
+ impl :: 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 ) ]
489
+ pub 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
+ }
495
+ impl :: 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 ) ]
416
504
pub struct QueryOraclesRequest {
417
505
#[ prost( enumeration = "DlcOracleStatus" , tag = "1" ) ]
418
506
pub status : i32 ,
@@ -588,6 +676,34 @@ impl ::prost::Name for QueryEventsResponse {
588
676
:: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
589
677
}
590
678
}
679
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
680
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
681
+ pub 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
+ }
687
+ impl :: 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 ) ]
696
+ pub struct QueryOracleParticipantLivenessResponse {
697
+ #[ prost( message, repeated, tag = "1" ) ]
698
+ pub participant_livenesses : :: prost:: alloc:: vec:: Vec < OracleParticipantLiveness > ,
699
+ }
700
+ impl :: 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
+ }
591
707
/// QueryParamsRequest is request type for the Query/Params RPC method.
592
708
#[ allow( clippy:: derive_partial_eq_without_eq) ]
593
709
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
0 commit comments