types

package
v0.0.0-...-65c0291 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SrparticipationIndex = 1
	RoundStart           = 1
)
View Source
const (
	// ModuleName is the name of the strategicreserve module
	ModuleName = "strategicreserve"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	// OrderBookLiquidityName defines the account name for book liquidity for the bettors
	OrderBookLiquidityName = "book_liquidity_pool"

	// SRProfitName defines the account name for profit for sr
	SRProfitName = "sr_profit_pool"

	// SRPoolName defines the account name for SR Pool
	SRPoolName = "sr_pool"

	// BetReserveName defines the account name for storing bet amount
	BetReserveName = "bet_reserve"
)

module accounts constants

View Source
const (
	// Default maximum book participations.
	DefaultMaxOrderBookParticipations uint64 = 100

	// Default batch settlement count.
	DefaultBatchSettlementCount uint64 = 100

	// Default requeue threshold.
	DefaultRequeueThreshold uint64 = 1000
)

SR params default values

View Source
const (
	ErrTextInvalidDesositor = "invalid depositor address (%s)"
)

x/strategicreserve module sentinel error text

Variables

View Source
var (
	ErrOrderBookNotFound                    = sdkerrors.Register(ModuleName, 6001, "order book not found")
	ErrOrderBookNotActive                   = sdkerrors.Register(ModuleName, 6002, "order book not active")
	ErrMaxNumberOfParticipationsReached     = sdkerrors.Register(ModuleName, 6003, "maximum number of participations reached")
	ErrInsufficientAccountBalance           = sdkerrors.Register(ModuleName, 6004, "insufficient account balance.")
	ErrFromBankModule                       = sdkerrors.Register(ModuleName, 6005, "error returned from Bank Module")
	ErrBookParticipationAlreadyExists       = sdkerrors.Register(ModuleName, 6006, "internal error in setting book participation")
	ErrOrderBookAlreadyPresent              = sdkerrors.Register(ModuleName, 6007, "order book already present")
	ErrDuplicateSenderAndRecipientModule    = sdkerrors.Register(ModuleName, 6008, "sender and receiver module names must not be same")
	ErrInsufficientBalanceInModuleAccount   = sdkerrors.Register(ModuleName, 6009, "Insufficient Balance in Module Account")
	ErrOrderBookParticipationAlreadyPresent = sdkerrors.Register(ModuleName, 6010, "order book participation already present")
	ErrLockAlreadyExists                    = sdkerrors.Register(ModuleName, 6011, "Conflict, lock already exists")
	ErrOrderBookExposureNotFound            = sdkerrors.Register(ModuleName, 6012, "order book exposure not found")
	ErrInsufficientLiquidityInOrderBook     = sdkerrors.Register(ModuleName, 6013, "insufficient liquidity in order book")
	ErrBookParticipationsNotFound           = sdkerrors.Register(ModuleName, 6014, "book participations not found")
	ErrParticipationExposuresNotFound       = sdkerrors.Register(ModuleName, 6015, "participation exposures not found")
	ErrOrderBookParticipationNotFound       = sdkerrors.Register(ModuleName, 6016, "book participation not found")
	ErrParticipationExposureNotFound        = sdkerrors.Register(ModuleName, 6017, "participation exposure not found")
	ErrParticipationExposureAlreadyFilled   = sdkerrors.Register(ModuleName, 6018, "participation exposure already filled")
	ErrInternalProcessingBet                = sdkerrors.Register(ModuleName, 6019, "internal error in processing bet")
	ErrPayoutLockDoesnotExist               = sdkerrors.Register(ModuleName, 6020, "Payout lock for bet uid %s does not exist")
	ErrBookParticipationAlreadySettled      = sdkerrors.Register(ModuleName, 6021, "book participation already settled")
	ErrMismatchInDepositorAddress           = sdkerrors.Register(ModuleName, 6022, "mismatch in depositor address")
	ErrDepositorIsModuleAccount             = sdkerrors.Register(ModuleName, 6023, "depositor is module account")
	ErrWithdrawalAmountIsTooLarge           = sdkerrors.Register(ModuleName, 6024, "withdrawal amount more than available amount for withdrawal")
	ErrMaxWithdrawableAmountIsZero          = sdkerrors.Register(ModuleName, 6025, "maximum withdrawable amount is zero")
	ErrParticipationOnInactiveMarket        = sdkerrors.Register(ModuleName, 6026, "participation is allowed on an active market only")
	ErrMarketNotFound                       = sdkerrors.Register(ModuleName, 6027, "market not found to initialize participation")
)

x/strategicreserve module sentinel errors

View Source
var (
	ErrInvalidLengthExposure        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExposure          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupExposure = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	OrderBookKeyPrefix                       = []byte{0x00} // prefix for keys that store books
	OrderBookParticipationKeyPrefix          = []byte{0x01} // prefix for keys that store book participations
	OrderBookOddsExposureKeyPrefix           = []byte{0x02} // prefix for keys that store book odds exposures
	ParticipationExposureKeyPrefix           = []byte{0x03} // prefix for keys that store participation exposures
	PayoutLockKeyPrefix                      = []byte{0x04} // prefix for keys that store payout locks
	ParticipationExposureByIndexKeyPrefix    = []byte{0x05} // prefix for keys that store participation exposures
	HistoricalParticipationExposureKeyPrefix = []byte{0x06} // prefix for keys that store historical participation exposures
	OrderBookStatsKeyPrefix                  = []byte{0x07} // prefix for keys that store book stats
	ParticipationBetPairKeyPrefix            = []byte{0x08} // prefix for keys that store book participation and bet pairs
)
View Source
var (
	ErrInvalidLengthOrderbook        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOrderbook          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOrderbook = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMaxOrderBookParticipations = []byte("MaxOrderBookParticipationss")

	KeyBatchSettlementCount = []byte("BatchSettlementCount")

	KeyRequeueThreshold = []byte("RequeueThreshold")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParticipation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParticipation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParticipation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStats        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStats          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStats = fmt.Errorf("proto: unexpected end of group")
)
View Source
var OrderBookStatus_name = map[int32]string{
	0: "ORDER_BOOK_STATUS_UNSPECIFIED",
	1: "ORDER_BOOK_STATUS_STATUS_ACTIVE",
	2: "ORDER_BOOK_STATUS_STATUS_RESOLVED",
	3: "ORDER_BOOK_STATUS_STATUS_SETTLED",
}
View Source
var OrderBookStatus_value = map[string]int32{
	"ORDER_BOOK_STATUS_UNSPECIFIED":     0,
	"ORDER_BOOK_STATUS_STATUS_ACTIVE":   1,
	"ORDER_BOOK_STATUS_STATUS_RESOLVED": 2,
	"ORDER_BOOK_STATUS_STATUS_SETTLED":  3,
}

Functions

func GetHistoricalParticipationExposureKey

func GetHistoricalParticipationExposureKey(bookUID, oddsUID string, index, round uint64) []byte

GetHistoricalParticipationExposureKey creates the key for participation exposure for an odd

func GetOrderBookKey

func GetOrderBookKey(bookUID string) []byte

GetOrderBookKey returns the bytes of an book key

func GetOrderBookOddsExposureKey

func GetOrderBookOddsExposureKey(bookUID, oddsUID string) []byte

GetOrderBookOddsExposureKey creates the key for book exposure for an odd

func GetOrderBookOddsExposuresKey

func GetOrderBookOddsExposuresKey(bookUID string) []byte

GetOrderBookOddsExposuresKey creates the key for book exposure for an book

func GetOrderBookParticipationKey

func GetOrderBookParticipationKey(bookUID string, participationIndex uint64) []byte

GetOrderBookParticipationKey creates the key for book participation bond with book

func GetOrderBookParticipationsKey

func GetOrderBookParticipationsKey(bookUID string) []byte

GetOrderBookParticipationsKey creates the key for book participations for an book

func GetParticipationBetPairKey

func GetParticipationBetPairKey(bookUID string, bookParticipationIndex uint64, betID uint64) []byte

GetParticipationBetPairKey creates the bond between participation and bet

func GetParticipationByIndexKey

func GetParticipationByIndexKey(bookUID string, index uint64) []byte

GetParticipationByIndexKey creates the key for exposures for a book id and participation index

func GetParticipationExposureByIndexKey

func GetParticipationExposureByIndexKey(bookUID, oddsUID string, index uint64) []byte

GetParticipationExposureByIndexKey creates the key for participation exposure for an odds by participation index

func GetParticipationExposureKey

func GetParticipationExposureKey(bookUID, oddsUID string, index uint64) []byte

GetParticipationExposureKey creates the key for participation exposure for an odd

func GetParticipationExposuresByOrderBookKey

func GetParticipationExposuresByOrderBookKey(bookUID string) []byte

GetParticipationExposuresByOrderBookKey creates the key for exposures for a book id

func GetParticipationExposuresKey

func GetParticipationExposuresKey(bookUID, oddsUID string) []byte

GetParticipationExposuresKey creates the key for exposures for a book id and odds id

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for strategicreserve module

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper methods.

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper methods.

type BetKeeper

type BetKeeper interface {
	GetBetID(ctx sdk.Context, uid string) (val bettypes.UID2ID, found bool)
}

BetKeeper defines the expected bet keeper methods.

type GenesisState

type GenesisState struct {
	// params defines all the parameters related to order book.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// order_book_list defines the order books available at genesis.
	OrderBookList []OrderBook `protobuf:"bytes,2,rep,name=order_book_list,json=orderBookList,proto3" json:"order_book_list"`
	// order_book_participation_list defines the book participations available at
	// genesis.
	OrderBookParticipationList []OrderBookParticipation `` /* 133-byte string literal not displayed */
	// order_book_exposure_list defines the order book exposures available at
	// genesis.
	OrderBookExposureList []OrderBookOddsExposure `protobuf:"bytes,4,rep,name=order_book_exposure_list,json=orderBookExposureList,proto3" json:"order_book_exposure_list"`
	// participation_exposure_list defines the participation exposures available
	// at genesis.
	ParticipationExposureList []ParticipationExposure `` /* 128-byte string literal not displayed */
	// participation_exposure_by_index_list defines the participation exposures by
	// the indices available at genesis.
	ParticipationExposureByIndexList []ParticipationExposure `` /* 153-byte string literal not displayed */
	// historical_participation_exposure_list defines the historical participation
	// exposures available at genesis.
	HistoricalParticipationExposureList []ParticipationExposure `` /* 160-byte string literal not displayed */
	// historical_participation_exposure_list defines the participation bet pair
	// exposures available at genesis.
	ParticipationBetPairExposureList []ParticipationBetPair `` /* 153-byte string literal not displayed */
	// payout_lock defines the current locks for the payouts.
	PayoutLock [][]byte `protobuf:"bytes,9,rep,name=payout_lock,json=payoutLock,proto3" json:"payout_lock,omitempty"`
	// stats is the statistics of the order book.
	Stats OrderBookStats `protobuf:"bytes,10,opt,name=stats,proto3" json:"stats"`
}

GenesisState defines the strategicreserve 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) GetHistoricalParticipationExposureList

func (m *GenesisState) GetHistoricalParticipationExposureList() []ParticipationExposure

func (*GenesisState) GetOrderBookExposureList

func (m *GenesisState) GetOrderBookExposureList() []OrderBookOddsExposure

func (*GenesisState) GetOrderBookList

func (m *GenesisState) GetOrderBookList() []OrderBook

func (*GenesisState) GetOrderBookParticipationList

func (m *GenesisState) GetOrderBookParticipationList() []OrderBookParticipation

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetParticipationBetPairExposureList

func (m *GenesisState) GetParticipationBetPairExposureList() []ParticipationBetPair

func (*GenesisState) GetParticipationExposureByIndexList

func (m *GenesisState) GetParticipationExposureByIndexList() []ParticipationExposure

func (*GenesisState) GetParticipationExposureList

func (m *GenesisState) GetParticipationExposureList() []ParticipationExposure

func (*GenesisState) GetPayoutLock

func (m *GenesisState) GetPayoutLock() [][]byte

func (*GenesisState) GetStats

func (m *GenesisState) GetStats() OrderBookStats

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 MarketKeeper

type MarketKeeper interface {
	GetMarket(ctx sdk.Context, marketUID string) (val markettypes.Market, found bool)
}

MarketKeeper defines the expected market keeper methods.

type OrderBook

type OrderBook struct {
	// uid is the universal unique identifier of the order book.
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// participation_count is the count of participations in the order book.
	ParticipationCount uint64 `` /* 143-byte string literal not displayed */
	// odds_count is the count of the odds in the order book.
	OddsCount uint64 `protobuf:"varint,3,opt,name=odds_count,json=oddsCount,proto3" json:"odds_count,omitempty" yaml:"odds_count"`
	// status represents the status of the order book.
	Status OrderBookStatus `protobuf:"varint,4,opt,name=status,proto3,enum=furynetwork.fury.strategicreserve.OrderBookStatus" json:"status,omitempty"`
}

OrderBook represents the order book maintained against a market.

func NewOrderBook

func NewOrderBook(bookUID string, participationCount, oddsCount uint64, status OrderBookStatus) OrderBook

NewOrderBook creates a new orderbook object

func UnmarshalOrderBook

func UnmarshalOrderBook(cdc codec.BinaryCodec, value []byte) (book OrderBook, err error)

return the orderbook

func (*OrderBook) Descriptor

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

func (*OrderBook) Marshal

func (m *OrderBook) Marshal() (dAtA []byte, err error)

func (*OrderBook) MarshalTo

func (m *OrderBook) MarshalTo(dAtA []byte) (int, error)

func (*OrderBook) MarshalToSizedBuffer

func (m *OrderBook) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderBook) ProtoMessage

func (*OrderBook) ProtoMessage()

func (*OrderBook) Reset

func (m *OrderBook) Reset()

func (*OrderBook) Size

func (m *OrderBook) Size() (n int)

func (OrderBook) String

func (ob OrderBook) String() string

String returns a human readable string representation of a OrderBook.

func (*OrderBook) Unmarshal

func (m *OrderBook) Unmarshal(dAtA []byte) error

func (*OrderBook) XXX_DiscardUnknown

func (m *OrderBook) XXX_DiscardUnknown()

func (*OrderBook) XXX_Marshal

func (m *OrderBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderBook) XXX_Merge

func (m *OrderBook) XXX_Merge(src proto.Message)

func (*OrderBook) XXX_Size

func (m *OrderBook) XXX_Size() int

func (*OrderBook) XXX_Unmarshal

func (m *OrderBook) XXX_Unmarshal(b []byte) error

type OrderBookOddsExposure

type OrderBookOddsExposure struct {
	// order_book_uid is the universally unique identifier corresponding to the
	// order book.
	OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// odds_uid is the universally unique identifier of the odds.
	OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"`
	// fulfillment_queue is the slice of indices of participations to be
	// fulfilled.
	FulfillmentQueue []uint64 `` /* 142-byte string literal not displayed */
}

OrderBookOddsExposure represents the exposures taken on odds.

func NewOrderBookOddsExposure

func NewOrderBookOddsExposure(orderBookUID, oddsUID string, fulfillmentQueue []uint64) OrderBookOddsExposure

NewOrderBookOddsExposure creates a new book odds exposure object

func (*OrderBookOddsExposure) Descriptor

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

func (*OrderBookOddsExposure) Marshal

func (m *OrderBookOddsExposure) Marshal() (dAtA []byte, err error)

func (*OrderBookOddsExposure) MarshalTo

func (m *OrderBookOddsExposure) MarshalTo(dAtA []byte) (int, error)

func (*OrderBookOddsExposure) MarshalToSizedBuffer

func (m *OrderBookOddsExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderBookOddsExposure) ProtoMessage

func (*OrderBookOddsExposure) ProtoMessage()

func (*OrderBookOddsExposure) Reset

func (m *OrderBookOddsExposure) Reset()

func (*OrderBookOddsExposure) Size

func (m *OrderBookOddsExposure) Size() (n int)

func (OrderBookOddsExposure) String

func (boe OrderBookOddsExposure) String() string

String returns a human readable string representation of a BookOddsExposure.

func (*OrderBookOddsExposure) Unmarshal

func (m *OrderBookOddsExposure) Unmarshal(dAtA []byte) error

func (*OrderBookOddsExposure) XXX_DiscardUnknown

func (m *OrderBookOddsExposure) XXX_DiscardUnknown()

func (*OrderBookOddsExposure) XXX_Marshal

func (m *OrderBookOddsExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderBookOddsExposure) XXX_Merge

func (m *OrderBookOddsExposure) XXX_Merge(src proto.Message)

func (*OrderBookOddsExposure) XXX_Size

func (m *OrderBookOddsExposure) XXX_Size() int

func (*OrderBookOddsExposure) XXX_Unmarshal

func (m *OrderBookOddsExposure) XXX_Unmarshal(b []byte) error

type OrderBookParticipation

type OrderBookParticipation struct {
	// index is the index of the participation in the participation queue.
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index"`
	// order_book_uid is the unique identifier corresponding to the order book.
	OrderBookUID string `protobuf:"bytes,2,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// participant_address is the bech32-encoded address of the participant.
	ParticipantAddress string `` /* 142-byte string literal not displayed */
	// is_module_account represents if the participant is a module account or not.
	IsModuleAccount bool `` /* 134-byte string literal not displayed */
	// liquidity is the total initial liquidity provided.
	Liquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */
	// current_round_liquidity is the liquidity provided for the current round.
	CurrentRoundLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 197-byte string literal not displayed */
	// exposures_not_filled reresents if all of the exposures of the participation
	// are filled or not.
	ExposuresNotFilled uint64 `` /* 146-byte string literal not displayed */
	// total_bet_amount is the total bet amount corresponding to all exposures.
	TotalBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */
	// current_round_total_bet_amount is the total bet amount corresponding to all
	// exposures in the current round.
	CurrentRoundTotalBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 223-byte string literal not displayed */
	// max_loss is the total bet amount corresponding to all exposure.
	MaxLoss github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	// current_round_max_loss is the current round max loss.
	CurrentRoundMaxLoss github_com_cosmos_cosmos_sdk_types.Int `` /* 193-byte string literal not displayed */
	// current_round_max_loss_odds_uid is the total max loss corresponding to
	// all exposures.
	CurrentRoundMaxLossOddsUID string `` /* 145-byte string literal not displayed */
	// actual_profit is the actual profit of the participation fulfillment.
	ActualProfit github_com_cosmos_cosmos_sdk_types.Int `` /* 159-byte string literal not displayed */
	// is_settled represents if the participation is settled or not.
	IsSettled bool `protobuf:"varint,14,opt,name=is_settled,json=isSettled,proto3" json:"is_settled,omitempty" yaml:"is_settled"`
}

OrderBookParticipation represents the participants of an order book.

func NewOrderBookParticipation

func NewOrderBookParticipation(
	index uint64, orderBookUID string, participantAddress string,
	exposuresNotFilled uint64, isModuleAccount bool,
	liquidity, currentRoundLiquidity, totalBetAmount, currentRoundTotalBetAmount, maxLoss, currentRoundMaxLoss sdk.Int,
	currentRoundMaxLossOddsUID string, actualProfit sdk.Int,
) OrderBookParticipation

NewOrderBookParticipation creates a new book participation object

func (OrderBookParticipation) CalculateMaxLoss

func (bp OrderBookParticipation) CalculateMaxLoss(betAmount sdk.Int) sdk.Int

CalculateMaxLoss calculates the maxixmum amount of the tokens expected to be the loss of the participation according to the bet amount

func (*OrderBookParticipation) Descriptor

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

func (*OrderBookParticipation) Marshal

func (m *OrderBookParticipation) Marshal() (dAtA []byte, err error)

func (*OrderBookParticipation) MarshalTo

func (m *OrderBookParticipation) MarshalTo(dAtA []byte) (int, error)

func (*OrderBookParticipation) MarshalToSizedBuffer

func (m *OrderBookParticipation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderBookParticipation) ProtoMessage

func (*OrderBookParticipation) ProtoMessage()

func (*OrderBookParticipation) Reset

func (m *OrderBookParticipation) Reset()

func (*OrderBookParticipation) Size

func (m *OrderBookParticipation) Size() (n int)

func (OrderBookParticipation) String

func (bp OrderBookParticipation) String() string

String returns a human readable string representation of a BookParticipation.

func (*OrderBookParticipation) Unmarshal

func (m *OrderBookParticipation) Unmarshal(dAtA []byte) error

func (*OrderBookParticipation) XXX_DiscardUnknown

func (m *OrderBookParticipation) XXX_DiscardUnknown()

func (*OrderBookParticipation) XXX_Marshal

func (m *OrderBookParticipation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderBookParticipation) XXX_Merge

func (m *OrderBookParticipation) XXX_Merge(src proto.Message)

func (*OrderBookParticipation) XXX_Size

func (m *OrderBookParticipation) XXX_Size() int

func (*OrderBookParticipation) XXX_Unmarshal

func (m *OrderBookParticipation) XXX_Unmarshal(b []byte) error

type OrderBookStats

type OrderBookStats struct {
	// resolved_unsettled is the list of order book universal unique identifiers
	// that needs to be settled.
	ResolvedUnsettled []string `protobuf:"bytes,1,rep,name=resolved_unsettled,json=resolvedUnsettled,proto3" json:"resolved_unsettled,omitempty"`
}

OrderBookStats holds statistics on the order book.

func (*OrderBookStats) Descriptor

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

func (*OrderBookStats) GetResolvedUnsettled

func (m *OrderBookStats) GetResolvedUnsettled() []string

func (*OrderBookStats) Marshal

func (m *OrderBookStats) Marshal() (dAtA []byte, err error)

func (*OrderBookStats) MarshalTo

func (m *OrderBookStats) MarshalTo(dAtA []byte) (int, error)

func (*OrderBookStats) MarshalToSizedBuffer

func (m *OrderBookStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderBookStats) ProtoMessage

func (*OrderBookStats) ProtoMessage()

func (*OrderBookStats) Reset

func (m *OrderBookStats) Reset()

func (*OrderBookStats) Size

func (m *OrderBookStats) Size() (n int)

func (*OrderBookStats) String

func (m *OrderBookStats) String() string

func (*OrderBookStats) Unmarshal

func (m *OrderBookStats) Unmarshal(dAtA []byte) error

func (*OrderBookStats) XXX_DiscardUnknown

func (m *OrderBookStats) XXX_DiscardUnknown()

func (*OrderBookStats) XXX_Marshal

func (m *OrderBookStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderBookStats) XXX_Merge

func (m *OrderBookStats) XXX_Merge(src proto.Message)

func (*OrderBookStats) XXX_Size

func (m *OrderBookStats) XXX_Size() int

func (*OrderBookStats) XXX_Unmarshal

func (m *OrderBookStats) XXX_Unmarshal(b []byte) error

type OrderBookStatus

type OrderBookStatus int32

OrderBookStatus is the enum type for the status of the order book.

const (
	// invalid
	OrderBookStatus_ORDER_BOOK_STATUS_UNSPECIFIED OrderBookStatus = 0
	// active
	OrderBookStatus_ORDER_BOOK_STATUS_STATUS_ACTIVE OrderBookStatus = 1
	// resolved not settled
	OrderBookStatus_ORDER_BOOK_STATUS_STATUS_RESOLVED OrderBookStatus = 2
	// resolved and settled
	OrderBookStatus_ORDER_BOOK_STATUS_STATUS_SETTLED OrderBookStatus = 3
)

func (OrderBookStatus) EnumDescriptor

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

func (OrderBookStatus) String

func (x OrderBookStatus) String() string

type Params

type Params struct {
	// max_order_book_participations is the maximum number of participations per
	// book.
	MaxOrderBookParticipations uint64 `` /* 181-byte string literal not displayed */
	// batch_settlement_count is the batch settlement deposit count.
	BatchSettlementCount uint64 `` /* 154-byte string literal not displayed */
	// requeue_threshold is the threshold at which a participation is requeued in orderbook.
	RequeueThreshold uint64 `` /* 135-byte string literal not displayed */
}

Params defines the parameters for the strategic reserve module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(maxOrderBookParticipations, batchSettlementCount, requeueThreshold uint64) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetBatchSettlementCount

func (m *Params) GetBatchSettlementCount() uint64

func (*Params) GetMaxOrderBookParticipations

func (m *Params) GetMaxOrderBookParticipations() uint64

func (*Params) GetRequeueThreshold

func (m *Params) GetRequeueThreshold() uint64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String returns a human readable string representation of the parameters.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

validate a set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type ParticipationBetPair

type ParticipationBetPair struct {
	// order_book_uid is the unique identifier corresponding to the order book
	OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// participation_index is the index of participation corresponding to the bet
	// fulfillment.
	ParticipationIndex uint64 `` /* 143-byte string literal not displayed */
	// bet_uid is the bet universal unique identifier of the bet that is
	// fulfilled.
	BetUID string `protobuf:"bytes,3,opt,name=bet_uid,proto3" json:"bet_uid"`
}

ParticipationBetPair represents the book participation and bet bond.

func NewParticipationBetPair

func NewParticipationBetPair(
	orderBookUID, betUID string, participationIndex uint64,
) ParticipationBetPair

NewParticipationBetPair creates a new Participation bet pair object

func (*ParticipationBetPair) Descriptor

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

func (*ParticipationBetPair) GetBetUID

func (m *ParticipationBetPair) GetBetUID() string

func (*ParticipationBetPair) GetOrderBookUID

func (m *ParticipationBetPair) GetOrderBookUID() string

func (*ParticipationBetPair) GetParticipationIndex

func (m *ParticipationBetPair) GetParticipationIndex() uint64

func (*ParticipationBetPair) Marshal

func (m *ParticipationBetPair) Marshal() (dAtA []byte, err error)

func (*ParticipationBetPair) MarshalTo

func (m *ParticipationBetPair) MarshalTo(dAtA []byte) (int, error)

func (*ParticipationBetPair) MarshalToSizedBuffer

func (m *ParticipationBetPair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParticipationBetPair) ProtoMessage

func (*ParticipationBetPair) ProtoMessage()

func (*ParticipationBetPair) Reset

func (m *ParticipationBetPair) Reset()

func (*ParticipationBetPair) Size

func (m *ParticipationBetPair) Size() (n int)

func (*ParticipationBetPair) String

func (m *ParticipationBetPair) String() string

func (*ParticipationBetPair) Unmarshal

func (m *ParticipationBetPair) Unmarshal(dAtA []byte) error

func (*ParticipationBetPair) XXX_DiscardUnknown

func (m *ParticipationBetPair) XXX_DiscardUnknown()

func (*ParticipationBetPair) XXX_Marshal

func (m *ParticipationBetPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParticipationBetPair) XXX_Merge

func (m *ParticipationBetPair) XXX_Merge(src proto.Message)

func (*ParticipationBetPair) XXX_Size

func (m *ParticipationBetPair) XXX_Size() int

func (*ParticipationBetPair) XXX_Unmarshal

func (m *ParticipationBetPair) XXX_Unmarshal(b []byte) error

type ParticipationExposure

type ParticipationExposure struct {
	// order_book_uid is the universally unique identifier of the order book that
	// the exposure is being set.
	OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// odds_uid is the odds universal unique identifier that the exposure is being
	// set.
	OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"`
	// participation_index is the index of participation in the queue.
	ParticipationIndex uint64 `` /* 143-byte string literal not displayed */
	// exposure is the total exposure taken on given odds.
	Exposure github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=exposure,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"exposure" yaml:"exposure"`
	// bet_amount is the total bet amount corresponding to the exposure.
	BetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	// is_fulfilled represents if the participation exposure is fulfilled or not.
	IsFulfilled bool `protobuf:"varint,6,opt,name=is_fulfilled,json=isFulfilled,proto3" json:"is_fulfilled,omitempty" yaml:"is_fulfilled"`
	// round is the current round number in the queue.
	Round uint64 `protobuf:"varint,7,opt,name=round,proto3" json:"round,omitempty" yaml:"round"`
}

ParticipationExposure represents the exposures taken on odds by participations.

func NewParticipationExposure

func NewParticipationExposure(orderBookUID, oddsUID string, exposure, betAmount sdk.Int, participationIndex, round uint64, isFulfilled bool) ParticipationExposure

NewParticipationExposure creates a new participation exposure object

func (ParticipationExposure) CalculateMaxLoss

func (pe ParticipationExposure) CalculateMaxLoss(totalBetAmount sdk.Int) sdk.Int

CalculateMaxLoss calculates the maximum amount of loss for an exposure according to the bet amount.

func (*ParticipationExposure) Descriptor

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

func (*ParticipationExposure) Marshal

func (m *ParticipationExposure) Marshal() (dAtA []byte, err error)

func (*ParticipationExposure) MarshalTo

func (m *ParticipationExposure) MarshalTo(dAtA []byte) (int, error)

func (*ParticipationExposure) MarshalToSizedBuffer

func (m *ParticipationExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParticipationExposure) ProtoMessage

func (*ParticipationExposure) ProtoMessage()

func (*ParticipationExposure) Reset

func (m *ParticipationExposure) Reset()

func (*ParticipationExposure) Size

func (m *ParticipationExposure) Size() (n int)

func (ParticipationExposure) String

func (pe ParticipationExposure) String() string

String returns a human readable string representation of a participationExposure.

func (*ParticipationExposure) Unmarshal

func (m *ParticipationExposure) Unmarshal(dAtA []byte) error

func (*ParticipationExposure) XXX_DiscardUnknown

func (m *ParticipationExposure) XXX_DiscardUnknown()

func (*ParticipationExposure) XXX_Marshal

func (m *ParticipationExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParticipationExposure) XXX_Merge

func (m *ParticipationExposure) XXX_Merge(src proto.Message)

func (*ParticipationExposure) XXX_Size

func (m *ParticipationExposure) XXX_Size() int

func (*ParticipationExposure) XXX_Unmarshal

func (m *ParticipationExposure) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// OrderBooks queries all order books that match the given status.
	OrderBooks(ctx context.Context, in *QueryOrderBooksRequest, opts ...grpc.CallOption) (*QueryOrderBooksResponse, error)
	// OrderBook queries order book info for given order book universal unique
	// identifier.
	OrderBook(ctx context.Context, in *QueryOrderBookRequest, opts ...grpc.CallOption) (*QueryOrderBookResponse, error)
	// OrderBookParticipations queries participation info for given order book.
	OrderBookParticipations(ctx context.Context, in *QueryOrderBookParticipationsRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationsResponse, error)
	// OrderBookParticipation queries participation info for given order book and
	// participation index.
	OrderBookParticipation(ctx context.Context, in *QueryOrderBookParticipationRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationResponse, error)
	// OrderBookExposures queries exposures info for the given order book.
	OrderBookExposures(ctx context.Context, in *QueryOrderBookExposuresRequest, opts ...grpc.CallOption) (*QueryOrderBookExposuresResponse, error)
	// OrderBookExposure queries exposure info for the given order book and odds
	// universal unique identifier.
	OrderBookExposure(ctx context.Context, in *QueryOrderBookExposureRequest, opts ...grpc.CallOption) (*QueryOrderBookExposureResponse, error)
	// ParticipationExposures queries exposures info for given order book
	// participations.
	ParticipationExposures(ctx context.Context, in *QueryParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryParticipationExposuresResponse, error)
	// ParticipationExposure queries exposure info for given order book
	// participation.
	ParticipationExposure(ctx context.Context, in *QueryParticipationExposureRequest, opts ...grpc.CallOption) (*QueryParticipationExposureResponse, error)
	// HistoricalParticipationExposures queries historical exposures info for
	// the given order book participation.
	HistoricalParticipationExposures(ctx context.Context, in *QueryHistoricalParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryHistoricalParticipationExposuresResponse, error)
	// ParticipationFulfilledBets queries fulfilled bets for given order book
	// participation.
	ParticipationFulfilledBets(ctx context.Context, in *QueryParticipationFulfilledBetsRequest, opts ...grpc.CallOption) (*QueryParticipationFulfilledBetsResponse, 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 QueryHistoricalParticipationExposuresRequest

type QueryHistoricalParticipationExposuresRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryHistoricalParticipationExposuresRequest is the request type for the Query/HistoricalParticipationExposures RPC method

func (*QueryHistoricalParticipationExposuresRequest) Descriptor

func (*QueryHistoricalParticipationExposuresRequest) GetOrderBookUid

func (*QueryHistoricalParticipationExposuresRequest) GetPagination

func (*QueryHistoricalParticipationExposuresRequest) Marshal

func (m *QueryHistoricalParticipationExposuresRequest) Marshal() (dAtA []byte, err error)

func (*QueryHistoricalParticipationExposuresRequest) MarshalTo

func (*QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer

func (m *QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage

func (*QueryHistoricalParticipationExposuresRequest) Reset

func (*QueryHistoricalParticipationExposuresRequest) Size

func (*QueryHistoricalParticipationExposuresRequest) String

func (*QueryHistoricalParticipationExposuresRequest) Unmarshal

func (*QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown

func (m *QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryHistoricalParticipationExposuresRequest) XXX_Marshal

func (m *QueryHistoricalParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHistoricalParticipationExposuresRequest) XXX_Merge

func (*QueryHistoricalParticipationExposuresRequest) XXX_Size

func (*QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal

type QueryHistoricalParticipationExposuresResponse

type QueryHistoricalParticipationExposuresResponse struct {
	ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryHistoricalParticipationExposuresResponse is the response type for the Query/HistoricalParticipationExposures RPC method.

func (*QueryHistoricalParticipationExposuresResponse) Descriptor

func (*QueryHistoricalParticipationExposuresResponse) GetPagination

func (*QueryHistoricalParticipationExposuresResponse) GetParticipationExposures

func (*QueryHistoricalParticipationExposuresResponse) Marshal

func (m *QueryHistoricalParticipationExposuresResponse) Marshal() (dAtA []byte, err error)

func (*QueryHistoricalParticipationExposuresResponse) MarshalTo

func (*QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer

func (m *QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage

func (*QueryHistoricalParticipationExposuresResponse) Reset

func (*QueryHistoricalParticipationExposuresResponse) Size

func (*QueryHistoricalParticipationExposuresResponse) String

func (*QueryHistoricalParticipationExposuresResponse) Unmarshal

func (*QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown

func (m *QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryHistoricalParticipationExposuresResponse) XXX_Marshal

func (m *QueryHistoricalParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHistoricalParticipationExposuresResponse) XXX_Merge

func (*QueryHistoricalParticipationExposuresResponse) XXX_Size

func (*QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal

type QueryOrderBookExposureRequest

type QueryOrderBookExposureRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// odds_uid defines the odds id to query for.
	OddsUid string `protobuf:"bytes,2,opt,name=odds_uid,json=oddsUid,proto3" json:"odds_uid,omitempty"`
}

QueryOrderBookExposureRequest is the request type for the Query/OrderBookExposure RPC method.

func (*QueryOrderBookExposureRequest) Descriptor

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

func (*QueryOrderBookExposureRequest) GetOddsUid

func (m *QueryOrderBookExposureRequest) GetOddsUid() string

func (*QueryOrderBookExposureRequest) GetOrderBookUid

func (m *QueryOrderBookExposureRequest) GetOrderBookUid() string

func (*QueryOrderBookExposureRequest) Marshal

func (m *QueryOrderBookExposureRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookExposureRequest) MarshalTo

func (m *QueryOrderBookExposureRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookExposureRequest) MarshalToSizedBuffer

func (m *QueryOrderBookExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookExposureRequest) ProtoMessage

func (*QueryOrderBookExposureRequest) ProtoMessage()

func (*QueryOrderBookExposureRequest) Reset

func (m *QueryOrderBookExposureRequest) Reset()

func (*QueryOrderBookExposureRequest) Size

func (m *QueryOrderBookExposureRequest) Size() (n int)

func (*QueryOrderBookExposureRequest) String

func (*QueryOrderBookExposureRequest) Unmarshal

func (m *QueryOrderBookExposureRequest) Unmarshal(dAtA []byte) error

func (*QueryOrderBookExposureRequest) XXX_DiscardUnknown

func (m *QueryOrderBookExposureRequest) XXX_DiscardUnknown()

func (*QueryOrderBookExposureRequest) XXX_Marshal

func (m *QueryOrderBookExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookExposureRequest) XXX_Merge

func (m *QueryOrderBookExposureRequest) XXX_Merge(src proto.Message)

func (*QueryOrderBookExposureRequest) XXX_Size

func (m *QueryOrderBookExposureRequest) XXX_Size() int

func (*QueryOrderBookExposureRequest) XXX_Unmarshal

func (m *QueryOrderBookExposureRequest) XXX_Unmarshal(b []byte) error

type QueryOrderBookExposureResponse

type QueryOrderBookExposureResponse struct {
	// order_book_exposure defines the order book exposure info.
	OrderBookExposure OrderBookOddsExposure `protobuf:"bytes,1,opt,name=order_book_exposure,json=orderBookExposure,proto3" json:"order_book_exposure"`
}

QueryOrderBookExposureResponse is the response type for the Query/OrderBookExposure RPC method.

func (*QueryOrderBookExposureResponse) Descriptor

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

func (*QueryOrderBookExposureResponse) GetOrderBookExposure

func (m *QueryOrderBookExposureResponse) GetOrderBookExposure() OrderBookOddsExposure

func (*QueryOrderBookExposureResponse) Marshal

func (m *QueryOrderBookExposureResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookExposureResponse) MarshalTo

func (m *QueryOrderBookExposureResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookExposureResponse) MarshalToSizedBuffer

func (m *QueryOrderBookExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookExposureResponse) ProtoMessage

func (*QueryOrderBookExposureResponse) ProtoMessage()

func (*QueryOrderBookExposureResponse) Reset

func (m *QueryOrderBookExposureResponse) Reset()

func (*QueryOrderBookExposureResponse) Size

func (m *QueryOrderBookExposureResponse) Size() (n int)

func (*QueryOrderBookExposureResponse) String

func (*QueryOrderBookExposureResponse) Unmarshal

func (m *QueryOrderBookExposureResponse) Unmarshal(dAtA []byte) error

func (*QueryOrderBookExposureResponse) XXX_DiscardUnknown

func (m *QueryOrderBookExposureResponse) XXX_DiscardUnknown()

func (*QueryOrderBookExposureResponse) XXX_Marshal

func (m *QueryOrderBookExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookExposureResponse) XXX_Merge

func (m *QueryOrderBookExposureResponse) XXX_Merge(src proto.Message)

func (*QueryOrderBookExposureResponse) XXX_Size

func (m *QueryOrderBookExposureResponse) XXX_Size() int

func (*QueryOrderBookExposureResponse) XXX_Unmarshal

func (m *QueryOrderBookExposureResponse) XXX_Unmarshal(b []byte) error

type QueryOrderBookExposuresRequest

type QueryOrderBookExposuresRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookExposuresRequest is the request type for the Query/OrderBookExposures RPC method

func (*QueryOrderBookExposuresRequest) Descriptor

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

func (*QueryOrderBookExposuresRequest) GetOrderBookUid

func (m *QueryOrderBookExposuresRequest) GetOrderBookUid() string

func (*QueryOrderBookExposuresRequest) GetPagination

func (m *QueryOrderBookExposuresRequest) GetPagination() *query.PageRequest

func (*QueryOrderBookExposuresRequest) Marshal

func (m *QueryOrderBookExposuresRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookExposuresRequest) MarshalTo

func (m *QueryOrderBookExposuresRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookExposuresRequest) MarshalToSizedBuffer

func (m *QueryOrderBookExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookExposuresRequest) ProtoMessage

func (*QueryOrderBookExposuresRequest) ProtoMessage()

func (*QueryOrderBookExposuresRequest) Reset

func (m *QueryOrderBookExposuresRequest) Reset()

func (*QueryOrderBookExposuresRequest) Size

func (m *QueryOrderBookExposuresRequest) Size() (n int)

func (*QueryOrderBookExposuresRequest) String

func (*QueryOrderBookExposuresRequest) Unmarshal

func (m *QueryOrderBookExposuresRequest) Unmarshal(dAtA []byte) error

func (*QueryOrderBookExposuresRequest) XXX_DiscardUnknown

func (m *QueryOrderBookExposuresRequest) XXX_DiscardUnknown()

func (*QueryOrderBookExposuresRequest) XXX_Marshal

func (m *QueryOrderBookExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookExposuresRequest) XXX_Merge

func (m *QueryOrderBookExposuresRequest) XXX_Merge(src proto.Message)

func (*QueryOrderBookExposuresRequest) XXX_Size

func (m *QueryOrderBookExposuresRequest) XXX_Size() int

func (*QueryOrderBookExposuresRequest) XXX_Unmarshal

func (m *QueryOrderBookExposuresRequest) XXX_Unmarshal(b []byte) error

type QueryOrderBookExposuresResponse

type QueryOrderBookExposuresResponse struct {
	OrderBookExposures []OrderBookOddsExposure `protobuf:"bytes,1,rep,name=order_book_exposures,json=orderBookExposures,proto3" json:"order_book_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookExposuresResponse is the response type for the Query/OrderBookExposures RPC method.

func (*QueryOrderBookExposuresResponse) Descriptor

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

func (*QueryOrderBookExposuresResponse) GetOrderBookExposures

func (m *QueryOrderBookExposuresResponse) GetOrderBookExposures() []OrderBookOddsExposure

func (*QueryOrderBookExposuresResponse) GetPagination

func (*QueryOrderBookExposuresResponse) Marshal

func (m *QueryOrderBookExposuresResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookExposuresResponse) MarshalTo

func (m *QueryOrderBookExposuresResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookExposuresResponse) MarshalToSizedBuffer

func (m *QueryOrderBookExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookExposuresResponse) ProtoMessage

func (*QueryOrderBookExposuresResponse) ProtoMessage()

func (*QueryOrderBookExposuresResponse) Reset

func (*QueryOrderBookExposuresResponse) Size

func (m *QueryOrderBookExposuresResponse) Size() (n int)

func (*QueryOrderBookExposuresResponse) String

func (*QueryOrderBookExposuresResponse) Unmarshal

func (m *QueryOrderBookExposuresResponse) Unmarshal(dAtA []byte) error

func (*QueryOrderBookExposuresResponse) XXX_DiscardUnknown

func (m *QueryOrderBookExposuresResponse) XXX_DiscardUnknown()

func (*QueryOrderBookExposuresResponse) XXX_Marshal

func (m *QueryOrderBookExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookExposuresResponse) XXX_Merge

func (m *QueryOrderBookExposuresResponse) XXX_Merge(src proto.Message)

func (*QueryOrderBookExposuresResponse) XXX_Size

func (m *QueryOrderBookExposuresResponse) XXX_Size() int

func (*QueryOrderBookExposuresResponse) XXX_Unmarshal

func (m *QueryOrderBookExposuresResponse) XXX_Unmarshal(b []byte) error

type QueryOrderBookParticipationRequest

type QueryOrderBookParticipationRequest struct {
	// order_book_uid defines the order book universal unique identifier to query
	// for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// participation_index defines the participation index to query for.
	ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"`
}

QueryOrderBookParticipationRequest is the request type for the Query/OrderBookParticipation RPC method.

func (*QueryOrderBookParticipationRequest) Descriptor

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

func (*QueryOrderBookParticipationRequest) GetOrderBookUid

func (m *QueryOrderBookParticipationRequest) GetOrderBookUid() string

func (*QueryOrderBookParticipationRequest) GetParticipationIndex

func (m *QueryOrderBookParticipationRequest) GetParticipationIndex() uint64

func (*QueryOrderBookParticipationRequest) Marshal

func (m *QueryOrderBookParticipationRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookParticipationRequest) MarshalTo

func (m *QueryOrderBookParticipationRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationRequest) MarshalToSizedBuffer

func (m *QueryOrderBookParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationRequest) ProtoMessage

func (*QueryOrderBookParticipationRequest) ProtoMessage()

func (*QueryOrderBookParticipationRequest) Reset

func (*QueryOrderBookParticipationRequest) Size

func (*QueryOrderBookParticipationRequest) String

func (*QueryOrderBookParticipationRequest) Unmarshal

func (m *QueryOrderBookParticipationRequest) Unmarshal(dAtA []byte) error

func (*QueryOrderBookParticipationRequest) XXX_DiscardUnknown

func (m *QueryOrderBookParticipationRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationRequest) XXX_Marshal

func (m *QueryOrderBookParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookParticipationRequest) XXX_Merge

func (*QueryOrderBookParticipationRequest) XXX_Size

func (*QueryOrderBookParticipationRequest) XXX_Unmarshal

func (m *QueryOrderBookParticipationRequest) XXX_Unmarshal(b []byte) error

type QueryOrderBookParticipationResponse

type QueryOrderBookParticipationResponse struct {
	// order_book_participation defines the book participation info.
	OrderBookParticipation OrderBookParticipation `protobuf:"bytes,1,opt,name=order_book_participation,json=orderBookParticipation,proto3" json:"order_book_participation"`
}

QueryOrderBookParticipationResponse is the response type for the Query/OrderBookParticipation RPC method.

func (*QueryOrderBookParticipationResponse) Descriptor

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

func (*QueryOrderBookParticipationResponse) GetOrderBookParticipation

func (m *QueryOrderBookParticipationResponse) GetOrderBookParticipation() OrderBookParticipation

func (*QueryOrderBookParticipationResponse) Marshal

func (m *QueryOrderBookParticipationResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookParticipationResponse) MarshalTo

func (m *QueryOrderBookParticipationResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationResponse) MarshalToSizedBuffer

func (m *QueryOrderBookParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationResponse) ProtoMessage

func (*QueryOrderBookParticipationResponse) ProtoMessage()

func (*QueryOrderBookParticipationResponse) Reset

func (*QueryOrderBookParticipationResponse) Size

func (*QueryOrderBookParticipationResponse) String

func (*QueryOrderBookParticipationResponse) Unmarshal

func (m *QueryOrderBookParticipationResponse) Unmarshal(dAtA []byte) error

func (*QueryOrderBookParticipationResponse) XXX_DiscardUnknown

func (m *QueryOrderBookParticipationResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationResponse) XXX_Marshal

func (m *QueryOrderBookParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookParticipationResponse) XXX_Merge

func (*QueryOrderBookParticipationResponse) XXX_Size

func (*QueryOrderBookParticipationResponse) XXX_Unmarshal

func (m *QueryOrderBookParticipationResponse) XXX_Unmarshal(b []byte) error

type QueryOrderBookParticipationsRequest

type QueryOrderBookParticipationsRequest struct {
	// order_book_uid defines the order book universal unique identifier to query
	// for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookParticipationsRequest is the request type for the Query/OrderBookParticipations RPC method

func (*QueryOrderBookParticipationsRequest) Descriptor

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

func (*QueryOrderBookParticipationsRequest) GetOrderBookUid

func (m *QueryOrderBookParticipationsRequest) GetOrderBookUid() string

func (*QueryOrderBookParticipationsRequest) GetPagination

func (*QueryOrderBookParticipationsRequest) Marshal

func (m *QueryOrderBookParticipationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookParticipationsRequest) MarshalTo

func (m *QueryOrderBookParticipationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationsRequest) MarshalToSizedBuffer

func (m *QueryOrderBookParticipationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationsRequest) ProtoMessage

func (*QueryOrderBookParticipationsRequest) ProtoMessage()

func (*QueryOrderBookParticipationsRequest) Reset

func (*QueryOrderBookParticipationsRequest) Size

func (*QueryOrderBookParticipationsRequest) String

func (*QueryOrderBookParticipationsRequest) Unmarshal

func (m *QueryOrderBookParticipationsRequest) Unmarshal(dAtA []byte) error

func (*QueryOrderBookParticipationsRequest) XXX_DiscardUnknown

func (m *QueryOrderBookParticipationsRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationsRequest) XXX_Marshal

func (m *QueryOrderBookParticipationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookParticipationsRequest) XXX_Merge

func (*QueryOrderBookParticipationsRequest) XXX_Size

func (*QueryOrderBookParticipationsRequest) XXX_Unmarshal

func (m *QueryOrderBookParticipationsRequest) XXX_Unmarshal(b []byte) error

type QueryOrderBookParticipationsResponse

type QueryOrderBookParticipationsResponse struct {
	OrderBookParticipations []OrderBookParticipation `protobuf:"bytes,1,rep,name=order_book_participations,json=orderBookParticipations,proto3" json:"order_book_participations"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookParticipationsResponse is the response type for the Query/OrderBookParticipations RPC method

func (*QueryOrderBookParticipationsResponse) Descriptor

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

func (*QueryOrderBookParticipationsResponse) GetOrderBookParticipations

func (m *QueryOrderBookParticipationsResponse) GetOrderBookParticipations() []OrderBookParticipation

func (*QueryOrderBookParticipationsResponse) GetPagination

func (*QueryOrderBookParticipationsResponse) Marshal

func (m *QueryOrderBookParticipationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookParticipationsResponse) MarshalTo

func (m *QueryOrderBookParticipationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationsResponse) MarshalToSizedBuffer

func (m *QueryOrderBookParticipationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookParticipationsResponse) ProtoMessage

func (*QueryOrderBookParticipationsResponse) ProtoMessage()

func (*QueryOrderBookParticipationsResponse) Reset

func (*QueryOrderBookParticipationsResponse) Size

func (*QueryOrderBookParticipationsResponse) String

func (*QueryOrderBookParticipationsResponse) Unmarshal

func (m *QueryOrderBookParticipationsResponse) Unmarshal(dAtA []byte) error

func (*QueryOrderBookParticipationsResponse) XXX_DiscardUnknown

func (m *QueryOrderBookParticipationsResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationsResponse) XXX_Marshal

func (m *QueryOrderBookParticipationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookParticipationsResponse) XXX_Merge

func (*QueryOrderBookParticipationsResponse) XXX_Size

func (*QueryOrderBookParticipationsResponse) XXX_Unmarshal

func (m *QueryOrderBookParticipationsResponse) XXX_Unmarshal(b []byte) error

type QueryOrderBookRequest

type QueryOrderBookRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
}

QueryOrderBookRequest is the request type for the Query/OrderBook RPC method.

func (*QueryOrderBookRequest) Descriptor

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

func (*QueryOrderBookRequest) GetOrderBookUid

func (m *QueryOrderBookRequest) GetOrderBookUid() string

func (*QueryOrderBookRequest) Marshal

func (m *QueryOrderBookRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookRequest) MarshalTo

func (m *QueryOrderBookRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookRequest) MarshalToSizedBuffer

func (m *QueryOrderBookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookRequest) ProtoMessage

func (*QueryOrderBookRequest) ProtoMessage()

func (*QueryOrderBookRequest) Reset

func (m *QueryOrderBookRequest) Reset()

func (*QueryOrderBookRequest) Size

func (m *QueryOrderBookRequest) Size() (n int)

func (*QueryOrderBookRequest) String

func (m *QueryOrderBookRequest) String() string

func (*QueryOrderBookRequest) Unmarshal

func (m *QueryOrderBookRequest) Unmarshal(dAtA []byte) error

func (*QueryOrderBookRequest) XXX_DiscardUnknown

func (m *QueryOrderBookRequest) XXX_DiscardUnknown()

func (*QueryOrderBookRequest) XXX_Marshal

func (m *QueryOrderBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookRequest) XXX_Merge

func (m *QueryOrderBookRequest) XXX_Merge(src proto.Message)

func (*QueryOrderBookRequest) XXX_Size

func (m *QueryOrderBookRequest) XXX_Size() int

func (*QueryOrderBookRequest) XXX_Unmarshal

func (m *QueryOrderBookRequest) XXX_Unmarshal(b []byte) error

type QueryOrderBookResponse

type QueryOrderBookResponse struct {
	// orderBook defines the order book info.
	OrderBook OrderBook `protobuf:"bytes,1,opt,name=order_book,json=orderBook,proto3" json:"order_book"`
}

QueryOrderBookResponse is the response type for the Query/OrderBook RPC method.

func (*QueryOrderBookResponse) Descriptor

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

func (*QueryOrderBookResponse) GetOrderBook

func (m *QueryOrderBookResponse) GetOrderBook() OrderBook

func (*QueryOrderBookResponse) Marshal

func (m *QueryOrderBookResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrderBookResponse) MarshalTo

func (m *QueryOrderBookResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBookResponse) MarshalToSizedBuffer

func (m *QueryOrderBookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBookResponse) ProtoMessage

func (*QueryOrderBookResponse) ProtoMessage()

func (*QueryOrderBookResponse) Reset

func (m *QueryOrderBookResponse) Reset()

func (*QueryOrderBookResponse) Size

func (m *QueryOrderBookResponse) Size() (n int)

func (*QueryOrderBookResponse) String

func (m *QueryOrderBookResponse) String() string

func (*QueryOrderBookResponse) Unmarshal

func (m *QueryOrderBookResponse) Unmarshal(dAtA []byte) error

func (*QueryOrderBookResponse) XXX_DiscardUnknown

func (m *QueryOrderBookResponse) XXX_DiscardUnknown()

func (*QueryOrderBookResponse) XXX_Marshal

func (m *QueryOrderBookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBookResponse) XXX_Merge

func (m *QueryOrderBookResponse) XXX_Merge(src proto.Message)

func (*QueryOrderBookResponse) XXX_Size

func (m *QueryOrderBookResponse) XXX_Size() int

func (*QueryOrderBookResponse) XXX_Unmarshal

func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error

type QueryOrderBooksRequest

type QueryOrderBooksRequest struct {
	// status enables query for order books matching a given status.
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBooksRequest is the request type for the Query/OrderBooks RPC method.

func (*QueryOrderBooksRequest) Descriptor

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

func (*QueryOrderBooksRequest) GetPagination

func (m *QueryOrderBooksRequest) GetPagination() *query.PageRequest

func (*QueryOrderBooksRequest) GetStatus

func (m *QueryOrderBooksRequest) GetStatus() string

func (*QueryOrderBooksRequest) Marshal

func (m *QueryOrderBooksRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrderBooksRequest) MarshalTo

func (m *QueryOrderBooksRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBooksRequest) MarshalToSizedBuffer

func (m *QueryOrderBooksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBooksRequest) ProtoMessage

func (*QueryOrderBooksRequest) ProtoMessage()

func (*QueryOrderBooksRequest) Reset

func (m *QueryOrderBooksRequest) Reset()

func (*QueryOrderBooksRequest) Size

func (m *QueryOrderBooksRequest) Size() (n int)

func (*QueryOrderBooksRequest) String

func (m *QueryOrderBooksRequest) String() string

func (*QueryOrderBooksRequest) Unmarshal

func (m *QueryOrderBooksRequest) Unmarshal(dAtA []byte) error

func (*QueryOrderBooksRequest) XXX_DiscardUnknown

func (m *QueryOrderBooksRequest) XXX_DiscardUnknown()

func (*QueryOrderBooksRequest) XXX_Marshal

func (m *QueryOrderBooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBooksRequest) XXX_Merge

func (m *QueryOrderBooksRequest) XXX_Merge(src proto.Message)

func (*QueryOrderBooksRequest) XXX_Size

func (m *QueryOrderBooksRequest) XXX_Size() int

func (*QueryOrderBooksRequest) XXX_Unmarshal

func (m *QueryOrderBooksRequest) XXX_Unmarshal(b []byte) error

type QueryOrderBooksResponse

type QueryOrderBooksResponse struct {
	// orderbooks contains all the queried order books.
	Orderbooks []OrderBook `protobuf:"bytes,1,rep,name=orderbooks,proto3" json:"orderbooks"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBooksResponse is the response type for the Query/OrderBooks RPC method.

func (*QueryOrderBooksResponse) Descriptor

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

func (*QueryOrderBooksResponse) GetOrderbooks

func (m *QueryOrderBooksResponse) GetOrderbooks() []OrderBook

func (*QueryOrderBooksResponse) GetPagination

func (m *QueryOrderBooksResponse) GetPagination() *query.PageResponse

func (*QueryOrderBooksResponse) Marshal

func (m *QueryOrderBooksResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrderBooksResponse) MarshalTo

func (m *QueryOrderBooksResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrderBooksResponse) MarshalToSizedBuffer

func (m *QueryOrderBooksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrderBooksResponse) ProtoMessage

func (*QueryOrderBooksResponse) ProtoMessage()

func (*QueryOrderBooksResponse) Reset

func (m *QueryOrderBooksResponse) Reset()

func (*QueryOrderBooksResponse) Size

func (m *QueryOrderBooksResponse) Size() (n int)

func (*QueryOrderBooksResponse) String

func (m *QueryOrderBooksResponse) String() string

func (*QueryOrderBooksResponse) Unmarshal

func (m *QueryOrderBooksResponse) Unmarshal(dAtA []byte) error

func (*QueryOrderBooksResponse) XXX_DiscardUnknown

func (m *QueryOrderBooksResponse) XXX_DiscardUnknown()

func (*QueryOrderBooksResponse) XXX_Marshal

func (m *QueryOrderBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrderBooksResponse) XXX_Merge

func (m *QueryOrderBooksResponse) XXX_Merge(src proto.Message)

func (*QueryOrderBooksResponse) XXX_Size

func (m *QueryOrderBooksResponse) XXX_Size() int

func (*QueryOrderBooksResponse) XXX_Unmarshal

func (m *QueryOrderBooksResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method 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 the response type for the Query/Params RPC method 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 QueryParticipationExposureRequest

type QueryParticipationExposureRequest struct {
	// order_book_uid defines the order book id to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// participation_index is the index of participation to query for.
	ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationExposureRequest is the request type for the Query/ParticipationExposure RPC method.

func (*QueryParticipationExposureRequest) Descriptor

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

func (*QueryParticipationExposureRequest) GetOrderBookUid

func (m *QueryParticipationExposureRequest) GetOrderBookUid() string

func (*QueryParticipationExposureRequest) GetPagination

func (*QueryParticipationExposureRequest) GetParticipationIndex

func (m *QueryParticipationExposureRequest) GetParticipationIndex() uint64

func (*QueryParticipationExposureRequest) Marshal

func (m *QueryParticipationExposureRequest) Marshal() (dAtA []byte, err error)

func (*QueryParticipationExposureRequest) MarshalTo

func (m *QueryParticipationExposureRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParticipationExposureRequest) MarshalToSizedBuffer

func (m *QueryParticipationExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParticipationExposureRequest) ProtoMessage

func (*QueryParticipationExposureRequest) ProtoMessage()

func (*QueryParticipationExposureRequest) Reset

func (*QueryParticipationExposureRequest) Size

func (m *QueryParticipationExposureRequest) Size() (n int)

func (*QueryParticipationExposureRequest) String

func (*QueryParticipationExposureRequest) Unmarshal

func (m *QueryParticipationExposureRequest) Unmarshal(dAtA []byte) error

func (*QueryParticipationExposureRequest) XXX_DiscardUnknown

func (m *QueryParticipationExposureRequest) XXX_DiscardUnknown()

func (*QueryParticipationExposureRequest) XXX_Marshal

func (m *QueryParticipationExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParticipationExposureRequest) XXX_Merge

func (*QueryParticipationExposureRequest) XXX_Size

func (m *QueryParticipationExposureRequest) XXX_Size() int

func (*QueryParticipationExposureRequest) XXX_Unmarshal

func (m *QueryParticipationExposureRequest) XXX_Unmarshal(b []byte) error

type QueryParticipationExposureResponse

type QueryParticipationExposureResponse struct {
	// participation_exposure defines the participation exposure info.
	ParticipationExposure []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposure,json=participationExposure,proto3" json:"participation_exposure"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationExposureResponse is the response type for the Query/ParticipationExposure RPC method.

func (*QueryParticipationExposureResponse) Descriptor

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

func (*QueryParticipationExposureResponse) GetPagination

func (*QueryParticipationExposureResponse) GetParticipationExposure

func (m *QueryParticipationExposureResponse) GetParticipationExposure() []ParticipationExposure

func (*QueryParticipationExposureResponse) Marshal

func (m *QueryParticipationExposureResponse) Marshal() (dAtA []byte, err error)

func (*QueryParticipationExposureResponse) MarshalTo

func (m *QueryParticipationExposureResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParticipationExposureResponse) MarshalToSizedBuffer

func (m *QueryParticipationExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParticipationExposureResponse) ProtoMessage

func (*QueryParticipationExposureResponse) ProtoMessage()

func (*QueryParticipationExposureResponse) Reset

func (*QueryParticipationExposureResponse) Size

func (*QueryParticipationExposureResponse) String

func (*QueryParticipationExposureResponse) Unmarshal

func (m *QueryParticipationExposureResponse) Unmarshal(dAtA []byte) error

func (*QueryParticipationExposureResponse) XXX_DiscardUnknown

func (m *QueryParticipationExposureResponse) XXX_DiscardUnknown()

func (*QueryParticipationExposureResponse) XXX_Marshal

func (m *QueryParticipationExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParticipationExposureResponse) XXX_Merge

func (*QueryParticipationExposureResponse) XXX_Size

func (*QueryParticipationExposureResponse) XXX_Unmarshal

func (m *QueryParticipationExposureResponse) XXX_Unmarshal(b []byte) error

type QueryParticipationExposuresRequest

type QueryParticipationExposuresRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationExposuresRequest is the request type for the Query/ParticipationExposures RPC method

func (*QueryParticipationExposuresRequest) Descriptor

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

func (*QueryParticipationExposuresRequest) GetOrderBookUid

func (m *QueryParticipationExposuresRequest) GetOrderBookUid() string

func (*QueryParticipationExposuresRequest) GetPagination

func (*QueryParticipationExposuresRequest) Marshal

func (m *QueryParticipationExposuresRequest) Marshal() (dAtA []byte, err error)

func (*QueryParticipationExposuresRequest) MarshalTo

func (m *QueryParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParticipationExposuresRequest) MarshalToSizedBuffer

func (m *QueryParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParticipationExposuresRequest) ProtoMessage

func (*QueryParticipationExposuresRequest) ProtoMessage()

func (*QueryParticipationExposuresRequest) Reset

func (*QueryParticipationExposuresRequest) Size

func (*QueryParticipationExposuresRequest) String

func (*QueryParticipationExposuresRequest) Unmarshal

func (m *QueryParticipationExposuresRequest) Unmarshal(dAtA []byte) error

func (*QueryParticipationExposuresRequest) XXX_DiscardUnknown

func (m *QueryParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryParticipationExposuresRequest) XXX_Marshal

func (m *QueryParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParticipationExposuresRequest) XXX_Merge

func (*QueryParticipationExposuresRequest) XXX_Size

func (*QueryParticipationExposuresRequest) XXX_Unmarshal

func (m *QueryParticipationExposuresRequest) XXX_Unmarshal(b []byte) error

type QueryParticipationExposuresResponse

type QueryParticipationExposuresResponse struct {
	ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationExposuresResponse is the response type for the Query/ParticipationExposures RPC method.

func (*QueryParticipationExposuresResponse) Descriptor

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

func (*QueryParticipationExposuresResponse) GetPagination

func (*QueryParticipationExposuresResponse) GetParticipationExposures

func (m *QueryParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure

func (*QueryParticipationExposuresResponse) Marshal

func (m *QueryParticipationExposuresResponse) Marshal() (dAtA []byte, err error)

func (*QueryParticipationExposuresResponse) MarshalTo

func (m *QueryParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParticipationExposuresResponse) MarshalToSizedBuffer

func (m *QueryParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParticipationExposuresResponse) ProtoMessage

func (*QueryParticipationExposuresResponse) ProtoMessage()

func (*QueryParticipationExposuresResponse) Reset

func (*QueryParticipationExposuresResponse) Size

func (*QueryParticipationExposuresResponse) String

func (*QueryParticipationExposuresResponse) Unmarshal

func (m *QueryParticipationExposuresResponse) Unmarshal(dAtA []byte) error

func (*QueryParticipationExposuresResponse) XXX_DiscardUnknown

func (m *QueryParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryParticipationExposuresResponse) XXX_Marshal

func (m *QueryParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParticipationExposuresResponse) XXX_Merge

func (*QueryParticipationExposuresResponse) XXX_Size

func (*QueryParticipationExposuresResponse) XXX_Unmarshal

func (m *QueryParticipationExposuresResponse) XXX_Unmarshal(b []byte) error

type QueryParticipationFulfilledBetsRequest

type QueryParticipationFulfilledBetsRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// participation_index is the index of participation to query for.
	ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationFulfilledBetsRequest is the request type for the Query/ParticipationFulfilledBets RPC method.

func (*QueryParticipationFulfilledBetsRequest) Descriptor

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

func (*QueryParticipationFulfilledBetsRequest) GetOrderBookUid

func (m *QueryParticipationFulfilledBetsRequest) GetOrderBookUid() string

func (*QueryParticipationFulfilledBetsRequest) GetPagination

func (*QueryParticipationFulfilledBetsRequest) GetParticipationIndex

func (m *QueryParticipationFulfilledBetsRequest) GetParticipationIndex() uint64

func (*QueryParticipationFulfilledBetsRequest) Marshal

func (m *QueryParticipationFulfilledBetsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParticipationFulfilledBetsRequest) MarshalTo

func (m *QueryParticipationFulfilledBetsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer

func (m *QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParticipationFulfilledBetsRequest) ProtoMessage

func (*QueryParticipationFulfilledBetsRequest) Reset

func (*QueryParticipationFulfilledBetsRequest) Size

func (*QueryParticipationFulfilledBetsRequest) String

func (*QueryParticipationFulfilledBetsRequest) Unmarshal

func (m *QueryParticipationFulfilledBetsRequest) Unmarshal(dAtA []byte) error

func (*QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown

func (m *QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown()

func (*QueryParticipationFulfilledBetsRequest) XXX_Marshal

func (m *QueryParticipationFulfilledBetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParticipationFulfilledBetsRequest) XXX_Merge

func (*QueryParticipationFulfilledBetsRequest) XXX_Size

func (*QueryParticipationFulfilledBetsRequest) XXX_Unmarshal

func (m *QueryParticipationFulfilledBetsRequest) XXX_Unmarshal(b []byte) error

type QueryParticipationFulfilledBetsResponse

type QueryParticipationFulfilledBetsResponse struct {
	// participation_bets is the bets of the participation.
	ParticipationBets []ParticipationBetPair `protobuf:"bytes,1,rep,name=participation_bets,json=participationBets,proto3" json:"participation_bets"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationFulfilledBetsResponse is the response type for the Query/ParticipationFulfilledBets RPC method.

func (*QueryParticipationFulfilledBetsResponse) Descriptor

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

func (*QueryParticipationFulfilledBetsResponse) GetPagination

func (*QueryParticipationFulfilledBetsResponse) GetParticipationBets

func (*QueryParticipationFulfilledBetsResponse) Marshal

func (m *QueryParticipationFulfilledBetsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParticipationFulfilledBetsResponse) MarshalTo

func (m *QueryParticipationFulfilledBetsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer

func (m *QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParticipationFulfilledBetsResponse) ProtoMessage

func (*QueryParticipationFulfilledBetsResponse) Reset

func (*QueryParticipationFulfilledBetsResponse) Size

func (*QueryParticipationFulfilledBetsResponse) String

func (*QueryParticipationFulfilledBetsResponse) Unmarshal

func (m *QueryParticipationFulfilledBetsResponse) Unmarshal(dAtA []byte) error

func (*QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown

func (m *QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown()

func (*QueryParticipationFulfilledBetsResponse) XXX_Marshal

func (m *QueryParticipationFulfilledBetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParticipationFulfilledBetsResponse) XXX_Merge

func (*QueryParticipationFulfilledBetsResponse) XXX_Size

func (*QueryParticipationFulfilledBetsResponse) XXX_Unmarshal

func (m *QueryParticipationFulfilledBetsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// OrderBooks queries all order books that match the given status.
	OrderBooks(context.Context, *QueryOrderBooksRequest) (*QueryOrderBooksResponse, error)
	// OrderBook queries order book info for given order book universal unique
	// identifier.
	OrderBook(context.Context, *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
	// OrderBookParticipations queries participation info for given order book.
	OrderBookParticipations(context.Context, *QueryOrderBookParticipationsRequest) (*QueryOrderBookParticipationsResponse, error)
	// OrderBookParticipation queries participation info for given order book and
	// participation index.
	OrderBookParticipation(context.Context, *QueryOrderBookParticipationRequest) (*QueryOrderBookParticipationResponse, error)
	// OrderBookExposures queries exposures info for the given order book.
	OrderBookExposures(context.Context, *QueryOrderBookExposuresRequest) (*QueryOrderBookExposuresResponse, error)
	// OrderBookExposure queries exposure info for the given order book and odds
	// universal unique identifier.
	OrderBookExposure(context.Context, *QueryOrderBookExposureRequest) (*QueryOrderBookExposureResponse, error)
	// ParticipationExposures queries exposures info for given order book
	// participations.
	ParticipationExposures(context.Context, *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, error)
	// ParticipationExposure queries exposure info for given order book
	// participation.
	ParticipationExposure(context.Context, *QueryParticipationExposureRequest) (*QueryParticipationExposureResponse, error)
	// HistoricalParticipationExposures queries historical exposures info for
	// the given order book participation.
	HistoricalParticipationExposures(context.Context, *QueryHistoricalParticipationExposuresRequest) (*QueryHistoricalParticipationExposuresResponse, error)
	// ParticipationFulfilledBets queries fulfilled bets for given order book
	// participation.
	ParticipationFulfilledBets(context.Context, *QueryParticipationFulfilledBetsRequest) (*QueryParticipationFulfilledBetsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) OrderBook

func (*UnimplementedQueryServer) OrderBookExposure

func (*UnimplementedQueryServer) OrderBookExposures

func (*UnimplementedQueryServer) OrderBooks

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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