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) GetAssetPrice(ctx types.Context, asset string) (math.LegacyDec, error)
- func (_m *PerpetualKeeper) GetMTP(ctx types.Context, mtpAddress types.AccAddress, id uint64) (perpetualtypes.MTP, error)
- func (_m *PerpetualKeeper) GetMTPsForAddressWithPagination(ctx types.Context, mtpAddress types.AccAddress, pagination *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, error)
- func (_m *PerpetualKeeper) GetPool(ctx types.Context, poolId uint64) (perpetualtypes.Pool, bool)
- func (_m *PerpetualKeeper) HandleCloseEstimation(ctx types.Context, req *perpetualtypes.QueryCloseEstimationRequest) (*perpetualtypes.QueryCloseEstimationResponse, error)
- func (_m *PerpetualKeeper) HandleOpenEstimation(ctx types.Context, req *perpetualtypes.QueryOpenEstimationRequest) (*perpetualtypes.QueryOpenEstimationResponse, error)
- 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
- func (_e *PerpetualKeeper_Expecter) Close(ctx interface{}, msg interface{}) *PerpetualKeeper_Close_Call
- func (_e *PerpetualKeeper_Expecter) GetAssetPrice(ctx interface{}, asset interface{}) *PerpetualKeeper_GetAssetPrice_Call
- func (_e *PerpetualKeeper_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *PerpetualKeeper_GetMTP_Call
- func (_e *PerpetualKeeper_Expecter) GetMTPsForAddressWithPagination(ctx interface{}, mtpAddress interface{}, pagination interface{}) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
- func (_e *PerpetualKeeper_Expecter) GetPool(ctx interface{}, poolId interface{}) *PerpetualKeeper_GetPool_Call
- func (_e *PerpetualKeeper_Expecter) HandleCloseEstimation(ctx interface{}, req interface{}) *PerpetualKeeper_HandleCloseEstimation_Call
- func (_e *PerpetualKeeper_Expecter) HandleOpenEstimation(ctx interface{}, req interface{}) *PerpetualKeeper_HandleOpenEstimation_Call
- func (_e *PerpetualKeeper_Expecter) Open(ctx interface{}, msg interface{}, isBroker interface{}) *PerpetualKeeper_Open_Call
- type PerpetualKeeper_GetAssetPrice_Call
- func (_c *PerpetualKeeper_GetAssetPrice_Call) Return(_a0 math.LegacyDec, _a1 error) *PerpetualKeeper_GetAssetPrice_Call
- func (_c *PerpetualKeeper_GetAssetPrice_Call) Run(run func(ctx types.Context, asset string)) *PerpetualKeeper_GetAssetPrice_Call
- func (_c *PerpetualKeeper_GetAssetPrice_Call) RunAndReturn(run func(types.Context, string) (math.LegacyDec, error)) *PerpetualKeeper_GetAssetPrice_Call
- type PerpetualKeeper_GetMTP_Call
- func (_c *PerpetualKeeper_GetMTP_Call) Return(_a0 perpetualtypes.MTP, _a1 error) *PerpetualKeeper_GetMTP_Call
- func (_c *PerpetualKeeper_GetMTP_Call) Run(run func(ctx types.Context, mtpAddress types.AccAddress, id uint64)) *PerpetualKeeper_GetMTP_Call
- func (_c *PerpetualKeeper_GetMTP_Call) RunAndReturn(run func(types.Context, types.AccAddress, uint64) (perpetualtypes.MTP, error)) *PerpetualKeeper_GetMTP_Call
- type PerpetualKeeper_GetMTPsForAddressWithPagination_Call
- func (_c *PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Return(_a0 []*perpetualtypes.MtpAndPrice, _a1 *query.PageResponse, _a2 error) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
- func (_c *PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Run(...) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
- func (_c *PerpetualKeeper_GetMTPsForAddressWithPagination_Call) RunAndReturn(...) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
- type PerpetualKeeper_GetPool_Call
- func (_c *PerpetualKeeper_GetPool_Call) Return(val perpetualtypes.Pool, found bool) *PerpetualKeeper_GetPool_Call
- func (_c *PerpetualKeeper_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *PerpetualKeeper_GetPool_Call
- func (_c *PerpetualKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (perpetualtypes.Pool, bool)) *PerpetualKeeper_GetPool_Call
- type PerpetualKeeper_HandleCloseEstimation_Call
- func (_c *PerpetualKeeper_HandleCloseEstimation_Call) Return(res *perpetualtypes.QueryCloseEstimationResponse, err error) *PerpetualKeeper_HandleCloseEstimation_Call
- func (_c *PerpetualKeeper_HandleCloseEstimation_Call) Run(run func(ctx types.Context, req *perpetualtypes.QueryCloseEstimationRequest)) *PerpetualKeeper_HandleCloseEstimation_Call
- func (_c *PerpetualKeeper_HandleCloseEstimation_Call) RunAndReturn(...) *PerpetualKeeper_HandleCloseEstimation_Call
- type PerpetualKeeper_HandleOpenEstimation_Call
- func (_c *PerpetualKeeper_HandleOpenEstimation_Call) Return(_a0 *perpetualtypes.QueryOpenEstimationResponse, _a1 error) *PerpetualKeeper_HandleOpenEstimation_Call
- func (_c *PerpetualKeeper_HandleOpenEstimation_Call) Run(run func(ctx types.Context, req *perpetualtypes.QueryOpenEstimationRequest)) *PerpetualKeeper_HandleOpenEstimation_Call
- func (_c *PerpetualKeeper_HandleOpenEstimation_Call) RunAndReturn(...) *PerpetualKeeper_HandleOpenEstimation_Call
- 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 tiertypes.MembershipTier) *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(...) *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) GetAssetPrice ¶ added in v0.49.3
GetAssetPrice provides a mock function with given fields: ctx, asset
func (*PerpetualKeeper) GetMTP ¶ added in v0.48.0
func (_m *PerpetualKeeper) GetMTP(ctx types.Context, mtpAddress types.AccAddress, id uint64) (perpetualtypes.MTP, error)
GetMTP provides a mock function with given fields: ctx, mtpAddress, id
func (*PerpetualKeeper) GetMTPsForAddressWithPagination ¶ added in v0.49.4
func (_m *PerpetualKeeper) GetMTPsForAddressWithPagination(ctx types.Context, mtpAddress types.AccAddress, pagination *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, error)
GetMTPsForAddressWithPagination provides a mock function with given fields: ctx, mtpAddress, pagination
func (*PerpetualKeeper) GetPool ¶ added in v0.48.0
func (_m *PerpetualKeeper) GetPool(ctx types.Context, poolId uint64) (perpetualtypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*PerpetualKeeper) HandleCloseEstimation ¶ added in v0.48.0
func (_m *PerpetualKeeper) HandleCloseEstimation(ctx types.Context, req *perpetualtypes.QueryCloseEstimationRequest) (*perpetualtypes.QueryCloseEstimationResponse, error)
HandleCloseEstimation provides a mock function with given fields: ctx, req
func (*PerpetualKeeper) HandleOpenEstimation ¶ added in v0.48.0
func (_m *PerpetualKeeper) HandleOpenEstimation(ctx types.Context, req *perpetualtypes.QueryOpenEstimationRequest) (*perpetualtypes.QueryOpenEstimationResponse, error)
HandleOpenEstimation provides a mock function with given fields: ctx, req
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) GetAssetPrice ¶ added in v0.49.3
func (_e *PerpetualKeeper_Expecter) GetAssetPrice(ctx interface{}, asset interface{}) *PerpetualKeeper_GetAssetPrice_Call
GetAssetPrice is a helper method to define mock.On call
- ctx types.Context
- asset string
func (*PerpetualKeeper_Expecter) GetMTP ¶ added in v0.48.0
func (_e *PerpetualKeeper_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *PerpetualKeeper_GetMTP_Call
GetMTP is a helper method to define mock.On call
- ctx types.Context
- mtpAddress types.AccAddress
- id uint64
func (*PerpetualKeeper_Expecter) GetMTPsForAddressWithPagination ¶ added in v0.49.4
func (_e *PerpetualKeeper_Expecter) GetMTPsForAddressWithPagination(ctx interface{}, mtpAddress interface{}, pagination interface{}) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
GetMTPsForAddressWithPagination is a helper method to define mock.On call
- ctx types.Context
- mtpAddress types.AccAddress
- pagination *query.PageRequest
func (*PerpetualKeeper_Expecter) GetPool ¶ added in v0.48.0
func (_e *PerpetualKeeper_Expecter) GetPool(ctx interface{}, poolId interface{}) *PerpetualKeeper_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*PerpetualKeeper_Expecter) HandleCloseEstimation ¶ added in v0.48.0
func (_e *PerpetualKeeper_Expecter) HandleCloseEstimation(ctx interface{}, req interface{}) *PerpetualKeeper_HandleCloseEstimation_Call
HandleCloseEstimation is a helper method to define mock.On call
- ctx types.Context
- req *perpetualtypes.QueryCloseEstimationRequest
func (*PerpetualKeeper_Expecter) HandleOpenEstimation ¶ added in v0.48.0
func (_e *PerpetualKeeper_Expecter) HandleOpenEstimation(ctx interface{}, req interface{}) *PerpetualKeeper_HandleOpenEstimation_Call
HandleOpenEstimation is a helper method to define mock.On call
- ctx types.Context
- req *perpetualtypes.QueryOpenEstimationRequest
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_GetAssetPrice_Call ¶ added in v0.49.3
PerpetualKeeper_GetAssetPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetPrice'
func (*PerpetualKeeper_GetAssetPrice_Call) Return ¶ added in v0.49.3
func (_c *PerpetualKeeper_GetAssetPrice_Call) Return(_a0 math.LegacyDec, _a1 error) *PerpetualKeeper_GetAssetPrice_Call
func (*PerpetualKeeper_GetAssetPrice_Call) Run ¶ added in v0.49.3
func (_c *PerpetualKeeper_GetAssetPrice_Call) Run(run func(ctx types.Context, asset string)) *PerpetualKeeper_GetAssetPrice_Call
func (*PerpetualKeeper_GetAssetPrice_Call) RunAndReturn ¶ added in v0.49.3
func (_c *PerpetualKeeper_GetAssetPrice_Call) RunAndReturn(run func(types.Context, string) (math.LegacyDec, error)) *PerpetualKeeper_GetAssetPrice_Call
type PerpetualKeeper_GetMTP_Call ¶ added in v0.48.0
PerpetualKeeper_GetMTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMTP'
func (*PerpetualKeeper_GetMTP_Call) Return ¶ added in v0.48.0
func (_c *PerpetualKeeper_GetMTP_Call) Return(_a0 perpetualtypes.MTP, _a1 error) *PerpetualKeeper_GetMTP_Call
func (*PerpetualKeeper_GetMTP_Call) Run ¶ added in v0.48.0
func (_c *PerpetualKeeper_GetMTP_Call) Run(run func(ctx types.Context, mtpAddress types.AccAddress, id uint64)) *PerpetualKeeper_GetMTP_Call
func (*PerpetualKeeper_GetMTP_Call) RunAndReturn ¶ added in v0.48.0
func (_c *PerpetualKeeper_GetMTP_Call) RunAndReturn(run func(types.Context, types.AccAddress, uint64) (perpetualtypes.MTP, error)) *PerpetualKeeper_GetMTP_Call
type PerpetualKeeper_GetMTPsForAddressWithPagination_Call ¶ added in v0.49.4
PerpetualKeeper_GetMTPsForAddressWithPagination_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMTPsForAddressWithPagination'
func (*PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Return ¶ added in v0.49.4
func (_c *PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Return(_a0 []*perpetualtypes.MtpAndPrice, _a1 *query.PageResponse, _a2 error) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
func (*PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Run ¶ added in v0.49.4
func (_c *PerpetualKeeper_GetMTPsForAddressWithPagination_Call) Run(run func(ctx types.Context, mtpAddress types.AccAddress, pagination *query.PageRequest)) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
func (*PerpetualKeeper_GetMTPsForAddressWithPagination_Call) RunAndReturn ¶ added in v0.49.4
func (_c *PerpetualKeeper_GetMTPsForAddressWithPagination_Call) RunAndReturn(run func(types.Context, types.AccAddress, *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, error)) *PerpetualKeeper_GetMTPsForAddressWithPagination_Call
type PerpetualKeeper_GetPool_Call ¶ added in v0.48.0
PerpetualKeeper_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*PerpetualKeeper_GetPool_Call) Return ¶ added in v0.48.0
func (_c *PerpetualKeeper_GetPool_Call) Return(val perpetualtypes.Pool, found bool) *PerpetualKeeper_GetPool_Call
func (*PerpetualKeeper_GetPool_Call) Run ¶ added in v0.48.0
func (_c *PerpetualKeeper_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *PerpetualKeeper_GetPool_Call
func (*PerpetualKeeper_GetPool_Call) RunAndReturn ¶ added in v0.48.0
func (_c *PerpetualKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (perpetualtypes.Pool, bool)) *PerpetualKeeper_GetPool_Call
type PerpetualKeeper_HandleCloseEstimation_Call ¶ added in v0.48.0
PerpetualKeeper_HandleCloseEstimation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleCloseEstimation'
func (*PerpetualKeeper_HandleCloseEstimation_Call) Return ¶ added in v0.48.0
func (_c *PerpetualKeeper_HandleCloseEstimation_Call) Return(res *perpetualtypes.QueryCloseEstimationResponse, err error) *PerpetualKeeper_HandleCloseEstimation_Call
func (*PerpetualKeeper_HandleCloseEstimation_Call) Run ¶ added in v0.48.0
func (_c *PerpetualKeeper_HandleCloseEstimation_Call) Run(run func(ctx types.Context, req *perpetualtypes.QueryCloseEstimationRequest)) *PerpetualKeeper_HandleCloseEstimation_Call
func (*PerpetualKeeper_HandleCloseEstimation_Call) RunAndReturn ¶ added in v0.48.0
func (_c *PerpetualKeeper_HandleCloseEstimation_Call) RunAndReturn(run func(types.Context, *perpetualtypes.QueryCloseEstimationRequest) (*perpetualtypes.QueryCloseEstimationResponse, error)) *PerpetualKeeper_HandleCloseEstimation_Call
type PerpetualKeeper_HandleOpenEstimation_Call ¶ added in v0.48.0
PerpetualKeeper_HandleOpenEstimation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleOpenEstimation'
func (*PerpetualKeeper_HandleOpenEstimation_Call) Return ¶ added in v0.48.0
func (_c *PerpetualKeeper_HandleOpenEstimation_Call) Return(_a0 *perpetualtypes.QueryOpenEstimationResponse, _a1 error) *PerpetualKeeper_HandleOpenEstimation_Call
func (*PerpetualKeeper_HandleOpenEstimation_Call) Run ¶ added in v0.48.0
func (_c *PerpetualKeeper_HandleOpenEstimation_Call) Run(run func(ctx types.Context, req *perpetualtypes.QueryOpenEstimationRequest)) *PerpetualKeeper_HandleOpenEstimation_Call
func (*PerpetualKeeper_HandleOpenEstimation_Call) RunAndReturn ¶ added in v0.48.0
func (_c *PerpetualKeeper_HandleOpenEstimation_Call) RunAndReturn(run func(types.Context, *perpetualtypes.QueryOpenEstimationRequest) (*perpetualtypes.QueryOpenEstimationResponse, error)) *PerpetualKeeper_HandleOpenEstimation_Call
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, tiertypes.MembershipTier)
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 tiertypes.MembershipTier) *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, tiertypes.MembershipTier)) *TierKeeper_GetMembershipTier_Call