types

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 added in v0.0.6

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

GetHistoricalParticipationExposureKey creates the key for participation exposure for an odd

func GetOrderBookKey added in v0.0.6

func GetOrderBookKey(bookUID string) []byte

GetOrderBookKey returns the bytes of an book key

func GetOrderBookOddsExposureKey added in v0.0.6

func GetOrderBookOddsExposureKey(bookUID, oddsUID string) []byte

GetOrderBookOddsExposureKey creates the key for book exposure for an odd

func GetOrderBookOddsExposuresKey added in v0.0.6

func GetOrderBookOddsExposuresKey(bookUID string) []byte

GetOrderBookOddsExposuresKey creates the key for book exposure for an book

func GetOrderBookParticipationKey added in v0.0.6

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

GetOrderBookParticipationKey creates the key for book participation bond with book

func GetOrderBookParticipationsKey added in v0.0.6

func GetOrderBookParticipationsKey(bookUID string) []byte

GetOrderBookParticipationsKey creates the key for book participations for an book

func GetParticipationBetPairKey added in v0.0.6

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

GetParticipationBetPairKey creates the bond between participation and bet

func GetParticipationByIndexKey added in v0.0.6

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

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

func GetParticipationExposureByIndexKey added in v0.0.6

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

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

func GetParticipationExposureKey added in v0.0.6

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

GetParticipationExposureKey creates the key for participation exposure for an odd

func GetParticipationExposuresByOrderBookKey added in v0.0.6

func GetParticipationExposuresByOrderBookKey(bookUID string) []byte

GetParticipationExposuresByOrderBookKey creates the key for exposures for a book id

func GetParticipationExposuresKey added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

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

func (*GenesisState) GetOrderBookExposureList added in v0.0.6

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

func (*GenesisState) GetOrderBookList added in v0.0.6

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

func (*GenesisState) GetOrderBookParticipationList added in v0.0.6

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetParticipationBetPairExposureList added in v0.0.6

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

func (*GenesisState) GetParticipationExposureByIndexList added in v0.0.6

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

func (*GenesisState) GetParticipationExposureList added in v0.0.6

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

func (*GenesisState) GetPayoutLock added in v0.0.6

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

func (*GenesisState) GetStats added in v0.0.6

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 added in v0.0.6

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

MarketKeeper defines the expected market keeper methods.

type OrderBook added in v0.0.6

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=sgenetwork.sge.strategicreserve.OrderBookStatus" json:"status,omitempty"`
}

OrderBook represents the order book maintained against a market.

func NewOrderBook added in v0.0.6

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

NewOrderBook creates a new orderbook object

func UnmarshalOrderBook added in v0.0.6

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

return the orderbook

func (*OrderBook) Descriptor added in v0.0.6

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

func (*OrderBook) Marshal added in v0.0.6

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

func (*OrderBook) MarshalTo added in v0.0.6

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

func (*OrderBook) MarshalToSizedBuffer added in v0.0.6

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

func (*OrderBook) ProtoMessage added in v0.0.6

func (*OrderBook) ProtoMessage()

func (*OrderBook) Reset added in v0.0.6

func (m *OrderBook) Reset()

func (*OrderBook) Size added in v0.0.6

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

func (OrderBook) String added in v0.0.6

func (ob OrderBook) String() string

String returns a human readable string representation of a OrderBook.

func (*OrderBook) Unmarshal added in v0.0.6

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

func (*OrderBook) XXX_DiscardUnknown added in v0.0.6

func (m *OrderBook) XXX_DiscardUnknown()

func (*OrderBook) XXX_Marshal added in v0.0.6

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

func (*OrderBook) XXX_Merge added in v0.0.6

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

func (*OrderBook) XXX_Size added in v0.0.6

func (m *OrderBook) XXX_Size() int

func (*OrderBook) XXX_Unmarshal added in v0.0.6

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

type OrderBookOddsExposure added in v0.0.6

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 added in v0.0.6

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

NewOrderBookOddsExposure creates a new book odds exposure object

func (*OrderBookOddsExposure) Descriptor added in v0.0.6

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

func (*OrderBookOddsExposure) Marshal added in v0.0.6

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

func (*OrderBookOddsExposure) MarshalTo added in v0.0.6

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

func (*OrderBookOddsExposure) MarshalToSizedBuffer added in v0.0.6

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

func (*OrderBookOddsExposure) ProtoMessage added in v0.0.6

func (*OrderBookOddsExposure) ProtoMessage()

func (*OrderBookOddsExposure) Reset added in v0.0.6

func (m *OrderBookOddsExposure) Reset()

func (*OrderBookOddsExposure) Size added in v0.0.6

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

func (OrderBookOddsExposure) String added in v0.0.6

func (boe OrderBookOddsExposure) String() string

String returns a human readable string representation of a BookOddsExposure.

func (*OrderBookOddsExposure) Unmarshal added in v0.0.6

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

func (*OrderBookOddsExposure) XXX_DiscardUnknown added in v0.0.6

func (m *OrderBookOddsExposure) XXX_DiscardUnknown()

func (*OrderBookOddsExposure) XXX_Marshal added in v0.0.6

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

func (*OrderBookOddsExposure) XXX_Merge added in v0.0.6

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

func (*OrderBookOddsExposure) XXX_Size added in v0.0.6

func (m *OrderBookOddsExposure) XXX_Size() int

func (*OrderBookOddsExposure) XXX_Unmarshal added in v0.0.6

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

type OrderBookParticipation added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

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

func (*OrderBookParticipation) Marshal added in v0.0.6

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

func (*OrderBookParticipation) MarshalTo added in v0.0.6

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

func (*OrderBookParticipation) MarshalToSizedBuffer added in v0.0.6

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

func (*OrderBookParticipation) ProtoMessage added in v0.0.6

func (*OrderBookParticipation) ProtoMessage()

func (*OrderBookParticipation) Reset added in v0.0.6

func (m *OrderBookParticipation) Reset()

func (*OrderBookParticipation) Size added in v0.0.6

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

func (OrderBookParticipation) String added in v0.0.6

func (bp OrderBookParticipation) String() string

String returns a human readable string representation of a BookParticipation.

func (*OrderBookParticipation) Unmarshal added in v0.0.6

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

func (*OrderBookParticipation) XXX_DiscardUnknown added in v0.0.6

func (m *OrderBookParticipation) XXX_DiscardUnknown()

func (*OrderBookParticipation) XXX_Marshal added in v0.0.6

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

func (*OrderBookParticipation) XXX_Merge added in v0.0.6

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

func (*OrderBookParticipation) XXX_Size added in v0.0.6

func (m *OrderBookParticipation) XXX_Size() int

func (*OrderBookParticipation) XXX_Unmarshal added in v0.0.6

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

type OrderBookStats added in v0.0.6

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 added in v0.0.6

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

func (*OrderBookStats) GetResolvedUnsettled added in v0.0.6

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

func (*OrderBookStats) Marshal added in v0.0.6

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

func (*OrderBookStats) MarshalTo added in v0.0.6

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

func (*OrderBookStats) MarshalToSizedBuffer added in v0.0.6

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

func (*OrderBookStats) ProtoMessage added in v0.0.6

func (*OrderBookStats) ProtoMessage()

func (*OrderBookStats) Reset added in v0.0.6

func (m *OrderBookStats) Reset()

func (*OrderBookStats) Size added in v0.0.6

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

func (*OrderBookStats) String added in v0.0.6

func (m *OrderBookStats) String() string

func (*OrderBookStats) Unmarshal added in v0.0.6

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

func (*OrderBookStats) XXX_DiscardUnknown added in v0.0.6

func (m *OrderBookStats) XXX_DiscardUnknown()

func (*OrderBookStats) XXX_Marshal added in v0.0.6

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

func (*OrderBookStats) XXX_Merge added in v0.0.6

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

func (*OrderBookStats) XXX_Size added in v0.0.6

func (m *OrderBookStats) XXX_Size() int

func (*OrderBookStats) XXX_Unmarshal added in v0.0.6

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

type OrderBookStatus added in v0.0.6

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 added in v0.0.6

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

func (OrderBookStatus) String added in v0.0.6

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 added in v0.0.6

func (m *Params) GetBatchSettlementCount() uint64

func (*Params) GetMaxOrderBookParticipations added in v0.0.6

func (m *Params) GetMaxOrderBookParticipations() uint64

func (*Params) GetRequeueThreshold added in v0.0.7

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 added in v0.0.6

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 added in v0.0.6

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

NewParticipationBetPair creates a new Participation bet pair object

func (*ParticipationBetPair) Descriptor added in v0.0.6

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

func (*ParticipationBetPair) GetBetUID added in v0.0.6

func (m *ParticipationBetPair) GetBetUID() string

func (*ParticipationBetPair) GetOrderBookUID added in v0.0.6

func (m *ParticipationBetPair) GetOrderBookUID() string

func (*ParticipationBetPair) GetParticipationIndex added in v0.0.6

func (m *ParticipationBetPair) GetParticipationIndex() uint64

func (*ParticipationBetPair) Marshal added in v0.0.6

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

func (*ParticipationBetPair) MarshalTo added in v0.0.6

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

func (*ParticipationBetPair) MarshalToSizedBuffer added in v0.0.6

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

func (*ParticipationBetPair) ProtoMessage added in v0.0.6

func (*ParticipationBetPair) ProtoMessage()

func (*ParticipationBetPair) Reset added in v0.0.6

func (m *ParticipationBetPair) Reset()

func (*ParticipationBetPair) Size added in v0.0.6

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

func (*ParticipationBetPair) String added in v0.0.6

func (m *ParticipationBetPair) String() string

func (*ParticipationBetPair) Unmarshal added in v0.0.6

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

func (*ParticipationBetPair) XXX_DiscardUnknown added in v0.0.6

func (m *ParticipationBetPair) XXX_DiscardUnknown()

func (*ParticipationBetPair) XXX_Marshal added in v0.0.6

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

func (*ParticipationBetPair) XXX_Merge added in v0.0.6

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

func (*ParticipationBetPair) XXX_Size added in v0.0.6

func (m *ParticipationBetPair) XXX_Size() int

func (*ParticipationBetPair) XXX_Unmarshal added in v0.0.6

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

type ParticipationExposure added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

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

func (*ParticipationExposure) Marshal added in v0.0.6

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

func (*ParticipationExposure) MarshalTo added in v0.0.6

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

func (*ParticipationExposure) MarshalToSizedBuffer added in v0.0.6

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

func (*ParticipationExposure) ProtoMessage added in v0.0.6

func (*ParticipationExposure) ProtoMessage()

func (*ParticipationExposure) Reset added in v0.0.6

func (m *ParticipationExposure) Reset()

func (*ParticipationExposure) Size added in v0.0.6

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

func (ParticipationExposure) String added in v0.0.6

func (pe ParticipationExposure) String() string

String returns a human readable string representation of a participationExposure.

func (*ParticipationExposure) Unmarshal added in v0.0.6

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

func (*ParticipationExposure) XXX_DiscardUnknown added in v0.0.6

func (m *ParticipationExposure) XXX_DiscardUnknown()

func (*ParticipationExposure) XXX_Marshal added in v0.0.6

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

func (*ParticipationExposure) XXX_Merge added in v0.0.6

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

func (*ParticipationExposure) XXX_Size added in v0.0.6

func (m *ParticipationExposure) XXX_Size() int

func (*ParticipationExposure) XXX_Unmarshal added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) GetOrderBookUid added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) GetPagination added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) Marshal added in v0.0.6

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

func (*QueryHistoricalParticipationExposuresRequest) MarshalTo added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) Reset added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) Size added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) String added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) Unmarshal added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryHistoricalParticipationExposuresRequest) XXX_Marshal added in v0.0.6

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

func (*QueryHistoricalParticipationExposuresRequest) XXX_Merge added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) XXX_Size added in v0.0.6

func (*QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal added in v0.0.6

type QueryHistoricalParticipationExposuresResponse added in v0.0.6

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 added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) GetPagination added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) GetParticipationExposures added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) Marshal added in v0.0.6

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

func (*QueryHistoricalParticipationExposuresResponse) MarshalTo added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) Reset added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) Size added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) String added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) Unmarshal added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryHistoricalParticipationExposuresResponse) XXX_Marshal added in v0.0.6

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

func (*QueryHistoricalParticipationExposuresResponse) XXX_Merge added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) XXX_Size added in v0.0.6

func (*QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal added in v0.0.6

type QueryOrderBookExposureRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookExposureRequest) GetOddsUid added in v0.0.6

func (m *QueryOrderBookExposureRequest) GetOddsUid() string

func (*QueryOrderBookExposureRequest) GetOrderBookUid added in v0.0.6

func (m *QueryOrderBookExposureRequest) GetOrderBookUid() string

func (*QueryOrderBookExposureRequest) Marshal added in v0.0.6

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

func (*QueryOrderBookExposureRequest) MarshalTo added in v0.0.6

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

func (*QueryOrderBookExposureRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookExposureRequest) ProtoMessage added in v0.0.6

func (*QueryOrderBookExposureRequest) ProtoMessage()

func (*QueryOrderBookExposureRequest) Reset added in v0.0.6

func (m *QueryOrderBookExposureRequest) Reset()

func (*QueryOrderBookExposureRequest) Size added in v0.0.6

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

func (*QueryOrderBookExposureRequest) String added in v0.0.6

func (*QueryOrderBookExposureRequest) Unmarshal added in v0.0.6

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

func (*QueryOrderBookExposureRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookExposureRequest) XXX_DiscardUnknown()

func (*QueryOrderBookExposureRequest) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookExposureRequest) XXX_Merge added in v0.0.6

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

func (*QueryOrderBookExposureRequest) XXX_Size added in v0.0.6

func (m *QueryOrderBookExposureRequest) XXX_Size() int

func (*QueryOrderBookExposureRequest) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookExposureResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookExposureResponse) GetOrderBookExposure added in v0.0.6

func (m *QueryOrderBookExposureResponse) GetOrderBookExposure() OrderBookOddsExposure

func (*QueryOrderBookExposureResponse) Marshal added in v0.0.6

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

func (*QueryOrderBookExposureResponse) MarshalTo added in v0.0.6

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

func (*QueryOrderBookExposureResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookExposureResponse) ProtoMessage added in v0.0.6

func (*QueryOrderBookExposureResponse) ProtoMessage()

func (*QueryOrderBookExposureResponse) Reset added in v0.0.6

func (m *QueryOrderBookExposureResponse) Reset()

func (*QueryOrderBookExposureResponse) Size added in v0.0.6

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

func (*QueryOrderBookExposureResponse) String added in v0.0.6

func (*QueryOrderBookExposureResponse) Unmarshal added in v0.0.6

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

func (*QueryOrderBookExposureResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookExposureResponse) XXX_DiscardUnknown()

func (*QueryOrderBookExposureResponse) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookExposureResponse) XXX_Merge added in v0.0.6

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

func (*QueryOrderBookExposureResponse) XXX_Size added in v0.0.6

func (m *QueryOrderBookExposureResponse) XXX_Size() int

func (*QueryOrderBookExposureResponse) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookExposuresRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) GetOrderBookUid added in v0.0.6

func (m *QueryOrderBookExposuresRequest) GetOrderBookUid() string

func (*QueryOrderBookExposuresRequest) GetPagination added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) Marshal added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) MarshalTo added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) ProtoMessage added in v0.0.6

func (*QueryOrderBookExposuresRequest) ProtoMessage()

func (*QueryOrderBookExposuresRequest) Reset added in v0.0.6

func (m *QueryOrderBookExposuresRequest) Reset()

func (*QueryOrderBookExposuresRequest) Size added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) String added in v0.0.6

func (*QueryOrderBookExposuresRequest) Unmarshal added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookExposuresRequest) XXX_DiscardUnknown()

func (*QueryOrderBookExposuresRequest) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) XXX_Merge added in v0.0.6

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

func (*QueryOrderBookExposuresRequest) XXX_Size added in v0.0.6

func (m *QueryOrderBookExposuresRequest) XXX_Size() int

func (*QueryOrderBookExposuresRequest) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookExposuresResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) GetOrderBookExposures added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) GetPagination added in v0.0.6

func (*QueryOrderBookExposuresResponse) Marshal added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) MarshalTo added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) ProtoMessage added in v0.0.6

func (*QueryOrderBookExposuresResponse) ProtoMessage()

func (*QueryOrderBookExposuresResponse) Reset added in v0.0.6

func (*QueryOrderBookExposuresResponse) Size added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) String added in v0.0.6

func (*QueryOrderBookExposuresResponse) Unmarshal added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookExposuresResponse) XXX_DiscardUnknown()

func (*QueryOrderBookExposuresResponse) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) XXX_Merge added in v0.0.6

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

func (*QueryOrderBookExposuresResponse) XXX_Size added in v0.0.6

func (m *QueryOrderBookExposuresResponse) XXX_Size() int

func (*QueryOrderBookExposuresResponse) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookParticipationRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookParticipationRequest) GetOrderBookUid added in v0.0.6

func (m *QueryOrderBookParticipationRequest) GetOrderBookUid() string

func (*QueryOrderBookParticipationRequest) GetParticipationIndex added in v0.0.6

func (m *QueryOrderBookParticipationRequest) GetParticipationIndex() uint64

func (*QueryOrderBookParticipationRequest) Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationRequest) MarshalTo added in v0.0.6

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

func (*QueryOrderBookParticipationRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookParticipationRequest) ProtoMessage added in v0.0.6

func (*QueryOrderBookParticipationRequest) ProtoMessage()

func (*QueryOrderBookParticipationRequest) Reset added in v0.0.6

func (*QueryOrderBookParticipationRequest) Size added in v0.0.6

func (*QueryOrderBookParticipationRequest) String added in v0.0.6

func (*QueryOrderBookParticipationRequest) Unmarshal added in v0.0.6

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

func (*QueryOrderBookParticipationRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookParticipationRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationRequest) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationRequest) XXX_Merge added in v0.0.6

func (*QueryOrderBookParticipationRequest) XXX_Size added in v0.0.6

func (*QueryOrderBookParticipationRequest) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookParticipationResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookParticipationResponse) GetOrderBookParticipation added in v0.0.6

func (m *QueryOrderBookParticipationResponse) GetOrderBookParticipation() OrderBookParticipation

func (*QueryOrderBookParticipationResponse) Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationResponse) MarshalTo added in v0.0.6

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

func (*QueryOrderBookParticipationResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookParticipationResponse) ProtoMessage added in v0.0.6

func (*QueryOrderBookParticipationResponse) ProtoMessage()

func (*QueryOrderBookParticipationResponse) Reset added in v0.0.6

func (*QueryOrderBookParticipationResponse) Size added in v0.0.6

func (*QueryOrderBookParticipationResponse) String added in v0.0.6

func (*QueryOrderBookParticipationResponse) Unmarshal added in v0.0.6

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

func (*QueryOrderBookParticipationResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookParticipationResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationResponse) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationResponse) XXX_Merge added in v0.0.6

func (*QueryOrderBookParticipationResponse) XXX_Size added in v0.0.6

func (*QueryOrderBookParticipationResponse) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookParticipationsRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookParticipationsRequest) GetOrderBookUid added in v0.0.6

func (m *QueryOrderBookParticipationsRequest) GetOrderBookUid() string

func (*QueryOrderBookParticipationsRequest) GetPagination added in v0.0.6

func (*QueryOrderBookParticipationsRequest) Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationsRequest) MarshalTo added in v0.0.6

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

func (*QueryOrderBookParticipationsRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookParticipationsRequest) ProtoMessage added in v0.0.6

func (*QueryOrderBookParticipationsRequest) ProtoMessage()

func (*QueryOrderBookParticipationsRequest) Reset added in v0.0.6

func (*QueryOrderBookParticipationsRequest) Size added in v0.0.6

func (*QueryOrderBookParticipationsRequest) String added in v0.0.6

func (*QueryOrderBookParticipationsRequest) Unmarshal added in v0.0.6

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

func (*QueryOrderBookParticipationsRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookParticipationsRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationsRequest) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationsRequest) XXX_Merge added in v0.0.6

func (*QueryOrderBookParticipationsRequest) XXX_Size added in v0.0.6

func (*QueryOrderBookParticipationsRequest) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookParticipationsResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) GetOrderBookParticipations added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) GetPagination added in v0.0.6

func (*QueryOrderBookParticipationsResponse) Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) MarshalTo added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) ProtoMessage added in v0.0.6

func (*QueryOrderBookParticipationsResponse) ProtoMessage()

func (*QueryOrderBookParticipationsResponse) Reset added in v0.0.6

func (*QueryOrderBookParticipationsResponse) Size added in v0.0.6

func (*QueryOrderBookParticipationsResponse) String added in v0.0.6

func (*QueryOrderBookParticipationsResponse) Unmarshal added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookParticipationsResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationsResponse) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookParticipationsResponse) XXX_Merge added in v0.0.6

func (*QueryOrderBookParticipationsResponse) XXX_Size added in v0.0.6

func (*QueryOrderBookParticipationsResponse) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookRequest) GetOrderBookUid added in v0.0.6

func (m *QueryOrderBookRequest) GetOrderBookUid() string

func (*QueryOrderBookRequest) Marshal added in v0.0.6

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

func (*QueryOrderBookRequest) MarshalTo added in v0.0.6

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

func (*QueryOrderBookRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookRequest) ProtoMessage added in v0.0.6

func (*QueryOrderBookRequest) ProtoMessage()

func (*QueryOrderBookRequest) Reset added in v0.0.6

func (m *QueryOrderBookRequest) Reset()

func (*QueryOrderBookRequest) Size added in v0.0.6

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

func (*QueryOrderBookRequest) String added in v0.0.6

func (m *QueryOrderBookRequest) String() string

func (*QueryOrderBookRequest) Unmarshal added in v0.0.6

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

func (*QueryOrderBookRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookRequest) XXX_DiscardUnknown()

func (*QueryOrderBookRequest) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookRequest) XXX_Merge added in v0.0.6

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

func (*QueryOrderBookRequest) XXX_Size added in v0.0.6

func (m *QueryOrderBookRequest) XXX_Size() int

func (*QueryOrderBookRequest) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBookResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBookResponse) GetOrderBook added in v0.0.6

func (m *QueryOrderBookResponse) GetOrderBook() OrderBook

func (*QueryOrderBookResponse) Marshal added in v0.0.6

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

func (*QueryOrderBookResponse) MarshalTo added in v0.0.6

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

func (*QueryOrderBookResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBookResponse) ProtoMessage added in v0.0.6

func (*QueryOrderBookResponse) ProtoMessage()

func (*QueryOrderBookResponse) Reset added in v0.0.6

func (m *QueryOrderBookResponse) Reset()

func (*QueryOrderBookResponse) Size added in v0.0.6

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

func (*QueryOrderBookResponse) String added in v0.0.6

func (m *QueryOrderBookResponse) String() string

func (*QueryOrderBookResponse) Unmarshal added in v0.0.6

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

func (*QueryOrderBookResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBookResponse) XXX_DiscardUnknown()

func (*QueryOrderBookResponse) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBookResponse) XXX_Merge added in v0.0.6

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

func (*QueryOrderBookResponse) XXX_Size added in v0.0.6

func (m *QueryOrderBookResponse) XXX_Size() int

func (*QueryOrderBookResponse) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBooksRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBooksRequest) GetPagination added in v0.0.6

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

func (*QueryOrderBooksRequest) GetStatus added in v0.0.6

func (m *QueryOrderBooksRequest) GetStatus() string

func (*QueryOrderBooksRequest) Marshal added in v0.0.6

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

func (*QueryOrderBooksRequest) MarshalTo added in v0.0.6

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

func (*QueryOrderBooksRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBooksRequest) ProtoMessage added in v0.0.6

func (*QueryOrderBooksRequest) ProtoMessage()

func (*QueryOrderBooksRequest) Reset added in v0.0.6

func (m *QueryOrderBooksRequest) Reset()

func (*QueryOrderBooksRequest) Size added in v0.0.6

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

func (*QueryOrderBooksRequest) String added in v0.0.6

func (m *QueryOrderBooksRequest) String() string

func (*QueryOrderBooksRequest) Unmarshal added in v0.0.6

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

func (*QueryOrderBooksRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBooksRequest) XXX_DiscardUnknown()

func (*QueryOrderBooksRequest) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBooksRequest) XXX_Merge added in v0.0.6

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

func (*QueryOrderBooksRequest) XXX_Size added in v0.0.6

func (m *QueryOrderBooksRequest) XXX_Size() int

func (*QueryOrderBooksRequest) XXX_Unmarshal added in v0.0.6

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

type QueryOrderBooksResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryOrderBooksResponse) GetOrderbooks added in v0.0.6

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

func (*QueryOrderBooksResponse) GetPagination added in v0.0.6

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

func (*QueryOrderBooksResponse) Marshal added in v0.0.6

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

func (*QueryOrderBooksResponse) MarshalTo added in v0.0.6

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

func (*QueryOrderBooksResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryOrderBooksResponse) ProtoMessage added in v0.0.6

func (*QueryOrderBooksResponse) ProtoMessage()

func (*QueryOrderBooksResponse) Reset added in v0.0.6

func (m *QueryOrderBooksResponse) Reset()

func (*QueryOrderBooksResponse) Size added in v0.0.6

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

func (*QueryOrderBooksResponse) String added in v0.0.6

func (m *QueryOrderBooksResponse) String() string

func (*QueryOrderBooksResponse) Unmarshal added in v0.0.6

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

func (*QueryOrderBooksResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryOrderBooksResponse) XXX_DiscardUnknown()

func (*QueryOrderBooksResponse) XXX_Marshal added in v0.0.6

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

func (*QueryOrderBooksResponse) XXX_Merge added in v0.0.6

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

func (*QueryOrderBooksResponse) XXX_Size added in v0.0.6

func (m *QueryOrderBooksResponse) XXX_Size() int

func (*QueryOrderBooksResponse) XXX_Unmarshal added in v0.0.6

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 added in v0.0.6

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 added in v0.0.6

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

func (*QueryParticipationExposureRequest) GetOrderBookUid added in v0.0.6

func (m *QueryParticipationExposureRequest) GetOrderBookUid() string

func (*QueryParticipationExposureRequest) GetPagination added in v0.0.6

func (*QueryParticipationExposureRequest) GetParticipationIndex added in v0.0.6

func (m *QueryParticipationExposureRequest) GetParticipationIndex() uint64

func (*QueryParticipationExposureRequest) Marshal added in v0.0.6

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

func (*QueryParticipationExposureRequest) MarshalTo added in v0.0.6

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

func (*QueryParticipationExposureRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryParticipationExposureRequest) ProtoMessage added in v0.0.6

func (*QueryParticipationExposureRequest) ProtoMessage()

func (*QueryParticipationExposureRequest) Reset added in v0.0.6

func (*QueryParticipationExposureRequest) Size added in v0.0.6

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

func (*QueryParticipationExposureRequest) String added in v0.0.6

func (*QueryParticipationExposureRequest) Unmarshal added in v0.0.6

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

func (*QueryParticipationExposureRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryParticipationExposureRequest) XXX_DiscardUnknown()

func (*QueryParticipationExposureRequest) XXX_Marshal added in v0.0.6

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

func (*QueryParticipationExposureRequest) XXX_Merge added in v0.0.6

func (*QueryParticipationExposureRequest) XXX_Size added in v0.0.6

func (m *QueryParticipationExposureRequest) XXX_Size() int

func (*QueryParticipationExposureRequest) XXX_Unmarshal added in v0.0.6

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

type QueryParticipationExposureResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryParticipationExposureResponse) GetPagination added in v0.0.6

func (*QueryParticipationExposureResponse) GetParticipationExposure added in v0.0.6

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

func (*QueryParticipationExposureResponse) Marshal added in v0.0.6

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

func (*QueryParticipationExposureResponse) MarshalTo added in v0.0.6

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

func (*QueryParticipationExposureResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryParticipationExposureResponse) ProtoMessage added in v0.0.6

func (*QueryParticipationExposureResponse) ProtoMessage()

func (*QueryParticipationExposureResponse) Reset added in v0.0.6

func (*QueryParticipationExposureResponse) Size added in v0.0.6

func (*QueryParticipationExposureResponse) String added in v0.0.6

func (*QueryParticipationExposureResponse) Unmarshal added in v0.0.6

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

func (*QueryParticipationExposureResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryParticipationExposureResponse) XXX_DiscardUnknown()

func (*QueryParticipationExposureResponse) XXX_Marshal added in v0.0.6

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

func (*QueryParticipationExposureResponse) XXX_Merge added in v0.0.6

func (*QueryParticipationExposureResponse) XXX_Size added in v0.0.6

func (*QueryParticipationExposureResponse) XXX_Unmarshal added in v0.0.6

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

type QueryParticipationExposuresRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryParticipationExposuresRequest) GetOrderBookUid added in v0.0.6

func (m *QueryParticipationExposuresRequest) GetOrderBookUid() string

func (*QueryParticipationExposuresRequest) GetPagination added in v0.0.6

func (*QueryParticipationExposuresRequest) Marshal added in v0.0.6

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

func (*QueryParticipationExposuresRequest) MarshalTo added in v0.0.6

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

func (*QueryParticipationExposuresRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryParticipationExposuresRequest) ProtoMessage added in v0.0.6

func (*QueryParticipationExposuresRequest) ProtoMessage()

func (*QueryParticipationExposuresRequest) Reset added in v0.0.6

func (*QueryParticipationExposuresRequest) Size added in v0.0.6

func (*QueryParticipationExposuresRequest) String added in v0.0.6

func (*QueryParticipationExposuresRequest) Unmarshal added in v0.0.6

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

func (*QueryParticipationExposuresRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryParticipationExposuresRequest) XXX_Marshal added in v0.0.6

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

func (*QueryParticipationExposuresRequest) XXX_Merge added in v0.0.6

func (*QueryParticipationExposuresRequest) XXX_Size added in v0.0.6

func (*QueryParticipationExposuresRequest) XXX_Unmarshal added in v0.0.6

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

type QueryParticipationExposuresResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryParticipationExposuresResponse) GetPagination added in v0.0.6

func (*QueryParticipationExposuresResponse) GetParticipationExposures added in v0.0.6

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

func (*QueryParticipationExposuresResponse) Marshal added in v0.0.6

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

func (*QueryParticipationExposuresResponse) MarshalTo added in v0.0.6

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

func (*QueryParticipationExposuresResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryParticipationExposuresResponse) ProtoMessage added in v0.0.6

func (*QueryParticipationExposuresResponse) ProtoMessage()

func (*QueryParticipationExposuresResponse) Reset added in v0.0.6

func (*QueryParticipationExposuresResponse) Size added in v0.0.6

func (*QueryParticipationExposuresResponse) String added in v0.0.6

func (*QueryParticipationExposuresResponse) Unmarshal added in v0.0.6

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

func (*QueryParticipationExposuresResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryParticipationExposuresResponse) XXX_Marshal added in v0.0.6

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

func (*QueryParticipationExposuresResponse) XXX_Merge added in v0.0.6

func (*QueryParticipationExposuresResponse) XXX_Size added in v0.0.6

func (*QueryParticipationExposuresResponse) XXX_Unmarshal added in v0.0.6

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

type QueryParticipationFulfilledBetsRequest added in v0.0.6

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 added in v0.0.6

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

func (*QueryParticipationFulfilledBetsRequest) GetOrderBookUid added in v0.0.6

func (m *QueryParticipationFulfilledBetsRequest) GetOrderBookUid() string

func (*QueryParticipationFulfilledBetsRequest) GetPagination added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) GetParticipationIndex added in v0.0.6

func (m *QueryParticipationFulfilledBetsRequest) GetParticipationIndex() uint64

func (*QueryParticipationFulfilledBetsRequest) Marshal added in v0.0.6

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

func (*QueryParticipationFulfilledBetsRequest) MarshalTo added in v0.0.6

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

func (*QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryParticipationFulfilledBetsRequest) ProtoMessage added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) Reset added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) Size added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) String added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) Unmarshal added in v0.0.6

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

func (*QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown added in v0.0.6

func (m *QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown()

func (*QueryParticipationFulfilledBetsRequest) XXX_Marshal added in v0.0.6

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

func (*QueryParticipationFulfilledBetsRequest) XXX_Merge added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) XXX_Size added in v0.0.6

func (*QueryParticipationFulfilledBetsRequest) XXX_Unmarshal added in v0.0.6

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

type QueryParticipationFulfilledBetsResponse added in v0.0.6

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 added in v0.0.6

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

func (*QueryParticipationFulfilledBetsResponse) GetPagination added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) GetParticipationBets added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) Marshal added in v0.0.6

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

func (*QueryParticipationFulfilledBetsResponse) MarshalTo added in v0.0.6

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

func (*QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*QueryParticipationFulfilledBetsResponse) ProtoMessage added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) Reset added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) Size added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) String added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) Unmarshal added in v0.0.6

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

func (*QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown added in v0.0.6

func (m *QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown()

func (*QueryParticipationFulfilledBetsResponse) XXX_Marshal added in v0.0.6

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

func (*QueryParticipationFulfilledBetsResponse) XXX_Merge added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) XXX_Size added in v0.0.6

func (*QueryParticipationFulfilledBetsResponse) XXX_Unmarshal added in v0.0.6

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) HistoricalParticipationExposures added in v0.0.6

func (*UnimplementedQueryServer) OrderBook added in v0.0.6

func (*UnimplementedQueryServer) OrderBookExposure added in v0.0.6

func (*UnimplementedQueryServer) OrderBookExposures added in v0.0.6

func (*UnimplementedQueryServer) OrderBookParticipation added in v0.0.6

func (*UnimplementedQueryServer) OrderBookParticipations added in v0.0.6

func (*UnimplementedQueryServer) OrderBooks added in v0.0.6

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ParticipationExposure added in v0.0.6

func (*UnimplementedQueryServer) ParticipationExposures added in v0.0.6

func (*UnimplementedQueryServer) ParticipationFulfilledBets added in v0.0.6

Jump to

Keyboard shortcuts

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