@@ -6,17 +6,13 @@ pub struct DlcOracle {
66 pub id : u64 ,
77 #[ prost( string, tag = "2" ) ]
88 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" ) ]
9+ #[ prost( string, tag = "3" ) ]
1410 pub pubkey : :: prost:: alloc:: string:: String ,
15- #[ prost( uint64, tag = "6 " ) ]
11+ #[ prost( uint64, tag = "4 " ) ]
1612 pub nonce_index : u64 ,
17- #[ prost( message, optional, tag = "7 " ) ]
13+ #[ prost( message, optional, tag = "5 " ) ]
1814 pub time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
19- #[ prost( enumeration = "DlcOracleStatus" , tag = "8 " ) ]
15+ #[ prost( enumeration = "DlcOracleStatus" , tag = "6 " ) ]
2016 pub status : i32 ,
2117}
2218impl :: prost:: Name for DlcOracle {
@@ -33,15 +29,11 @@ pub struct Dcm {
3329 pub id : u64 ,
3430 #[ prost( string, tag = "2" ) ]
3531 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" ) ]
32+ #[ prost( string, tag = "3" ) ]
4133 pub pubkey : :: prost:: alloc:: string:: String ,
42- #[ prost( message, optional, tag = "6 " ) ]
34+ #[ prost( message, optional, tag = "4 " ) ]
4335 pub time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
44- #[ prost( enumeration = "DcmStatus" , tag = "7 " ) ]
36+ #[ prost( enumeration = "DcmStatus" , tag = "5 " ) ]
4537 pub status : i32 ,
4638}
4739impl :: prost:: Name for Dcm {
@@ -125,11 +117,8 @@ impl ::prost::Name for DlcAttestation {
125117#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
126118#[ repr( i32 ) ]
127119pub enum DlcOracleStatus {
128- OracleStatusPending = 0 ,
129- OracleStatusFailed = 1 ,
130- OracleStatusTimedout = 2 ,
131- OracleStatusEnable = 3 ,
132- OracleStatusDisable = 4 ,
120+ OracleStatusEnable = 0 ,
121+ OracleStatusDisable = 1 ,
133122}
134123impl DlcOracleStatus {
135124 /// String value of the enum field names used in the ProtoBuf definition.
@@ -138,19 +127,13 @@ impl DlcOracleStatus {
138127 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
139128 pub fn as_str_name ( & self ) -> & ' static str {
140129 match self {
141- DlcOracleStatus :: OracleStatusPending => "Oracle_Status_Pending" ,
142- DlcOracleStatus :: OracleStatusFailed => "Oracle_Status_Failed" ,
143- DlcOracleStatus :: OracleStatusTimedout => "Oracle_Status_Timedout" ,
144130 DlcOracleStatus :: OracleStatusEnable => "Oracle_status_Enable" ,
145131 DlcOracleStatus :: OracleStatusDisable => "Oracle_status_Disable" ,
146132 }
147133 }
148134 /// Creates an enum from field names used in the ProtoBuf definition.
149135 pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
150136 match value {
151- "Oracle_Status_Pending" => Some ( Self :: OracleStatusPending ) ,
152- "Oracle_Status_Failed" => Some ( Self :: OracleStatusFailed ) ,
153- "Oracle_Status_Timedout" => Some ( Self :: OracleStatusTimedout ) ,
154137 "Oracle_status_Enable" => Some ( Self :: OracleStatusEnable ) ,
155138 "Oracle_status_Disable" => Some ( Self :: OracleStatusDisable ) ,
156139 _ => None ,
@@ -160,11 +143,8 @@ impl DlcOracleStatus {
160143#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
161144#[ repr( i32 ) ]
162145pub enum DcmStatus {
163- Pending = 0 ,
164- Failed = 1 ,
165- Timedout = 2 ,
166- Enable = 3 ,
167- Disable = 4 ,
146+ Enable = 0 ,
147+ Disable = 1 ,
168148}
169149impl DcmStatus {
170150 /// String value of the enum field names used in the ProtoBuf definition.
@@ -173,19 +153,13 @@ impl DcmStatus {
173153 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
174154 pub fn as_str_name ( & self ) -> & ' static str {
175155 match self {
176- DcmStatus :: Pending => "DCM_Status_Pending" ,
177- DcmStatus :: Failed => "DCM_Status_Failed" ,
178- DcmStatus :: Timedout => "DCM_Status_Timedout" ,
179156 DcmStatus :: Enable => "DCM_status_Enable" ,
180157 DcmStatus :: Disable => "DCM_status_Disable" ,
181158 }
182159 }
183160 /// Creates an enum from field names used in the ProtoBuf definition.
184161 pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
185162 match value {
186- "DCM_Status_Pending" => Some ( Self :: Pending ) ,
187- "DCM_Status_Failed" => Some ( Self :: Failed ) ,
188- "DCM_Status_Timedout" => Some ( Self :: Timedout ) ,
189163 "DCM_status_Enable" => Some ( Self :: Enable ) ,
190164 "DCM_status_Disable" => Some ( Self :: Disable ) ,
191165 _ => None ,
@@ -224,6 +198,63 @@ impl DlcEventType {
224198 }
225199 }
226200}
201+ /// Signing intent
202+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
203+ #[ repr( i32 ) ]
204+ pub enum SigningIntent {
205+ Default = 0 ,
206+ }
207+ impl SigningIntent {
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+ SigningIntent :: Default => "SIGNING_INTENT_DEFAULT" ,
215+ }
216+ }
217+ /// Creates an enum from field names used in the ProtoBuf definition.
218+ pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
219+ match value {
220+ "SIGNING_INTENT_DEFAULT" => Some ( Self :: Default ) ,
221+ _ => None ,
222+ }
223+ }
224+ }
225+ /// DKG intent
226+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
227+ #[ repr( i32 ) ]
228+ pub enum DkgIntent {
229+ Default = 0 ,
230+ PriceEventNonce = 10000 ,
231+ DateEventNonce = 20000 ,
232+ LendingEventNonce = 30000 ,
233+ }
234+ impl DkgIntent {
235+ /// String value of the enum field names used in the ProtoBuf definition.
236+ ///
237+ /// The values are not transformed in any way and thus are considered stable
238+ /// (if the ProtoBuf definition does not change) and safe for programmatic use.
239+ pub fn as_str_name ( & self ) -> & ' static str {
240+ match self {
241+ DkgIntent :: Default => "DKG_INTENT_DEFAULT" ,
242+ DkgIntent :: PriceEventNonce => "DKG_INTENT_PRICE_EVENT_NONCE" ,
243+ DkgIntent :: DateEventNonce => "DKG_INTENT_DATE_EVENT_NONCE" ,
244+ DkgIntent :: LendingEventNonce => "DKG_INTENT_LENDING_EVENT_NONCE" ,
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+ "DKG_INTENT_DEFAULT" => Some ( Self :: Default ) ,
251+ "DKG_INTENT_PRICE_EVENT_NONCE" => Some ( Self :: PriceEventNonce ) ,
252+ "DKG_INTENT_DATE_EVENT_NONCE" => Some ( Self :: DateEventNonce ) ,
253+ "DKG_INTENT_LENDING_EVENT_NONCE" => Some ( Self :: LendingEventNonce ) ,
254+ _ => None ,
255+ }
256+ }
257+ }
227258#[ allow( clippy:: derive_partial_eq_without_eq) ]
228259#[ derive( Clone , PartialEq , :: prost:: Message ) ]
229260pub struct PriceInterval {
@@ -253,8 +284,12 @@ pub struct Params {
253284 pub date_interval : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Duration > ,
254285 #[ prost( uint32, tag = "5" ) ]
255286 pub lending_event_nonce_queue_size : u32 ,
256- #[ prost( message, optional, tag = "6" ) ]
257- pub dkg_timeout_period : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Duration > ,
287+ #[ prost( uint32, tag = "6" ) ]
288+ pub oracle_participant_base_num : u32 ,
289+ #[ prost( uint32, tag = "7" ) ]
290+ pub oracle_participant_num : u32 ,
291+ #[ prost( uint32, tag = "8" ) ]
292+ pub nonce_generation_batch_size : u32 ,
258293}
259294impl :: prost:: Name for Params {
260295 const NAME : & ' static str = "Params" ;
@@ -597,154 +632,6 @@ impl ::prost::Name for QueryParamsResponse {
597632}
598633#[ allow( clippy:: derive_partial_eq_without_eq) ]
599634#[ derive( Clone , PartialEq , :: prost:: Message ) ]
600- pub struct MsgSubmitDcmPubKey {
601- #[ prost( string, tag = "1" ) ]
602- pub sender : :: prost:: alloc:: string:: String ,
603- #[ prost( string, tag = "2" ) ]
604- pub pub_key : :: prost:: alloc:: string:: String ,
605- #[ prost( uint64, tag = "3" ) ]
606- pub dcm_id : u64 ,
607- #[ prost( string, tag = "4" ) ]
608- pub dcm_pubkey : :: prost:: alloc:: string:: String ,
609- #[ prost( string, tag = "5" ) ]
610- pub signature : :: prost:: alloc:: string:: String ,
611- }
612- impl :: prost:: Name for MsgSubmitDcmPubKey {
613- const NAME : & ' static str = "MsgSubmitDCMPubKey" ;
614- const PACKAGE : & ' static str = "side.dlc" ;
615- fn full_name ( ) -> :: prost:: alloc:: string:: String {
616- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
617- }
618- }
619- #[ allow( clippy:: derive_partial_eq_without_eq) ]
620- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
621- pub struct MsgSubmitDcmPubKeyResponse { }
622- impl :: prost:: Name for MsgSubmitDcmPubKeyResponse {
623- const NAME : & ' static str = "MsgSubmitDCMPubKeyResponse" ;
624- const PACKAGE : & ' static str = "side.dlc" ;
625- fn full_name ( ) -> :: prost:: alloc:: string:: String {
626- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
627- }
628- }
629- #[ allow( clippy:: derive_partial_eq_without_eq) ]
630- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
631- pub struct MsgSubmitOraclePubKey {
632- #[ prost( string, tag = "1" ) ]
633- pub sender : :: prost:: alloc:: string:: String ,
634- #[ prost( string, tag = "2" ) ]
635- pub pub_key : :: prost:: alloc:: string:: String ,
636- #[ prost( uint64, tag = "3" ) ]
637- pub oracle_id : u64 ,
638- #[ prost( string, tag = "4" ) ]
639- pub oracle_pubkey : :: prost:: alloc:: string:: String ,
640- #[ prost( string, tag = "5" ) ]
641- pub signature : :: prost:: alloc:: string:: String ,
642- }
643- impl :: prost:: Name for MsgSubmitOraclePubKey {
644- const NAME : & ' static str = "MsgSubmitOraclePubKey" ;
645- const PACKAGE : & ' static str = "side.dlc" ;
646- fn full_name ( ) -> :: prost:: alloc:: string:: String {
647- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
648- }
649- }
650- #[ allow( clippy:: derive_partial_eq_without_eq) ]
651- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
652- pub struct MsgSubmitOraclePubKeyResponse { }
653- impl :: prost:: Name for MsgSubmitOraclePubKeyResponse {
654- const NAME : & ' static str = "MsgSubmitOraclePubKeyResponse" ;
655- const PACKAGE : & ' static str = "side.dlc" ;
656- fn full_name ( ) -> :: prost:: alloc:: string:: String {
657- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
658- }
659- }
660- #[ allow( clippy:: derive_partial_eq_without_eq) ]
661- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
662- pub struct MsgSubmitNonce {
663- #[ prost( string, tag = "1" ) ]
664- pub sender : :: prost:: alloc:: string:: String ,
665- #[ prost( enumeration = "DlcEventType" , tag = "2" ) ]
666- pub event_type : i32 ,
667- #[ prost( string, tag = "3" ) ]
668- pub nonce : :: prost:: alloc:: string:: String ,
669- #[ prost( string, tag = "4" ) ]
670- pub oracle_pubkey : :: prost:: alloc:: string:: String ,
671- #[ prost( string, tag = "5" ) ]
672- pub signature : :: prost:: alloc:: string:: String ,
673- }
674- impl :: prost:: Name for MsgSubmitNonce {
675- const NAME : & ' static str = "MsgSubmitNonce" ;
676- const PACKAGE : & ' static str = "side.dlc" ;
677- fn full_name ( ) -> :: prost:: alloc:: string:: String {
678- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
679- }
680- }
681- #[ allow( clippy:: derive_partial_eq_without_eq) ]
682- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
683- pub struct MsgSubmitNonceResponse { }
684- impl :: prost:: Name for MsgSubmitNonceResponse {
685- const NAME : & ' static str = "MsgSubmitNonceResponse" ;
686- const PACKAGE : & ' static str = "side.dlc" ;
687- fn full_name ( ) -> :: prost:: alloc:: string:: String {
688- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
689- }
690- }
691- #[ allow( clippy:: derive_partial_eq_without_eq) ]
692- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
693- pub struct MsgSubmitAttestation {
694- #[ prost( string, tag = "1" ) ]
695- pub sender : :: prost:: alloc:: string:: String ,
696- #[ prost( uint64, tag = "2" ) ]
697- pub event_id : u64 ,
698- #[ prost( string, tag = "3" ) ]
699- pub signature : :: prost:: alloc:: string:: String ,
700- }
701- impl :: prost:: Name for MsgSubmitAttestation {
702- const NAME : & ' static str = "MsgSubmitAttestation" ;
703- const PACKAGE : & ' static str = "side.dlc" ;
704- fn full_name ( ) -> :: prost:: alloc:: string:: String {
705- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
706- }
707- }
708- #[ allow( clippy:: derive_partial_eq_without_eq) ]
709- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
710- pub struct MsgSubmitAttestationResponse { }
711- impl :: prost:: Name for MsgSubmitAttestationResponse {
712- const NAME : & ' static str = "MsgSubmitAttestationResponse" ;
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- #[ allow( clippy:: derive_partial_eq_without_eq) ]
719- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
720- pub struct MsgCreateOracle {
721- /// authority is the address that controls the module (defaults to x/gov unless overwritten).
722- #[ prost( string, tag = "1" ) ]
723- pub authority : :: prost:: alloc:: string:: String ,
724- #[ prost( string, repeated, tag = "2" ) ]
725- pub participants : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
726- #[ prost( uint32, tag = "3" ) ]
727- pub threshold : u32 ,
728- }
729- impl :: prost:: Name for MsgCreateOracle {
730- const NAME : & ' static str = "MsgCreateOracle" ;
731- const PACKAGE : & ' static str = "side.dlc" ;
732- fn full_name ( ) -> :: prost:: alloc:: string:: String {
733- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
734- }
735- }
736- #[ allow( clippy:: derive_partial_eq_without_eq) ]
737- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
738- pub struct MsgCreateOracleResponse { }
739- impl :: prost:: Name for MsgCreateOracleResponse {
740- const NAME : & ' static str = "MsgCreateOracleResponse" ;
741- const PACKAGE : & ' static str = "side.dlc" ;
742- fn full_name ( ) -> :: prost:: alloc:: string:: String {
743- :: prost:: alloc:: format!( "side.dlc.{}" , Self :: NAME )
744- }
745- }
746- #[ allow( clippy:: derive_partial_eq_without_eq) ]
747- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
748635pub struct MsgCreateDcm {
749636 /// authority is the address that controls the module (defaults to x/gov unless overwritten).
750637 #[ prost( string, tag = "1" ) ]
0 commit comments