Skip to content

Commit

Permalink
fix proto
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Aug 8, 2024
1 parent 1ba7305 commit f28d9f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 55 deletions.
58 changes: 4 additions & 54 deletions packages/proto/src/gen/babylon.btcstkconsumer.v1.rs
Original file line number Diff line number Diff line change
@@ -1,61 +1,11 @@
// @generated
/// QueryFinalityProviderRequest requests information about a finality provider
/// ConsumerRegisterPacketData defines the packet data for consumer registration
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryFinalityProviderRequest {
/// consumer id is the consumer id this finality provider is registered to
pub struct ConsumerRegisterIbcPacket {
#[prost(string, tag="1")]
pub consumer_id: ::prost::alloc::string::String,
/// fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the finality provider
pub consumer_name: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub fp_btc_pk_hex: ::prost::alloc::string::String,
}
/// QueryFinalityProviderResponse contains information about a finality provider
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryFinalityProviderResponse {
/// finality_provider contains the FinalityProvider
#[prost(message, optional, tag="1")]
pub finality_provider: ::core::option::Option<FinalityProviderResponse>,
}
/// FinalityProviderResponse defines a finality provider with voting power information.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalityProviderResponse {
/// description defines the description terms for the finality provider.
#[prost(message, optional, tag="1")]
pub description: ::core::option::Option<cosmos_sdk_proto::cosmos::staking::v1beta1::Description>,
/// commission defines the commission rate of the finality provider.
#[prost(string, tag="2")]
pub commission: ::prost::alloc::string::String,
/// babylon_pk is the Babylon secp256k1 PK of this finality provider
#[prost(message, optional, tag="3")]
pub babylon_pk: ::core::option::Option<cosmos_sdk_proto::cosmos::crypto::secp256k1::PubKey>,
/// btc_pk is the Bitcoin secp256k1 PK of this finality provider
/// the PK follows encoding in BIP-340 spec
#[prost(bytes="bytes", tag="4")]
pub btc_pk: ::prost::bytes::Bytes,
/// pop is the proof of possession of babylon_pk and btc_pk
#[prost(message, optional, tag="5")]
pub pop: ::core::option::Option<super::super::btcstaking::v1::ProofOfPossession>,
/// slashed_babylon_height indicates the Babylon height when
/// the finality provider is slashed.
/// if it's 0 then the finality provider is not slashed
#[prost(uint64, tag="6")]
pub slashed_babylon_height: u64,
/// slashed_btc_height indicates the BTC height when
/// the finality provider is slashed.
/// if it's 0 then the finality provider is not slashed
#[prost(uint64, tag="7")]
pub slashed_btc_height: u64,
/// height is the queried Babylon height
#[prost(uint64, tag="8")]
pub height: u64,
/// voting_power is the voting power of this finality provider at the given height
#[prost(uint64, tag="9")]
pub voting_power: u64,
/// consumer_id is the consumer id this finality provider is registered to
#[prost(string, tag="10")]
pub consumer_id: ::prost::alloc::string::String,
pub consumer_description: ::prost::alloc::string::String,
}
// @@protoc_insertion_point(module)
4 changes: 3 additions & 1 deletion packages/proto/src/gen/babylon.zoneconcierge.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub struct ProofFinalizedChainInfo {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ZoneconciergePacketData {
/// packet is the actual message carried in the IBC packet
#[prost(oneof="zoneconcierge_packet_data::Packet", tags="1, 2")]
#[prost(oneof="zoneconcierge_packet_data::Packet", tags="1, 2, 3")]
pub packet: ::core::option::Option<zoneconcierge_packet_data::Packet>,
}
/// Nested message and enum types in `ZoneconciergePacketData`.
Expand All @@ -167,6 +167,8 @@ pub mod zoneconcierge_packet_data {
BtcTimestamp(super::BtcTimestamp),
#[prost(message, tag="2")]
BtcStaking(super::super::super::btcstaking::v1::BtcStakingIbcPacket),
#[prost(message, tag="3")]
ConsumerRegister(super::super::super::btcstkconsumer::v1::ConsumerRegisterIbcPacket),
}
}
/// BTCTimestamp is a BTC timestamp that carries information of a BTC-finalised epoch
Expand Down

0 comments on commit f28d9f3

Please sign in to comment.