Skip to content

Commit

Permalink
chore: bump babylon to v0.18.0 (#132)
Browse files Browse the repository at this point in the history
Bump bbn
  • Loading branch information
Lazar955 authored Dec 5, 2024
1 parent a7e8cc4 commit c96e77a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## Unreleased

### Improvements

* [#132](https://github.com/babylonlabs-io/vigilante/pull/132) bump bbn v0.18.0

## v0.17.3

### Improvements
Expand Down
11 changes: 2 additions & 9 deletions e2etest/test_manager_btcstaking.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,8 @@ var (
func (tm *TestManager) getBTCUnbondingTime(t *testing.T) uint32 {
bsParams, err := tm.BabylonClient.BTCStakingParams()
require.NoError(t, err)
btccParams, err := tm.BabylonClient.BTCCheckpointParams()
require.NoError(t, err)

m := sdkmath.Max[uint32](
bsParams.Params.MinUnbondingTimeBlocks,
btccParams.Params.CheckpointFinalizationTimeout,
)

return m + 1
return bsParams.Params.UnbondingTimeBlocks
}

func (tm *TestManager) CreateFinalityProvider(t *testing.T) (*bstypes.FinalityProvider, *btcec.PrivateKey) {
Expand Down Expand Up @@ -191,7 +184,7 @@ func (tm *TestManager) CreateBTCDelegation(
SlashingTx: stakingSlashingInfo.SlashingTx,
DelegatorSlashingSig: delegatorSig,
// Unbonding related data
UnbondingTime: uint32(tm.getBTCUnbondingTime(t)),
UnbondingTime: tm.getBTCUnbondingTime(t),
UnbondingTx: unbondingTxBytes,
UnbondingValue: unbondingSlashingInfo.UnbondingInfo.UnbondingOutput.Value,
UnbondingSlashingTx: unbondingSlashingInfo.SlashingTx,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
cosmossdk.io/log v1.4.1
cosmossdk.io/math v1.4.0
github.com/avast/retry-go/v4 v4.6.0
github.com/babylonlabs-io/babylon v0.17.1
github.com/babylonlabs-io/babylon v0.18.0
github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d
github.com/btcsuite/btcd v0.24.2
github.com/btcsuite/btcd/btcec/v2 v2.3.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1429,8 +1429,8 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX
github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k=
github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/babylonlabs-io/babylon v0.17.1 h1:lyWGdR7B49qDw5pllLyTW/HAM5uQWXXPZefjFzy/Xy0=
github.com/babylonlabs-io/babylon v0.17.1/go.mod h1:sT+KG2U+M0tDMNZZ2L5CwlXX0OpagGEs56BiWXqaZFw=
github.com/babylonlabs-io/babylon v0.18.0 h1:phMY/GiR9N5MpD3XCmvyPpZkc1I3kTM9yX+Cf0h3OnU=
github.com/babylonlabs-io/babylon v0.18.0/go.mod h1:sT+KG2U+M0tDMNZZ2L5CwlXX0OpagGEs56BiWXqaZFw=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
Expand Down

0 comments on commit c96e77a

Please sign in to comment.