mocks

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper struct {
	mock.Mock
}

AccountKeeper is an autogenerated mock type for the AccountKeeper type

func NewAccountKeeper

func NewAccountKeeper(t mockConstructorTestingTNewAccountKeeper) *AccountKeeper

NewAccountKeeper creates a new instance of AccountKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccountKeeper) GetAccount

func (_m *AccountKeeper) GetAccount(_a0 context.Context, _a1 types.AccAddress) types.AccountI

GetAccount provides a mock function with given fields: _a0, _a1

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the BankKeeper type

func NewBankKeeper

func NewBankKeeper(t mockConstructorTestingTNewBankKeeper) *BankKeeper

NewBankKeeper creates a new instance of BankKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BankKeeper) SendCoinsFromModuleToAccount

func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt

func (*BankKeeper) SendCoinsFromModuleToModule

func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, amt types.Coins) error

SendCoinsFromModuleToModule provides a mock function with given fields: ctx, senderModule, recipientModule, amt

func (*BankKeeper) SpendableCoins

func (_m *BankKeeper) SpendableCoins(_a0 context.Context, _a1 types.AccAddress) types.Coins

SpendableCoins provides a mock function with given fields: _a0, _a1

type RegistryKeeper

type RegistryKeeper struct {
	mock.Mock
}

RegistryKeeper is an autogenerated mock type for the RegistryKeeper type

func NewRegistryKeeper

func NewRegistryKeeper(t mockConstructorTestingTNewRegistryKeeper) *RegistryKeeper

NewRegistryKeeper creates a new instance of RegistryKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RegistryKeeper) MaxReportBufferWindow

func (_m *RegistryKeeper) MaxReportBufferWindow(ctx context.Context) (uint64, error)

MaxReportBufferWindow provides a mock function with given fields: ctx

type StakingHooks

type StakingHooks struct {
	mock.Mock
}

StakingHooks is an autogenerated mock type for the StakingHooks type

func NewStakingHooks

func NewStakingHooks(t mockConstructorTestingTNewStakingHooks) *StakingHooks

NewStakingHooks creates a new instance of StakingHooks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StakingHooks) AfterDelegationModified

func (_m *StakingHooks) AfterDelegationModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error

AfterDelegationModified provides a mock function with given fields: ctx, delAddr, valAddr

func (*StakingHooks) AfterValidatorBeginUnbonding

func (_m *StakingHooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error

AfterValidatorBeginUnbonding provides a mock function with given fields: ctx, consAddr, valAddr

func (*StakingHooks) AfterValidatorBonded

func (_m *StakingHooks) AfterValidatorBonded(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error

AfterValidatorBonded provides a mock function with given fields: ctx, consAddr, valAddr

func (*StakingHooks) AfterValidatorCreated

func (_m *StakingHooks) AfterValidatorCreated(ctx context.Context, valAddr types.ValAddress) error

AfterValidatorCreated provides a mock function with given fields: ctx, valAddr

func (*StakingHooks) AfterValidatorRemoved

func (_m *StakingHooks) AfterValidatorRemoved(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error

AfterValidatorRemoved provides a mock function with given fields: ctx, consAddr, valAddr

func (*StakingHooks) BeforeDelegationCreated

func (_m *StakingHooks) BeforeDelegationCreated(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error

BeforeDelegationCreated provides a mock function with given fields: ctx, delAddr, valAddr

func (*StakingHooks) BeforeDelegationRemoved

func (_m *StakingHooks) BeforeDelegationRemoved(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error

BeforeDelegationRemoved provides a mock function with given fields: ctx, delAddr, valAddr

func (*StakingHooks) BeforeDelegationSharesModified

func (_m *StakingHooks) BeforeDelegationSharesModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error

BeforeDelegationSharesModified provides a mock function with given fields: ctx, delAddr, valAddr

func (*StakingHooks) BeforeValidatorModified

func (_m *StakingHooks) BeforeValidatorModified(ctx context.Context, valAddr types.ValAddress) error

BeforeValidatorModified provides a mock function with given fields: ctx, valAddr

func (*StakingHooks) BeforeValidatorSlashed

func (_m *StakingHooks) BeforeValidatorSlashed(ctx context.Context, valAddr types.ValAddress, fraction math.LegacyDec) error

BeforeValidatorSlashed provides a mock function with given fields: ctx, valAddr, fraction

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper

func NewStakingKeeper(t mockConstructorTestingTNewStakingKeeper) *StakingKeeper

NewStakingKeeper creates a new instance of StakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StakingKeeper) Delegate

func (_m *StakingKeeper) Delegate(ctx context.Context, delAddr types.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (math.LegacyDec, error)

Delegate provides a mock function with given fields: ctx, delAddr, bondAmt, tokenSrc, validator, subtractAccount

func (*StakingKeeper) GetDelegation

func (_m *StakingKeeper) GetDelegation(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) (stakingtypes.Delegation, error)

GetDelegation provides a mock function with given fields: ctx, delAddr, valAddr

func (*StakingKeeper) GetRedelegationsFromSrcValidator

func (_m *StakingKeeper) GetRedelegationsFromSrcValidator(ctx context.Context, valAddr types.ValAddress) ([]stakingtypes.Redelegation, error)

GetRedelegationsFromSrcValidator provides a mock function with given fields: ctx, valAddr

func (*StakingKeeper) GetUnbondingDelegation

func (_m *StakingKeeper) GetUnbondingDelegation(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) (stakingtypes.UnbondingDelegation, error)

GetUnbondingDelegation provides a mock function with given fields: ctx, delAddr, valAddr

func (*StakingKeeper) GetValidator

func (_m *StakingKeeper) GetValidator(ctx context.Context, addr types.ValAddress) (stakingtypes.Validator, error)

GetValidator provides a mock function with given fields: ctx, addr

func (*StakingKeeper) GetValidatorSet

func (_m *StakingKeeper) GetValidatorSet() stakingtypes.ValidatorSet

GetValidatorSet provides a mock function with given fields:

func (*StakingKeeper) IterateDelegatorDelegations

func (_m *StakingKeeper) IterateDelegatorDelegations(ctx context.Context, delegator types.AccAddress, cb func(stakingtypes.Delegation) bool) error

IterateDelegatorDelegations provides a mock function with given fields: ctx, delegator, cb

func (*StakingKeeper) IterateDelegatorUnbondingDelegations

func (_m *StakingKeeper) IterateDelegatorUnbondingDelegations(ctx context.Context, delegator types.AccAddress, cb func(stakingtypes.UnbondingDelegation) bool) error

IterateDelegatorUnbondingDelegations provides a mock function with given fields: ctx, delegator, cb

func (*StakingKeeper) RemoveUnbondingDelegation

func (_m *StakingKeeper) RemoveUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error

RemoveUnbondingDelegation provides a mock function with given fields: ctx, ubd

func (*StakingKeeper) SetUnbondingDelegation

func (_m *StakingKeeper) SetUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error

SetUnbondingDelegation provides a mock function with given fields: ctx, ubd

func (*StakingKeeper) TotalBondedTokens

func (_m *StakingKeeper) TotalBondedTokens(_a0 context.Context) (math.Int, error)

TotalBondedTokens provides a mock function with given fields: _a0

func (*StakingKeeper) Unbond

func (_m *StakingKeeper) Unbond(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress, shares math.LegacyDec) (math.Int, error)

Unbond provides a mock function with given fields: ctx, delAddr, valAddr, shares

func (*StakingKeeper) UnbondingTime

func (_m *StakingKeeper) UnbondingTime(ctx context.Context) (time.Duration, error)

UnbondingTime provides a mock function with given fields: ctx

func (*StakingKeeper) ValidatorsPowerStoreIterator

func (_m *StakingKeeper) ValidatorsPowerStoreIterator(ctx context.Context) (db.Iterator, error)

ValidatorsPowerStoreIterator provides a mock function with given fields: ctx

type ValidatorSet

type ValidatorSet struct {
	mock.Mock
}

ValidatorSet is an autogenerated mock type for the ValidatorSet type

func NewValidatorSet

func NewValidatorSet(t mockConstructorTestingTNewValidatorSet) *ValidatorSet

NewValidatorSet creates a new instance of ValidatorSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ValidatorSet) Delegation

Delegation provides a mock function with given fields: _a0, _a1, _a2

func (*ValidatorSet) GetPubKeyByConsAddr

func (_m *ValidatorSet) GetPubKeyByConsAddr(_a0 context.Context, _a1 types.ConsAddress) (crypto.PublicKey, error)

GetPubKeyByConsAddr provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) IterateBondedValidatorsByPower

func (_m *ValidatorSet) IterateBondedValidatorsByPower(_a0 context.Context, _a1 func(int64, stakingtypes.ValidatorI) bool) error

IterateBondedValidatorsByPower provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) IterateLastValidators

func (_m *ValidatorSet) IterateLastValidators(_a0 context.Context, _a1 func(int64, stakingtypes.ValidatorI) bool) error

IterateLastValidators provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) IterateValidators

func (_m *ValidatorSet) IterateValidators(_a0 context.Context, _a1 func(int64, stakingtypes.ValidatorI) bool) error

IterateValidators provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) Jail

func (_m *ValidatorSet) Jail(_a0 context.Context, _a1 types.ConsAddress) error

Jail provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) MaxValidators

func (_m *ValidatorSet) MaxValidators(_a0 context.Context) (uint32, error)

MaxValidators provides a mock function with given fields: _a0

func (*ValidatorSet) Slash

func (_m *ValidatorSet) Slash(_a0 context.Context, _a1 types.ConsAddress, _a2 int64, _a3 int64, _a4 math.LegacyDec) (math.Int, error)

Slash provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*ValidatorSet) SlashWithInfractionReason

func (_m *ValidatorSet) SlashWithInfractionReason(_a0 context.Context, _a1 types.ConsAddress, _a2 int64, _a3 int64, _a4 math.LegacyDec, _a5 stakingtypes.Infraction) (math.Int, error)

SlashWithInfractionReason provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*ValidatorSet) StakingTokenSupply

func (_m *ValidatorSet) StakingTokenSupply(_a0 context.Context) (math.Int, error)

StakingTokenSupply provides a mock function with given fields: _a0

func (*ValidatorSet) TotalBondedTokens

func (_m *ValidatorSet) TotalBondedTokens(_a0 context.Context) (math.Int, error)

TotalBondedTokens provides a mock function with given fields: _a0

func (*ValidatorSet) Unjail

func (_m *ValidatorSet) Unjail(_a0 context.Context, _a1 types.ConsAddress) error

Unjail provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) Validator

Validator provides a mock function with given fields: _a0, _a1

func (*ValidatorSet) ValidatorByConsAddr

func (_m *ValidatorSet) ValidatorByConsAddr(_a0 context.Context, _a1 types.ConsAddress) (stakingtypes.ValidatorI, error)

ValidatorByConsAddr provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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