Skip to content

Commit

Permalink
fix: update unit tests of other modules. refactor x/interchainquery t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
Max authored and xlab committed May 11, 2023
1 parent 39d7538 commit 14cdb34
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 51 deletions.
1 change: 0 additions & 1 deletion ibctesting/simapp/simd/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ func InitTestnet(
sdk.NewCoin(sdk.DefaultBondDenom, valTokens),
stakingtypes.NewDescription(nodeDirName, "", "", "", ""),
stakingtypes.NewCommissionRates(sdk.OneDec(), sdk.OneDec(), sdk.OneDec()),
sdk.OneInt(),
)
if err != nil {
return err
Expand Down
4 changes: 1 addition & 3 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ import (
ibc "github.com/cosmos/ibc-go/v6/modules/core"
ibchost "github.com/cosmos/ibc-go/v6/modules/core/24-host"
ibckeeper "github.com/cosmos/ibc-go/v6/modules/core/keeper"
ibctesting "github.com/cosmos/ibc-go/v6/testing"
ibctestingtypes "github.com/cosmos/ibc-go/v6/testing/types"
"github.com/gorilla/mux"
ibctestingtypes "github.com/persistenceOne/persistence-sdk/v2/ibctesting/types"
distr "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/distribution"
distrclient "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/distribution/client"
distrkeeper "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/distribution/keeper"
Expand Down Expand Up @@ -159,7 +158,6 @@ var (
var (
_ App = (*SimApp)(nil)
_ servertypes.Application = (*SimApp)(nil)
_ ibctesting.TestingApp = (*SimApp)(nil)
)

// SimApp extends an ABCI application, but with most of its parameters exported.
Expand Down
2 changes: 1 addition & 1 deletion simapp/simd/cmd/genaccounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil"
"github.com/persistenceOne/persistence-sdk/v2/simapp"
simcmd "github.com/persistenceOne/persistence-sdk/v2/simapp/simd/cmd"
"github.com/persistenceOne/persistence-sdk/v2/x/lsnative/genutil"
genutiltest "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/genutil/client/testutil"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
Expand Down
2 changes: 1 addition & 1 deletion simapp/simd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
genutilcli "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/genutil/client/cli"
"github.com/spf13/cast"
"github.com/spf13/cobra"
tmcfg "github.com/tendermint/tendermint/config"
Expand Down
2 changes: 1 addition & 1 deletion simapp/simd/cmd/testnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil"
"github.com/persistenceOne/persistence-sdk/v2/simapp"
genutiltest "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/genutil/client/testutil"
genutiltypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/genutil/types"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctesting "github.com/cosmos/ibc-go/v6/testing"
"github.com/persistenceOne/persistence-sdk/v2/ibctesting"
"github.com/persistenceOne/persistence-sdk/v2/simapp/helpers"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions x/interchainquery/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import (
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctesting "github.com/cosmos/ibc-go/v6/testing"
"github.com/stretchr/testify/suite"

ibctesting "github.com/persistenceOne/persistence-sdk/v2/ibctesting"
"github.com/persistenceOne/persistence-sdk/v2/simapp"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/keeper"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/types"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"
)

func init() {
Expand Down
7 changes: 5 additions & 2 deletions x/interchainquery/keeper/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ package keeper_test

import (
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"

"github.com/persistenceOne/persistence-sdk/v2/ibctesting"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/keeper"
)

func (suite *KeeperTestSuite) TestEndBlocker() {
validators := suite.GetSimApp(suite.chainB).StakingKeeper.GetBondedValidatorsByPower(suite.chainB.GetContext())

qvr := stakingtypes.QueryValidatorsResponse{
Validators: suite.GetSimApp(suite.chainB).StakingKeeper.GetBondedValidatorsByPower(suite.chainB.GetContext()),
Validators: ibctesting.SdkValidatorsToValidators(validators),
}

bondedQuery := stakingtypes.QueryValidatorsRequest{Status: stakingtypes.BondStatusBonded}
Expand Down
2 changes: 1 addition & 1 deletion x/interchainquery/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package keeper_test

import (
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"

icqtypes "github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/types"
)
Expand Down
17 changes: 10 additions & 7 deletions x/interchainquery/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctesting "github.com/cosmos/ibc-go/v6/testing"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/stretchr/testify/suite"

"github.com/persistenceOne/persistence-sdk/v2/ibctesting"
"github.com/persistenceOne/persistence-sdk/v2/simapp"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/keeper"
icqtypes "github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/types"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"
)

const TestOwnerAddress = "cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs"
Expand Down Expand Up @@ -52,7 +53,7 @@ func (suite *KeeperTestSuite) SetupTest() {
}

func (suite *KeeperTestSuite) TestMakeRequest() {
bondedQuery := stakingtypes.QueryValidatorsRequest{Status: stakingtypes.BondStatusBonded}
bondedQuery := stakingtypes.QueryValidatorsRequest{Status: sdkstaking.BondStatusBonded}
bz, err := bondedQuery.Marshal()
suite.NoError(err)

Expand Down Expand Up @@ -91,12 +92,13 @@ func (suite *KeeperTestSuite) TestMakeRequest() {
}

func (suite *KeeperTestSuite) TestSubmitQueryResponse() {
bondedQuery := stakingtypes.QueryValidatorsRequest{Status: stakingtypes.BondStatusBonded}
bondedQuery := stakingtypes.QueryValidatorsRequest{Status: sdkstaking.BondStatusBonded}
bz, err := bondedQuery.Marshal()
suite.NoError(err)

validators := suite.GetSimApp(suite.chainB).StakingKeeper.GetBondedValidatorsByPower(suite.chainB.GetContext())
qvr := stakingtypes.QueryValidatorsResponse{
Validators: suite.GetSimApp(suite.chainB).StakingKeeper.GetBondedValidatorsByPower(suite.chainB.GetContext()),
Validators: ibctesting.SdkValidatorsToValidators(validators),
}

tests := []struct {
Expand Down Expand Up @@ -192,12 +194,13 @@ func (suite *KeeperTestSuite) TestSubmitQueryResponse() {
}

func (suite *KeeperTestSuite) TestDataPoints() {
bondedQuery := stakingtypes.QueryValidatorsRequest{Status: stakingtypes.BondStatusBonded}
bondedQuery := stakingtypes.QueryValidatorsRequest{Status: sdkstaking.BondStatusBonded}
bz, err := bondedQuery.Marshal()
suite.NoError(err)

validators := suite.GetSimApp(suite.chainB).StakingKeeper.GetBondedValidatorsByPower(suite.chainB.GetContext())
qvr := stakingtypes.QueryValidatorsResponse{
Validators: suite.GetSimApp(suite.chainB).StakingKeeper.GetBondedValidatorsByPower(suite.chainB.GetContext()),
Validators: ibctesting.SdkValidatorsToValidators(validators),
}

id := keeper.GenerateQueryHash(suite.path.EndpointB.ConnectionID, suite.chainB.ChainID, "cosmos.staking.v1beta1.Query/Validators", bz, "")
Expand Down
2 changes: 1 addition & 1 deletion x/interchainquery/keeper/queries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package keeper_test

import (
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"

"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/keeper"
)
Expand Down
7 changes: 4 additions & 3 deletions x/interchainquery/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package types_test
import (
"testing"

stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctesting "github.com/cosmos/ibc-go/v6/testing"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistence-sdk/v2/ibctesting"
"github.com/persistenceOne/persistence-sdk/v2/simapp"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/keeper"
"github.com/persistenceOne/persistence-sdk/v2/x/interchainquery/types"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"
)

const TestOwnerAddress = "cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs"
Expand Down Expand Up @@ -53,8 +53,9 @@ func TestMsgSubmitQueryResponse(t *testing.T) {
bz, err := bondedQuery.Marshal()
require.NoError(t, err)

validators := GetSimApp(chainB).StakingKeeper.GetBondedValidatorsByPower(chainB.GetContext())
qvr := stakingtypes.QueryValidatorsResponse{
Validators: GetSimApp(chainB).StakingKeeper.GetBondedValidatorsByPower(chainB.GetContext()),
Validators: ibctesting.SdkValidatorsToValidators(validators),
}

msg := types.MsgSubmitQueryResponse{
Expand Down
4 changes: 2 additions & 2 deletions x/oracle/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"
gogotypes "github.com/gogo/protobuf/types"
"github.com/tendermint/tendermint/libs/log"

Expand Down Expand Up @@ -143,7 +143,7 @@ func (k Keeper) IterateExchangeRates(ctx sdk.Context, handler func(string, sdk.D
func (k Keeper) GetFeederDelegation(ctx sdk.Context, operator sdk.ValAddress) (sdk.AccAddress, error) {
// check that the given validator exists
if val := k.StakingKeeper.Validator(ctx, operator); val == nil || !val.IsBonded() {
return nil, sdkerrors.Wrapf(stakingtypes.ErrNoValidatorFound, "validator %s is not active set", operator.String())
return nil, sdkerrors.Wrapf(sdkstaking.ErrNoValidatorFound, "validator %s is not active set", operator.String())
}

store := ctx.KVStore(k.storeKey)
Expand Down
4 changes: 2 additions & 2 deletions x/oracle/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"

"github.com/persistenceOne/persistence-sdk/v2/x/oracle/types"
)
Expand Down Expand Up @@ -159,7 +159,7 @@ func (ms msgServer) DelegateFeedConsent(

val := ms.StakingKeeper.Validator(ctx, operatorAddr)
if val == nil {
return nil, sdkerrors.Wrap(stakingtypes.ErrNoValidatorFound, msg.Operator)
return nil, sdkerrors.Wrap(sdkstaking.ErrNoValidatorFound, msg.Operator)
}

ms.SetFeederDelegation(ctx, operatorAddr, delegateAddr)
Expand Down
20 changes: 10 additions & 10 deletions x/oracle/keeper/slash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package keeper_test
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/cosmos/cosmos-sdk/x/staking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking"
"github.com/persistenceOne/persistence-sdk/v2/x/oracle/testutil"
"github.com/persistenceOne/persistence-sdk/v2/x/oracle/types"
)
Expand Down Expand Up @@ -38,42 +38,42 @@ func (s *KeeperTestSuite) TestSlashAndResetMissCounters() {
s.app.OracleKeeper.SlashAndResetMissCounters(s.ctx)
staking.EndBlocker(s.ctx, s.app.StakingKeeper)

validator, _ := s.app.StakingKeeper.GetValidator(s.ctx, valAddr)
validator, _ := s.app.StakingKeeper.GetLiquidValidator(s.ctx, valAddr)
s.Require().Equal(amt, validator.GetBondedTokens())

// Case 2, slash
s.app.OracleKeeper.SetMissCounter(s.ctx, valAddr, missCounterSlash)
s.app.OracleKeeper.SlashAndResetMissCounters(s.ctx)

validator, _ = s.app.StakingKeeper.GetValidator(s.ctx, valAddr)
validator, _ = s.app.StakingKeeper.GetLiquidValidator(s.ctx, valAddr)
s.Require().Equal(amt.Sub(params.SlashFraction.MulInt(amt).TruncateInt()), validator.GetBondedTokens())
s.Require().True(validator.Jailed)

missCounter := app.OracleKeeper.GetMissCounter(ctx, valAddr)
s.Require().Zero(missCounter)

// Case 3, slash unbonded validator
validator, _ = s.app.StakingKeeper.GetValidator(s.ctx, valAddr)
validator.Status = stakingtypes.Unbonded
validator, _ = s.app.StakingKeeper.GetLiquidValidator(s.ctx, valAddr)
validator.Status = sdkstaking.Unbonded
validator.Jailed = false
validator.Tokens = amt
s.app.StakingKeeper.SetValidator(s.ctx, validator)

s.app.OracleKeeper.SetMissCounter(s.ctx, valAddr, missCounterSlash)
s.app.OracleKeeper.SlashAndResetMissCounters(s.ctx)
validator, _ = s.app.StakingKeeper.GetValidator(s.ctx, valAddr)
validator, _ = s.app.StakingKeeper.GetLiquidValidator(s.ctx, valAddr)
s.Require().Equal(amt, validator.Tokens)
s.Require().False(validator.Jailed)

// Case 4, slash jailed validator
validator, _ = s.app.StakingKeeper.GetValidator(s.ctx, valAddr)
validator.Status = stakingtypes.Bonded
validator, _ = s.app.StakingKeeper.GetLiquidValidator(s.ctx, valAddr)
validator.Status = sdkstaking.Bonded
validator.Jailed = true
validator.Tokens = amt
s.app.StakingKeeper.SetValidator(s.ctx, validator)

s.app.OracleKeeper.SetMissCounter(s.ctx, valAddr, missCounterSlash)
s.app.OracleKeeper.SlashAndResetMissCounters(s.ctx)
validator, _ = s.app.StakingKeeper.GetValidator(s.ctx, valAddr)
validator, _ = s.app.StakingKeeper.GetLiquidValidator(s.ctx, valAddr)
s.Require().Equal(amt, validator.Tokens)
}
8 changes: 4 additions & 4 deletions x/oracle/testutil/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/persistenceOne/persistence-sdk/v2/simapp"
"github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking"
stakingkeeper "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/keeper"
stakingtypes "github.com/persistenceOne/persistence-sdk/v2/x/lsnative/staking/types"
"github.com/tendermint/tendermint/crypto/secp256k1"
)

Expand Down Expand Up @@ -97,7 +97,7 @@ func newTestMsgCreateValidator(address sdk.ValAddress, pubKey cryptotypes.PubKey

msg, err := stakingtypes.NewMsgCreateValidator(
address, pubKey, sdk.NewCoin(sdk.DefaultBondDenom, amt),
stakingtypes.Description{}, commission, sdk.OneInt(),
stakingtypes.Description{}, commission,
)
if err != nil {
return nil, err
Expand Down
8 changes: 4 additions & 4 deletions x/oracle/types/expected_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"
)

// StakingKeeper defines the expected interface contract defined by the x/staking
// module.
type StakingKeeper interface {
Validator(ctx sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI
GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
Validator(ctx sdk.Context, address sdk.ValAddress) sdkstaking.ValidatorI
GetBondedValidatorsByPower(ctx sdk.Context) []sdkstaking.Validator
TotalBondedTokens(sdk.Context) math.Int
Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) math.Int
Jail(sdk.Context, sdk.ConsAddress)
Expand All @@ -24,7 +24,7 @@ type StakingKeeper interface {
// DistributionKeeper defines the expected interface contract defined by the
// x/distribution module.
type DistributionKeeper interface {
AllocateTokensToValidator(ctx sdk.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins)
AllocateTokensToValidator(ctx sdk.Context, val sdkstaking.ValidatorI, tokens sdk.DecCoins)
GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins
}

Expand Down
10 changes: 5 additions & 5 deletions x/oracle/types/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
sdkstaking "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/tendermint/tendermint/crypto/secp256k1"
tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
)
Expand Down Expand Up @@ -40,7 +40,7 @@ func (sk MockStakingKeeper) Validators() []MockValidator {
return sk.validators
}

func (sk MockStakingKeeper) Validator(_ sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI {
func (sk MockStakingKeeper) Validator(_ sdk.Context, address sdk.ValAddress) sdkstaking.ValidatorI {
for _, validator := range sk.validators {
if validator.GetOperator().Equals(address) {
return validator
Expand All @@ -54,7 +54,7 @@ func (MockStakingKeeper) TotalBondedTokens(sdk.Context) sdk.Int {
return sdk.ZeroInt()
}

func (MockStakingKeeper) GetBondedValidatorsByPower(sdk.Context) []stakingtypes.Validator {
func (MockStakingKeeper) GetBondedValidatorsByPower(sdk.Context) []sdkstaking.Validator {
return nil
}

Expand Down Expand Up @@ -101,8 +101,8 @@ func (MockValidator) GetMoniker() string {
return ""
}

func (MockValidator) GetStatus() stakingtypes.BondStatus {
return stakingtypes.Bonded
func (MockValidator) GetStatus() sdkstaking.BondStatus {
return sdkstaking.Bonded
}

func (MockValidator) IsBonded() bool {
Expand Down

0 comments on commit 14cdb34

Please sign in to comment.