3
3
#[ allow( clippy:: derive_partial_eq_without_eq) ]
4
4
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
5
5
pub struct Params {
6
- /// The minimum number of confirmations required for a block to be accepted
6
+ /// The minimum number of confirmations required for the deposit transactions
7
7
#[ prost( int32, tag = "1" ) ]
8
- pub confirmations : i32 ,
8
+ pub deposit_confirmation_depth : i32 ,
9
+ /// The minimum number of confirmations required for the withdrawal transactions
10
+ #[ prost( int32, tag = "2" ) ]
11
+ pub withdraw_confirmation_depth : i32 ,
12
+ /// The allowed maximum depth for bitcoin block reorganization
13
+ #[ prost( int32, tag = "3" ) ]
14
+ pub max_reorg_depth : i32 ,
9
15
/// Indicates the maximum depth or distance from the latest block up to which transactions are considered for acceptance.
10
- #[ prost( uint64, tag = "2 " ) ]
16
+ #[ prost( uint64, tag = "4 " ) ]
11
17
pub max_acceptable_block_depth : u64 ,
12
18
/// The denomination of the voucher
13
- #[ prost( string, tag = "3 " ) ]
19
+ #[ prost( string, tag = "5 " ) ]
14
20
pub btc_voucher_denom : :: prost:: alloc:: string:: String ,
15
21
/// Indicates if deposit is enabled
16
- #[ prost( bool , tag = "4 " ) ]
22
+ #[ prost( bool , tag = "6 " ) ]
17
23
pub deposit_enabled : bool ,
18
24
/// Indicates if withdrawal is enabled
19
- #[ prost( bool , tag = "5 " ) ]
25
+ #[ prost( bool , tag = "7 " ) ]
20
26
pub withdraw_enabled : bool ,
21
- /// Trusted relayers to submit bitcoin block headers
22
- #[ prost( string, repeated, tag = "6" ) ]
23
- pub trusted_btc_relayers : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
24
27
/// Trusted relayers for non-btc asset deposit
25
- #[ prost( string, repeated, tag = "7" ) ]
26
- pub trusted_non_btc_relayers : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
27
- /// Trusted oracles for providing offchain data, e.g. bitcoin fee rate
28
28
#[ prost( string, repeated, tag = "8" ) ]
29
- pub trusted_oracles : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
29
+ pub trusted_non_btc_relayers : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
30
+ /// Trusted fee providers to submit bitcoin fee rate
31
+ #[ prost( string, repeated, tag = "9" ) ]
32
+ pub trusted_fee_providers : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
30
33
/// Period of validity for the fee rate
31
- #[ prost( int64, tag = "9 " ) ]
34
+ #[ prost( int64, tag = "10 " ) ]
32
35
pub fee_rate_validity_period : i64 ,
33
36
/// Asset vaults
34
- #[ prost( message, repeated, tag = "10 " ) ]
37
+ #[ prost( message, repeated, tag = "11 " ) ]
35
38
pub vaults : :: prost:: alloc:: vec:: Vec < Vault > ,
36
39
/// Withdrawal params
37
- #[ prost( message, optional, tag = "11 " ) ]
40
+ #[ prost( message, optional, tag = "12 " ) ]
38
41
pub withdraw_params : :: core:: option:: Option < WithdrawParams > ,
39
42
/// Protocol limitations
40
- #[ prost( message, optional, tag = "12 " ) ]
43
+ #[ prost( message, optional, tag = "13 " ) ]
41
44
pub protocol_limits : :: core:: option:: Option < ProtocolLimits > ,
42
45
/// Protocol fees
43
- #[ prost( message, optional, tag = "13 " ) ]
46
+ #[ prost( message, optional, tag = "14 " ) ]
44
47
pub protocol_fees : :: core:: option:: Option < ProtocolFees > ,
45
48
/// TSS params
46
- #[ prost( message, optional, tag = "14 " ) ]
49
+ #[ prost( message, optional, tag = "15 " ) ]
47
50
pub tss_params : :: core:: option:: Option < TssParams > ,
48
51
}
49
52
impl :: prost:: Name for Params {
@@ -195,36 +198,6 @@ impl AssetType {
195
198
}
196
199
}
197
200
}
198
- /// Bitcoin Block Header
199
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
200
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
201
- pub struct BlockHeader {
202
- #[ prost( uint64, tag = "1" ) ]
203
- pub version : u64 ,
204
- #[ prost( string, tag = "2" ) ]
205
- pub hash : :: prost:: alloc:: string:: String ,
206
- #[ prost( uint64, tag = "3" ) ]
207
- pub height : u64 ,
208
- #[ prost( string, tag = "4" ) ]
209
- pub previous_block_hash : :: prost:: alloc:: string:: String ,
210
- #[ prost( string, tag = "5" ) ]
211
- pub merkle_root : :: prost:: alloc:: string:: String ,
212
- #[ prost( uint64, tag = "6" ) ]
213
- pub nonce : u64 ,
214
- #[ prost( string, tag = "7" ) ]
215
- pub bits : :: prost:: alloc:: string:: String ,
216
- #[ prost( uint64, tag = "8" ) ]
217
- pub time : u64 ,
218
- #[ prost( uint64, tag = "9" ) ]
219
- pub ntx : u64 ,
220
- }
221
- impl :: prost:: Name for BlockHeader {
222
- const NAME : & ' static str = "BlockHeader" ;
223
- const PACKAGE : & ' static str = "side.btcbridge" ;
224
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
225
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
226
- }
227
- }
228
201
/// Fee rate
229
202
#[ allow( clippy:: derive_partial_eq_without_eq) ]
230
203
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -251,13 +224,15 @@ pub struct SigningRequest {
251
224
pub address : :: prost:: alloc:: string:: String ,
252
225
#[ prost( uint64, tag = "2" ) ]
253
226
pub sequence : u64 ,
254
- #[ prost( string , tag = "3" ) ]
255
- pub txid : :: prost :: alloc :: string :: String ,
227
+ #[ prost( enumeration = "AssetType" , tag = "3" ) ]
228
+ pub r#type : i32 ,
256
229
#[ prost( string, tag = "4" ) ]
230
+ pub txid : :: prost:: alloc:: string:: String ,
231
+ #[ prost( string, tag = "5" ) ]
257
232
pub psbt : :: prost:: alloc:: string:: String ,
258
- #[ prost( message, optional, tag = "5 " ) ]
233
+ #[ prost( message, optional, tag = "6 " ) ]
259
234
pub creation_time : :: core:: option:: Option < :: tendermint_proto:: google:: protobuf:: Timestamp > ,
260
- #[ prost( enumeration = "SigningStatus" , tag = "6 " ) ]
235
+ #[ prost( enumeration = "SigningStatus" , tag = "7 " ) ]
261
236
pub status : i32 ,
262
237
}
263
238
impl :: prost:: Name for SigningRequest {
@@ -580,13 +555,10 @@ impl DkgRequestStatus {
580
555
pub struct GenesisState {
581
556
#[ prost( message, optional, tag = "1" ) ]
582
557
pub params : :: core:: option:: Option < Params > ,
583
- /// the chain tip of the bitcoin chain
584
- #[ prost( message, optional, tag = "2" ) ]
585
- pub best_block_header : :: core:: option:: Option < BlockHeader > ,
586
- #[ prost( message, repeated, tag = "3" ) ]
587
- pub block_headers : :: prost:: alloc:: vec:: Vec < BlockHeader > ,
588
- #[ prost( message, repeated, tag = "4" ) ]
558
+ #[ prost( message, repeated, tag = "2" ) ]
589
559
pub utxos : :: prost:: alloc:: vec:: Vec < Utxo > ,
560
+ #[ prost( message, optional, tag = "3" ) ]
561
+ pub dkg_request : :: core:: option:: Option < DkgRequest > ,
590
562
}
591
563
impl :: prost:: Name for GenesisState {
592
564
const NAME : & ' static str = "GenesisState" ;
@@ -687,6 +659,34 @@ impl ::prost::Name for QueryPendingBtcWithdrawRequestsResponse {
687
659
:: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
688
660
}
689
661
}
662
+ /// QuerySigningRequestRequest is request type for the Query/SigningRequest RPC method.
663
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
664
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
665
+ pub struct QuerySigningRequestRequest {
666
+ #[ prost( uint64, tag = "1" ) ]
667
+ pub sequence : u64 ,
668
+ }
669
+ impl :: prost:: Name for QuerySigningRequestRequest {
670
+ const NAME : & ' static str = "QuerySigningRequestRequest" ;
671
+ const PACKAGE : & ' static str = "side.btcbridge" ;
672
+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
673
+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
674
+ }
675
+ }
676
+ /// QuerySigningRequestResponse is response type for the Query/SigningRequest RPC method.
677
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
678
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
679
+ pub struct QuerySigningRequestResponse {
680
+ #[ prost( message, optional, tag = "1" ) ]
681
+ pub request : :: core:: option:: Option < SigningRequest > ,
682
+ }
683
+ impl :: prost:: Name for QuerySigningRequestResponse {
684
+ const NAME : & ' static str = "QuerySigningRequestResponse" ;
685
+ const PACKAGE : & ' static str = "side.btcbridge" ;
686
+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
687
+ :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
688
+ }
689
+ }
690
690
/// QuerySigningRequestsRequest is request type for the Query/SigningRequests RPC method.
691
691
#[ allow( clippy:: derive_partial_eq_without_eq) ]
692
692
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -866,89 +866,6 @@ impl ::prost::Name for QueryParamsResponse {
866
866
:: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
867
867
}
868
868
}
869
- /// QueryChainTipRequest is request type for the Query/ChainTip RPC method.
870
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
871
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
872
- pub struct QueryChainTipRequest { }
873
- impl :: prost:: Name for QueryChainTipRequest {
874
- const NAME : & ' static str = "QueryChainTipRequest" ;
875
- const PACKAGE : & ' static str = "side.btcbridge" ;
876
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
877
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
878
- }
879
- }
880
- /// QueryChainTipResponse is response type for the Query/ChainTip RPC method.
881
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
882
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
883
- pub struct QueryChainTipResponse {
884
- #[ prost( string, tag = "1" ) ]
885
- pub hash : :: prost:: alloc:: string:: String ,
886
- #[ prost( uint64, tag = "2" ) ]
887
- pub height : u64 ,
888
- }
889
- impl :: prost:: Name for QueryChainTipResponse {
890
- const NAME : & ' static str = "QueryChainTipResponse" ;
891
- const PACKAGE : & ' static str = "side.btcbridge" ;
892
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
893
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
894
- }
895
- }
896
- /// QueryBlockHeaderByHeightRequest is the request type for the Query/BlockHeaderByHeight RPC method.
897
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
898
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
899
- pub struct QueryBlockHeaderByHeightRequest {
900
- #[ prost( uint64, tag = "1" ) ]
901
- pub height : u64 ,
902
- }
903
- impl :: prost:: Name for QueryBlockHeaderByHeightRequest {
904
- const NAME : & ' static str = "QueryBlockHeaderByHeightRequest" ;
905
- const PACKAGE : & ' static str = "side.btcbridge" ;
906
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
907
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
908
- }
909
- }
910
- /// QueryBlockHeaderByHeightResponse is the response type for the Query/BlockHeaderByHeight RPC method.
911
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
912
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
913
- pub struct QueryBlockHeaderByHeightResponse {
914
- #[ prost( message, optional, tag = "1" ) ]
915
- pub block_header : :: core:: option:: Option < BlockHeader > ,
916
- }
917
- impl :: prost:: Name for QueryBlockHeaderByHeightResponse {
918
- const NAME : & ' static str = "QueryBlockHeaderByHeightResponse" ;
919
- const PACKAGE : & ' static str = "side.btcbridge" ;
920
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
921
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
922
- }
923
- }
924
- /// QueryBlockHeaderByHashRequest is the request type for the Query/BlockHeaderByHash RPC method.
925
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
926
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
927
- pub struct QueryBlockHeaderByHashRequest {
928
- #[ prost( string, tag = "1" ) ]
929
- pub hash : :: prost:: alloc:: string:: String ,
930
- }
931
- impl :: prost:: Name for QueryBlockHeaderByHashRequest {
932
- const NAME : & ' static str = "QueryBlockHeaderByHashRequest" ;
933
- const PACKAGE : & ' static str = "side.btcbridge" ;
934
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
935
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
936
- }
937
- }
938
- /// QueryBlockHeaderByHashResponse is the response type for the Query/BlockHeaderByHash RPC method.
939
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
940
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
941
- pub struct QueryBlockHeaderByHashResponse {
942
- #[ prost( message, optional, tag = "1" ) ]
943
- pub block_header : :: core:: option:: Option < BlockHeader > ,
944
- }
945
- impl :: prost:: Name for QueryBlockHeaderByHashResponse {
946
- const NAME : & ' static str = "QueryBlockHeaderByHashResponse" ;
947
- const PACKAGE : & ' static str = "side.btcbridge" ;
948
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
949
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
950
- }
951
- }
952
869
/// QueryUTXOsRequest is the request type for the Query/UTXOs RPC method.
953
870
#[ allow( clippy:: derive_partial_eq_without_eq) ]
954
871
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1143,33 +1060,6 @@ impl ::prost::Name for QueryDkgCompletionRequestsResponse {
1143
1060
:: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1144
1061
}
1145
1062
}
1146
- /// MsgSubmitBlockHeaders defines the Msg/SubmitBlockHeaders request type.
1147
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
1148
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1149
- pub struct MsgSubmitBlockHeaders {
1150
- #[ prost( string, tag = "1" ) ]
1151
- pub sender : :: prost:: alloc:: string:: String ,
1152
- #[ prost( message, repeated, tag = "2" ) ]
1153
- pub block_headers : :: prost:: alloc:: vec:: Vec < BlockHeader > ,
1154
- }
1155
- impl :: prost:: Name for MsgSubmitBlockHeaders {
1156
- const NAME : & ' static str = "MsgSubmitBlockHeaders" ;
1157
- const PACKAGE : & ' static str = "side.btcbridge" ;
1158
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
1159
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1160
- }
1161
- }
1162
- /// MsgSubmitBlockHeadersResponse defines the Msg/SubmitBlockHeaders response type.
1163
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
1164
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1165
- pub struct MsgSubmitBlockHeadersResponse { }
1166
- impl :: prost:: Name for MsgSubmitBlockHeadersResponse {
1167
- const NAME : & ' static str = "MsgSubmitBlockHeadersResponse" ;
1168
- const PACKAGE : & ' static str = "side.btcbridge" ;
1169
- fn full_name ( ) -> :: prost:: alloc:: string:: String {
1170
- :: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1171
- }
1172
- }
1173
1063
/// MsgSubmitDepositTransaction defines the Msg/SubmitDepositTransaction request type.
1174
1064
#[ allow( clippy:: derive_partial_eq_without_eq) ]
1175
1065
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1294,28 +1184,28 @@ impl ::prost::Name for MsgUpdateTrustedNonBtcRelayersResponse {
1294
1184
:: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1295
1185
}
1296
1186
}
1297
- /// MsgUpdateTrustedOracles defines the Msg/UpdateTrustedOracles request type.
1187
+ /// MsgUpdateTrustedFeeProviders defines the Msg/UpdateTrustedFeeProviders request type.
1298
1188
#[ allow( clippy:: derive_partial_eq_without_eq) ]
1299
1189
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1300
- pub struct MsgUpdateTrustedOracles {
1190
+ pub struct MsgUpdateTrustedFeeProviders {
1301
1191
#[ prost( string, tag = "1" ) ]
1302
1192
pub sender : :: prost:: alloc:: string:: String ,
1303
1193
#[ prost( string, repeated, tag = "2" ) ]
1304
- pub oracles : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
1194
+ pub fee_providers : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
1305
1195
}
1306
- impl :: prost:: Name for MsgUpdateTrustedOracles {
1307
- const NAME : & ' static str = "MsgUpdateTrustedOracles " ;
1196
+ impl :: prost:: Name for MsgUpdateTrustedFeeProviders {
1197
+ const NAME : & ' static str = "MsgUpdateTrustedFeeProviders " ;
1308
1198
const PACKAGE : & ' static str = "side.btcbridge" ;
1309
1199
fn full_name ( ) -> :: prost:: alloc:: string:: String {
1310
1200
:: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
1311
1201
}
1312
1202
}
1313
- /// MsgUpdateTrustedOraclesResponse defines the Msg/UpdateTrustedOracles response type.
1203
+ /// MsgUpdateTrustedFeeProvidersResponse defines the Msg/UpdateTrustedFeeProviders response type.
1314
1204
#[ allow( clippy:: derive_partial_eq_without_eq) ]
1315
1205
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1316
- pub struct MsgUpdateTrustedOraclesResponse { }
1317
- impl :: prost:: Name for MsgUpdateTrustedOraclesResponse {
1318
- const NAME : & ' static str = "MsgUpdateTrustedOraclesResponse " ;
1206
+ pub struct MsgUpdateTrustedFeeProvidersResponse { }
1207
+ impl :: prost:: Name for MsgUpdateTrustedFeeProvidersResponse {
1208
+ const NAME : & ' static str = "MsgUpdateTrustedFeeProvidersResponse " ;
1319
1209
const PACKAGE : & ' static str = "side.btcbridge" ;
1320
1210
fn full_name ( ) -> :: prost:: alloc:: string:: String {
1321
1211
:: prost:: alloc:: format!( "side.btcbridge.{}" , Self :: NAME )
@@ -1357,8 +1247,8 @@ pub struct MsgSubmitSignatures {
1357
1247
pub sender : :: prost:: alloc:: string:: String ,
1358
1248
#[ prost( string, tag = "2" ) ]
1359
1249
pub txid : :: prost:: alloc:: string:: String ,
1360
- #[ prost( string, tag = "3" ) ]
1361
- pub psbt : :: prost:: alloc:: string:: String ,
1250
+ #[ prost( string, repeated , tag = "3" ) ]
1251
+ pub signatures : :: prost:: alloc:: vec :: Vec < :: prost :: alloc :: string:: String > ,
1362
1252
}
1363
1253
impl :: prost:: Name for MsgSubmitSignatures {
1364
1254
const NAME : & ' static str = "MsgSubmitSignatures" ;
0 commit comments