@@ -537,6 +537,60 @@ impl ::prost::Name for DkgCompletionRequest {
537537 :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
538538 }
539539}
540+ /// Refreshing Request
541+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
542+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
543+ pub struct RefreshingRequest {
544+ /// request id
545+ #[ prost( uint64, tag = "1" ) ]
546+ pub id : u64 ,
547+ /// request id of the DKG corresponding to the key shares to be refreshed
548+ #[ prost( uint64, tag = "2" ) ]
549+ pub dkg_id : u64 ,
550+ /// removed participant set
551+ #[ prost( string, repeated, tag = "3" ) ]
552+ pub removed_participants : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
553+ /// new threshold
554+ #[ prost( uint32, tag = "4" ) ]
555+ pub threshold : u32 ,
556+ /// expiration time
557+ #[ prost( message, optional, tag = "5" ) ]
558+ pub expiration_time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
559+ /// status
560+ #[ prost( enumeration = "RefreshingStatus" , tag = "6" ) ]
561+ pub status : i32 ,
562+ }
563+ impl :: prost:: Name for RefreshingRequest {
564+ const NAME : & ' static str = "RefreshingRequest" ;
565+ const PACKAGE : & ' static str = "side.btcbridge" ;
566+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
567+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
568+ }
569+ }
570+ /// Refreshing Completion
571+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
572+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
573+ pub struct RefreshingCompletion {
574+ /// request id
575+ #[ prost( uint64, tag = "1" ) ]
576+ pub id : u64 ,
577+ /// sender
578+ #[ prost( string, tag = "2" ) ]
579+ pub sender : :: prost:: alloc:: string:: String ,
580+ /// participant consensus pub key
581+ #[ prost( string, tag = "3" ) ]
582+ pub consensus_pubkey : :: prost:: alloc:: string:: String ,
583+ /// hex encoded participant signature
584+ #[ prost( string, tag = "4" ) ]
585+ pub signature : :: prost:: alloc:: string:: String ,
586+ }
587+ impl :: prost:: Name for RefreshingCompletion {
588+ const NAME : & ' static str = "RefreshingCompletion" ;
589+ const PACKAGE : & ' static str = "side.btcbridge" ;
590+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
591+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
592+ }
593+ }
540594/// Bitcoin Signing Status
541595#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
542596#[ repr( i32 ) ]
@@ -618,6 +672,43 @@ impl DkgRequestStatus {
618672 }
619673 }
620674}
675+ /// Refreshing Status
676+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
677+ #[ repr( i32 ) ]
678+ pub enum RefreshingStatus {
679+ /// REFRESHING_STATUS_UNSPECIFIED defines the unknown refreshing status
680+ Unspecified = 0 ,
681+ /// REFRESHING_STATUS_PENDING defines the status of the refreshing request which is pending
682+ Pending = 1 ,
683+ /// REFRESHING_STATUS_COMPLETED defines the status of the refreshing request which is completed
684+ Completed = 2 ,
685+ /// REFRESHING_STATUS_TIMEDOUT defines the status of the refreshing request which timed out
686+ Timedout = 3 ,
687+ }
688+ impl RefreshingStatus {
689+ /// String value of the enum field names used in the ProtoBuf definition.
690+ ///
691+ /// The values are not transformed in any way and thus are considered stable
692+ /// (if the ProtoBuf definition does not change) and safe for programmatic use.
693+ pub fn as_str_name ( & self ) -> & ' static str {
694+ match self {
695+ RefreshingStatus :: Unspecified => "REFRESHING_STATUS_UNSPECIFIED" ,
696+ RefreshingStatus :: Pending => "REFRESHING_STATUS_PENDING" ,
697+ RefreshingStatus :: Completed => "REFRESHING_STATUS_COMPLETED" ,
698+ RefreshingStatus :: Timedout => "REFRESHING_STATUS_TIMEDOUT" ,
699+ }
700+ }
701+ /// Creates an enum from field names used in the ProtoBuf definition.
702+ pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
703+ match value {
704+ "REFRESHING_STATUS_UNSPECIFIED" => Some ( Self :: Unspecified ) ,
705+ "REFRESHING_STATUS_PENDING" => Some ( Self :: Pending ) ,
706+ "REFRESHING_STATUS_COMPLETED" => Some ( Self :: Completed ) ,
707+ "REFRESHING_STATUS_TIMEDOUT" => Some ( Self :: Timedout ) ,
708+ _ => None ,
709+ }
710+ }
711+ }
621712/// GenesisState defines the btc bridge module's genesis state.
622713#[ allow( clippy:: derive_partial_eq_without_eq) ]
623714#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1160,6 +1251,94 @@ impl ::prost::Name for QueryDkgCompletionRequestsResponse {
11601251 :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
11611252 }
11621253}
1254+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1255+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1256+ pub struct QueryRefreshingRequestRequest {
1257+ #[ prost( uint64, tag = "1" ) ]
1258+ pub id : u64 ,
1259+ }
1260+ impl :: prost:: Name for QueryRefreshingRequestRequest {
1261+ const NAME : & ' static str = "QueryRefreshingRequestRequest" ;
1262+ const PACKAGE : & ' static str = "side.btcbridge" ;
1263+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1264+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1265+ }
1266+ }
1267+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1268+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1269+ pub struct QueryRefreshingRequestResponse {
1270+ #[ prost( message, optional, tag = "1" ) ]
1271+ pub request : :: core:: option:: Option < RefreshingRequest > ,
1272+ }
1273+ impl :: prost:: Name for QueryRefreshingRequestResponse {
1274+ const NAME : & ' static str = "QueryRefreshingRequestResponse" ;
1275+ const PACKAGE : & ' static str = "side.btcbridge" ;
1276+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1277+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1278+ }
1279+ }
1280+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1281+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1282+ pub struct QueryRefreshingRequestsRequest {
1283+ #[ prost( enumeration = "RefreshingStatus" , tag = "1" ) ]
1284+ pub status : i32 ,
1285+ #[ prost( message, optional, tag = "2" ) ]
1286+ pub pagination : :: core:: option:: Option < super :: super :: cosmos:: base:: query:: v1beta1:: PageRequest > ,
1287+ }
1288+ impl :: prost:: Name for QueryRefreshingRequestsRequest {
1289+ const NAME : & ' static str = "QueryRefreshingRequestsRequest" ;
1290+ const PACKAGE : & ' static str = "side.btcbridge" ;
1291+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1292+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1293+ }
1294+ }
1295+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1296+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1297+ pub struct QueryRefreshingRequestsResponse {
1298+ #[ prost( message, repeated, tag = "1" ) ]
1299+ pub requests : :: prost:: alloc:: vec:: Vec < RefreshingRequest > ,
1300+ #[ prost( message, optional, tag = "2" ) ]
1301+ pub pagination :
1302+ :: core:: option:: Option < super :: super :: cosmos:: base:: query:: v1beta1:: PageResponse > ,
1303+ }
1304+ impl :: prost:: Name for QueryRefreshingRequestsResponse {
1305+ const NAME : & ' static str = "QueryRefreshingRequestsResponse" ;
1306+ const PACKAGE : & ' static str = "side.btcbridge" ;
1307+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1308+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1309+ }
1310+ }
1311+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1312+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1313+ pub struct QueryRefreshingCompletionsRequest {
1314+ #[ prost( uint64, tag = "1" ) ]
1315+ pub id : u64 ,
1316+ #[ prost( message, optional, tag = "2" ) ]
1317+ pub pagination : :: core:: option:: Option < super :: super :: cosmos:: base:: query:: v1beta1:: PageRequest > ,
1318+ }
1319+ impl :: prost:: Name for QueryRefreshingCompletionsRequest {
1320+ const NAME : & ' static str = "QueryRefreshingCompletionsRequest" ;
1321+ const PACKAGE : & ' static str = "side.btcbridge" ;
1322+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1323+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1324+ }
1325+ }
1326+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1327+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1328+ pub struct QueryRefreshingCompletionsResponse {
1329+ #[ prost( message, repeated, tag = "1" ) ]
1330+ pub completions : :: prost:: alloc:: vec:: Vec < RefreshingCompletion > ,
1331+ #[ prost( message, optional, tag = "2" ) ]
1332+ pub pagination :
1333+ :: core:: option:: Option < super :: super :: cosmos:: base:: query:: v1beta1:: PageResponse > ,
1334+ }
1335+ impl :: prost:: Name for QueryRefreshingCompletionsResponse {
1336+ const NAME : & ' static str = "QueryRefreshingCompletionsResponse" ;
1337+ const PACKAGE : & ' static str = "side.btcbridge" ;
1338+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1339+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1340+ }
1341+ }
11631342/// QueryIBCDepositScriptRequest is the request type for the Query/IBCDepositScript RPC method.
11641343#[ allow( clippy:: derive_partial_eq_without_eq) ]
11651344#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1512,6 +1691,79 @@ impl ::prost::Name for MsgCompleteDkgResponse {
15121691 :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
15131692 }
15141693}
1694+ /// MsgRefresh defines the Msg/Refresh request type.
1695+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1696+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1697+ pub struct MsgRefresh {
1698+ /// authority is the address that controls the module (defaults to x/gov unless overwritten).
1699+ #[ prost( string, tag = "1" ) ]
1700+ pub authority : :: prost:: alloc:: string:: String ,
1701+ /// list of DKGs corresponding to key shares to be refreshed
1702+ #[ prost( uint64, repeated, tag = "2" ) ]
1703+ pub dkg_ids : :: prost:: alloc:: vec:: Vec < u64 > ,
1704+ /// removed participant set
1705+ #[ prost( string, repeated, tag = "3" ) ]
1706+ pub removed_participants : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
1707+ /// new threshold set corresponding to the DKGs
1708+ #[ prost( uint32, repeated, tag = "4" ) ]
1709+ pub thresholds : :: prost:: alloc:: vec:: Vec < u32 > ,
1710+ /// timeout duration per DKG refreshing
1711+ #[ prost( message, optional, tag = "5" ) ]
1712+ pub timeout_duration : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Duration > ,
1713+ }
1714+ impl :: prost:: Name for MsgRefresh {
1715+ const NAME : & ' static str = "MsgRefresh" ;
1716+ const PACKAGE : & ' static str = "side.btcbridge" ;
1717+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1718+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1719+ }
1720+ }
1721+ /// MsgRefreshResponse defines the Msg/Refresh response type.
1722+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1723+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1724+ pub struct MsgRefreshResponse { }
1725+ impl :: prost:: Name for MsgRefreshResponse {
1726+ const NAME : & ' static str = "MsgRefreshResponse" ;
1727+ const PACKAGE : & ' static str = "side.btcbridge" ;
1728+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1729+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1730+ }
1731+ }
1732+ /// MsgCompleteRefreshing defines the Msg/CompleteRefreshing request type.
1733+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1734+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1735+ pub struct MsgCompleteRefreshing {
1736+ /// sender
1737+ #[ prost( string, tag = "1" ) ]
1738+ pub sender : :: prost:: alloc:: string:: String ,
1739+ /// request id
1740+ #[ prost( uint64, tag = "2" ) ]
1741+ pub id : u64 ,
1742+ /// participant consensus pub key
1743+ #[ prost( string, tag = "3" ) ]
1744+ pub consensus_pubkey : :: prost:: alloc:: string:: String ,
1745+ /// hex encoded participant signature
1746+ #[ prost( string, tag = "4" ) ]
1747+ pub signature : :: prost:: alloc:: string:: String ,
1748+ }
1749+ impl :: prost:: Name for MsgCompleteRefreshing {
1750+ const NAME : & ' static str = "MsgCompleteRefreshing" ;
1751+ const PACKAGE : & ' static str = "side.btcbridge" ;
1752+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1753+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1754+ }
1755+ }
1756+ /// MsgCompleteRefreshingResponse defines the Msg/CompleteRefreshing response type.
1757+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1758+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1759+ pub struct MsgCompleteRefreshingResponse { }
1760+ impl :: prost:: Name for MsgCompleteRefreshingResponse {
1761+ const NAME : & ' static str = "MsgCompleteRefreshingResponse" ;
1762+ const PACKAGE : & ' static str = "side.btcbridge" ;
1763+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
1764+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1765+ }
1766+ }
15151767/// MsgTransferVault is the Msg/TransferVault request type.
15161768#[ allow( clippy:: derive_partial_eq_without_eq) ]
15171769#[ derive( Clone , PartialEq , :: prost:: Message ) ]
0 commit comments