testutil

package
v0.0.0-...-a6871c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmtConsPubKey

func GetCmtConsPubKey(v types.Validator) (cmtcrypto.PubKey, error)

GetCmtConsPubKey gets the validator's public key as a cmtcrypto.PubKey.

func NewValidator

func NewValidator(tb testing.TB, operator sdk.ValAddress, pubKey cryptotypes.PubKey) types.Validator

NewValidator is a testing helper method to create validators in tests

func ToCmtValidator

func ToCmtValidator(v types.Validator, r math.Int) (*cmttypes.Validator, error)

ToCmtValidator casts an SDK validator to a CometBFT type Validator.

func ToCmtValidators

func ToCmtValidators(v types.Validators, r math.Int) ([]*cmttypes.Validator, error)

ToCmtValidators casts all validators to the corresponding CometBFT type.

func ZeroCommission

func ZeroCommission() stakingtypes.CommissionRates

ZeroCommission constructs a commission rates with all zeros.

Types

type Helper

type Helper struct {
	Ctx        sdk.Context
	Commission stakingtypes.CommissionRates
	// Coin Denomination
	Denom string
	// contains filtered or unexported fields
}

Helper is a structure which wraps the staking message server and provides methods useful in tests

func NewHelper

func NewHelper(t *testing.T, ctx sdk.Context, k *keeper.Keeper) *Helper

NewHelper creates a new instance of Helper.

func (*Helper) CheckValidator

func (sh *Helper) CheckValidator(addr sdk.ValAddress, status stakingtypes.BondStatus, jailed bool) stakingtypes.Validator

CheckValidator asserts that a validor exists and has a given status (if status!="") and if has a right jailed flag.

func (*Helper) CreateValidator

func (sh *Helper) CreateValidator(addr sdk.ValAddress, pk cryptotypes.PubKey, stakeAmount math.Int, ok bool)

CreateValidator calls staking module `MsgServer/CreateValidator` to create a new validator

func (*Helper) CreateValidatorMsg

func (sh *Helper) CreateValidatorMsg(addr sdk.ValAddress, pk cryptotypes.PubKey, stakeAmount math.Int) *stakingtypes.MsgCreateValidator

CreateValidatorMsg returns a message used to create validator in this service.

func (*Helper) CreateValidatorWithMsg

CreateValidatorWithMsg calls staking module `MsgServer/CreateValidator`

func (*Helper) CreateValidatorWithValPower

func (sh *Helper) CreateValidatorWithValPower(addr sdk.ValAddress, pk cryptotypes.PubKey, valPower int64, ok bool) math.Int

CreateValidatorWithValPower calls staking module `MsgServer/CreateValidator` to create a new validator with zero commission

func (*Helper) Delegate

func (sh *Helper) Delegate(delegator, val string, amount math.Int)

Delegate calls staking module staking module `MsgServer/Delegate` to delegate stake for a validator

func (*Helper) DelegateWithPower

func (sh *Helper) DelegateWithPower(delegator, val string, power int64)

DelegateWithPower calls staking module `MsgServer/Delegate` to delegate stake for a validator

func (*Helper) TurnBlock

func (sh *Helper) TurnBlock(newTime time.Time) sdk.Context

TurnBlock calls EndBlocker and updates the block time

func (*Helper) TurnBlockTimeDiff

func (sh *Helper) TurnBlockTimeDiff(diff time.Duration) sdk.Context

TurnBlockTimeDiff calls EndBlocker and updates the block time by adding the duration to the current block time

func (*Helper) Undelegate

func (sh *Helper) Undelegate(delegator, val string, amount math.Int, ok bool)

Undelegate calls staking module `MsgServer/Undelegate` to unbound some stake from a validator.

type MockAccountKeeper

type MockAccountKeeper struct {
	// contains filtered or unexported fields
}

MockAccountKeeper is a mock of AccountKeeper interface.

func NewMockAccountKeeper

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance.

func (*MockAccountKeeper) AddressCodec

func (m *MockAccountKeeper) AddressCodec() address.Codec

AddressCodec mocks base method.

func (*MockAccountKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountKeeper) GetAccount

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount

func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types1.ModuleAccountI

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAddress

func (m *MockAccountKeeper) GetModuleAddress(name string) types1.AccAddress

GetModuleAddress mocks base method.

func (*MockAccountKeeper) SetModuleAccount

func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types1.ModuleAccountI)

SetModuleAccount mocks base method.

type MockAccountKeeperMockRecorder

type MockAccountKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) AddressCodec

func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call

AddressCodec indicates an expected call of AddressCodec.

func (*MockAccountKeeperMockRecorder) GetAccount

func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAccount

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAddress

func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call

GetModuleAddress indicates an expected call of GetModuleAddress.

func (*MockAccountKeeperMockRecorder) SetModuleAccount

func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call

SetModuleAccount indicates an expected call of SetModuleAccount.

type MockBankKeeper

type MockBankKeeper struct {
	// contains filtered or unexported fields
}

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) BurnCoins

func (m *MockBankKeeper) BurnCoins(arg0 context.Context, arg1 []byte, arg2 types1.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) DelegateCoinsFromAccountToModule

func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr types1.AccAddress, recipientModule string, amt types1.Coins) error

DelegateCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBankKeeper) GetAllBalances

func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types1.AccAddress) types1.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) GetBalance

func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types1.AccAddress, denom string) types1.Coin

GetBalance mocks base method.

func (*MockBankKeeper) GetSupply

func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types1.Coin

GetSupply mocks base method.

func (*MockBankKeeper) LockedCoins

func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types1.AccAddress) types1.Coins

LockedCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule

func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types1.AccAddress, recipientModule string, amt types1.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt types1.Coins) error

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SpendableCoins

func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types1.AccAddress) types1.Coins

SpendableCoins mocks base method.

func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount

func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types1.AccAddress, amt types1.Coins) error

UndelegateCoinsFromModuleToAccount mocks base method.

type MockBankKeeperMockRecorder

type MockBankKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) BurnCoins

func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 interface{}) *gomock.Call

BurnCoins indicates an expected call of BurnCoins.

func (*MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule

func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) GetAllBalances

func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) GetBalance

func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) GetSupply

func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock.Call

GetSupply indicates an expected call of GetSupply.

func (*MockBankKeeperMockRecorder) LockedCoins

func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call

LockedCoins indicates an expected call of LockedCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt interface{}) *gomock.Call

SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.

func (*MockBankKeeperMockRecorder) SpendableCoins

func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins.

func (*MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount

func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.

type MockConsensusKeeper

type MockConsensusKeeper struct {
	// contains filtered or unexported fields
}

MockConsensusKeeper is a mock of ConsensusKeeper interface.

func NewMockConsensusKeeper

func NewMockConsensusKeeper(ctrl *gomock.Controller) *MockConsensusKeeper

NewMockConsensusKeeper creates a new mock instance.

func (*MockConsensusKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConsensusKeeper) Params

Params mocks base method.

type MockConsensusKeeperMockRecorder

type MockConsensusKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockConsensusKeeperMockRecorder is the mock recorder for MockConsensusKeeper.

func (*MockConsensusKeeperMockRecorder) Params

func (mr *MockConsensusKeeperMockRecorder) Params(arg0, arg1 interface{}) *gomock.Call

Params indicates an expected call of Params.

type MockDelegationSet

type MockDelegationSet struct {
	// contains filtered or unexported fields
}

MockDelegationSet is a mock of DelegationSet interface.

func NewMockDelegationSet

func NewMockDelegationSet(ctrl *gomock.Controller) *MockDelegationSet

NewMockDelegationSet creates a new mock instance.

func (*MockDelegationSet) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDelegationSet) GetValidatorSet

func (m *MockDelegationSet) GetValidatorSet() types.ValidatorSet

GetValidatorSet mocks base method.

func (*MockDelegationSet) IterateDelegations

func (m *MockDelegationSet) IterateDelegations(ctx context.Context, delegator types1.AccAddress, fn func(int64, types1.DelegationI) bool) error

IterateDelegations mocks base method.

type MockDelegationSetMockRecorder

type MockDelegationSetMockRecorder struct {
	// contains filtered or unexported fields
}

MockDelegationSetMockRecorder is the mock recorder for MockDelegationSet.

func (*MockDelegationSetMockRecorder) GetValidatorSet

func (mr *MockDelegationSetMockRecorder) GetValidatorSet() *gomock.Call

GetValidatorSet indicates an expected call of GetValidatorSet.

func (*MockDelegationSetMockRecorder) IterateDelegations

func (mr *MockDelegationSetMockRecorder) IterateDelegations(ctx, delegator, fn interface{}) *gomock.Call

IterateDelegations indicates an expected call of IterateDelegations.

type MockStakingHooks

type MockStakingHooks struct {
	// contains filtered or unexported fields
}

MockStakingHooks is a mock of StakingHooks interface.

func NewMockStakingHooks

func NewMockStakingHooks(ctrl *gomock.Controller) *MockStakingHooks

NewMockStakingHooks creates a new mock instance.

func (*MockStakingHooks) AfterConsensusPubKeyUpdate

func (m *MockStakingHooks) AfterConsensusPubKeyUpdate(ctx context.Context, oldPubKey, newPubKey types0.PubKey, rotationFee types1.Coin) error

AfterConsensusPubKeyUpdate mocks base method.

func (*MockStakingHooks) AfterDelegationModified

func (m *MockStakingHooks) AfterDelegationModified(ctx context.Context, delAddr types1.AccAddress, valAddr types1.ValAddress) error

AfterDelegationModified mocks base method.

func (*MockStakingHooks) AfterUnbondingInitiated

func (m *MockStakingHooks) AfterUnbondingInitiated(ctx context.Context, id uint64) error

AfterUnbondingInitiated mocks base method.

func (*MockStakingHooks) AfterValidatorBeginUnbonding

func (m *MockStakingHooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr types1.ConsAddress, valAddr types1.ValAddress) error

AfterValidatorBeginUnbonding mocks base method.

func (*MockStakingHooks) AfterValidatorBonded

func (m *MockStakingHooks) AfterValidatorBonded(ctx context.Context, consAddr types1.ConsAddress, valAddr types1.ValAddress) error

AfterValidatorBonded mocks base method.

func (*MockStakingHooks) AfterValidatorCreated

func (m *MockStakingHooks) AfterValidatorCreated(ctx context.Context, valAddr types1.ValAddress) error

AfterValidatorCreated mocks base method.

func (*MockStakingHooks) AfterValidatorRemoved

func (m *MockStakingHooks) AfterValidatorRemoved(ctx context.Context, consAddr types1.ConsAddress, valAddr types1.ValAddress) error

AfterValidatorRemoved mocks base method.

func (*MockStakingHooks) BeforeDelegationCreated

func (m *MockStakingHooks) BeforeDelegationCreated(ctx context.Context, delAddr types1.AccAddress, valAddr types1.ValAddress) error

BeforeDelegationCreated mocks base method.

func (*MockStakingHooks) BeforeDelegationRemoved

func (m *MockStakingHooks) BeforeDelegationRemoved(ctx context.Context, delAddr types1.AccAddress, valAddr types1.ValAddress) error

BeforeDelegationRemoved mocks base method.

func (*MockStakingHooks) BeforeDelegationSharesModified

func (m *MockStakingHooks) BeforeDelegationSharesModified(ctx context.Context, delAddr types1.AccAddress, valAddr types1.ValAddress) error

BeforeDelegationSharesModified mocks base method.

func (*MockStakingHooks) BeforeValidatorModified

func (m *MockStakingHooks) BeforeValidatorModified(ctx context.Context, valAddr types1.ValAddress) error

BeforeValidatorModified mocks base method.

func (*MockStakingHooks) BeforeValidatorSlashed

func (m *MockStakingHooks) BeforeValidatorSlashed(ctx context.Context, valAddr types1.ValAddress, fraction math.LegacyDec) error

BeforeValidatorSlashed mocks base method.

func (*MockStakingHooks) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockStakingHooksMockRecorder

type MockStakingHooksMockRecorder struct {
	// contains filtered or unexported fields
}

MockStakingHooksMockRecorder is the mock recorder for MockStakingHooks.

func (*MockStakingHooksMockRecorder) AfterConsensusPubKeyUpdate

func (mr *MockStakingHooksMockRecorder) AfterConsensusPubKeyUpdate(ctx, oldPubKey, newPubKey, rotationFee interface{}) *gomock.Call

AfterConsensusPubKeyUpdate indicates an expected call of AfterConsensusPubKeyUpdate.

func (*MockStakingHooksMockRecorder) AfterDelegationModified

func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr interface{}) *gomock.Call

AfterDelegationModified indicates an expected call of AfterDelegationModified.

func (*MockStakingHooksMockRecorder) AfterUnbondingInitiated

func (mr *MockStakingHooksMockRecorder) AfterUnbondingInitiated(ctx, id interface{}) *gomock.Call

AfterUnbondingInitiated indicates an expected call of AfterUnbondingInitiated.

func (*MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding

func (mr *MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding(ctx, consAddr, valAddr interface{}) *gomock.Call

AfterValidatorBeginUnbonding indicates an expected call of AfterValidatorBeginUnbonding.

func (*MockStakingHooksMockRecorder) AfterValidatorBonded

func (mr *MockStakingHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddr interface{}) *gomock.Call

AfterValidatorBonded indicates an expected call of AfterValidatorBonded.

func (*MockStakingHooksMockRecorder) AfterValidatorCreated

func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr interface{}) *gomock.Call

AfterValidatorCreated indicates an expected call of AfterValidatorCreated.

func (*MockStakingHooksMockRecorder) AfterValidatorRemoved

func (mr *MockStakingHooksMockRecorder) AfterValidatorRemoved(ctx, consAddr, valAddr interface{}) *gomock.Call

AfterValidatorRemoved indicates an expected call of AfterValidatorRemoved.

func (*MockStakingHooksMockRecorder) BeforeDelegationCreated

func (mr *MockStakingHooksMockRecorder) BeforeDelegationCreated(ctx, delAddr, valAddr interface{}) *gomock.Call

BeforeDelegationCreated indicates an expected call of BeforeDelegationCreated.

func (*MockStakingHooksMockRecorder) BeforeDelegationRemoved

func (mr *MockStakingHooksMockRecorder) BeforeDelegationRemoved(ctx, delAddr, valAddr interface{}) *gomock.Call

BeforeDelegationRemoved indicates an expected call of BeforeDelegationRemoved.

func (*MockStakingHooksMockRecorder) BeforeDelegationSharesModified

func (mr *MockStakingHooksMockRecorder) BeforeDelegationSharesModified(ctx, delAddr, valAddr interface{}) *gomock.Call

BeforeDelegationSharesModified indicates an expected call of BeforeDelegationSharesModified.

func (*MockStakingHooksMockRecorder) BeforeValidatorModified

func (mr *MockStakingHooksMockRecorder) BeforeValidatorModified(ctx, valAddr interface{}) *gomock.Call

BeforeValidatorModified indicates an expected call of BeforeValidatorModified.

func (*MockStakingHooksMockRecorder) BeforeValidatorSlashed

func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fraction interface{}) *gomock.Call

BeforeValidatorSlashed indicates an expected call of BeforeValidatorSlashed.

type MockValidatorSet

type MockValidatorSet struct {
	// contains filtered or unexported fields
}

MockValidatorSet is a mock of ValidatorSet interface.

func NewMockValidatorSet

func NewMockValidatorSet(ctrl *gomock.Controller) *MockValidatorSet

NewMockValidatorSet creates a new mock instance.

func (*MockValidatorSet) Delegation

Delegation mocks base method.

func (*MockValidatorSet) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidatorSet) GetPubKeyByConsAddr

func (m *MockValidatorSet) GetPubKeyByConsAddr(arg0 context.Context, arg1 types1.ConsAddress) (crypto.PublicKey, error)

GetPubKeyByConsAddr mocks base method.

func (*MockValidatorSet) IterateBondedValidatorsByPower

func (m *MockValidatorSet) IterateBondedValidatorsByPower(arg0 context.Context, arg1 func(int64, types1.ValidatorI) bool) error

IterateBondedValidatorsByPower mocks base method.

func (*MockValidatorSet) IterateValidators

func (m *MockValidatorSet) IterateValidators(arg0 context.Context, arg1 func(int64, types1.ValidatorI) bool) error

IterateValidators mocks base method.

func (*MockValidatorSet) Jail

Jail mocks base method.

func (*MockValidatorSet) MaxValidators

func (m *MockValidatorSet) MaxValidators(arg0 context.Context) (uint32, error)

MaxValidators mocks base method.

func (*MockValidatorSet) Slash

func (m *MockValidatorSet) Slash(arg0 context.Context, arg1 types1.ConsAddress, arg2, arg3 int64, arg4 math.LegacyDec) (math.Int, error)

Slash mocks base method.

func (*MockValidatorSet) SlashWithInfractionReason

func (m *MockValidatorSet) SlashWithInfractionReason(arg0 context.Context, arg1 types1.ConsAddress, arg2, arg3 int64, arg4 math.LegacyDec, arg5 stakingv1beta1.Infraction) (math.Int, error)

SlashWithInfractionReason mocks base method.

func (*MockValidatorSet) StakingTokenSupply

func (m *MockValidatorSet) StakingTokenSupply(arg0 context.Context) (math.Int, error)

StakingTokenSupply mocks base method.

func (*MockValidatorSet) TotalBondedTokens

func (m *MockValidatorSet) TotalBondedTokens(arg0 context.Context) (math.Int, error)

TotalBondedTokens mocks base method.

func (*MockValidatorSet) Unjail

func (m *MockValidatorSet) Unjail(arg0 context.Context, arg1 types1.ConsAddress) error

Unjail mocks base method.

func (*MockValidatorSet) Validator

Validator mocks base method.

func (*MockValidatorSet) ValidatorByConsAddr

func (m *MockValidatorSet) ValidatorByConsAddr(arg0 context.Context, arg1 types1.ConsAddress) (types1.ValidatorI, error)

ValidatorByConsAddr mocks base method.

type MockValidatorSetMockRecorder

type MockValidatorSetMockRecorder struct {
	// contains filtered or unexported fields
}

MockValidatorSetMockRecorder is the mock recorder for MockValidatorSet.

func (*MockValidatorSetMockRecorder) Delegation

func (mr *MockValidatorSetMockRecorder) Delegation(arg0, arg1, arg2 interface{}) *gomock.Call

Delegation indicates an expected call of Delegation.

func (*MockValidatorSetMockRecorder) GetPubKeyByConsAddr

func (mr *MockValidatorSetMockRecorder) GetPubKeyByConsAddr(arg0, arg1 interface{}) *gomock.Call

GetPubKeyByConsAddr indicates an expected call of GetPubKeyByConsAddr.

func (*MockValidatorSetMockRecorder) IterateBondedValidatorsByPower

func (mr *MockValidatorSetMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 interface{}) *gomock.Call

IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.

func (*MockValidatorSetMockRecorder) IterateValidators

func (mr *MockValidatorSetMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call

IterateValidators indicates an expected call of IterateValidators.

func (*MockValidatorSetMockRecorder) Jail

func (mr *MockValidatorSetMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call

Jail indicates an expected call of Jail.

func (*MockValidatorSetMockRecorder) MaxValidators

func (mr *MockValidatorSetMockRecorder) MaxValidators(arg0 interface{}) *gomock.Call

MaxValidators indicates an expected call of MaxValidators.

func (*MockValidatorSetMockRecorder) Slash

func (mr *MockValidatorSetMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Slash indicates an expected call of Slash.

func (*MockValidatorSetMockRecorder) SlashWithInfractionReason

func (mr *MockValidatorSetMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.

func (*MockValidatorSetMockRecorder) StakingTokenSupply

func (mr *MockValidatorSetMockRecorder) StakingTokenSupply(arg0 interface{}) *gomock.Call

StakingTokenSupply indicates an expected call of StakingTokenSupply.

func (*MockValidatorSetMockRecorder) TotalBondedTokens

func (mr *MockValidatorSetMockRecorder) TotalBondedTokens(arg0 interface{}) *gomock.Call

TotalBondedTokens indicates an expected call of TotalBondedTokens.

func (*MockValidatorSetMockRecorder) Unjail

func (mr *MockValidatorSetMockRecorder) Unjail(arg0, arg1 interface{}) *gomock.Call

Unjail indicates an expected call of Unjail.

func (*MockValidatorSetMockRecorder) Validator

func (mr *MockValidatorSetMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call

Validator indicates an expected call of Validator.

func (*MockValidatorSetMockRecorder) ValidatorByConsAddr

func (mr *MockValidatorSetMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call

ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL