44pub struct DlcOracle {
55 #[ prost( uint64, tag = "1" ) ]
66 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 ,
99 #[ prost( string, tag = "3" ) ]
10+ pub desc : :: prost:: alloc:: string:: String ,
11+ #[ prost( string, tag = "4" ) ]
1012 pub pubkey : :: prost:: alloc:: string:: String ,
11- #[ prost( uint64, tag = "4 " ) ]
13+ #[ prost( uint64, tag = "5 " ) ]
1214 pub nonce_index : u64 ,
13- #[ prost( message, optional, tag = "5 " ) ]
15+ #[ prost( message, optional, tag = "6 " ) ]
1416 pub time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
15- #[ prost( enumeration = "DlcOracleStatus" , tag = "6 " ) ]
17+ #[ prost( enumeration = "DlcOracleStatus" , tag = "7 " ) ]
1618 pub status : i32 ,
1719}
1820impl :: prost:: Name for DlcOracle {
@@ -27,13 +29,15 @@ impl ::prost::Name for DlcOracle {
2729pub struct Dcm {
2830 #[ prost( uint64, tag = "1" ) ]
2931 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 ,
3234 #[ prost( string, tag = "3" ) ]
35+ pub desc : :: prost:: alloc:: string:: String ,
36+ #[ prost( string, tag = "4" ) ]
3337 pub pubkey : :: prost:: alloc:: string:: String ,
34- #[ prost( message, optional, tag = "4 " ) ]
38+ #[ prost( message, optional, tag = "5 " ) ]
3539 pub time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
36- #[ prost( enumeration = "DcmStatus" , tag = "5 " ) ]
40+ #[ prost( enumeration = "DcmStatus" , tag = "6 " ) ]
3741 pub status : i32 ,
3842}
3943impl :: prost:: Name for Dcm {
@@ -116,6 +120,30 @@ impl ::prost::Name for DlcAttestation {
116120 :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
117121 }
118122}
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+ }
119147#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
120148#[ repr( i32 ) ]
121149pub enum DlcOracleStatus {
@@ -382,6 +410,36 @@ impl ::prost::Name for QueryAttestationsResponse {
382410}
383411#[ allow( clippy:: derive_partial_eq_without_eq) ]
384412#[ 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 ) ]
385443pub struct QueryDcMsRequest {
386444 #[ prost( enumeration = "DcmStatus" , tag = "1" ) ]
387445 pub status : i32 ,
@@ -413,6 +471,36 @@ impl ::prost::Name for QueryDcMsResponse {
413471}
414472#[ allow( clippy:: derive_partial_eq_without_eq) ]
415473#[ 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 ) ]
416504pub struct QueryOraclesRequest {
417505 #[ prost( enumeration = "DlcOracleStatus" , tag = "1" ) ]
418506 pub status : i32 ,
@@ -588,6 +676,34 @@ impl ::prost::Name for QueryEventsResponse {
588676 :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
589677 }
590678}
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+ }
591707/// QueryParamsRequest is request type for the Query/Params RPC method.
592708#[ allow( clippy:: derive_partial_eq_without_eq) ]
593709#[ derive( Clone , PartialEq , :: prost:: Message ) ]
0 commit comments