Skip to content

Commit

Permalink
Add unbonding time to unbonding info (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradStaniec authored Nov 29, 2023
1 parent 98a5549 commit 4a58fbe
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 70 deletions.
4 changes: 3 additions & 1 deletion proto/babylon/btcstaking/v1/btcstaking.proto
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ message BTCUndelegationInfo {
// than staking output.
bytes unbonding_tx = 1;

// unbonding_time describes how long the funds will be locked in the unbonding output
uint32 unbonding_time = 2;
// covenant_unbonding_sig_list is the list of signatures on the unbonding tx
// by covenant members
repeated SignatureInfo covenant_unbonding_sig_list = 2;
repeated SignatureInfo covenant_unbonding_sig_list = 3;
}

// BTCDelegatorDelegations is a collection of BTC delegations from the same delegator.
Expand Down
1 change: 1 addition & 0 deletions x/btcstaking/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func (k Keeper) BTCDelegation(ctx context.Context, req *types.QueryBTCDelegation
if btcDel.BtcUndelegation != nil {
undelegationInfo = &types.BTCUndelegationInfo{
UnbondingTx: btcDel.BtcUndelegation.UnbondingTx,
UnbondingTime: btcDel.BtcUndelegation.UnbondingTime,
CovenantUnbondingSigList: btcDel.BtcUndelegation.CovenantUnbondingSigList,
}
}
Expand Down
174 changes: 105 additions & 69 deletions x/btcstaking/types/btcstaking.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a58fbe

Please sign in to comment.