Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DecodeUint64Slice(bz []byte) ([]uint64, error)
- func EmitClosePerpetualOrderEvent(ctx sdk.Context, order PerpetualOrder)
- func EmitCloseSpotOrderEvent(ctx sdk.Context, order SpotOrder)
- func EncodeUint64Slice(slice []uint64) []byte
- func GenPerpKey(order PerpetualOrder) (string, error)
- func GenSpotKey(order SpotOrder) (string, error)
- func GetUint64Bytes(ID uint64) []byte
- func GetUint64FromBytes(bz []byte) uint64
- func KeyPrefix(p string) []byte
- func NewClosePerpetualOrderEvt(order PerpetualOrder) sdk.Event
- func NewCloseSpotOrderEvt(order SpotOrder) sdk.Event
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AmmKeeper
- type BankKeeper
- type Date
- func (*Date) Descriptor() ([]byte, []int)
- func (m *Date) GetHeight() uint64
- func (m *Date) GetTimestamp() uint64
- func (m *Date) Marshal() (dAtA []byte, err error)
- func (m *Date) MarshalTo(dAtA []byte) (int, error)
- func (m *Date) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Date) ProtoMessage()
- func (m *Date) Reset()
- func (m *Date) Size() (n int)
- func (m *Date) String() string
- func (m *Date) Unmarshal(dAtA []byte) error
- func (m *Date) XXX_DiscardUnknown()
- func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Date) XXX_Merge(src proto.Message)
- func (m *Date) XXX_Size() int
- func (m *Date) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPendingPerpetualOrderCount() uint64
- func (m *GenesisState) GetPendingPerpetualOrderList() []PerpetualOrder
- func (m *GenesisState) GetPendingSpotOrderCount() uint64
- func (m *GenesisState) GetPendingSpotOrderList() []SpotOrder
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type LegacyPerpetualOrder
- func (*LegacyPerpetualOrder) Descriptor() ([]byte, []int)
- func (m *LegacyPerpetualOrder) GetCollateral() types.Coin
- func (m *LegacyPerpetualOrder) GetOrderId() uint64
- func (m *LegacyPerpetualOrder) GetOwnerAddress() string
- func (m *LegacyPerpetualOrder) GetPerpetualOrderType() PerpetualOrderType
- func (m *LegacyPerpetualOrder) GetPosition() PerpetualPosition
- func (m *LegacyPerpetualOrder) GetPositionId() uint64
- func (m *LegacyPerpetualOrder) GetStatus() Status
- func (m *LegacyPerpetualOrder) GetTradingAsset() string
- func (m *LegacyPerpetualOrder) GetTriggerPrice() *OrderPrice
- func (m *LegacyPerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *LegacyPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *LegacyPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LegacyPerpetualOrder) ProtoMessage()
- func (m *LegacyPerpetualOrder) Reset()
- func (m *LegacyPerpetualOrder) Size() (n int)
- func (m *LegacyPerpetualOrder) String() string
- func (m *LegacyPerpetualOrder) Unmarshal(dAtA []byte) error
- func (m *LegacyPerpetualOrder) XXX_DiscardUnknown()
- func (m *LegacyPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LegacyPerpetualOrder) XXX_Merge(src proto.Message)
- func (m *LegacyPerpetualOrder) XXX_Size() int
- func (m *LegacyPerpetualOrder) XXX_Unmarshal(b []byte) error
- type MsgCancelPerpetualOrders
- func (*MsgCancelPerpetualOrders) Descriptor() ([]byte, []int)
- func (m *MsgCancelPerpetualOrders) GetOrderIds() []uint64
- func (m *MsgCancelPerpetualOrders) GetOwnerAddress() string
- func (msg *MsgCancelPerpetualOrders) GetSignBytes() []byte
- func (msg *MsgCancelPerpetualOrders) GetSigners() []sdk.AccAddress
- func (m *MsgCancelPerpetualOrders) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelPerpetualOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelPerpetualOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelPerpetualOrders) ProtoMessage()
- func (m *MsgCancelPerpetualOrders) Reset()
- func (msg *MsgCancelPerpetualOrders) Route() string
- func (m *MsgCancelPerpetualOrders) Size() (n int)
- func (m *MsgCancelPerpetualOrders) String() string
- func (msg *MsgCancelPerpetualOrders) Type() string
- func (m *MsgCancelPerpetualOrders) Unmarshal(dAtA []byte) error
- func (msg *MsgCancelPerpetualOrders) ValidateBasic() error
- func (m *MsgCancelPerpetualOrders) XXX_DiscardUnknown()
- func (m *MsgCancelPerpetualOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelPerpetualOrders) XXX_Merge(src proto.Message)
- func (m *MsgCancelPerpetualOrders) XXX_Size() int
- func (m *MsgCancelPerpetualOrders) XXX_Unmarshal(b []byte) error
- type MsgCancelPerpetualOrdersResponse
- func (*MsgCancelPerpetualOrdersResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelPerpetualOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelPerpetualOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelPerpetualOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelPerpetualOrdersResponse) ProtoMessage()
- func (m *MsgCancelPerpetualOrdersResponse) Reset()
- func (m *MsgCancelPerpetualOrdersResponse) Size() (n int)
- func (m *MsgCancelPerpetualOrdersResponse) String() string
- func (m *MsgCancelPerpetualOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelPerpetualOrdersResponse) XXX_DiscardUnknown()
- func (m *MsgCancelPerpetualOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelPerpetualOrdersResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelPerpetualOrdersResponse) XXX_Size() int
- func (m *MsgCancelPerpetualOrdersResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelSpotOrders
- func (*MsgCancelSpotOrders) Descriptor() ([]byte, []int)
- func (m *MsgCancelSpotOrders) GetCreator() string
- func (msg *MsgCancelSpotOrders) GetSignBytes() []byte
- func (msg *MsgCancelSpotOrders) GetSigners() []sdk.AccAddress
- func (m *MsgCancelSpotOrders) GetSpotOrderIds() []uint64
- func (m *MsgCancelSpotOrders) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelSpotOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelSpotOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelSpotOrders) ProtoMessage()
- func (m *MsgCancelSpotOrders) Reset()
- func (msg *MsgCancelSpotOrders) Route() string
- func (m *MsgCancelSpotOrders) Size() (n int)
- func (m *MsgCancelSpotOrders) String() string
- func (msg *MsgCancelSpotOrders) Type() string
- func (m *MsgCancelSpotOrders) Unmarshal(dAtA []byte) error
- func (msg *MsgCancelSpotOrders) ValidateBasic() error
- func (m *MsgCancelSpotOrders) XXX_DiscardUnknown()
- func (m *MsgCancelSpotOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelSpotOrders) XXX_Merge(src proto.Message)
- func (m *MsgCancelSpotOrders) XXX_Size() int
- func (m *MsgCancelSpotOrders) XXX_Unmarshal(b []byte) error
- type MsgCancelSpotOrdersResponse
- func (*MsgCancelSpotOrdersResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelSpotOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelSpotOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelSpotOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelSpotOrdersResponse) ProtoMessage()
- func (m *MsgCancelSpotOrdersResponse) Reset()
- func (m *MsgCancelSpotOrdersResponse) Size() (n int)
- func (m *MsgCancelSpotOrdersResponse) String() string
- func (m *MsgCancelSpotOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelSpotOrdersResponse) XXX_DiscardUnknown()
- func (m *MsgCancelSpotOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelSpotOrdersResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelSpotOrdersResponse) XXX_Size() int
- func (m *MsgCancelSpotOrdersResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePendingPerpetualOrder
- func (*MsgCreatePendingPerpetualOrder) Descriptor() ([]byte, []int)
- func (m *MsgCreatePendingPerpetualOrder) GetCollateral() types.Coin
- func (m *MsgCreatePendingPerpetualOrder) GetOrderType() PerpetualOrderType
- func (m *MsgCreatePendingPerpetualOrder) GetOwnerAddress() string
- func (m *MsgCreatePendingPerpetualOrder) GetPosition() PerpetualPosition
- func (msg *MsgCreatePendingPerpetualOrder) GetSignBytes() []byte
- func (msg *MsgCreatePendingPerpetualOrder) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePendingPerpetualOrder) GetTradingAsset() string
- func (m *MsgCreatePendingPerpetualOrder) GetTriggerPrice() *OrderPrice
- func (m *MsgCreatePendingPerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePendingPerpetualOrder) ProtoMessage()
- func (m *MsgCreatePendingPerpetualOrder) Reset()
- func (msg *MsgCreatePendingPerpetualOrder) Route() string
- func (m *MsgCreatePendingPerpetualOrder) Size() (n int)
- func (m *MsgCreatePendingPerpetualOrder) String() string
- func (msg *MsgCreatePendingPerpetualOrder) Type() string
- func (m *MsgCreatePendingPerpetualOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePendingPerpetualOrder) ValidateBasic() error
- func (m *MsgCreatePendingPerpetualOrder) XXX_DiscardUnknown()
- func (m *MsgCreatePendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePendingPerpetualOrder) XXX_Merge(src proto.Message)
- func (m *MsgCreatePendingPerpetualOrder) XXX_Size() int
- func (m *MsgCreatePendingPerpetualOrder) XXX_Unmarshal(b []byte) error
- type MsgCreatePendingPerpetualOrderResponse
- func (*MsgCreatePendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePendingPerpetualOrderResponse) GetOrderId() uint64
- func (m *MsgCreatePendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePendingPerpetualOrderResponse) ProtoMessage()
- func (m *MsgCreatePendingPerpetualOrderResponse) Reset()
- func (m *MsgCreatePendingPerpetualOrderResponse) Size() (n int)
- func (m *MsgCreatePendingPerpetualOrderResponse) String() string
- func (m *MsgCreatePendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePendingPerpetualOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Size() int
- func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePendingSpotOrder
- func (*MsgCreatePendingSpotOrder) Descriptor() ([]byte, []int)
- func (m *MsgCreatePendingSpotOrder) GetOrderAmount() *types.Coin
- func (m *MsgCreatePendingSpotOrder) GetOrderPrice() *OrderPrice
- func (m *MsgCreatePendingSpotOrder) GetOrderTargetDenom() string
- func (m *MsgCreatePendingSpotOrder) GetOrderType() SpotOrderType
- func (m *MsgCreatePendingSpotOrder) GetOwnerAddress() string
- func (msg *MsgCreatePendingSpotOrder) GetSignBytes() []byte
- func (msg *MsgCreatePendingSpotOrder) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePendingSpotOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePendingSpotOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePendingSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePendingSpotOrder) ProtoMessage()
- func (m *MsgCreatePendingSpotOrder) Reset()
- func (msg *MsgCreatePendingSpotOrder) Route() string
- func (m *MsgCreatePendingSpotOrder) Size() (n int)
- func (m *MsgCreatePendingSpotOrder) String() string
- func (msg *MsgCreatePendingSpotOrder) Type() string
- func (m *MsgCreatePendingSpotOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePendingSpotOrder) ValidateBasic() error
- func (m *MsgCreatePendingSpotOrder) XXX_DiscardUnknown()
- func (m *MsgCreatePendingSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePendingSpotOrder) XXX_Merge(src proto.Message)
- func (m *MsgCreatePendingSpotOrder) XXX_Size() int
- func (m *MsgCreatePendingSpotOrder) XXX_Unmarshal(b []byte) error
- type MsgCreatePendingSpotOrderResponse
- func (*MsgCreatePendingSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePendingSpotOrderResponse) GetOrderId() uint64
- func (m *MsgCreatePendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePendingSpotOrderResponse) ProtoMessage()
- func (m *MsgCreatePendingSpotOrderResponse) Reset()
- func (m *MsgCreatePendingSpotOrderResponse) Size() (n int)
- func (m *MsgCreatePendingSpotOrderResponse) String() string
- func (m *MsgCreatePendingSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePendingSpotOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePendingSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePendingSpotOrderResponse) XXX_Size() int
- func (m *MsgCreatePendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgExecuteOrders
- func (*MsgExecuteOrders) Descriptor() ([]byte, []int)
- func (m *MsgExecuteOrders) GetCreator() string
- func (m *MsgExecuteOrders) GetPerpetualOrderIds() []uint64
- func (msg *MsgExecuteOrders) GetSignBytes() []byte
- func (msg *MsgExecuteOrders) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteOrders) GetSpotOrderIds() []uint64
- func (m *MsgExecuteOrders) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteOrders) ProtoMessage()
- func (m *MsgExecuteOrders) Reset()
- func (msg *MsgExecuteOrders) Route() string
- func (m *MsgExecuteOrders) Size() (n int)
- func (m *MsgExecuteOrders) String() string
- func (msg *MsgExecuteOrders) Type() string
- func (m *MsgExecuteOrders) Unmarshal(dAtA []byte) error
- func (msg *MsgExecuteOrders) ValidateBasic() error
- func (m *MsgExecuteOrders) XXX_DiscardUnknown()
- func (m *MsgExecuteOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteOrders) XXX_Merge(src proto.Message)
- func (m *MsgExecuteOrders) XXX_Size() int
- func (m *MsgExecuteOrders) XXX_Unmarshal(b []byte) error
- type MsgExecuteOrdersResponse
- func (*MsgExecuteOrdersResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteOrdersResponse) ProtoMessage()
- func (m *MsgExecuteOrdersResponse) Reset()
- func (m *MsgExecuteOrdersResponse) Size() (n int)
- func (m *MsgExecuteOrdersResponse) String() string
- func (m *MsgExecuteOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteOrdersResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteOrdersResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteOrdersResponse) XXX_Size() int
- func (m *MsgExecuteOrdersResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() *Params
- func (msg *MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdatePendingPerpetualOrder
- func (*MsgUpdatePendingPerpetualOrder) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePendingPerpetualOrder) GetOrderId() uint64
- func (m *MsgUpdatePendingPerpetualOrder) GetOrderPrice() *OrderPrice
- func (m *MsgUpdatePendingPerpetualOrder) GetOwnerAddress() string
- func (msg *MsgUpdatePendingPerpetualOrder) GetSignBytes() []byte
- func (msg *MsgUpdatePendingPerpetualOrder) GetSigners() []sdk.AccAddress
- func (m *MsgUpdatePendingPerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePendingPerpetualOrder) ProtoMessage()
- func (m *MsgUpdatePendingPerpetualOrder) Reset()
- func (msg *MsgUpdatePendingPerpetualOrder) Route() string
- func (m *MsgUpdatePendingPerpetualOrder) Size() (n int)
- func (m *MsgUpdatePendingPerpetualOrder) String() string
- func (msg *MsgUpdatePendingPerpetualOrder) Type() string
- func (m *MsgUpdatePendingPerpetualOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdatePendingPerpetualOrder) ValidateBasic() error
- func (m *MsgUpdatePendingPerpetualOrder) XXX_DiscardUnknown()
- func (m *MsgUpdatePendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePendingPerpetualOrder) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePendingPerpetualOrder) XXX_Size() int
- func (m *MsgUpdatePendingPerpetualOrder) XXX_Unmarshal(b []byte) error
- type MsgUpdatePendingPerpetualOrderResponse
- func (*MsgUpdatePendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePendingPerpetualOrderResponse) ProtoMessage()
- func (m *MsgUpdatePendingPerpetualOrderResponse) Reset()
- func (m *MsgUpdatePendingPerpetualOrderResponse) Size() (n int)
- func (m *MsgUpdatePendingPerpetualOrderResponse) String() string
- func (m *MsgUpdatePendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_DiscardUnknown()
- func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Size() int
- func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdatePendingSpotOrder
- func (*MsgUpdatePendingSpotOrder) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePendingSpotOrder) GetOrderId() uint64
- func (m *MsgUpdatePendingSpotOrder) GetOrderPrice() *OrderPrice
- func (m *MsgUpdatePendingSpotOrder) GetOwnerAddress() string
- func (msg *MsgUpdatePendingSpotOrder) GetSignBytes() []byte
- func (msg *MsgUpdatePendingSpotOrder) GetSigners() []sdk.AccAddress
- func (m *MsgUpdatePendingSpotOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePendingSpotOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePendingSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePendingSpotOrder) ProtoMessage()
- func (m *MsgUpdatePendingSpotOrder) Reset()
- func (msg *MsgUpdatePendingSpotOrder) Route() string
- func (m *MsgUpdatePendingSpotOrder) Size() (n int)
- func (m *MsgUpdatePendingSpotOrder) String() string
- func (msg *MsgUpdatePendingSpotOrder) Type() string
- func (m *MsgUpdatePendingSpotOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdatePendingSpotOrder) ValidateBasic() error
- func (m *MsgUpdatePendingSpotOrder) XXX_DiscardUnknown()
- func (m *MsgUpdatePendingSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePendingSpotOrder) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePendingSpotOrder) XXX_Size() int
- func (m *MsgUpdatePendingSpotOrder) XXX_Unmarshal(b []byte) error
- type MsgUpdatePendingSpotOrderResponse
- func (*MsgUpdatePendingSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePendingSpotOrderResponse) ProtoMessage()
- func (m *MsgUpdatePendingSpotOrderResponse) Reset()
- func (m *MsgUpdatePendingSpotOrderResponse) Size() (n int)
- func (m *MsgUpdatePendingSpotOrderResponse) String() string
- func (m *MsgUpdatePendingSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdatePendingSpotOrderResponse) XXX_DiscardUnknown()
- func (m *MsgUpdatePendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePendingSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePendingSpotOrderResponse) XXX_Size() int
- func (m *MsgUpdatePendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateStopLossResponse
- func (*MsgUpdateStopLossResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateStopLossResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateStopLossResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateStopLossResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateStopLossResponse) ProtoMessage()
- func (m *MsgUpdateStopLossResponse) Reset()
- func (m *MsgUpdateStopLossResponse) Size() (n int)
- func (m *MsgUpdateStopLossResponse) String() string
- func (m *MsgUpdateStopLossResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateStopLossResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateStopLossResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateStopLossResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateStopLossResponse) XXX_Size() int
- func (m *MsgUpdateStopLossResponse) XXX_Unmarshal(b []byte) error
- type OrderPrice
- func (*OrderPrice) Descriptor() ([]byte, []int)
- func (m *OrderPrice) GetBaseDenom() string
- func (m *OrderPrice) GetQuoteDenom() string
- func (m *OrderPrice) Marshal() (dAtA []byte, err error)
- func (m *OrderPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderPrice) ProtoMessage()
- func (m *OrderPrice) Reset()
- func (m *OrderPrice) Size() (n int)
- func (m *OrderPrice) String() string
- func (m *OrderPrice) Unmarshal(dAtA []byte) error
- func (m *OrderPrice) XXX_DiscardUnknown()
- func (m *OrderPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderPrice) XXX_Merge(src proto.Message)
- func (m *OrderPrice) XXX_Size() int
- func (m *OrderPrice) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetLeverageEnabled() bool
- func (m *Params) GetLimitProcessOrder() uint64
- func (m *Params) GetMarketOrderEnabled() bool
- func (m *Params) GetPerpetualEnabled() bool
- func (m *Params) GetProcessOrdersEnabled() bool
- func (m *Params) GetRewardEnabled() bool
- func (m *Params) GetStakeEnabled() bool
- func (m *Params) GetSwapEnabled() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PendingPerpetualOrder
- func (*PendingPerpetualOrder) Descriptor() ([]byte, []int)
- func (m *PendingPerpetualOrder) GetCreator() string
- func (m *PendingPerpetualOrder) GetId() uint64
- func (m *PendingPerpetualOrder) GetOrder() string
- func (m *PendingPerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *PendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *PendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PendingPerpetualOrder) ProtoMessage()
- func (m *PendingPerpetualOrder) Reset()
- func (m *PendingPerpetualOrder) Size() (n int)
- func (m *PendingPerpetualOrder) String() string
- func (m *PendingPerpetualOrder) Unmarshal(dAtA []byte) error
- func (m *PendingPerpetualOrder) XXX_DiscardUnknown()
- func (m *PendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PendingPerpetualOrder) XXX_Merge(src proto.Message)
- func (m *PendingPerpetualOrder) XXX_Size() int
- func (m *PendingPerpetualOrder) XXX_Unmarshal(b []byte) error
- type PerpetualKeeper
- type PerpetualOrder
- func (*PerpetualOrder) Descriptor() ([]byte, []int)
- func (m *PerpetualOrder) GetCollateral() types.Coin
- func (m *PerpetualOrder) GetOrderId() uint64
- func (m *PerpetualOrder) GetOwnerAddress() string
- func (m *PerpetualOrder) GetPerpetualOrderType() PerpetualOrderType
- func (m *PerpetualOrder) GetPosition() PerpetualPosition
- func (m *PerpetualOrder) GetPositionId() uint64
- func (m *PerpetualOrder) GetPositionSize() types.Coin
- func (m *PerpetualOrder) GetStatus() Status
- func (m *PerpetualOrder) GetTradingAsset() string
- func (m *PerpetualOrder) GetTriggerPrice() *OrderPrice
- func (m *PerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *PerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *PerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PerpetualOrder) ProtoMessage()
- func (m *PerpetualOrder) Reset()
- func (m *PerpetualOrder) Size() (n int)
- func (m *PerpetualOrder) String() string
- func (m *PerpetualOrder) Unmarshal(dAtA []byte) error
- func (m *PerpetualOrder) XXX_DiscardUnknown()
- func (m *PerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PerpetualOrder) XXX_Merge(src proto.Message)
- func (m *PerpetualOrder) XXX_Size() int
- func (m *PerpetualOrder) XXX_Unmarshal(b []byte) error
- type PerpetualOrderType
- type PerpetualPosition
- type QueryAllPendingPerpetualOrderRequest
- func (*QueryAllPendingPerpetualOrderRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllPendingPerpetualOrderRequest) GetPagination() *query.PageRequest
- func (m *QueryAllPendingPerpetualOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPendingPerpetualOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPendingPerpetualOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPendingPerpetualOrderRequest) ProtoMessage()
- func (m *QueryAllPendingPerpetualOrderRequest) Reset()
- func (m *QueryAllPendingPerpetualOrderRequest) Size() (n int)
- func (m *QueryAllPendingPerpetualOrderRequest) String() string
- func (m *QueryAllPendingPerpetualOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllPendingPerpetualOrderRequest) XXX_DiscardUnknown()
- func (m *QueryAllPendingPerpetualOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPendingPerpetualOrderRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllPendingPerpetualOrderRequest) XXX_Size() int
- func (m *QueryAllPendingPerpetualOrderRequest) XXX_Unmarshal(b []byte) error
- type QueryAllPendingPerpetualOrderResponse
- func (*QueryAllPendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllPendingPerpetualOrderResponse) GetPagination() *query.PageResponse
- func (m *QueryAllPendingPerpetualOrderResponse) GetPendingPerpetualOrder() []PerpetualOrder
- func (m *QueryAllPendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPendingPerpetualOrderResponse) ProtoMessage()
- func (m *QueryAllPendingPerpetualOrderResponse) Reset()
- func (m *QueryAllPendingPerpetualOrderResponse) Size() (n int)
- func (m *QueryAllPendingPerpetualOrderResponse) String() string
- func (m *QueryAllPendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllPendingPerpetualOrderResponse) XXX_DiscardUnknown()
- func (m *QueryAllPendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllPendingPerpetualOrderResponse) XXX_Size() int
- func (m *QueryAllPendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
- type QueryAllPendingSpotOrderRequest
- func (*QueryAllPendingSpotOrderRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllPendingSpotOrderRequest) GetPagination() *query.PageRequest
- func (m *QueryAllPendingSpotOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPendingSpotOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPendingSpotOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPendingSpotOrderRequest) ProtoMessage()
- func (m *QueryAllPendingSpotOrderRequest) Reset()
- func (m *QueryAllPendingSpotOrderRequest) Size() (n int)
- func (m *QueryAllPendingSpotOrderRequest) String() string
- func (m *QueryAllPendingSpotOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllPendingSpotOrderRequest) XXX_DiscardUnknown()
- func (m *QueryAllPendingSpotOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPendingSpotOrderRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllPendingSpotOrderRequest) XXX_Size() int
- func (m *QueryAllPendingSpotOrderRequest) XXX_Unmarshal(b []byte) error
- type QueryAllPendingSpotOrderResponse
- func (*QueryAllPendingSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllPendingSpotOrderResponse) GetPagination() *query.PageResponse
- func (m *QueryAllPendingSpotOrderResponse) GetPendingSpotOrder() []SpotOrder
- func (m *QueryAllPendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPendingSpotOrderResponse) ProtoMessage()
- func (m *QueryAllPendingSpotOrderResponse) Reset()
- func (m *QueryAllPendingSpotOrderResponse) Size() (n int)
- func (m *QueryAllPendingSpotOrderResponse) String() string
- func (m *QueryAllPendingSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllPendingSpotOrderResponse) XXX_DiscardUnknown()
- func (m *QueryAllPendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPendingSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllPendingSpotOrderResponse) XXX_Size() int
- func (m *QueryAllPendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetPendingPerpetualOrderRequest
- func (*QueryGetPendingPerpetualOrderRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetPendingPerpetualOrderRequest) GetId() uint64
- func (m *QueryGetPendingPerpetualOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPendingPerpetualOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPendingPerpetualOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPendingPerpetualOrderRequest) ProtoMessage()
- func (m *QueryGetPendingPerpetualOrderRequest) Reset()
- func (m *QueryGetPendingPerpetualOrderRequest) Size() (n int)
- func (m *QueryGetPendingPerpetualOrderRequest) String() string
- func (m *QueryGetPendingPerpetualOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetPendingPerpetualOrderRequest) XXX_DiscardUnknown()
- func (m *QueryGetPendingPerpetualOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPendingPerpetualOrderRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetPendingPerpetualOrderRequest) XXX_Size() int
- func (m *QueryGetPendingPerpetualOrderRequest) XXX_Unmarshal(b []byte) error
- type QueryGetPendingPerpetualOrderResponse
- func (*QueryGetPendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetPendingPerpetualOrderResponse) GetPendingPerpetualOrder() PerpetualOrder
- func (m *QueryGetPendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPendingPerpetualOrderResponse) ProtoMessage()
- func (m *QueryGetPendingPerpetualOrderResponse) Reset()
- func (m *QueryGetPendingPerpetualOrderResponse) Size() (n int)
- func (m *QueryGetPendingPerpetualOrderResponse) String() string
- func (m *QueryGetPendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetPendingPerpetualOrderResponse) XXX_DiscardUnknown()
- func (m *QueryGetPendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetPendingPerpetualOrderResponse) XXX_Size() int
- func (m *QueryGetPendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
- type QueryGetPendingSpotOrderRequest
- func (*QueryGetPendingSpotOrderRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetPendingSpotOrderRequest) GetId() uint64
- func (m *QueryGetPendingSpotOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPendingSpotOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPendingSpotOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPendingSpotOrderRequest) ProtoMessage()
- func (m *QueryGetPendingSpotOrderRequest) Reset()
- func (m *QueryGetPendingSpotOrderRequest) Size() (n int)
- func (m *QueryGetPendingSpotOrderRequest) String() string
- func (m *QueryGetPendingSpotOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetPendingSpotOrderRequest) XXX_DiscardUnknown()
- func (m *QueryGetPendingSpotOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPendingSpotOrderRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetPendingSpotOrderRequest) XXX_Size() int
- func (m *QueryGetPendingSpotOrderRequest) XXX_Unmarshal(b []byte) error
- type QueryGetPendingSpotOrderResponse
- func (*QueryGetPendingSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetPendingSpotOrderResponse) GetPendingSpotOrder() SpotOrder
- func (m *QueryGetPendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPendingSpotOrderResponse) ProtoMessage()
- func (m *QueryGetPendingSpotOrderResponse) Reset()
- func (m *QueryGetPendingSpotOrderResponse) Size() (n int)
- func (m *QueryGetPendingSpotOrderResponse) String() string
- func (m *QueryGetPendingSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetPendingSpotOrderResponse) XXX_DiscardUnknown()
- func (m *QueryGetPendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPendingSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetPendingSpotOrderResponse) XXX_Size() int
- func (m *QueryGetPendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPendingPerpetualOrderForAddressRequest
- func (*QueryPendingPerpetualOrderForAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryPendingPerpetualOrderForAddressRequest) GetAddress() string
- func (m *QueryPendingPerpetualOrderForAddressRequest) GetStatus() Status
- func (m *QueryPendingPerpetualOrderForAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPendingPerpetualOrderForAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPendingPerpetualOrderForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPendingPerpetualOrderForAddressRequest) ProtoMessage()
- func (m *QueryPendingPerpetualOrderForAddressRequest) Reset()
- func (m *QueryPendingPerpetualOrderForAddressRequest) Size() (n int)
- func (m *QueryPendingPerpetualOrderForAddressRequest) String() string
- func (m *QueryPendingPerpetualOrderForAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_DiscardUnknown()
- func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Size() int
- func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryPendingPerpetualOrderForAddressResponse
- func (*QueryPendingPerpetualOrderForAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryPendingPerpetualOrderForAddressResponse) GetPendingPerpetualOrders() []PerpetualOrder
- func (m *QueryPendingPerpetualOrderForAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPendingPerpetualOrderForAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPendingPerpetualOrderForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPendingPerpetualOrderForAddressResponse) ProtoMessage()
- func (m *QueryPendingPerpetualOrderForAddressResponse) Reset()
- func (m *QueryPendingPerpetualOrderForAddressResponse) Size() (n int)
- func (m *QueryPendingPerpetualOrderForAddressResponse) String() string
- func (m *QueryPendingPerpetualOrderForAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_DiscardUnknown()
- func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Size() int
- func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryPendingSpotOrderForAddressRequest
- func (*QueryPendingSpotOrderForAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryPendingSpotOrderForAddressRequest) GetAddress() string
- func (m *QueryPendingSpotOrderForAddressRequest) GetStatus() Status
- func (m *QueryPendingSpotOrderForAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPendingSpotOrderForAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPendingSpotOrderForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPendingSpotOrderForAddressRequest) ProtoMessage()
- func (m *QueryPendingSpotOrderForAddressRequest) Reset()
- func (m *QueryPendingSpotOrderForAddressRequest) Size() (n int)
- func (m *QueryPendingSpotOrderForAddressRequest) String() string
- func (m *QueryPendingSpotOrderForAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPendingSpotOrderForAddressRequest) XXX_DiscardUnknown()
- func (m *QueryPendingSpotOrderForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPendingSpotOrderForAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryPendingSpotOrderForAddressRequest) XXX_Size() int
- func (m *QueryPendingSpotOrderForAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryPendingSpotOrderForAddressResponse
- func (*QueryPendingSpotOrderForAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryPendingSpotOrderForAddressResponse) GetPendingSpotOrders() []SpotOrder
- func (m *QueryPendingSpotOrderForAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPendingSpotOrderForAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPendingSpotOrderForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPendingSpotOrderForAddressResponse) ProtoMessage()
- func (m *QueryPendingSpotOrderForAddressResponse) Reset()
- func (m *QueryPendingSpotOrderForAddressResponse) Size() (n int)
- func (m *QueryPendingSpotOrderForAddressResponse) String() string
- func (m *QueryPendingSpotOrderForAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPendingSpotOrderForAddressResponse) XXX_DiscardUnknown()
- func (m *QueryPendingSpotOrderForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPendingSpotOrderForAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryPendingSpotOrderForAddressResponse) XXX_Size() int
- func (m *QueryPendingSpotOrderForAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SpotOrder
- func (*SpotOrder) Descriptor() ([]byte, []int)
- func (m *SpotOrder) GetDate() *Date
- func (m *SpotOrder) GetOrderAmount() types.Coin
- func (m *SpotOrder) GetOrderId() uint64
- func (m *SpotOrder) GetOrderPrice() *OrderPrice
- func (m *SpotOrder) GetOrderTargetDenom() string
- func (m *SpotOrder) GetOrderType() SpotOrderType
- func (m *SpotOrder) GetOwnerAddress() string
- func (m *SpotOrder) GetStatus() Status
- func (m *SpotOrder) Marshal() (dAtA []byte, err error)
- func (m *SpotOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *SpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SpotOrder) ProtoMessage()
- func (m *SpotOrder) Reset()
- func (m *SpotOrder) Size() (n int)
- func (m *SpotOrder) String() string
- func (m *SpotOrder) Unmarshal(dAtA []byte) error
- func (m *SpotOrder) XXX_DiscardUnknown()
- func (m *SpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpotOrder) XXX_Merge(src proto.Message)
- func (m *SpotOrder) XXX_Size() int
- func (m *SpotOrder) XXX_Unmarshal(b []byte) error
- type SpotOrderType
- type Status
- type TierKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CancelPerpetualOrders(ctx context.Context, req *MsgCancelPerpetualOrders) (*MsgCancelPerpetualOrdersResponse, error)
- func (*UnimplementedMsgServer) CancelSpotOrders(ctx context.Context, req *MsgCancelSpotOrders) (*MsgCancelSpotOrdersResponse, error)
- func (*UnimplementedMsgServer) CreatePendingPerpetualOrder(ctx context.Context, req *MsgCreatePendingPerpetualOrder) (*MsgCreatePendingPerpetualOrderResponse, error)
- func (*UnimplementedMsgServer) CreatePendingSpotOrder(ctx context.Context, req *MsgCreatePendingSpotOrder) (*MsgCreatePendingSpotOrderResponse, error)
- func (*UnimplementedMsgServer) ExecuteOrders(ctx context.Context, req *MsgExecuteOrders) (*MsgExecuteOrdersResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdatePendingPerpetualOrder(ctx context.Context, req *MsgUpdatePendingPerpetualOrder) (*MsgUpdatePendingPerpetualOrderResponse, error)
- func (*UnimplementedMsgServer) UpdatePendingSpotOrder(ctx context.Context, req *MsgUpdatePendingSpotOrder) (*MsgUpdatePendingSpotOrderResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PendingPerpetualOrder(ctx context.Context, req *QueryGetPendingPerpetualOrderRequest) (*QueryGetPendingPerpetualOrderResponse, error)
- func (*UnimplementedQueryServer) PendingPerpetualOrderAll(ctx context.Context, req *QueryAllPendingPerpetualOrderRequest) (*QueryAllPendingPerpetualOrderResponse, error)
- func (*UnimplementedQueryServer) PendingPerpetualOrderForAddress(ctx context.Context, req *QueryPendingPerpetualOrderForAddressRequest) (*QueryPendingPerpetualOrderForAddressResponse, error)
- func (*UnimplementedQueryServer) PendingSpotOrder(ctx context.Context, req *QueryGetPendingSpotOrderRequest) (*QueryGetPendingSpotOrderResponse, error)
- func (*UnimplementedQueryServer) PendingSpotOrderAll(ctx context.Context, req *QueryAllPendingSpotOrderRequest) (*QueryAllPendingSpotOrderResponse, error)
- func (*UnimplementedQueryServer) PendingSpotOrderForAddress(ctx context.Context, req *QueryPendingSpotOrderForAddressRequest) (*QueryPendingSpotOrderForAddressResponse, error)
Constants ¶
const ( TypeEvtCloseSpotOrder = "close_spot_order" TypeEvtClosePerpetualOrder = "close_perpetual_order" )
const ( // ModuleName defines the module name ModuleName = "tradeshield" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_tradeshield" )
const ( TypeMsgCreatePendingPerpetualOrder = "create_pending_perpetual_order" TypeMsgUpdatePendingPerpetualOrder = "update_pending_perpetual_order" TypeMsgCancelPerpetualOrders = "cancel_perpetual_order" )
const ( TypeMsgCreatePendingSpotOrder = "create_pending_spot_order" TypeMsgUpdatePendingSpotOrder = "update_pending_spot_order" TypeMsgCancelSpotOrders = "cancel_pending_spot_order" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const TypeMsgExecuteOrders = "execute_orders"
const TypeMsgUpdateParams = "update_params"
Variables ¶
var ( ErrSample = errors.Register(ModuleName, 1100, "sample error") ErrSpotOrderNotFound = errors.Register(ModuleName, 1101, "spot order not found") ErrPerpetualOrderNotFound = errors.Register(ModuleName, 1102, "perpetual order not found") ErrPriceNotFound = errors.Register(ModuleName, 1103, "price not found") ErrSizeZero = errors.Register(ModuleName, 1104, "zero order ids ") ErrInvalidStatus = errors.Register(ModuleName, 1105, "invalid status") )
x/tradeshield module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsKey = []byte{0x01} PendingSpotOrderKey = []byte{0x02} PendingSpotOrderCountKey = []byte{0x03} SortedSpotOrderKey = []byte{0x04} PendingPerpetualOrderKey = []byte{0x05} PendingPerpetualOrderCountKey = []byte{0x06} SortedPerpetualOrderKey = []byte{0x07} )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPendingPerpetualOrder = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPendingPerpetualOrder = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPendingPerpetualOrder = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var PerpetualOrderType_name = map[int32]string{
0: "LIMITOPEN",
1: "LIMITCLOSE",
2: "MARKETOPEN",
3: "MARKETCLOSE",
4: "STOPLOSSPERP",
}
var PerpetualOrderType_value = map[string]int32{
"LIMITOPEN": 0,
"LIMITCLOSE": 1,
"MARKETOPEN": 2,
"MARKETCLOSE": 3,
"STOPLOSSPERP": 4,
}
var PerpetualPosition_name = map[int32]string{
0: "UNSPECIFIED",
1: "LONG",
2: "SHORT",
}
var PerpetualPosition_value = map[string]int32{
"UNSPECIFIED": 0,
"LONG": 1,
"SHORT": 2,
}
var SpotOrderType_name = map[int32]string{
0: "STOPLOSS",
1: "LIMITSELL",
2: "LIMITBUY",
3: "MARKETBUY",
}
var SpotOrderType_value = map[string]int32{
"STOPLOSS": 0,
"LIMITSELL": 1,
"LIMITBUY": 2,
"MARKETBUY": 3,
}
var Status_name = map[int32]string{
0: "PENDING",
1: "EXECUTED",
2: "CANCELED",
3: "ALL",
}
var Status_value = map[string]int32{
"PENDING": 0,
"EXECUTED": 1,
"CANCELED": 2,
"ALL": 3,
}
Functions ¶
func DecodeUint64Slice ¶ added in v0.46.0
func EmitClosePerpetualOrderEvent ¶ added in v0.48.0
func EmitClosePerpetualOrderEvent(ctx sdk.Context, order PerpetualOrder)
func EmitCloseSpotOrderEvent ¶ added in v0.48.0
func EncodeUint64Slice ¶ added in v0.46.0
func GenPerpKey ¶ added in v0.46.0
func GenPerpKey(order PerpetualOrder) (string, error)
func GenSpotKey ¶ added in v0.46.0
func GetUint64Bytes ¶ added in v0.48.0
GetUint64Bytes returns the byte representation of the ID
func GetUint64FromBytes ¶ added in v0.48.0
GetUint64FromBytes returns ID in uint64 format from a byte array
func NewClosePerpetualOrderEvt ¶ added in v0.48.0
func NewClosePerpetualOrderEvt(order PerpetualOrder) sdk.Event
func NewCloseSpotOrderEvt ¶ added in v0.48.0
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AmmKeeper ¶ added in v0.46.0
type AmmKeeper interface {
SwapByDenom(ctx sdk.Context, msg *ammtypes.MsgSwapByDenom) (*ammtypes.MsgSwapByDenomResponse, error)
}
AmmKeeper defines the expected interface needed to swap tokens
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type Date ¶ added in v0.46.0
type Date struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*Date) Descriptor ¶ added in v0.46.0
func (*Date) GetTimestamp ¶ added in v0.46.0
func (*Date) MarshalToSizedBuffer ¶ added in v0.46.0
func (*Date) ProtoMessage ¶ added in v0.46.0
func (*Date) ProtoMessage()
func (*Date) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *Date) XXX_DiscardUnknown()
func (*Date) XXX_Marshal ¶ added in v0.46.0
func (*Date) XXX_Unmarshal ¶ added in v0.46.0
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` PendingSpotOrderList []SpotOrder `protobuf:"bytes,2,rep,name=pending_spot_order_list,json=pendingSpotOrderList,proto3" json:"pending_spot_order_list"` PendingSpotOrderCount uint64 `` /* 129-byte string literal not displayed */ PendingPerpetualOrderList []PerpetualOrder `` /* 130-byte string literal not displayed */ PendingPerpetualOrderCount uint64 `` /* 144-byte string literal not displayed */ }
GenesisState defines the tradeshield module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPendingPerpetualOrderCount ¶ added in v0.46.0
func (m *GenesisState) GetPendingPerpetualOrderCount() uint64
func (*GenesisState) GetPendingPerpetualOrderList ¶ added in v0.46.0
func (m *GenesisState) GetPendingPerpetualOrderList() []PerpetualOrder
func (*GenesisState) GetPendingSpotOrderCount ¶ added in v0.46.0
func (m *GenesisState) GetPendingSpotOrderCount() uint64
func (*GenesisState) GetPendingSpotOrderList ¶ added in v0.46.0
func (m *GenesisState) GetPendingSpotOrderList() []SpotOrder
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 LegacyPerpetualOrder ¶ added in v0.48.0
type LegacyPerpetualOrder struct { OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` PerpetualOrderType PerpetualOrderType `` /* 159-byte string literal not displayed */ Position PerpetualPosition `protobuf:"varint,4,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"` TriggerPrice *OrderPrice `protobuf:"bytes,5,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` Collateral types.Coin `protobuf:"bytes,6,opt,name=collateral,proto3" json:"collateral"` TradingAsset string `protobuf:"bytes,7,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */ PositionId uint64 `protobuf:"varint,10,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` Status Status `protobuf:"varint,11,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"` StopLossPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */ }
func (*LegacyPerpetualOrder) Descriptor ¶ added in v0.48.0
func (*LegacyPerpetualOrder) Descriptor() ([]byte, []int)
func (*LegacyPerpetualOrder) GetCollateral ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetCollateral() types.Coin
func (*LegacyPerpetualOrder) GetOrderId ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetOrderId() uint64
func (*LegacyPerpetualOrder) GetOwnerAddress ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetOwnerAddress() string
func (*LegacyPerpetualOrder) GetPerpetualOrderType ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetPerpetualOrderType() PerpetualOrderType
func (*LegacyPerpetualOrder) GetPosition ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetPosition() PerpetualPosition
func (*LegacyPerpetualOrder) GetPositionId ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetPositionId() uint64
func (*LegacyPerpetualOrder) GetStatus ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetStatus() Status
func (*LegacyPerpetualOrder) GetTradingAsset ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetTradingAsset() string
func (*LegacyPerpetualOrder) GetTriggerPrice ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) GetTriggerPrice() *OrderPrice
func (*LegacyPerpetualOrder) Marshal ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) Marshal() (dAtA []byte, err error)
func (*LegacyPerpetualOrder) MarshalTo ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*LegacyPerpetualOrder) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LegacyPerpetualOrder) ProtoMessage ¶ added in v0.48.0
func (*LegacyPerpetualOrder) ProtoMessage()
func (*LegacyPerpetualOrder) Reset ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) Reset()
func (*LegacyPerpetualOrder) Size ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) Size() (n int)
func (*LegacyPerpetualOrder) String ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) String() string
func (*LegacyPerpetualOrder) Unmarshal ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) Unmarshal(dAtA []byte) error
func (*LegacyPerpetualOrder) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) XXX_DiscardUnknown()
func (*LegacyPerpetualOrder) XXX_Marshal ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LegacyPerpetualOrder) XXX_Merge ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) XXX_Merge(src proto.Message)
func (*LegacyPerpetualOrder) XXX_Size ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) XXX_Size() int
func (*LegacyPerpetualOrder) XXX_Unmarshal ¶ added in v0.48.0
func (m *LegacyPerpetualOrder) XXX_Unmarshal(b []byte) error
type MsgCancelPerpetualOrders ¶ added in v0.48.0
type MsgCancelPerpetualOrders struct { OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OrderIds []uint64 `protobuf:"varint,2,rep,packed,name=order_ids,json=orderIds,proto3" json:"order_ids,omitempty"` }
func NewMsgCancelPerpetualOrders ¶ added in v0.48.0
func NewMsgCancelPerpetualOrders(creator string, ids []uint64) *MsgCancelPerpetualOrders
func (*MsgCancelPerpetualOrders) Descriptor ¶ added in v0.48.0
func (*MsgCancelPerpetualOrders) Descriptor() ([]byte, []int)
func (*MsgCancelPerpetualOrders) GetOrderIds ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) GetOrderIds() []uint64
func (*MsgCancelPerpetualOrders) GetOwnerAddress ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) GetOwnerAddress() string
func (*MsgCancelPerpetualOrders) GetSignBytes ¶ added in v0.48.0
func (msg *MsgCancelPerpetualOrders) GetSignBytes() []byte
func (*MsgCancelPerpetualOrders) GetSigners ¶ added in v0.48.0
func (msg *MsgCancelPerpetualOrders) GetSigners() []sdk.AccAddress
func (*MsgCancelPerpetualOrders) Marshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) Marshal() (dAtA []byte, err error)
func (*MsgCancelPerpetualOrders) MarshalTo ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrders) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrders) ProtoMessage ¶ added in v0.48.0
func (*MsgCancelPerpetualOrders) ProtoMessage()
func (*MsgCancelPerpetualOrders) Reset ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) Reset()
func (*MsgCancelPerpetualOrders) Route ¶ added in v0.48.0
func (msg *MsgCancelPerpetualOrders) Route() string
func (*MsgCancelPerpetualOrders) Size ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) Size() (n int)
func (*MsgCancelPerpetualOrders) String ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) String() string
func (*MsgCancelPerpetualOrders) Type ¶ added in v0.48.0
func (msg *MsgCancelPerpetualOrders) Type() string
func (*MsgCancelPerpetualOrders) Unmarshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) Unmarshal(dAtA []byte) error
func (*MsgCancelPerpetualOrders) ValidateBasic ¶ added in v0.48.0
func (msg *MsgCancelPerpetualOrders) ValidateBasic() error
func (*MsgCancelPerpetualOrders) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) XXX_DiscardUnknown()
func (*MsgCancelPerpetualOrders) XXX_Marshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelPerpetualOrders) XXX_Merge ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) XXX_Merge(src proto.Message)
func (*MsgCancelPerpetualOrders) XXX_Size ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) XXX_Size() int
func (*MsgCancelPerpetualOrders) XXX_Unmarshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrders) XXX_Unmarshal(b []byte) error
type MsgCancelPerpetualOrdersResponse ¶ added in v0.48.0
type MsgCancelPerpetualOrdersResponse struct { }
func (*MsgCancelPerpetualOrdersResponse) Descriptor ¶ added in v0.48.0
func (*MsgCancelPerpetualOrdersResponse) Descriptor() ([]byte, []int)
func (*MsgCancelPerpetualOrdersResponse) Marshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelPerpetualOrdersResponse) MarshalTo ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrdersResponse) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrdersResponse) ProtoMessage ¶ added in v0.48.0
func (*MsgCancelPerpetualOrdersResponse) ProtoMessage()
func (*MsgCancelPerpetualOrdersResponse) Reset ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) Reset()
func (*MsgCancelPerpetualOrdersResponse) Size ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) Size() (n int)
func (*MsgCancelPerpetualOrdersResponse) String ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) String() string
func (*MsgCancelPerpetualOrdersResponse) Unmarshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelPerpetualOrdersResponse) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) XXX_DiscardUnknown()
func (*MsgCancelPerpetualOrdersResponse) XXX_Marshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelPerpetualOrdersResponse) XXX_Merge ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) XXX_Merge(src proto.Message)
func (*MsgCancelPerpetualOrdersResponse) XXX_Size ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) XXX_Size() int
func (*MsgCancelPerpetualOrdersResponse) XXX_Unmarshal ¶ added in v0.48.0
func (m *MsgCancelPerpetualOrdersResponse) XXX_Unmarshal(b []byte) error
type MsgCancelSpotOrders ¶ added in v0.48.0
type MsgCancelSpotOrders struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` SpotOrderIds []uint64 `protobuf:"varint,2,rep,packed,name=spot_order_ids,json=spotOrderIds,proto3" json:"spot_order_ids,omitempty"` }
func NewMsgCancelSpotOrders ¶ added in v0.48.0
func NewMsgCancelSpotOrders(creator string, id []uint64) *MsgCancelSpotOrders
func (*MsgCancelSpotOrders) Descriptor ¶ added in v0.48.0
func (*MsgCancelSpotOrders) Descriptor() ([]byte, []int)
func (*MsgCancelSpotOrders) GetCreator ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) GetCreator() string
func (*MsgCancelSpotOrders) GetSignBytes ¶ added in v0.48.0
func (msg *MsgCancelSpotOrders) GetSignBytes() []byte
func (*MsgCancelSpotOrders) GetSigners ¶ added in v0.48.0
func (msg *MsgCancelSpotOrders) GetSigners() []sdk.AccAddress
func (*MsgCancelSpotOrders) GetSpotOrderIds ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) GetSpotOrderIds() []uint64
func (*MsgCancelSpotOrders) Marshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) Marshal() (dAtA []byte, err error)
func (*MsgCancelSpotOrders) MarshalTo ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelSpotOrders) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelSpotOrders) ProtoMessage ¶ added in v0.48.0
func (*MsgCancelSpotOrders) ProtoMessage()
func (*MsgCancelSpotOrders) Reset ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) Reset()
func (*MsgCancelSpotOrders) Route ¶ added in v0.48.0
func (msg *MsgCancelSpotOrders) Route() string
func (*MsgCancelSpotOrders) Size ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) Size() (n int)
func (*MsgCancelSpotOrders) String ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) String() string
func (*MsgCancelSpotOrders) Type ¶ added in v0.48.0
func (msg *MsgCancelSpotOrders) Type() string
func (*MsgCancelSpotOrders) Unmarshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) Unmarshal(dAtA []byte) error
func (*MsgCancelSpotOrders) ValidateBasic ¶ added in v0.48.0
func (msg *MsgCancelSpotOrders) ValidateBasic() error
func (*MsgCancelSpotOrders) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) XXX_DiscardUnknown()
func (*MsgCancelSpotOrders) XXX_Marshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelSpotOrders) XXX_Merge ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) XXX_Merge(src proto.Message)
func (*MsgCancelSpotOrders) XXX_Size ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) XXX_Size() int
func (*MsgCancelSpotOrders) XXX_Unmarshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrders) XXX_Unmarshal(b []byte) error
type MsgCancelSpotOrdersResponse ¶ added in v0.48.0
type MsgCancelSpotOrdersResponse struct { }
func (*MsgCancelSpotOrdersResponse) Descriptor ¶ added in v0.48.0
func (*MsgCancelSpotOrdersResponse) Descriptor() ([]byte, []int)
func (*MsgCancelSpotOrdersResponse) Marshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelSpotOrdersResponse) MarshalTo ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelSpotOrdersResponse) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelSpotOrdersResponse) ProtoMessage ¶ added in v0.48.0
func (*MsgCancelSpotOrdersResponse) ProtoMessage()
func (*MsgCancelSpotOrdersResponse) Reset ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) Reset()
func (*MsgCancelSpotOrdersResponse) Size ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) Size() (n int)
func (*MsgCancelSpotOrdersResponse) String ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) String() string
func (*MsgCancelSpotOrdersResponse) Unmarshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelSpotOrdersResponse) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) XXX_DiscardUnknown()
func (*MsgCancelSpotOrdersResponse) XXX_Marshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelSpotOrdersResponse) XXX_Merge ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) XXX_Merge(src proto.Message)
func (*MsgCancelSpotOrdersResponse) XXX_Size ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) XXX_Size() int
func (*MsgCancelSpotOrdersResponse) XXX_Unmarshal ¶ added in v0.48.0
func (m *MsgCancelSpotOrdersResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreatePendingSpotOrder(ctx context.Context, in *MsgCreatePendingSpotOrder, opts ...grpc.CallOption) (*MsgCreatePendingSpotOrderResponse, error) UpdatePendingSpotOrder(ctx context.Context, in *MsgUpdatePendingSpotOrder, opts ...grpc.CallOption) (*MsgUpdatePendingSpotOrderResponse, error) CreatePendingPerpetualOrder(ctx context.Context, in *MsgCreatePendingPerpetualOrder, opts ...grpc.CallOption) (*MsgCreatePendingPerpetualOrderResponse, error) UpdatePendingPerpetualOrder(ctx context.Context, in *MsgUpdatePendingPerpetualOrder, opts ...grpc.CallOption) (*MsgUpdatePendingPerpetualOrderResponse, error) CancelPerpetualOrders(ctx context.Context, in *MsgCancelPerpetualOrders, opts ...grpc.CallOption) (*MsgCancelPerpetualOrdersResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) ExecuteOrders(ctx context.Context, in *MsgExecuteOrders, opts ...grpc.CallOption) (*MsgExecuteOrdersResponse, error) CancelSpotOrders(ctx context.Context, in *MsgCancelSpotOrders, opts ...grpc.CallOption) (*MsgCancelSpotOrdersResponse, 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 MsgCreatePendingPerpetualOrder ¶ added in v0.46.0
type MsgCreatePendingPerpetualOrder struct { OrderType PerpetualOrderType `` /* 130-byte string literal not displayed */ TriggerPrice *OrderPrice `protobuf:"bytes,2,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` Collateral types.Coin `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` TradingAsset string `protobuf:"bytes,5,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Position PerpetualPosition `protobuf:"varint,6,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"` Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */ StopLossPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 142-byte string literal not displayed */ }
func NewMsgCreatePendingPerpetualOrder ¶ added in v0.46.0
func NewMsgCreatePendingPerpetualOrder(creator string) *MsgCreatePendingPerpetualOrder
func (*MsgCreatePendingPerpetualOrder) Descriptor ¶ added in v0.46.0
func (*MsgCreatePendingPerpetualOrder) Descriptor() ([]byte, []int)
func (*MsgCreatePendingPerpetualOrder) GetCollateral ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) GetCollateral() types.Coin
func (*MsgCreatePendingPerpetualOrder) GetOrderType ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) GetOrderType() PerpetualOrderType
func (*MsgCreatePendingPerpetualOrder) GetOwnerAddress ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) GetOwnerAddress() string
func (*MsgCreatePendingPerpetualOrder) GetPosition ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) GetPosition() PerpetualPosition
func (*MsgCreatePendingPerpetualOrder) GetSignBytes ¶ added in v0.46.0
func (msg *MsgCreatePendingPerpetualOrder) GetSignBytes() []byte
func (*MsgCreatePendingPerpetualOrder) GetSigners ¶ added in v0.46.0
func (msg *MsgCreatePendingPerpetualOrder) GetSigners() []sdk.AccAddress
func (*MsgCreatePendingPerpetualOrder) GetTradingAsset ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) GetTradingAsset() string
func (*MsgCreatePendingPerpetualOrder) GetTriggerPrice ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) GetTriggerPrice() *OrderPrice
func (*MsgCreatePendingPerpetualOrder) Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) Marshal() (dAtA []byte, err error)
func (*MsgCreatePendingPerpetualOrder) MarshalTo ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePendingPerpetualOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePendingPerpetualOrder) ProtoMessage ¶ added in v0.46.0
func (*MsgCreatePendingPerpetualOrder) ProtoMessage()
func (*MsgCreatePendingPerpetualOrder) Reset ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) Reset()
func (*MsgCreatePendingPerpetualOrder) Route ¶ added in v0.46.0
func (msg *MsgCreatePendingPerpetualOrder) Route() string
func (*MsgCreatePendingPerpetualOrder) Size ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) Size() (n int)
func (*MsgCreatePendingPerpetualOrder) String ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) String() string
func (*MsgCreatePendingPerpetualOrder) Type ¶ added in v0.46.0
func (msg *MsgCreatePendingPerpetualOrder) Type() string
func (*MsgCreatePendingPerpetualOrder) Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) Unmarshal(dAtA []byte) error
func (*MsgCreatePendingPerpetualOrder) ValidateBasic ¶ added in v0.46.0
func (msg *MsgCreatePendingPerpetualOrder) ValidateBasic() error
func (*MsgCreatePendingPerpetualOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) XXX_DiscardUnknown()
func (*MsgCreatePendingPerpetualOrder) XXX_Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePendingPerpetualOrder) XXX_Merge ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) XXX_Merge(src proto.Message)
func (*MsgCreatePendingPerpetualOrder) XXX_Size ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) XXX_Size() int
func (*MsgCreatePendingPerpetualOrder) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrder) XXX_Unmarshal(b []byte) error
type MsgCreatePendingPerpetualOrderResponse ¶ added in v0.46.0
type MsgCreatePendingPerpetualOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCreatePendingPerpetualOrderResponse) Descriptor ¶ added in v0.46.0
func (*MsgCreatePendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePendingPerpetualOrderResponse) GetOrderId ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) GetOrderId() uint64
func (*MsgCreatePendingPerpetualOrderResponse) Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePendingPerpetualOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePendingPerpetualOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePendingPerpetualOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgCreatePendingPerpetualOrderResponse) ProtoMessage()
func (*MsgCreatePendingPerpetualOrderResponse) Reset ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) Reset()
func (*MsgCreatePendingPerpetualOrderResponse) Size ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) Size() (n int)
func (*MsgCreatePendingPerpetualOrderResponse) String ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) String() string
func (*MsgCreatePendingPerpetualOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePendingPerpetualOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) XXX_DiscardUnknown()
func (*MsgCreatePendingPerpetualOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePendingPerpetualOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePendingPerpetualOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Size() int
func (*MsgCreatePendingPerpetualOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePendingSpotOrder ¶ added in v0.46.0
type MsgCreatePendingSpotOrder struct { OrderType SpotOrderType `protobuf:"varint,1,opt,name=order_type,json=orderType,proto3,enum=elys.tradeshield.SpotOrderType" json:"order_type,omitempty"` OrderPrice *OrderPrice `protobuf:"bytes,2,opt,name=order_price,json=orderPrice,proto3" json:"order_price,omitempty"` OrderAmount *types.Coin `protobuf:"bytes,3,opt,name=order_amount,json=orderAmount,proto3" json:"order_amount,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OrderTargetDenom string `protobuf:"bytes,5,opt,name=order_target_denom,json=orderTargetDenom,proto3" json:"order_target_denom,omitempty"` }
func NewMsgCreatePendingSpotOrder ¶ added in v0.46.0
func NewMsgCreatePendingSpotOrder(ownerAddress string) *MsgCreatePendingSpotOrder
func (*MsgCreatePendingSpotOrder) Descriptor ¶ added in v0.46.0
func (*MsgCreatePendingSpotOrder) Descriptor() ([]byte, []int)
func (*MsgCreatePendingSpotOrder) GetOrderAmount ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) GetOrderAmount() *types.Coin
func (*MsgCreatePendingSpotOrder) GetOrderPrice ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) GetOrderPrice() *OrderPrice
func (*MsgCreatePendingSpotOrder) GetOrderTargetDenom ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) GetOrderTargetDenom() string
func (*MsgCreatePendingSpotOrder) GetOrderType ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) GetOrderType() SpotOrderType
func (*MsgCreatePendingSpotOrder) GetOwnerAddress ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) GetOwnerAddress() string
func (*MsgCreatePendingSpotOrder) GetSignBytes ¶ added in v0.46.0
func (msg *MsgCreatePendingSpotOrder) GetSignBytes() []byte
func (*MsgCreatePendingSpotOrder) GetSigners ¶ added in v0.46.0
func (msg *MsgCreatePendingSpotOrder) GetSigners() []sdk.AccAddress
func (*MsgCreatePendingSpotOrder) Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) Marshal() (dAtA []byte, err error)
func (*MsgCreatePendingSpotOrder) MarshalTo ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePendingSpotOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePendingSpotOrder) ProtoMessage ¶ added in v0.46.0
func (*MsgCreatePendingSpotOrder) ProtoMessage()
func (*MsgCreatePendingSpotOrder) Reset ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) Reset()
func (*MsgCreatePendingSpotOrder) Route ¶ added in v0.46.0
func (msg *MsgCreatePendingSpotOrder) Route() string
func (*MsgCreatePendingSpotOrder) Size ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) Size() (n int)
func (*MsgCreatePendingSpotOrder) String ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) String() string
func (*MsgCreatePendingSpotOrder) Type ¶ added in v0.46.0
func (msg *MsgCreatePendingSpotOrder) Type() string
func (*MsgCreatePendingSpotOrder) Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) Unmarshal(dAtA []byte) error
func (*MsgCreatePendingSpotOrder) ValidateBasic ¶ added in v0.46.0
func (msg *MsgCreatePendingSpotOrder) ValidateBasic() error
func (*MsgCreatePendingSpotOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) XXX_DiscardUnknown()
func (*MsgCreatePendingSpotOrder) XXX_Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePendingSpotOrder) XXX_Merge ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) XXX_Merge(src proto.Message)
func (*MsgCreatePendingSpotOrder) XXX_Size ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) XXX_Size() int
func (*MsgCreatePendingSpotOrder) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrder) XXX_Unmarshal(b []byte) error
type MsgCreatePendingSpotOrderResponse ¶ added in v0.46.0
type MsgCreatePendingSpotOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCreatePendingSpotOrderResponse) Descriptor ¶ added in v0.46.0
func (*MsgCreatePendingSpotOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePendingSpotOrderResponse) GetOrderId ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) GetOrderId() uint64
func (*MsgCreatePendingSpotOrderResponse) Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePendingSpotOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePendingSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePendingSpotOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgCreatePendingSpotOrderResponse) ProtoMessage()
func (*MsgCreatePendingSpotOrderResponse) Reset ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) Reset()
func (*MsgCreatePendingSpotOrderResponse) Size ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) Size() (n int)
func (*MsgCreatePendingSpotOrderResponse) String ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) String() string
func (*MsgCreatePendingSpotOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePendingSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) XXX_DiscardUnknown()
func (*MsgCreatePendingSpotOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePendingSpotOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePendingSpotOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) XXX_Size() int
func (*MsgCreatePendingSpotOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgCreatePendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
type MsgExecuteOrders ¶ added in v0.46.0
type MsgExecuteOrders struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` SpotOrderIds []uint64 `protobuf:"varint,2,rep,packed,name=spot_order_ids,json=spotOrderIds,proto3" json:"spot_order_ids,omitempty"` PerpetualOrderIds []uint64 `protobuf:"varint,3,rep,packed,name=perpetual_order_ids,json=perpetualOrderIds,proto3" json:"perpetual_order_ids,omitempty"` }
func NewMsgExecuteOrders ¶ added in v0.46.0
func NewMsgExecuteOrders(creator string, spotOrderIds []uint64, perpetualOrderIds []uint64) *MsgExecuteOrders
func (*MsgExecuteOrders) Descriptor ¶ added in v0.46.0
func (*MsgExecuteOrders) Descriptor() ([]byte, []int)
func (*MsgExecuteOrders) GetCreator ¶ added in v0.46.0
func (m *MsgExecuteOrders) GetCreator() string
func (*MsgExecuteOrders) GetPerpetualOrderIds ¶ added in v0.46.0
func (m *MsgExecuteOrders) GetPerpetualOrderIds() []uint64
func (*MsgExecuteOrders) GetSignBytes ¶ added in v0.46.0
func (msg *MsgExecuteOrders) GetSignBytes() []byte
func (*MsgExecuteOrders) GetSigners ¶ added in v0.46.0
func (msg *MsgExecuteOrders) GetSigners() []sdk.AccAddress
func (*MsgExecuteOrders) GetSpotOrderIds ¶ added in v0.46.0
func (m *MsgExecuteOrders) GetSpotOrderIds() []uint64
func (*MsgExecuteOrders) Marshal ¶ added in v0.46.0
func (m *MsgExecuteOrders) Marshal() (dAtA []byte, err error)
func (*MsgExecuteOrders) MarshalTo ¶ added in v0.46.0
func (m *MsgExecuteOrders) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteOrders) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgExecuteOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteOrders) ProtoMessage ¶ added in v0.46.0
func (*MsgExecuteOrders) ProtoMessage()
func (*MsgExecuteOrders) Reset ¶ added in v0.46.0
func (m *MsgExecuteOrders) Reset()
func (*MsgExecuteOrders) Route ¶ added in v0.46.0
func (msg *MsgExecuteOrders) Route() string
func (*MsgExecuteOrders) Size ¶ added in v0.46.0
func (m *MsgExecuteOrders) Size() (n int)
func (*MsgExecuteOrders) String ¶ added in v0.46.0
func (m *MsgExecuteOrders) String() string
func (*MsgExecuteOrders) Type ¶ added in v0.46.0
func (msg *MsgExecuteOrders) Type() string
func (*MsgExecuteOrders) Unmarshal ¶ added in v0.46.0
func (m *MsgExecuteOrders) Unmarshal(dAtA []byte) error
func (*MsgExecuteOrders) ValidateBasic ¶ added in v0.46.0
func (msg *MsgExecuteOrders) ValidateBasic() error
func (*MsgExecuteOrders) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgExecuteOrders) XXX_DiscardUnknown()
func (*MsgExecuteOrders) XXX_Marshal ¶ added in v0.46.0
func (m *MsgExecuteOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteOrders) XXX_Merge ¶ added in v0.46.0
func (m *MsgExecuteOrders) XXX_Merge(src proto.Message)
func (*MsgExecuteOrders) XXX_Size ¶ added in v0.46.0
func (m *MsgExecuteOrders) XXX_Size() int
func (*MsgExecuteOrders) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgExecuteOrders) XXX_Unmarshal(b []byte) error
type MsgExecuteOrdersResponse ¶ added in v0.46.0
type MsgExecuteOrdersResponse struct { }
func (*MsgExecuteOrdersResponse) Descriptor ¶ added in v0.46.0
func (*MsgExecuteOrdersResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteOrdersResponse) Marshal ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteOrdersResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteOrdersResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteOrdersResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgExecuteOrdersResponse) ProtoMessage()
func (*MsgExecuteOrdersResponse) Reset ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) Reset()
func (*MsgExecuteOrdersResponse) Size ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) Size() (n int)
func (*MsgExecuteOrdersResponse) String ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) String() string
func (*MsgExecuteOrdersResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteOrdersResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) XXX_DiscardUnknown()
func (*MsgExecuteOrdersResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteOrdersResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteOrdersResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) XXX_Size() int
func (*MsgExecuteOrdersResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgExecuteOrdersResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreatePendingSpotOrder(context.Context, *MsgCreatePendingSpotOrder) (*MsgCreatePendingSpotOrderResponse, error) UpdatePendingSpotOrder(context.Context, *MsgUpdatePendingSpotOrder) (*MsgUpdatePendingSpotOrderResponse, error) CreatePendingPerpetualOrder(context.Context, *MsgCreatePendingPerpetualOrder) (*MsgCreatePendingPerpetualOrderResponse, error) UpdatePendingPerpetualOrder(context.Context, *MsgUpdatePendingPerpetualOrder) (*MsgUpdatePendingPerpetualOrderResponse, error) CancelPerpetualOrders(context.Context, *MsgCancelPerpetualOrders) (*MsgCancelPerpetualOrdersResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) ExecuteOrders(context.Context, *MsgExecuteOrders) (*MsgExecuteOrdersResponse, error) CancelSpotOrders(context.Context, *MsgCancelSpotOrders) (*MsgCancelSpotOrdersResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v0.46.0
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` }
func NewMsgUpdateParams ¶ added in v0.46.0
func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶ added in v0.46.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.46.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.46.0
func (m *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) GetSignBytes ¶ added in v0.46.0
func (msg *MsgUpdateParams) GetSignBytes() []byte
func (*MsgUpdateParams) GetSigners ¶ added in v0.46.0
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateParams) Marshal ¶ added in v0.46.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.46.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.46.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.46.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶ added in v0.46.0
func (msg *MsgUpdateParams) Route() string
func (*MsgUpdateParams) Size ¶ added in v0.46.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.46.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶ added in v0.46.0
func (msg *MsgUpdateParams) Type() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.46.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.46.0
func (msg *MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.46.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.46.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.46.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.46.0
type MsgUpdateParamsResponse struct { }
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.46.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdatePendingPerpetualOrder ¶ added in v0.46.0
type MsgUpdatePendingPerpetualOrder struct { OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` OrderPrice *OrderPrice `protobuf:"bytes,3,opt,name=order_price,json=orderPrice,proto3" json:"order_price,omitempty"` }
func NewMsgUpdatePendingPerpetualOrder ¶ added in v0.46.0
func NewMsgUpdatePendingPerpetualOrder(creator string, id uint64, orderPrice *OrderPrice) *MsgUpdatePendingPerpetualOrder
func (*MsgUpdatePendingPerpetualOrder) Descriptor ¶ added in v0.46.0
func (*MsgUpdatePendingPerpetualOrder) Descriptor() ([]byte, []int)
func (*MsgUpdatePendingPerpetualOrder) GetOrderId ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) GetOrderId() uint64
func (*MsgUpdatePendingPerpetualOrder) GetOrderPrice ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) GetOrderPrice() *OrderPrice
func (*MsgUpdatePendingPerpetualOrder) GetOwnerAddress ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) GetOwnerAddress() string
func (*MsgUpdatePendingPerpetualOrder) GetSignBytes ¶ added in v0.46.0
func (msg *MsgUpdatePendingPerpetualOrder) GetSignBytes() []byte
func (*MsgUpdatePendingPerpetualOrder) GetSigners ¶ added in v0.46.0
func (msg *MsgUpdatePendingPerpetualOrder) GetSigners() []sdk.AccAddress
func (*MsgUpdatePendingPerpetualOrder) Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePendingPerpetualOrder) MarshalTo ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePendingPerpetualOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePendingPerpetualOrder) ProtoMessage ¶ added in v0.46.0
func (*MsgUpdatePendingPerpetualOrder) ProtoMessage()
func (*MsgUpdatePendingPerpetualOrder) Reset ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) Reset()
func (*MsgUpdatePendingPerpetualOrder) Route ¶ added in v0.46.0
func (msg *MsgUpdatePendingPerpetualOrder) Route() string
func (*MsgUpdatePendingPerpetualOrder) Size ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) Size() (n int)
func (*MsgUpdatePendingPerpetualOrder) String ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) String() string
func (*MsgUpdatePendingPerpetualOrder) Type ¶ added in v0.46.0
func (msg *MsgUpdatePendingPerpetualOrder) Type() string
func (*MsgUpdatePendingPerpetualOrder) Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) Unmarshal(dAtA []byte) error
func (*MsgUpdatePendingPerpetualOrder) ValidateBasic ¶ added in v0.46.0
func (msg *MsgUpdatePendingPerpetualOrder) ValidateBasic() error
func (*MsgUpdatePendingPerpetualOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) XXX_DiscardUnknown()
func (*MsgUpdatePendingPerpetualOrder) XXX_Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePendingPerpetualOrder) XXX_Merge ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) XXX_Merge(src proto.Message)
func (*MsgUpdatePendingPerpetualOrder) XXX_Size ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) XXX_Size() int
func (*MsgUpdatePendingPerpetualOrder) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrder) XXX_Unmarshal(b []byte) error
type MsgUpdatePendingPerpetualOrderResponse ¶ added in v0.46.0
type MsgUpdatePendingPerpetualOrderResponse struct { }
func (*MsgUpdatePendingPerpetualOrderResponse) Descriptor ¶ added in v0.46.0
func (*MsgUpdatePendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
func (*MsgUpdatePendingPerpetualOrderResponse) Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePendingPerpetualOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePendingPerpetualOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePendingPerpetualOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgUpdatePendingPerpetualOrderResponse) ProtoMessage()
func (*MsgUpdatePendingPerpetualOrderResponse) Reset ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) Reset()
func (*MsgUpdatePendingPerpetualOrderResponse) Size ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) Size() (n int)
func (*MsgUpdatePendingPerpetualOrderResponse) String ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) String() string
func (*MsgUpdatePendingPerpetualOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdatePendingPerpetualOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_DiscardUnknown()
func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Size() int
func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
type MsgUpdatePendingSpotOrder ¶ added in v0.46.0
type MsgUpdatePendingSpotOrder struct { OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` OrderPrice *OrderPrice `protobuf:"bytes,3,opt,name=order_price,json=orderPrice,proto3" json:"order_price,omitempty"` }
func NewMsgUpdatePendingSpotOrder ¶ added in v0.46.0
func NewMsgUpdatePendingSpotOrder(creator string, id uint64, orderPrice *OrderPrice) *MsgUpdatePendingSpotOrder
func (*MsgUpdatePendingSpotOrder) Descriptor ¶ added in v0.46.0
func (*MsgUpdatePendingSpotOrder) Descriptor() ([]byte, []int)
func (*MsgUpdatePendingSpotOrder) GetOrderId ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) GetOrderId() uint64
func (*MsgUpdatePendingSpotOrder) GetOrderPrice ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) GetOrderPrice() *OrderPrice
func (*MsgUpdatePendingSpotOrder) GetOwnerAddress ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) GetOwnerAddress() string
func (*MsgUpdatePendingSpotOrder) GetSignBytes ¶ added in v0.46.0
func (msg *MsgUpdatePendingSpotOrder) GetSignBytes() []byte
func (*MsgUpdatePendingSpotOrder) GetSigners ¶ added in v0.46.0
func (msg *MsgUpdatePendingSpotOrder) GetSigners() []sdk.AccAddress
func (*MsgUpdatePendingSpotOrder) Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePendingSpotOrder) MarshalTo ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePendingSpotOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePendingSpotOrder) ProtoMessage ¶ added in v0.46.0
func (*MsgUpdatePendingSpotOrder) ProtoMessage()
func (*MsgUpdatePendingSpotOrder) Reset ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) Reset()
func (*MsgUpdatePendingSpotOrder) Route ¶ added in v0.46.0
func (msg *MsgUpdatePendingSpotOrder) Route() string
func (*MsgUpdatePendingSpotOrder) Size ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) Size() (n int)
func (*MsgUpdatePendingSpotOrder) String ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) String() string
func (*MsgUpdatePendingSpotOrder) Type ¶ added in v0.46.0
func (msg *MsgUpdatePendingSpotOrder) Type() string
func (*MsgUpdatePendingSpotOrder) Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) Unmarshal(dAtA []byte) error
func (*MsgUpdatePendingSpotOrder) ValidateBasic ¶ added in v0.46.0
func (msg *MsgUpdatePendingSpotOrder) ValidateBasic() error
func (*MsgUpdatePendingSpotOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) XXX_DiscardUnknown()
func (*MsgUpdatePendingSpotOrder) XXX_Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePendingSpotOrder) XXX_Merge ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) XXX_Merge(src proto.Message)
func (*MsgUpdatePendingSpotOrder) XXX_Size ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) XXX_Size() int
func (*MsgUpdatePendingSpotOrder) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrder) XXX_Unmarshal(b []byte) error
type MsgUpdatePendingSpotOrderResponse ¶ added in v0.46.0
type MsgUpdatePendingSpotOrderResponse struct { }
func (*MsgUpdatePendingSpotOrderResponse) Descriptor ¶ added in v0.46.0
func (*MsgUpdatePendingSpotOrderResponse) Descriptor() ([]byte, []int)
func (*MsgUpdatePendingSpotOrderResponse) Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePendingSpotOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePendingSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePendingSpotOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgUpdatePendingSpotOrderResponse) ProtoMessage()
func (*MsgUpdatePendingSpotOrderResponse) Reset ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) Reset()
func (*MsgUpdatePendingSpotOrderResponse) Size ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) Size() (n int)
func (*MsgUpdatePendingSpotOrderResponse) String ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) String() string
func (*MsgUpdatePendingSpotOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdatePendingSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) XXX_DiscardUnknown()
func (*MsgUpdatePendingSpotOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePendingSpotOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) XXX_Merge(src proto.Message)
func (*MsgUpdatePendingSpotOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) XXX_Size() int
func (*MsgUpdatePendingSpotOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgUpdatePendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateStopLossResponse ¶ added in v0.48.0
type MsgUpdateStopLossResponse struct { }
func (*MsgUpdateStopLossResponse) Descriptor ¶ added in v0.48.0
func (*MsgUpdateStopLossResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateStopLossResponse) Marshal ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateStopLossResponse) MarshalTo ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateStopLossResponse) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateStopLossResponse) ProtoMessage ¶ added in v0.48.0
func (*MsgUpdateStopLossResponse) ProtoMessage()
func (*MsgUpdateStopLossResponse) Reset ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) Reset()
func (*MsgUpdateStopLossResponse) Size ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) Size() (n int)
func (*MsgUpdateStopLossResponse) String ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) String() string
func (*MsgUpdateStopLossResponse) Unmarshal ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateStopLossResponse) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) XXX_DiscardUnknown()
func (*MsgUpdateStopLossResponse) XXX_Marshal ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateStopLossResponse) XXX_Merge ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateStopLossResponse) XXX_Size ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) XXX_Size() int
func (*MsgUpdateStopLossResponse) XXX_Unmarshal ¶ added in v0.48.0
func (m *MsgUpdateStopLossResponse) XXX_Unmarshal(b []byte) error
type OrderPrice ¶ added in v0.46.0
type OrderPrice struct { BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` QuoteDenom string `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"` }
func (*OrderPrice) Descriptor ¶ added in v0.46.0
func (*OrderPrice) Descriptor() ([]byte, []int)
func (*OrderPrice) GetBaseDenom ¶ added in v0.46.0
func (m *OrderPrice) GetBaseDenom() string
func (*OrderPrice) GetQuoteDenom ¶ added in v0.46.0
func (m *OrderPrice) GetQuoteDenom() string
func (*OrderPrice) Marshal ¶ added in v0.46.0
func (m *OrderPrice) Marshal() (dAtA []byte, err error)
func (*OrderPrice) MarshalTo ¶ added in v0.46.0
func (m *OrderPrice) MarshalTo(dAtA []byte) (int, error)
func (*OrderPrice) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *OrderPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderPrice) ProtoMessage ¶ added in v0.46.0
func (*OrderPrice) ProtoMessage()
func (*OrderPrice) Reset ¶ added in v0.46.0
func (m *OrderPrice) Reset()
func (*OrderPrice) Size ¶ added in v0.46.0
func (m *OrderPrice) Size() (n int)
func (*OrderPrice) String ¶ added in v0.46.0
func (m *OrderPrice) String() string
func (*OrderPrice) Unmarshal ¶ added in v0.46.0
func (m *OrderPrice) Unmarshal(dAtA []byte) error
func (*OrderPrice) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *OrderPrice) XXX_DiscardUnknown()
func (*OrderPrice) XXX_Marshal ¶ added in v0.46.0
func (m *OrderPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderPrice) XXX_Merge ¶ added in v0.46.0
func (m *OrderPrice) XXX_Merge(src proto.Message)
func (*OrderPrice) XXX_Size ¶ added in v0.46.0
func (m *OrderPrice) XXX_Size() int
func (*OrderPrice) XXX_Unmarshal ¶ added in v0.46.0
func (m *OrderPrice) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { MarketOrderEnabled bool `protobuf:"varint,1,opt,name=market_order_enabled,json=marketOrderEnabled,proto3" json:"market_order_enabled,omitempty"` StakeEnabled bool `protobuf:"varint,2,opt,name=stake_enabled,json=stakeEnabled,proto3" json:"stake_enabled,omitempty"` ProcessOrdersEnabled bool `protobuf:"varint,3,opt,name=process_orders_enabled,json=processOrdersEnabled,proto3" json:"process_orders_enabled,omitempty"` SwapEnabled bool `protobuf:"varint,4,opt,name=swap_enabled,json=swapEnabled,proto3" json:"swap_enabled,omitempty"` PerpetualEnabled bool `protobuf:"varint,5,opt,name=perpetual_enabled,json=perpetualEnabled,proto3" json:"perpetual_enabled,omitempty"` RewardEnabled bool `protobuf:"varint,6,opt,name=reward_enabled,json=rewardEnabled,proto3" json:"reward_enabled,omitempty"` LeverageEnabled bool `protobuf:"varint,7,opt,name=leverage_enabled,json=leverageEnabled,proto3" json:"leverage_enabled,omitempty"` LimitProcessOrder uint64 `protobuf:"varint,8,opt,name=limit_process_order,json=limitProcessOrder,proto3" json:"limit_process_order,omitempty"` // For incentive system v2 RewardPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ MarginError github_com_cosmos_cosmos_sdk_types.Dec `` /* 135-byte string literal not displayed */ MinimumDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 144-byte string literal not displayed */ }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetLeverageEnabled ¶ added in v0.46.0
func (*Params) GetLimitProcessOrder ¶ added in v0.46.0
func (*Params) GetMarketOrderEnabled ¶ added in v0.46.0
func (*Params) GetPerpetualEnabled ¶ added in v0.46.0
func (*Params) GetProcessOrdersEnabled ¶ added in v0.46.0
func (*Params) GetRewardEnabled ¶ added in v0.46.0
func (*Params) GetStakeEnabled ¶ added in v0.46.0
func (*Params) GetSwapEnabled ¶ added in v0.46.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PendingPerpetualOrder ¶ added in v0.46.0
type PendingPerpetualOrder struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Order string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` }
func (*PendingPerpetualOrder) Descriptor ¶ added in v0.46.0
func (*PendingPerpetualOrder) Descriptor() ([]byte, []int)
func (*PendingPerpetualOrder) GetCreator ¶ added in v0.46.0
func (m *PendingPerpetualOrder) GetCreator() string
func (*PendingPerpetualOrder) GetId ¶ added in v0.46.0
func (m *PendingPerpetualOrder) GetId() uint64
func (*PendingPerpetualOrder) GetOrder ¶ added in v0.46.0
func (m *PendingPerpetualOrder) GetOrder() string
func (*PendingPerpetualOrder) Marshal ¶ added in v0.46.0
func (m *PendingPerpetualOrder) Marshal() (dAtA []byte, err error)
func (*PendingPerpetualOrder) MarshalTo ¶ added in v0.46.0
func (m *PendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*PendingPerpetualOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *PendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PendingPerpetualOrder) ProtoMessage ¶ added in v0.46.0
func (*PendingPerpetualOrder) ProtoMessage()
func (*PendingPerpetualOrder) Reset ¶ added in v0.46.0
func (m *PendingPerpetualOrder) Reset()
func (*PendingPerpetualOrder) Size ¶ added in v0.46.0
func (m *PendingPerpetualOrder) Size() (n int)
func (*PendingPerpetualOrder) String ¶ added in v0.46.0
func (m *PendingPerpetualOrder) String() string
func (*PendingPerpetualOrder) Unmarshal ¶ added in v0.46.0
func (m *PendingPerpetualOrder) Unmarshal(dAtA []byte) error
func (*PendingPerpetualOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *PendingPerpetualOrder) XXX_DiscardUnknown()
func (*PendingPerpetualOrder) XXX_Marshal ¶ added in v0.46.0
func (m *PendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PendingPerpetualOrder) XXX_Merge ¶ added in v0.46.0
func (m *PendingPerpetualOrder) XXX_Merge(src proto.Message)
func (*PendingPerpetualOrder) XXX_Size ¶ added in v0.46.0
func (m *PendingPerpetualOrder) XXX_Size() int
func (*PendingPerpetualOrder) XXX_Unmarshal ¶ added in v0.46.0
func (m *PendingPerpetualOrder) XXX_Unmarshal(b []byte) error
type PerpetualKeeper ¶ added in v0.46.0
type PerpetualKeeper interface { Open(ctx sdk.Context, msg *perpetualtypes.MsgOpen, isBroker bool) (*perpetualtypes.MsgOpenResponse, error) Close(ctx sdk.Context, msg *perpetualtypes.MsgClose) (*perpetualtypes.MsgCloseResponse, error) GetMTP(ctx sdk.Context, mtpAddress sdk.AccAddress, id uint64) (perpetualtypes.MTP, error) GetPool(ctx sdk.Context, poolId uint64) (val perpetualtypes.Pool, found bool) HandleOpenEstimation(ctx sdk.Context, req *perpetualtypes.QueryOpenEstimationRequest) (*perpetualtypes.QueryOpenEstimationResponse, error) HandleCloseEstimation(ctx sdk.Context, req *perpetualtypes.QueryCloseEstimationRequest) (res *perpetualtypes.QueryCloseEstimationResponse, err error) }
PerpetualKeeper defines the expected interface needed to open and close perpetual positions
type PerpetualOrder ¶ added in v0.46.0
type PerpetualOrder struct { OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` PerpetualOrderType PerpetualOrderType `` /* 159-byte string literal not displayed */ Position PerpetualPosition `protobuf:"varint,4,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"` TriggerPrice *OrderPrice `protobuf:"bytes,5,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` Collateral types.Coin `protobuf:"bytes,6,opt,name=collateral,proto3" json:"collateral"` TradingAsset string `protobuf:"bytes,7,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */ PositionId uint64 `protobuf:"varint,10,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` Status Status `protobuf:"varint,11,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"` StopLossPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */ PositionSize types.Coin `protobuf:"bytes,13,opt,name=position_size,json=positionSize,proto3" json:"position_size"` LiquidationPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */ FundingRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 135-byte string literal not displayed */ BorrowInterestRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */ }
func (*PerpetualOrder) Descriptor ¶ added in v0.46.0
func (*PerpetualOrder) Descriptor() ([]byte, []int)
func (*PerpetualOrder) GetCollateral ¶ added in v0.46.0
func (m *PerpetualOrder) GetCollateral() types.Coin
func (*PerpetualOrder) GetOrderId ¶ added in v0.46.0
func (m *PerpetualOrder) GetOrderId() uint64
func (*PerpetualOrder) GetOwnerAddress ¶ added in v0.46.0
func (m *PerpetualOrder) GetOwnerAddress() string
func (*PerpetualOrder) GetPerpetualOrderType ¶ added in v0.46.0
func (m *PerpetualOrder) GetPerpetualOrderType() PerpetualOrderType
func (*PerpetualOrder) GetPosition ¶ added in v0.46.0
func (m *PerpetualOrder) GetPosition() PerpetualPosition
func (*PerpetualOrder) GetPositionId ¶ added in v0.46.0
func (m *PerpetualOrder) GetPositionId() uint64
func (*PerpetualOrder) GetPositionSize ¶ added in v0.48.0
func (m *PerpetualOrder) GetPositionSize() types.Coin
func (*PerpetualOrder) GetStatus ¶ added in v0.46.0
func (m *PerpetualOrder) GetStatus() Status
func (*PerpetualOrder) GetTradingAsset ¶ added in v0.46.0
func (m *PerpetualOrder) GetTradingAsset() string
func (*PerpetualOrder) GetTriggerPrice ¶ added in v0.46.0
func (m *PerpetualOrder) GetTriggerPrice() *OrderPrice
func (*PerpetualOrder) Marshal ¶ added in v0.46.0
func (m *PerpetualOrder) Marshal() (dAtA []byte, err error)
func (*PerpetualOrder) MarshalTo ¶ added in v0.46.0
func (m *PerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*PerpetualOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *PerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PerpetualOrder) ProtoMessage ¶ added in v0.46.0
func (*PerpetualOrder) ProtoMessage()
func (*PerpetualOrder) Reset ¶ added in v0.46.0
func (m *PerpetualOrder) Reset()
func (*PerpetualOrder) Size ¶ added in v0.46.0
func (m *PerpetualOrder) Size() (n int)
func (*PerpetualOrder) String ¶ added in v0.46.0
func (m *PerpetualOrder) String() string
func (*PerpetualOrder) Unmarshal ¶ added in v0.46.0
func (m *PerpetualOrder) Unmarshal(dAtA []byte) error
func (*PerpetualOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *PerpetualOrder) XXX_DiscardUnknown()
func (*PerpetualOrder) XXX_Marshal ¶ added in v0.46.0
func (m *PerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PerpetualOrder) XXX_Merge ¶ added in v0.46.0
func (m *PerpetualOrder) XXX_Merge(src proto.Message)
func (*PerpetualOrder) XXX_Size ¶ added in v0.46.0
func (m *PerpetualOrder) XXX_Size() int
func (*PerpetualOrder) XXX_Unmarshal ¶ added in v0.46.0
func (m *PerpetualOrder) XXX_Unmarshal(b []byte) error
type PerpetualOrderType ¶ added in v0.46.0
type PerpetualOrderType int32
Perpetual Order
const ( PerpetualOrderType_LIMITOPEN PerpetualOrderType = 0 PerpetualOrderType_LIMITCLOSE PerpetualOrderType = 1 PerpetualOrderType_MARKETOPEN PerpetualOrderType = 2 PerpetualOrderType_MARKETCLOSE PerpetualOrderType = 3 PerpetualOrderType_STOPLOSSPERP PerpetualOrderType = 4 )
func (PerpetualOrderType) EnumDescriptor ¶ added in v0.46.0
func (PerpetualOrderType) EnumDescriptor() ([]byte, []int)
func (PerpetualOrderType) String ¶ added in v0.46.0
func (x PerpetualOrderType) String() string
type PerpetualPosition ¶ added in v0.46.0
type PerpetualPosition int32
const ( PerpetualPosition_UNSPECIFIED PerpetualPosition = 0 PerpetualPosition_LONG PerpetualPosition = 1 PerpetualPosition_SHORT PerpetualPosition = 2 )
func (PerpetualPosition) EnumDescriptor ¶ added in v0.46.0
func (PerpetualPosition) EnumDescriptor() ([]byte, []int)
func (PerpetualPosition) String ¶ added in v0.46.0
func (x PerpetualPosition) String() string
type QueryAllPendingPerpetualOrderRequest ¶ added in v0.46.0
type QueryAllPendingPerpetualOrderRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllPendingPerpetualOrderRequest) Descriptor ¶ added in v0.46.0
func (*QueryAllPendingPerpetualOrderRequest) Descriptor() ([]byte, []int)
func (*QueryAllPendingPerpetualOrderRequest) GetPagination ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) GetPagination() *query.PageRequest
func (*QueryAllPendingPerpetualOrderRequest) Marshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllPendingPerpetualOrderRequest) MarshalTo ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPendingPerpetualOrderRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPendingPerpetualOrderRequest) ProtoMessage ¶ added in v0.46.0
func (*QueryAllPendingPerpetualOrderRequest) ProtoMessage()
func (*QueryAllPendingPerpetualOrderRequest) Reset ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) Reset()
func (*QueryAllPendingPerpetualOrderRequest) Size ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) Size() (n int)
func (*QueryAllPendingPerpetualOrderRequest) String ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) String() string
func (*QueryAllPendingPerpetualOrderRequest) Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) Unmarshal(dAtA []byte) error
func (*QueryAllPendingPerpetualOrderRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) XXX_DiscardUnknown()
func (*QueryAllPendingPerpetualOrderRequest) XXX_Marshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPendingPerpetualOrderRequest) XXX_Merge ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) XXX_Merge(src proto.Message)
func (*QueryAllPendingPerpetualOrderRequest) XXX_Size ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) XXX_Size() int
func (*QueryAllPendingPerpetualOrderRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderRequest) XXX_Unmarshal(b []byte) error
type QueryAllPendingPerpetualOrderResponse ¶ added in v0.46.0
type QueryAllPendingPerpetualOrderResponse struct { PendingPerpetualOrder []PerpetualOrder `protobuf:"bytes,1,rep,name=pending_perpetual_order,json=pendingPerpetualOrder,proto3" json:"pending_perpetual_order"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllPendingPerpetualOrderResponse) Descriptor ¶ added in v0.46.0
func (*QueryAllPendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
func (*QueryAllPendingPerpetualOrderResponse) GetPagination ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) GetPagination() *query.PageResponse
func (*QueryAllPendingPerpetualOrderResponse) GetPendingPerpetualOrder ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) GetPendingPerpetualOrder() []PerpetualOrder
func (*QueryAllPendingPerpetualOrderResponse) Marshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllPendingPerpetualOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPendingPerpetualOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPendingPerpetualOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*QueryAllPendingPerpetualOrderResponse) ProtoMessage()
func (*QueryAllPendingPerpetualOrderResponse) Reset ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) Reset()
func (*QueryAllPendingPerpetualOrderResponse) Size ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) Size() (n int)
func (*QueryAllPendingPerpetualOrderResponse) String ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) String() string
func (*QueryAllPendingPerpetualOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
func (*QueryAllPendingPerpetualOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) XXX_DiscardUnknown()
func (*QueryAllPendingPerpetualOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPendingPerpetualOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
func (*QueryAllPendingPerpetualOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) XXX_Size() int
func (*QueryAllPendingPerpetualOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
type QueryAllPendingSpotOrderRequest ¶ added in v0.46.0
type QueryAllPendingSpotOrderRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllPendingSpotOrderRequest) Descriptor ¶ added in v0.46.0
func (*QueryAllPendingSpotOrderRequest) Descriptor() ([]byte, []int)
func (*QueryAllPendingSpotOrderRequest) GetPagination ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) GetPagination() *query.PageRequest
func (*QueryAllPendingSpotOrderRequest) Marshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllPendingSpotOrderRequest) MarshalTo ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPendingSpotOrderRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPendingSpotOrderRequest) ProtoMessage ¶ added in v0.46.0
func (*QueryAllPendingSpotOrderRequest) ProtoMessage()
func (*QueryAllPendingSpotOrderRequest) Reset ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) Reset()
func (*QueryAllPendingSpotOrderRequest) Size ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) Size() (n int)
func (*QueryAllPendingSpotOrderRequest) String ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) String() string
func (*QueryAllPendingSpotOrderRequest) Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) Unmarshal(dAtA []byte) error
func (*QueryAllPendingSpotOrderRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) XXX_DiscardUnknown()
func (*QueryAllPendingSpotOrderRequest) XXX_Marshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPendingSpotOrderRequest) XXX_Merge ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) XXX_Merge(src proto.Message)
func (*QueryAllPendingSpotOrderRequest) XXX_Size ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) XXX_Size() int
func (*QueryAllPendingSpotOrderRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderRequest) XXX_Unmarshal(b []byte) error
type QueryAllPendingSpotOrderResponse ¶ added in v0.46.0
type QueryAllPendingSpotOrderResponse struct { PendingSpotOrder []SpotOrder `protobuf:"bytes,1,rep,name=pending_spot_order,json=pendingSpotOrder,proto3" json:"pending_spot_order"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllPendingSpotOrderResponse) Descriptor ¶ added in v0.46.0
func (*QueryAllPendingSpotOrderResponse) Descriptor() ([]byte, []int)
func (*QueryAllPendingSpotOrderResponse) GetPagination ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) GetPagination() *query.PageResponse
func (*QueryAllPendingSpotOrderResponse) GetPendingSpotOrder ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) GetPendingSpotOrder() []SpotOrder
func (*QueryAllPendingSpotOrderResponse) Marshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllPendingSpotOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPendingSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPendingSpotOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*QueryAllPendingSpotOrderResponse) ProtoMessage()
func (*QueryAllPendingSpotOrderResponse) Reset ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) Reset()
func (*QueryAllPendingSpotOrderResponse) Size ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) Size() (n int)
func (*QueryAllPendingSpotOrderResponse) String ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) String() string
func (*QueryAllPendingSpotOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*QueryAllPendingSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) XXX_DiscardUnknown()
func (*QueryAllPendingSpotOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPendingSpotOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) XXX_Merge(src proto.Message)
func (*QueryAllPendingSpotOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) XXX_Size() int
func (*QueryAllPendingSpotOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryAllPendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of PendingSpotOrder items. PendingSpotOrder(ctx context.Context, in *QueryGetPendingSpotOrderRequest, opts ...grpc.CallOption) (*QueryGetPendingSpotOrderResponse, error) PendingSpotOrderAll(ctx context.Context, in *QueryAllPendingSpotOrderRequest, opts ...grpc.CallOption) (*QueryAllPendingSpotOrderResponse, error) // Queries a list of PendingPerpetualOrder items. PendingPerpetualOrder(ctx context.Context, in *QueryGetPendingPerpetualOrderRequest, opts ...grpc.CallOption) (*QueryGetPendingPerpetualOrderResponse, error) PendingPerpetualOrderAll(ctx context.Context, in *QueryAllPendingPerpetualOrderRequest, opts ...grpc.CallOption) (*QueryAllPendingPerpetualOrderResponse, error) // Queries a list of PendingPerpetualOrderForAddress items. PendingPerpetualOrderForAddress(ctx context.Context, in *QueryPendingPerpetualOrderForAddressRequest, opts ...grpc.CallOption) (*QueryPendingPerpetualOrderForAddressResponse, error) // Queries a list of PendingSpotOrderForAddress items. PendingSpotOrderForAddress(ctx context.Context, in *QueryPendingSpotOrderForAddressRequest, opts ...grpc.CallOption) (*QueryPendingSpotOrderForAddressResponse, 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 QueryGetPendingPerpetualOrderRequest ¶ added in v0.46.0
type QueryGetPendingPerpetualOrderRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetPendingPerpetualOrderRequest) Descriptor ¶ added in v0.46.0
func (*QueryGetPendingPerpetualOrderRequest) Descriptor() ([]byte, []int)
func (*QueryGetPendingPerpetualOrderRequest) GetId ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) GetId() uint64
func (*QueryGetPendingPerpetualOrderRequest) Marshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetPendingPerpetualOrderRequest) MarshalTo ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPendingPerpetualOrderRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPendingPerpetualOrderRequest) ProtoMessage ¶ added in v0.46.0
func (*QueryGetPendingPerpetualOrderRequest) ProtoMessage()
func (*QueryGetPendingPerpetualOrderRequest) Reset ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) Reset()
func (*QueryGetPendingPerpetualOrderRequest) Size ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) Size() (n int)
func (*QueryGetPendingPerpetualOrderRequest) String ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) String() string
func (*QueryGetPendingPerpetualOrderRequest) Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) Unmarshal(dAtA []byte) error
func (*QueryGetPendingPerpetualOrderRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) XXX_DiscardUnknown()
func (*QueryGetPendingPerpetualOrderRequest) XXX_Marshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPendingPerpetualOrderRequest) XXX_Merge ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) XXX_Merge(src proto.Message)
func (*QueryGetPendingPerpetualOrderRequest) XXX_Size ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) XXX_Size() int
func (*QueryGetPendingPerpetualOrderRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderRequest) XXX_Unmarshal(b []byte) error
type QueryGetPendingPerpetualOrderResponse ¶ added in v0.46.0
type QueryGetPendingPerpetualOrderResponse struct {
PendingPerpetualOrder PerpetualOrder `protobuf:"bytes,1,opt,name=pending_perpetual_order,json=pendingPerpetualOrder,proto3" json:"pending_perpetual_order"`
}
func (*QueryGetPendingPerpetualOrderResponse) Descriptor ¶ added in v0.46.0
func (*QueryGetPendingPerpetualOrderResponse) Descriptor() ([]byte, []int)
func (*QueryGetPendingPerpetualOrderResponse) GetPendingPerpetualOrder ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) GetPendingPerpetualOrder() PerpetualOrder
func (*QueryGetPendingPerpetualOrderResponse) Marshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetPendingPerpetualOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPendingPerpetualOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPendingPerpetualOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*QueryGetPendingPerpetualOrderResponse) ProtoMessage()
func (*QueryGetPendingPerpetualOrderResponse) Reset ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) Reset()
func (*QueryGetPendingPerpetualOrderResponse) Size ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) Size() (n int)
func (*QueryGetPendingPerpetualOrderResponse) String ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) String() string
func (*QueryGetPendingPerpetualOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error
func (*QueryGetPendingPerpetualOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) XXX_DiscardUnknown()
func (*QueryGetPendingPerpetualOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPendingPerpetualOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) XXX_Merge(src proto.Message)
func (*QueryGetPendingPerpetualOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) XXX_Size() int
func (*QueryGetPendingPerpetualOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
type QueryGetPendingSpotOrderRequest ¶ added in v0.46.0
type QueryGetPendingSpotOrderRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetPendingSpotOrderRequest) Descriptor ¶ added in v0.46.0
func (*QueryGetPendingSpotOrderRequest) Descriptor() ([]byte, []int)
func (*QueryGetPendingSpotOrderRequest) GetId ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) GetId() uint64
func (*QueryGetPendingSpotOrderRequest) Marshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetPendingSpotOrderRequest) MarshalTo ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPendingSpotOrderRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPendingSpotOrderRequest) ProtoMessage ¶ added in v0.46.0
func (*QueryGetPendingSpotOrderRequest) ProtoMessage()
func (*QueryGetPendingSpotOrderRequest) Reset ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) Reset()
func (*QueryGetPendingSpotOrderRequest) Size ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) Size() (n int)
func (*QueryGetPendingSpotOrderRequest) String ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) String() string
func (*QueryGetPendingSpotOrderRequest) Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) Unmarshal(dAtA []byte) error
func (*QueryGetPendingSpotOrderRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) XXX_DiscardUnknown()
func (*QueryGetPendingSpotOrderRequest) XXX_Marshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPendingSpotOrderRequest) XXX_Merge ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) XXX_Merge(src proto.Message)
func (*QueryGetPendingSpotOrderRequest) XXX_Size ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) XXX_Size() int
func (*QueryGetPendingSpotOrderRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderRequest) XXX_Unmarshal(b []byte) error
type QueryGetPendingSpotOrderResponse ¶ added in v0.46.0
type QueryGetPendingSpotOrderResponse struct {
PendingSpotOrder SpotOrder `protobuf:"bytes,1,opt,name=pending_spot_order,json=pendingSpotOrder,proto3" json:"pending_spot_order"`
}
func (*QueryGetPendingSpotOrderResponse) Descriptor ¶ added in v0.46.0
func (*QueryGetPendingSpotOrderResponse) Descriptor() ([]byte, []int)
func (*QueryGetPendingSpotOrderResponse) GetPendingSpotOrder ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) GetPendingSpotOrder() SpotOrder
func (*QueryGetPendingSpotOrderResponse) Marshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetPendingSpotOrderResponse) MarshalTo ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPendingSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPendingSpotOrderResponse) ProtoMessage ¶ added in v0.46.0
func (*QueryGetPendingSpotOrderResponse) ProtoMessage()
func (*QueryGetPendingSpotOrderResponse) Reset ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) Reset()
func (*QueryGetPendingSpotOrderResponse) Size ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) Size() (n int)
func (*QueryGetPendingSpotOrderResponse) String ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) String() string
func (*QueryGetPendingSpotOrderResponse) Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*QueryGetPendingSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) XXX_DiscardUnknown()
func (*QueryGetPendingSpotOrderResponse) XXX_Marshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPendingSpotOrderResponse) XXX_Merge ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) XXX_Merge(src proto.Message)
func (*QueryGetPendingSpotOrderResponse) XXX_Size ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) XXX_Size() int
func (*QueryGetPendingSpotOrderResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryGetPendingSpotOrderResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPendingPerpetualOrderForAddressRequest ¶ added in v0.48.0
type QueryPendingPerpetualOrderForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"` }
func (*QueryPendingPerpetualOrderForAddressRequest) Descriptor ¶ added in v0.48.0
func (*QueryPendingPerpetualOrderForAddressRequest) Descriptor() ([]byte, []int)
func (*QueryPendingPerpetualOrderForAddressRequest) GetAddress ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) GetAddress() string
func (*QueryPendingPerpetualOrderForAddressRequest) GetStatus ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) GetStatus() Status
func (*QueryPendingPerpetualOrderForAddressRequest) Marshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryPendingPerpetualOrderForAddressRequest) MarshalTo ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPendingPerpetualOrderForAddressRequest) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPendingPerpetualOrderForAddressRequest) ProtoMessage ¶ added in v0.48.0
func (*QueryPendingPerpetualOrderForAddressRequest) ProtoMessage()
func (*QueryPendingPerpetualOrderForAddressRequest) Reset ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) Reset()
func (*QueryPendingPerpetualOrderForAddressRequest) Size ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) Size() (n int)
func (*QueryPendingPerpetualOrderForAddressRequest) String ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) String() string
func (*QueryPendingPerpetualOrderForAddressRequest) Unmarshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryPendingPerpetualOrderForAddressRequest) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_DiscardUnknown()
func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Marshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Merge ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Merge(src proto.Message)
func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Size ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Size() int
func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Unmarshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Unmarshal(b []byte) error
type QueryPendingPerpetualOrderForAddressResponse ¶ added in v0.48.0
type QueryPendingPerpetualOrderForAddressResponse struct {
PendingPerpetualOrders []PerpetualOrder `protobuf:"bytes,1,rep,name=pending_perpetual_orders,json=pendingPerpetualOrders,proto3" json:"pending_perpetual_orders"`
}
func (*QueryPendingPerpetualOrderForAddressResponse) Descriptor ¶ added in v0.48.0
func (*QueryPendingPerpetualOrderForAddressResponse) Descriptor() ([]byte, []int)
func (*QueryPendingPerpetualOrderForAddressResponse) GetPendingPerpetualOrders ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) GetPendingPerpetualOrders() []PerpetualOrder
func (*QueryPendingPerpetualOrderForAddressResponse) Marshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryPendingPerpetualOrderForAddressResponse) MarshalTo ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPendingPerpetualOrderForAddressResponse) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPendingPerpetualOrderForAddressResponse) ProtoMessage ¶ added in v0.48.0
func (*QueryPendingPerpetualOrderForAddressResponse) ProtoMessage()
func (*QueryPendingPerpetualOrderForAddressResponse) Reset ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) Reset()
func (*QueryPendingPerpetualOrderForAddressResponse) Size ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) Size() (n int)
func (*QueryPendingPerpetualOrderForAddressResponse) String ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) String() string
func (*QueryPendingPerpetualOrderForAddressResponse) Unmarshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryPendingPerpetualOrderForAddressResponse) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_DiscardUnknown()
func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Marshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Merge ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Merge(src proto.Message)
func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Size ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Size() int
func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Unmarshal ¶ added in v0.48.0
func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Unmarshal(b []byte) error
type QueryPendingSpotOrderForAddressRequest ¶ added in v0.48.0
type QueryPendingSpotOrderForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"` }
func (*QueryPendingSpotOrderForAddressRequest) Descriptor ¶ added in v0.48.0
func (*QueryPendingSpotOrderForAddressRequest) Descriptor() ([]byte, []int)
func (*QueryPendingSpotOrderForAddressRequest) GetAddress ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) GetAddress() string
func (*QueryPendingSpotOrderForAddressRequest) GetStatus ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) GetStatus() Status
func (*QueryPendingSpotOrderForAddressRequest) Marshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryPendingSpotOrderForAddressRequest) MarshalTo ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPendingSpotOrderForAddressRequest) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPendingSpotOrderForAddressRequest) ProtoMessage ¶ added in v0.48.0
func (*QueryPendingSpotOrderForAddressRequest) ProtoMessage()
func (*QueryPendingSpotOrderForAddressRequest) Reset ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) Reset()
func (*QueryPendingSpotOrderForAddressRequest) Size ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) Size() (n int)
func (*QueryPendingSpotOrderForAddressRequest) String ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) String() string
func (*QueryPendingSpotOrderForAddressRequest) Unmarshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryPendingSpotOrderForAddressRequest) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) XXX_DiscardUnknown()
func (*QueryPendingSpotOrderForAddressRequest) XXX_Marshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPendingSpotOrderForAddressRequest) XXX_Merge ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) XXX_Merge(src proto.Message)
func (*QueryPendingSpotOrderForAddressRequest) XXX_Size ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) XXX_Size() int
func (*QueryPendingSpotOrderForAddressRequest) XXX_Unmarshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressRequest) XXX_Unmarshal(b []byte) error
type QueryPendingSpotOrderForAddressResponse ¶ added in v0.48.0
type QueryPendingSpotOrderForAddressResponse struct {
PendingSpotOrders []SpotOrder `protobuf:"bytes,1,rep,name=pending_spot_orders,json=pendingSpotOrders,proto3" json:"pending_spot_orders"`
}
func (*QueryPendingSpotOrderForAddressResponse) Descriptor ¶ added in v0.48.0
func (*QueryPendingSpotOrderForAddressResponse) Descriptor() ([]byte, []int)
func (*QueryPendingSpotOrderForAddressResponse) GetPendingSpotOrders ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) GetPendingSpotOrders() []SpotOrder
func (*QueryPendingSpotOrderForAddressResponse) Marshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryPendingSpotOrderForAddressResponse) MarshalTo ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPendingSpotOrderForAddressResponse) MarshalToSizedBuffer ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPendingSpotOrderForAddressResponse) ProtoMessage ¶ added in v0.48.0
func (*QueryPendingSpotOrderForAddressResponse) ProtoMessage()
func (*QueryPendingSpotOrderForAddressResponse) Reset ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) Reset()
func (*QueryPendingSpotOrderForAddressResponse) Size ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) Size() (n int)
func (*QueryPendingSpotOrderForAddressResponse) String ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) String() string
func (*QueryPendingSpotOrderForAddressResponse) Unmarshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryPendingSpotOrderForAddressResponse) XXX_DiscardUnknown ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) XXX_DiscardUnknown()
func (*QueryPendingSpotOrderForAddressResponse) XXX_Marshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPendingSpotOrderForAddressResponse) XXX_Merge ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) XXX_Merge(src proto.Message)
func (*QueryPendingSpotOrderForAddressResponse) XXX_Size ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) XXX_Size() int
func (*QueryPendingSpotOrderForAddressResponse) XXX_Unmarshal ¶ added in v0.48.0
func (m *QueryPendingSpotOrderForAddressResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of PendingSpotOrder items. PendingSpotOrder(context.Context, *QueryGetPendingSpotOrderRequest) (*QueryGetPendingSpotOrderResponse, error) PendingSpotOrderAll(context.Context, *QueryAllPendingSpotOrderRequest) (*QueryAllPendingSpotOrderResponse, error) // Queries a list of PendingPerpetualOrder items. PendingPerpetualOrder(context.Context, *QueryGetPendingPerpetualOrderRequest) (*QueryGetPendingPerpetualOrderResponse, error) PendingPerpetualOrderAll(context.Context, *QueryAllPendingPerpetualOrderRequest) (*QueryAllPendingPerpetualOrderResponse, error) // Queries a list of PendingPerpetualOrderForAddress items. PendingPerpetualOrderForAddress(context.Context, *QueryPendingPerpetualOrderForAddressRequest) (*QueryPendingPerpetualOrderForAddressResponse, error) // Queries a list of PendingSpotOrderForAddress items. PendingSpotOrderForAddress(context.Context, *QueryPendingSpotOrderForAddressRequest) (*QueryPendingSpotOrderForAddressResponse, error) }
QueryServer is the server API for Query service.
type SpotOrder ¶ added in v0.46.0
type SpotOrder struct { OrderType SpotOrderType `protobuf:"varint,1,opt,name=order_type,json=orderType,proto3,enum=elys.tradeshield.SpotOrderType" json:"order_type,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` OrderPrice *OrderPrice `protobuf:"bytes,3,opt,name=order_price,json=orderPrice,proto3" json:"order_price,omitempty"` OrderAmount types.Coin `protobuf:"bytes,4,opt,name=order_amount,json=orderAmount,proto3" json:"order_amount"` OwnerAddress string `protobuf:"bytes,5,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OrderTargetDenom string `protobuf:"bytes,6,opt,name=order_target_denom,json=orderTargetDenom,proto3" json:"order_target_denom,omitempty"` Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"` Date *Date `protobuf:"bytes,8,opt,name=date,proto3" json:"date,omitempty"` }
func (*SpotOrder) Descriptor ¶ added in v0.46.0
func (*SpotOrder) GetOrderAmount ¶ added in v0.46.0
func (*SpotOrder) GetOrderId ¶ added in v0.46.0
func (*SpotOrder) GetOrderPrice ¶ added in v0.46.0
func (m *SpotOrder) GetOrderPrice() *OrderPrice
func (*SpotOrder) GetOrderTargetDenom ¶ added in v0.46.0
func (*SpotOrder) GetOrderType ¶ added in v0.46.0
func (m *SpotOrder) GetOrderType() SpotOrderType
func (*SpotOrder) GetOwnerAddress ¶ added in v0.46.0
func (*SpotOrder) MarshalToSizedBuffer ¶ added in v0.46.0
func (*SpotOrder) ProtoMessage ¶ added in v0.46.0
func (*SpotOrder) ProtoMessage()
func (*SpotOrder) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *SpotOrder) XXX_DiscardUnknown()
func (*SpotOrder) XXX_Marshal ¶ added in v0.46.0
func (*SpotOrder) XXX_Unmarshal ¶ added in v0.46.0
type SpotOrderType ¶ added in v0.46.0
type SpotOrderType int32
Spot order
const ( SpotOrderType_STOPLOSS SpotOrderType = 0 SpotOrderType_LIMITSELL SpotOrderType = 1 SpotOrderType_LIMITBUY SpotOrderType = 2 SpotOrderType_MARKETBUY SpotOrderType = 3 )
func (SpotOrderType) EnumDescriptor ¶ added in v0.46.0
func (SpotOrderType) EnumDescriptor() ([]byte, []int)
func (SpotOrderType) String ¶ added in v0.46.0
func (x SpotOrderType) String() string
type TierKeeper ¶ added in v0.46.0
type TierKeeper interface { GetMembershipTier(ctx sdk.Context, user sdk.AccAddress) (total_portfolio sdk.Dec, tier string, discount uint64) CalculateUSDValue(ctx sdk.Context, denom string, amount sdk.Int) sdk.Dec }
TierKeeper defines the expected interface needed to get tier information
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelPerpetualOrders ¶ added in v0.48.0
func (*UnimplementedMsgServer) CancelPerpetualOrders(ctx context.Context, req *MsgCancelPerpetualOrders) (*MsgCancelPerpetualOrdersResponse, error)
func (*UnimplementedMsgServer) CancelSpotOrders ¶ added in v0.48.0
func (*UnimplementedMsgServer) CancelSpotOrders(ctx context.Context, req *MsgCancelSpotOrders) (*MsgCancelSpotOrdersResponse, error)
func (*UnimplementedMsgServer) CreatePendingPerpetualOrder ¶ added in v0.46.0
func (*UnimplementedMsgServer) CreatePendingPerpetualOrder(ctx context.Context, req *MsgCreatePendingPerpetualOrder) (*MsgCreatePendingPerpetualOrderResponse, error)
func (*UnimplementedMsgServer) CreatePendingSpotOrder ¶ added in v0.46.0
func (*UnimplementedMsgServer) CreatePendingSpotOrder(ctx context.Context, req *MsgCreatePendingSpotOrder) (*MsgCreatePendingSpotOrderResponse, error)
func (*UnimplementedMsgServer) ExecuteOrders ¶ added in v0.46.0
func (*UnimplementedMsgServer) ExecuteOrders(ctx context.Context, req *MsgExecuteOrders) (*MsgExecuteOrdersResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.46.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpdatePendingPerpetualOrder ¶ added in v0.46.0
func (*UnimplementedMsgServer) UpdatePendingPerpetualOrder(ctx context.Context, req *MsgUpdatePendingPerpetualOrder) (*MsgUpdatePendingPerpetualOrderResponse, error)
func (*UnimplementedMsgServer) UpdatePendingSpotOrder ¶ added in v0.46.0
func (*UnimplementedMsgServer) UpdatePendingSpotOrder(ctx context.Context, req *MsgUpdatePendingSpotOrder) (*MsgUpdatePendingSpotOrderResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PendingPerpetualOrder ¶ added in v0.46.0
func (*UnimplementedQueryServer) PendingPerpetualOrder(ctx context.Context, req *QueryGetPendingPerpetualOrderRequest) (*QueryGetPendingPerpetualOrderResponse, error)
func (*UnimplementedQueryServer) PendingPerpetualOrderAll ¶ added in v0.46.0
func (*UnimplementedQueryServer) PendingPerpetualOrderAll(ctx context.Context, req *QueryAllPendingPerpetualOrderRequest) (*QueryAllPendingPerpetualOrderResponse, error)
func (*UnimplementedQueryServer) PendingPerpetualOrderForAddress ¶ added in v0.48.0
func (*UnimplementedQueryServer) PendingPerpetualOrderForAddress(ctx context.Context, req *QueryPendingPerpetualOrderForAddressRequest) (*QueryPendingPerpetualOrderForAddressResponse, error)
func (*UnimplementedQueryServer) PendingSpotOrder ¶ added in v0.46.0
func (*UnimplementedQueryServer) PendingSpotOrder(ctx context.Context, req *QueryGetPendingSpotOrderRequest) (*QueryGetPendingSpotOrderResponse, error)
func (*UnimplementedQueryServer) PendingSpotOrderAll ¶ added in v0.46.0
func (*UnimplementedQueryServer) PendingSpotOrderAll(ctx context.Context, req *QueryAllPendingSpotOrderRequest) (*QueryAllPendingSpotOrderResponse, error)
func (*UnimplementedQueryServer) PendingSpotOrderForAddress ¶ added in v0.48.0
func (*UnimplementedQueryServer) PendingSpotOrderForAddress(ctx context.Context, req *QueryPendingSpotOrderForAddressRequest) (*QueryPendingSpotOrderForAddressResponse, error)
Source Files ¶
- codec.go
- errors.go
- events.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- keys.go
- message_execute_orders.go
- message_update_params.go
- messages_pending_perpetual_order.go
- messages_pending_spot_order.go
- params.go
- params.pb.go
- pending_perpetual_order.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go
- types.pb.go