Skip to content

Commit

Permalink
chore(*): upgrade babylond to v0.11.0 (#69)
Browse files Browse the repository at this point in the history
- upgrade babylond to `v0.11.0`
- e2e amend
  • Loading branch information
Lazar955 authored Oct 2, 2024
1 parent 9eb8b69 commit b5b8608
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion btcstaking-tracker/btcslasher/slasher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func FuzzSlasher(f *testing.F) {
[]*btcec.PublicKey{fpBTCPK.MustToBTCPK()},
covenantBtcPks,
bsParams.Params.CovenantQuorum,
unbondingBTCDel.GetStakingTime(),
uint16(unbondingBTCDel.GetStakingTime()),
btcutil.Amount(unbondingBTCDel.TotalSat),
net,
)
Expand Down
18 changes: 11 additions & 7 deletions e2etest/test_manager_btcstaking.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,17 @@ func (tm *TestManager) CreateBTCDelegation(

// submit BTC delegation to Babylon
msgBTCDel := &bstypes.MsgCreateBTCDelegation{
StakerAddr: signerAddr,
Pop: pop,
BtcPk: bbn.NewBIP340PubKeyFromBTCPK(tm.WalletPrivKey.PubKey()),
FpBtcPkList: []bbn.BIP340PubKey{*bbn.NewBIP340PubKeyFromBTCPK(fpPK)},
StakingTime: uint32(stakingTimeBlocks),
StakingValue: stakingValue,
StakingTx: stakingTxInfo,
StakerAddr: signerAddr,
Pop: pop,
BtcPk: bbn.NewBIP340PubKeyFromBTCPK(tm.WalletPrivKey.PubKey()),
FpBtcPkList: []bbn.BIP340PubKey{*bbn.NewBIP340PubKeyFromBTCPK(fpPK)},
StakingTime: stakingTimeBlocks,
StakingValue: stakingValue,
StakingTx: stakingTxInfo.Transaction,
StakingTxInclusionProof: &bstypes.InclusionProof{
Key: stakingTxInfo.Key,
Proof: stakingTxInfo.Proof,
},
SlashingTx: stakingSlashingInfo.SlashingTx,
DelegatorSlashingSig: delegatorSig,
// Ubonding related data
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
cosmossdk.io/log v1.4.1
cosmossdk.io/math v1.3.0
github.com/avast/retry-go/v4 v4.6.0
github.com/babylonlabs-io/babylon v0.10.0
github.com/babylonlabs-io/babylon v0.11.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 Expand Up @@ -36,6 +36,7 @@ require (
github.com/stretchr/testify v1.9.0
go.uber.org/atomic v1.10.0
go.uber.org/zap v1.26.0
golang.org/x/mod v0.17.0
golang.org/x/net v0.27.0
golang.org/x/sync v0.7.0
google.golang.org/grpc v1.64.1
Expand Down Expand Up @@ -309,7 +310,6 @@ require (
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.23.0 // indirect
golang.org/x/term v0.22.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,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.10.0 h1:y6Mu4P8IolylybASRn33am/B7OZEwNXGhWHTC1oSnu8=
github.com/babylonlabs-io/babylon v0.10.0/go.mod h1:ZOrTde9vs2xoqGTFw4xhupu2CMulnpywiuk0eh4kPOw=
github.com/babylonlabs-io/babylon v0.11.0 h1:gRJEkjgy3M9bGSY7VjusA84qn6ca8hXa78ss5Z8D3Cc=
github.com/babylonlabs-io/babylon v0.11.0/go.mod h1:ZOrTde9vs2xoqGTFw4xhupu2CMulnpywiuk0eh4kPOw=
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 b5b8608

Please sign in to comment.