From f28d9f343557dea94d8182b256ff0ba35fe0376a Mon Sep 17 00:00:00 2001 From: Gurjot Date: Thu, 8 Aug 2024 17:32:01 -0400 Subject: [PATCH] fix proto --- .../src/gen/babylon.btcstkconsumer.v1.rs | 58 ++----------------- .../proto/src/gen/babylon.zoneconcierge.v1.rs | 4 +- 2 files changed, 7 insertions(+), 55 deletions(-) diff --git a/packages/proto/src/gen/babylon.btcstkconsumer.v1.rs b/packages/proto/src/gen/babylon.btcstkconsumer.v1.rs index 0b975aef..4b6df3e1 100644 --- a/packages/proto/src/gen/babylon.btcstkconsumer.v1.rs +++ b/packages/proto/src/gen/babylon.btcstkconsumer.v1.rs @@ -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 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, - /// 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, - /// 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, - /// 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) diff --git a/packages/proto/src/gen/babylon.zoneconcierge.v1.rs b/packages/proto/src/gen/babylon.zoneconcierge.v1.rs index 23674e39..85d24538 100644 --- a/packages/proto/src/gen/babylon.zoneconcierge.v1.rs +++ b/packages/proto/src/gen/babylon.zoneconcierge.v1.rs @@ -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, } /// Nested message and enum types in `ZoneconciergePacketData`. @@ -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