Skip to content

Commit 7fff1ee

Browse files
committed
release 2.0.0-alpha.19
1 parent 1368f84 commit 7fff1ee

15 files changed

+9558
-492
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.18"
3+
version = "2.0.0-alpha.19"
44
edition = "2021"
55
description = "Rust Client for Side Chain"
66
readme = "README.md"

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,11 @@ impl ::prost::Name for TssParams {
282282
#[allow(clippy::derive_partial_eq_without_eq)]
283283
#[derive(Clone, PartialEq, ::prost::Message)]
284284
pub struct IbcParams {
285-
/// Id of the IBC port used to transfer sBTC
286-
#[prost(string, tag = "1")]
287-
pub port_id: ::prost::alloc::string::String,
288285
/// Timeout height offset relative to the current client height
289-
#[prost(uint64, tag = "2")]
286+
#[prost(uint64, tag = "1")]
290287
pub timeout_height_offset: u64,
291288
/// Timeout duration relative to the current time
292-
#[prost(message, optional, tag = "3")]
289+
#[prost(message, optional, tag = "2")]
293290
pub timeout_duration: ::core::option::Option<::tendermint_proto::google::protobuf::Duration>,
294291
}
295292
impl ::prost::Name for IbcParams {

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,19 +2159,13 @@ impl serde::Serialize for IbcParams {
21592159
{
21602160
use serde::ser::SerializeStruct;
21612161
let mut len = 0;
2162-
if !self.port_id.is_empty() {
2163-
len += 1;
2164-
}
21652162
if self.timeout_height_offset != 0 {
21662163
len += 1;
21672164
}
21682165
if self.timeout_duration.is_some() {
21692166
len += 1;
21702167
}
21712168
let mut struct_ser = serializer.serialize_struct("side.btcbridge.IBCParams", len)?;
2172-
if !self.port_id.is_empty() {
2173-
struct_ser.serialize_field("portId", &self.port_id)?;
2174-
}
21752169
if self.timeout_height_offset != 0 {
21762170
#[allow(clippy::needless_borrow)]
21772171
struct_ser.serialize_field(
@@ -2193,8 +2187,6 @@ impl<'de> serde::Deserialize<'de> for IbcParams {
21932187
D: serde::Deserializer<'de>,
21942188
{
21952189
const FIELDS: &[&str] = &[
2196-
"port_id",
2197-
"portId",
21982190
"timeout_height_offset",
21992191
"timeoutHeightOffset",
22002192
"timeout_duration",
@@ -2203,7 +2195,6 @@ impl<'de> serde::Deserialize<'de> for IbcParams {
22032195

22042196
#[allow(clippy::enum_variant_names)]
22052197
enum GeneratedField {
2206-
PortId,
22072198
TimeoutHeightOffset,
22082199
TimeoutDuration,
22092200
}
@@ -2231,7 +2222,6 @@ impl<'de> serde::Deserialize<'de> for IbcParams {
22312222
E: serde::de::Error,
22322223
{
22332224
match value {
2234-
"portId" | "port_id" => Ok(GeneratedField::PortId),
22352225
"timeoutHeightOffset" | "timeout_height_offset" => {
22362226
Ok(GeneratedField::TimeoutHeightOffset)
22372227
}
@@ -2257,17 +2247,10 @@ impl<'de> serde::Deserialize<'de> for IbcParams {
22572247
where
22582248
V: serde::de::MapAccess<'de>,
22592249
{
2260-
let mut port_id__ = None;
22612250
let mut timeout_height_offset__ = None;
22622251
let mut timeout_duration__ = None;
22632252
while let Some(k) = map_.next_key()? {
22642253
match k {
2265-
GeneratedField::PortId => {
2266-
if port_id__.is_some() {
2267-
return Err(serde::de::Error::duplicate_field("portId"));
2268-
}
2269-
port_id__ = Some(map_.next_value()?);
2270-
}
22712254
GeneratedField::TimeoutHeightOffset => {
22722255
if timeout_height_offset__.is_some() {
22732256
return Err(serde::de::Error::duplicate_field(
@@ -2288,7 +2271,6 @@ impl<'de> serde::Deserialize<'de> for IbcParams {
22882271
}
22892272
}
22902273
Ok(IbcParams {
2291-
port_id: port_id__.unwrap_or_default(),
22922274
timeout_height_offset: timeout_height_offset__.unwrap_or_default(),
22932275
timeout_duration: timeout_duration__,
22942276
})

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

Lines changed: 125 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
pub 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
}
1820
impl ::prost::Name for DlcOracle {
@@ -27,13 +29,15 @@ impl ::prost::Name for DlcOracle {
2729
pub 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
}
3943
impl ::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)]
121149
pub 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)]
385443
pub 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)]
416504
pub 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

Comments
 (0)