Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetHistoricalParticipationExposureKey(bookUID, oddsUID string, index, round uint64) []byte
- func GetOrderBookKey(bookUID string) []byte
- func GetOrderBookOddsExposureKey(bookUID, oddsUID string) []byte
- func GetOrderBookOddsExposuresKey(bookUID string) []byte
- func GetOrderBookParticipationKey(bookUID string, participationIndex uint64) []byte
- func GetOrderBookParticipationsKey(bookUID string) []byte
- func GetParticipationBetPairKey(bookUID string, bookParticipationIndex uint64, betID uint64) []byte
- func GetParticipationByIndexKey(bookUID string, index uint64) []byte
- func GetParticipationExposureByIndexKey(bookUID, oddsUID string, index uint64) []byte
- func GetParticipationExposureKey(bookUID, oddsUID string, index uint64) []byte
- func GetParticipationExposuresByOrderBookKey(bookUID string) []byte
- func GetParticipationExposuresKey(bookUID, oddsUID string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(_ *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type BetKeeper
- type FeeGrantKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetHistoricalParticipationExposureList() []ParticipationExposure
- func (m *GenesisState) GetOrderBookExposureList() []OrderBookOddsExposure
- func (m *GenesisState) GetOrderBookList() []OrderBook
- func (m *GenesisState) GetOrderBookParticipationList() []OrderBookParticipation
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetParticipationBetPairExposureList() []ParticipationBetPair
- func (m *GenesisState) GetParticipationExposureByIndexList() []ParticipationExposure
- func (m *GenesisState) GetParticipationExposureList() []ParticipationExposure
- func (m *GenesisState) GetStats() OrderBookStats
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type HouseKeeper
- type MarketKeeper
- type OVMKeeper
- type OrderBook
- func (*OrderBook) Descriptor() ([]byte, []int)
- func (m *OrderBook) Marshal() (dAtA []byte, err error)
- func (m *OrderBook) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBook) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderBook) ProtoMessage()
- func (m *OrderBook) Reset()
- func (m *OrderBook) Size() (n int)
- func (ob OrderBook) String() string
- func (m *OrderBook) Unmarshal(dAtA []byte) error
- func (m *OrderBook) XXX_DiscardUnknown()
- func (m *OrderBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBook) XXX_Merge(src proto.Message)
- func (m *OrderBook) XXX_Size() int
- func (m *OrderBook) XXX_Unmarshal(b []byte) error
- type OrderBookEvent
- func (obe *OrderBookEvent) AddOrderBookOddsExposure(boe OrderBookOddsExposure)
- func (obe *OrderBookEvent) AddParticipationExposure(pe ParticipationExposure)
- func (*OrderBookEvent) Descriptor() ([]byte, []int)
- func (obe *OrderBookEvent) Emit(ctx sdk.Context)
- func (m *OrderBookEvent) GetOrderBookOddsExposure() []*OrderBookOddsExposure
- func (m *OrderBookEvent) GetParticipationExposure() []*ParticipationExposure
- func (m *OrderBookEvent) Marshal() (dAtA []byte, err error)
- func (m *OrderBookEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBookEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderBookEvent) ProtoMessage()
- func (m *OrderBookEvent) Reset()
- func (m *OrderBookEvent) Size() (n int)
- func (m *OrderBookEvent) String() string
- func (m *OrderBookEvent) Unmarshal(dAtA []byte) error
- func (m *OrderBookEvent) XXX_DiscardUnknown()
- func (m *OrderBookEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBookEvent) XXX_Merge(src proto.Message)
- func (m *OrderBookEvent) XXX_Size() int
- func (m *OrderBookEvent) XXX_Unmarshal(b []byte) error
- type OrderBookLiquidityFunder
- type OrderBookOddsExposure
- func (*OrderBookOddsExposure) Descriptor() ([]byte, []int)
- func (m *OrderBookOddsExposure) Marshal() (dAtA []byte, err error)
- func (m *OrderBookOddsExposure) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBookOddsExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderBookOddsExposure) ProtoMessage()
- func (m *OrderBookOddsExposure) Reset()
- func (m *OrderBookOddsExposure) Size() (n int)
- func (boe OrderBookOddsExposure) String() string
- func (m *OrderBookOddsExposure) Unmarshal(dAtA []byte) error
- func (m *OrderBookOddsExposure) XXX_DiscardUnknown()
- func (m *OrderBookOddsExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBookOddsExposure) XXX_Merge(src proto.Message)
- func (m *OrderBookOddsExposure) XXX_Size() int
- func (m *OrderBookOddsExposure) XXX_Unmarshal(b []byte) error
- type OrderBookParticipation
- func (p OrderBookParticipation) CalculateMaxLoss(betAmount sdkmath.Int) sdkmath.Int
- func (*OrderBookParticipation) Descriptor() ([]byte, []int)
- func (p *OrderBookParticipation) IsEligibleForNextRound() bool
- func (p *OrderBookParticipation) IsWithdrawable() bool
- func (m *OrderBookParticipation) Marshal() (dAtA []byte, err error)
- func (m *OrderBookParticipation) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBookParticipation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *OrderBookParticipation) NotParticipatedInBetFulfillment() bool
- func (*OrderBookParticipation) ProtoMessage()
- func (m *OrderBookParticipation) Reset()
- func (p *OrderBookParticipation) ResetForNextRound(notFilledExposures uint64)
- func (p *OrderBookParticipation) SetCurrentRound(pe *ParticipationExposure, oddsUID string, betAmount sdkmath.Int)
- func (p *OrderBookParticipation) SetLiquidityAfterWithdrawal(withdrawalAmt sdkmath.Int)
- func (m *OrderBookParticipation) Size() (n int)
- func (p OrderBookParticipation) String() string
- func (p *OrderBookParticipation) TrimCurrentRoundLiquidity()
- func (m *OrderBookParticipation) Unmarshal(dAtA []byte) error
- func (p *OrderBookParticipation) ValidateWithdraw(depositorAddress string, participationIndex uint64) error
- func (p *OrderBookParticipation) WithdrawableAmount(mode housetypes.WithdrawalMode, amount sdkmath.Int) (sdkmath.Int, error)
- func (m *OrderBookParticipation) XXX_DiscardUnknown()
- func (m *OrderBookParticipation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBookParticipation) XXX_Merge(src proto.Message)
- func (m *OrderBookParticipation) XXX_Size() int
- func (m *OrderBookParticipation) XXX_Unmarshal(b []byte) error
- type OrderBookStats
- func (*OrderBookStats) Descriptor() ([]byte, []int)
- func (m *OrderBookStats) GetResolvedUnsettled() []string
- func (m *OrderBookStats) Marshal() (dAtA []byte, err error)
- func (m *OrderBookStats) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBookStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderBookStats) ProtoMessage()
- func (m *OrderBookStats) Reset()
- func (m *OrderBookStats) Size() (n int)
- func (m *OrderBookStats) String() string
- func (m *OrderBookStats) Unmarshal(dAtA []byte) error
- func (m *OrderBookStats) XXX_DiscardUnknown()
- func (m *OrderBookStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBookStats) XXX_Merge(src proto.Message)
- func (m *OrderBookStats) XXX_Size() int
- func (m *OrderBookStats) XXX_Unmarshal(b []byte) error
- type OrderBookStatus
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetBatchSettlementCount() uint64
- func (m *Params) GetMaxOrderBookParticipations() uint64
- func (m *Params) GetRequeueThreshold() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ParticipationBetPair
- func (*ParticipationBetPair) Descriptor() ([]byte, []int)
- func (m *ParticipationBetPair) GetBetUID() string
- func (m *ParticipationBetPair) GetOrderBookUID() string
- func (m *ParticipationBetPair) GetParticipationIndex() uint64
- func (m *ParticipationBetPair) Marshal() (dAtA []byte, err error)
- func (m *ParticipationBetPair) MarshalTo(dAtA []byte) (int, error)
- func (m *ParticipationBetPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParticipationBetPair) ProtoMessage()
- func (m *ParticipationBetPair) Reset()
- func (m *ParticipationBetPair) Size() (n int)
- func (m *ParticipationBetPair) String() string
- func (m *ParticipationBetPair) Unmarshal(dAtA []byte) error
- func (m *ParticipationBetPair) XXX_DiscardUnknown()
- func (m *ParticipationBetPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParticipationBetPair) XXX_Merge(src proto.Message)
- func (m *ParticipationBetPair) XXX_Size() int
- func (m *ParticipationBetPair) XXX_Unmarshal(b []byte) error
- type ParticipationExposure
- func (pe ParticipationExposure) CalculateMaxLoss(totalBetAmount sdkmath.Int) sdkmath.Int
- func (*ParticipationExposure) Descriptor() ([]byte, []int)
- func (m *ParticipationExposure) Marshal() (dAtA []byte, err error)
- func (m *ParticipationExposure) MarshalTo(dAtA []byte) (int, error)
- func (m *ParticipationExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (pe ParticipationExposure) NextRound() ParticipationExposure
- func (*ParticipationExposure) ProtoMessage()
- func (m *ParticipationExposure) Reset()
- func (pe *ParticipationExposure) SetCurrentRound(betAmount, payoutProfit sdkmath.Int)
- func (m *ParticipationExposure) Size() (n int)
- func (pe ParticipationExposure) String() string
- func (m *ParticipationExposure) Unmarshal(dAtA []byte) error
- func (m *ParticipationExposure) XXX_DiscardUnknown()
- func (m *ParticipationExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParticipationExposure) XXX_Merge(src proto.Message)
- func (m *ParticipationExposure) XXX_Size() int
- func (m *ParticipationExposure) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryHistoricalParticipationExposuresRequest
- func (*QueryHistoricalParticipationExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalParticipationExposuresRequest) GetOrderBookUid() string
- func (m *QueryHistoricalParticipationExposuresRequest) GetPagination() *query.PageRequest
- func (m *QueryHistoricalParticipationExposuresRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryHistoricalParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage()
- func (m *QueryHistoricalParticipationExposuresRequest) Reset()
- func (m *QueryHistoricalParticipationExposuresRequest) Size() (n int)
- func (m *QueryHistoricalParticipationExposuresRequest) String() string
- func (m *QueryHistoricalParticipationExposuresRequest) Unmarshal(dAtA []byte) error
- func (m *QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown()
- func (m *QueryHistoricalParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHistoricalParticipationExposuresRequest) XXX_Merge(src proto.Message)
- func (m *QueryHistoricalParticipationExposuresRequest) XXX_Size() int
- func (m *QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal(b []byte) error
- type QueryHistoricalParticipationExposuresResponse
- func (*QueryHistoricalParticipationExposuresResponse) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalParticipationExposuresResponse) GetPagination() *query.PageResponse
- func (m *QueryHistoricalParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure
- func (m *QueryHistoricalParticipationExposuresResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryHistoricalParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage()
- func (m *QueryHistoricalParticipationExposuresResponse) Reset()
- func (m *QueryHistoricalParticipationExposuresResponse) Size() (n int)
- func (m *QueryHistoricalParticipationExposuresResponse) String() string
- func (m *QueryHistoricalParticipationExposuresResponse) Unmarshal(dAtA []byte) error
- func (m *QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown()
- func (m *QueryHistoricalParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHistoricalParticipationExposuresResponse) XXX_Merge(src proto.Message)
- func (m *QueryHistoricalParticipationExposuresResponse) XXX_Size() int
- func (m *QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookExposureRequest
- func (*QueryOrderBookExposureRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookExposureRequest) GetOddsUid() string
- func (m *QueryOrderBookExposureRequest) GetOrderBookUid() string
- func (m *QueryOrderBookExposureRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookExposureRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookExposureRequest) ProtoMessage()
- func (m *QueryOrderBookExposureRequest) Reset()
- func (m *QueryOrderBookExposureRequest) Size() (n int)
- func (m *QueryOrderBookExposureRequest) String() string
- func (m *QueryOrderBookExposureRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookExposureRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookExposureRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookExposureRequest) XXX_Size() int
- func (m *QueryOrderBookExposureRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookExposureResponse
- func (*QueryOrderBookExposureResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookExposureResponse) GetOrderBookExposure() OrderBookOddsExposure
- func (m *QueryOrderBookExposureResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookExposureResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookExposureResponse) ProtoMessage()
- func (m *QueryOrderBookExposureResponse) Reset()
- func (m *QueryOrderBookExposureResponse) Size() (n int)
- func (m *QueryOrderBookExposureResponse) String() string
- func (m *QueryOrderBookExposureResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookExposureResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookExposureResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookExposureResponse) XXX_Size() int
- func (m *QueryOrderBookExposureResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookExposuresRequest
- func (*QueryOrderBookExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookExposuresRequest) GetOrderBookUid() string
- func (m *QueryOrderBookExposuresRequest) GetPagination() *query.PageRequest
- func (m *QueryOrderBookExposuresRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookExposuresRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookExposuresRequest) ProtoMessage()
- func (m *QueryOrderBookExposuresRequest) Reset()
- func (m *QueryOrderBookExposuresRequest) Size() (n int)
- func (m *QueryOrderBookExposuresRequest) String() string
- func (m *QueryOrderBookExposuresRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookExposuresRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookExposuresRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookExposuresRequest) XXX_Size() int
- func (m *QueryOrderBookExposuresRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookExposuresResponse
- func (*QueryOrderBookExposuresResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookExposuresResponse) GetOrderBookExposures() []OrderBookOddsExposure
- func (m *QueryOrderBookExposuresResponse) GetPagination() *query.PageResponse
- func (m *QueryOrderBookExposuresResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookExposuresResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookExposuresResponse) ProtoMessage()
- func (m *QueryOrderBookExposuresResponse) Reset()
- func (m *QueryOrderBookExposuresResponse) Size() (n int)
- func (m *QueryOrderBookExposuresResponse) String() string
- func (m *QueryOrderBookExposuresResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookExposuresResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookExposuresResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookExposuresResponse) XXX_Size() int
- func (m *QueryOrderBookExposuresResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookParticipationExposuresRequest
- func (*QueryOrderBookParticipationExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookParticipationExposuresRequest) GetOrderBookUid() string
- func (m *QueryOrderBookParticipationExposuresRequest) GetPagination() *query.PageRequest
- func (m *QueryOrderBookParticipationExposuresRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookParticipationExposuresRequest) ProtoMessage()
- func (m *QueryOrderBookParticipationExposuresRequest) Reset()
- func (m *QueryOrderBookParticipationExposuresRequest) Size() (n int)
- func (m *QueryOrderBookParticipationExposuresRequest) String() string
- func (m *QueryOrderBookParticipationExposuresRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookParticipationExposuresRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookParticipationExposuresRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookParticipationExposuresRequest) XXX_Size() int
- func (m *QueryOrderBookParticipationExposuresRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookParticipationExposuresResponse
- func (*QueryOrderBookParticipationExposuresResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookParticipationExposuresResponse) GetPagination() *query.PageResponse
- func (m *QueryOrderBookParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure
- func (m *QueryOrderBookParticipationExposuresResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookParticipationExposuresResponse) ProtoMessage()
- func (m *QueryOrderBookParticipationExposuresResponse) Reset()
- func (m *QueryOrderBookParticipationExposuresResponse) Size() (n int)
- func (m *QueryOrderBookParticipationExposuresResponse) String() string
- func (m *QueryOrderBookParticipationExposuresResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookParticipationExposuresResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookParticipationExposuresResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookParticipationExposuresResponse) XXX_Size() int
- func (m *QueryOrderBookParticipationExposuresResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookParticipationRequest
- func (*QueryOrderBookParticipationRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookParticipationRequest) GetOrderBookUid() string
- func (m *QueryOrderBookParticipationRequest) GetParticipationIndex() uint64
- func (m *QueryOrderBookParticipationRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookParticipationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookParticipationRequest) ProtoMessage()
- func (m *QueryOrderBookParticipationRequest) Reset()
- func (m *QueryOrderBookParticipationRequest) Size() (n int)
- func (m *QueryOrderBookParticipationRequest) String() string
- func (m *QueryOrderBookParticipationRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookParticipationRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookParticipationRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookParticipationRequest) XXX_Size() int
- func (m *QueryOrderBookParticipationRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookParticipationResponse
- func (*QueryOrderBookParticipationResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookParticipationResponse) GetOrderBookParticipation() OrderBookParticipation
- func (m *QueryOrderBookParticipationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookParticipationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookParticipationResponse) ProtoMessage()
- func (m *QueryOrderBookParticipationResponse) Reset()
- func (m *QueryOrderBookParticipationResponse) Size() (n int)
- func (m *QueryOrderBookParticipationResponse) String() string
- func (m *QueryOrderBookParticipationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookParticipationResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookParticipationResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookParticipationResponse) XXX_Size() int
- func (m *QueryOrderBookParticipationResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookParticipationsRequest
- func (*QueryOrderBookParticipationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookParticipationsRequest) GetOrderBookUid() string
- func (m *QueryOrderBookParticipationsRequest) GetPagination() *query.PageRequest
- func (m *QueryOrderBookParticipationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookParticipationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookParticipationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookParticipationsRequest) ProtoMessage()
- func (m *QueryOrderBookParticipationsRequest) Reset()
- func (m *QueryOrderBookParticipationsRequest) Size() (n int)
- func (m *QueryOrderBookParticipationsRequest) String() string
- func (m *QueryOrderBookParticipationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookParticipationsRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookParticipationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookParticipationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookParticipationsRequest) XXX_Size() int
- func (m *QueryOrderBookParticipationsRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookParticipationsResponse
- func (*QueryOrderBookParticipationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookParticipationsResponse) GetOrderBookParticipations() []OrderBookParticipation
- func (m *QueryOrderBookParticipationsResponse) GetPagination() *query.PageResponse
- func (m *QueryOrderBookParticipationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookParticipationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookParticipationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookParticipationsResponse) ProtoMessage()
- func (m *QueryOrderBookParticipationsResponse) Reset()
- func (m *QueryOrderBookParticipationsResponse) Size() (n int)
- func (m *QueryOrderBookParticipationsResponse) String() string
- func (m *QueryOrderBookParticipationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookParticipationsResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookParticipationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookParticipationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookParticipationsResponse) XXX_Size() int
- func (m *QueryOrderBookParticipationsResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookRequest
- func (*QueryOrderBookRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookRequest) GetOrderBookUid() string
- func (m *QueryOrderBookRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookRequest) ProtoMessage()
- func (m *QueryOrderBookRequest) Reset()
- func (m *QueryOrderBookRequest) Size() (n int)
- func (m *QueryOrderBookRequest) String() string
- func (m *QueryOrderBookRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookRequest) XXX_Size() int
- func (m *QueryOrderBookRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookResponse
- func (*QueryOrderBookResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookResponse) GetOrderBook() OrderBook
- func (m *QueryOrderBookResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookResponse) ProtoMessage()
- func (m *QueryOrderBookResponse) Reset()
- func (m *QueryOrderBookResponse) Size() (n int)
- func (m *QueryOrderBookResponse) String() string
- func (m *QueryOrderBookResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookResponse) XXX_Size() int
- func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBooksRequest
- func (*QueryOrderBooksRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBooksRequest) GetPagination() *query.PageRequest
- func (m *QueryOrderBooksRequest) GetStatus() string
- func (m *QueryOrderBooksRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBooksRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBooksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBooksRequest) ProtoMessage()
- func (m *QueryOrderBooksRequest) Reset()
- func (m *QueryOrderBooksRequest) Size() (n int)
- func (m *QueryOrderBooksRequest) String() string
- func (m *QueryOrderBooksRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBooksRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBooksRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBooksRequest) XXX_Size() int
- func (m *QueryOrderBooksRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBooksResponse
- func (*QueryOrderBooksResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBooksResponse) GetOrderbooks() []OrderBook
- func (m *QueryOrderBooksResponse) GetPagination() *query.PageResponse
- func (m *QueryOrderBooksResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBooksResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBooksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBooksResponse) ProtoMessage()
- func (m *QueryOrderBooksResponse) Reset()
- func (m *QueryOrderBooksResponse) Size() (n int)
- func (m *QueryOrderBooksResponse) String() string
- func (m *QueryOrderBooksResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBooksResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBooksResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBooksResponse) XXX_Size() int
- func (m *QueryOrderBooksResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryParticipationExposuresRequest
- func (*QueryParticipationExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryParticipationExposuresRequest) GetOrderBookUid() string
- func (m *QueryParticipationExposuresRequest) GetPagination() *query.PageRequest
- func (m *QueryParticipationExposuresRequest) GetParticipationIndex() uint64
- func (m *QueryParticipationExposuresRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParticipationExposuresRequest) ProtoMessage()
- func (m *QueryParticipationExposuresRequest) Reset()
- func (m *QueryParticipationExposuresRequest) Size() (n int)
- func (m *QueryParticipationExposuresRequest) String() string
- func (m *QueryParticipationExposuresRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParticipationExposuresRequest) XXX_DiscardUnknown()
- func (m *QueryParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParticipationExposuresRequest) XXX_Merge(src proto.Message)
- func (m *QueryParticipationExposuresRequest) XXX_Size() int
- func (m *QueryParticipationExposuresRequest) XXX_Unmarshal(b []byte) error
- type QueryParticipationExposuresResponse
- func (*QueryParticipationExposuresResponse) Descriptor() ([]byte, []int)
- func (m *QueryParticipationExposuresResponse) GetPagination() *query.PageResponse
- func (m *QueryParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure
- func (m *QueryParticipationExposuresResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParticipationExposuresResponse) ProtoMessage()
- func (m *QueryParticipationExposuresResponse) Reset()
- func (m *QueryParticipationExposuresResponse) Size() (n int)
- func (m *QueryParticipationExposuresResponse) String() string
- func (m *QueryParticipationExposuresResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParticipationExposuresResponse) XXX_DiscardUnknown()
- func (m *QueryParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParticipationExposuresResponse) XXX_Merge(src proto.Message)
- func (m *QueryParticipationExposuresResponse) XXX_Size() int
- func (m *QueryParticipationExposuresResponse) XXX_Unmarshal(b []byte) error
- type QueryParticipationFulfilledBetsRequest
- func (*QueryParticipationFulfilledBetsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParticipationFulfilledBetsRequest) GetOrderBookUid() string
- func (m *QueryParticipationFulfilledBetsRequest) GetPagination() *query.PageRequest
- func (m *QueryParticipationFulfilledBetsRequest) GetParticipationIndex() uint64
- func (m *QueryParticipationFulfilledBetsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParticipationFulfilledBetsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParticipationFulfilledBetsRequest) ProtoMessage()
- func (m *QueryParticipationFulfilledBetsRequest) Reset()
- func (m *QueryParticipationFulfilledBetsRequest) Size() (n int)
- func (m *QueryParticipationFulfilledBetsRequest) String() string
- func (m *QueryParticipationFulfilledBetsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown()
- func (m *QueryParticipationFulfilledBetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParticipationFulfilledBetsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParticipationFulfilledBetsRequest) XXX_Size() int
- func (m *QueryParticipationFulfilledBetsRequest) XXX_Unmarshal(b []byte) error
- type QueryParticipationFulfilledBetsResponse
- func (*QueryParticipationFulfilledBetsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParticipationFulfilledBetsResponse) GetPagination() *query.PageResponse
- func (m *QueryParticipationFulfilledBetsResponse) GetParticipationBets() []ParticipationBetPair
- func (m *QueryParticipationFulfilledBetsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParticipationFulfilledBetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParticipationFulfilledBetsResponse) ProtoMessage()
- func (m *QueryParticipationFulfilledBetsResponse) Reset()
- func (m *QueryParticipationFulfilledBetsResponse) Size() (n int)
- func (m *QueryParticipationFulfilledBetsResponse) String() string
- func (m *QueryParticipationFulfilledBetsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown()
- func (m *QueryParticipationFulfilledBetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParticipationFulfilledBetsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParticipationFulfilledBetsResponse) XXX_Size() int
- func (m *QueryParticipationFulfilledBetsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) HistoricalParticipationExposures(ctx context.Context, req *QueryHistoricalParticipationExposuresRequest) (*QueryHistoricalParticipationExposuresResponse, error)
- func (*UnimplementedQueryServer) OrderBook(ctx context.Context, req *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
- func (*UnimplementedQueryServer) OrderBookExposure(ctx context.Context, req *QueryOrderBookExposureRequest) (*QueryOrderBookExposureResponse, error)
- func (*UnimplementedQueryServer) OrderBookExposures(ctx context.Context, req *QueryOrderBookExposuresRequest) (*QueryOrderBookExposuresResponse, error)
- func (*UnimplementedQueryServer) OrderBookParticipation(ctx context.Context, req *QueryOrderBookParticipationRequest) (*QueryOrderBookParticipationResponse, error)
- func (*UnimplementedQueryServer) OrderBookParticipationExposures(ctx context.Context, req *QueryOrderBookParticipationExposuresRequest) (*QueryOrderBookParticipationExposuresResponse, error)
- func (*UnimplementedQueryServer) OrderBookParticipations(ctx context.Context, req *QueryOrderBookParticipationsRequest) (*QueryOrderBookParticipationsResponse, error)
- func (*UnimplementedQueryServer) OrderBooks(ctx context.Context, req *QueryOrderBooksRequest) (*QueryOrderBooksResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ParticipationExposures(ctx context.Context, req *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, error)
- func (*UnimplementedQueryServer) ParticipationFulfilledBets(ctx context.Context, req *QueryParticipationFulfilledBetsRequest) (*QueryParticipationFulfilledBetsResponse, error)
Constants ¶
const ( RoundStart = 1 DefaultAllowanceExpiration = 60 )
const ( AttributeKeyFeeGrantCreator = "feegrant_creator" AttributeKeyGrantee = "grantee" AttributeKeyCategoryOrderBookEvent = "order_book" EventTypeOrderbook = "order_book_event" AttributeOrderBookEvent = "order_book_event" )
const ( // ModuleName is the name of the orderbook module ModuleName = "orderbook" // StoreKey is the string store representation StoreKey = ModuleName // RouterKey is the message route for orderbook RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( // DefaultMaxOrderBookParticipations Default maximum book participations. DefaultMaxOrderBookParticipations uint64 = 100 // DefaultBatchSettlementCount Default batch settlement count. DefaultBatchSettlementCount uint64 = 100 // DefaultRequeueThreshold Default requeue threshold. DefaultRequeueThreshold uint64 = 1000 )
Orderbook params default values
const (
ErrTextInvalidDepositor = "invalid depositor address (%s)"
)
ErrTextInvalidDepositor x/orderbook module sentinel error text
Variables ¶
var ( // Amino is the legacy amino codec Amino = codec.NewLegacyAmino() // ModuleCdc is the codec of the module ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInTicketVerification = sdkerrors.Register(ModuleName, 6001, "ticket verification failed") ErrInTicketPayloadValidation = sdkerrors.Register(ModuleName, 6002, "ticket validation failed") ErrOrderBookNotFound = sdkerrors.Register(ModuleName, 6003, "order book not found") ErrOrderBookNotActive = sdkerrors.Register(ModuleName, 6004, "order book not active") ErrMaxNumberOfParticipationsReached = sdkerrors.Register(ModuleName, 6005, "maximum number of participations reached") ErrInsufficientAccountBalance = sdkerrors.Register(ModuleName, 6006, "insufficient account balance.") ErrFromBankModule = sdkerrors.Register(ModuleName, 6007, "error returned from Bank Module") ErrBookParticipationAlreadyExists = sdkerrors.Register(ModuleName, 6008, "internal error in setting book participation") ErrOrderBookAlreadyPresent = sdkerrors.Register(ModuleName, 6009, "order book already present") ErrInsufficientBalanceInModuleAccount = sdkerrors.Register(ModuleName, 6010, "Insufficient Balance in Module Account") ErrOrderBookExposureNotFound = sdkerrors.Register(ModuleName, 6011, "order book exposure not found") ErrBookParticipationsNotFound = sdkerrors.Register(ModuleName, 6012, "book participations not found") ErrParticipationExposuresNotFound = sdkerrors.Register(ModuleName, 6013, "participation exposures not found") ErrOrderBookParticipationNotFound = sdkerrors.Register(ModuleName, 6014, "book participation not found") ErrParticipationExposureNotFound = sdkerrors.Register(ModuleName, 6015, "participation exposure not found") ErrParticipationExposureAlreadyFilled = sdkerrors.Register(ModuleName, 6016, "participation exposure already filled") ErrInternalProcessingBet = sdkerrors.Register(ModuleName, 6017, "internal error in processing bet") ErrBookParticipationAlreadySettled = sdkerrors.Register(ModuleName, 6018, "book participation already settled") ErrMismatchInDepositorAddress = sdkerrors.Register(ModuleName, 6019, "mismatch in depositor address") ErrWithdrawalAmountIsTooLarge = sdkerrors.Register(ModuleName, 6020, "withdrawal amount more than available amount for withdrawal") ErrMaxWithdrawableAmountIsZero = sdkerrors.Register(ModuleName, 6021, "maximum withdrawal amount is zero") ErrParticipationOnInactiveMarket = sdkerrors.Register(ModuleName, 6022, "participation is allowed on an active market only") ErrMarketNotFound = sdkerrors.Register(ModuleName, 6023, "market not found to initialize participation") ErrInsufficientFundToCoverPayout = sdkerrors.Register(ModuleName, 6024, "insufficient fund in the participations to cover the payout") ErrUnknownMarketStatus = sdkerrors.Register(ModuleName, 6025, "unknown market status of orderbook settlement") ErrWithdrawalTooLarge = sdkerrors.Register(ModuleName, 6026, "withdrawal is more than unused amount") )
x/orderbook module sentinel errors
var ( ErrInvalidLengthExposure = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowExposure = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupExposure = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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 ParticipationExposureByIndexKeyPrefix = []byte{ 0x04, } // prefix for keys that store participation exposures HistoricalParticipationExposureKeyPrefix = []byte{ 0x05, } // prefix for keys that store historical participation exposures OrderBookStatsKeyPrefix = []byte{0x06} // prefix for keys that store book stats ParticipationBetPairKeyPrefix = []byte{ 0x07, } // prefix for keys that store book participation and bet pairs FeeGrantPrefix = []byte{0x08} // prefix for keys that store fee grants )
var ( ErrInvalidLengthOrderbook = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOrderbook = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOrderbook = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthOrderbookevent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOrderbookevent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOrderbookevent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParticipation = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParticipation = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParticipation = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthStats = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStats = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStats = fmt.Errorf("proto: unexpected end of group") )
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",
}
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 ¶
GetHistoricalParticipationExposureKey creates the key for participation exposure for an odd
func GetOrderBookKey ¶ added in v0.0.8
GetOrderBookKey returns the bytes of an book key
func GetOrderBookOddsExposureKey ¶ added in v0.0.8
GetOrderBookOddsExposureKey creates the key for book exposure for an odd
func GetOrderBookOddsExposuresKey ¶ added in v0.0.8
GetOrderBookOddsExposuresKey creates the key for book exposure for an book
func GetOrderBookParticipationKey ¶ added in v0.0.8
GetOrderBookParticipationKey creates the key for book participation bond with book
func GetOrderBookParticipationsKey ¶ added in v0.0.8
GetOrderBookParticipationsKey creates the key for book participations for an book
func GetParticipationBetPairKey ¶
GetParticipationBetPairKey creates the bond between participation and bet
func GetParticipationByIndexKey ¶
GetParticipationByIndexKey creates the key for exposures for a book id and participation index
func GetParticipationExposureByIndexKey ¶
GetParticipationExposureByIndexKey creates the key for participation exposure for an odds by participation index
func GetParticipationExposureKey ¶
GetParticipationExposureKey creates the key for participation exposure for an odd
func GetParticipationExposuresByOrderBookKey ¶ added in v0.0.8
GetParticipationExposuresByOrderBookKey creates the key for exposures for a book id
func GetParticipationExposuresKey ¶
GetParticipationExposuresKey creates the key for exposures for a book id and odds id
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable ParamTable for orderbook module
func RegisterCodec ¶ added in v0.0.8
func RegisterCodec(_ *codec.LegacyAmino)
RegisterCodec registers module codec to the app codec
func RegisterInterfaces ¶ added in v0.0.8
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module interface types
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(moduleName string) sdk.AccAddress
}
AccountKeeper defines the expected account keeper methods.
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule( ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, ) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SendCoinsFromModuleToModule( ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins, ) error SendCoinsFromModuleToAccount( ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error }
BankKeeper defines the expected bank keeper methods.
type BetKeeper ¶
type BetKeeper interface {
GetBetID(ctx sdk.Context, uid string) (val bettypes.UID2ID, found bool)
}
BetKeeper defines the expected bet keeper methods.
type FeeGrantKeeper ¶ added in v0.0.8
type FeeGrantKeeper interface { GrantAllowance( ctx sdk.Context, granter, grantee sdk.AccAddress, feeAllowance sdkfeegrant.FeeAllowanceI, ) error GetAllowance(ctx sdk.Context, granter, grantee sdk.AccAddress) (sdkfeegrant.FeeAllowanceI, error) }
FeeGrantKeeper defines the expected interface needed for the fee grant.
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 */ // stats is the statistics of the order book. Stats OrderBookStats `protobuf:"bytes,9,opt,name=stats,proto3" json:"stats"` }
GenesisState defines the orderbook module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetHistoricalParticipationExposureList ¶
func (m *GenesisState) GetHistoricalParticipationExposureList() []ParticipationExposure
func (*GenesisState) GetOrderBookExposureList ¶ added in v0.0.8
func (m *GenesisState) GetOrderBookExposureList() []OrderBookOddsExposure
func (*GenesisState) GetOrderBookList ¶ added in v0.0.8
func (m *GenesisState) GetOrderBookList() []OrderBook
func (*GenesisState) GetOrderBookParticipationList ¶ added in v0.0.8
func (m *GenesisState) GetOrderBookParticipationList() []OrderBookParticipation
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetParticipationBetPairExposureList ¶
func (m *GenesisState) GetParticipationBetPairExposureList() []ParticipationBetPair
func (*GenesisState) GetParticipationExposureByIndexList ¶
func (m *GenesisState) GetParticipationExposureByIndexList() []ParticipationExposure
func (*GenesisState) GetParticipationExposureList ¶
func (m *GenesisState) GetParticipationExposureList() []ParticipationExposure
func (*GenesisState) GetStats ¶
func (m *GenesisState) GetStats() OrderBookStats
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 HouseKeeper ¶ added in v0.0.8
type HouseKeeper interface { GetDeposit( ctx sdk.Context, depositorAddress, marketUID string, participationIndex uint64, ) (val housetypes.Deposit, found bool) }
HouseKeeper defines the expected market keeper methods.
type MarketKeeper ¶ added in v0.0.8
type MarketKeeper interface {
GetMarket(ctx sdk.Context, marketUID string) (val markettypes.Market, found bool)
}
MarketKeeper defines the expected market keeper methods.
type OVMKeeper ¶ added in v0.0.8
type OVMKeeper interface {
VerifyTicketUnmarshal(goCtx context.Context, ticket string, clm interface{}) error
}
OVMKeeper defines the expected interface needed to verify ticket and unmarshal it
type OrderBook ¶
type OrderBook struct { // uid is the universal unique identifier of the order book. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // participation_count is the count of participations in the order book. ParticipationCount uint64 `` /* 143-byte string literal not displayed */ // odds_count is the count of the odds in the order book. OddsCount uint64 `protobuf:"varint,3,opt,name=odds_count,json=oddsCount,proto3" json:"odds_count,omitempty" yaml:"odds_count"` // status represents the status of the order book. Status OrderBookStatus `protobuf:"varint,4,opt,name=status,proto3,enum=sgenetwork.sge.orderbook.OrderBookStatus" json:"status,omitempty"` }
OrderBook represents the order book maintained against a market.
func NewOrderBook ¶
func NewOrderBook( bookUID string, oddsCount uint64, status OrderBookStatus, ) OrderBook
NewOrderBook creates a new orderbook object
func UnmarshalOrderBook ¶ added in v0.0.8
func UnmarshalOrderBook(cdc codec.BinaryCodec, value []byte) (book OrderBook, err error)
UnmarshalOrderBook return the orderbook
func (*OrderBook) Descriptor ¶
func (*OrderBook) MarshalToSizedBuffer ¶
func (*OrderBook) ProtoMessage ¶
func (*OrderBook) ProtoMessage()
func (*OrderBook) XXX_DiscardUnknown ¶
func (m *OrderBook) XXX_DiscardUnknown()
func (*OrderBook) XXX_Marshal ¶
func (*OrderBook) XXX_Unmarshal ¶
type OrderBookEvent ¶ added in v0.0.9
type OrderBookEvent struct { // ParticipationExposure to publish the order book event, participation // exposure ParticipationExposure []*ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposure,json=participationExposure,proto3" json:"participation_exposure,omitempty"` // OrderBookOddsExposure to publish the order book event, order book odds // exposure OrderBookOddsExposure []*OrderBookOddsExposure `` /* 128-byte string literal not displayed */ }
OrderBookEvent to publish the order book event
func NewOrderBookEvent ¶ added in v0.0.9
func NewOrderBookEvent() OrderBookEvent
func (*OrderBookEvent) AddOrderBookOddsExposure ¶ added in v0.0.9
func (obe *OrderBookEvent) AddOrderBookOddsExposure(boe OrderBookOddsExposure)
func (*OrderBookEvent) AddParticipationExposure ¶ added in v0.0.9
func (obe *OrderBookEvent) AddParticipationExposure(pe ParticipationExposure)
func (*OrderBookEvent) Descriptor ¶ added in v0.0.9
func (*OrderBookEvent) Descriptor() ([]byte, []int)
func (*OrderBookEvent) Emit ¶ added in v0.0.9
func (obe *OrderBookEvent) Emit(ctx sdk.Context)
func (*OrderBookEvent) GetOrderBookOddsExposure ¶ added in v0.0.9
func (m *OrderBookEvent) GetOrderBookOddsExposure() []*OrderBookOddsExposure
func (*OrderBookEvent) GetParticipationExposure ¶ added in v0.0.9
func (m *OrderBookEvent) GetParticipationExposure() []*ParticipationExposure
func (*OrderBookEvent) Marshal ¶ added in v0.0.9
func (m *OrderBookEvent) Marshal() (dAtA []byte, err error)
func (*OrderBookEvent) MarshalTo ¶ added in v0.0.9
func (m *OrderBookEvent) MarshalTo(dAtA []byte) (int, error)
func (*OrderBookEvent) MarshalToSizedBuffer ¶ added in v0.0.9
func (m *OrderBookEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderBookEvent) ProtoMessage ¶ added in v0.0.9
func (*OrderBookEvent) ProtoMessage()
func (*OrderBookEvent) Reset ¶ added in v0.0.9
func (m *OrderBookEvent) Reset()
func (*OrderBookEvent) Size ¶ added in v0.0.9
func (m *OrderBookEvent) Size() (n int)
func (*OrderBookEvent) String ¶ added in v0.0.9
func (m *OrderBookEvent) String() string
func (*OrderBookEvent) Unmarshal ¶ added in v0.0.9
func (m *OrderBookEvent) Unmarshal(dAtA []byte) error
func (*OrderBookEvent) XXX_DiscardUnknown ¶ added in v0.0.9
func (m *OrderBookEvent) XXX_DiscardUnknown()
func (*OrderBookEvent) XXX_Marshal ¶ added in v0.0.9
func (m *OrderBookEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderBookEvent) XXX_Merge ¶ added in v0.0.9
func (m *OrderBookEvent) XXX_Merge(src proto.Message)
func (*OrderBookEvent) XXX_Size ¶ added in v0.0.9
func (m *OrderBookEvent) XXX_Size() int
func (*OrderBookEvent) XXX_Unmarshal ¶ added in v0.0.9
func (m *OrderBookEvent) XXX_Unmarshal(b []byte) error
type OrderBookLiquidityFunder ¶ added in v0.0.8
type OrderBookLiquidityFunder struct{}
func (OrderBookLiquidityFunder) GetModuleAcc ¶ added in v0.0.8
func (OrderBookLiquidityFunder) GetModuleAcc() string
type OrderBookOddsExposure ¶ added in v0.0.8
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.8
func NewOrderBookOddsExposure( orderBookUID, oddsUID string, fulfillmentQueue []uint64, ) OrderBookOddsExposure
NewOrderBookOddsExposure creates a new book odds exposure object
func (*OrderBookOddsExposure) Descriptor ¶ added in v0.0.8
func (*OrderBookOddsExposure) Descriptor() ([]byte, []int)
func (*OrderBookOddsExposure) Marshal ¶ added in v0.0.8
func (m *OrderBookOddsExposure) Marshal() (dAtA []byte, err error)
func (*OrderBookOddsExposure) MarshalTo ¶ added in v0.0.8
func (m *OrderBookOddsExposure) MarshalTo(dAtA []byte) (int, error)
func (*OrderBookOddsExposure) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *OrderBookOddsExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderBookOddsExposure) ProtoMessage ¶ added in v0.0.8
func (*OrderBookOddsExposure) ProtoMessage()
func (*OrderBookOddsExposure) Reset ¶ added in v0.0.8
func (m *OrderBookOddsExposure) Reset()
func (*OrderBookOddsExposure) Size ¶ added in v0.0.8
func (m *OrderBookOddsExposure) Size() (n int)
func (OrderBookOddsExposure) String ¶ added in v0.0.8
func (boe OrderBookOddsExposure) String() string
String returns a human-readable string representation of a BookOddsExposure.
func (*OrderBookOddsExposure) Unmarshal ¶ added in v0.0.8
func (m *OrderBookOddsExposure) Unmarshal(dAtA []byte) error
func (*OrderBookOddsExposure) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *OrderBookOddsExposure) XXX_DiscardUnknown()
func (*OrderBookOddsExposure) XXX_Marshal ¶ added in v0.0.8
func (m *OrderBookOddsExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderBookOddsExposure) XXX_Merge ¶ added in v0.0.8
func (m *OrderBookOddsExposure) XXX_Merge(src proto.Message)
func (*OrderBookOddsExposure) XXX_Size ¶ added in v0.0.8
func (m *OrderBookOddsExposure) XXX_Size() int
func (*OrderBookOddsExposure) XXX_Unmarshal ¶ added in v0.0.8
func (m *OrderBookOddsExposure) XXX_Unmarshal(b []byte) error
type OrderBookParticipation ¶ added in v0.0.8
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 */ // liquidity is the total initial liquidity provided. Liquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ // fee is the amount of fee to be paid if participation happens. Fee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=fee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"fee" yaml:"fee"` // 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 represents 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.8
func NewOrderBookParticipation( index uint64, orderBookUID string, participantAddress string, exposuresNotFilled uint64, liquidity, fee, currentRoundLiquidity, totalBetAmount, currentRoundTotalBetAmount, maxLoss, currentRoundMaxLoss sdkmath.Int, currentRoundMaxLossOddsUID string, actualProfit sdkmath.Int, ) OrderBookParticipation
NewOrderBookParticipation creates a new book participation object
func (OrderBookParticipation) CalculateMaxLoss ¶ added in v0.0.8
func (p OrderBookParticipation) CalculateMaxLoss(betAmount sdkmath.Int) sdkmath.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.8
func (*OrderBookParticipation) Descriptor() ([]byte, []int)
func (*OrderBookParticipation) IsEligibleForNextRound ¶ added in v0.0.8
func (p *OrderBookParticipation) IsEligibleForNextRound() bool
IsEligibleForNextRound determines if the participation has enough liquidity to be used in the next round or not
func (*OrderBookParticipation) IsWithdrawable ¶ added in v0.0.8
func (p *OrderBookParticipation) IsWithdrawable() bool
IsWithdrawable determines if the participation has enough funds in current round to be able to withdraw.
func (*OrderBookParticipation) Marshal ¶ added in v0.0.8
func (m *OrderBookParticipation) Marshal() (dAtA []byte, err error)
func (*OrderBookParticipation) MarshalTo ¶ added in v0.0.8
func (m *OrderBookParticipation) MarshalTo(dAtA []byte) (int, error)
func (*OrderBookParticipation) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *OrderBookParticipation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderBookParticipation) NotParticipatedInBetFulfillment ¶ added in v0.0.8
func (p *OrderBookParticipation) NotParticipatedInBetFulfillment() bool
NotParticipatedInBetFulfillment determines if the participation has participated in the bet fulfillment.
func (*OrderBookParticipation) ProtoMessage ¶ added in v0.0.8
func (*OrderBookParticipation) ProtoMessage()
func (*OrderBookParticipation) Reset ¶ added in v0.0.8
func (m *OrderBookParticipation) Reset()
func (*OrderBookParticipation) ResetForNextRound ¶ added in v0.0.8
func (p *OrderBookParticipation) ResetForNextRound(notFilledExposures uint64)
ResetForNextRound resets the exposures, max loss and current round amount and make the participation ready for the next round
func (*OrderBookParticipation) SetCurrentRound ¶ added in v0.0.8
func (p *OrderBookParticipation) SetCurrentRound( pe *ParticipationExposure, oddsUID string, betAmount sdkmath.Int, )
SetCurrentRound sets the current round total bet amount and max loss.
func (*OrderBookParticipation) SetLiquidityAfterWithdrawal ¶ added in v0.0.8
func (p *OrderBookParticipation) SetLiquidityAfterWithdrawal(withdrawalAmt sdkmath.Int)
SetLiquidityAfterWithdrawal sets the liquidity props after withdrawal.
func (*OrderBookParticipation) Size ¶ added in v0.0.8
func (m *OrderBookParticipation) Size() (n int)
func (OrderBookParticipation) String ¶ added in v0.0.8
func (p OrderBookParticipation) String() string
String returns a human readable string representation of a BookParticipation.
func (*OrderBookParticipation) TrimCurrentRoundLiquidity ¶ added in v0.0.8
func (p *OrderBookParticipation) TrimCurrentRoundLiquidity()
TrimCurrentRoundLiquidity subtracts the max loss from the current round liquidity.
func (*OrderBookParticipation) Unmarshal ¶ added in v0.0.8
func (m *OrderBookParticipation) Unmarshal(dAtA []byte) error
func (*OrderBookParticipation) ValidateWithdraw ¶ added in v0.0.8
func (p *OrderBookParticipation) ValidateWithdraw( depositorAddress string, participationIndex uint64, ) error
ValidateWithdraw determines if the participation is allowed to be withdrawn or not.
func (*OrderBookParticipation) WithdrawableAmount ¶ added in v0.0.8
func (p *OrderBookParticipation) WithdrawableAmount( mode housetypes.WithdrawalMode, amount sdkmath.Int, ) (sdkmath.Int, error)
WithdrawableAmount returns the withdrawal amount according to the withdrawal mode and max withdrawable amount.
func (*OrderBookParticipation) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *OrderBookParticipation) XXX_DiscardUnknown()
func (*OrderBookParticipation) XXX_Marshal ¶ added in v0.0.8
func (m *OrderBookParticipation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderBookParticipation) XXX_Merge ¶ added in v0.0.8
func (m *OrderBookParticipation) XXX_Merge(src proto.Message)
func (*OrderBookParticipation) XXX_Size ¶ added in v0.0.8
func (m *OrderBookParticipation) XXX_Size() int
func (*OrderBookParticipation) XXX_Unmarshal ¶ added in v0.0.8
func (m *OrderBookParticipation) XXX_Unmarshal(b []byte) error
type OrderBookStats ¶
type OrderBookStats struct { // resolved_unsettled is the list of order book universal unique identifiers // that needs to be settled. ResolvedUnsettled []string `protobuf:"bytes,1,rep,name=resolved_unsettled,json=resolvedUnsettled,proto3" json:"resolved_unsettled,omitempty"` }
OrderBookStats holds statistics on the order book.
func (*OrderBookStats) Descriptor ¶
func (*OrderBookStats) Descriptor() ([]byte, []int)
func (*OrderBookStats) GetResolvedUnsettled ¶
func (m *OrderBookStats) GetResolvedUnsettled() []string
func (*OrderBookStats) Marshal ¶
func (m *OrderBookStats) Marshal() (dAtA []byte, err error)
func (*OrderBookStats) MarshalToSizedBuffer ¶
func (m *OrderBookStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderBookStats) ProtoMessage ¶
func (*OrderBookStats) ProtoMessage()
func (*OrderBookStats) Reset ¶
func (m *OrderBookStats) Reset()
func (*OrderBookStats) Size ¶
func (m *OrderBookStats) Size() (n int)
func (*OrderBookStats) String ¶
func (m *OrderBookStats) String() string
func (*OrderBookStats) Unmarshal ¶
func (m *OrderBookStats) Unmarshal(dAtA []byte) error
func (*OrderBookStats) XXX_DiscardUnknown ¶
func (m *OrderBookStats) XXX_DiscardUnknown()
func (*OrderBookStats) XXX_Marshal ¶
func (m *OrderBookStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderBookStats) XXX_Merge ¶
func (m *OrderBookStats) XXX_Merge(src proto.Message)
func (*OrderBookStats) XXX_Size ¶
func (m *OrderBookStats) XXX_Size() int
func (*OrderBookStats) XXX_Unmarshal ¶
func (m *OrderBookStats) XXX_Unmarshal(b []byte) error
type OrderBookStatus ¶
type OrderBookStatus int32
OrderBookStatus is the enum type for the status of the order book.
const ( // invalid OrderBookStatus_ORDER_BOOK_STATUS_UNSPECIFIED OrderBookStatus = 0 // active OrderBookStatus_ORDER_BOOK_STATUS_STATUS_ACTIVE OrderBookStatus = 1 // resolved not settled OrderBookStatus_ORDER_BOOK_STATUS_STATUS_RESOLVED OrderBookStatus = 2 // resolved and settled OrderBookStatus_ORDER_BOOK_STATUS_STATUS_SETTLED OrderBookStatus = 3 )
func (OrderBookStatus) EnumDescriptor ¶
func (OrderBookStatus) EnumDescriptor() ([]byte, []int)
func (OrderBookStatus) String ¶
func (x OrderBookStatus) String() string
type Params ¶
type Params struct { // max_order_book_participations is the maximum number of participations per // book. MaxOrderBookParticipations uint64 `` /* 181-byte string literal not displayed */ // batch_settlement_count is the batch settlement deposit count. BatchSettlementCount uint64 `` /* 154-byte string literal not displayed */ // requeue_threshold is the threshold at which a participation is re-queued in // orderbook. RequeueThreshold uint64 `` /* 135-byte string literal not displayed */ }
Params defines the parameters for the orderbook module.
func (*Params) Descriptor ¶
func (*Params) GetBatchSettlementCount ¶
func (*Params) GetMaxOrderBookParticipations ¶ added in v0.0.8
func (*Params) GetRequeueThreshold ¶ added in v0.0.8
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ParticipationBetPair ¶
type ParticipationBetPair struct { // order_book_uid is the unique identifier corresponding to the order book OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"` // participation_index is the index of participation corresponding to the bet // fulfillment. ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ // bet_uid is the bet universal unique identifier of the bet that is // fulfilled. BetUID string `protobuf:"bytes,3,opt,name=bet_uid,proto3" json:"bet_uid"` }
ParticipationBetPair represents the book participation and bet bond.
func NewParticipationBetPair ¶
func NewParticipationBetPair( orderBookUID, betUID string, participationIndex uint64, ) ParticipationBetPair
NewParticipationBetPair creates a new Participation bet pair object
func (*ParticipationBetPair) Descriptor ¶
func (*ParticipationBetPair) Descriptor() ([]byte, []int)
func (*ParticipationBetPair) GetBetUID ¶
func (m *ParticipationBetPair) GetBetUID() string
func (*ParticipationBetPair) GetOrderBookUID ¶ added in v0.0.8
func (m *ParticipationBetPair) GetOrderBookUID() string
func (*ParticipationBetPair) GetParticipationIndex ¶
func (m *ParticipationBetPair) GetParticipationIndex() uint64
func (*ParticipationBetPair) Marshal ¶
func (m *ParticipationBetPair) Marshal() (dAtA []byte, err error)
func (*ParticipationBetPair) MarshalTo ¶
func (m *ParticipationBetPair) MarshalTo(dAtA []byte) (int, error)
func (*ParticipationBetPair) MarshalToSizedBuffer ¶
func (m *ParticipationBetPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParticipationBetPair) ProtoMessage ¶
func (*ParticipationBetPair) ProtoMessage()
func (*ParticipationBetPair) Reset ¶
func (m *ParticipationBetPair) Reset()
func (*ParticipationBetPair) Size ¶
func (m *ParticipationBetPair) Size() (n int)
func (*ParticipationBetPair) String ¶
func (m *ParticipationBetPair) String() string
func (*ParticipationBetPair) Unmarshal ¶
func (m *ParticipationBetPair) Unmarshal(dAtA []byte) error
func (*ParticipationBetPair) XXX_DiscardUnknown ¶
func (m *ParticipationBetPair) XXX_DiscardUnknown()
func (*ParticipationBetPair) XXX_Marshal ¶
func (m *ParticipationBetPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParticipationBetPair) XXX_Merge ¶
func (m *ParticipationBetPair) XXX_Merge(src proto.Message)
func (*ParticipationBetPair) XXX_Size ¶
func (m *ParticipationBetPair) XXX_Size() int
func (*ParticipationBetPair) XXX_Unmarshal ¶
func (m *ParticipationBetPair) XXX_Unmarshal(b []byte) error
type ParticipationExposure ¶
type ParticipationExposure struct { // order_book_uid is the universally unique identifier of the order book that // the exposure is being set. OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"` // odds_uid is the odds universal unique identifier that the exposure is being // set. OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"` // participation_index is the index of participation in the queue. ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ // exposure is the total exposure taken on given odds. Exposure github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=exposure,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"exposure" yaml:"exposure"` // bet_amount is the total bet amount corresponding to the exposure. BetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ // is_fulfilled represents if the participation exposure is fulfilled or not. IsFulfilled bool `protobuf:"varint,6,opt,name=is_fulfilled,json=isFulfilled,proto3" json:"is_fulfilled,omitempty" yaml:"is_fulfilled"` // round is the current round number in the queue. Round uint64 `protobuf:"varint,7,opt,name=round,proto3" json:"round,omitempty" yaml:"round"` }
ParticipationExposure represents the exposures taken on odds by participations.
func NewParticipationExposure ¶
func NewParticipationExposure( orderBookUID, oddsUID string, exposure, betAmount sdkmath.Int, participationIndex, round uint64, isFulfilled bool, ) ParticipationExposure
NewParticipationExposure creates a new participation exposure object
func (ParticipationExposure) CalculateMaxLoss ¶ added in v0.0.8
func (pe ParticipationExposure) CalculateMaxLoss(totalBetAmount sdkmath.Int) sdkmath.Int
CalculateMaxLoss calculates the maximum amount of loss for an exposure according to the bet amount.
func (*ParticipationExposure) Descriptor ¶
func (*ParticipationExposure) Descriptor() ([]byte, []int)
func (*ParticipationExposure) Marshal ¶
func (m *ParticipationExposure) Marshal() (dAtA []byte, err error)
func (*ParticipationExposure) MarshalTo ¶
func (m *ParticipationExposure) MarshalTo(dAtA []byte) (int, error)
func (*ParticipationExposure) MarshalToSizedBuffer ¶
func (m *ParticipationExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ParticipationExposure) NextRound ¶ added in v0.0.8
func (pe ParticipationExposure) NextRound() ParticipationExposure
NextRound returns the next round participation object extracted from the current round properties.
func (*ParticipationExposure) ProtoMessage ¶
func (*ParticipationExposure) ProtoMessage()
func (*ParticipationExposure) Reset ¶
func (m *ParticipationExposure) Reset()
func (*ParticipationExposure) SetCurrentRound ¶ added in v0.0.8
func (pe *ParticipationExposure) SetCurrentRound(betAmount, payoutProfit sdkmath.Int)
SetCurrentRound sets the current round bet amount and payout profit.
func (*ParticipationExposure) Size ¶
func (m *ParticipationExposure) Size() (n int)
func (ParticipationExposure) String ¶
func (pe ParticipationExposure) String() string
String returns a human-readable string representation of a participationExposure.
func (*ParticipationExposure) Unmarshal ¶
func (m *ParticipationExposure) Unmarshal(dAtA []byte) error
func (*ParticipationExposure) XXX_DiscardUnknown ¶
func (m *ParticipationExposure) XXX_DiscardUnknown()
func (*ParticipationExposure) XXX_Marshal ¶
func (m *ParticipationExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParticipationExposure) XXX_Merge ¶
func (m *ParticipationExposure) XXX_Merge(src proto.Message)
func (*ParticipationExposure) XXX_Size ¶
func (m *ParticipationExposure) XXX_Size() int
func (*ParticipationExposure) XXX_Unmarshal ¶
func (m *ParticipationExposure) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // OrderBooks queries all order books that match the given status. OrderBooks(ctx context.Context, in *QueryOrderBooksRequest, opts ...grpc.CallOption) (*QueryOrderBooksResponse, error) // OrderBook queries order book info for given order book universal unique // identifier. OrderBook(ctx context.Context, in *QueryOrderBookRequest, opts ...grpc.CallOption) (*QueryOrderBookResponse, error) // OrderBookParticipations queries participation info for given order book. OrderBookParticipations(ctx context.Context, in *QueryOrderBookParticipationsRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationsResponse, error) // OrderBookParticipation queries participation info for given order book and // participation index. OrderBookParticipation(ctx context.Context, in *QueryOrderBookParticipationRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationResponse, error) // OrderBookExposures queries exposures info for the given order book. OrderBookExposures(ctx context.Context, in *QueryOrderBookExposuresRequest, opts ...grpc.CallOption) (*QueryOrderBookExposuresResponse, error) // OrderBookExposure queries exposure info for the given order book and odds // universal unique identifier. OrderBookExposure(ctx context.Context, in *QueryOrderBookExposureRequest, opts ...grpc.CallOption) (*QueryOrderBookExposureResponse, error) // OrderBookParticipationExposures queries exposures info for given order book // participations. OrderBookParticipationExposures(ctx context.Context, in *QueryOrderBookParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationExposuresResponse, error) // ParticipationExposures queries exposure info for given order book // participation. ParticipationExposures(ctx context.Context, in *QueryParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryParticipationExposuresResponse, error) // HistoricalParticipationExposures queries historical exposures info for // the given order book participation. HistoricalParticipationExposures(ctx context.Context, in *QueryHistoricalParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryHistoricalParticipationExposuresResponse, error) // ParticipationFulfilledBets queries fulfilled bets for given order book // participation. ParticipationFulfilledBets(ctx context.Context, in *QueryParticipationFulfilledBetsRequest, opts ...grpc.CallOption) (*QueryParticipationFulfilledBetsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryHistoricalParticipationExposuresRequest ¶
type QueryHistoricalParticipationExposuresRequest struct { // order_book_uid defines the order book uid to query for. OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"` // pagination defines optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryHistoricalParticipationExposuresRequest is the request type for the Query/HistoricalParticipationExposures RPC method
func (*QueryHistoricalParticipationExposuresRequest) Descriptor ¶
func (*QueryHistoricalParticipationExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryHistoricalParticipationExposuresRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryHistoricalParticipationExposuresRequest) GetOrderBookUid() string
func (*QueryHistoricalParticipationExposuresRequest) GetPagination ¶
func (m *QueryHistoricalParticipationExposuresRequest) GetPagination() *query.PageRequest
func (*QueryHistoricalParticipationExposuresRequest) Marshal ¶
func (m *QueryHistoricalParticipationExposuresRequest) Marshal() (dAtA []byte, err error)
func (*QueryHistoricalParticipationExposuresRequest) MarshalTo ¶
func (m *QueryHistoricalParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer ¶
func (m *QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage ¶
func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage()
func (*QueryHistoricalParticipationExposuresRequest) Reset ¶
func (m *QueryHistoricalParticipationExposuresRequest) Reset()
func (*QueryHistoricalParticipationExposuresRequest) Size ¶
func (m *QueryHistoricalParticipationExposuresRequest) Size() (n int)
func (*QueryHistoricalParticipationExposuresRequest) String ¶
func (m *QueryHistoricalParticipationExposuresRequest) String() string
func (*QueryHistoricalParticipationExposuresRequest) Unmarshal ¶
func (m *QueryHistoricalParticipationExposuresRequest) Unmarshal(dAtA []byte) error
func (*QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown ¶
func (m *QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown()
func (*QueryHistoricalParticipationExposuresRequest) XXX_Marshal ¶
func (m *QueryHistoricalParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHistoricalParticipationExposuresRequest) XXX_Merge ¶
func (m *QueryHistoricalParticipationExposuresRequest) XXX_Merge(src proto.Message)
func (*QueryHistoricalParticipationExposuresRequest) XXX_Size ¶
func (m *QueryHistoricalParticipationExposuresRequest) XXX_Size() int
func (*QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal ¶
func (m *QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal(b []byte) error
type QueryHistoricalParticipationExposuresResponse ¶
type QueryHistoricalParticipationExposuresResponse struct { ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryHistoricalParticipationExposuresResponse is the response type for the Query/HistoricalParticipationExposures RPC method.
func (*QueryHistoricalParticipationExposuresResponse) Descriptor ¶
func (*QueryHistoricalParticipationExposuresResponse) Descriptor() ([]byte, []int)
func (*QueryHistoricalParticipationExposuresResponse) GetPagination ¶
func (m *QueryHistoricalParticipationExposuresResponse) GetPagination() *query.PageResponse
func (*QueryHistoricalParticipationExposuresResponse) GetParticipationExposures ¶
func (m *QueryHistoricalParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure
func (*QueryHistoricalParticipationExposuresResponse) Marshal ¶
func (m *QueryHistoricalParticipationExposuresResponse) Marshal() (dAtA []byte, err error)
func (*QueryHistoricalParticipationExposuresResponse) MarshalTo ¶
func (m *QueryHistoricalParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer ¶
func (m *QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage ¶
func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage()
func (*QueryHistoricalParticipationExposuresResponse) Reset ¶
func (m *QueryHistoricalParticipationExposuresResponse) Reset()
func (*QueryHistoricalParticipationExposuresResponse) Size ¶
func (m *QueryHistoricalParticipationExposuresResponse) Size() (n int)
func (*QueryHistoricalParticipationExposuresResponse) String ¶
func (m *QueryHistoricalParticipationExposuresResponse) String() string
func (*QueryHistoricalParticipationExposuresResponse) Unmarshal ¶
func (m *QueryHistoricalParticipationExposuresResponse) Unmarshal(dAtA []byte) error
func (*QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown ¶
func (m *QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown()
func (*QueryHistoricalParticipationExposuresResponse) XXX_Marshal ¶
func (m *QueryHistoricalParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHistoricalParticipationExposuresResponse) XXX_Merge ¶
func (m *QueryHistoricalParticipationExposuresResponse) XXX_Merge(src proto.Message)
func (*QueryHistoricalParticipationExposuresResponse) XXX_Size ¶
func (m *QueryHistoricalParticipationExposuresResponse) XXX_Size() int
func (*QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal ¶
func (m *QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookExposureRequest ¶ added in v0.0.8
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.8
func (*QueryOrderBookExposureRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookExposureRequest) GetOddsUid ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) GetOddsUid() string
func (*QueryOrderBookExposureRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) GetOrderBookUid() string
func (*QueryOrderBookExposureRequest) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookExposureRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookExposureRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookExposureRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookExposureRequest) ProtoMessage()
func (*QueryOrderBookExposureRequest) Reset ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) Reset()
func (*QueryOrderBookExposureRequest) Size ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) Size() (n int)
func (*QueryOrderBookExposureRequest) String ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) String() string
func (*QueryOrderBookExposureRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookExposureRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) XXX_DiscardUnknown()
func (*QueryOrderBookExposureRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookExposureRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookExposureRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) XXX_Size() int
func (*QueryOrderBookExposureRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookExposureResponse ¶ added in v0.0.8
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.8
func (*QueryOrderBookExposureResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookExposureResponse) GetOrderBookExposure ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) GetOrderBookExposure() OrderBookOddsExposure
func (*QueryOrderBookExposureResponse) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookExposureResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookExposureResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookExposureResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookExposureResponse) ProtoMessage()
func (*QueryOrderBookExposureResponse) Reset ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) Reset()
func (*QueryOrderBookExposureResponse) Size ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) Size() (n int)
func (*QueryOrderBookExposureResponse) String ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) String() string
func (*QueryOrderBookExposureResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookExposureResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) XXX_DiscardUnknown()
func (*QueryOrderBookExposureResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookExposureResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookExposureResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) XXX_Size() int
func (*QueryOrderBookExposureResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposureResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookExposuresRequest ¶ added in v0.0.8
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.8
func (*QueryOrderBookExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookExposuresRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) GetOrderBookUid() string
func (*QueryOrderBookExposuresRequest) GetPagination ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) GetPagination() *query.PageRequest
func (*QueryOrderBookExposuresRequest) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookExposuresRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookExposuresRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookExposuresRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookExposuresRequest) ProtoMessage()
func (*QueryOrderBookExposuresRequest) Reset ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) Reset()
func (*QueryOrderBookExposuresRequest) Size ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) Size() (n int)
func (*QueryOrderBookExposuresRequest) String ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) String() string
func (*QueryOrderBookExposuresRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookExposuresRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) XXX_DiscardUnknown()
func (*QueryOrderBookExposuresRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookExposuresRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookExposuresRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) XXX_Size() int
func (*QueryOrderBookExposuresRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookExposuresResponse ¶ added in v0.0.8
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.8
func (*QueryOrderBookExposuresResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookExposuresResponse) GetOrderBookExposures ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) GetOrderBookExposures() []OrderBookOddsExposure
func (*QueryOrderBookExposuresResponse) GetPagination ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) GetPagination() *query.PageResponse
func (*QueryOrderBookExposuresResponse) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookExposuresResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookExposuresResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookExposuresResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookExposuresResponse) ProtoMessage()
func (*QueryOrderBookExposuresResponse) Reset ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) Reset()
func (*QueryOrderBookExposuresResponse) Size ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) Size() (n int)
func (*QueryOrderBookExposuresResponse) String ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) String() string
func (*QueryOrderBookExposuresResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookExposuresResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) XXX_DiscardUnknown()
func (*QueryOrderBookExposuresResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookExposuresResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookExposuresResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) XXX_Size() int
func (*QueryOrderBookExposuresResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookExposuresResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookParticipationExposuresRequest ¶ added in v0.0.8
type QueryOrderBookParticipationExposuresRequest 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"` }
QueryOrderBookParticipationExposuresRequest is the request type for the Query/OrderBookParticipationExposures RPC method
func (*QueryOrderBookParticipationExposuresRequest) Descriptor ¶ added in v0.0.8
func (*QueryOrderBookParticipationExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookParticipationExposuresRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) GetOrderBookUid() string
func (*QueryOrderBookParticipationExposuresRequest) GetPagination ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) GetPagination() *query.PageRequest
func (*QueryOrderBookParticipationExposuresRequest) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookParticipationExposuresRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationExposuresRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationExposuresRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookParticipationExposuresRequest) ProtoMessage()
func (*QueryOrderBookParticipationExposuresRequest) Reset ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) Reset()
func (*QueryOrderBookParticipationExposuresRequest) Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) Size() (n int)
func (*QueryOrderBookParticipationExposuresRequest) String ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) String() string
func (*QueryOrderBookParticipationExposuresRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookParticipationExposuresRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) XXX_DiscardUnknown()
func (*QueryOrderBookParticipationExposuresRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookParticipationExposuresRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookParticipationExposuresRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) XXX_Size() int
func (*QueryOrderBookParticipationExposuresRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookParticipationExposuresResponse ¶ added in v0.0.8
type QueryOrderBookParticipationExposuresResponse 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"` }
QueryOrderBookParticipationExposuresResponse is the response type for the Query/OrderBookParticipationExposures RPC method.
func (*QueryOrderBookParticipationExposuresResponse) Descriptor ¶ added in v0.0.8
func (*QueryOrderBookParticipationExposuresResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookParticipationExposuresResponse) GetPagination ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) GetPagination() *query.PageResponse
func (*QueryOrderBookParticipationExposuresResponse) GetParticipationExposures ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure
func (*QueryOrderBookParticipationExposuresResponse) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookParticipationExposuresResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationExposuresResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationExposuresResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookParticipationExposuresResponse) ProtoMessage()
func (*QueryOrderBookParticipationExposuresResponse) Reset ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) Reset()
func (*QueryOrderBookParticipationExposuresResponse) Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) Size() (n int)
func (*QueryOrderBookParticipationExposuresResponse) String ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) String() string
func (*QueryOrderBookParticipationExposuresResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookParticipationExposuresResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) XXX_DiscardUnknown()
func (*QueryOrderBookParticipationExposuresResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookParticipationExposuresResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookParticipationExposuresResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) XXX_Size() int
func (*QueryOrderBookParticipationExposuresResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationExposuresResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookParticipationRequest ¶ added in v0.0.8
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.8
func (*QueryOrderBookParticipationRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookParticipationRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) GetOrderBookUid() string
func (*QueryOrderBookParticipationRequest) GetParticipationIndex ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) GetParticipationIndex() uint64
func (*QueryOrderBookParticipationRequest) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookParticipationRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookParticipationRequest) ProtoMessage()
func (*QueryOrderBookParticipationRequest) Reset ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) Reset()
func (*QueryOrderBookParticipationRequest) Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) Size() (n int)
func (*QueryOrderBookParticipationRequest) String ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) String() string
func (*QueryOrderBookParticipationRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookParticipationRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) XXX_DiscardUnknown()
func (*QueryOrderBookParticipationRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookParticipationRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookParticipationRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) XXX_Size() int
func (*QueryOrderBookParticipationRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookParticipationResponse ¶ added in v0.0.8
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.8
func (*QueryOrderBookParticipationResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookParticipationResponse) GetOrderBookParticipation ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) GetOrderBookParticipation() OrderBookParticipation
func (*QueryOrderBookParticipationResponse) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookParticipationResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookParticipationResponse) ProtoMessage()
func (*QueryOrderBookParticipationResponse) Reset ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) Reset()
func (*QueryOrderBookParticipationResponse) Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) Size() (n int)
func (*QueryOrderBookParticipationResponse) String ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) String() string
func (*QueryOrderBookParticipationResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookParticipationResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) XXX_DiscardUnknown()
func (*QueryOrderBookParticipationResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookParticipationResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookParticipationResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) XXX_Size() int
func (*QueryOrderBookParticipationResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookParticipationsRequest ¶ added in v0.0.8
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.8
func (*QueryOrderBookParticipationsRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookParticipationsRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) GetOrderBookUid() string
func (*QueryOrderBookParticipationsRequest) GetPagination ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) GetPagination() *query.PageRequest
func (*QueryOrderBookParticipationsRequest) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookParticipationsRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationsRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationsRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookParticipationsRequest) ProtoMessage()
func (*QueryOrderBookParticipationsRequest) Reset ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) Reset()
func (*QueryOrderBookParticipationsRequest) Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) Size() (n int)
func (*QueryOrderBookParticipationsRequest) String ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) String() string
func (*QueryOrderBookParticipationsRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookParticipationsRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) XXX_DiscardUnknown()
func (*QueryOrderBookParticipationsRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookParticipationsRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookParticipationsRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) XXX_Size() int
func (*QueryOrderBookParticipationsRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookParticipationsResponse ¶ added in v0.0.8
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.8
func (*QueryOrderBookParticipationsResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookParticipationsResponse) GetOrderBookParticipations ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) GetOrderBookParticipations() []OrderBookParticipation
func (*QueryOrderBookParticipationsResponse) GetPagination ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) GetPagination() *query.PageResponse
func (*QueryOrderBookParticipationsResponse) Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookParticipationsResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationsResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookParticipationsResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryOrderBookParticipationsResponse) ProtoMessage()
func (*QueryOrderBookParticipationsResponse) Reset ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) Reset()
func (*QueryOrderBookParticipationsResponse) Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) Size() (n int)
func (*QueryOrderBookParticipationsResponse) String ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) String() string
func (*QueryOrderBookParticipationsResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookParticipationsResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) XXX_DiscardUnknown()
func (*QueryOrderBookParticipationsResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookParticipationsResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookParticipationsResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) XXX_Size() int
func (*QueryOrderBookParticipationsResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryOrderBookParticipationsResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookRequest ¶
type QueryOrderBookRequest struct { // order_book_uid defines the order book uid to query for. OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"` }
QueryOrderBookRequest is the request type for the Query/OrderBook RPC method.
func (*QueryOrderBookRequest) Descriptor ¶
func (*QueryOrderBookRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryOrderBookRequest) GetOrderBookUid() string
func (*QueryOrderBookRequest) Marshal ¶
func (m *QueryOrderBookRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookRequest) MarshalTo ¶
func (m *QueryOrderBookRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookRequest) MarshalToSizedBuffer ¶
func (m *QueryOrderBookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookRequest) ProtoMessage ¶
func (*QueryOrderBookRequest) ProtoMessage()
func (*QueryOrderBookRequest) Reset ¶
func (m *QueryOrderBookRequest) Reset()
func (*QueryOrderBookRequest) Size ¶
func (m *QueryOrderBookRequest) Size() (n int)
func (*QueryOrderBookRequest) String ¶
func (m *QueryOrderBookRequest) String() string
func (*QueryOrderBookRequest) Unmarshal ¶
func (m *QueryOrderBookRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookRequest) XXX_DiscardUnknown ¶
func (m *QueryOrderBookRequest) XXX_DiscardUnknown()
func (*QueryOrderBookRequest) XXX_Marshal ¶
func (m *QueryOrderBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookRequest) XXX_Merge ¶
func (m *QueryOrderBookRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookRequest) XXX_Size ¶
func (m *QueryOrderBookRequest) XXX_Size() int
func (*QueryOrderBookRequest) XXX_Unmarshal ¶
func (m *QueryOrderBookRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookResponse ¶
type QueryOrderBookResponse struct { // orderBook defines the order book info. OrderBook OrderBook `protobuf:"bytes,1,opt,name=order_book,json=orderBook,proto3" json:"order_book"` }
QueryOrderBookResponse is the response type for the Query/OrderBook RPC method.
func (*QueryOrderBookResponse) Descriptor ¶
func (*QueryOrderBookResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookResponse) GetOrderBook ¶ added in v0.0.8
func (m *QueryOrderBookResponse) GetOrderBook() OrderBook
func (*QueryOrderBookResponse) Marshal ¶
func (m *QueryOrderBookResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookResponse) MarshalTo ¶
func (m *QueryOrderBookResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookResponse) MarshalToSizedBuffer ¶
func (m *QueryOrderBookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookResponse) ProtoMessage ¶
func (*QueryOrderBookResponse) ProtoMessage()
func (*QueryOrderBookResponse) Reset ¶
func (m *QueryOrderBookResponse) Reset()
func (*QueryOrderBookResponse) Size ¶
func (m *QueryOrderBookResponse) Size() (n int)
func (*QueryOrderBookResponse) String ¶
func (m *QueryOrderBookResponse) String() string
func (*QueryOrderBookResponse) Unmarshal ¶
func (m *QueryOrderBookResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookResponse) XXX_DiscardUnknown ¶
func (m *QueryOrderBookResponse) XXX_DiscardUnknown()
func (*QueryOrderBookResponse) XXX_Marshal ¶
func (m *QueryOrderBookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookResponse) XXX_Merge ¶
func (m *QueryOrderBookResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookResponse) XXX_Size ¶
func (m *QueryOrderBookResponse) XXX_Size() int
func (*QueryOrderBookResponse) XXX_Unmarshal ¶
func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBooksRequest ¶
type QueryOrderBooksRequest struct { // status enables query for order books matching a given status. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // pagination defines optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryOrderBooksRequest is the request type for the Query/OrderBooks RPC method.
func (*QueryOrderBooksRequest) Descriptor ¶
func (*QueryOrderBooksRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBooksRequest) GetPagination ¶
func (m *QueryOrderBooksRequest) GetPagination() *query.PageRequest
func (*QueryOrderBooksRequest) GetStatus ¶
func (m *QueryOrderBooksRequest) GetStatus() string
func (*QueryOrderBooksRequest) Marshal ¶
func (m *QueryOrderBooksRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBooksRequest) MarshalTo ¶
func (m *QueryOrderBooksRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBooksRequest) MarshalToSizedBuffer ¶
func (m *QueryOrderBooksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBooksRequest) ProtoMessage ¶
func (*QueryOrderBooksRequest) ProtoMessage()
func (*QueryOrderBooksRequest) Reset ¶
func (m *QueryOrderBooksRequest) Reset()
func (*QueryOrderBooksRequest) Size ¶
func (m *QueryOrderBooksRequest) Size() (n int)
func (*QueryOrderBooksRequest) String ¶
func (m *QueryOrderBooksRequest) String() string
func (*QueryOrderBooksRequest) Unmarshal ¶
func (m *QueryOrderBooksRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBooksRequest) XXX_DiscardUnknown ¶
func (m *QueryOrderBooksRequest) XXX_DiscardUnknown()
func (*QueryOrderBooksRequest) XXX_Marshal ¶
func (m *QueryOrderBooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBooksRequest) XXX_Merge ¶
func (m *QueryOrderBooksRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBooksRequest) XXX_Size ¶
func (m *QueryOrderBooksRequest) XXX_Size() int
func (*QueryOrderBooksRequest) XXX_Unmarshal ¶
func (m *QueryOrderBooksRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBooksResponse ¶
type QueryOrderBooksResponse struct { // orderbooks contains all the queried order books. Orderbooks []OrderBook `protobuf:"bytes,1,rep,name=orderbooks,proto3" json:"orderbooks"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryOrderBooksResponse is the response type for the Query/OrderBooks RPC method.
func (*QueryOrderBooksResponse) Descriptor ¶
func (*QueryOrderBooksResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBooksResponse) GetOrderbooks ¶
func (m *QueryOrderBooksResponse) GetOrderbooks() []OrderBook
func (*QueryOrderBooksResponse) GetPagination ¶
func (m *QueryOrderBooksResponse) GetPagination() *query.PageResponse
func (*QueryOrderBooksResponse) Marshal ¶
func (m *QueryOrderBooksResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBooksResponse) MarshalTo ¶
func (m *QueryOrderBooksResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBooksResponse) MarshalToSizedBuffer ¶
func (m *QueryOrderBooksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBooksResponse) ProtoMessage ¶
func (*QueryOrderBooksResponse) ProtoMessage()
func (*QueryOrderBooksResponse) Reset ¶
func (m *QueryOrderBooksResponse) Reset()
func (*QueryOrderBooksResponse) Size ¶
func (m *QueryOrderBooksResponse) Size() (n int)
func (*QueryOrderBooksResponse) String ¶
func (m *QueryOrderBooksResponse) String() string
func (*QueryOrderBooksResponse) Unmarshal ¶
func (m *QueryOrderBooksResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBooksResponse) XXX_DiscardUnknown ¶
func (m *QueryOrderBooksResponse) XXX_DiscardUnknown()
func (*QueryOrderBooksResponse) XXX_Marshal ¶
func (m *QueryOrderBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBooksResponse) XXX_Merge ¶
func (m *QueryOrderBooksResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBooksResponse) XXX_Size ¶
func (m *QueryOrderBooksResponse) XXX_Size() int
func (*QueryOrderBooksResponse) XXX_Unmarshal ¶
func (m *QueryOrderBooksResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryParticipationExposuresRequest ¶
type QueryParticipationExposuresRequest 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"` }
QueryParticipationExposuresRequest is the request type for the Query/ParticipationExposures RPC method.
func (*QueryParticipationExposuresRequest) Descriptor ¶
func (*QueryParticipationExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryParticipationExposuresRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryParticipationExposuresRequest) GetOrderBookUid() string
func (*QueryParticipationExposuresRequest) GetPagination ¶
func (m *QueryParticipationExposuresRequest) GetPagination() *query.PageRequest
func (*QueryParticipationExposuresRequest) GetParticipationIndex ¶ added in v0.0.8
func (m *QueryParticipationExposuresRequest) GetParticipationIndex() uint64
func (*QueryParticipationExposuresRequest) Marshal ¶
func (m *QueryParticipationExposuresRequest) Marshal() (dAtA []byte, err error)
func (*QueryParticipationExposuresRequest) MarshalTo ¶
func (m *QueryParticipationExposuresRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParticipationExposuresRequest) MarshalToSizedBuffer ¶
func (m *QueryParticipationExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParticipationExposuresRequest) ProtoMessage ¶
func (*QueryParticipationExposuresRequest) ProtoMessage()
func (*QueryParticipationExposuresRequest) Reset ¶
func (m *QueryParticipationExposuresRequest) Reset()
func (*QueryParticipationExposuresRequest) Size ¶
func (m *QueryParticipationExposuresRequest) Size() (n int)
func (*QueryParticipationExposuresRequest) String ¶
func (m *QueryParticipationExposuresRequest) String() string
func (*QueryParticipationExposuresRequest) Unmarshal ¶
func (m *QueryParticipationExposuresRequest) Unmarshal(dAtA []byte) error
func (*QueryParticipationExposuresRequest) XXX_DiscardUnknown ¶
func (m *QueryParticipationExposuresRequest) XXX_DiscardUnknown()
func (*QueryParticipationExposuresRequest) XXX_Marshal ¶
func (m *QueryParticipationExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParticipationExposuresRequest) XXX_Merge ¶
func (m *QueryParticipationExposuresRequest) XXX_Merge(src proto.Message)
func (*QueryParticipationExposuresRequest) XXX_Size ¶
func (m *QueryParticipationExposuresRequest) XXX_Size() int
func (*QueryParticipationExposuresRequest) XXX_Unmarshal ¶
func (m *QueryParticipationExposuresRequest) XXX_Unmarshal(b []byte) error
type QueryParticipationExposuresResponse ¶
type QueryParticipationExposuresResponse struct { // participation_exposure defines the participation exposure info. 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"` }
QueryParticipationExposureResponse is the response type for the Query/ParticipationExposures RPC method.
func (*QueryParticipationExposuresResponse) Descriptor ¶
func (*QueryParticipationExposuresResponse) Descriptor() ([]byte, []int)
func (*QueryParticipationExposuresResponse) GetPagination ¶
func (m *QueryParticipationExposuresResponse) GetPagination() *query.PageResponse
func (*QueryParticipationExposuresResponse) GetParticipationExposures ¶
func (m *QueryParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure
func (*QueryParticipationExposuresResponse) Marshal ¶
func (m *QueryParticipationExposuresResponse) Marshal() (dAtA []byte, err error)
func (*QueryParticipationExposuresResponse) MarshalTo ¶
func (m *QueryParticipationExposuresResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParticipationExposuresResponse) MarshalToSizedBuffer ¶
func (m *QueryParticipationExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParticipationExposuresResponse) ProtoMessage ¶
func (*QueryParticipationExposuresResponse) ProtoMessage()
func (*QueryParticipationExposuresResponse) Reset ¶
func (m *QueryParticipationExposuresResponse) Reset()
func (*QueryParticipationExposuresResponse) Size ¶
func (m *QueryParticipationExposuresResponse) Size() (n int)
func (*QueryParticipationExposuresResponse) String ¶
func (m *QueryParticipationExposuresResponse) String() string
func (*QueryParticipationExposuresResponse) Unmarshal ¶
func (m *QueryParticipationExposuresResponse) Unmarshal(dAtA []byte) error
func (*QueryParticipationExposuresResponse) XXX_DiscardUnknown ¶
func (m *QueryParticipationExposuresResponse) XXX_DiscardUnknown()
func (*QueryParticipationExposuresResponse) XXX_Marshal ¶
func (m *QueryParticipationExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParticipationExposuresResponse) XXX_Merge ¶
func (m *QueryParticipationExposuresResponse) XXX_Merge(src proto.Message)
func (*QueryParticipationExposuresResponse) XXX_Size ¶
func (m *QueryParticipationExposuresResponse) XXX_Size() int
func (*QueryParticipationExposuresResponse) XXX_Unmarshal ¶
func (m *QueryParticipationExposuresResponse) XXX_Unmarshal(b []byte) error
type QueryParticipationFulfilledBetsRequest ¶
type QueryParticipationFulfilledBetsRequest struct { // order_book_uid defines the order book uid to query for. OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"` // participation_index is the index of participation to query for. ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParticipationFulfilledBetsRequest is the request type for the Query/ParticipationFulfilledBets RPC method.
func (*QueryParticipationFulfilledBetsRequest) Descriptor ¶
func (*QueryParticipationFulfilledBetsRequest) Descriptor() ([]byte, []int)
func (*QueryParticipationFulfilledBetsRequest) GetOrderBookUid ¶ added in v0.0.8
func (m *QueryParticipationFulfilledBetsRequest) GetOrderBookUid() string
func (*QueryParticipationFulfilledBetsRequest) GetPagination ¶
func (m *QueryParticipationFulfilledBetsRequest) GetPagination() *query.PageRequest
func (*QueryParticipationFulfilledBetsRequest) GetParticipationIndex ¶
func (m *QueryParticipationFulfilledBetsRequest) GetParticipationIndex() uint64
func (*QueryParticipationFulfilledBetsRequest) Marshal ¶
func (m *QueryParticipationFulfilledBetsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParticipationFulfilledBetsRequest) MarshalTo ¶
func (m *QueryParticipationFulfilledBetsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer ¶
func (m *QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParticipationFulfilledBetsRequest) ProtoMessage ¶
func (*QueryParticipationFulfilledBetsRequest) ProtoMessage()
func (*QueryParticipationFulfilledBetsRequest) Reset ¶
func (m *QueryParticipationFulfilledBetsRequest) Reset()
func (*QueryParticipationFulfilledBetsRequest) Size ¶
func (m *QueryParticipationFulfilledBetsRequest) Size() (n int)
func (*QueryParticipationFulfilledBetsRequest) String ¶
func (m *QueryParticipationFulfilledBetsRequest) String() string
func (*QueryParticipationFulfilledBetsRequest) Unmarshal ¶
func (m *QueryParticipationFulfilledBetsRequest) Unmarshal(dAtA []byte) error
func (*QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown ¶
func (m *QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown()
func (*QueryParticipationFulfilledBetsRequest) XXX_Marshal ¶
func (m *QueryParticipationFulfilledBetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParticipationFulfilledBetsRequest) XXX_Merge ¶
func (m *QueryParticipationFulfilledBetsRequest) XXX_Merge(src proto.Message)
func (*QueryParticipationFulfilledBetsRequest) XXX_Size ¶
func (m *QueryParticipationFulfilledBetsRequest) XXX_Size() int
func (*QueryParticipationFulfilledBetsRequest) XXX_Unmarshal ¶
func (m *QueryParticipationFulfilledBetsRequest) XXX_Unmarshal(b []byte) error
type QueryParticipationFulfilledBetsResponse ¶
type QueryParticipationFulfilledBetsResponse struct { // participation_bets is the bets of the participation. ParticipationBets []ParticipationBetPair `protobuf:"bytes,1,rep,name=participation_bets,json=participationBets,proto3" json:"participation_bets"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParticipationFulfilledBetsResponse is the response type for the Query/ParticipationFulfilledBets RPC method.
func (*QueryParticipationFulfilledBetsResponse) Descriptor ¶
func (*QueryParticipationFulfilledBetsResponse) Descriptor() ([]byte, []int)
func (*QueryParticipationFulfilledBetsResponse) GetPagination ¶
func (m *QueryParticipationFulfilledBetsResponse) GetPagination() *query.PageResponse
func (*QueryParticipationFulfilledBetsResponse) GetParticipationBets ¶
func (m *QueryParticipationFulfilledBetsResponse) GetParticipationBets() []ParticipationBetPair
func (*QueryParticipationFulfilledBetsResponse) Marshal ¶
func (m *QueryParticipationFulfilledBetsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParticipationFulfilledBetsResponse) MarshalTo ¶
func (m *QueryParticipationFulfilledBetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer ¶
func (m *QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParticipationFulfilledBetsResponse) ProtoMessage ¶
func (*QueryParticipationFulfilledBetsResponse) ProtoMessage()
func (*QueryParticipationFulfilledBetsResponse) Reset ¶
func (m *QueryParticipationFulfilledBetsResponse) Reset()
func (*QueryParticipationFulfilledBetsResponse) Size ¶
func (m *QueryParticipationFulfilledBetsResponse) Size() (n int)
func (*QueryParticipationFulfilledBetsResponse) String ¶
func (m *QueryParticipationFulfilledBetsResponse) String() string
func (*QueryParticipationFulfilledBetsResponse) Unmarshal ¶
func (m *QueryParticipationFulfilledBetsResponse) Unmarshal(dAtA []byte) error
func (*QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown ¶
func (m *QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown()
func (*QueryParticipationFulfilledBetsResponse) XXX_Marshal ¶
func (m *QueryParticipationFulfilledBetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParticipationFulfilledBetsResponse) XXX_Merge ¶
func (m *QueryParticipationFulfilledBetsResponse) XXX_Merge(src proto.Message)
func (*QueryParticipationFulfilledBetsResponse) XXX_Size ¶
func (m *QueryParticipationFulfilledBetsResponse) XXX_Size() int
func (*QueryParticipationFulfilledBetsResponse) XXX_Unmarshal ¶
func (m *QueryParticipationFulfilledBetsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // OrderBooks queries all order books that match the given status. OrderBooks(context.Context, *QueryOrderBooksRequest) (*QueryOrderBooksResponse, error) // OrderBook queries order book info for given order book universal unique // identifier. OrderBook(context.Context, *QueryOrderBookRequest) (*QueryOrderBookResponse, error) // OrderBookParticipations queries participation info for given order book. OrderBookParticipations(context.Context, *QueryOrderBookParticipationsRequest) (*QueryOrderBookParticipationsResponse, error) // OrderBookParticipation queries participation info for given order book and // participation index. OrderBookParticipation(context.Context, *QueryOrderBookParticipationRequest) (*QueryOrderBookParticipationResponse, error) // OrderBookExposures queries exposures info for the given order book. OrderBookExposures(context.Context, *QueryOrderBookExposuresRequest) (*QueryOrderBookExposuresResponse, error) // OrderBookExposure queries exposure info for the given order book and odds // universal unique identifier. OrderBookExposure(context.Context, *QueryOrderBookExposureRequest) (*QueryOrderBookExposureResponse, error) // OrderBookParticipationExposures queries exposures info for given order book // participations. OrderBookParticipationExposures(context.Context, *QueryOrderBookParticipationExposuresRequest) (*QueryOrderBookParticipationExposuresResponse, error) // ParticipationExposures queries exposure info for given order book // participation. ParticipationExposures(context.Context, *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, 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 ¶
func (*UnimplementedQueryServer) HistoricalParticipationExposures(ctx context.Context, req *QueryHistoricalParticipationExposuresRequest) (*QueryHistoricalParticipationExposuresResponse, error)
func (*UnimplementedQueryServer) OrderBook ¶
func (*UnimplementedQueryServer) OrderBook(ctx context.Context, req *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
func (*UnimplementedQueryServer) OrderBookExposure ¶ added in v0.0.8
func (*UnimplementedQueryServer) OrderBookExposure(ctx context.Context, req *QueryOrderBookExposureRequest) (*QueryOrderBookExposureResponse, error)
func (*UnimplementedQueryServer) OrderBookExposures ¶ added in v0.0.8
func (*UnimplementedQueryServer) OrderBookExposures(ctx context.Context, req *QueryOrderBookExposuresRequest) (*QueryOrderBookExposuresResponse, error)
func (*UnimplementedQueryServer) OrderBookParticipation ¶ added in v0.0.8
func (*UnimplementedQueryServer) OrderBookParticipation(ctx context.Context, req *QueryOrderBookParticipationRequest) (*QueryOrderBookParticipationResponse, error)
func (*UnimplementedQueryServer) OrderBookParticipationExposures ¶ added in v0.0.8
func (*UnimplementedQueryServer) OrderBookParticipationExposures(ctx context.Context, req *QueryOrderBookParticipationExposuresRequest) (*QueryOrderBookParticipationExposuresResponse, error)
func (*UnimplementedQueryServer) OrderBookParticipations ¶ added in v0.0.8
func (*UnimplementedQueryServer) OrderBookParticipations(ctx context.Context, req *QueryOrderBookParticipationsRequest) (*QueryOrderBookParticipationsResponse, error)
func (*UnimplementedQueryServer) OrderBooks ¶
func (*UnimplementedQueryServer) OrderBooks(ctx context.Context, req *QueryOrderBooksRequest) (*QueryOrderBooksResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) ParticipationExposures ¶
func (*UnimplementedQueryServer) ParticipationExposures(ctx context.Context, req *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, error)
func (*UnimplementedQueryServer) ParticipationFulfilledBets ¶
func (*UnimplementedQueryServer) ParticipationFulfilledBets(ctx context.Context, req *QueryParticipationFulfilledBetsRequest) (*QueryParticipationFulfilledBetsResponse, error)
Source Files ¶
- codec.go
- consts.go
- errors.go
- events.go
- expected_keepers.go
- exposure.go
- exposure.pb.go
- funder.go
- genesis.go
- genesis.pb.go
- keys.go
- order_book_event.go
- orderbook.go
- orderbook.pb.go
- orderbookevent.pb.go
- params.go
- params.pb.go
- participation.go
- participation.pb.go
- participation_bet.go
- query.pb.go
- query.pb.gw.go
- stats.pb.go