testutil

package
v0.47.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper interface {
	types.AccountKeeper

	IterateAccounts(ctx sdk.Context, cb func(account authtypes.AccountI) (stop bool))
}

AccountKeeper extends gov's actual expected AccountKeeper with additional methods used in tests.

type BankKeeper

type BankKeeper interface {
	bankkeeper.Keeper
}

BankKeeper extends gov's actual expected BankKeeper with additional methods used in tests.

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 types.Context, addr types.AccAddress) types0.AccountI

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount

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

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAddress

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

GetModuleAddress mocks base method.

func (*MockAccountKeeper) IterateAccounts

func (m *MockAccountKeeper) IterateAccounts(ctx types.Context, cb func(types0.AccountI) bool)

IterateAccounts mocks base method.

func (*MockAccountKeeper) SetModuleAccount

func (m *MockAccountKeeper) SetModuleAccount(arg0 types.Context, arg1 types0.ModuleAccountI)

SetModuleAccount 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) IterateAccounts

func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, cb interface{}) *gomock.Call

IterateAccounts indicates an expected call of IterateAccounts.

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

AllBalances mocks base method.

func (*MockBankKeeper) Balance

Balance mocks base method.

func (*MockBankKeeper) BlockedAddr

func (m *MockBankKeeper) BlockedAddr(addr types.AccAddress) bool

BlockedAddr mocks base method.

func (*MockBankKeeper) BurnCoins

func (m *MockBankKeeper) BurnCoins(ctx types.Context, moduleName string, amt types.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) DelegateCoins

func (m *MockBankKeeper) DelegateCoins(ctx types.Context, delegatorAddr, moduleAccAddr types.AccAddress, amt types.Coins) error

DelegateCoins mocks base method.

func (*MockBankKeeper) DelegateCoinsFromAccountToModule

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

DelegateCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) DeleteSendEnabled

func (m *MockBankKeeper) DeleteSendEnabled(ctx types.Context, denoms ...string)

DeleteSendEnabled mocks base method.

func (*MockBankKeeper) DenomMetadata

DenomMetadata mocks base method.

func (*MockBankKeeper) DenomOwners

DenomOwners mocks base method.

func (*MockBankKeeper) DenomsMetadata

DenomsMetadata mocks base method.

func (*MockBankKeeper) EXPECT

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

func (*MockBankKeeper) ExportGenesis

func (m *MockBankKeeper) ExportGenesis(arg0 types.Context) *types1.GenesisState

ExportGenesis mocks base method.

func (*MockBankKeeper) GetAccountsBalances

func (m *MockBankKeeper) GetAccountsBalances(ctx types.Context) []types1.Balance

GetAccountsBalances mocks base method.

func (*MockBankKeeper) GetAllBalances

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

GetAllBalances mocks base method.

func (*MockBankKeeper) GetAllDenomMetaData added in v0.47.1

func (m *MockBankKeeper) GetAllDenomMetaData(ctx types.Context) []types1.Metadata

GetAllDenomMetaData mocks base method.

func (*MockBankKeeper) GetAllSendEnabledEntries

func (m *MockBankKeeper) GetAllSendEnabledEntries(ctx types.Context) []types1.SendEnabled

GetAllSendEnabledEntries mocks base method.

func (*MockBankKeeper) GetAuthority

func (m *MockBankKeeper) GetAuthority() string

GetAuthority mocks base method.

func (*MockBankKeeper) GetBalance

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

GetBalance mocks base method.

func (*MockBankKeeper) GetBlockedAddresses

func (m *MockBankKeeper) GetBlockedAddresses() map[string]bool

GetBlockedAddresses mocks base method.

func (*MockBankKeeper) GetDenomMetaData

func (m *MockBankKeeper) GetDenomMetaData(ctx types.Context, denom string) (types1.Metadata, bool)

GetDenomMetaData mocks base method.

func (*MockBankKeeper) GetPaginatedTotalSupply

func (m *MockBankKeeper) GetPaginatedTotalSupply(ctx types.Context, pagination *query.PageRequest) (types.Coins, *query.PageResponse, error)

GetPaginatedTotalSupply mocks base method.

func (*MockBankKeeper) GetParams

func (m *MockBankKeeper) GetParams(ctx types.Context) types1.Params

GetParams mocks base method.

func (*MockBankKeeper) GetSendEnabledEntry

func (m *MockBankKeeper) GetSendEnabledEntry(ctx types.Context, denom string) (types1.SendEnabled, bool)

GetSendEnabledEntry mocks base method.

func (*MockBankKeeper) GetSupply

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

GetSupply mocks base method.

func (*MockBankKeeper) HasBalance

func (m *MockBankKeeper) HasBalance(ctx types.Context, addr types.AccAddress, amt types.Coin) bool

HasBalance mocks base method.

func (*MockBankKeeper) HasDenomMetaData

func (m *MockBankKeeper) HasDenomMetaData(ctx types.Context, denom string) bool

HasDenomMetaData mocks base method.

func (*MockBankKeeper) HasSupply

func (m *MockBankKeeper) HasSupply(ctx types.Context, denom string) bool

HasSupply mocks base method.

func (*MockBankKeeper) InitGenesis

func (m *MockBankKeeper) InitGenesis(arg0 types.Context, arg1 *types1.GenesisState)

InitGenesis mocks base method.

func (*MockBankKeeper) InputOutputCoins

func (m *MockBankKeeper) InputOutputCoins(ctx types.Context, inputs []types1.Input, outputs []types1.Output) error

InputOutputCoins mocks base method.

func (*MockBankKeeper) IsSendEnabledCoin

func (m *MockBankKeeper) IsSendEnabledCoin(ctx types.Context, coin types.Coin) bool

IsSendEnabledCoin mocks base method.

func (*MockBankKeeper) IsSendEnabledCoins

func (m *MockBankKeeper) IsSendEnabledCoins(ctx types.Context, coins ...types.Coin) error

IsSendEnabledCoins mocks base method.

func (*MockBankKeeper) IsSendEnabledDenom

func (m *MockBankKeeper) IsSendEnabledDenom(ctx types.Context, denom string) bool

IsSendEnabledDenom mocks base method.

func (*MockBankKeeper) IterateAccountBalances

func (m *MockBankKeeper) IterateAccountBalances(ctx types.Context, addr types.AccAddress, cb func(types.Coin) bool)

IterateAccountBalances mocks base method.

func (*MockBankKeeper) IterateAllBalances

func (m *MockBankKeeper) IterateAllBalances(ctx types.Context, cb func(types.AccAddress, types.Coin) bool)

IterateAllBalances mocks base method.

func (*MockBankKeeper) IterateAllDenomMetaData

func (m *MockBankKeeper) IterateAllDenomMetaData(ctx types.Context, cb func(types1.Metadata) bool)

IterateAllDenomMetaData mocks base method.

func (*MockBankKeeper) IterateSendEnabledEntries

func (m *MockBankKeeper) IterateSendEnabledEntries(ctx types.Context, cb func(string, bool) bool)

IterateSendEnabledEntries mocks base method.

func (*MockBankKeeper) IterateTotalSupply

func (m *MockBankKeeper) IterateTotalSupply(ctx types.Context, cb func(types.Coin) bool)

IterateTotalSupply mocks base method.

func (*MockBankKeeper) LockedCoins

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

LockedCoins mocks base method.

func (*MockBankKeeper) MintCoins

func (m *MockBankKeeper) MintCoins(ctx types.Context, moduleName string, amt types.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) Params

Params mocks base method.

func (*MockBankKeeper) SendCoins

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

SendCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule

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

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount

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

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule

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

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SendEnabled

SendEnabled mocks base method.

func (*MockBankKeeper) SetAllSendEnabled

func (m *MockBankKeeper) SetAllSendEnabled(ctx types.Context, sendEnableds []*types1.SendEnabled)

SetAllSendEnabled mocks base method.

func (*MockBankKeeper) SetDenomMetaData

func (m *MockBankKeeper) SetDenomMetaData(ctx types.Context, denomMetaData types1.Metadata)

SetDenomMetaData mocks base method.

func (*MockBankKeeper) SetParams

func (m *MockBankKeeper) SetParams(ctx types.Context, params types1.Params) error

SetParams mocks base method.

func (*MockBankKeeper) SetSendEnabled

func (m *MockBankKeeper) SetSendEnabled(ctx types.Context, denom string, value bool)

SetSendEnabled mocks base method.

func (*MockBankKeeper) SpendableBalanceByDenom

SpendableBalanceByDenom mocks base method.

func (*MockBankKeeper) SpendableBalances

SpendableBalances mocks base method.

func (*MockBankKeeper) SpendableCoin

func (m *MockBankKeeper) SpendableCoin(ctx types.Context, addr types.AccAddress, denom string) types.Coin

SpendableCoin mocks base method.

func (*MockBankKeeper) SpendableCoins

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

SpendableCoins mocks base method.

func (*MockBankKeeper) SupplyOf

SupplyOf mocks base method.

func (*MockBankKeeper) TotalSupply

TotalSupply mocks base method.

func (*MockBankKeeper) UndelegateCoins

func (m *MockBankKeeper) UndelegateCoins(ctx types.Context, moduleAccAddr, delegatorAddr types.AccAddress, amt types.Coins) error

UndelegateCoins mocks base method.

func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount

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

UndelegateCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) ValidateBalance

func (m *MockBankKeeper) ValidateBalance(ctx types.Context, addr types.AccAddress) error

ValidateBalance mocks base method.

func (*MockBankKeeper) WithMintCoinsRestriction

func (m *MockBankKeeper) WithMintCoinsRestriction(arg0 keeper.MintingRestrictionFn) keeper.BaseKeeper

WithMintCoinsRestriction mocks base method.

type MockBankKeeperMockRecorder

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) AllBalances

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

AllBalances indicates an expected call of AllBalances.

func (*MockBankKeeperMockRecorder) Balance

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

Balance indicates an expected call of Balance.

func (*MockBankKeeperMockRecorder) BlockedAddr

func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr interface{}) *gomock.Call

BlockedAddr indicates an expected call of BlockedAddr.

func (*MockBankKeeperMockRecorder) BurnCoins

func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amt interface{}) *gomock.Call

BurnCoins indicates an expected call of BurnCoins.

func (*MockBankKeeperMockRecorder) DelegateCoins

func (mr *MockBankKeeperMockRecorder) DelegateCoins(ctx, delegatorAddr, moduleAccAddr, amt interface{}) *gomock.Call

DelegateCoins indicates an expected call of DelegateCoins.

func (*MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule

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

DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) DeleteSendEnabled

func (mr *MockBankKeeperMockRecorder) DeleteSendEnabled(ctx interface{}, denoms ...interface{}) *gomock.Call

DeleteSendEnabled indicates an expected call of DeleteSendEnabled.

func (*MockBankKeeperMockRecorder) DenomMetadata

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

DenomMetadata indicates an expected call of DenomMetadata.

func (*MockBankKeeperMockRecorder) DenomOwners

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

DenomOwners indicates an expected call of DenomOwners.

func (*MockBankKeeperMockRecorder) DenomsMetadata

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

DenomsMetadata indicates an expected call of DenomsMetadata.

func (*MockBankKeeperMockRecorder) ExportGenesis

func (mr *MockBankKeeperMockRecorder) ExportGenesis(arg0 interface{}) *gomock.Call

ExportGenesis indicates an expected call of ExportGenesis.

func (*MockBankKeeperMockRecorder) GetAccountsBalances

func (mr *MockBankKeeperMockRecorder) GetAccountsBalances(ctx interface{}) *gomock.Call

GetAccountsBalances indicates an expected call of GetAccountsBalances.

func (*MockBankKeeperMockRecorder) GetAllBalances

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

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) GetAllDenomMetaData added in v0.47.1

func (mr *MockBankKeeperMockRecorder) GetAllDenomMetaData(ctx interface{}) *gomock.Call

GetAllDenomMetaData indicates an expected call of GetAllDenomMetaData.

func (*MockBankKeeperMockRecorder) GetAllSendEnabledEntries

func (mr *MockBankKeeperMockRecorder) GetAllSendEnabledEntries(ctx interface{}) *gomock.Call

GetAllSendEnabledEntries indicates an expected call of GetAllSendEnabledEntries.

func (*MockBankKeeperMockRecorder) GetAuthority

func (mr *MockBankKeeperMockRecorder) GetAuthority() *gomock.Call

GetAuthority indicates an expected call of GetAuthority.

func (*MockBankKeeperMockRecorder) GetBalance

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

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) GetBlockedAddresses

func (mr *MockBankKeeperMockRecorder) GetBlockedAddresses() *gomock.Call

GetBlockedAddresses indicates an expected call of GetBlockedAddresses.

func (*MockBankKeeperMockRecorder) GetDenomMetaData

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

GetDenomMetaData indicates an expected call of GetDenomMetaData.

func (*MockBankKeeperMockRecorder) GetPaginatedTotalSupply

func (mr *MockBankKeeperMockRecorder) GetPaginatedTotalSupply(ctx, pagination interface{}) *gomock.Call

GetPaginatedTotalSupply indicates an expected call of GetPaginatedTotalSupply.

func (*MockBankKeeperMockRecorder) GetParams

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

GetParams indicates an expected call of GetParams.

func (*MockBankKeeperMockRecorder) GetSendEnabledEntry

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

GetSendEnabledEntry indicates an expected call of GetSendEnabledEntry.

func (*MockBankKeeperMockRecorder) GetSupply

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

GetSupply indicates an expected call of GetSupply.

func (*MockBankKeeperMockRecorder) HasBalance

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

HasBalance indicates an expected call of HasBalance.

func (*MockBankKeeperMockRecorder) HasDenomMetaData

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

HasDenomMetaData indicates an expected call of HasDenomMetaData.

func (*MockBankKeeperMockRecorder) HasSupply

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

HasSupply indicates an expected call of HasSupply.

func (*MockBankKeeperMockRecorder) InitGenesis

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

InitGenesis indicates an expected call of InitGenesis.

func (*MockBankKeeperMockRecorder) InputOutputCoins

func (mr *MockBankKeeperMockRecorder) InputOutputCoins(ctx, inputs, outputs interface{}) *gomock.Call

InputOutputCoins indicates an expected call of InputOutputCoins.

func (*MockBankKeeperMockRecorder) IsSendEnabledCoin

func (mr *MockBankKeeperMockRecorder) IsSendEnabledCoin(ctx, coin interface{}) *gomock.Call

IsSendEnabledCoin indicates an expected call of IsSendEnabledCoin.

func (*MockBankKeeperMockRecorder) IsSendEnabledCoins

func (mr *MockBankKeeperMockRecorder) IsSendEnabledCoins(ctx interface{}, coins ...interface{}) *gomock.Call

IsSendEnabledCoins indicates an expected call of IsSendEnabledCoins.

func (*MockBankKeeperMockRecorder) IsSendEnabledDenom

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

IsSendEnabledDenom indicates an expected call of IsSendEnabledDenom.

func (*MockBankKeeperMockRecorder) IterateAccountBalances

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

IterateAccountBalances indicates an expected call of IterateAccountBalances.

func (*MockBankKeeperMockRecorder) IterateAllBalances

func (mr *MockBankKeeperMockRecorder) IterateAllBalances(ctx, cb interface{}) *gomock.Call

IterateAllBalances indicates an expected call of IterateAllBalances.

func (*MockBankKeeperMockRecorder) IterateAllDenomMetaData

func (mr *MockBankKeeperMockRecorder) IterateAllDenomMetaData(ctx, cb interface{}) *gomock.Call

IterateAllDenomMetaData indicates an expected call of IterateAllDenomMetaData.

func (*MockBankKeeperMockRecorder) IterateSendEnabledEntries

func (mr *MockBankKeeperMockRecorder) IterateSendEnabledEntries(ctx, cb interface{}) *gomock.Call

IterateSendEnabledEntries indicates an expected call of IterateSendEnabledEntries.

func (*MockBankKeeperMockRecorder) IterateTotalSupply

func (mr *MockBankKeeperMockRecorder) IterateTotalSupply(ctx, cb interface{}) *gomock.Call

IterateTotalSupply indicates an expected call of IterateTotalSupply.

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, amt interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) Params

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

Params indicates an expected call of Params.

func (*MockBankKeeperMockRecorder) SendCoins

func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt interface{}) *gomock.Call

SendCoins indicates an expected call of SendCoins.

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

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

SendEnabled indicates an expected call of SendEnabled.

func (*MockBankKeeperMockRecorder) SetAllSendEnabled

func (mr *MockBankKeeperMockRecorder) SetAllSendEnabled(ctx, sendEnableds interface{}) *gomock.Call

SetAllSendEnabled indicates an expected call of SetAllSendEnabled.

func (*MockBankKeeperMockRecorder) SetDenomMetaData

func (mr *MockBankKeeperMockRecorder) SetDenomMetaData(ctx, denomMetaData interface{}) *gomock.Call

SetDenomMetaData indicates an expected call of SetDenomMetaData.

func (*MockBankKeeperMockRecorder) SetParams

func (mr *MockBankKeeperMockRecorder) SetParams(ctx, params interface{}) *gomock.Call

SetParams indicates an expected call of SetParams.

func (*MockBankKeeperMockRecorder) SetSendEnabled

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

SetSendEnabled indicates an expected call of SetSendEnabled.

func (*MockBankKeeperMockRecorder) SpendableBalanceByDenom

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

SpendableBalanceByDenom indicates an expected call of SpendableBalanceByDenom.

func (*MockBankKeeperMockRecorder) SpendableBalances

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

SpendableBalances indicates an expected call of SpendableBalances.

func (*MockBankKeeperMockRecorder) SpendableCoin

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

SpendableCoin indicates an expected call of SpendableCoin.

func (*MockBankKeeperMockRecorder) SpendableCoins

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

SpendableCoins indicates an expected call of SpendableCoins.

func (*MockBankKeeperMockRecorder) SupplyOf

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

SupplyOf indicates an expected call of SupplyOf.

func (*MockBankKeeperMockRecorder) TotalSupply

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

TotalSupply indicates an expected call of TotalSupply.

func (*MockBankKeeperMockRecorder) UndelegateCoins

func (mr *MockBankKeeperMockRecorder) UndelegateCoins(ctx, moduleAccAddr, delegatorAddr, amt interface{}) *gomock.Call

UndelegateCoins indicates an expected call of UndelegateCoins.

func (*MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount

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

UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) ValidateBalance

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

ValidateBalance indicates an expected call of ValidateBalance.

func (*MockBankKeeperMockRecorder) WithMintCoinsRestriction

func (mr *MockBankKeeperMockRecorder) WithMintCoinsRestriction(arg0 interface{}) *gomock.Call

WithMintCoinsRestriction indicates an expected call of WithMintCoinsRestriction.

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 types.Context) string

BondDenom mocks base method.

func (*MockStakingKeeper) EXPECT

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

func (*MockStakingKeeper) IterateBondedValidatorsByPower

func (m *MockStakingKeeper) IterateBondedValidatorsByPower(arg0 types.Context, arg1 func(int64, types2.ValidatorI) bool)

IterateBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) IterateDelegations

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

IterateDelegations mocks base method.

func (*MockStakingKeeper) TokensFromConsensusPower

func (m *MockStakingKeeper) TokensFromConsensusPower(ctx types.Context, power int64) math.Int

TokensFromConsensusPower mocks base method.

func (*MockStakingKeeper) TotalBondedTokens

func (m *MockStakingKeeper) TotalBondedTokens(arg0 types.Context) math.Int

TotalBondedTokens 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) IterateBondedValidatorsByPower

func (mr *MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 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) TokensFromConsensusPower

func (mr *MockStakingKeeperMockRecorder) TokensFromConsensusPower(ctx, power interface{}) *gomock.Call

TokensFromConsensusPower indicates an expected call of TokensFromConsensusPower.

func (*MockStakingKeeperMockRecorder) TotalBondedTokens

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

TotalBondedTokens indicates an expected call of TotalBondedTokens.

type StakingKeeper

type StakingKeeper interface {
	types.StakingKeeper

	BondDenom(ctx sdk.Context) string
	TokensFromConsensusPower(ctx sdk.Context, power int64) math.Int
}

StakingKeeper extends gov's actual expected StakingKeeper with additional methods used in tests.

Jump to

Keyboard shortcuts

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