Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Nov 27, 2024
1 parent b21c6bc commit d172732
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions packages/apis/src/btc_staking_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,6 @@ pub struct BtcUndelegationInfo {
/// output to unbonding output. Unbonding output will usually have lower timelock
/// than staking output.
pub unbonding_tx: Binary,
/// delegator_unbonding_info is the information about transaction which spent
/// the staking output
pub delegator_unbonding_info: Option<DelegatorUnbondingInfo>,
/// covenant_unbonding_sig_list is the list of signatures on the unbonding tx
/// by covenant members
pub covenant_unbonding_sig_list: Vec<SignatureInfo>,
/// slashing_tx is the unbonding slashing tx
pub slashing_tx: Binary,
/// delegator_slashing_sig is the signature on the slashing tx
Expand All @@ -340,6 +334,12 @@ pub struct BtcUndelegationInfo {
/// unbonding slashing tx by each covenant member
/// It will be a part of the witness for the staking tx output.
pub covenant_slashing_sigs: Vec<CovenantAdaptorSignatures>,
/// covenant_unbonding_sig_list is the list of signatures on the unbonding tx
/// by covenant members
pub covenant_unbonding_sig_list: Vec<SignatureInfo>,
/// delegator_unbonding_info is the information about transaction which spent
/// the staking output
pub delegator_unbonding_info: Option<DelegatorUnbondingInfo>,
}

#[cw_serde]
Expand Down
28 changes: 14 additions & 14 deletions packages/proto/src/gen/babylon.btcstaking.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,56 +345,56 @@ pub struct NewFinalityProvider {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActiveBtcDelegation {
/// staker_addr is the address to receive rewards from BTC delegation.
#[prost(string, tag="11")]
#[prost(string, tag="1")]
pub staker_addr: ::prost::alloc::string::String,
/// btc_pk_hex is the Bitcoin secp256k1 PK of this BTC delegation
/// the PK follows encoding in BIP-340 spec in hex format
#[prost(string, tag="1")]
#[prost(string, tag="2")]
pub btc_pk_hex: ::prost::alloc::string::String,
/// fp_btc_pk_list is the list of BIP-340 PKs of the finality providers that
/// this BTC delegation delegates to
#[prost(string, repeated, tag="2")]
#[prost(string, repeated, tag="3")]
pub fp_btc_pk_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// start_height is the start BTC height of the BTC delegation
/// it is the start BTC height of the timelock
#[prost(uint32, tag="3")]
#[prost(uint32, tag="4")]
pub start_height: u32,
/// end_height is the end height of the BTC delegation
/// it is the end BTC height of the timelock - w
#[prost(uint32, tag="4")]
#[prost(uint32, tag="5")]
pub end_height: u32,
/// total_sat is the total amount of BTC stakes in this delegation
/// quantified in satoshi
#[prost(uint64, tag="5")]
#[prost(uint64, tag="6")]
pub total_sat: u64,
/// staking_tx is the staking tx
#[prost(bytes="bytes", tag="6")]
#[prost(bytes="bytes", tag="7")]
pub staking_tx: ::prost::bytes::Bytes,
/// slashing_tx is the slashing tx
#[prost(bytes="bytes", tag="7")]
#[prost(bytes="bytes", tag="8")]
pub slashing_tx: ::prost::bytes::Bytes,
/// delegator_slashing_sig is the signature on the slashing tx
/// by the delegator (i.e., SK corresponding to btc_pk) as string hex.
/// It will be a part of the witness for the staking tx output.
#[prost(bytes="bytes", tag="8")]
#[prost(bytes="bytes", tag="9")]
pub delegator_slashing_sig: ::prost::bytes::Bytes,
/// covenant_sigs is a list of adaptor signatures on the slashing tx
/// by each covenant member
/// It will be a part of the witness for the staking tx output.
#[prost(message, repeated, tag="9")]
#[prost(message, repeated, tag="10")]
pub covenant_sigs: ::prost::alloc::vec::Vec<CovenantAdaptorSignatures>,
/// staking_output_idx is the index of the staking output in the staking tx
#[prost(uint32, tag="10")]
#[prost(uint32, tag="11")]
pub staking_output_idx: u32,
/// unbonding_time used in unbonding output timelock path and in slashing transactions
/// change outputs
#[prost(uint32, tag="13")]
#[prost(uint32, tag="12")]
pub unbonding_time: u32,
/// undelegation_info is the undelegation info of this delegation.
#[prost(message, optional, tag="14")]
#[prost(message, optional, tag="13")]
pub undelegation_info: ::core::option::Option<BtcUndelegationInfo>,
/// params version used to validate delegation
#[prost(uint32, tag="15")]
#[prost(uint32, tag="14")]
pub params_version: u32,
}
/// BTCUndelegationInfo provides all necessary info about the undeleagation
Expand Down

0 comments on commit d172732

Please sign in to comment.