Documentation ¶
Index ¶
- type BankKeeper
- func (_m *BankKeeper) BurnCoins(ctx types.Context, moduleName string, amt types.Coins) error
- func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter
- func (_m *BankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin
- func (_m *BankKeeper) IterateAllDenomMetaData(ctx types.Context, cb func(banktypes.Metadata) bool)
- func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (_m *BankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
- type BankKeeper_BurnCoins_Call
- func (_c *BankKeeper_BurnCoins_Call) Return(_a0 error) *BankKeeper_BurnCoins_Call
- func (_c *BankKeeper_BurnCoins_Call) Run(run func(ctx types.Context, moduleName string, amt types.Coins)) *BankKeeper_BurnCoins_Call
- func (_c *BankKeeper_BurnCoins_Call) RunAndReturn(run func(types.Context, string, types.Coins) error) *BankKeeper_BurnCoins_Call
- type BankKeeper_Expecter
- func (_e *BankKeeper_Expecter) BurnCoins(ctx interface{}, moduleName interface{}, amt interface{}) *BankKeeper_BurnCoins_Call
- func (_e *BankKeeper_Expecter) GetBalance(ctx interface{}, addr interface{}, denom interface{}) *BankKeeper_GetBalance_Call
- func (_e *BankKeeper_Expecter) IterateAllDenomMetaData(ctx interface{}, cb interface{}) *BankKeeper_IterateAllDenomMetaData_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, ...) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_e *BankKeeper_Expecter) SpendableCoins(ctx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call
- type BankKeeper_GetBalance_Call
- func (_c *BankKeeper_GetBalance_Call) Return(_a0 types.Coin) *BankKeeper_GetBalance_Call
- func (_c *BankKeeper_GetBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, denom string)) *BankKeeper_GetBalance_Call
- func (_c *BankKeeper_GetBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, string) types.Coin) *BankKeeper_GetBalance_Call
- type BankKeeper_IterateAllDenomMetaData_Call
- func (_c *BankKeeper_IterateAllDenomMetaData_Call) Return() *BankKeeper_IterateAllDenomMetaData_Call
- func (_c *BankKeeper_IterateAllDenomMetaData_Call) Run(run func(ctx types.Context, cb func(banktypes.Metadata) bool)) *BankKeeper_IterateAllDenomMetaData_Call
- func (_c *BankKeeper_IterateAllDenomMetaData_Call) RunAndReturn(run func(types.Context, func(banktypes.Metadata) bool)) *BankKeeper_IterateAllDenomMetaData_Call
- type BankKeeper_SendCoinsFromAccountToModule_Call
- func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Run(...) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn(run func(types.Context, types.AccAddress, string, types.Coins) error) *BankKeeper_SendCoinsFromAccountToModule_Call
- type BankKeeper_SpendableCoins_Call
- func (_c *BankKeeper_SpendableCoins_Call) Return(_a0 types.Coins) *BankKeeper_SpendableCoins_Call
- func (_c *BankKeeper_SpendableCoins_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_SpendableCoins_Call
- func (_c *BankKeeper_SpendableCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_SpendableCoins_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankKeeper ¶
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) BurnCoins ¶
BurnCoins provides a mock function with given fields: ctx, moduleName, amt
func (*BankKeeper) EXPECT ¶
func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter
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) IterateAllDenomMetaData ¶
IterateAllDenomMetaData provides a mock function with given fields: ctx, cb
func (*BankKeeper) SendCoinsFromAccountToModule ¶
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
func (*BankKeeper) SpendableCoins ¶
func (_m *BankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
SpendableCoins provides a mock function with given fields: ctx, addr
type BankKeeper_BurnCoins_Call ¶
BankKeeper_BurnCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BurnCoins'
func (*BankKeeper_BurnCoins_Call) Return ¶
func (_c *BankKeeper_BurnCoins_Call) Return(_a0 error) *BankKeeper_BurnCoins_Call
func (*BankKeeper_BurnCoins_Call) Run ¶
func (_c *BankKeeper_BurnCoins_Call) Run(run func(ctx types.Context, moduleName string, amt types.Coins)) *BankKeeper_BurnCoins_Call
func (*BankKeeper_BurnCoins_Call) RunAndReturn ¶ added in v0.10.0
func (_c *BankKeeper_BurnCoins_Call) RunAndReturn(run func(types.Context, string, types.Coins) error) *BankKeeper_BurnCoins_Call
type BankKeeper_Expecter ¶
type BankKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*BankKeeper_Expecter) BurnCoins ¶
func (_e *BankKeeper_Expecter) BurnCoins(ctx interface{}, moduleName interface{}, amt interface{}) *BankKeeper_BurnCoins_Call
BurnCoins is a helper method to define mock.On call
- ctx types.Context
- moduleName string
- amt types.Coins
func (*BankKeeper_Expecter) GetBalance ¶
func (_e *BankKeeper_Expecter) GetBalance(ctx interface{}, addr interface{}, denom interface{}) *BankKeeper_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
- denom string
func (*BankKeeper_Expecter) IterateAllDenomMetaData ¶
func (_e *BankKeeper_Expecter) IterateAllDenomMetaData(ctx interface{}, cb interface{}) *BankKeeper_IterateAllDenomMetaData_Call
IterateAllDenomMetaData is a helper method to define mock.On call
- ctx types.Context
- cb func(banktypes.Metadata) bool
func (*BankKeeper_Expecter) SendCoinsFromAccountToModule ¶
func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromAccountToModule_Call
SendCoinsFromAccountToModule is a helper method to define mock.On call
- ctx types.Context
- senderAddr types.AccAddress
- recipientModule string
- amt types.Coins
func (*BankKeeper_Expecter) SpendableCoins ¶
func (_e *BankKeeper_Expecter) SpendableCoins(ctx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call
SpendableCoins is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
type BankKeeper_GetBalance_Call ¶
BankKeeper_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*BankKeeper_GetBalance_Call) Return ¶
func (_c *BankKeeper_GetBalance_Call) Return(_a0 types.Coin) *BankKeeper_GetBalance_Call
func (*BankKeeper_GetBalance_Call) Run ¶
func (_c *BankKeeper_GetBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, denom string)) *BankKeeper_GetBalance_Call
func (*BankKeeper_GetBalance_Call) RunAndReturn ¶ added in v0.10.0
func (_c *BankKeeper_GetBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, string) types.Coin) *BankKeeper_GetBalance_Call
type BankKeeper_IterateAllDenomMetaData_Call ¶
BankKeeper_IterateAllDenomMetaData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateAllDenomMetaData'
func (*BankKeeper_IterateAllDenomMetaData_Call) Return ¶
func (_c *BankKeeper_IterateAllDenomMetaData_Call) Return() *BankKeeper_IterateAllDenomMetaData_Call
func (*BankKeeper_IterateAllDenomMetaData_Call) Run ¶
func (_c *BankKeeper_IterateAllDenomMetaData_Call) Run(run func(ctx types.Context, cb func(banktypes.Metadata) bool)) *BankKeeper_IterateAllDenomMetaData_Call
func (*BankKeeper_IterateAllDenomMetaData_Call) RunAndReturn ¶ added in v0.10.0
func (_c *BankKeeper_IterateAllDenomMetaData_Call) RunAndReturn(run func(types.Context, func(banktypes.Metadata) bool)) *BankKeeper_IterateAllDenomMetaData_Call
type BankKeeper_SendCoinsFromAccountToModule_Call ¶
BankKeeper_SendCoinsFromAccountToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromAccountToModule'
func (*BankKeeper_SendCoinsFromAccountToModule_Call) Return ¶
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromAccountToModule_Call
func (*BankKeeper_SendCoinsFromAccountToModule_Call) Run ¶
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Run(run func(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins)) *BankKeeper_SendCoinsFromAccountToModule_Call
func (*BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn ¶ added in v0.10.0
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn(run func(types.Context, types.AccAddress, string, types.Coins) error) *BankKeeper_SendCoinsFromAccountToModule_Call
type BankKeeper_SpendableCoins_Call ¶
BankKeeper_SpendableCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpendableCoins'
func (*BankKeeper_SpendableCoins_Call) Return ¶
func (_c *BankKeeper_SpendableCoins_Call) Return(_a0 types.Coins) *BankKeeper_SpendableCoins_Call
func (*BankKeeper_SpendableCoins_Call) Run ¶
func (_c *BankKeeper_SpendableCoins_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_SpendableCoins_Call
func (*BankKeeper_SpendableCoins_Call) RunAndReturn ¶ added in v0.10.0
func (_c *BankKeeper_SpendableCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_SpendableCoins_Call