diff --git a/btcstaking-tracker/btcslasher/slasher_test.go b/btcstaking-tracker/btcslasher/slasher_test.go index 9c9df040..5727fd44 100644 --- a/btcstaking-tracker/btcslasher/slasher_test.go +++ b/btcstaking-tracker/btcslasher/slasher_test.go @@ -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, ) diff --git a/e2etest/test_manager_btcstaking.go b/e2etest/test_manager_btcstaking.go index ed9187f1..d938c052 100644 --- a/e2etest/test_manager_btcstaking.go +++ b/e2etest/test_manager_btcstaking.go @@ -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 diff --git a/go.mod b/go.mod index a1a743c4..e0ef811e 100644 --- a/go.mod +++ b/go.mod @@ -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 @@ -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 @@ -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 diff --git a/go.sum b/go.sum index 0898275e..5d58fb8b 100644 --- a/go.sum +++ b/go.sum @@ -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=