Documentation ¶
Index ¶
- Variables
- func RegisterLiquidationServiceServer(s grpc1.Server, srv LiquidationServiceServer)
- type LiquidateSubaccountsRequest
- func (*LiquidateSubaccountsRequest) Descriptor() ([]byte, []int)
- func (m *LiquidateSubaccountsRequest) GetBlockHeight() uint32
- func (m *LiquidateSubaccountsRequest) GetLiquidatableSubaccountIds() []types.SubaccountId
- func (m *LiquidateSubaccountsRequest) GetNegativeTncSubaccountIds() []types.SubaccountId
- func (m *LiquidateSubaccountsRequest) GetSubaccountOpenPositionInfo() []types1.SubaccountOpenPositionInfo
- func (m *LiquidateSubaccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *LiquidateSubaccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidateSubaccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidateSubaccountsRequest) ProtoMessage()
- func (m *LiquidateSubaccountsRequest) Reset()
- func (m *LiquidateSubaccountsRequest) Size() (n int)
- func (m *LiquidateSubaccountsRequest) String() string
- func (m *LiquidateSubaccountsRequest) Unmarshal(dAtA []byte) error
- func (m *LiquidateSubaccountsRequest) XXX_DiscardUnknown()
- func (m *LiquidateSubaccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidateSubaccountsRequest) XXX_Merge(src proto.Message)
- func (m *LiquidateSubaccountsRequest) XXX_Size() int
- func (m *LiquidateSubaccountsRequest) XXX_Unmarshal(b []byte) error
- type LiquidateSubaccountsResponse
- func (*LiquidateSubaccountsResponse) Descriptor() ([]byte, []int)
- func (m *LiquidateSubaccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *LiquidateSubaccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidateSubaccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidateSubaccountsResponse) ProtoMessage()
- func (m *LiquidateSubaccountsResponse) Reset()
- func (m *LiquidateSubaccountsResponse) Size() (n int)
- func (m *LiquidateSubaccountsResponse) String() string
- func (m *LiquidateSubaccountsResponse) Unmarshal(dAtA []byte) error
- func (m *LiquidateSubaccountsResponse) XXX_DiscardUnknown()
- func (m *LiquidateSubaccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidateSubaccountsResponse) XXX_Merge(src proto.Message)
- func (m *LiquidateSubaccountsResponse) XXX_Size() int
- func (m *LiquidateSubaccountsResponse) XXX_Unmarshal(b []byte) error
- type LiquidationServiceClient
- type LiquidationServiceServer
- type UnimplementedLiquidationServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterLiquidationServiceServer ¶
func RegisterLiquidationServiceServer(s grpc1.Server, srv LiquidationServiceServer)
Types ¶
type LiquidateSubaccountsRequest ¶
type LiquidateSubaccountsRequest struct { // The block height at which the liquidation daemon is processing. BlockHeight uint32 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // The list of liquidatable subaccount ids. LiquidatableSubaccountIds []types.SubaccountId `` /* 128-byte string literal not displayed */ // The list of subaccount ids with negative total net collateral. NegativeTncSubaccountIds []types.SubaccountId `` /* 127-byte string literal not displayed */ // A map of perpetual id to subaccount open position info. SubaccountOpenPositionInfo []types1.SubaccountOpenPositionInfo `` /* 133-byte string literal not displayed */ }
LiquidateSubaccountsRequest is a request message that contains a list of subaccount ids that potentially need to be liquidated. The list of subaccount ids should not contain duplicates. The application should re-verify these subaccount ids against current state before liquidating their positions.
func (*LiquidateSubaccountsRequest) Descriptor ¶
func (*LiquidateSubaccountsRequest) Descriptor() ([]byte, []int)
func (*LiquidateSubaccountsRequest) GetBlockHeight ¶
func (m *LiquidateSubaccountsRequest) GetBlockHeight() uint32
func (*LiquidateSubaccountsRequest) GetLiquidatableSubaccountIds ¶
func (m *LiquidateSubaccountsRequest) GetLiquidatableSubaccountIds() []types.SubaccountId
func (*LiquidateSubaccountsRequest) GetNegativeTncSubaccountIds ¶
func (m *LiquidateSubaccountsRequest) GetNegativeTncSubaccountIds() []types.SubaccountId
func (*LiquidateSubaccountsRequest) GetSubaccountOpenPositionInfo ¶
func (m *LiquidateSubaccountsRequest) GetSubaccountOpenPositionInfo() []types1.SubaccountOpenPositionInfo
func (*LiquidateSubaccountsRequest) Marshal ¶
func (m *LiquidateSubaccountsRequest) Marshal() (dAtA []byte, err error)
func (*LiquidateSubaccountsRequest) MarshalTo ¶
func (m *LiquidateSubaccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*LiquidateSubaccountsRequest) MarshalToSizedBuffer ¶
func (m *LiquidateSubaccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidateSubaccountsRequest) ProtoMessage ¶
func (*LiquidateSubaccountsRequest) ProtoMessage()
func (*LiquidateSubaccountsRequest) Reset ¶
func (m *LiquidateSubaccountsRequest) Reset()
func (*LiquidateSubaccountsRequest) Size ¶
func (m *LiquidateSubaccountsRequest) Size() (n int)
func (*LiquidateSubaccountsRequest) String ¶
func (m *LiquidateSubaccountsRequest) String() string
func (*LiquidateSubaccountsRequest) Unmarshal ¶
func (m *LiquidateSubaccountsRequest) Unmarshal(dAtA []byte) error
func (*LiquidateSubaccountsRequest) XXX_DiscardUnknown ¶
func (m *LiquidateSubaccountsRequest) XXX_DiscardUnknown()
func (*LiquidateSubaccountsRequest) XXX_Marshal ¶
func (m *LiquidateSubaccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidateSubaccountsRequest) XXX_Merge ¶
func (m *LiquidateSubaccountsRequest) XXX_Merge(src proto.Message)
func (*LiquidateSubaccountsRequest) XXX_Size ¶
func (m *LiquidateSubaccountsRequest) XXX_Size() int
func (*LiquidateSubaccountsRequest) XXX_Unmarshal ¶
func (m *LiquidateSubaccountsRequest) XXX_Unmarshal(b []byte) error
type LiquidateSubaccountsResponse ¶
type LiquidateSubaccountsResponse struct { }
LiquidateSubaccountsResponse is a response message for LiquidateSubaccountsRequest.
func (*LiquidateSubaccountsResponse) Descriptor ¶
func (*LiquidateSubaccountsResponse) Descriptor() ([]byte, []int)
func (*LiquidateSubaccountsResponse) Marshal ¶
func (m *LiquidateSubaccountsResponse) Marshal() (dAtA []byte, err error)
func (*LiquidateSubaccountsResponse) MarshalTo ¶
func (m *LiquidateSubaccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*LiquidateSubaccountsResponse) MarshalToSizedBuffer ¶
func (m *LiquidateSubaccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidateSubaccountsResponse) ProtoMessage ¶
func (*LiquidateSubaccountsResponse) ProtoMessage()
func (*LiquidateSubaccountsResponse) Reset ¶
func (m *LiquidateSubaccountsResponse) Reset()
func (*LiquidateSubaccountsResponse) Size ¶
func (m *LiquidateSubaccountsResponse) Size() (n int)
func (*LiquidateSubaccountsResponse) String ¶
func (m *LiquidateSubaccountsResponse) String() string
func (*LiquidateSubaccountsResponse) Unmarshal ¶
func (m *LiquidateSubaccountsResponse) Unmarshal(dAtA []byte) error
func (*LiquidateSubaccountsResponse) XXX_DiscardUnknown ¶
func (m *LiquidateSubaccountsResponse) XXX_DiscardUnknown()
func (*LiquidateSubaccountsResponse) XXX_Marshal ¶
func (m *LiquidateSubaccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidateSubaccountsResponse) XXX_Merge ¶
func (m *LiquidateSubaccountsResponse) XXX_Merge(src proto.Message)
func (*LiquidateSubaccountsResponse) XXX_Size ¶
func (m *LiquidateSubaccountsResponse) XXX_Size() int
func (*LiquidateSubaccountsResponse) XXX_Unmarshal ¶
func (m *LiquidateSubaccountsResponse) XXX_Unmarshal(b []byte) error
type LiquidationServiceClient ¶
type LiquidationServiceClient interface { // Sends a list of subaccount ids that are potentially liquidatable. LiquidateSubaccounts(ctx context.Context, in *LiquidateSubaccountsRequest, opts ...grpc.CallOption) (*LiquidateSubaccountsResponse, error) }
LiquidationServiceClient is the client API for LiquidationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLiquidationServiceClient ¶
func NewLiquidationServiceClient(cc grpc1.ClientConn) LiquidationServiceClient
type LiquidationServiceServer ¶
type LiquidationServiceServer interface { // Sends a list of subaccount ids that are potentially liquidatable. LiquidateSubaccounts(context.Context, *LiquidateSubaccountsRequest) (*LiquidateSubaccountsResponse, error) }
LiquidationServiceServer is the server API for LiquidationService service.
type UnimplementedLiquidationServiceServer ¶
type UnimplementedLiquidationServiceServer struct { }
UnimplementedLiquidationServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLiquidationServiceServer) LiquidateSubaccounts ¶
func (*UnimplementedLiquidationServiceServer) LiquidateSubaccounts(ctx context.Context, req *LiquidateSubaccountsRequest) (*LiquidateSubaccountsResponse, error)