keeper

package
v0.0.0-...-3a28d7b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package keeper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) EXPECT

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

func (*MockAccountKeeper) GetAccount

func (m *MockAccountKeeper) GetAccount(ctx types0.Context, addr types0.AccAddress) types1.AccountI

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount

func (m *MockAccountKeeper) GetModuleAccount(ctx types0.Context, name string) types1.ModuleAccountI

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAddress

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

GetModuleAddress mocks base method.

func (*MockAccountKeeper) NewAccount

func (m *MockAccountKeeper) NewAccount(ctx types0.Context, acc types1.AccountI) types1.AccountI

NewAccount mocks base method.

func (*MockAccountKeeper) SetAccount

func (m *MockAccountKeeper) SetAccount(ctx types0.Context, acc types1.AccountI)

SetAccount mocks base method.

type MockAccountKeeperMockRecorder

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

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

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, name 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) NewAccount

func (mr *MockAccountKeeperMockRecorder) NewAccount(ctx, acc interface{}) *gomock.Call

NewAccount indicates an expected call of NewAccount.

func (*MockAccountKeeperMockRecorder) SetAccount

func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call

SetAccount indicates an expected call of SetAccount.

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(ctx types0.Context, name string, amt types0.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) DelegateCoinsFromAccountToModule

func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx types0.Context, senderAddr types0.AccAddress, recipientModule string, amt types0.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 types0.Context, addr types0.AccAddress) types0.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) GetBalance

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

GetBalance mocks base method.

func (*MockBankKeeper) GetSupply

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

GetSupply mocks base method.

func (*MockBankKeeper) LockedCoins

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

LockedCoins mocks base method.

func (*MockBankKeeper) MintCoins

func (m *MockBankKeeper) MintCoins(ctx types0.Context, moduleName string, amounts types0.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule

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

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types0.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx types0.Context, senderModule, recipientModule string, amt types0.Coins) error

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SpendableCoins

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

SpendableCoins mocks base method.

func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount

func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx types0.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.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(ctx, name, amt 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) MintCoins

func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amounts interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule

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

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount

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

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, 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 MockDistributionKeeper

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

MockDistributionKeeper is a mock of DistributionKeeper interface.

func NewMockDistributionKeeper

func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper

NewMockDistributionKeeper creates a new mock instance.

func (*MockDistributionKeeper) EXPECT

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

func (*MockDistributionKeeper) WithdrawDelegationRewards

func (m *MockDistributionKeeper) WithdrawDelegationRewards(ctx types0.Context, delAddr types0.AccAddress, valAddr types0.ValAddress) (types0.Coins, error)

WithdrawDelegationRewards mocks base method.

type MockDistributionKeeperMockRecorder

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

MockDistributionKeeperMockRecorder is the mock recorder for MockDistributionKeeper.

func (*MockDistributionKeeperMockRecorder) WithdrawDelegationRewards

func (mr *MockDistributionKeeperMockRecorder) WithdrawDelegationRewards(ctx, delAddr, valAddr interface{}) *gomock.Call

WithdrawDelegationRewards indicates an expected call of WithdrawDelegationRewards.

type MockEpochKeeper

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

MockEpochKeeper is a mock of EpochKeeper interface.

func NewMockEpochKeeper

func NewMockEpochKeeper(ctrl *gomock.Controller) *MockEpochKeeper

NewMockEpochKeeper creates a new mock instance.

func (*MockEpochKeeper) EXPECT

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

func (*MockEpochKeeper) GetEpochInfo

func (m *MockEpochKeeper) GetEpochInfo(ctx types0.Context, identifier string) (types.EpochInfo, bool)

GetEpochInfo mocks base method.

type MockEpochKeeperMockRecorder

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

MockEpochKeeperMockRecorder is the mock recorder for MockEpochKeeper.

func (*MockEpochKeeperMockRecorder) GetEpochInfo

func (mr *MockEpochKeeperMockRecorder) GetEpochInfo(ctx, identifier interface{}) *gomock.Call

GetEpochInfo indicates an expected call of GetEpochInfo.

type MockStakingKeeper

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

MockStakingKeeper is a mock of StakingKeeper interface.

func NewMockStakingKeeper

func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper

NewMockStakingKeeper creates a new mock instance.

func (*MockStakingKeeper) BondDenom

func (m *MockStakingKeeper) BondDenom(ctx types0.Context) string

BondDenom mocks base method.

func (*MockStakingKeeper) Delegate

func (m *MockStakingKeeper) Delegate(ctx types0.Context, delAddr types0.AccAddress, bondAmt math.Int, tokenSrc types2.BondStatus, validator types2.Validator, subtractAccount bool) (types0.Dec, error)

Delegate mocks base method.

func (*MockStakingKeeper) EXPECT

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

func (*MockStakingKeeper) GetAllValidators

func (m *MockStakingKeeper) GetAllValidators(ctx types0.Context) []types2.Validator

GetAllValidators mocks base method.

func (*MockStakingKeeper) GetDelegation

func (m *MockStakingKeeper) GetDelegation(ctx types0.Context, delAddr types0.AccAddress, valAddr types0.ValAddress) (types2.Delegation, bool)

GetDelegation mocks base method.

func (*MockStakingKeeper) GetParams

func (m *MockStakingKeeper) GetParams(ctx types0.Context) types2.Params

GetParams mocks base method.

func (*MockStakingKeeper) GetValidator

func (m *MockStakingKeeper) GetValidator(ctx types0.Context, addr types0.ValAddress) (types2.Validator, bool)

GetValidator mocks base method.

func (*MockStakingKeeper) IterateBondedValidatorsByPower

func (m *MockStakingKeeper) IterateBondedValidatorsByPower(ctx types0.Context, fn func(int64, types2.ValidatorI) bool)

IterateBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) IterateDelegations

func (m *MockStakingKeeper) IterateDelegations(ctx types0.Context, delegator types0.AccAddress, fn func(int64, types2.DelegationI) bool)

IterateDelegations mocks base method.

func (*MockStakingKeeper) TotalBondedTokens

func (m *MockStakingKeeper) TotalBondedTokens(ctx types0.Context) math.Int

TotalBondedTokens mocks base method.

func (*MockStakingKeeper) Unbond

func (m *MockStakingKeeper) Unbond(ctx types0.Context, delAddr types0.AccAddress, valAddr types0.ValAddress, shares types0.Dec) (math.Int, error)

Unbond mocks base method.

func (*MockStakingKeeper) UnbondingTime

func (m *MockStakingKeeper) UnbondingTime(ctx types0.Context) time.Duration

UnbondingTime mocks base method.

func (*MockStakingKeeper) ValidateUnbondAmount

func (m *MockStakingKeeper) ValidateUnbondAmount(ctx types0.Context, delAddr types0.AccAddress, valAddr types0.ValAddress, amt math.Int) (types0.Dec, error)

ValidateUnbondAmount mocks base method.

type MockStakingKeeperMockRecorder

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

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockStakingKeeperMockRecorder) BondDenom

func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx interface{}) *gomock.Call

BondDenom indicates an expected call of BondDenom.

func (*MockStakingKeeperMockRecorder) Delegate

func (mr *MockStakingKeeperMockRecorder) Delegate(ctx, delAddr, bondAmt, tokenSrc, validator, subtractAccount interface{}) *gomock.Call

Delegate indicates an expected call of Delegate.

func (*MockStakingKeeperMockRecorder) GetAllValidators

func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx interface{}) *gomock.Call

GetAllValidators indicates an expected call of GetAllValidators.

func (*MockStakingKeeperMockRecorder) GetDelegation

func (mr *MockStakingKeeperMockRecorder) GetDelegation(ctx, delAddr, valAddr interface{}) *gomock.Call

GetDelegation indicates an expected call of GetDelegation.

func (*MockStakingKeeperMockRecorder) GetParams

func (mr *MockStakingKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call

GetParams indicates an expected call of GetParams.

func (*MockStakingKeeperMockRecorder) GetValidator

func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower

func (mr *MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower(ctx, fn interface{}) *gomock.Call

IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.

func (*MockStakingKeeperMockRecorder) IterateDelegations

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

IterateDelegations indicates an expected call of IterateDelegations.

func (*MockStakingKeeperMockRecorder) TotalBondedTokens

func (mr *MockStakingKeeperMockRecorder) TotalBondedTokens(ctx interface{}) *gomock.Call

TotalBondedTokens indicates an expected call of TotalBondedTokens.

func (*MockStakingKeeperMockRecorder) Unbond

func (mr *MockStakingKeeperMockRecorder) Unbond(ctx, delAddr, valAddr, shares interface{}) *gomock.Call

Unbond indicates an expected call of Unbond.

func (*MockStakingKeeperMockRecorder) UnbondingTime

func (mr *MockStakingKeeperMockRecorder) UnbondingTime(ctx interface{}) *gomock.Call

UnbondingTime indicates an expected call of UnbondingTime.

func (*MockStakingKeeperMockRecorder) ValidateUnbondAmount

func (mr *MockStakingKeeperMockRecorder) ValidateUnbondAmount(ctx, delAddr, valAddr, amt interface{}) *gomock.Call

ValidateUnbondAmount indicates an expected call of ValidateUnbondAmount.

Jump to

Keyboard shortcuts

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