Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckLegacyDecNilAndNegative(value sdkmath.LegacyDec, name string) error
- func DecodeUint64Slice(bz []byte) ([]uint64, error)
- func EmitCancelPerpetualOrderEvent(ctx sdk.Context, order PerpetualOrder)
- func EmitCloseSpotOrderEvent(ctx sdk.Context, order SpotOrder)
- func EncodeUint64Slice(slice []uint64) []byte
- func GenPerpKey(order PerpetualOrder) string
- func GenSpotKey(order SpotOrder) (string, error)
- func GetPerpOrderAddress(orderId uint64) sdk.AccAddress
- func GetSpotOrderAddress(orderId uint64) sdk.AccAddress
- func GetUint64Bytes(ID uint64) []byte
- func GetUint64FromBytes(bz []byte) uint64
- func KeyPrefix(p string) []byte
- func NewCancelPerpetualOrderEvt(order PerpetualOrder) sdk.Event
- func NewCloseSpotOrderEvt(order SpotOrder) sdk.Event
- 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) GetPositionSize() types.Coin
- 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 MsgCancelPerpetualOrder
- func (*MsgCancelPerpetualOrder) Descriptor() ([]byte, []int)
- func (m *MsgCancelPerpetualOrder) GetOrderId() uint64
- func (m *MsgCancelPerpetualOrder) GetOwnerAddress() string
- func (m *MsgCancelPerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelPerpetualOrder) ProtoMessage()
- func (m *MsgCancelPerpetualOrder) Reset()
- func (m *MsgCancelPerpetualOrder) Size() (n int)
- func (m *MsgCancelPerpetualOrder) String() string
- func (m *MsgCancelPerpetualOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCancelPerpetualOrder) ValidateBasic() error
- func (m *MsgCancelPerpetualOrder) XXX_DiscardUnknown()
- func (m *MsgCancelPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelPerpetualOrder) XXX_Merge(src proto.Message)
- func (m *MsgCancelPerpetualOrder) XXX_Size() int
- func (m *MsgCancelPerpetualOrder) XXX_Unmarshal(b []byte) error
- type MsgCancelPerpetualOrderResponse
- func (*MsgCancelPerpetualOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelPerpetualOrderResponse) GetOrderId() uint64
- func (m *MsgCancelPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelPerpetualOrderResponse) ProtoMessage()
- func (m *MsgCancelPerpetualOrderResponse) Reset()
- func (m *MsgCancelPerpetualOrderResponse) Size() (n int)
- func (m *MsgCancelPerpetualOrderResponse) String() string
- func (m *MsgCancelPerpetualOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelPerpetualOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCancelPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelPerpetualOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelPerpetualOrderResponse) XXX_Size() int
- func (m *MsgCancelPerpetualOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelPerpetualOrders
- func (*MsgCancelPerpetualOrders) Descriptor() ([]byte, []int)
- func (m *MsgCancelPerpetualOrders) GetOrderIds() []uint64
- func (m *MsgCancelPerpetualOrders) GetOwnerAddress() string
- 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 (m *MsgCancelPerpetualOrders) Size() (n int)
- func (m *MsgCancelPerpetualOrders) String() 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 MsgCancelSpotOrder
- func (*MsgCancelSpotOrder) Descriptor() ([]byte, []int)
- func (m *MsgCancelSpotOrder) GetOrderId() uint64
- func (m *MsgCancelSpotOrder) GetOwnerAddress() string
- func (m *MsgCancelSpotOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelSpotOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelSpotOrder) ProtoMessage()
- func (m *MsgCancelSpotOrder) Reset()
- func (m *MsgCancelSpotOrder) Size() (n int)
- func (m *MsgCancelSpotOrder) String() string
- func (m *MsgCancelSpotOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCancelSpotOrder) ValidateBasic() error
- func (m *MsgCancelSpotOrder) XXX_DiscardUnknown()
- func (m *MsgCancelSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelSpotOrder) XXX_Merge(src proto.Message)
- func (m *MsgCancelSpotOrder) XXX_Size() int
- func (m *MsgCancelSpotOrder) XXX_Unmarshal(b []byte) error
- type MsgCancelSpotOrderResponse
- func (*MsgCancelSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelSpotOrderResponse) GetOrderId() uint64
- func (m *MsgCancelSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelSpotOrderResponse) ProtoMessage()
- func (m *MsgCancelSpotOrderResponse) Reset()
- func (m *MsgCancelSpotOrderResponse) Size() (n int)
- func (m *MsgCancelSpotOrderResponse) String() string
- func (m *MsgCancelSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelSpotOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCancelSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelSpotOrderResponse) XXX_Size() int
- func (m *MsgCancelSpotOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelSpotOrders
- func (*MsgCancelSpotOrders) Descriptor() ([]byte, []int)
- func (m *MsgCancelSpotOrders) GetCreator() string
- 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 (m *MsgCancelSpotOrders) Size() (n int)
- func (m *MsgCancelSpotOrders) String() 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 MsgCreatePerpetualCloseOrder
- func (*MsgCreatePerpetualCloseOrder) Descriptor() ([]byte, []int)
- func (m *MsgCreatePerpetualCloseOrder) GetOwnerAddress() string
- func (m *MsgCreatePerpetualCloseOrder) GetPositionId() uint64
- func (m *MsgCreatePerpetualCloseOrder) GetTriggerPrice() TriggerPrice
- func (m *MsgCreatePerpetualCloseOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePerpetualCloseOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePerpetualCloseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePerpetualCloseOrder) ProtoMessage()
- func (m *MsgCreatePerpetualCloseOrder) Reset()
- func (m *MsgCreatePerpetualCloseOrder) Size() (n int)
- func (m *MsgCreatePerpetualCloseOrder) String() string
- func (m *MsgCreatePerpetualCloseOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePerpetualCloseOrder) ValidateBasic() error
- func (m *MsgCreatePerpetualCloseOrder) XXX_DiscardUnknown()
- func (m *MsgCreatePerpetualCloseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePerpetualCloseOrder) XXX_Merge(src proto.Message)
- func (m *MsgCreatePerpetualCloseOrder) XXX_Size() int
- func (m *MsgCreatePerpetualCloseOrder) XXX_Unmarshal(b []byte) error
- type MsgCreatePerpetualCloseOrderResponse
- func (*MsgCreatePerpetualCloseOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePerpetualCloseOrderResponse) GetOrderId() uint64
- func (m *MsgCreatePerpetualCloseOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePerpetualCloseOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePerpetualCloseOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePerpetualCloseOrderResponse) ProtoMessage()
- func (m *MsgCreatePerpetualCloseOrderResponse) Reset()
- func (m *MsgCreatePerpetualCloseOrderResponse) Size() (n int)
- func (m *MsgCreatePerpetualCloseOrderResponse) String() string
- func (m *MsgCreatePerpetualCloseOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePerpetualCloseOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Size() int
- func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePerpetualOpenOrder
- func (*MsgCreatePerpetualOpenOrder) Descriptor() ([]byte, []int)
- func (m *MsgCreatePerpetualOpenOrder) GetCollateral() types.Coin
- func (m *MsgCreatePerpetualOpenOrder) GetOwnerAddress() string
- func (m *MsgCreatePerpetualOpenOrder) GetPoolId() uint64
- func (m *MsgCreatePerpetualOpenOrder) GetPosition() PerpetualPosition
- func (m *MsgCreatePerpetualOpenOrder) GetTradingAsset() string
- func (m *MsgCreatePerpetualOpenOrder) GetTriggerPrice() TriggerPrice
- func (m *MsgCreatePerpetualOpenOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePerpetualOpenOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePerpetualOpenOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePerpetualOpenOrder) ProtoMessage()
- func (m *MsgCreatePerpetualOpenOrder) Reset()
- func (m *MsgCreatePerpetualOpenOrder) Size() (n int)
- func (m *MsgCreatePerpetualOpenOrder) String() string
- func (m *MsgCreatePerpetualOpenOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePerpetualOpenOrder) ValidateBasic() error
- func (m *MsgCreatePerpetualOpenOrder) XXX_DiscardUnknown()
- func (m *MsgCreatePerpetualOpenOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePerpetualOpenOrder) XXX_Merge(src proto.Message)
- func (m *MsgCreatePerpetualOpenOrder) XXX_Size() int
- func (m *MsgCreatePerpetualOpenOrder) XXX_Unmarshal(b []byte) error
- type MsgCreatePerpetualOpenOrderResponse
- func (*MsgCreatePerpetualOpenOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePerpetualOpenOrderResponse) GetOrderId() uint64
- func (m *MsgCreatePerpetualOpenOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePerpetualOpenOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePerpetualOpenOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePerpetualOpenOrderResponse) ProtoMessage()
- func (m *MsgCreatePerpetualOpenOrderResponse) Reset()
- func (m *MsgCreatePerpetualOpenOrderResponse) Size() (n int)
- func (m *MsgCreatePerpetualOpenOrderResponse) String() string
- func (m *MsgCreatePerpetualOpenOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePerpetualOpenOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Size() int
- func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateSpotOrder
- func (*MsgCreateSpotOrder) Descriptor() ([]byte, []int)
- func (m *MsgCreateSpotOrder) GetOrderAmount() types.Coin
- func (m *MsgCreateSpotOrder) GetOrderPrice() OrderPrice
- func (m *MsgCreateSpotOrder) GetOrderTargetDenom() string
- func (m *MsgCreateSpotOrder) GetOrderType() SpotOrderType
- func (m *MsgCreateSpotOrder) GetOwnerAddress() string
- func (m *MsgCreateSpotOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSpotOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSpotOrder) ProtoMessage()
- func (m *MsgCreateSpotOrder) Reset()
- func (m *MsgCreateSpotOrder) Size() (n int)
- func (m *MsgCreateSpotOrder) String() string
- func (m *MsgCreateSpotOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateSpotOrder) ValidateBasic() error
- func (m *MsgCreateSpotOrder) XXX_DiscardUnknown()
- func (m *MsgCreateSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSpotOrder) XXX_Merge(src proto.Message)
- func (m *MsgCreateSpotOrder) XXX_Size() int
- func (m *MsgCreateSpotOrder) XXX_Unmarshal(b []byte) error
- type MsgCreateSpotOrderResponse
- func (*MsgCreateSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSpotOrderResponse) GetOrderId() uint64
- func (m *MsgCreateSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSpotOrderResponse) ProtoMessage()
- func (m *MsgCreateSpotOrderResponse) Reset()
- func (m *MsgCreateSpotOrderResponse) Size() (n int)
- func (m *MsgCreateSpotOrderResponse) String() string
- func (m *MsgCreateSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSpotOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSpotOrderResponse) XXX_Size() int
- func (m *MsgCreateSpotOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgExecuteOrders
- func (*MsgExecuteOrders) Descriptor() ([]byte, []int)
- func (m *MsgExecuteOrders) GetCreator() string
- func (m *MsgExecuteOrders) GetPerpetualOrderIds() []uint64
- 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 (m *MsgExecuteOrders) Size() (n int)
- func (m *MsgExecuteOrders) String() 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 (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 (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() 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 MsgUpdatePerpetualOrder
- func (*MsgUpdatePerpetualOrder) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePerpetualOrder) GetOrderId() uint64
- func (m *MsgUpdatePerpetualOrder) GetOwnerAddress() string
- func (m *MsgUpdatePerpetualOrder) GetTriggerPrice() TriggerPrice
- func (m *MsgUpdatePerpetualOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePerpetualOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePerpetualOrder) ProtoMessage()
- func (m *MsgUpdatePerpetualOrder) Reset()
- func (m *MsgUpdatePerpetualOrder) Size() (n int)
- func (m *MsgUpdatePerpetualOrder) String() string
- func (m *MsgUpdatePerpetualOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdatePerpetualOrder) ValidateBasic() error
- func (m *MsgUpdatePerpetualOrder) XXX_DiscardUnknown()
- func (m *MsgUpdatePerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePerpetualOrder) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePerpetualOrder) XXX_Size() int
- func (m *MsgUpdatePerpetualOrder) XXX_Unmarshal(b []byte) error
- type MsgUpdatePerpetualOrderResponse
- func (*MsgUpdatePerpetualOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePerpetualOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePerpetualOrderResponse) ProtoMessage()
- func (m *MsgUpdatePerpetualOrderResponse) Reset()
- func (m *MsgUpdatePerpetualOrderResponse) Size() (n int)
- func (m *MsgUpdatePerpetualOrderResponse) String() string
- func (m *MsgUpdatePerpetualOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdatePerpetualOrderResponse) XXX_DiscardUnknown()
- func (m *MsgUpdatePerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePerpetualOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePerpetualOrderResponse) XXX_Size() int
- func (m *MsgUpdatePerpetualOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateSpotOrder
- func (*MsgUpdateSpotOrder) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSpotOrder) GetOrderId() uint64
- func (m *MsgUpdateSpotOrder) GetOrderPrice() OrderPrice
- func (m *MsgUpdateSpotOrder) GetOwnerAddress() string
- func (m *MsgUpdateSpotOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSpotOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSpotOrder) ProtoMessage()
- func (m *MsgUpdateSpotOrder) Reset()
- func (m *MsgUpdateSpotOrder) Size() (n int)
- func (m *MsgUpdateSpotOrder) String() string
- func (m *MsgUpdateSpotOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSpotOrder) ValidateBasic() error
- func (m *MsgUpdateSpotOrder) XXX_DiscardUnknown()
- func (m *MsgUpdateSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSpotOrder) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSpotOrder) XXX_Size() int
- func (m *MsgUpdateSpotOrder) XXX_Unmarshal(b []byte) error
- type MsgUpdateSpotOrderResponse
- func (*MsgUpdateSpotOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSpotOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSpotOrderResponse) ProtoMessage()
- func (m *MsgUpdateSpotOrderResponse) Reset()
- func (m *MsgUpdateSpotOrderResponse) Size() (n int)
- func (m *MsgUpdateSpotOrderResponse) String() string
- func (m *MsgUpdateSpotOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSpotOrderResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSpotOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSpotOrderResponse) XXX_Size() int
- func (m *MsgUpdateSpotOrderResponse) 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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 (p PerpetualOrder) GetOrderAddress() sdk.AccAddress
- func (m *PerpetualOrder) GetOrderId() uint64
- func (m *PerpetualOrder) GetOwnerAddress() string
- func (m *PerpetualOrder) GetPerpetualOrderType() PerpetualOrderType
- func (m *PerpetualOrder) GetPoolId() uint64
- func (m *PerpetualOrder) GetPosition() PerpetualPosition
- func (m *PerpetualOrder) GetPositionId() uint64
- func (m *PerpetualOrder) GetStatus() Status
- func (m *PerpetualOrder) GetTradingAsset() string
- func (m *PerpetualOrder) GetTriggerPrice() TriggerPrice
- 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 PerpetualOrderExtraInfo
- func (*PerpetualOrderExtraInfo) Descriptor() ([]byte, []int)
- func (m *PerpetualOrderExtraInfo) GetPerpetualOrder() *PerpetualOrder
- func (m *PerpetualOrderExtraInfo) GetPositionSize() types.Coin
- func (m *PerpetualOrderExtraInfo) Marshal() (dAtA []byte, err error)
- func (m *PerpetualOrderExtraInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PerpetualOrderExtraInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PerpetualOrderExtraInfo) ProtoMessage()
- func (m *PerpetualOrderExtraInfo) Reset()
- func (m *PerpetualOrderExtraInfo) Size() (n int)
- func (m *PerpetualOrderExtraInfo) String() string
- func (m *PerpetualOrderExtraInfo) Unmarshal(dAtA []byte) error
- func (m *PerpetualOrderExtraInfo) XXX_DiscardUnknown()
- func (m *PerpetualOrderExtraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PerpetualOrderExtraInfo) XXX_Merge(src proto.Message)
- func (m *PerpetualOrderExtraInfo) XXX_Size() int
- func (m *PerpetualOrderExtraInfo) 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() []PerpetualOrderExtraInfo
- 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() PerpetualOrderExtraInfo
- 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() []PerpetualOrderExtraInfo
- 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 (p SpotOrder) GetOrderAddress() sdk.AccAddress
- 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 TriggerPrice
- func (*TriggerPrice) Descriptor() ([]byte, []int)
- func (m *TriggerPrice) GetTradingAssetDenom() string
- func (m *TriggerPrice) Marshal() (dAtA []byte, err error)
- func (m *TriggerPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *TriggerPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TriggerPrice) ProtoMessage()
- func (m *TriggerPrice) Reset()
- func (m *TriggerPrice) Size() (n int)
- func (m *TriggerPrice) String() string
- func (m *TriggerPrice) Unmarshal(dAtA []byte) error
- func (m *TriggerPrice) XXX_DiscardUnknown()
- func (m *TriggerPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TriggerPrice) XXX_Merge(src proto.Message)
- func (m *TriggerPrice) XXX_Size() int
- func (m *TriggerPrice) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CancelPerpetualOrder(ctx context.Context, req *MsgCancelPerpetualOrder) (*MsgCancelPerpetualOrderResponse, error)
- func (*UnimplementedMsgServer) CancelPerpetualOrders(ctx context.Context, req *MsgCancelPerpetualOrders) (*MsgCancelPerpetualOrdersResponse, error)
- func (*UnimplementedMsgServer) CancelSpotOrder(ctx context.Context, req *MsgCancelSpotOrder) (*MsgCancelSpotOrderResponse, error)
- func (*UnimplementedMsgServer) CancelSpotOrders(ctx context.Context, req *MsgCancelSpotOrders) (*MsgCancelSpotOrdersResponse, error)
- func (*UnimplementedMsgServer) CreatePerpetualCloseOrder(ctx context.Context, req *MsgCreatePerpetualCloseOrder) (*MsgCreatePerpetualCloseOrderResponse, error)
- func (*UnimplementedMsgServer) CreatePerpetualOpenOrder(ctx context.Context, req *MsgCreatePerpetualOpenOrder) (*MsgCreatePerpetualOpenOrderResponse, error)
- func (*UnimplementedMsgServer) CreateSpotOrder(ctx context.Context, req *MsgCreateSpotOrder) (*MsgCreateSpotOrderResponse, error)
- func (*UnimplementedMsgServer) ExecuteOrders(ctx context.Context, req *MsgExecuteOrders) (*MsgExecuteOrdersResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdatePerpetualOrder(ctx context.Context, req *MsgUpdatePerpetualOrder) (*MsgUpdatePerpetualOrderResponse, error)
- func (*UnimplementedMsgServer) UpdateSpotOrder(ctx context.Context, req *MsgUpdateSpotOrder) (*MsgUpdateSpotOrderResponse, 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" TypeEvtCancelPerpetualOrder = "cancel_perpetual_order" TypeEvtExecuteOrders = "execute_orders" )
const ( // ModuleName defines the module name ModuleName = "tradeshield" // StoreKey defines the primary module store key StoreKey = ModuleName )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
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") ErrZeroMarketPrice = errors.Register(ModuleName, 1106, "market price is zero") )
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 ( ErrInvalidLengthOrder = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOrder = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOrder = fmt.Errorf("proto: unexpected end of group") )
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 PerpetualOrderType_name = map[int32]string{
0: "LIMITOPEN",
1: "LIMITCLOSE",
2: "STOPLOSSPERP",
}
var PerpetualOrderType_value = map[string]int32{
"LIMITOPEN": 0,
"LIMITCLOSE": 1,
"STOPLOSSPERP": 2,
}
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 CheckLegacyDecNilAndNegative ¶ added in v0.52.0
func DecodeUint64Slice ¶ added in v0.46.0
func EmitCancelPerpetualOrderEvent ¶ added in v0.49.4
func EmitCancelPerpetualOrderEvent(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
func GenSpotKey ¶ added in v0.46.0
func GetPerpOrderAddress ¶ added in v0.52.0
func GetPerpOrderAddress(orderId uint64) sdk.AccAddress
func GetSpotOrderAddress ¶ added in v0.52.0
func GetSpotOrderAddress(orderId uint64) sdk.AccAddress
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 NewCancelPerpetualOrderEvt ¶ added in v0.49.4
func NewCancelPerpetualOrderEvt(order PerpetualOrder) sdk.Event
func NewCloseSpotOrderEvt ¶ added in v0.48.0
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 ¶
type BankKeeper interface { SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins SendCoins(goCtx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error }
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 cosmossdk_io_math.LegacyDec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"` TakeProfitPrice cosmossdk_io_math.LegacyDec `` /* 137-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 cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */ PositionSize types.Coin `protobuf:"bytes,13,opt,name=position_size,json=positionSize,proto3" json:"position_size"` LiquidationPrice cosmossdk_io_math.LegacyDec `` /* 139-byte string literal not displayed */ FundingRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,15,opt,name=funding_rate,json=fundingRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"funding_rate"` BorrowInterestRate cosmossdk_io_math.LegacyDec `` /* 147-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) GetPositionSize ¶ added in v0.49.3
func (m *LegacyPerpetualOrder) GetPositionSize() types.Coin
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 MsgCancelPerpetualOrder ¶ added in v0.49.3
type MsgCancelPerpetualOrder 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"` }
func NewMsgCancelPerpetualOrder ¶ added in v0.49.3
func NewMsgCancelPerpetualOrder(ownerAddress string, orderId uint64) *MsgCancelPerpetualOrder
func (*MsgCancelPerpetualOrder) Descriptor ¶ added in v0.49.3
func (*MsgCancelPerpetualOrder) Descriptor() ([]byte, []int)
func (*MsgCancelPerpetualOrder) GetOrderId ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) GetOrderId() uint64
func (*MsgCancelPerpetualOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) GetOwnerAddress() string
func (*MsgCancelPerpetualOrder) Marshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) Marshal() (dAtA []byte, err error)
func (*MsgCancelPerpetualOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgCancelPerpetualOrder) ProtoMessage()
func (*MsgCancelPerpetualOrder) Reset ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) Reset()
func (*MsgCancelPerpetualOrder) Size ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) Size() (n int)
func (*MsgCancelPerpetualOrder) String ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) String() string
func (*MsgCancelPerpetualOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) Unmarshal(dAtA []byte) error
func (*MsgCancelPerpetualOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgCancelPerpetualOrder) ValidateBasic() error
func (*MsgCancelPerpetualOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) XXX_DiscardUnknown()
func (*MsgCancelPerpetualOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelPerpetualOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) XXX_Merge(src proto.Message)
func (*MsgCancelPerpetualOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) XXX_Size() int
func (*MsgCancelPerpetualOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrder) XXX_Unmarshal(b []byte) error
type MsgCancelPerpetualOrderResponse ¶ added in v0.49.3
type MsgCancelPerpetualOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCancelPerpetualOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgCancelPerpetualOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCancelPerpetualOrderResponse) GetOrderId ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) GetOrderId() uint64
func (*MsgCancelPerpetualOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelPerpetualOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelPerpetualOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgCancelPerpetualOrderResponse) ProtoMessage()
func (*MsgCancelPerpetualOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) Reset()
func (*MsgCancelPerpetualOrderResponse) Size ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) Size() (n int)
func (*MsgCancelPerpetualOrderResponse) String ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) String() string
func (*MsgCancelPerpetualOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelPerpetualOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) XXX_DiscardUnknown()
func (*MsgCancelPerpetualOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelPerpetualOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCancelPerpetualOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) XXX_Size() int
func (*MsgCancelPerpetualOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCancelPerpetualOrderResponse) 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) 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) 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) 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 MsgCancelSpotOrder ¶ added in v0.49.3
type MsgCancelSpotOrder 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"` }
func NewMsgCancelSpotOrder ¶ added in v0.49.3
func NewMsgCancelSpotOrder(ownerAddress string, orderId uint64) *MsgCancelSpotOrder
func (*MsgCancelSpotOrder) Descriptor ¶ added in v0.49.3
func (*MsgCancelSpotOrder) Descriptor() ([]byte, []int)
func (*MsgCancelSpotOrder) GetOrderId ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) GetOrderId() uint64
func (*MsgCancelSpotOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) GetOwnerAddress() string
func (*MsgCancelSpotOrder) Marshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) Marshal() (dAtA []byte, err error)
func (*MsgCancelSpotOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelSpotOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelSpotOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgCancelSpotOrder) ProtoMessage()
func (*MsgCancelSpotOrder) Reset ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) Reset()
func (*MsgCancelSpotOrder) Size ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) Size() (n int)
func (*MsgCancelSpotOrder) String ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) String() string
func (*MsgCancelSpotOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) Unmarshal(dAtA []byte) error
func (*MsgCancelSpotOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgCancelSpotOrder) ValidateBasic() error
func (*MsgCancelSpotOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) XXX_DiscardUnknown()
func (*MsgCancelSpotOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelSpotOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) XXX_Merge(src proto.Message)
func (*MsgCancelSpotOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) XXX_Size() int
func (*MsgCancelSpotOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrder) XXX_Unmarshal(b []byte) error
type MsgCancelSpotOrderResponse ¶ added in v0.49.3
type MsgCancelSpotOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCancelSpotOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgCancelSpotOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCancelSpotOrderResponse) GetOrderId ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) GetOrderId() uint64
func (*MsgCancelSpotOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelSpotOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelSpotOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgCancelSpotOrderResponse) ProtoMessage()
func (*MsgCancelSpotOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) Reset()
func (*MsgCancelSpotOrderResponse) Size ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) Size() (n int)
func (*MsgCancelSpotOrderResponse) String ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) String() string
func (*MsgCancelSpotOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) XXX_DiscardUnknown()
func (*MsgCancelSpotOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelSpotOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCancelSpotOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) XXX_Size() int
func (*MsgCancelSpotOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCancelSpotOrderResponse) 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) 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) 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) 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 { CreateSpotOrder(ctx context.Context, in *MsgCreateSpotOrder, opts ...grpc.CallOption) (*MsgCreateSpotOrderResponse, error) UpdateSpotOrder(ctx context.Context, in *MsgUpdateSpotOrder, opts ...grpc.CallOption) (*MsgUpdateSpotOrderResponse, error) CancelSpotOrder(ctx context.Context, in *MsgCancelSpotOrder, opts ...grpc.CallOption) (*MsgCancelSpotOrderResponse, error) CancelSpotOrders(ctx context.Context, in *MsgCancelSpotOrders, opts ...grpc.CallOption) (*MsgCancelSpotOrdersResponse, error) CreatePerpetualOpenOrder(ctx context.Context, in *MsgCreatePerpetualOpenOrder, opts ...grpc.CallOption) (*MsgCreatePerpetualOpenOrderResponse, error) CreatePerpetualCloseOrder(ctx context.Context, in *MsgCreatePerpetualCloseOrder, opts ...grpc.CallOption) (*MsgCreatePerpetualCloseOrderResponse, error) UpdatePerpetualOrder(ctx context.Context, in *MsgUpdatePerpetualOrder, opts ...grpc.CallOption) (*MsgUpdatePerpetualOrderResponse, error) CancelPerpetualOrder(ctx context.Context, in *MsgCancelPerpetualOrder, opts ...grpc.CallOption) (*MsgCancelPerpetualOrderResponse, 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) }
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 MsgCreatePerpetualCloseOrder ¶ added in v0.49.3
type MsgCreatePerpetualCloseOrder struct { OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` TriggerPrice TriggerPrice `protobuf:"bytes,2,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"` PositionId uint64 `protobuf:"varint,3,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` }
func NewMsgCreatePerpetualCloseOrder ¶ added in v0.49.3
func NewMsgCreatePerpetualCloseOrder( ownerAddress string, triggerPrice TriggerPrice, positionId uint64, ) *MsgCreatePerpetualCloseOrder
func (*MsgCreatePerpetualCloseOrder) Descriptor ¶ added in v0.49.3
func (*MsgCreatePerpetualCloseOrder) Descriptor() ([]byte, []int)
func (*MsgCreatePerpetualCloseOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) GetOwnerAddress() string
func (*MsgCreatePerpetualCloseOrder) GetPositionId ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) GetPositionId() uint64
func (*MsgCreatePerpetualCloseOrder) GetTriggerPrice ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) GetTriggerPrice() TriggerPrice
func (*MsgCreatePerpetualCloseOrder) Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) Marshal() (dAtA []byte, err error)
func (*MsgCreatePerpetualCloseOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePerpetualCloseOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePerpetualCloseOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgCreatePerpetualCloseOrder) ProtoMessage()
func (*MsgCreatePerpetualCloseOrder) Reset ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) Reset()
func (*MsgCreatePerpetualCloseOrder) Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) Size() (n int)
func (*MsgCreatePerpetualCloseOrder) String ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) String() string
func (*MsgCreatePerpetualCloseOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) Unmarshal(dAtA []byte) error
func (*MsgCreatePerpetualCloseOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgCreatePerpetualCloseOrder) ValidateBasic() error
func (*MsgCreatePerpetualCloseOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) XXX_DiscardUnknown()
func (*MsgCreatePerpetualCloseOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePerpetualCloseOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) XXX_Merge(src proto.Message)
func (*MsgCreatePerpetualCloseOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) XXX_Size() int
func (*MsgCreatePerpetualCloseOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrder) XXX_Unmarshal(b []byte) error
type MsgCreatePerpetualCloseOrderResponse ¶ added in v0.49.3
type MsgCreatePerpetualCloseOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCreatePerpetualCloseOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgCreatePerpetualCloseOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePerpetualCloseOrderResponse) GetOrderId ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) GetOrderId() uint64
func (*MsgCreatePerpetualCloseOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePerpetualCloseOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePerpetualCloseOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePerpetualCloseOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgCreatePerpetualCloseOrderResponse) ProtoMessage()
func (*MsgCreatePerpetualCloseOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) Reset()
func (*MsgCreatePerpetualCloseOrderResponse) Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) Size() (n int)
func (*MsgCreatePerpetualCloseOrderResponse) String ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) String() string
func (*MsgCreatePerpetualCloseOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePerpetualCloseOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) XXX_DiscardUnknown()
func (*MsgCreatePerpetualCloseOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePerpetualCloseOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePerpetualCloseOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Size() int
func (*MsgCreatePerpetualCloseOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePerpetualOpenOrder ¶ added in v0.49.3
type MsgCreatePerpetualOpenOrder struct { OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` TriggerPrice TriggerPrice `protobuf:"bytes,2,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"` Collateral types.Coin `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral"` TradingAsset string `protobuf:"bytes,4,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Position PerpetualPosition `protobuf:"varint,5,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"` Leverage cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"` TakeProfitPrice cosmossdk_io_math.LegacyDec `` /* 137-byte string literal not displayed */ StopLossPrice cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */ PoolId uint64 `protobuf:"varint,9,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` }
func NewMsgCreatePerpetualOpenOrder ¶ added in v0.49.3
func NewMsgCreatePerpetualOpenOrder( ownerAddress string, triggerPrice TriggerPrice, collateral sdk.Coin, tradingAsset string, position PerpetualPosition, leverage math.LegacyDec, takeProfitPrice math.LegacyDec, stopLossPrice math.LegacyDec, poolId uint64, ) *MsgCreatePerpetualOpenOrder
func (*MsgCreatePerpetualOpenOrder) Descriptor ¶ added in v0.49.3
func (*MsgCreatePerpetualOpenOrder) Descriptor() ([]byte, []int)
func (*MsgCreatePerpetualOpenOrder) GetCollateral ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) GetCollateral() types.Coin
func (*MsgCreatePerpetualOpenOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) GetOwnerAddress() string
func (*MsgCreatePerpetualOpenOrder) GetPoolId ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) GetPoolId() uint64
func (*MsgCreatePerpetualOpenOrder) GetPosition ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) GetPosition() PerpetualPosition
func (*MsgCreatePerpetualOpenOrder) GetTradingAsset ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) GetTradingAsset() string
func (*MsgCreatePerpetualOpenOrder) GetTriggerPrice ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) GetTriggerPrice() TriggerPrice
func (*MsgCreatePerpetualOpenOrder) Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) Marshal() (dAtA []byte, err error)
func (*MsgCreatePerpetualOpenOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePerpetualOpenOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePerpetualOpenOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgCreatePerpetualOpenOrder) ProtoMessage()
func (*MsgCreatePerpetualOpenOrder) Reset ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) Reset()
func (*MsgCreatePerpetualOpenOrder) Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) Size() (n int)
func (*MsgCreatePerpetualOpenOrder) String ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) String() string
func (*MsgCreatePerpetualOpenOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) Unmarshal(dAtA []byte) error
func (*MsgCreatePerpetualOpenOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgCreatePerpetualOpenOrder) ValidateBasic() error
func (*MsgCreatePerpetualOpenOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) XXX_DiscardUnknown()
func (*MsgCreatePerpetualOpenOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePerpetualOpenOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) XXX_Merge(src proto.Message)
func (*MsgCreatePerpetualOpenOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) XXX_Size() int
func (*MsgCreatePerpetualOpenOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrder) XXX_Unmarshal(b []byte) error
type MsgCreatePerpetualOpenOrderResponse ¶ added in v0.49.3
type MsgCreatePerpetualOpenOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCreatePerpetualOpenOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgCreatePerpetualOpenOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePerpetualOpenOrderResponse) GetOrderId ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) GetOrderId() uint64
func (*MsgCreatePerpetualOpenOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePerpetualOpenOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePerpetualOpenOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePerpetualOpenOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgCreatePerpetualOpenOrderResponse) ProtoMessage()
func (*MsgCreatePerpetualOpenOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) Reset()
func (*MsgCreatePerpetualOpenOrderResponse) Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) Size() (n int)
func (*MsgCreatePerpetualOpenOrderResponse) String ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) String() string
func (*MsgCreatePerpetualOpenOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePerpetualOpenOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) XXX_DiscardUnknown()
func (*MsgCreatePerpetualOpenOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePerpetualOpenOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePerpetualOpenOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Size() int
func (*MsgCreatePerpetualOpenOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Unmarshal(b []byte) error
type MsgCreateSpotOrder ¶ added in v0.49.3
type MsgCreateSpotOrder 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"` OrderAmount types.Coin `protobuf:"bytes,3,opt,name=order_amount,json=orderAmount,proto3" json:"order_amount"` 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 NewMsgCreateSpotOrder ¶ added in v0.49.3
func NewMsgCreateSpotOrder(ownerAddress string, orderType SpotOrderType, orderPrice OrderPrice, orderAmount sdk.Coin, orderTargetDenom string) *MsgCreateSpotOrder
func (*MsgCreateSpotOrder) Descriptor ¶ added in v0.49.3
func (*MsgCreateSpotOrder) Descriptor() ([]byte, []int)
func (*MsgCreateSpotOrder) GetOrderAmount ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) GetOrderAmount() types.Coin
func (*MsgCreateSpotOrder) GetOrderPrice ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) GetOrderPrice() OrderPrice
func (*MsgCreateSpotOrder) GetOrderTargetDenom ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) GetOrderTargetDenom() string
func (*MsgCreateSpotOrder) GetOrderType ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) GetOrderType() SpotOrderType
func (*MsgCreateSpotOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) GetOwnerAddress() string
func (*MsgCreateSpotOrder) Marshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) Marshal() (dAtA []byte, err error)
func (*MsgCreateSpotOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSpotOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSpotOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgCreateSpotOrder) ProtoMessage()
func (*MsgCreateSpotOrder) Reset ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) Reset()
func (*MsgCreateSpotOrder) Size ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) Size() (n int)
func (*MsgCreateSpotOrder) String ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) String() string
func (*MsgCreateSpotOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) Unmarshal(dAtA []byte) error
func (*MsgCreateSpotOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgCreateSpotOrder) ValidateBasic() error
func (*MsgCreateSpotOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) XXX_DiscardUnknown()
func (*MsgCreateSpotOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSpotOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) XXX_Merge(src proto.Message)
func (*MsgCreateSpotOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) XXX_Size() int
func (*MsgCreateSpotOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrder) XXX_Unmarshal(b []byte) error
type MsgCreateSpotOrderResponse ¶ added in v0.49.3
type MsgCreateSpotOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgCreateSpotOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgCreateSpotOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCreateSpotOrderResponse) GetOrderId ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) GetOrderId() uint64
func (*MsgCreateSpotOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateSpotOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSpotOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgCreateSpotOrderResponse) ProtoMessage()
func (*MsgCreateSpotOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) Reset()
func (*MsgCreateSpotOrderResponse) Size ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) Size() (n int)
func (*MsgCreateSpotOrderResponse) String ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) String() string
func (*MsgCreateSpotOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) XXX_DiscardUnknown()
func (*MsgCreateSpotOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSpotOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCreateSpotOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) XXX_Size() int
func (*MsgCreateSpotOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgCreateSpotOrderResponse) 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) 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) 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) 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 { CreateSpotOrder(context.Context, *MsgCreateSpotOrder) (*MsgCreateSpotOrderResponse, error) UpdateSpotOrder(context.Context, *MsgUpdateSpotOrder) (*MsgUpdateSpotOrderResponse, error) CancelSpotOrder(context.Context, *MsgCancelSpotOrder) (*MsgCancelSpotOrderResponse, error) CancelSpotOrders(context.Context, *MsgCancelSpotOrders) (*MsgCancelSpotOrdersResponse, error) CreatePerpetualOpenOrder(context.Context, *MsgCreatePerpetualOpenOrder) (*MsgCreatePerpetualOpenOrderResponse, error) CreatePerpetualCloseOrder(context.Context, *MsgCreatePerpetualCloseOrder) (*MsgCreatePerpetualCloseOrderResponse, error) UpdatePerpetualOrder(context.Context, *MsgUpdatePerpetualOrder) (*MsgUpdatePerpetualOrderResponse, error) CancelPerpetualOrder(context.Context, *MsgCancelPerpetualOrder) (*MsgCancelPerpetualOrderResponse, error) CancelPerpetualOrders(context.Context, *MsgCancelPerpetualOrders) (*MsgCancelPerpetualOrdersResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) ExecuteOrders(context.Context, *MsgExecuteOrders) (*MsgExecuteOrdersResponse, 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) 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) 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) 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 MsgUpdatePerpetualOrder ¶ added in v0.49.3
type MsgUpdatePerpetualOrder 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"` TriggerPrice TriggerPrice `protobuf:"bytes,3,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"` }
func NewMsgUpdatePerpetualOrder ¶ added in v0.49.3
func NewMsgUpdatePerpetualOrder(creator string, id uint64, triggerPrice TriggerPrice) *MsgUpdatePerpetualOrder
func (*MsgUpdatePerpetualOrder) Descriptor ¶ added in v0.49.3
func (*MsgUpdatePerpetualOrder) Descriptor() ([]byte, []int)
func (*MsgUpdatePerpetualOrder) GetOrderId ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) GetOrderId() uint64
func (*MsgUpdatePerpetualOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) GetOwnerAddress() string
func (*MsgUpdatePerpetualOrder) GetTriggerPrice ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) GetTriggerPrice() TriggerPrice
func (*MsgUpdatePerpetualOrder) Marshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePerpetualOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePerpetualOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePerpetualOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgUpdatePerpetualOrder) ProtoMessage()
func (*MsgUpdatePerpetualOrder) Reset ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) Reset()
func (*MsgUpdatePerpetualOrder) Size ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) Size() (n int)
func (*MsgUpdatePerpetualOrder) String ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) String() string
func (*MsgUpdatePerpetualOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) Unmarshal(dAtA []byte) error
func (*MsgUpdatePerpetualOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgUpdatePerpetualOrder) ValidateBasic() error
func (*MsgUpdatePerpetualOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) XXX_DiscardUnknown()
func (*MsgUpdatePerpetualOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePerpetualOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) XXX_Merge(src proto.Message)
func (*MsgUpdatePerpetualOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) XXX_Size() int
func (*MsgUpdatePerpetualOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrder) XXX_Unmarshal(b []byte) error
type MsgUpdatePerpetualOrderResponse ¶ added in v0.49.3
type MsgUpdatePerpetualOrderResponse struct { }
func (*MsgUpdatePerpetualOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgUpdatePerpetualOrderResponse) Descriptor() ([]byte, []int)
func (*MsgUpdatePerpetualOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePerpetualOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePerpetualOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePerpetualOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgUpdatePerpetualOrderResponse) ProtoMessage()
func (*MsgUpdatePerpetualOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) Reset()
func (*MsgUpdatePerpetualOrderResponse) Size ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) Size() (n int)
func (*MsgUpdatePerpetualOrderResponse) String ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) String() string
func (*MsgUpdatePerpetualOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdatePerpetualOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) XXX_DiscardUnknown()
func (*MsgUpdatePerpetualOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePerpetualOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) XXX_Merge(src proto.Message)
func (*MsgUpdatePerpetualOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) XXX_Size() int
func (*MsgUpdatePerpetualOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgUpdatePerpetualOrderResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateSpotOrder ¶ added in v0.49.3
type MsgUpdateSpotOrder 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"` }
func NewMsgUpdateSpotOrder ¶ added in v0.49.3
func NewMsgUpdateSpotOrder(creator string, id uint64, orderPrice OrderPrice) *MsgUpdateSpotOrder
func (*MsgUpdateSpotOrder) Descriptor ¶ added in v0.49.3
func (*MsgUpdateSpotOrder) Descriptor() ([]byte, []int)
func (*MsgUpdateSpotOrder) GetOrderId ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) GetOrderId() uint64
func (*MsgUpdateSpotOrder) GetOrderPrice ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) GetOrderPrice() OrderPrice
func (*MsgUpdateSpotOrder) GetOwnerAddress ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) GetOwnerAddress() string
func (*MsgUpdateSpotOrder) Marshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSpotOrder) MarshalTo ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSpotOrder) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSpotOrder) ProtoMessage ¶ added in v0.49.3
func (*MsgUpdateSpotOrder) ProtoMessage()
func (*MsgUpdateSpotOrder) Reset ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) Reset()
func (*MsgUpdateSpotOrder) Size ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) Size() (n int)
func (*MsgUpdateSpotOrder) String ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) String() string
func (*MsgUpdateSpotOrder) Unmarshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) Unmarshal(dAtA []byte) error
func (*MsgUpdateSpotOrder) ValidateBasic ¶ added in v0.49.3
func (msg *MsgUpdateSpotOrder) ValidateBasic() error
func (*MsgUpdateSpotOrder) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) XXX_DiscardUnknown()
func (*MsgUpdateSpotOrder) XXX_Marshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSpotOrder) XXX_Merge ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) XXX_Merge(src proto.Message)
func (*MsgUpdateSpotOrder) XXX_Size ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) XXX_Size() int
func (*MsgUpdateSpotOrder) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrder) XXX_Unmarshal(b []byte) error
type MsgUpdateSpotOrderResponse ¶ added in v0.49.3
type MsgUpdateSpotOrderResponse struct { }
func (*MsgUpdateSpotOrderResponse) Descriptor ¶ added in v0.49.3
func (*MsgUpdateSpotOrderResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSpotOrderResponse) Marshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSpotOrderResponse) MarshalTo ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSpotOrderResponse) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSpotOrderResponse) ProtoMessage ¶ added in v0.49.3
func (*MsgUpdateSpotOrderResponse) ProtoMessage()
func (*MsgUpdateSpotOrderResponse) Reset ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) Reset()
func (*MsgUpdateSpotOrderResponse) Size ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) Size() (n int)
func (*MsgUpdateSpotOrderResponse) String ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) String() string
func (*MsgUpdateSpotOrderResponse) Unmarshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSpotOrderResponse) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) XXX_DiscardUnknown()
func (*MsgUpdateSpotOrderResponse) XXX_Marshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSpotOrderResponse) XXX_Merge ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSpotOrderResponse) XXX_Size ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) XXX_Size() int
func (*MsgUpdateSpotOrderResponse) XXX_Unmarshal ¶ added in v0.49.3
func (m *MsgUpdateSpotOrderResponse) 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 cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" 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 cosmossdk_io_math.LegacyDec `` /* 138-byte string literal not displayed */ MarginError cosmossdk_io_math.LegacyDec `protobuf:"bytes,10,opt,name=margin_error,json=marginError,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"margin_error"` MinimumDeposit cosmossdk_io_math.Int `` /* 127-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) 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) (*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) GetParams(ctx sdk.Context) perpetualtypes.Params HandleOpenEstimation(ctx sdk.Context, req *perpetualtypes.QueryOpenEstimationRequest) (*perpetualtypes.QueryOpenEstimationResponse, error) HandleCloseEstimation(ctx sdk.Context, req *perpetualtypes.QueryCloseEstimationRequest) (res *perpetualtypes.QueryCloseEstimationResponse, err error) GetAssetPrice(ctx sdk.Context, asset string) (sdkmath.LegacyDec, error) GetMTPsForAddressWithPagination(ctx sdk.Context, mtpAddress sdk.AccAddress, pagination *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, 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 TriggerPrice `protobuf:"bytes,5,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"` 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 cosmossdk_io_math.LegacyDec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"` TakeProfitPrice cosmossdk_io_math.LegacyDec `` /* 137-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 cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */ PoolId uint64 `protobuf:"varint,13,opt,name=poolId,proto3" json:"poolId,omitempty"` }
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) GetOrderAddress ¶ added in v0.52.0
func (p PerpetualOrder) GetOrderAddress() sdk.AccAddress
Get Perpetual Order address
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) GetPoolId ¶ added in v0.49.3
func (m *PerpetualOrder) GetPoolId() uint64
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) 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() TriggerPrice
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 PerpetualOrderExtraInfo ¶ added in v0.49.3
type PerpetualOrderExtraInfo struct { PerpetualOrder *PerpetualOrder `protobuf:"bytes,1,opt,name=perpetual_order,json=perpetualOrder,proto3" json:"perpetual_order,omitempty"` PositionSize types.Coin `protobuf:"bytes,2,opt,name=position_size,json=positionSize,proto3" json:"position_size"` LiquidationPrice cosmossdk_io_math.LegacyDec `` /* 138-byte string literal not displayed */ FundingRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=funding_rate,json=fundingRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"funding_rate"` BorrowInterestRate cosmossdk_io_math.LegacyDec `` /* 146-byte string literal not displayed */ }
func (*PerpetualOrderExtraInfo) Descriptor ¶ added in v0.49.3
func (*PerpetualOrderExtraInfo) Descriptor() ([]byte, []int)
func (*PerpetualOrderExtraInfo) GetPerpetualOrder ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) GetPerpetualOrder() *PerpetualOrder
func (*PerpetualOrderExtraInfo) GetPositionSize ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) GetPositionSize() types.Coin
func (*PerpetualOrderExtraInfo) Marshal ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) Marshal() (dAtA []byte, err error)
func (*PerpetualOrderExtraInfo) MarshalTo ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) MarshalTo(dAtA []byte) (int, error)
func (*PerpetualOrderExtraInfo) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PerpetualOrderExtraInfo) ProtoMessage ¶ added in v0.49.3
func (*PerpetualOrderExtraInfo) ProtoMessage()
func (*PerpetualOrderExtraInfo) Reset ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) Reset()
func (*PerpetualOrderExtraInfo) Size ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) Size() (n int)
func (*PerpetualOrderExtraInfo) String ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) String() string
func (*PerpetualOrderExtraInfo) Unmarshal ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) Unmarshal(dAtA []byte) error
func (*PerpetualOrderExtraInfo) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) XXX_DiscardUnknown()
func (*PerpetualOrderExtraInfo) XXX_Marshal ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PerpetualOrderExtraInfo) XXX_Merge ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) XXX_Merge(src proto.Message)
func (*PerpetualOrderExtraInfo) XXX_Size ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) XXX_Size() int
func (*PerpetualOrderExtraInfo) XXX_Unmarshal ¶ added in v0.49.3
func (m *PerpetualOrderExtraInfo) 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_STOPLOSSPERP PerpetualOrderType = 2 )
func GetPerpetualOrderTypeFromString ¶ added in v0.49.3
func GetPerpetualOrderTypeFromString(s string) PerpetualOrderType
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 []PerpetualOrderExtraInfo `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() []PerpetualOrderExtraInfo
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 PerpetualOrderExtraInfo `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() PerpetualOrderExtraInfo
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 []PerpetualOrderExtraInfo `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() []PerpetualOrderExtraInfo
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"` 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) GetOrderAddress ¶ added in v0.52.0
func (p SpotOrder) GetOrderAddress() sdk.AccAddress
Get Spot Order address
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 GetSpotOrderTypeFromString ¶ added in v0.49.3
func GetSpotOrderTypeFromString(s string) SpotOrderType
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 sdkmath.LegacyDec, tier tiertypes.MembershipTier) CalculateUSDValue(ctx sdk.Context, denom string, amount sdkmath.Int) sdkmath.LegacyDec }
TierKeeper defines the expected interface needed to get tier information
type TriggerPrice ¶ added in v0.49.3
type TriggerPrice struct { TradingAssetDenom string `protobuf:"bytes,1,opt,name=trading_asset_denom,json=tradingAssetDenom,proto3" json:"trading_asset_denom,omitempty"` Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` }
func (*TriggerPrice) Descriptor ¶ added in v0.49.3
func (*TriggerPrice) Descriptor() ([]byte, []int)
func (*TriggerPrice) GetTradingAssetDenom ¶ added in v0.49.3
func (m *TriggerPrice) GetTradingAssetDenom() string
func (*TriggerPrice) Marshal ¶ added in v0.49.3
func (m *TriggerPrice) Marshal() (dAtA []byte, err error)
func (*TriggerPrice) MarshalTo ¶ added in v0.49.3
func (m *TriggerPrice) MarshalTo(dAtA []byte) (int, error)
func (*TriggerPrice) MarshalToSizedBuffer ¶ added in v0.49.3
func (m *TriggerPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TriggerPrice) ProtoMessage ¶ added in v0.49.3
func (*TriggerPrice) ProtoMessage()
func (*TriggerPrice) Reset ¶ added in v0.49.3
func (m *TriggerPrice) Reset()
func (*TriggerPrice) Size ¶ added in v0.49.3
func (m *TriggerPrice) Size() (n int)
func (*TriggerPrice) String ¶ added in v0.49.3
func (m *TriggerPrice) String() string
func (*TriggerPrice) Unmarshal ¶ added in v0.49.3
func (m *TriggerPrice) Unmarshal(dAtA []byte) error
func (*TriggerPrice) XXX_DiscardUnknown ¶ added in v0.49.3
func (m *TriggerPrice) XXX_DiscardUnknown()
func (*TriggerPrice) XXX_Marshal ¶ added in v0.49.3
func (m *TriggerPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TriggerPrice) XXX_Merge ¶ added in v0.49.3
func (m *TriggerPrice) XXX_Merge(src proto.Message)
func (*TriggerPrice) XXX_Size ¶ added in v0.49.3
func (m *TriggerPrice) XXX_Size() int
func (*TriggerPrice) XXX_Unmarshal ¶ added in v0.49.3
func (m *TriggerPrice) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelPerpetualOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) CancelPerpetualOrder(ctx context.Context, req *MsgCancelPerpetualOrder) (*MsgCancelPerpetualOrderResponse, error)
func (*UnimplementedMsgServer) CancelPerpetualOrders ¶ added in v0.48.0
func (*UnimplementedMsgServer) CancelPerpetualOrders(ctx context.Context, req *MsgCancelPerpetualOrders) (*MsgCancelPerpetualOrdersResponse, error)
func (*UnimplementedMsgServer) CancelSpotOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) CancelSpotOrder(ctx context.Context, req *MsgCancelSpotOrder) (*MsgCancelSpotOrderResponse, error)
func (*UnimplementedMsgServer) CancelSpotOrders ¶ added in v0.48.0
func (*UnimplementedMsgServer) CancelSpotOrders(ctx context.Context, req *MsgCancelSpotOrders) (*MsgCancelSpotOrdersResponse, error)
func (*UnimplementedMsgServer) CreatePerpetualCloseOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) CreatePerpetualCloseOrder(ctx context.Context, req *MsgCreatePerpetualCloseOrder) (*MsgCreatePerpetualCloseOrderResponse, error)
func (*UnimplementedMsgServer) CreatePerpetualOpenOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) CreatePerpetualOpenOrder(ctx context.Context, req *MsgCreatePerpetualOpenOrder) (*MsgCreatePerpetualOpenOrderResponse, error)
func (*UnimplementedMsgServer) CreateSpotOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) CreateSpotOrder(ctx context.Context, req *MsgCreateSpotOrder) (*MsgCreateSpotOrderResponse, 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) UpdatePerpetualOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) UpdatePerpetualOrder(ctx context.Context, req *MsgUpdatePerpetualOrder) (*MsgUpdatePerpetualOrderResponse, error)
func (*UnimplementedMsgServer) UpdateSpotOrder ¶ added in v0.49.3
func (*UnimplementedMsgServer) UpdateSpotOrder(ctx context.Context, req *MsgUpdateSpotOrder) (*MsgUpdateSpotOrderResponse, 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
- order.go
- order.pb.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