serum

package
v0.0.0-...-1fb291d Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SelfTradeBehavior_name = map[int32]string{
		0: "DecrementTake",
		1: "CancelProvide",
		2: "AbortTransaction",
	}
	SelfTradeBehavior_value = map[string]int32{
		"DecrementTake":    0,
		"CancelProvide":    1,
		"AbortTransaction": 2,
	}
)

Enum value maps for SelfTradeBehavior.

View Source
var (
	OrderType_name = map[int32]string{
		0: "Limit",
		1: "ImmediateOrCancel",
		2: "PostOnly",
	}
	OrderType_value = map[string]int32{
		"Limit":             0,
		"ImmediateOrCancel": 1,
		"PostOnly":          2,
	}
)

Enum value maps for OrderType.

View Source
var Dex_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "serum.Dex",
	HandlerType: (*DexServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMarketPubkeys",
			Handler:    _Dex_GetMarketPubkeys_Handler,
		},
		{
			MethodName: "ListMarket",
			Handler:    _Dex_ListMarket_Handler,
		},
		{
			MethodName: "ConsumeEvents",
			Handler:    _Dex_ConsumeEvents_Handler,
		},
		{
			MethodName: "InitOpenOrder",
			Handler:    _Dex_InitOpenOrder_Handler,
		},
		{
			MethodName: "NewOrder",
			Handler:    _Dex_NewOrder_Handler,
		},
		{
			MethodName: "CancelOrder",
			Handler:    _Dex_CancelOrder_Handler,
		},
		{
			MethodName: "SettleFunds",
			Handler:    _Dex_SettleFunds_Handler,
		},
		{
			MethodName: "CloseOpenOrders",
			Handler:    _Dex_CloseOpenOrders_Handler,
		},
		{
			MethodName: "MatchOrders",
			Handler:    _Dex_MatchOrders_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "MonitorQueue",
			Handler:       _Dex_MonitorQueue_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "proto/serum.proto",
}

Dex_ServiceDesc is the grpc.ServiceDesc for Dex service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_serum_proto protoreflect.FileDescriptor

Functions

func RegisterDexServer

func RegisterDexServer(s grpc.ServiceRegistrar, srv DexServer)

Types

type Ask

type Ask struct {
	// contains filtered or unexported fields
}

func (*Ask) Descriptor deprecated

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

Deprecated: Use Ask.ProtoReflect.Descriptor instead.

func (*Ask) ProtoMessage

func (*Ask) ProtoMessage()

func (*Ask) ProtoReflect

func (x *Ask) ProtoReflect() protoreflect.Message

func (*Ask) Reset

func (x *Ask) Reset()

func (*Ask) String

func (x *Ask) String() string

type Bid

type Bid struct {
	// contains filtered or unexported fields
}

func (*Bid) Descriptor deprecated

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

Deprecated: Use Bid.ProtoReflect.Descriptor instead.

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) ProtoReflect

func (x *Bid) ProtoReflect() protoreflect.Message

func (*Bid) Reset

func (x *Bid) Reset()

func (*Bid) String

func (x *Bid) String() string

type CancelOrderRequest

type CancelOrderRequest struct {
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	Owner        *basic.Keypair   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Market       *MarketState     `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"`
	Orders       *basic.Pubkey    `protobuf:"bytes,4,opt,name=orders,proto3" json:"orders,omitempty"`
	Id           uint64           `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelOrderRequest) Descriptor deprecated

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

Deprecated: Use CancelOrderRequest.ProtoReflect.Descriptor instead.

func (*CancelOrderRequest) GetDexProgramId

func (x *CancelOrderRequest) GetDexProgramId() *basic.ProgramId

func (*CancelOrderRequest) GetId

func (x *CancelOrderRequest) GetId() uint64

func (*CancelOrderRequest) GetMarket

func (x *CancelOrderRequest) GetMarket() *MarketState

func (*CancelOrderRequest) GetOrders

func (x *CancelOrderRequest) GetOrders() *basic.Pubkey

func (*CancelOrderRequest) GetOwner

func (x *CancelOrderRequest) GetOwner() *basic.Keypair

func (*CancelOrderRequest) ProtoMessage

func (*CancelOrderRequest) ProtoMessage()

func (*CancelOrderRequest) ProtoReflect

func (x *CancelOrderRequest) ProtoReflect() protoreflect.Message

func (*CancelOrderRequest) Reset

func (x *CancelOrderRequest) Reset()

func (*CancelOrderRequest) String

func (x *CancelOrderRequest) String() string

type CloseOpenOrderRequest

type CloseOpenOrderRequest struct {
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	Owner        *basic.Keypair   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Market       *MarketState     `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"`
	Orders       *basic.Pubkey    `protobuf:"bytes,4,opt,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*CloseOpenOrderRequest) Descriptor deprecated

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

Deprecated: Use CloseOpenOrderRequest.ProtoReflect.Descriptor instead.

func (*CloseOpenOrderRequest) GetDexProgramId

func (x *CloseOpenOrderRequest) GetDexProgramId() *basic.ProgramId

func (*CloseOpenOrderRequest) GetMarket

func (x *CloseOpenOrderRequest) GetMarket() *MarketState

func (*CloseOpenOrderRequest) GetOrders

func (x *CloseOpenOrderRequest) GetOrders() *basic.Pubkey

func (*CloseOpenOrderRequest) GetOwner

func (x *CloseOpenOrderRequest) GetOwner() *basic.Keypair

func (*CloseOpenOrderRequest) ProtoMessage

func (*CloseOpenOrderRequest) ProtoMessage()

func (*CloseOpenOrderRequest) ProtoReflect

func (x *CloseOpenOrderRequest) ProtoReflect() protoreflect.Message

func (*CloseOpenOrderRequest) Reset

func (x *CloseOpenOrderRequest) Reset()

func (*CloseOpenOrderRequest) String

func (x *CloseOpenOrderRequest) String() string

type ConsumeEventUpdate

type ConsumeEventUpdate struct {
	CrankCount int64  `protobuf:"varint,1,opt,name=crank_count,json=crankCount,proto3" json:"crank_count,omitempty"`
	Status     string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsumeEventUpdate) Descriptor deprecated

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

Deprecated: Use ConsumeEventUpdate.ProtoReflect.Descriptor instead.

func (*ConsumeEventUpdate) GetCrankCount

func (x *ConsumeEventUpdate) GetCrankCount() int64

func (*ConsumeEventUpdate) GetStatus

func (x *ConsumeEventUpdate) GetStatus() string

func (*ConsumeEventUpdate) ProtoMessage

func (*ConsumeEventUpdate) ProtoMessage()

func (*ConsumeEventUpdate) ProtoReflect

func (x *ConsumeEventUpdate) ProtoReflect() protoreflect.Message

func (*ConsumeEventUpdate) Reset

func (x *ConsumeEventUpdate) Reset()

func (*ConsumeEventUpdate) String

func (x *ConsumeEventUpdate) String() string

type ConsumeEventsRequest

type ConsumeEventsRequest struct {

	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//: String (file path)
	Payer *basic.Keypair `protobuf:"bytes,2,opt,name=payer,proto3" json:"payer,omitempty"`
	//: Pubkey,
	Market *MarketState `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"`
	//: Pubkey,
	CoinWallet *basic.Pubkey `protobuf:"bytes,4,opt,name=coin_wallet,json=coinWallet,proto3" json:"coin_wallet,omitempty"`
	//: Pubkey,
	PcWallet *basic.Pubkey `protobuf:"bytes,5,opt,name=pc_wallet,json=pcWallet,proto3" json:"pc_wallet,omitempty"`
	//: usize,
	NumWorkers uint64 `protobuf:"varint,6,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty"`
	//: usize,
	EventsPerWorker uint64 `protobuf:"varint,7,opt,name=events_per_worker,json=eventsPerWorker,proto3" json:"events_per_worker,omitempty"`
	// num_accounts: Option<usize>,
	NumAccounts uint64 `protobuf:"varint,8,opt,name=num_accounts,json=numAccounts,proto3" json:"num_accounts,omitempty"`
	//: String,
	LogDirectory string `protobuf:"bytes,9,opt,name=log_directory,json=logDirectory,proto3" json:"log_directory,omitempty"`
	// : Option<u64>,
	MaxQLength uint64 `protobuf:"varint,10,opt,name=max_q_length,json=maxQLength,proto3" json:"max_q_length,omitempty"`
	//: Option<u64>,
	MaxWaitForEventsDelay uint64 `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConsumeEventsRequest) Descriptor deprecated

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

Deprecated: Use ConsumeEventsRequest.ProtoReflect.Descriptor instead.

func (*ConsumeEventsRequest) GetCoinWallet

func (x *ConsumeEventsRequest) GetCoinWallet() *basic.Pubkey

func (*ConsumeEventsRequest) GetDexProgramId

func (x *ConsumeEventsRequest) GetDexProgramId() *basic.ProgramId

func (*ConsumeEventsRequest) GetEventsPerWorker

func (x *ConsumeEventsRequest) GetEventsPerWorker() uint64

func (*ConsumeEventsRequest) GetLogDirectory

func (x *ConsumeEventsRequest) GetLogDirectory() string

func (*ConsumeEventsRequest) GetMarket

func (x *ConsumeEventsRequest) GetMarket() *MarketState

func (*ConsumeEventsRequest) GetMaxQLength

func (x *ConsumeEventsRequest) GetMaxQLength() uint64

func (*ConsumeEventsRequest) GetMaxWaitForEventsDelay

func (x *ConsumeEventsRequest) GetMaxWaitForEventsDelay() uint64

func (*ConsumeEventsRequest) GetNumAccounts

func (x *ConsumeEventsRequest) GetNumAccounts() uint64

func (*ConsumeEventsRequest) GetNumWorkers

func (x *ConsumeEventsRequest) GetNumWorkers() uint64

func (*ConsumeEventsRequest) GetPayer

func (x *ConsumeEventsRequest) GetPayer() *basic.Keypair

func (*ConsumeEventsRequest) GetPcWallet

func (x *ConsumeEventsRequest) GetPcWallet() *basic.Pubkey

func (*ConsumeEventsRequest) ProtoMessage

func (*ConsumeEventsRequest) ProtoMessage()

func (*ConsumeEventsRequest) ProtoReflect

func (x *ConsumeEventsRequest) ProtoReflect() protoreflect.Message

func (*ConsumeEventsRequest) Reset

func (x *ConsumeEventsRequest) Reset()

func (*ConsumeEventsRequest) String

func (x *ConsumeEventsRequest) String() string

type DexClient

type DexClient interface {
	GetMarketPubkeys(ctx context.Context, in *MarketRequest, opts ...grpc.CallOption) (*MarketPubkeys, error)
	ListMarket(ctx context.Context, in *ListMarketRequest, opts ...grpc.CallOption) (*ListMarketResponse, error)
	ConsumeEvents(ctx context.Context, in *ConsumeEventsRequest, opts ...grpc.CallOption) (*basic.SignedTx, error)
	InitOpenOrder(ctx context.Context, in *InitOpenOrderRequest, opts ...grpc.CallOption) (*basic.SignedTx, error)
	NewOrder(ctx context.Context, in *Order, opts ...grpc.CallOption) (*basic.SignedTx, error)
	CancelOrder(ctx context.Context, in *CancelOrderRequest, opts ...grpc.CallOption) (*basic.SignedTx, error)
	SettleFunds(ctx context.Context, in *SettleFundsRequest, opts ...grpc.CallOption) (*basic.SignedTx, error)
	CloseOpenOrders(ctx context.Context, in *CloseOpenOrderRequest, opts ...grpc.CallOption) (*basic.SignedTx, error)
	MatchOrders(ctx context.Context, in *MatchOrdersRequest, opts ...grpc.CallOption) (*basic.SignedTx, error)
	MonitorQueue(ctx context.Context, in *MonitorQueueRequest, opts ...grpc.CallOption) (Dex_MonitorQueueClient, error)
}

DexClient is the client API for Dex service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDexClient

func NewDexClient(cc grpc.ClientConnInterface) DexClient

type DexServer

DexServer is the server API for Dex service. All implementations must embed UnimplementedDexServer for forward compatibility

type Dex_MonitorQueueClient

type Dex_MonitorQueueClient interface {
	Recv() (*Event, error)
	grpc.ClientStream
}

type Dex_MonitorQueueServer

type Dex_MonitorQueueServer interface {
	Send(*Event) error
	grpc.ServerStream
}

type Event

type Event struct {

	// Types that are assignable to Event:
	//	*Event_Bid
	//	*Event_Ask
	Event isEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAsk

func (x *Event) GetAsk() *Ask

func (*Event) GetBid

func (x *Event) GetBid() *Bid

func (*Event) GetEvent

func (m *Event) GetEvent() isEvent_Event

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_Ask

type Event_Ask struct {
	Ask *Ask `protobuf:"bytes,2,opt,name=ask,proto3,oneof"`
}

type Event_Bid

type Event_Bid struct {
	Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3,oneof"`
}

type InitOpenOrderRequest

type InitOpenOrderRequest struct {
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	Owner        *basic.Keypair   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Market       *MarketState     `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"`
	Orders       *basic.Pubkey    `protobuf:"bytes,4,opt,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*InitOpenOrderRequest) Descriptor deprecated

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

Deprecated: Use InitOpenOrderRequest.ProtoReflect.Descriptor instead.

func (*InitOpenOrderRequest) GetDexProgramId

func (x *InitOpenOrderRequest) GetDexProgramId() *basic.ProgramId

func (*InitOpenOrderRequest) GetMarket

func (x *InitOpenOrderRequest) GetMarket() *MarketState

func (*InitOpenOrderRequest) GetOrders

func (x *InitOpenOrderRequest) GetOrders() *basic.Pubkey

func (*InitOpenOrderRequest) GetOwner

func (x *InitOpenOrderRequest) GetOwner() *basic.Keypair

func (*InitOpenOrderRequest) ProtoMessage

func (*InitOpenOrderRequest) ProtoMessage()

func (*InitOpenOrderRequest) ProtoReflect

func (x *InitOpenOrderRequest) ProtoReflect() protoreflect.Message

func (*InitOpenOrderRequest) Reset

func (x *InitOpenOrderRequest) Reset()

func (*InitOpenOrderRequest) String

func (x *InitOpenOrderRequest) String() string

type InitializeTokenAccount

type InitializeTokenAccount struct {

	//mint: Pubkey,
	Mint *basic.Pubkey `protobuf:"bytes,1,opt,name=mint,proto3" json:"mint,omitempty"`
	//owner_account: String,
	OwnerAccount *basic.Pubkey `protobuf:"bytes,2,opt,name=owner_account,json=ownerAccount,proto3" json:"owner_account,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeTokenAccount) Descriptor deprecated

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

Deprecated: Use InitializeTokenAccount.ProtoReflect.Descriptor instead.

func (*InitializeTokenAccount) GetMint

func (x *InitializeTokenAccount) GetMint() *basic.Pubkey

func (*InitializeTokenAccount) GetOwnerAccount

func (x *InitializeTokenAccount) GetOwnerAccount() *basic.Pubkey

func (*InitializeTokenAccount) ProtoMessage

func (*InitializeTokenAccount) ProtoMessage()

func (*InitializeTokenAccount) ProtoReflect

func (x *InitializeTokenAccount) ProtoReflect() protoreflect.Message

func (*InitializeTokenAccount) Reset

func (x *InitializeTokenAccount) Reset()

func (*InitializeTokenAccount) String

func (x *InitializeTokenAccount) String() string

type ListMarketRequest

type ListMarketRequest struct {

	//payer: String,
	Payer *basic.Keypair `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
	//dex_program_id: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,2,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//coin_mint: Pubkey,
	CoinMint *basic.Pubkey `protobuf:"bytes,3,opt,name=coin_mint,json=coinMint,proto3" json:"coin_mint,omitempty"`
	//pc_mint: Pubkey,
	PcMint *basic.Pubkey `protobuf:"bytes,4,opt,name=pc_mint,json=pcMint,proto3" json:"pc_mint,omitempty"`
	// coin_lot_size: Option<u64>,
	CoinLotSize uint64 `protobuf:"varint,5,opt,name=coin_lot_size,json=coinLotSize,proto3" json:"coin_lot_size,omitempty"`
	//pc_lot_size: Option<u64>,
	PcLotSize uint64 `protobuf:"varint,6,opt,name=pc_lot_size,json=pcLotSize,proto3" json:"pc_lot_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketRequest) Descriptor deprecated

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

Deprecated: Use ListMarketRequest.ProtoReflect.Descriptor instead.

func (*ListMarketRequest) GetCoinLotSize

func (x *ListMarketRequest) GetCoinLotSize() uint64

func (*ListMarketRequest) GetCoinMint

func (x *ListMarketRequest) GetCoinMint() *basic.Pubkey

func (*ListMarketRequest) GetDexProgramId

func (x *ListMarketRequest) GetDexProgramId() *basic.ProgramId

func (*ListMarketRequest) GetPayer

func (x *ListMarketRequest) GetPayer() *basic.Keypair

func (*ListMarketRequest) GetPcLotSize

func (x *ListMarketRequest) GetPcLotSize() uint64

func (*ListMarketRequest) GetPcMint

func (x *ListMarketRequest) GetPcMint() *basic.Pubkey

func (*ListMarketRequest) ProtoMessage

func (*ListMarketRequest) ProtoMessage()

func (*ListMarketRequest) ProtoReflect

func (x *ListMarketRequest) ProtoReflect() protoreflect.Message

func (*ListMarketRequest) Reset

func (x *ListMarketRequest) Reset()

func (*ListMarketRequest) String

func (x *ListMarketRequest) String() string

type ListMarketResponse

type ListMarketResponse struct {
	MarketPubkeys *MarketPubkeys  `protobuf:"bytes,1,opt,name=market_pubkeys,json=marketPubkeys,proto3" json:"market_pubkeys,omitempty"`
	Tx            *basic.SignedTx `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketResponse) Descriptor deprecated

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

Deprecated: Use ListMarketResponse.ProtoReflect.Descriptor instead.

func (*ListMarketResponse) GetMarketPubkeys

func (x *ListMarketResponse) GetMarketPubkeys() *MarketPubkeys

func (*ListMarketResponse) GetTx

func (x *ListMarketResponse) GetTx() *basic.SignedTx

func (*ListMarketResponse) ProtoMessage

func (*ListMarketResponse) ProtoMessage()

func (*ListMarketResponse) ProtoReflect

func (x *ListMarketResponse) ProtoReflect() protoreflect.Message

func (*ListMarketResponse) Reset

func (x *ListMarketResponse) Reset()

func (*ListMarketResponse) String

func (x *ListMarketResponse) String() string

type MarketPubkeys

type MarketPubkeys struct {
	Market         *basic.Pubkey `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	ReqQ           *basic.Pubkey `protobuf:"bytes,2,opt,name=req_q,json=reqQ,proto3" json:"req_q,omitempty"`
	EventQ         *basic.Pubkey `protobuf:"bytes,3,opt,name=event_q,json=eventQ,proto3" json:"event_q,omitempty"`
	Bids           *basic.Pubkey `protobuf:"bytes,4,opt,name=bids,proto3" json:"bids,omitempty"`
	Asks           *basic.Pubkey `protobuf:"bytes,5,opt,name=asks,proto3" json:"asks,omitempty"`
	CoinVault      *basic.Pubkey `protobuf:"bytes,6,opt,name=coin_vault,json=coinVault,proto3" json:"coin_vault,omitempty"`
	PcVault        *basic.Pubkey `protobuf:"bytes,7,opt,name=pc_vault,json=pcVault,proto3" json:"pc_vault,omitempty"`
	VaultSignerKey *basic.Pubkey `protobuf:"bytes,8,opt,name=vault_signer_key,json=vaultSignerKey,proto3" json:"vault_signer_key,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketPubkeys) Descriptor deprecated

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

Deprecated: Use MarketPubkeys.ProtoReflect.Descriptor instead.

func (*MarketPubkeys) GetAsks

func (x *MarketPubkeys) GetAsks() *basic.Pubkey

func (*MarketPubkeys) GetBids

func (x *MarketPubkeys) GetBids() *basic.Pubkey

func (*MarketPubkeys) GetCoinVault

func (x *MarketPubkeys) GetCoinVault() *basic.Pubkey

func (*MarketPubkeys) GetEventQ

func (x *MarketPubkeys) GetEventQ() *basic.Pubkey

func (*MarketPubkeys) GetMarket

func (x *MarketPubkeys) GetMarket() *basic.Pubkey

func (*MarketPubkeys) GetPcVault

func (x *MarketPubkeys) GetPcVault() *basic.Pubkey

func (*MarketPubkeys) GetReqQ

func (x *MarketPubkeys) GetReqQ() *basic.Pubkey

func (*MarketPubkeys) GetVaultSignerKey

func (x *MarketPubkeys) GetVaultSignerKey() *basic.Pubkey

func (*MarketPubkeys) ProtoMessage

func (*MarketPubkeys) ProtoMessage()

func (*MarketPubkeys) ProtoReflect

func (x *MarketPubkeys) ProtoReflect() protoreflect.Message

func (*MarketPubkeys) Reset

func (x *MarketPubkeys) Reset()

func (*MarketPubkeys) String

func (x *MarketPubkeys) String() string

type MarketRequest

type MarketRequest struct {
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	Market       *basic.Pubkey    `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketRequest) Descriptor deprecated

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

Deprecated: Use MarketRequest.ProtoReflect.Descriptor instead.

func (*MarketRequest) GetDexProgramId

func (x *MarketRequest) GetDexProgramId() *basic.ProgramId

func (*MarketRequest) GetMarket

func (x *MarketRequest) GetMarket() *basic.Pubkey

func (*MarketRequest) ProtoMessage

func (*MarketRequest) ProtoMessage()

func (*MarketRequest) ProtoReflect

func (x *MarketRequest) ProtoReflect() protoreflect.Message

func (*MarketRequest) Reset

func (x *MarketRequest) Reset()

func (*MarketRequest) String

func (x *MarketRequest) String() string

type MarketState

type MarketState struct {

	// Types that are assignable to Market:
	//	*MarketState_Id
	//	*MarketState_State
	Market isMarketState_Market `protobuf_oneof:"market"`
	// contains filtered or unexported fields
}

func (*MarketState) Descriptor deprecated

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

Deprecated: Use MarketState.ProtoReflect.Descriptor instead.

func (*MarketState) GetId

func (x *MarketState) GetId() *basic.Pubkey

func (*MarketState) GetMarket

func (m *MarketState) GetMarket() isMarketState_Market

func (*MarketState) GetState

func (x *MarketState) GetState() *MarketPubkeys

func (*MarketState) ProtoMessage

func (*MarketState) ProtoMessage()

func (*MarketState) ProtoReflect

func (x *MarketState) ProtoReflect() protoreflect.Message

func (*MarketState) Reset

func (x *MarketState) Reset()

func (*MarketState) String

func (x *MarketState) String() string

type MarketState_Id

type MarketState_Id struct {
	Id *basic.Pubkey `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type MarketState_State

type MarketState_State struct {
	State *MarketPubkeys `protobuf:"bytes,2,opt,name=state,proto3,oneof"`
}

type MatchOrdersRequest

type MatchOrdersRequest struct {

	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//    : String,
	Payer *basic.Keypair `protobuf:"bytes,2,opt,name=payer,proto3" json:"payer,omitempty"`
	//    : Pubkey,
	Market *MarketState `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"`
	//    : Pubkey,
	CoinWallet *basic.Pubkey `protobuf:"bytes,4,opt,name=coin_wallet,json=coinWallet,proto3" json:"coin_wallet,omitempty"`
	//    : Pubkey,
	PcWallet *basic.Pubkey `protobuf:"bytes,5,opt,name=pc_wallet,json=pcWallet,proto3" json:"pc_wallet,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchOrdersRequest) Descriptor deprecated

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

Deprecated: Use MatchOrdersRequest.ProtoReflect.Descriptor instead.

func (*MatchOrdersRequest) GetCoinWallet

func (x *MatchOrdersRequest) GetCoinWallet() *basic.Pubkey

func (*MatchOrdersRequest) GetDexProgramId

func (x *MatchOrdersRequest) GetDexProgramId() *basic.ProgramId

func (*MatchOrdersRequest) GetMarket

func (x *MatchOrdersRequest) GetMarket() *MarketState

func (*MatchOrdersRequest) GetPayer

func (x *MatchOrdersRequest) GetPayer() *basic.Keypair

func (*MatchOrdersRequest) GetPcWallet

func (x *MatchOrdersRequest) GetPcWallet() *basic.Pubkey

func (*MatchOrdersRequest) ProtoMessage

func (*MatchOrdersRequest) ProtoMessage()

func (*MatchOrdersRequest) ProtoReflect

func (x *MatchOrdersRequest) ProtoReflect() protoreflect.Message

func (*MatchOrdersRequest) Reset

func (x *MatchOrdersRequest) Reset()

func (*MatchOrdersRequest) String

func (x *MatchOrdersRequest) String() string

type MonitorQueueRequest

type MonitorQueueRequest struct {

	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//: Pubkey,
	Market *MarketState `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"`
	//: u16,
	Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*MonitorQueueRequest) Descriptor deprecated

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

Deprecated: Use MonitorQueueRequest.ProtoReflect.Descriptor instead.

func (*MonitorQueueRequest) GetDexProgramId

func (x *MonitorQueueRequest) GetDexProgramId() *basic.ProgramId

func (*MonitorQueueRequest) GetMarket

func (x *MonitorQueueRequest) GetMarket() *MarketState

func (*MonitorQueueRequest) GetPort

func (x *MonitorQueueRequest) GetPort() uint32

func (*MonitorQueueRequest) ProtoMessage

func (*MonitorQueueRequest) ProtoMessage()

func (*MonitorQueueRequest) ProtoReflect

func (x *MonitorQueueRequest) ProtoReflect() protoreflect.Message

func (*MonitorQueueRequest) Reset

func (x *MonitorQueueRequest) Reset()

func (*MonitorQueueRequest) String

func (x *MonitorQueueRequest) String() string

type NewOrderInstructionV3

type NewOrderInstructionV3 struct {

	// true=buy; false=sell;
	Side bool `protobuf:"varint,1,opt,name=side,proto3" json:"side,omitempty"`
	// non-zero
	LimitPrice uint64 `protobuf:"varint,2,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	// non-zero
	MaxCoinQty uint64 `protobuf:"varint,3,opt,name=max_coin_qty,json=maxCoinQty,proto3" json:"max_coin_qty,omitempty"`
	// non-zero
	MaxNativePcQtyIncludingFees uint64            `` /* 151-byte string literal not displayed */
	SelfTradeBehavior           SelfTradeBehavior `` /* 144-byte string literal not displayed */
	OrderType                   OrderType         `protobuf:"varint,6,opt,name=order_type,json=orderType,proto3,enum=serum.OrderType" json:"order_type,omitempty"`
	ClientOrderId               uint64            `protobuf:"varint,7,opt,name=client_order_id,json=clientOrderId,proto3" json:"client_order_id,omitempty"`
	// u16 limit
	Limit uint32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*NewOrderInstructionV3) Descriptor deprecated

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

Deprecated: Use NewOrderInstructionV3.ProtoReflect.Descriptor instead.

func (*NewOrderInstructionV3) GetClientOrderId

func (x *NewOrderInstructionV3) GetClientOrderId() uint64

func (*NewOrderInstructionV3) GetLimit

func (x *NewOrderInstructionV3) GetLimit() uint32

func (*NewOrderInstructionV3) GetLimitPrice

func (x *NewOrderInstructionV3) GetLimitPrice() uint64

func (*NewOrderInstructionV3) GetMaxCoinQty

func (x *NewOrderInstructionV3) GetMaxCoinQty() uint64

func (*NewOrderInstructionV3) GetMaxNativePcQtyIncludingFees

func (x *NewOrderInstructionV3) GetMaxNativePcQtyIncludingFees() uint64

func (*NewOrderInstructionV3) GetOrderType

func (x *NewOrderInstructionV3) GetOrderType() OrderType

func (*NewOrderInstructionV3) GetSelfTradeBehavior

func (x *NewOrderInstructionV3) GetSelfTradeBehavior() SelfTradeBehavior

func (*NewOrderInstructionV3) GetSide

func (x *NewOrderInstructionV3) GetSide() bool

func (*NewOrderInstructionV3) ProtoMessage

func (*NewOrderInstructionV3) ProtoMessage()

func (*NewOrderInstructionV3) ProtoReflect

func (x *NewOrderInstructionV3) ProtoReflect() protoreflect.Message

func (*NewOrderInstructionV3) Reset

func (x *NewOrderInstructionV3) Reset()

func (*NewOrderInstructionV3) String

func (x *NewOrderInstructionV3) String() string

type Order

type Order struct {

	// Types that are assignable to Order:
	//	*Order_V3
	Order isOrder_Order `protobuf_oneof:"order"`
	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,2,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//: String (file path)
	Payer  *basic.Keypair `protobuf:"bytes,3,opt,name=payer,proto3" json:"payer,omitempty"`
	Wallet *basic.Pubkey  `protobuf:"bytes,4,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Market *MarketState   `protobuf:"bytes,5,opt,name=market,proto3" json:"market,omitempty"`
	// optional
	Orders *basic.Pubkey `protobuf:"bytes,6,opt,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetDexProgramId

func (x *Order) GetDexProgramId() *basic.ProgramId

func (*Order) GetMarket

func (x *Order) GetMarket() *MarketState

func (*Order) GetOrder

func (m *Order) GetOrder() isOrder_Order

func (*Order) GetOrders

func (x *Order) GetOrders() *basic.Pubkey

func (*Order) GetPayer

func (x *Order) GetPayer() *basic.Keypair

func (*Order) GetV3

func (x *Order) GetV3() *NewOrderInstructionV3

func (*Order) GetWallet

func (x *Order) GetWallet() *basic.Pubkey

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type OrderStatus

type OrderStatus struct {
	StatusWithSlot *basic.TxStatusWithSlot `protobuf:"bytes,1,opt,name=status_with_slot,json=statusWithSlot,proto3" json:"status_with_slot,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderStatus) Descriptor deprecated

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

Deprecated: Use OrderStatus.ProtoReflect.Descriptor instead.

func (*OrderStatus) GetStatusWithSlot

func (x *OrderStatus) GetStatusWithSlot() *basic.TxStatusWithSlot

func (*OrderStatus) ProtoMessage

func (*OrderStatus) ProtoMessage()

func (*OrderStatus) ProtoReflect

func (x *OrderStatus) ProtoReflect() protoreflect.Message

func (*OrderStatus) Reset

func (x *OrderStatus) Reset()

func (*OrderStatus) String

func (x *OrderStatus) String() string

type OrderType

type OrderType int32
const (
	OrderType_Limit             OrderType = 0
	OrderType_ImmediateOrCancel OrderType = 1
	OrderType_PostOnly          OrderType = 2
)

func (OrderType) Descriptor

func (OrderType) Descriptor() protoreflect.EnumDescriptor

func (OrderType) Enum

func (x OrderType) Enum() *OrderType

func (OrderType) EnumDescriptor deprecated

func (OrderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderType.Descriptor instead.

func (OrderType) Number

func (x OrderType) Number() protoreflect.EnumNumber

func (OrderType) String

func (x OrderType) String() string

func (OrderType) Type

type Order_V3

type Order_V3 struct {
	V3 *NewOrderInstructionV3 `protobuf:"bytes,1,opt,name=v3,proto3,oneof"`
}

type PrintEventQueue

type PrintEventQueue struct {

	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,1,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//: Pubkey,
	Market *basic.Pubkey `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*PrintEventQueue) Descriptor deprecated

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

Deprecated: Use PrintEventQueue.ProtoReflect.Descriptor instead.

func (*PrintEventQueue) GetDexProgramId

func (x *PrintEventQueue) GetDexProgramId() *basic.ProgramId

func (*PrintEventQueue) GetMarket

func (x *PrintEventQueue) GetMarket() *basic.Pubkey

func (*PrintEventQueue) ProtoMessage

func (*PrintEventQueue) ProtoMessage()

func (*PrintEventQueue) ProtoReflect

func (x *PrintEventQueue) ProtoReflect() protoreflect.Message

func (*PrintEventQueue) Reset

func (x *PrintEventQueue) Reset()

func (*PrintEventQueue) String

func (x *PrintEventQueue) String() string

type SelfTradeBehavior

type SelfTradeBehavior int32
const (
	SelfTradeBehavior_DecrementTake    SelfTradeBehavior = 0
	SelfTradeBehavior_CancelProvide    SelfTradeBehavior = 1
	SelfTradeBehavior_AbortTransaction SelfTradeBehavior = 2
)

func (SelfTradeBehavior) Descriptor

func (SelfTradeBehavior) Enum

func (SelfTradeBehavior) EnumDescriptor deprecated

func (SelfTradeBehavior) EnumDescriptor() ([]byte, []int)

Deprecated: Use SelfTradeBehavior.Descriptor instead.

func (SelfTradeBehavior) Number

func (SelfTradeBehavior) String

func (x SelfTradeBehavior) String() string

func (SelfTradeBehavior) Type

type SettleFundsRequest

type SettleFundsRequest struct {

	//: String,
	Payer *basic.Keypair `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,2,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	//: Pubkey,
	Market *MarketState `protobuf:"bytes,3,opt,name=market,proto3" json:"market,omitempty"`
	//: Pubkey,
	Orders *basic.Pubkey `protobuf:"bytes,4,opt,name=orders,proto3" json:"orders,omitempty"`
	// : Pubkey,
	CoinWallet *basic.Pubkey `protobuf:"bytes,5,opt,name=coin_wallet,json=coinWallet,proto3" json:"coin_wallet,omitempty"`
	//: Pubkey,
	PcWallet *basic.Pubkey `protobuf:"bytes,6,opt,name=pc_wallet,json=pcWallet,proto3" json:"pc_wallet,omitempty"`
	//: Option<String>,
	Signer *basic.Keypair `protobuf:"bytes,7,opt,name=signer,proto3" json:"signer,omitempty"`
	// contains filtered or unexported fields
}

func (*SettleFundsRequest) Descriptor deprecated

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

Deprecated: Use SettleFundsRequest.ProtoReflect.Descriptor instead.

func (*SettleFundsRequest) GetCoinWallet

func (x *SettleFundsRequest) GetCoinWallet() *basic.Pubkey

func (*SettleFundsRequest) GetDexProgramId

func (x *SettleFundsRequest) GetDexProgramId() *basic.ProgramId

func (*SettleFundsRequest) GetMarket

func (x *SettleFundsRequest) GetMarket() *MarketState

func (*SettleFundsRequest) GetOrders

func (x *SettleFundsRequest) GetOrders() *basic.Pubkey

func (*SettleFundsRequest) GetPayer

func (x *SettleFundsRequest) GetPayer() *basic.Keypair

func (*SettleFundsRequest) GetPcWallet

func (x *SettleFundsRequest) GetPcWallet() *basic.Pubkey

func (*SettleFundsRequest) GetSigner

func (x *SettleFundsRequest) GetSigner() *basic.Keypair

func (*SettleFundsRequest) ProtoMessage

func (*SettleFundsRequest) ProtoMessage()

func (*SettleFundsRequest) ProtoReflect

func (x *SettleFundsRequest) ProtoReflect() protoreflect.Message

func (*SettleFundsRequest) Reset

func (x *SettleFundsRequest) Reset()

func (*SettleFundsRequest) String

func (x *SettleFundsRequest) String() string

type UnimplementedDexServer

type UnimplementedDexServer struct {
}

UnimplementedDexServer must be embedded to have forward compatible implementations.

func (UnimplementedDexServer) CancelOrder

func (UnimplementedDexServer) CloseOpenOrders

func (UnimplementedDexServer) ConsumeEvents

func (UnimplementedDexServer) GetMarketPubkeys

func (UnimplementedDexServer) InitOpenOrder

func (UnimplementedDexServer) ListMarket

func (UnimplementedDexServer) MatchOrders

func (UnimplementedDexServer) MonitorQueue

func (UnimplementedDexServer) NewOrder

func (UnimplementedDexServer) SettleFunds

type UnsafeDexServer

type UnsafeDexServer interface {
	// contains filtered or unexported methods
}

UnsafeDexServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DexServer will result in compilation errors.

type WholeShebang

type WholeShebang struct {

	//: String,
	Payer *basic.Keypair `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
	//: Pubkey,
	DexProgramId *basic.ProgramId `protobuf:"bytes,2,opt,name=dex_program_id,json=dexProgramId,proto3" json:"dex_program_id,omitempty"`
	// contains filtered or unexported fields
}

func (*WholeShebang) Descriptor deprecated

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

Deprecated: Use WholeShebang.ProtoReflect.Descriptor instead.

func (*WholeShebang) GetDexProgramId

func (x *WholeShebang) GetDexProgramId() *basic.ProgramId

func (*WholeShebang) GetPayer

func (x *WholeShebang) GetPayer() *basic.Keypair

func (*WholeShebang) ProtoMessage

func (*WholeShebang) ProtoMessage()

func (*WholeShebang) ProtoReflect

func (x *WholeShebang) ProtoReflect() protoreflect.Message

func (*WholeShebang) Reset

func (x *WholeShebang) Reset()

func (*WholeShebang) String

func (x *WholeShebang) String() string

Jump to

Keyboard shortcuts

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