mocks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 3 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*AccountKeeper) GetModuleAddress

func (_m *AccountKeeper) GetModuleAddress(moduleName string) types.AccAddress

GetModuleAddress provides a mock function with given fields: moduleName

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the BankKeeper type

func NewBankKeeper

func NewBankKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*BankKeeper) GetBalance

func (_m *BankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin

GetBalance provides a mock function with given fields: ctx, addr, denom

func (*BankKeeper) SendCoins

func (_m *BankKeeper) SendCoins(ctx types.Context, fromAddr types.AccAddress, toAddr types.AccAddress, amt types.Coins) error

SendCoins provides a mock function with given fields: ctx, fromAddr, toAddr, amt

func (*BankKeeper) SendCoinsFromAccountToModule added in v1.4.3

func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error

SendCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amt

type DistributionKeeper

type DistributionKeeper struct {
	mock.Mock
}

DistributionKeeper is an autogenerated mock type for the DistributionKeeper type

func NewDistributionKeeper

func NewDistributionKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *DistributionKeeper

NewDistributionKeeper creates a new instance of DistributionKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DistributionKeeper) GetPreviousProposerConsAddr

func (_m *DistributionKeeper) GetPreviousProposerConsAddr(ctx types.Context) types.ConsAddress

GetPreviousProposerConsAddr provides a mock function with given fields: ctx

type RewardsAddressProvider

type RewardsAddressProvider struct {
	mock.Mock
}

RewardsAddressProvider is an autogenerated mock type for the RewardsAddressProvider type

func NewRewardsAddressProvider

func NewRewardsAddressProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *RewardsAddressProvider

NewRewardsAddressProvider creates a new instance of RewardsAddressProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RewardsAddressProvider) GetRewardsAddress

func (_m *RewardsAddressProvider) GetRewardsAddress(context types.Context) (types.AccAddress, error)

GetRewardsAddress provides a mock function with given fields: context

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper

func NewStakingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*StakingKeeper) ValidatorByConsAddr

func (_m *StakingKeeper) ValidatorByConsAddr(_a0 types.Context, _a1 types.ConsAddress) stakingtypes.ValidatorI

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