Documentation ¶
Index ¶
- type AmmKeeper
- func (_m *AmmKeeper) EXPECT() *AmmKeeper_Expecter
- func (_m *AmmKeeper) GetAllPool(_a0 types.Context) []ammtypes.Pool
- func (_m *AmmKeeper) GetAllPoolIdsWithDenom(_a0 types.Context, _a1 string) []uint64
- func (_m *AmmKeeper) GetPool(_a0 types.Context, _a1 uint64) (ammtypes.Pool, bool)
- func (_m *AmmKeeper) IterateLiquidityPools(_a0 types.Context, _a1 func(ammtypes.Pool) bool)
- type AmmKeeper_Expecter
- func (_e *AmmKeeper_Expecter) GetAllPool(_a0 interface{}) *AmmKeeper_GetAllPool_Call
- func (_e *AmmKeeper_Expecter) GetAllPoolIdsWithDenom(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_e *AmmKeeper_Expecter) GetPool(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetPool_Call
- func (_e *AmmKeeper_Expecter) IterateLiquidityPools(_a0 interface{}, _a1 interface{}) *AmmKeeper_IterateLiquidityPools_Call
- type AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Return(_a0 []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Run(run func(_a0 types.Context, _a1 string)) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn(run func(types.Context, string) []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- type AmmKeeper_GetAllPool_Call
- func (_c *AmmKeeper_GetAllPool_Call) Return(_a0 []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
- func (_c *AmmKeeper_GetAllPool_Call) Run(run func(_a0 types.Context)) *AmmKeeper_GetAllPool_Call
- func (_c *AmmKeeper_GetAllPool_Call) RunAndReturn(run func(types.Context) []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
- type AmmKeeper_GetPool_Call
- func (_c *AmmKeeper_GetPool_Call) Return(_a0 ammtypes.Pool, _a1 bool) *AmmKeeper_GetPool_Call
- func (_c *AmmKeeper_GetPool_Call) Run(run func(_a0 types.Context, _a1 uint64)) *AmmKeeper_GetPool_Call
- func (_c *AmmKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (ammtypes.Pool, bool)) *AmmKeeper_GetPool_Call
- type AmmKeeper_IterateLiquidityPools_Call
- func (_c *AmmKeeper_IterateLiquidityPools_Call) Return() *AmmKeeper_IterateLiquidityPools_Call
- func (_c *AmmKeeper_IterateLiquidityPools_Call) Run(run func(_a0 types.Context, _a1 func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
- func (_c *AmmKeeper_IterateLiquidityPools_Call) RunAndReturn(run func(types.Context, func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
- type BankKeeper
- func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool
- func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter
- func (_m *BankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins
- func (_m *BankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin
- func (_m *BankKeeper) HasBalance(ctx types.Context, addr types.AccAddress, amt types.Coin) bool
- func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderModule string, recipientModule string, ...) error
- func (_m *BankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
- type BankKeeper_BlockedAddr_Call
- func (_c *BankKeeper_BlockedAddr_Call) Return(_a0 bool) *BankKeeper_BlockedAddr_Call
- func (_c *BankKeeper_BlockedAddr_Call) Run(run func(addr types.AccAddress)) *BankKeeper_BlockedAddr_Call
- func (_c *BankKeeper_BlockedAddr_Call) RunAndReturn(run func(types.AccAddress) bool) *BankKeeper_BlockedAddr_Call
- type BankKeeper_Expecter
- func (_e *BankKeeper_Expecter) BlockedAddr(addr interface{}) *BankKeeper_BlockedAddr_Call
- func (_e *BankKeeper_Expecter) GetAllBalances(ctx interface{}, addr interface{}) *BankKeeper_GetAllBalances_Call
- func (_e *BankKeeper_Expecter) GetBalance(ctx interface{}, addr interface{}, denom interface{}) *BankKeeper_GetBalance_Call
- func (_e *BankKeeper_Expecter) HasBalance(ctx interface{}, addr interface{}, amt interface{}) *BankKeeper_HasBalance_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, ...) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromModuleToAccount(ctx interface{}, senderModule interface{}, recipientAddr interface{}, ...) *BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromModuleToModule(ctx interface{}, senderModule interface{}, recipientModule interface{}, ...) *BankKeeper_SendCoinsFromModuleToModule_Call
- func (_e *BankKeeper_Expecter) SpendableCoins(ctx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call
- type BankKeeper_GetAllBalances_Call
- func (_c *BankKeeper_GetAllBalances_Call) Return(_a0 types.Coins) *BankKeeper_GetAllBalances_Call
- func (_c *BankKeeper_GetAllBalances_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_GetAllBalances_Call
- func (_c *BankKeeper_GetAllBalances_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_GetAllBalances_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_HasBalance_Call
- func (_c *BankKeeper_HasBalance_Call) Return(_a0 bool) *BankKeeper_HasBalance_Call
- func (_c *BankKeeper_HasBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, amt types.Coin)) *BankKeeper_HasBalance_Call
- func (_c *BankKeeper_HasBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.Coin) bool) *BankKeeper_HasBalance_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_SendCoinsFromModuleToAccount_Call
- func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Run(...) *BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn(run func(types.Context, string, types.AccAddress, types.Coins) error) *BankKeeper_SendCoinsFromModuleToAccount_Call
- type BankKeeper_SendCoinsFromModuleToModule_Call
- func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToModule_Call
- func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Run(run func(ctx types.Context, senderModule string, recipientModule string, ...)) *BankKeeper_SendCoinsFromModuleToModule_Call
- func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn(run func(types.Context, string, string, types.Coins) error) *BankKeeper_SendCoinsFromModuleToModule_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
- type InvariantChecker
- type InvariantChecker_Expecter
- type InvariantChecker_InvariantCheck_Call
- func (_c *InvariantChecker_InvariantCheck_Call) Return(_a0 error) *InvariantChecker_InvariantCheck_Call
- func (_c *InvariantChecker_InvariantCheck_Call) Run(run func(ctx types.Context)) *InvariantChecker_InvariantCheck_Call
- func (_c *InvariantChecker_InvariantCheck_Call) RunAndReturn(run func(types.Context) error) *InvariantChecker_InvariantCheck_Call
- type MarginKeeper
- func (_m *MarginKeeper) EXPECT() *MarginKeeper_Expecter
- func (_m *MarginKeeper) GetAllMTPs(ctx types.Context) []margintypes.MTP
- func (_m *MarginKeeper) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
- func (_m *MarginKeeper) IsPoolClosed(ctx types.Context, poolId uint64) bool
- func (_m *MarginKeeper) IsPoolEnabled(ctx types.Context, poolId uint64) bool
- type MarginKeeper_Expecter
- func (_e *MarginKeeper_Expecter) GetAllMTPs(ctx interface{}) *MarginKeeper_GetAllMTPs_Call
- func (_e *MarginKeeper_Expecter) GetPool(ctx interface{}, poolId interface{}) *MarginKeeper_GetPool_Call
- func (_e *MarginKeeper_Expecter) IsPoolClosed(ctx interface{}, poolId interface{}) *MarginKeeper_IsPoolClosed_Call
- func (_e *MarginKeeper_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *MarginKeeper_IsPoolEnabled_Call
- type MarginKeeper_GetAllMTPs_Call
- func (_c *MarginKeeper_GetAllMTPs_Call) Return(_a0 []margintypes.MTP) *MarginKeeper_GetAllMTPs_Call
- func (_c *MarginKeeper_GetAllMTPs_Call) Run(run func(ctx types.Context)) *MarginKeeper_GetAllMTPs_Call
- func (_c *MarginKeeper_GetAllMTPs_Call) RunAndReturn(run func(types.Context) []margintypes.MTP) *MarginKeeper_GetAllMTPs_Call
- type MarginKeeper_GetPool_Call
- func (_c *MarginKeeper_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *MarginKeeper_GetPool_Call
- func (_c *MarginKeeper_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *MarginKeeper_GetPool_Call
- func (_c *MarginKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *MarginKeeper_GetPool_Call
- type MarginKeeper_IsPoolClosed_Call
- func (_c *MarginKeeper_IsPoolClosed_Call) Return(_a0 bool) *MarginKeeper_IsPoolClosed_Call
- func (_c *MarginKeeper_IsPoolClosed_Call) Run(run func(ctx types.Context, poolId uint64)) *MarginKeeper_IsPoolClosed_Call
- func (_c *MarginKeeper_IsPoolClosed_Call) RunAndReturn(run func(types.Context, uint64) bool) *MarginKeeper_IsPoolClosed_Call
- type MarginKeeper_IsPoolEnabled_Call
- func (_c *MarginKeeper_IsPoolEnabled_Call) Return(_a0 bool) *MarginKeeper_IsPoolEnabled_Call
- func (_c *MarginKeeper_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *MarginKeeper_IsPoolEnabled_Call
- func (_c *MarginKeeper_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *MarginKeeper_IsPoolEnabled_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmmKeeper ¶
AmmKeeper is an autogenerated mock type for the AmmKeeper type
func NewAmmKeeper ¶
NewAmmKeeper creates a new instance of AmmKeeper. 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 (*AmmKeeper) EXPECT ¶
func (_m *AmmKeeper) EXPECT() *AmmKeeper_Expecter
func (*AmmKeeper) GetAllPool ¶
GetAllPool provides a mock function with given fields: _a0
func (*AmmKeeper) GetAllPoolIdsWithDenom ¶
GetAllPoolIdsWithDenom provides a mock function with given fields: _a0, _a1
type AmmKeeper_Expecter ¶
type AmmKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*AmmKeeper_Expecter) GetAllPool ¶
func (_e *AmmKeeper_Expecter) GetAllPool(_a0 interface{}) *AmmKeeper_GetAllPool_Call
GetAllPool is a helper method to define mock.On call
- _a0 types.Context
func (*AmmKeeper_Expecter) GetAllPoolIdsWithDenom ¶
func (_e *AmmKeeper_Expecter) GetAllPoolIdsWithDenom(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetAllPoolIdsWithDenom_Call
GetAllPoolIdsWithDenom is a helper method to define mock.On call
- _a0 types.Context
- _a1 string
func (*AmmKeeper_Expecter) GetPool ¶
func (_e *AmmKeeper_Expecter) GetPool(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetPool_Call
GetPool is a helper method to define mock.On call
- _a0 types.Context
- _a1 uint64
func (*AmmKeeper_Expecter) IterateLiquidityPools ¶
func (_e *AmmKeeper_Expecter) IterateLiquidityPools(_a0 interface{}, _a1 interface{}) *AmmKeeper_IterateLiquidityPools_Call
IterateLiquidityPools is a helper method to define mock.On call
- _a0 types.Context
- _a1 func(ammtypes.Pool) bool
type AmmKeeper_GetAllPoolIdsWithDenom_Call ¶
AmmKeeper_GetAllPoolIdsWithDenom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPoolIdsWithDenom'
func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) Return ¶
func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Return(_a0 []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) Run ¶
func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Run(run func(_a0 types.Context, _a1 string)) *AmmKeeper_GetAllPoolIdsWithDenom_Call
func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn ¶
func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn(run func(types.Context, string) []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
type AmmKeeper_GetAllPool_Call ¶
AmmKeeper_GetAllPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPool'
func (*AmmKeeper_GetAllPool_Call) Return ¶
func (_c *AmmKeeper_GetAllPool_Call) Return(_a0 []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
func (*AmmKeeper_GetAllPool_Call) Run ¶
func (_c *AmmKeeper_GetAllPool_Call) Run(run func(_a0 types.Context)) *AmmKeeper_GetAllPool_Call
func (*AmmKeeper_GetAllPool_Call) RunAndReturn ¶
func (_c *AmmKeeper_GetAllPool_Call) RunAndReturn(run func(types.Context) []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
type AmmKeeper_GetPool_Call ¶
AmmKeeper_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*AmmKeeper_GetPool_Call) Return ¶
func (_c *AmmKeeper_GetPool_Call) Return(_a0 ammtypes.Pool, _a1 bool) *AmmKeeper_GetPool_Call
func (*AmmKeeper_GetPool_Call) Run ¶
func (_c *AmmKeeper_GetPool_Call) Run(run func(_a0 types.Context, _a1 uint64)) *AmmKeeper_GetPool_Call
func (*AmmKeeper_GetPool_Call) RunAndReturn ¶
func (_c *AmmKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (ammtypes.Pool, bool)) *AmmKeeper_GetPool_Call
type AmmKeeper_IterateLiquidityPools_Call ¶
AmmKeeper_IterateLiquidityPools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateLiquidityPools'
func (*AmmKeeper_IterateLiquidityPools_Call) Return ¶
func (_c *AmmKeeper_IterateLiquidityPools_Call) Return() *AmmKeeper_IterateLiquidityPools_Call
func (*AmmKeeper_IterateLiquidityPools_Call) Run ¶
func (_c *AmmKeeper_IterateLiquidityPools_Call) Run(run func(_a0 types.Context, _a1 func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
func (*AmmKeeper_IterateLiquidityPools_Call) RunAndReturn ¶
func (_c *AmmKeeper_IterateLiquidityPools_Call) RunAndReturn(run func(types.Context, func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
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) BlockedAddr ¶
func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool
BlockedAddr provides a mock function with given fields: addr
func (*BankKeeper) EXPECT ¶
func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter
func (*BankKeeper) GetAllBalances ¶
func (_m *BankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins
GetAllBalances provides a mock function with given fields: ctx, addr
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) HasBalance ¶
func (_m *BankKeeper) HasBalance(ctx types.Context, addr types.AccAddress, amt types.Coin) bool
HasBalance provides a mock function with given fields: ctx, addr, amt
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) SendCoinsFromModuleToAccount ¶
func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error
SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt
func (*BankKeeper) SendCoinsFromModuleToModule ¶
func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderModule string, recipientModule string, amt types.Coins) error
SendCoinsFromModuleToModule provides a mock function with given fields: ctx, senderModule, 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_BlockedAddr_Call ¶
BankKeeper_BlockedAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockedAddr'
func (*BankKeeper_BlockedAddr_Call) Return ¶
func (_c *BankKeeper_BlockedAddr_Call) Return(_a0 bool) *BankKeeper_BlockedAddr_Call
func (*BankKeeper_BlockedAddr_Call) Run ¶
func (_c *BankKeeper_BlockedAddr_Call) Run(run func(addr types.AccAddress)) *BankKeeper_BlockedAddr_Call
func (*BankKeeper_BlockedAddr_Call) RunAndReturn ¶
func (_c *BankKeeper_BlockedAddr_Call) RunAndReturn(run func(types.AccAddress) bool) *BankKeeper_BlockedAddr_Call
type BankKeeper_Expecter ¶
type BankKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*BankKeeper_Expecter) BlockedAddr ¶
func (_e *BankKeeper_Expecter) BlockedAddr(addr interface{}) *BankKeeper_BlockedAddr_Call
BlockedAddr is a helper method to define mock.On call
- addr types.AccAddress
func (*BankKeeper_Expecter) GetAllBalances ¶
func (_e *BankKeeper_Expecter) GetAllBalances(ctx interface{}, addr interface{}) *BankKeeper_GetAllBalances_Call
GetAllBalances is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
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) HasBalance ¶
func (_e *BankKeeper_Expecter) HasBalance(ctx interface{}, addr interface{}, amt interface{}) *BankKeeper_HasBalance_Call
HasBalance is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
- amt types.Coin
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) SendCoinsFromModuleToAccount ¶
func (_e *BankKeeper_Expecter) SendCoinsFromModuleToAccount(ctx interface{}, senderModule interface{}, recipientAddr interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToAccount_Call
SendCoinsFromModuleToAccount is a helper method to define mock.On call
- ctx types.Context
- senderModule string
- recipientAddr types.AccAddress
- amt types.Coins
func (*BankKeeper_Expecter) SendCoinsFromModuleToModule ¶
func (_e *BankKeeper_Expecter) SendCoinsFromModuleToModule(ctx interface{}, senderModule interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToModule_Call
SendCoinsFromModuleToModule is a helper method to define mock.On call
- ctx types.Context
- senderModule string
- 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_GetAllBalances_Call ¶
BankKeeper_GetAllBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllBalances'
func (*BankKeeper_GetAllBalances_Call) Return ¶
func (_c *BankKeeper_GetAllBalances_Call) Return(_a0 types.Coins) *BankKeeper_GetAllBalances_Call
func (*BankKeeper_GetAllBalances_Call) Run ¶
func (_c *BankKeeper_GetAllBalances_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_GetAllBalances_Call
func (*BankKeeper_GetAllBalances_Call) RunAndReturn ¶
func (_c *BankKeeper_GetAllBalances_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_GetAllBalances_Call
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 ¶
func (_c *BankKeeper_GetBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, string) types.Coin) *BankKeeper_GetBalance_Call
type BankKeeper_HasBalance_Call ¶
BankKeeper_HasBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasBalance'
func (*BankKeeper_HasBalance_Call) Return ¶
func (_c *BankKeeper_HasBalance_Call) Return(_a0 bool) *BankKeeper_HasBalance_Call
func (*BankKeeper_HasBalance_Call) Run ¶
func (_c *BankKeeper_HasBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, amt types.Coin)) *BankKeeper_HasBalance_Call
func (*BankKeeper_HasBalance_Call) RunAndReturn ¶
func (_c *BankKeeper_HasBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.Coin) bool) *BankKeeper_HasBalance_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 ¶
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn(run func(types.Context, types.AccAddress, string, types.Coins) error) *BankKeeper_SendCoinsFromAccountToModule_Call
type BankKeeper_SendCoinsFromModuleToAccount_Call ¶
BankKeeper_SendCoinsFromModuleToAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToAccount'
func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Return ¶
func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToAccount_Call
func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Run ¶
func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Run(run func(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins)) *BankKeeper_SendCoinsFromModuleToAccount_Call
func (*BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn ¶
func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn(run func(types.Context, string, types.AccAddress, types.Coins) error) *BankKeeper_SendCoinsFromModuleToAccount_Call
type BankKeeper_SendCoinsFromModuleToModule_Call ¶
BankKeeper_SendCoinsFromModuleToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToModule'
func (*BankKeeper_SendCoinsFromModuleToModule_Call) Return ¶
func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToModule_Call
func (*BankKeeper_SendCoinsFromModuleToModule_Call) Run ¶
func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Run(run func(ctx types.Context, senderModule string, recipientModule string, amt types.Coins)) *BankKeeper_SendCoinsFromModuleToModule_Call
func (*BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn ¶
func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn(run func(types.Context, string, string, types.Coins) error) *BankKeeper_SendCoinsFromModuleToModule_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 ¶
func (_c *BankKeeper_SpendableCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_SpendableCoins_Call
type InvariantChecker ¶
InvariantChecker is an autogenerated mock type for the InvariantChecker type
func NewInvariantChecker ¶
func NewInvariantChecker(t interface { mock.TestingT Cleanup(func()) }) *InvariantChecker
NewInvariantChecker creates a new instance of InvariantChecker. 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 (*InvariantChecker) EXPECT ¶
func (_m *InvariantChecker) EXPECT() *InvariantChecker_Expecter
func (*InvariantChecker) InvariantCheck ¶
func (_m *InvariantChecker) InvariantCheck(ctx types.Context) error
InvariantCheck provides a mock function with given fields: ctx
type InvariantChecker_Expecter ¶
type InvariantChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*InvariantChecker_Expecter) InvariantCheck ¶
func (_e *InvariantChecker_Expecter) InvariantCheck(ctx interface{}) *InvariantChecker_InvariantCheck_Call
InvariantCheck is a helper method to define mock.On call
- ctx types.Context
type InvariantChecker_InvariantCheck_Call ¶
InvariantChecker_InvariantCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvariantCheck'
func (*InvariantChecker_InvariantCheck_Call) Return ¶
func (_c *InvariantChecker_InvariantCheck_Call) Return(_a0 error) *InvariantChecker_InvariantCheck_Call
func (*InvariantChecker_InvariantCheck_Call) Run ¶
func (_c *InvariantChecker_InvariantCheck_Call) Run(run func(ctx types.Context)) *InvariantChecker_InvariantCheck_Call
func (*InvariantChecker_InvariantCheck_Call) RunAndReturn ¶
func (_c *InvariantChecker_InvariantCheck_Call) RunAndReturn(run func(types.Context) error) *InvariantChecker_InvariantCheck_Call
type MarginKeeper ¶
MarginKeeper is an autogenerated mock type for the MarginKeeper type
func NewMarginKeeper ¶
func NewMarginKeeper(t interface { mock.TestingT Cleanup(func()) }) *MarginKeeper
NewMarginKeeper creates a new instance of MarginKeeper. 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 (*MarginKeeper) EXPECT ¶
func (_m *MarginKeeper) EXPECT() *MarginKeeper_Expecter
func (*MarginKeeper) GetAllMTPs ¶
func (_m *MarginKeeper) GetAllMTPs(ctx types.Context) []margintypes.MTP
GetAllMTPs provides a mock function with given fields: ctx
func (*MarginKeeper) GetPool ¶
func (_m *MarginKeeper) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*MarginKeeper) IsPoolClosed ¶
func (_m *MarginKeeper) IsPoolClosed(ctx types.Context, poolId uint64) bool
IsPoolClosed provides a mock function with given fields: ctx, poolId
func (*MarginKeeper) IsPoolEnabled ¶
func (_m *MarginKeeper) IsPoolEnabled(ctx types.Context, poolId uint64) bool
IsPoolEnabled provides a mock function with given fields: ctx, poolId
type MarginKeeper_Expecter ¶
type MarginKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*MarginKeeper_Expecter) GetAllMTPs ¶
func (_e *MarginKeeper_Expecter) GetAllMTPs(ctx interface{}) *MarginKeeper_GetAllMTPs_Call
GetAllMTPs is a helper method to define mock.On call
- ctx types.Context
func (*MarginKeeper_Expecter) GetPool ¶
func (_e *MarginKeeper_Expecter) GetPool(ctx interface{}, poolId interface{}) *MarginKeeper_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*MarginKeeper_Expecter) IsPoolClosed ¶
func (_e *MarginKeeper_Expecter) IsPoolClosed(ctx interface{}, poolId interface{}) *MarginKeeper_IsPoolClosed_Call
IsPoolClosed is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*MarginKeeper_Expecter) IsPoolEnabled ¶
func (_e *MarginKeeper_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *MarginKeeper_IsPoolEnabled_Call
IsPoolEnabled is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
type MarginKeeper_GetAllMTPs_Call ¶
MarginKeeper_GetAllMTPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllMTPs'
func (*MarginKeeper_GetAllMTPs_Call) Return ¶
func (_c *MarginKeeper_GetAllMTPs_Call) Return(_a0 []margintypes.MTP) *MarginKeeper_GetAllMTPs_Call
func (*MarginKeeper_GetAllMTPs_Call) Run ¶
func (_c *MarginKeeper_GetAllMTPs_Call) Run(run func(ctx types.Context)) *MarginKeeper_GetAllMTPs_Call
func (*MarginKeeper_GetAllMTPs_Call) RunAndReturn ¶
func (_c *MarginKeeper_GetAllMTPs_Call) RunAndReturn(run func(types.Context) []margintypes.MTP) *MarginKeeper_GetAllMTPs_Call
type MarginKeeper_GetPool_Call ¶
MarginKeeper_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*MarginKeeper_GetPool_Call) Return ¶
func (_c *MarginKeeper_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *MarginKeeper_GetPool_Call
func (*MarginKeeper_GetPool_Call) Run ¶
func (_c *MarginKeeper_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *MarginKeeper_GetPool_Call
func (*MarginKeeper_GetPool_Call) RunAndReturn ¶
func (_c *MarginKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *MarginKeeper_GetPool_Call
type MarginKeeper_IsPoolClosed_Call ¶
MarginKeeper_IsPoolClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPoolClosed'
func (*MarginKeeper_IsPoolClosed_Call) Return ¶
func (_c *MarginKeeper_IsPoolClosed_Call) Return(_a0 bool) *MarginKeeper_IsPoolClosed_Call
func (*MarginKeeper_IsPoolClosed_Call) Run ¶
func (_c *MarginKeeper_IsPoolClosed_Call) Run(run func(ctx types.Context, poolId uint64)) *MarginKeeper_IsPoolClosed_Call
func (*MarginKeeper_IsPoolClosed_Call) RunAndReturn ¶
func (_c *MarginKeeper_IsPoolClosed_Call) RunAndReturn(run func(types.Context, uint64) bool) *MarginKeeper_IsPoolClosed_Call
type MarginKeeper_IsPoolEnabled_Call ¶
MarginKeeper_IsPoolEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPoolEnabled'
func (*MarginKeeper_IsPoolEnabled_Call) Return ¶
func (_c *MarginKeeper_IsPoolEnabled_Call) Return(_a0 bool) *MarginKeeper_IsPoolEnabled_Call
func (*MarginKeeper_IsPoolEnabled_Call) Run ¶
func (_c *MarginKeeper_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *MarginKeeper_IsPoolEnabled_Call
func (*MarginKeeper_IsPoolEnabled_Call) RunAndReturn ¶
func (_c *MarginKeeper_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *MarginKeeper_IsPoolEnabled_Call