Documentation ¶
Index ¶
- type AmmKeeper
- type AmmKeeper_Expecter
- type AmmKeeper_SwapByDenom_Call
- func (_c *AmmKeeper_SwapByDenom_Call) Return(_a0 *ammtypes.MsgSwapByDenomResponse, _a1 error) *AmmKeeper_SwapByDenom_Call
- func (_c *AmmKeeper_SwapByDenom_Call) Run(run func(ctx types.Context, msg *ammtypes.MsgSwapByDenom)) *AmmKeeper_SwapByDenom_Call
- func (_c *AmmKeeper_SwapByDenom_Call) RunAndReturn(...) *AmmKeeper_SwapByDenom_Call
- type PerpetualKeeper
- func (_m *PerpetualKeeper) Close(ctx types.Context, msg *perpetualtypes.MsgClose) (*perpetualtypes.MsgCloseResponse, error)
- func (_m *PerpetualKeeper) EXPECT() *PerpetualKeeper_Expecter
- func (_m *PerpetualKeeper) Open(ctx types.Context, msg *perpetualtypes.MsgOpen, isBroker bool) (*perpetualtypes.MsgOpenResponse, error)
- type PerpetualKeeper_Close_Call
- func (_c *PerpetualKeeper_Close_Call) Return(_a0 *perpetualtypes.MsgCloseResponse, _a1 error) *PerpetualKeeper_Close_Call
- func (_c *PerpetualKeeper_Close_Call) Run(run func(ctx types.Context, msg *perpetualtypes.MsgClose)) *PerpetualKeeper_Close_Call
- func (_c *PerpetualKeeper_Close_Call) RunAndReturn(...) *PerpetualKeeper_Close_Call
- type PerpetualKeeper_Expecter
- type PerpetualKeeper_Open_Call
- func (_c *PerpetualKeeper_Open_Call) Return(_a0 *perpetualtypes.MsgOpenResponse, _a1 error) *PerpetualKeeper_Open_Call
- func (_c *PerpetualKeeper_Open_Call) Run(run func(ctx types.Context, msg *perpetualtypes.MsgOpen, isBroker bool)) *PerpetualKeeper_Open_Call
- func (_c *PerpetualKeeper_Open_Call) RunAndReturn(...) *PerpetualKeeper_Open_Call
- type TierKeeper
- type TierKeeper_CalculateUSDValue_Call
- func (_c *TierKeeper_CalculateUSDValue_Call) Return(_a0 math.LegacyDec) *TierKeeper_CalculateUSDValue_Call
- func (_c *TierKeeper_CalculateUSDValue_Call) Run(run func(ctx types.Context, denom string, amount math.Int)) *TierKeeper_CalculateUSDValue_Call
- func (_c *TierKeeper_CalculateUSDValue_Call) RunAndReturn(run func(types.Context, string, math.Int) math.LegacyDec) *TierKeeper_CalculateUSDValue_Call
- type TierKeeper_Expecter
- type TierKeeper_GetMembershipTier_Call
- func (_c *TierKeeper_GetMembershipTier_Call) Return(total_portfolio math.LegacyDec, tier string, discount uint64) *TierKeeper_GetMembershipTier_Call
- func (_c *TierKeeper_GetMembershipTier_Call) Run(run func(ctx types.Context, user types.AccAddress)) *TierKeeper_GetMembershipTier_Call
- func (_c *TierKeeper_GetMembershipTier_Call) RunAndReturn(run func(types.Context, types.AccAddress) (math.LegacyDec, string, uint64)) *TierKeeper_GetMembershipTier_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) SwapByDenom ¶
func (_m *AmmKeeper) SwapByDenom(ctx types.Context, msg *ammtypes.MsgSwapByDenom) (*ammtypes.MsgSwapByDenomResponse, error)
SwapByDenom provides a mock function with given fields: ctx, msg
type AmmKeeper_Expecter ¶
type AmmKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*AmmKeeper_Expecter) SwapByDenom ¶
func (_e *AmmKeeper_Expecter) SwapByDenom(ctx interface{}, msg interface{}) *AmmKeeper_SwapByDenom_Call
SwapByDenom is a helper method to define mock.On call
- ctx types.Context
- msg *ammtypes.MsgSwapByDenom
type AmmKeeper_SwapByDenom_Call ¶
AmmKeeper_SwapByDenom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SwapByDenom'
func (*AmmKeeper_SwapByDenom_Call) Return ¶
func (_c *AmmKeeper_SwapByDenom_Call) Return(_a0 *ammtypes.MsgSwapByDenomResponse, _a1 error) *AmmKeeper_SwapByDenom_Call
func (*AmmKeeper_SwapByDenom_Call) Run ¶
func (_c *AmmKeeper_SwapByDenom_Call) Run(run func(ctx types.Context, msg *ammtypes.MsgSwapByDenom)) *AmmKeeper_SwapByDenom_Call
func (*AmmKeeper_SwapByDenom_Call) RunAndReturn ¶
func (_c *AmmKeeper_SwapByDenom_Call) RunAndReturn(run func(types.Context, *ammtypes.MsgSwapByDenom) (*ammtypes.MsgSwapByDenomResponse, error)) *AmmKeeper_SwapByDenom_Call
type PerpetualKeeper ¶
PerpetualKeeper is an autogenerated mock type for the PerpetualKeeper type
func NewPerpetualKeeper ¶
func NewPerpetualKeeper(t interface { mock.TestingT Cleanup(func()) }) *PerpetualKeeper
NewPerpetualKeeper creates a new instance of PerpetualKeeper. 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 (*PerpetualKeeper) Close ¶
func (_m *PerpetualKeeper) Close(ctx types.Context, msg *perpetualtypes.MsgClose) (*perpetualtypes.MsgCloseResponse, error)
Close provides a mock function with given fields: ctx, msg
func (*PerpetualKeeper) EXPECT ¶
func (_m *PerpetualKeeper) EXPECT() *PerpetualKeeper_Expecter
func (*PerpetualKeeper) Open ¶
func (_m *PerpetualKeeper) Open(ctx types.Context, msg *perpetualtypes.MsgOpen, isBroker bool) (*perpetualtypes.MsgOpenResponse, error)
Open provides a mock function with given fields: ctx, msg, isBroker
type PerpetualKeeper_Close_Call ¶
PerpetualKeeper_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*PerpetualKeeper_Close_Call) Return ¶
func (_c *PerpetualKeeper_Close_Call) Return(_a0 *perpetualtypes.MsgCloseResponse, _a1 error) *PerpetualKeeper_Close_Call
func (*PerpetualKeeper_Close_Call) Run ¶
func (_c *PerpetualKeeper_Close_Call) Run(run func(ctx types.Context, msg *perpetualtypes.MsgClose)) *PerpetualKeeper_Close_Call
func (*PerpetualKeeper_Close_Call) RunAndReturn ¶
func (_c *PerpetualKeeper_Close_Call) RunAndReturn(run func(types.Context, *perpetualtypes.MsgClose) (*perpetualtypes.MsgCloseResponse, error)) *PerpetualKeeper_Close_Call
type PerpetualKeeper_Expecter ¶
type PerpetualKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*PerpetualKeeper_Expecter) Close ¶
func (_e *PerpetualKeeper_Expecter) Close(ctx interface{}, msg interface{}) *PerpetualKeeper_Close_Call
Close is a helper method to define mock.On call
- ctx types.Context
- msg *perpetualtypes.MsgClose
func (*PerpetualKeeper_Expecter) Open ¶
func (_e *PerpetualKeeper_Expecter) Open(ctx interface{}, msg interface{}, isBroker interface{}) *PerpetualKeeper_Open_Call
Open is a helper method to define mock.On call
- ctx types.Context
- msg *perpetualtypes.MsgOpen
- isBroker bool
type PerpetualKeeper_Open_Call ¶
PerpetualKeeper_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*PerpetualKeeper_Open_Call) Return ¶
func (_c *PerpetualKeeper_Open_Call) Return(_a0 *perpetualtypes.MsgOpenResponse, _a1 error) *PerpetualKeeper_Open_Call
func (*PerpetualKeeper_Open_Call) Run ¶
func (_c *PerpetualKeeper_Open_Call) Run(run func(ctx types.Context, msg *perpetualtypes.MsgOpen, isBroker bool)) *PerpetualKeeper_Open_Call
func (*PerpetualKeeper_Open_Call) RunAndReturn ¶
func (_c *PerpetualKeeper_Open_Call) RunAndReturn(run func(types.Context, *perpetualtypes.MsgOpen, bool) (*perpetualtypes.MsgOpenResponse, error)) *PerpetualKeeper_Open_Call
type TierKeeper ¶
TierKeeper is an autogenerated mock type for the TierKeeper type
func NewTierKeeper ¶
func NewTierKeeper(t interface { mock.TestingT Cleanup(func()) }) *TierKeeper
NewTierKeeper creates a new instance of TierKeeper. 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 (*TierKeeper) CalculateUSDValue ¶
func (_m *TierKeeper) CalculateUSDValue(ctx types.Context, denom string, amount math.Int) math.LegacyDec
CalculateUSDValue provides a mock function with given fields: ctx, denom, amount
func (*TierKeeper) EXPECT ¶
func (_m *TierKeeper) EXPECT() *TierKeeper_Expecter
func (*TierKeeper) GetMembershipTier ¶
func (_m *TierKeeper) GetMembershipTier(ctx types.Context, user types.AccAddress) (math.LegacyDec, string, uint64)
GetMembershipTier provides a mock function with given fields: ctx, user
type TierKeeper_CalculateUSDValue_Call ¶
TierKeeper_CalculateUSDValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalculateUSDValue'
func (*TierKeeper_CalculateUSDValue_Call) Return ¶
func (_c *TierKeeper_CalculateUSDValue_Call) Return(_a0 math.LegacyDec) *TierKeeper_CalculateUSDValue_Call
func (*TierKeeper_CalculateUSDValue_Call) Run ¶
func (_c *TierKeeper_CalculateUSDValue_Call) Run(run func(ctx types.Context, denom string, amount math.Int)) *TierKeeper_CalculateUSDValue_Call
func (*TierKeeper_CalculateUSDValue_Call) RunAndReturn ¶
func (_c *TierKeeper_CalculateUSDValue_Call) RunAndReturn(run func(types.Context, string, math.Int) math.LegacyDec) *TierKeeper_CalculateUSDValue_Call
type TierKeeper_Expecter ¶
type TierKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*TierKeeper_Expecter) CalculateUSDValue ¶
func (_e *TierKeeper_Expecter) CalculateUSDValue(ctx interface{}, denom interface{}, amount interface{}) *TierKeeper_CalculateUSDValue_Call
CalculateUSDValue is a helper method to define mock.On call
- ctx types.Context
- denom string
- amount math.Int
func (*TierKeeper_Expecter) GetMembershipTier ¶
func (_e *TierKeeper_Expecter) GetMembershipTier(ctx interface{}, user interface{}) *TierKeeper_GetMembershipTier_Call
GetMembershipTier is a helper method to define mock.On call
- ctx types.Context
- user types.AccAddress
type TierKeeper_GetMembershipTier_Call ¶
TierKeeper_GetMembershipTier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMembershipTier'
func (*TierKeeper_GetMembershipTier_Call) Return ¶
func (_c *TierKeeper_GetMembershipTier_Call) Return(total_portfolio math.LegacyDec, tier string, discount uint64) *TierKeeper_GetMembershipTier_Call
func (*TierKeeper_GetMembershipTier_Call) Run ¶
func (_c *TierKeeper_GetMembershipTier_Call) Run(run func(ctx types.Context, user types.AccAddress)) *TierKeeper_GetMembershipTier_Call
func (*TierKeeper_GetMembershipTier_Call) RunAndReturn ¶
func (_c *TierKeeper_GetMembershipTier_Call) RunAndReturn(run func(types.Context, types.AccAddress) (math.LegacyDec, string, uint64)) *TierKeeper_GetMembershipTier_Call