api

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLiquidation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLiquidation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLiquidation = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterLiquidationServiceServer

func RegisterLiquidationServiceServer(s grpc1.Server, srv LiquidationServiceServer)

Types

type LiquidateSubaccountsRequest

type LiquidateSubaccountsRequest struct {
	SubaccountIds []types.SubaccountId `protobuf:"bytes,1,rep,name=subaccount_ids,json=subaccountIds,proto3" json:"subaccount_ids"`
}

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) GetSubaccountIds

func (m *LiquidateSubaccountsRequest) GetSubaccountIds() []types.SubaccountId

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 (*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

Jump to

Keyboard shortcuts

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