types

package
v0.3.6-dev2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "feetiers"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
)

Variables

View Source
var (
	ErrNoTiersExist = errorsmod.Register(
		ModuleName,
		400,
		"Must have at least one fee tier",
	)
	ErrInvalidFirstTierRequirements = errorsmod.Register(
		ModuleName,
		401,
		"First fee tier must not have volume requirements",
	)
	ErrTiersOutOfOrder = errorsmod.Register(
		ModuleName,
		402,
		"Fee tiers must have ascending requirements",
	)
	ErrInvalidFee = errorsmod.Register(
		ModuleName,
		403,
		"No maker and taker fee combination should result in a net rebate",
	)
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	// The parameters for perpetual fees.
	Params PerpetualFeeParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the feetiers module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default feetiers genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() PerpetualFeeParams

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// UpdatePerpetualFeeParams updates the PerpetualFeeParams in state.
	UpdatePerpetualFeeParams(ctx context.Context, in *MsgUpdatePerpetualFeeParams, opts ...grpc.CallOption) (*MsgUpdatePerpetualFeeParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// UpdatePerpetualFeeParams updates the PerpetualFeeParams in state.
	UpdatePerpetualFeeParams(context.Context, *MsgUpdatePerpetualFeeParams) (*MsgUpdatePerpetualFeeParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdatePerpetualFeeParams

type MsgUpdatePerpetualFeeParams struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// Defines the parameters to update. All parameters must be supplied.
	Params PerpetualFeeParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdatePerpetualFeeParams is the Msg/UpdatePerpetualFeeParams request type.

func (*MsgUpdatePerpetualFeeParams) Descriptor

func (*MsgUpdatePerpetualFeeParams) Descriptor() ([]byte, []int)

func (*MsgUpdatePerpetualFeeParams) GetAuthority

func (m *MsgUpdatePerpetualFeeParams) GetAuthority() string

func (*MsgUpdatePerpetualFeeParams) GetParams

func (*MsgUpdatePerpetualFeeParams) GetSigners

func (msg *MsgUpdatePerpetualFeeParams) GetSigners() []sdk.AccAddress

func (*MsgUpdatePerpetualFeeParams) Marshal

func (m *MsgUpdatePerpetualFeeParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdatePerpetualFeeParams) MarshalTo

func (m *MsgUpdatePerpetualFeeParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualFeeParams) MarshalToSizedBuffer

func (m *MsgUpdatePerpetualFeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualFeeParams) ProtoMessage

func (*MsgUpdatePerpetualFeeParams) ProtoMessage()

func (*MsgUpdatePerpetualFeeParams) Reset

func (m *MsgUpdatePerpetualFeeParams) Reset()

func (*MsgUpdatePerpetualFeeParams) Size

func (m *MsgUpdatePerpetualFeeParams) Size() (n int)

func (*MsgUpdatePerpetualFeeParams) String

func (m *MsgUpdatePerpetualFeeParams) String() string

func (*MsgUpdatePerpetualFeeParams) Unmarshal

func (m *MsgUpdatePerpetualFeeParams) Unmarshal(dAtA []byte) error

func (*MsgUpdatePerpetualFeeParams) ValidateBasic

func (msg *MsgUpdatePerpetualFeeParams) ValidateBasic() error

func (*MsgUpdatePerpetualFeeParams) XXX_DiscardUnknown

func (m *MsgUpdatePerpetualFeeParams) XXX_DiscardUnknown()

func (*MsgUpdatePerpetualFeeParams) XXX_Marshal

func (m *MsgUpdatePerpetualFeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdatePerpetualFeeParams) XXX_Merge

func (m *MsgUpdatePerpetualFeeParams) XXX_Merge(src proto.Message)

func (*MsgUpdatePerpetualFeeParams) XXX_Size

func (m *MsgUpdatePerpetualFeeParams) XXX_Size() int

func (*MsgUpdatePerpetualFeeParams) XXX_Unmarshal

func (m *MsgUpdatePerpetualFeeParams) XXX_Unmarshal(b []byte) error

type MsgUpdatePerpetualFeeParamsResponse

type MsgUpdatePerpetualFeeParamsResponse struct {
}

MsgUpdatePerpetualFeeParamsResponse is the Msg/UpdatePerpetualFeeParams response type.

func (*MsgUpdatePerpetualFeeParamsResponse) Descriptor

func (*MsgUpdatePerpetualFeeParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdatePerpetualFeeParamsResponse) Marshal

func (m *MsgUpdatePerpetualFeeParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdatePerpetualFeeParamsResponse) MarshalTo

func (m *MsgUpdatePerpetualFeeParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualFeeParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdatePerpetualFeeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualFeeParamsResponse) ProtoMessage

func (*MsgUpdatePerpetualFeeParamsResponse) ProtoMessage()

func (*MsgUpdatePerpetualFeeParamsResponse) Reset

func (*MsgUpdatePerpetualFeeParamsResponse) Size

func (*MsgUpdatePerpetualFeeParamsResponse) String

func (*MsgUpdatePerpetualFeeParamsResponse) Unmarshal

func (m *MsgUpdatePerpetualFeeParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdatePerpetualFeeParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdatePerpetualFeeParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdatePerpetualFeeParamsResponse) XXX_Marshal

func (m *MsgUpdatePerpetualFeeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdatePerpetualFeeParamsResponse) XXX_Merge

func (*MsgUpdatePerpetualFeeParamsResponse) XXX_Size

func (*MsgUpdatePerpetualFeeParamsResponse) XXX_Unmarshal

func (m *MsgUpdatePerpetualFeeParamsResponse) XXX_Unmarshal(b []byte) error

type PerpetualFeeParams

type PerpetualFeeParams struct {
	// Sorted fee tiers (lowest requirements first).
	Tiers []*PerpetualFeeTier `protobuf:"bytes,1,rep,name=tiers,proto3" json:"tiers,omitempty"`
}

PerpetualFeeParams defines the parameters for perpetual fees.

func PromotionalParams

func PromotionalParams() PerpetualFeeParams

PromotionalParams returns the promotional feetiers params used by the network for the first ~120 days. The standard params are applied via a delayed message included in the genesis state.

func StandardParams

func StandardParams() PerpetualFeeParams

StandardParams returns the standard feetiers params for long-term operation of the network.

func (*PerpetualFeeParams) Descriptor

func (*PerpetualFeeParams) Descriptor() ([]byte, []int)

func (*PerpetualFeeParams) GetTiers

func (m *PerpetualFeeParams) GetTiers() []*PerpetualFeeTier

func (*PerpetualFeeParams) Marshal

func (m *PerpetualFeeParams) Marshal() (dAtA []byte, err error)

func (*PerpetualFeeParams) MarshalTo

func (m *PerpetualFeeParams) MarshalTo(dAtA []byte) (int, error)

func (*PerpetualFeeParams) MarshalToSizedBuffer

func (m *PerpetualFeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PerpetualFeeParams) ProtoMessage

func (*PerpetualFeeParams) ProtoMessage()

func (*PerpetualFeeParams) Reset

func (m *PerpetualFeeParams) Reset()

func (*PerpetualFeeParams) Size

func (m *PerpetualFeeParams) Size() (n int)

func (*PerpetualFeeParams) String

func (m *PerpetualFeeParams) String() string

func (*PerpetualFeeParams) Unmarshal

func (m *PerpetualFeeParams) Unmarshal(dAtA []byte) error

func (*PerpetualFeeParams) Validate

func (m *PerpetualFeeParams) Validate() error

func (*PerpetualFeeParams) XXX_DiscardUnknown

func (m *PerpetualFeeParams) XXX_DiscardUnknown()

func (*PerpetualFeeParams) XXX_Marshal

func (m *PerpetualFeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerpetualFeeParams) XXX_Merge

func (m *PerpetualFeeParams) XXX_Merge(src proto.Message)

func (*PerpetualFeeParams) XXX_Size

func (m *PerpetualFeeParams) XXX_Size() int

func (*PerpetualFeeParams) XXX_Unmarshal

func (m *PerpetualFeeParams) XXX_Unmarshal(b []byte) error

type PerpetualFeeTier

type PerpetualFeeTier struct {
	// Human-readable name of the tier, e.g. "Gold".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The trader's absolute volume requirement in quote quantums.
	AbsoluteVolumeRequirement uint64 `` /* 139-byte string literal not displayed */
	// The total volume share requirement.
	TotalVolumeShareRequirementPpm uint32 `` /* 158-byte string literal not displayed */
	// The maker volume share requirement.
	MakerVolumeShareRequirementPpm uint32 `` /* 158-byte string literal not displayed */
	// The maker fee once this tier is reached.
	MakerFeePpm int32 `protobuf:"zigzag32,5,opt,name=maker_fee_ppm,json=makerFeePpm,proto3" json:"maker_fee_ppm,omitempty"`
	// The taker fee once this tier is reached.
	TakerFeePpm int32 `protobuf:"zigzag32,6,opt,name=taker_fee_ppm,json=takerFeePpm,proto3" json:"taker_fee_ppm,omitempty"`
}

A fee tier for perpetuals

func (*PerpetualFeeTier) Descriptor

func (*PerpetualFeeTier) Descriptor() ([]byte, []int)

func (*PerpetualFeeTier) GetAbsoluteVolumeRequirement

func (m *PerpetualFeeTier) GetAbsoluteVolumeRequirement() uint64

func (*PerpetualFeeTier) GetMakerFeePpm

func (m *PerpetualFeeTier) GetMakerFeePpm() int32

func (*PerpetualFeeTier) GetMakerVolumeShareRequirementPpm

func (m *PerpetualFeeTier) GetMakerVolumeShareRequirementPpm() uint32

func (*PerpetualFeeTier) GetName

func (m *PerpetualFeeTier) GetName() string

func (*PerpetualFeeTier) GetTakerFeePpm

func (m *PerpetualFeeTier) GetTakerFeePpm() int32

func (*PerpetualFeeTier) GetTotalVolumeShareRequirementPpm

func (m *PerpetualFeeTier) GetTotalVolumeShareRequirementPpm() uint32

func (*PerpetualFeeTier) Marshal

func (m *PerpetualFeeTier) Marshal() (dAtA []byte, err error)

func (*PerpetualFeeTier) MarshalTo

func (m *PerpetualFeeTier) MarshalTo(dAtA []byte) (int, error)

func (*PerpetualFeeTier) MarshalToSizedBuffer

func (m *PerpetualFeeTier) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PerpetualFeeTier) ProtoMessage

func (*PerpetualFeeTier) ProtoMessage()

func (*PerpetualFeeTier) Reset

func (m *PerpetualFeeTier) Reset()

func (*PerpetualFeeTier) Size

func (m *PerpetualFeeTier) Size() (n int)

func (*PerpetualFeeTier) String

func (m *PerpetualFeeTier) String() string

func (*PerpetualFeeTier) Unmarshal

func (m *PerpetualFeeTier) Unmarshal(dAtA []byte) error

func (*PerpetualFeeTier) XXX_DiscardUnknown

func (m *PerpetualFeeTier) XXX_DiscardUnknown()

func (*PerpetualFeeTier) XXX_Marshal

func (m *PerpetualFeeTier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerpetualFeeTier) XXX_Merge

func (m *PerpetualFeeTier) XXX_Merge(src proto.Message)

func (*PerpetualFeeTier) XXX_Size

func (m *PerpetualFeeTier) XXX_Size() int

func (*PerpetualFeeTier) XXX_Unmarshal

func (m *PerpetualFeeTier) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Queries the PerpetualFeeParams.
	PerpetualFeeParams(ctx context.Context, in *QueryPerpetualFeeParamsRequest, opts ...grpc.CallOption) (*QueryPerpetualFeeParamsResponse, error)
	// Queries a user's fee tier
	UserFeeTier(ctx context.Context, in *QueryUserFeeTierRequest, opts ...grpc.CallOption) (*QueryUserFeeTierResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryPerpetualFeeParamsRequest

type QueryPerpetualFeeParamsRequest struct {
}

QueryPerpetualFeeParamsRequest is a request type for the PerpetualFeeParams RPC method.

func (*QueryPerpetualFeeParamsRequest) Descriptor

func (*QueryPerpetualFeeParamsRequest) Descriptor() ([]byte, []int)

func (*QueryPerpetualFeeParamsRequest) Marshal

func (m *QueryPerpetualFeeParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryPerpetualFeeParamsRequest) MarshalTo

func (m *QueryPerpetualFeeParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPerpetualFeeParamsRequest) MarshalToSizedBuffer

func (m *QueryPerpetualFeeParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPerpetualFeeParamsRequest) ProtoMessage

func (*QueryPerpetualFeeParamsRequest) ProtoMessage()

func (*QueryPerpetualFeeParamsRequest) Reset

func (m *QueryPerpetualFeeParamsRequest) Reset()

func (*QueryPerpetualFeeParamsRequest) Size

func (m *QueryPerpetualFeeParamsRequest) Size() (n int)

func (*QueryPerpetualFeeParamsRequest) String

func (*QueryPerpetualFeeParamsRequest) Unmarshal

func (m *QueryPerpetualFeeParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryPerpetualFeeParamsRequest) XXX_DiscardUnknown

func (m *QueryPerpetualFeeParamsRequest) XXX_DiscardUnknown()

func (*QueryPerpetualFeeParamsRequest) XXX_Marshal

func (m *QueryPerpetualFeeParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPerpetualFeeParamsRequest) XXX_Merge

func (m *QueryPerpetualFeeParamsRequest) XXX_Merge(src proto.Message)

func (*QueryPerpetualFeeParamsRequest) XXX_Size

func (m *QueryPerpetualFeeParamsRequest) XXX_Size() int

func (*QueryPerpetualFeeParamsRequest) XXX_Unmarshal

func (m *QueryPerpetualFeeParamsRequest) XXX_Unmarshal(b []byte) error

type QueryPerpetualFeeParamsResponse

type QueryPerpetualFeeParamsResponse struct {
	Params PerpetualFeeParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryPerpetualFeeParamsResponse is a response type for the PerpetualFeeParams RPC method.

func (*QueryPerpetualFeeParamsResponse) Descriptor

func (*QueryPerpetualFeeParamsResponse) Descriptor() ([]byte, []int)

func (*QueryPerpetualFeeParamsResponse) GetParams

func (*QueryPerpetualFeeParamsResponse) Marshal

func (m *QueryPerpetualFeeParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryPerpetualFeeParamsResponse) MarshalTo

func (m *QueryPerpetualFeeParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPerpetualFeeParamsResponse) MarshalToSizedBuffer

func (m *QueryPerpetualFeeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPerpetualFeeParamsResponse) ProtoMessage

func (*QueryPerpetualFeeParamsResponse) ProtoMessage()

func (*QueryPerpetualFeeParamsResponse) Reset

func (*QueryPerpetualFeeParamsResponse) Size

func (m *QueryPerpetualFeeParamsResponse) Size() (n int)

func (*QueryPerpetualFeeParamsResponse) String

func (*QueryPerpetualFeeParamsResponse) Unmarshal

func (m *QueryPerpetualFeeParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryPerpetualFeeParamsResponse) XXX_DiscardUnknown

func (m *QueryPerpetualFeeParamsResponse) XXX_DiscardUnknown()

func (*QueryPerpetualFeeParamsResponse) XXX_Marshal

func (m *QueryPerpetualFeeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPerpetualFeeParamsResponse) XXX_Merge

func (m *QueryPerpetualFeeParamsResponse) XXX_Merge(src proto.Message)

func (*QueryPerpetualFeeParamsResponse) XXX_Size

func (m *QueryPerpetualFeeParamsResponse) XXX_Size() int

func (*QueryPerpetualFeeParamsResponse) XXX_Unmarshal

func (m *QueryPerpetualFeeParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Queries the PerpetualFeeParams.
	PerpetualFeeParams(context.Context, *QueryPerpetualFeeParamsRequest) (*QueryPerpetualFeeParamsResponse, error)
	// Queries a user's fee tier
	UserFeeTier(context.Context, *QueryUserFeeTierRequest) (*QueryUserFeeTierResponse, error)
}

QueryServer is the server API for Query service.

type QueryUserFeeTierRequest

type QueryUserFeeTierRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

QueryUserFeeTierRequest is a request type for the UserFeeTier RPC method.

func (*QueryUserFeeTierRequest) Descriptor

func (*QueryUserFeeTierRequest) Descriptor() ([]byte, []int)

func (*QueryUserFeeTierRequest) GetUser

func (m *QueryUserFeeTierRequest) GetUser() string

func (*QueryUserFeeTierRequest) Marshal

func (m *QueryUserFeeTierRequest) Marshal() (dAtA []byte, err error)

func (*QueryUserFeeTierRequest) MarshalTo

func (m *QueryUserFeeTierRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryUserFeeTierRequest) MarshalToSizedBuffer

func (m *QueryUserFeeTierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUserFeeTierRequest) ProtoMessage

func (*QueryUserFeeTierRequest) ProtoMessage()

func (*QueryUserFeeTierRequest) Reset

func (m *QueryUserFeeTierRequest) Reset()

func (*QueryUserFeeTierRequest) Size

func (m *QueryUserFeeTierRequest) Size() (n int)

func (*QueryUserFeeTierRequest) String

func (m *QueryUserFeeTierRequest) String() string

func (*QueryUserFeeTierRequest) Unmarshal

func (m *QueryUserFeeTierRequest) Unmarshal(dAtA []byte) error

func (*QueryUserFeeTierRequest) XXX_DiscardUnknown

func (m *QueryUserFeeTierRequest) XXX_DiscardUnknown()

func (*QueryUserFeeTierRequest) XXX_Marshal

func (m *QueryUserFeeTierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUserFeeTierRequest) XXX_Merge

func (m *QueryUserFeeTierRequest) XXX_Merge(src proto.Message)

func (*QueryUserFeeTierRequest) XXX_Size

func (m *QueryUserFeeTierRequest) XXX_Size() int

func (*QueryUserFeeTierRequest) XXX_Unmarshal

func (m *QueryUserFeeTierRequest) XXX_Unmarshal(b []byte) error

type QueryUserFeeTierResponse

type QueryUserFeeTierResponse struct {
	// Index of the fee tier in the list queried from PerpetualFeeParams.
	Index uint32            `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Tier  *PerpetualFeeTier `protobuf:"bytes,2,opt,name=tier,proto3" json:"tier,omitempty"`
}

QueryUserFeeTierResponse is a request type for the UserFeeTier RPC method.

func (*QueryUserFeeTierResponse) Descriptor

func (*QueryUserFeeTierResponse) Descriptor() ([]byte, []int)

func (*QueryUserFeeTierResponse) GetIndex

func (m *QueryUserFeeTierResponse) GetIndex() uint32

func (*QueryUserFeeTierResponse) GetTier

func (*QueryUserFeeTierResponse) Marshal

func (m *QueryUserFeeTierResponse) Marshal() (dAtA []byte, err error)

func (*QueryUserFeeTierResponse) MarshalTo

func (m *QueryUserFeeTierResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryUserFeeTierResponse) MarshalToSizedBuffer

func (m *QueryUserFeeTierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUserFeeTierResponse) ProtoMessage

func (*QueryUserFeeTierResponse) ProtoMessage()

func (*QueryUserFeeTierResponse) Reset

func (m *QueryUserFeeTierResponse) Reset()

func (*QueryUserFeeTierResponse) Size

func (m *QueryUserFeeTierResponse) Size() (n int)

func (*QueryUserFeeTierResponse) String

func (m *QueryUserFeeTierResponse) String() string

func (*QueryUserFeeTierResponse) Unmarshal

func (m *QueryUserFeeTierResponse) Unmarshal(dAtA []byte) error

func (*QueryUserFeeTierResponse) XXX_DiscardUnknown

func (m *QueryUserFeeTierResponse) XXX_DiscardUnknown()

func (*QueryUserFeeTierResponse) XXX_Marshal

func (m *QueryUserFeeTierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUserFeeTierResponse) XXX_Merge

func (m *QueryUserFeeTierResponse) XXX_Merge(src proto.Message)

func (*QueryUserFeeTierResponse) XXX_Size

func (m *QueryUserFeeTierResponse) XXX_Size() int

func (*QueryUserFeeTierResponse) XXX_Unmarshal

func (m *QueryUserFeeTierResponse) XXX_Unmarshal(b []byte) error

type StatsKeeper

type StatsKeeper interface {
	GetUserStats(ctx sdk.Context, address string) *types.UserStats
	GetGlobalStats(ctx sdk.Context) *types.GlobalStats
}

StatsKeeper defines the expected stats keeper

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdatePerpetualFeeParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) PerpetualFeeParams

func (*UnimplementedQueryServer) UserFeeTier

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL