Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetLowestMakerFee(ctx sdk.Context) int32
- func (k Keeper) GetPerpetualFeeParams(ctx sdk.Context) (params types.PerpetualFeeParams)
- func (k Keeper) GetPerpetualFeePpm(ctx sdk.Context, address string, isTaker bool) int32
- func (k Keeper) HasAuthority(authority string) bool
- func (k Keeper) InitializeForGenesis(ctx sdk.Context)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PerpetualFeeParams(c context.Context, req *types.QueryPerpetualFeeParamsRequest) (*types.QueryPerpetualFeeParamsResponse, error)
- func (k Keeper) SetPerpetualFeeParams(ctx sdk.Context, params types.PerpetualFeeParams) error
- func (k Keeper) UserFeeTier(c context.Context, req *types.QueryUserFeeTierRequest) (*types.QueryUserFeeTierResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, statsKeeper types.StatsKeeper, storeKey storetypes.StoreKey, authorities []string, ) *Keeper
func (Keeper) GetLowestMakerFee ¶
GetLowestMakerFee returns the lowest maker fee among any tiers.
func (Keeper) GetPerpetualFeeParams ¶
func (k Keeper) GetPerpetualFeeParams( ctx sdk.Context, ) ( params types.PerpetualFeeParams, )
GetPerpetualFeeParams returns the PerpetualFeeParams in state.
func (Keeper) GetPerpetualFeePpm ¶
func (Keeper) HasAuthority ¶
func (Keeper) InitializeForGenesis ¶
func (Keeper) PerpetualFeeParams ¶
func (k Keeper) PerpetualFeeParams( c context.Context, req *types.QueryPerpetualFeeParamsRequest, ) ( *types.QueryPerpetualFeeParamsResponse, error, )
Params processes a query request/response for the Params from state.
func (Keeper) SetPerpetualFeeParams ¶
SetPerpetualFeeParams updates the PerpetualFeeParams in state. Returns an error iff validation fails.
func (Keeper) UserFeeTier ¶
func (k Keeper) UserFeeTier( c context.Context, req *types.QueryUserFeeTierRequest, ) ( *types.QueryUserFeeTierResponse, error, )
Click to show internal directories.
Click to hide internal directories.