Skip to content

Commit a5dfb37

Browse files
committed
release 2.0.0-alpha.7
1 parent 0acfecc commit a5dfb37

18 files changed

+7839
-3056
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

side-proto/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "side-proto"
3-
version = "2.0.0-alpha.6"
3+
version = "2.0.0-alpha.7"
44
edition = "2021"
55
description = "Rust Client for Side Chain"
66
readme = "README.md"

side-proto/src/prost/side/side.btcbridge.rs

Lines changed: 70 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,50 @@
33
#[allow(clippy::derive_partial_eq_without_eq)]
44
#[derive(Clone, PartialEq, ::prost::Message)]
55
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
77
#[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,
915
/// 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")]
1117
pub max_acceptable_block_depth: u64,
1218
/// The denomination of the voucher
13-
#[prost(string, tag = "3")]
19+
#[prost(string, tag = "5")]
1420
pub btc_voucher_denom: ::prost::alloc::string::String,
1521
/// Indicates if deposit is enabled
16-
#[prost(bool, tag = "4")]
22+
#[prost(bool, tag = "6")]
1723
pub deposit_enabled: bool,
1824
/// Indicates if withdrawal is enabled
19-
#[prost(bool, tag = "5")]
25+
#[prost(bool, tag = "7")]
2026
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>,
2427
/// 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
2828
#[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>,
3033
/// Period of validity for the fee rate
31-
#[prost(int64, tag = "9")]
34+
#[prost(int64, tag = "10")]
3235
pub fee_rate_validity_period: i64,
3336
/// Asset vaults
34-
#[prost(message, repeated, tag = "10")]
37+
#[prost(message, repeated, tag = "11")]
3538
pub vaults: ::prost::alloc::vec::Vec<Vault>,
3639
/// Withdrawal params
37-
#[prost(message, optional, tag = "11")]
40+
#[prost(message, optional, tag = "12")]
3841
pub withdraw_params: ::core::option::Option<WithdrawParams>,
3942
/// Protocol limitations
40-
#[prost(message, optional, tag = "12")]
43+
#[prost(message, optional, tag = "13")]
4144
pub protocol_limits: ::core::option::Option<ProtocolLimits>,
4245
/// Protocol fees
43-
#[prost(message, optional, tag = "13")]
46+
#[prost(message, optional, tag = "14")]
4447
pub protocol_fees: ::core::option::Option<ProtocolFees>,
4548
/// TSS params
46-
#[prost(message, optional, tag = "14")]
49+
#[prost(message, optional, tag = "15")]
4750
pub tss_params: ::core::option::Option<TssParams>,
4851
}
4952
impl ::prost::Name for Params {
@@ -195,36 +198,6 @@ impl AssetType {
195198
}
196199
}
197200
}
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-
}
228201
/// Fee rate
229202
#[allow(clippy::derive_partial_eq_without_eq)]
230203
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -251,13 +224,15 @@ pub struct SigningRequest {
251224
pub address: ::prost::alloc::string::String,
252225
#[prost(uint64, tag = "2")]
253226
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,
256229
#[prost(string, tag = "4")]
230+
pub txid: ::prost::alloc::string::String,
231+
#[prost(string, tag = "5")]
257232
pub psbt: ::prost::alloc::string::String,
258-
#[prost(message, optional, tag = "5")]
233+
#[prost(message, optional, tag = "6")]
259234
pub creation_time: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
260-
#[prost(enumeration = "SigningStatus", tag = "6")]
235+
#[prost(enumeration = "SigningStatus", tag = "7")]
261236
pub status: i32,
262237
}
263238
impl ::prost::Name for SigningRequest {
@@ -580,13 +555,10 @@ impl DkgRequestStatus {
580555
pub struct GenesisState {
581556
#[prost(message, optional, tag = "1")]
582557
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")]
589559
pub utxos: ::prost::alloc::vec::Vec<Utxo>,
560+
#[prost(message, optional, tag = "3")]
561+
pub dkg_request: ::core::option::Option<DkgRequest>,
590562
}
591563
impl ::prost::Name for GenesisState {
592564
const NAME: &'static str = "GenesisState";
@@ -687,6 +659,34 @@ impl ::prost::Name for QueryPendingBtcWithdrawRequestsResponse {
687659
::prost::alloc::format!("side.btcbridge.{}", Self::NAME)
688660
}
689661
}
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+
}
690690
/// QuerySigningRequestsRequest is request type for the Query/SigningRequests RPC method.
691691
#[allow(clippy::derive_partial_eq_without_eq)]
692692
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -866,89 +866,6 @@ impl ::prost::Name for QueryParamsResponse {
866866
::prost::alloc::format!("side.btcbridge.{}", Self::NAME)
867867
}
868868
}
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-
}
952869
/// QueryUTXOsRequest is the request type for the Query/UTXOs RPC method.
953870
#[allow(clippy::derive_partial_eq_without_eq)]
954871
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -1143,33 +1060,6 @@ impl ::prost::Name for QueryDkgCompletionRequestsResponse {
11431060
::prost::alloc::format!("side.btcbridge.{}", Self::NAME)
11441061
}
11451062
}
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-
}
11731063
/// MsgSubmitDepositTransaction defines the Msg/SubmitDepositTransaction request type.
11741064
#[allow(clippy::derive_partial_eq_without_eq)]
11751065
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -1294,28 +1184,28 @@ impl ::prost::Name for MsgUpdateTrustedNonBtcRelayersResponse {
12941184
::prost::alloc::format!("side.btcbridge.{}", Self::NAME)
12951185
}
12961186
}
1297-
/// MsgUpdateTrustedOracles defines the Msg/UpdateTrustedOracles request type.
1187+
/// MsgUpdateTrustedFeeProviders defines the Msg/UpdateTrustedFeeProviders request type.
12981188
#[allow(clippy::derive_partial_eq_without_eq)]
12991189
#[derive(Clone, PartialEq, ::prost::Message)]
1300-
pub struct MsgUpdateTrustedOracles {
1190+
pub struct MsgUpdateTrustedFeeProviders {
13011191
#[prost(string, tag = "1")]
13021192
pub sender: ::prost::alloc::string::String,
13031193
#[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>,
13051195
}
1306-
impl ::prost::Name for MsgUpdateTrustedOracles {
1307-
const NAME: &'static str = "MsgUpdateTrustedOracles";
1196+
impl ::prost::Name for MsgUpdateTrustedFeeProviders {
1197+
const NAME: &'static str = "MsgUpdateTrustedFeeProviders";
13081198
const PACKAGE: &'static str = "side.btcbridge";
13091199
fn full_name() -> ::prost::alloc::string::String {
13101200
::prost::alloc::format!("side.btcbridge.{}", Self::NAME)
13111201
}
13121202
}
1313-
/// MsgUpdateTrustedOraclesResponse defines the Msg/UpdateTrustedOracles response type.
1203+
/// MsgUpdateTrustedFeeProvidersResponse defines the Msg/UpdateTrustedFeeProviders response type.
13141204
#[allow(clippy::derive_partial_eq_without_eq)]
13151205
#[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";
13191209
const PACKAGE: &'static str = "side.btcbridge";
13201210
fn full_name() -> ::prost::alloc::string::String {
13211211
::prost::alloc::format!("side.btcbridge.{}", Self::NAME)
@@ -1357,8 +1247,8 @@ pub struct MsgSubmitSignatures {
13571247
pub sender: ::prost::alloc::string::String,
13581248
#[prost(string, tag = "2")]
13591249
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>,
13621252
}
13631253
impl ::prost::Name for MsgSubmitSignatures {
13641254
const NAME: &'static str = "MsgSubmitSignatures";

0 commit comments

Comments
 (0)