testutil

package
v0.50.9 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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 context.Context, cb func(account sdk.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 DistributionKeeper added in v0.50.1

type DistributionKeeper interface {
	FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

DistributionKeeper defines the expected distribution keeper

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 added in v0.50.1

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

func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount

func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, name string) types.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 context.Context, cb func(types.AccountI) bool)

IterateAccounts mocks base method.

func (*MockAccountKeeper) SetModuleAccount

func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types.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 added in v0.50.1

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, 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) AppendSendRestriction added in v0.50.1

func (m *MockBankKeeper) AppendSendRestriction(restriction types0.SendRestrictionFn)

AppendSendRestriction 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 context.Context, moduleName string, amt types.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) ClearSendRestriction added in v0.50.1

func (m *MockBankKeeper) ClearSendRestriction()

ClearSendRestriction mocks base method.

func (*MockBankKeeper) DelegateCoins

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

DelegateCoins mocks base method.

func (*MockBankKeeper) DelegateCoinsFromAccountToModule

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

DelegateCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) DeleteSendEnabled

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

DeleteSendEnabled mocks base method.

func (*MockBankKeeper) DenomMetadata

DenomMetadata mocks base method.

func (*MockBankKeeper) DenomMetadataByQueryString added in v0.50.1

DenomMetadataByQueryString mocks base method.

func (*MockBankKeeper) DenomOwners

DenomOwners mocks base method.

func (*MockBankKeeper) DenomOwnersByQuery added in v0.50.3

DenomOwnersByQuery 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 context.Context) *types0.GenesisState

ExportGenesis mocks base method.

func (*MockBankKeeper) GetAccountsBalances

func (m *MockBankKeeper) GetAccountsBalances(ctx context.Context) []types0.Balance

GetAccountsBalances mocks base method.

func (*MockBankKeeper) GetAllBalances

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

GetAllBalances mocks base method.

func (*MockBankKeeper) GetAllDenomMetaData added in v0.47.1

func (m *MockBankKeeper) GetAllDenomMetaData(ctx context.Context) []types0.Metadata

GetAllDenomMetaData mocks base method.

func (*MockBankKeeper) GetAllSendEnabledEntries

func (m *MockBankKeeper) GetAllSendEnabledEntries(ctx context.Context) []types0.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 context.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 context.Context, denom string) (types0.Metadata, bool)

GetDenomMetaData mocks base method.

func (*MockBankKeeper) GetPaginatedTotalSupply

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

GetPaginatedTotalSupply mocks base method.

func (*MockBankKeeper) GetParams

func (m *MockBankKeeper) GetParams(ctx context.Context) types0.Params

GetParams mocks base method.

func (*MockBankKeeper) GetSendEnabledEntry

func (m *MockBankKeeper) GetSendEnabledEntry(ctx context.Context, denom string) (types0.SendEnabled, bool)

GetSendEnabledEntry mocks base method.

func (*MockBankKeeper) GetSupply

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

GetSupply mocks base method.

func (*MockBankKeeper) HasBalance

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

HasBalance mocks base method.

func (*MockBankKeeper) HasDenomMetaData

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

HasDenomMetaData mocks base method.

func (*MockBankKeeper) HasSupply

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

HasSupply mocks base method.

func (*MockBankKeeper) InitGenesis

func (m *MockBankKeeper) InitGenesis(arg0 context.Context, arg1 *types0.GenesisState)

InitGenesis mocks base method.

func (*MockBankKeeper) InputOutputCoins

func (m *MockBankKeeper) InputOutputCoins(ctx context.Context, input types0.Input, outputs []types0.Output) error

InputOutputCoins mocks base method.

func (*MockBankKeeper) IsSendEnabledCoin

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

IsSendEnabledCoin mocks base method.

func (*MockBankKeeper) IsSendEnabledCoins

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

IsSendEnabledCoins mocks base method.

func (*MockBankKeeper) IsSendEnabledDenom

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

IsSendEnabledDenom mocks base method.

func (*MockBankKeeper) IterateAccountBalances

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

IterateAccountBalances mocks base method.

func (*MockBankKeeper) IterateAllBalances

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

IterateAllBalances mocks base method.

func (*MockBankKeeper) IterateAllDenomMetaData

func (m *MockBankKeeper) IterateAllDenomMetaData(ctx context.Context, cb func(types0.Metadata) bool)

IterateAllDenomMetaData mocks base method.

func (*MockBankKeeper) IterateSendEnabledEntries

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

IterateSendEnabledEntries mocks base method.

func (*MockBankKeeper) IterateTotalSupply

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

IterateTotalSupply mocks base method.

func (*MockBankKeeper) LockedCoins

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

LockedCoins mocks base method.

func (*MockBankKeeper) MintCoins

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

MintCoins mocks base method.

func (*MockBankKeeper) Params

Params mocks base method.

func (*MockBankKeeper) PrependSendRestriction added in v0.50.1

func (m *MockBankKeeper) PrependSendRestriction(restriction types0.SendRestrictionFn)

PrependSendRestriction mocks base method.

func (*MockBankKeeper) SendCoins

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

SendCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule

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

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount

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

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.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 context.Context, sendEnableds []*types0.SendEnabled)

SetAllSendEnabled mocks base method.

func (*MockBankKeeper) SetDenomMetaData

func (m *MockBankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData types0.Metadata)

SetDenomMetaData mocks base method.

func (*MockBankKeeper) SetParams

func (m *MockBankKeeper) SetParams(ctx context.Context, params types0.Params) error

SetParams mocks base method.

func (*MockBankKeeper) SetSendEnabled

func (m *MockBankKeeper) SetSendEnabled(ctx context.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 context.Context, addr types.AccAddress, denom string) types.Coin

SpendableCoin mocks base method.

func (*MockBankKeeper) SpendableCoins

func (m *MockBankKeeper) SpendableCoins(ctx context.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 context.Context, moduleAccAddr, delegatorAddr types.AccAddress, amt types.Coins) error

UndelegateCoins mocks base method.

func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount

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

UndelegateCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) ValidateBalance

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

ValidateBalance mocks base method.

func (*MockBankKeeper) WithMintCoinsRestriction

func (m *MockBankKeeper) WithMintCoinsRestriction(arg0 types0.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) AppendSendRestriction added in v0.50.1

func (mr *MockBankKeeperMockRecorder) AppendSendRestriction(restriction interface{}) *gomock.Call

AppendSendRestriction indicates an expected call of AppendSendRestriction.

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) ClearSendRestriction added in v0.50.1

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

ClearSendRestriction indicates an expected call of ClearSendRestriction.

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) DenomMetadataByQueryString added in v0.50.1

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

DenomMetadataByQueryString indicates an expected call of DenomMetadataByQueryString.

func (*MockBankKeeperMockRecorder) DenomOwners

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

DenomOwners indicates an expected call of DenomOwners.

func (*MockBankKeeperMockRecorder) DenomOwnersByQuery added in v0.50.3

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

DenomOwnersByQuery indicates an expected call of DenomOwnersByQuery.

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, input, 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) PrependSendRestriction added in v0.50.1

func (mr *MockBankKeeperMockRecorder) PrependSendRestriction(restriction interface{}) *gomock.Call

PrependSendRestriction indicates an expected call of PrependSendRestriction.

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 MockDistributionKeeper added in v0.50.1

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

MockDistributionKeeper is a mock of DistributionKeeper interface.

func NewMockDistributionKeeper added in v0.50.1

func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper

NewMockDistributionKeeper creates a new mock instance.

func (*MockDistributionKeeper) EXPECT added in v0.50.1

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

func (*MockDistributionKeeper) FundCommunityPool added in v0.50.1

func (m *MockDistributionKeeper) FundCommunityPool(ctx context.Context, amount types.Coins, sender types.AccAddress) error

FundCommunityPool mocks base method.

type MockDistributionKeeperMockRecorder added in v0.50.1

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

MockDistributionKeeperMockRecorder is the mock recorder for MockDistributionKeeper.

func (*MockDistributionKeeperMockRecorder) FundCommunityPool added in v0.50.1

func (mr *MockDistributionKeeperMockRecorder) FundCommunityPool(ctx, amount, sender interface{}) *gomock.Call

FundCommunityPool indicates an expected call of FundCommunityPool.

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 context.Context) (string, error)

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 context.Context, arg1 func(int64, types1.ValidatorI) bool) error

IterateBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) IterateDelegations

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

IterateDelegations mocks base method.

func (*MockStakingKeeper) TokensFromConsensusPower

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

TokensFromConsensusPower mocks base method.

func (*MockStakingKeeper) TotalBondedTokens

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

TotalBondedTokens mocks base method.

func (*MockStakingKeeper) ValidatorAddressCodec added in v0.50.1

func (m *MockStakingKeeper) ValidatorAddressCodec() address.Codec

ValidatorAddressCodec 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.

func (*MockStakingKeeperMockRecorder) ValidatorAddressCodec added in v0.50.1

func (mr *MockStakingKeeperMockRecorder) ValidatorAddressCodec() *gomock.Call

ValidatorAddressCodec indicates an expected call of ValidatorAddressCodec.

type StakingKeeper

type StakingKeeper interface {
	types.StakingKeeper

	BondDenom(ctx context.Context) (string, error)
	TokensFromConsensusPower(ctx context.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