mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 context.Context, addr types.AccAddress, denom string) types.Coin

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

func (*BankKeeper) GetDenomMetaData

func (_m *BankKeeper) GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool)

GetDenomMetaData provides a mock function with given fields: ctx, denom

func (*BankKeeper) GetSupply

func (_m *BankKeeper) GetSupply(ctx context.Context, denom string) types.Coin

GetSupply provides a mock function with given fields: ctx, denom

func (*BankKeeper) IterateAccountBalances

func (_m *BankKeeper) IterateAccountBalances(ctx context.Context, account types.AccAddress, cb func(types.Coin) bool)

IterateAccountBalances provides a mock function with given fields: ctx, account, cb

func (*BankKeeper) IterateTotalSupply

func (_m *BankKeeper) IterateTotalSupply(ctx context.Context, cb func(types.Coin) bool)

IterateTotalSupply provides a mock function with given fields: ctx, cb

func (*BankKeeper) SendCoins

func (_m *BankKeeper) SendCoins(ctx context.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) SetDenomMetaData

func (_m *BankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata)

SetDenomMetaData provides a mock function with given fields: ctx, denomMetaData

func (*BankKeeper) SpendableCoin

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

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

Jump to

Keyboard shortcuts

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