Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetBookKey(bookUID string) []byte
- func GetBookOddsExposureKey(bookUID, oddsUID string) []byte
- func GetBookOddsExposuresKey(bookUID string) []byte
- func GetBookParticipationKey(bookUID string, participationIndex uint64) []byte
- func GetBookParticipationsKey(bookUID string) []byte
- func GetHistoricalParticipationExposureKey(bookUID, oddsUID string, index, round uint64) []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 GetParticipationExposuresByBookKey(bookUID string) []byte
- func GetParticipationExposuresKey(bookUID, oddsUID string) []byte
- func MustMarshalBook(cdc codec.BinaryCodec, book OrderBook) []byte
- func ParamKeyTable() paramtypes.KeyTable
- 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 BookOddsExposure
- func (*BookOddsExposure) Descriptor() ([]byte, []int)
- func (m *BookOddsExposure) Marshal() (dAtA []byte, err error)
- func (m *BookOddsExposure) MarshalTo(dAtA []byte) (int, error)
- func (m *BookOddsExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BookOddsExposure) ProtoMessage()
- func (m *BookOddsExposure) Reset()
- func (m *BookOddsExposure) Size() (n int)
- func (boe BookOddsExposure) String() string
- func (m *BookOddsExposure) Unmarshal(dAtA []byte) error
- func (m *BookOddsExposure) XXX_DiscardUnknown()
- func (m *BookOddsExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BookOddsExposure) XXX_Merge(src proto.Message)
- func (m *BookOddsExposure) XXX_Size() int
- func (m *BookOddsExposure) XXX_Unmarshal(b []byte) error
- type BookParticipation
- func (*BookParticipation) Descriptor() ([]byte, []int)
- func (m *BookParticipation) Marshal() (dAtA []byte, err error)
- func (m *BookParticipation) MarshalTo(dAtA []byte) (int, error)
- func (m *BookParticipation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BookParticipation) ProtoMessage()
- func (m *BookParticipation) Reset()
- func (m *BookParticipation) Size() (n int)
- func (bp BookParticipation) String() string
- func (m *BookParticipation) Unmarshal(dAtA []byte) error
- func (m *BookParticipation) XXX_DiscardUnknown()
- func (m *BookParticipation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BookParticipation) XXX_Merge(src proto.Message)
- func (m *BookParticipation) XXX_Size() int
- func (m *BookParticipation) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBookExposureList() []BookOddsExposure
- func (m *GenesisState) GetBookList() []OrderBook
- func (m *GenesisState) GetBookParticipationList() []BookParticipation
- func (m *GenesisState) GetHistoricalParticipationExposureList() []ParticipationExposure
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetParticipationBetPairExposureList() []ParticipationBetPair
- func (m *GenesisState) GetParticipationExposureByIndexList() []ParticipationExposure
- func (m *GenesisState) GetParticipationExposureList() []ParticipationExposure
- func (m *GenesisState) GetPayoutLock() [][]byte
- 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 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 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) GetMaxBookParticipations() 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) GetBookUID() 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 (*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 (*ParticipationExposure) ProtoMessage()
- func (m *ParticipationExposure) Reset()
- 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 QueryBookExposureRequest
- func (*QueryBookExposureRequest) Descriptor() ([]byte, []int)
- func (m *QueryBookExposureRequest) GetBookUid() string
- func (m *QueryBookExposureRequest) GetOddsUid() string
- func (m *QueryBookExposureRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBookExposureRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookExposureRequest) ProtoMessage()
- func (m *QueryBookExposureRequest) Reset()
- func (m *QueryBookExposureRequest) Size() (n int)
- func (m *QueryBookExposureRequest) String() string
- func (m *QueryBookExposureRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBookExposureRequest) XXX_DiscardUnknown()
- func (m *QueryBookExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookExposureRequest) XXX_Merge(src proto.Message)
- func (m *QueryBookExposureRequest) XXX_Size() int
- func (m *QueryBookExposureRequest) XXX_Unmarshal(b []byte) error
- type QueryBookExposureResponse
- func (*QueryBookExposureResponse) Descriptor() ([]byte, []int)
- func (m *QueryBookExposureResponse) GetBookExposure() BookOddsExposure
- func (m *QueryBookExposureResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBookExposureResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookExposureResponse) ProtoMessage()
- func (m *QueryBookExposureResponse) Reset()
- func (m *QueryBookExposureResponse) Size() (n int)
- func (m *QueryBookExposureResponse) String() string
- func (m *QueryBookExposureResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBookExposureResponse) XXX_DiscardUnknown()
- func (m *QueryBookExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookExposureResponse) XXX_Merge(src proto.Message)
- func (m *QueryBookExposureResponse) XXX_Size() int
- func (m *QueryBookExposureResponse) XXX_Unmarshal(b []byte) error
- type QueryBookExposuresRequest
- func (*QueryBookExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryBookExposuresRequest) GetBookUid() string
- func (m *QueryBookExposuresRequest) GetPagination() *query.PageRequest
- func (m *QueryBookExposuresRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBookExposuresRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookExposuresRequest) ProtoMessage()
- func (m *QueryBookExposuresRequest) Reset()
- func (m *QueryBookExposuresRequest) Size() (n int)
- func (m *QueryBookExposuresRequest) String() string
- func (m *QueryBookExposuresRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBookExposuresRequest) XXX_DiscardUnknown()
- func (m *QueryBookExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookExposuresRequest) XXX_Merge(src proto.Message)
- func (m *QueryBookExposuresRequest) XXX_Size() int
- func (m *QueryBookExposuresRequest) XXX_Unmarshal(b []byte) error
- type QueryBookExposuresResponse
- func (*QueryBookExposuresResponse) Descriptor() ([]byte, []int)
- func (m *QueryBookExposuresResponse) GetBookExposures() []BookOddsExposure
- func (m *QueryBookExposuresResponse) GetPagination() *query.PageResponse
- func (m *QueryBookExposuresResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBookExposuresResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookExposuresResponse) ProtoMessage()
- func (m *QueryBookExposuresResponse) Reset()
- func (m *QueryBookExposuresResponse) Size() (n int)
- func (m *QueryBookExposuresResponse) String() string
- func (m *QueryBookExposuresResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBookExposuresResponse) XXX_DiscardUnknown()
- func (m *QueryBookExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookExposuresResponse) XXX_Merge(src proto.Message)
- func (m *QueryBookExposuresResponse) XXX_Size() int
- func (m *QueryBookExposuresResponse) XXX_Unmarshal(b []byte) error
- type QueryBookParticipationRequest
- func (*QueryBookParticipationRequest) Descriptor() ([]byte, []int)
- func (m *QueryBookParticipationRequest) GetBookUid() string
- func (m *QueryBookParticipationRequest) GetParticipationIndex() uint64
- func (m *QueryBookParticipationRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBookParticipationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookParticipationRequest) ProtoMessage()
- func (m *QueryBookParticipationRequest) Reset()
- func (m *QueryBookParticipationRequest) Size() (n int)
- func (m *QueryBookParticipationRequest) String() string
- func (m *QueryBookParticipationRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBookParticipationRequest) XXX_DiscardUnknown()
- func (m *QueryBookParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookParticipationRequest) XXX_Merge(src proto.Message)
- func (m *QueryBookParticipationRequest) XXX_Size() int
- func (m *QueryBookParticipationRequest) XXX_Unmarshal(b []byte) error
- type QueryBookParticipationResponse
- func (*QueryBookParticipationResponse) Descriptor() ([]byte, []int)
- func (m *QueryBookParticipationResponse) GetBookParticipation() BookParticipation
- func (m *QueryBookParticipationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBookParticipationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookParticipationResponse) ProtoMessage()
- func (m *QueryBookParticipationResponse) Reset()
- func (m *QueryBookParticipationResponse) Size() (n int)
- func (m *QueryBookParticipationResponse) String() string
- func (m *QueryBookParticipationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBookParticipationResponse) XXX_DiscardUnknown()
- func (m *QueryBookParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookParticipationResponse) XXX_Merge(src proto.Message)
- func (m *QueryBookParticipationResponse) XXX_Size() int
- func (m *QueryBookParticipationResponse) XXX_Unmarshal(b []byte) error
- type QueryBookParticipationsRequest
- func (*QueryBookParticipationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryBookParticipationsRequest) GetBookUid() string
- func (m *QueryBookParticipationsRequest) GetPagination() *query.PageRequest
- func (m *QueryBookParticipationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBookParticipationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookParticipationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookParticipationsRequest) ProtoMessage()
- func (m *QueryBookParticipationsRequest) Reset()
- func (m *QueryBookParticipationsRequest) Size() (n int)
- func (m *QueryBookParticipationsRequest) String() string
- func (m *QueryBookParticipationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBookParticipationsRequest) XXX_DiscardUnknown()
- func (m *QueryBookParticipationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookParticipationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryBookParticipationsRequest) XXX_Size() int
- func (m *QueryBookParticipationsRequest) XXX_Unmarshal(b []byte) error
- type QueryBookParticipationsResponse
- func (*QueryBookParticipationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryBookParticipationsResponse) GetBookParticipations() []BookParticipation
- func (m *QueryBookParticipationsResponse) GetPagination() *query.PageResponse
- func (m *QueryBookParticipationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBookParticipationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBookParticipationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBookParticipationsResponse) ProtoMessage()
- func (m *QueryBookParticipationsResponse) Reset()
- func (m *QueryBookParticipationsResponse) Size() (n int)
- func (m *QueryBookParticipationsResponse) String() string
- func (m *QueryBookParticipationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBookParticipationsResponse) XXX_DiscardUnknown()
- func (m *QueryBookParticipationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBookParticipationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryBookParticipationsResponse) XXX_Size() int
- func (m *QueryBookParticipationsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryHistoricalParticipationExposuresRequest
- func (*QueryHistoricalParticipationExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalParticipationExposuresRequest) GetBookUid() 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 QueryOrderBookRequest
- func (*QueryOrderBookRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookRequest) GetBookUid() 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 QueryParticipationExposureRequest
- func (*QueryParticipationExposureRequest) Descriptor() ([]byte, []int)
- func (m *QueryParticipationExposureRequest) GetBookUid() string
- func (m *QueryParticipationExposureRequest) GetPagination() *query.PageRequest
- func (m *QueryParticipationExposureRequest) GetParticipationIndex() uint64
- func (m *QueryParticipationExposureRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParticipationExposureRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParticipationExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParticipationExposureRequest) ProtoMessage()
- func (m *QueryParticipationExposureRequest) Reset()
- func (m *QueryParticipationExposureRequest) Size() (n int)
- func (m *QueryParticipationExposureRequest) String() string
- func (m *QueryParticipationExposureRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParticipationExposureRequest) XXX_DiscardUnknown()
- func (m *QueryParticipationExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParticipationExposureRequest) XXX_Merge(src proto.Message)
- func (m *QueryParticipationExposureRequest) XXX_Size() int
- func (m *QueryParticipationExposureRequest) XXX_Unmarshal(b []byte) error
- type QueryParticipationExposureResponse
- func (*QueryParticipationExposureResponse) Descriptor() ([]byte, []int)
- func (m *QueryParticipationExposureResponse) GetPagination() *query.PageResponse
- func (m *QueryParticipationExposureResponse) GetParticipationExposure() []ParticipationExposure
- func (m *QueryParticipationExposureResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParticipationExposureResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParticipationExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParticipationExposureResponse) ProtoMessage()
- func (m *QueryParticipationExposureResponse) Reset()
- func (m *QueryParticipationExposureResponse) Size() (n int)
- func (m *QueryParticipationExposureResponse) String() string
- func (m *QueryParticipationExposureResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParticipationExposureResponse) XXX_DiscardUnknown()
- func (m *QueryParticipationExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParticipationExposureResponse) XXX_Merge(src proto.Message)
- func (m *QueryParticipationExposureResponse) XXX_Size() int
- func (m *QueryParticipationExposureResponse) XXX_Unmarshal(b []byte) error
- type QueryParticipationExposuresRequest
- func (*QueryParticipationExposuresRequest) Descriptor() ([]byte, []int)
- func (m *QueryParticipationExposuresRequest) GetBookUid() string
- func (m *QueryParticipationExposuresRequest) GetPagination() *query.PageRequest
- 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) GetBookUid() 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 SportEventKeeper
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) BookExposure(ctx context.Context, req *QueryBookExposureRequest) (*QueryBookExposureResponse, error)
- func (*UnimplementedQueryServer) BookExposures(ctx context.Context, req *QueryBookExposuresRequest) (*QueryBookExposuresResponse, error)
- func (*UnimplementedQueryServer) BookParticipation(ctx context.Context, req *QueryBookParticipationRequest) (*QueryBookParticipationResponse, error)
- func (*UnimplementedQueryServer) BookParticipations(ctx context.Context, req *QueryBookParticipationsRequest) (*QueryBookParticipationsResponse, error)
- func (*UnimplementedQueryServer) HistoricalParticipationExposures(ctx context.Context, req *QueryHistoricalParticipationExposuresRequest) (*QueryHistoricalParticipationExposuresResponse, error)
- func (*UnimplementedQueryServer) OrderBook(ctx context.Context, req *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
- func (*UnimplementedQueryServer) OrderBooks(ctx context.Context, req *QueryOrderBooksRequest) (*QueryOrderBooksResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ParticipationExposure(ctx context.Context, req *QueryParticipationExposureRequest) (*QueryParticipationExposureResponse, error)
- func (*UnimplementedQueryServer) ParticipationExposures(ctx context.Context, req *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, error)
- func (*UnimplementedQueryServer) ParticipationFulfilledBets(ctx context.Context, req *QueryParticipationFulfilledBetsRequest) (*QueryParticipationFulfilledBetsResponse, error)
Constants ¶
const ( SrparticipationIndex = 1 RoundStart = 1 )
const ( // ModuleName is the name of the orderbook module ModuleName = "orderbook" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( // BookLiquidityName defines the account name for book liquidity for users BookLiquidityName = "book_liquidity_pool" // SRProfitName defines the account name for profit for sr SRProfitName = "sr_profit_pool" )
module accounts constants
const ( // Default maximum book participations. DefaultMaxBookParticipations uint64 = 100 // Default batch settlement count. DefaultBatchSettlementCount uint64 = 100 )
OrderBook params default values
const (
ErrTextInvalidDesositor = "invalid depositor address (%s)"
)
x/orderbook module sentinel error text
Variables ¶
var ( ErrOrderBookNotFound = sdkerrors.Register(ModuleName, 6001, "order book not found") ErrOrderBookNotActive = sdkerrors.Register(ModuleName, 6002, "order book not active") ErrMaxNumberOfParticipationsReached = sdkerrors.Register(ModuleName, 6003, "maximum number of participations reached") ErrInsufficientUserBalance = sdkerrors.Register(ModuleName, 6004, "Insufficient user balance.") ErrFromBankModule = sdkerrors.Register(ModuleName, 6005, "Error returned from Bank Module") ErrBookParticipationAlreadyExists = sdkerrors.Register(ModuleName, 6006, "internal error in setting book participation") ErrOrderBookAlreadyPresent = sdkerrors.Register(ModuleName, 6007, "order book already present") ErrDuplicateSenderAndRecipientModule = sdkerrors.Register(ModuleName, 6008, "sender and receiver module names must not be same") ErrInsufficientBalanceInModuleAccount = sdkerrors.Register(ModuleName, 6009, "Insufficient Balance in Module Account") ErrOrderBookParticipationAlreadyPresent = sdkerrors.Register(ModuleName, 6010, "order book participation already present") ErrLockAlreadyExists = sdkerrors.Register(ModuleName, 6011, "Conflict, lock already exists") ErrOrderBookExposureNotFound = sdkerrors.Register(ModuleName, 6012, "order book exposure not found") ErrInsufficientLiquidityInBook = sdkerrors.Register(ModuleName, 6013, "insufficient liquidity in order book") ErrBookParticipationsNotFound = sdkerrors.Register(ModuleName, 6014, "book participations not found") ErrParticipationExposuresNotFound = sdkerrors.Register(ModuleName, 6015, "participation exposures not found") ErrBookParticipationNotFound = sdkerrors.Register(ModuleName, 6016, "book participation not found") ErrParticipationExposureNotFound = sdkerrors.Register(ModuleName, 6017, "participation exposure not found") ErrParticipationExposureAlreadyFilled = sdkerrors.Register(ModuleName, 6018, "participation exposure already filled") ErrInternalProcessingBet = sdkerrors.Register(ModuleName, 6019, "internal error in processing bet") ErrPayoutLockDoesnotExist = sdkerrors.Register(ModuleName, 6020, "Payout lock for bet uid %s does not exist") ErrBookParticipationAlreadySettled = sdkerrors.Register(ModuleName, 6021, "book participation already settled") ErrMismatchInDepositorAddress = sdkerrors.Register(ModuleName, 6022, "mismatch in depositor address") ErrDepositorIsModuleAccount = sdkerrors.Register(ModuleName, 6023, "depositor is module account") ErrWithdrawalAmountIsTooLarge = sdkerrors.Register(ModuleName, 6024, "withdrawal amount more than available amount for withdrawal") ErrMaxWithdrawableAmountIsZero = sdkerrors.Register(ModuleName, 6025, "maximum withdrawable amount is zero") ErrParticipationOnInactiveSportEvent = sdkerrors.Register(ModuleName, 6026, "participation is allowed on an active sport-event only") ErrSportEventNotFound = sdkerrors.Register(ModuleName, 6027, "sport-event not found to initialize participation") )
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 ( BookKeyPrefix = []byte{0x00} // prefix for keys that store books BookParticipationKeyPrefix = []byte{0x01} // prefix for keys that store book participations BookOddsExposureKeyPrefix = []byte{0x02} // prefix for keys that store book odds exposures ParticipationExposureKeyPrefix = []byte{0x03} // prefix for keys that store participation exposures PayoutLockKeyPrefix = []byte{0x04} // prefix for keys that store payout locks ParticipationExposureByIndexKeyPrefix = []byte{0x05} // prefix for keys that store participation exposures HistoricalParticipationExposureKeyPrefix = []byte{0x06} // prefix for keys that store historical participation exposures BookStatsKeyPrefix = []byte{0x07} // prefix for keys that store book stats ParticipationBetPairKeyPrefix = []byte{0x08} // prefix for keys that store book participation and bet pairs )
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 ( KeyMaxBookParticipations = []byte("MaxBookParticipationss") KeyBatchSettlementCount = []byte("BatchSettlementCount") )
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 GetBookKey ¶
GetBookKey returns the bytes of an book key
func GetBookOddsExposureKey ¶
GetBookOddsExposureKey creates the key for book exposure for an odd
func GetBookOddsExposuresKey ¶
GetBookOddsExposuresKey creates the key for book exposure for an book
func GetBookParticipationKey ¶
GetBookParticipationKey creates the key for book participation bond with book
func GetBookParticipationsKey ¶
GetBookParticipationsKey creates the key for book participations for an book
func GetHistoricalParticipationExposureKey ¶
GetHistoricalParticipationExposureKey creates the key for participation exposure for an odd
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 GetParticipationExposuresByBookKey ¶
GetParticipationExposuresByBookKey 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 MustMarshalBook ¶
func MustMarshalBook(cdc codec.BinaryCodec, book OrderBook) []byte
MustMarshalBook returns the orderbook bytes. Panics if fails
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 BookOddsExposure ¶
type BookOddsExposure struct { // book_uid is the unique identifier corresponding to the book BookUID string `protobuf:"bytes,1,opt,name=book_uid,proto3" json:"book_uid"` // odds_uid is odds uid OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"` FulfillmentQueue []uint64 `` /* 142-byte string literal not displayed */ }
BookOddsExposure represents the exposures taken on odds
func NewBookOddsExposure ¶
func NewBookOddsExposure(bookUID, oddsUID string, fulfillmentQueue []uint64) BookOddsExposure
NewBookOddsExposure creates a new book odds exposure object
func (*BookOddsExposure) Descriptor ¶
func (*BookOddsExposure) Descriptor() ([]byte, []int)
func (*BookOddsExposure) Marshal ¶
func (m *BookOddsExposure) Marshal() (dAtA []byte, err error)
func (*BookOddsExposure) MarshalToSizedBuffer ¶
func (m *BookOddsExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BookOddsExposure) ProtoMessage ¶
func (*BookOddsExposure) ProtoMessage()
func (*BookOddsExposure) Reset ¶
func (m *BookOddsExposure) Reset()
func (*BookOddsExposure) Size ¶
func (m *BookOddsExposure) Size() (n int)
func (BookOddsExposure) String ¶
func (boe BookOddsExposure) String() string
String returns a human readable string representation of a BookOddsExposure.
func (*BookOddsExposure) Unmarshal ¶
func (m *BookOddsExposure) Unmarshal(dAtA []byte) error
func (*BookOddsExposure) XXX_DiscardUnknown ¶
func (m *BookOddsExposure) XXX_DiscardUnknown()
func (*BookOddsExposure) XXX_Marshal ¶
func (m *BookOddsExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BookOddsExposure) XXX_Merge ¶
func (m *BookOddsExposure) XXX_Merge(src proto.Message)
func (*BookOddsExposure) XXX_Size ¶
func (m *BookOddsExposure) XXX_Size() int
func (*BookOddsExposure) XXX_Unmarshal ¶
func (m *BookOddsExposure) XXX_Unmarshal(b []byte) error
type BookParticipation ¶
type BookParticipation struct { // index is the id of initial participation queue Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index"` // book_uid is the unique identifier corresponding to the book BookUID string `protobuf:"bytes,2,opt,name=book_uid,proto3" json:"book_uid"` // participant_address is the bech32-encoded address of the participant. ParticipantAddress string `` /* 142-byte string literal not displayed */ // if participation is a module account IsModuleAccount bool `` /* 134-byte string literal not displayed */ // liquidity is the total initial liquidity provided Liquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ // current round liquidity is the liquidity provided for current round CurrentRoundLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 197-byte string literal not displayed */ ExposuresNotFilled uint64 `` /* 146-byte string literal not displayed */ // total_bet_amount is the total bet amount corresponding to all exposure 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 // exposure 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 total bet amount corresponding to all // exposure CurrentRoundMaxLoss github_com_cosmos_cosmos_sdk_types.Int `` /* 193-byte string literal not displayed */ // current_round_max_loss_odds_uid is the total bet amount corresponding to // all exposure CurrentRoundMaxLossOddsUID string `` /* 145-byte string literal not displayed */ // actual_profit is the actual profit ActualProfit github_com_cosmos_cosmos_sdk_types.Int `` /* 159-byte string literal not displayed */ // if participation is settled IsSettled bool `protobuf:"varint,14,opt,name=is_settled,json=isSettled,proto3" json:"is_settled,omitempty" yaml:"is_settled"` }
BookParticipation represents the participants of an order book.
func NewBookParticipation ¶
func NewBookParticipation( index uint64, bookUID string, participantAddress string, exposuresNotFilled uint64, isModuleAccount bool, liquidity, currentRoundLiquidity, totalBetAmount, currentRoundTotalBetAmount, maxLoss, currentRoundMaxLoss sdk.Int, currentRoundMaxLossOddsUID string, actualProfit sdk.Int, ) BookParticipation
NewBookParticipation creates a new book participation object
func (*BookParticipation) Descriptor ¶
func (*BookParticipation) Descriptor() ([]byte, []int)
func (*BookParticipation) Marshal ¶
func (m *BookParticipation) Marshal() (dAtA []byte, err error)
func (*BookParticipation) MarshalTo ¶
func (m *BookParticipation) MarshalTo(dAtA []byte) (int, error)
func (*BookParticipation) MarshalToSizedBuffer ¶
func (m *BookParticipation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BookParticipation) ProtoMessage ¶
func (*BookParticipation) ProtoMessage()
func (*BookParticipation) Reset ¶
func (m *BookParticipation) Reset()
func (*BookParticipation) Size ¶
func (m *BookParticipation) Size() (n int)
func (BookParticipation) String ¶
func (bp BookParticipation) String() string
String returns a human readable string representation of a BookParticipation.
func (*BookParticipation) Unmarshal ¶
func (m *BookParticipation) Unmarshal(dAtA []byte) error
func (*BookParticipation) XXX_DiscardUnknown ¶
func (m *BookParticipation) XXX_DiscardUnknown()
func (*BookParticipation) XXX_Marshal ¶
func (m *BookParticipation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BookParticipation) XXX_Merge ¶
func (m *BookParticipation) XXX_Merge(src proto.Message)
func (*BookParticipation) XXX_Size ¶
func (m *BookParticipation) XXX_Size() int
func (*BookParticipation) XXX_Unmarshal ¶
func (m *BookParticipation) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters related to orderbook. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // book_list defines the books active at genesis. BookList []OrderBook `protobuf:"bytes,2,rep,name=book_list,json=bookList,proto3" json:"book_list"` // book_participation_list defines the book participations active at genesis. BookParticipationList []BookParticipation `protobuf:"bytes,3,rep,name=book_participation_list,json=bookParticipationList,proto3" json:"book_participation_list"` // book_exposure_list defines the book exposures active at genesis. BookExposureList []BookOddsExposure `protobuf:"bytes,4,rep,name=book_exposure_list,json=bookExposureList,proto3" json:"book_exposure_list"` // participation_exposure_list defines the participation exposures active at // genesis. ParticipationExposureList []ParticipationExposure `` /* 128-byte string literal not displayed */ // participation_exposure_by_index_list defines the participation exposures by // index active at genesis. ParticipationExposureByIndexList []ParticipationExposure `` /* 153-byte string literal not displayed */ // historical_participation_exposure_list defines the historical participation // exposures active at // genesis. HistoricalParticipationExposureList []ParticipationExposure `` /* 160-byte string literal not displayed */ // historical_participation_exposure_list defines the historical participation // exposures active at // genesis. ParticipationBetPairExposureList []ParticipationBetPair `` /* 153-byte string literal not displayed */ PayoutLock [][]byte `protobuf:"bytes,9,rep,name=payout_lock,json=payoutLock,proto3" json:"payout_lock,omitempty"` // stats is the statistics of the order-book Stats OrderBookStats `protobuf:"bytes,10,opt,name=stats,proto3" json:"stats"` }
GenesisState defines the 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) GetBookExposureList ¶
func (m *GenesisState) GetBookExposureList() []BookOddsExposure
func (*GenesisState) GetBookList ¶
func (m *GenesisState) GetBookList() []OrderBook
func (*GenesisState) GetBookParticipationList ¶
func (m *GenesisState) GetBookParticipationList() []BookParticipation
func (*GenesisState) GetHistoricalParticipationExposureList ¶
func (m *GenesisState) GetHistoricalParticipationExposureList() []ParticipationExposure
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetParticipationBetPairExposureList ¶
func (m *GenesisState) GetParticipationBetPairExposureList() []ParticipationBetPair
func (*GenesisState) GetParticipationExposureByIndexList ¶
func (m *GenesisState) GetParticipationExposureByIndexList() []ParticipationExposure
func (*GenesisState) GetParticipationExposureList ¶
func (m *GenesisState) GetParticipationExposureList() []ParticipationExposure
func (*GenesisState) GetPayoutLock ¶
func (m *GenesisState) GetPayoutLock() [][]byte
func (*GenesisState) GetStats ¶
func (m *GenesisState) GetStats() OrderBookStats
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) 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 OrderBook ¶
type OrderBook struct { // id corresponding to the book ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // 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"` // order book status Status OrderBookStatus `protobuf:"varint,4,opt,name=status,proto3,enum=merlinnetwork.fury.orderbook.OrderBookStatus" json:"status,omitempty"` }
OrderBook represents the order book maintained against a sport event.
func MustUnmarshalBook ¶
func MustUnmarshalBook(cdc codec.BinaryCodec, value []byte) OrderBook
MustUnmarshalBook return the unmarshaled orderbook from bytes. Panics if fails.
func NewOrderBook ¶
func NewOrderBook(bookUID string, participationCount, oddsCount uint64, status OrderBookStatus) OrderBook
NewOrderBook creates a new orderbook object
func UnmarshalBook ¶
func UnmarshalBook(cdc codec.BinaryCodec, value []byte) (book OrderBook, err error)
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 OrderBookStats ¶
type OrderBookStats struct { // resolved_unsettled is the list of book ids that needs to be settled. ResolvedUnsettled []string `protobuf:"bytes,1,rep,name=resolved_unsettled,json=resolvedUnsettled,proto3" json:"resolved_unsettled,omitempty"` }
OrderBookStats holds statistics of 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 orderbook.
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_book_participations is the maximum number of participations per book. MaxBookParticipations uint64 `` /* 158-byte string literal not displayed */ // batch_settlement_count is the batch settlement deposit counts. BatchSettlementCount uint64 `` /* 154-byte string literal not displayed */ }
Params defines the parameters for the orderbook module.
func (*Params) Descriptor ¶
func (*Params) GetBatchSettlementCount ¶
func (*Params) GetMaxBookParticipations ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.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 { // book_uid is the unique identifier corresponding to the book BookUID string `protobuf:"bytes,1,opt,name=book_uid,proto3" json:"book_uid"` // participation_index is the count of initial participation queue ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ // bet_uid is bet's uuid 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( bookUID, 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) GetBookUID ¶
func (m *ParticipationBetPair) GetBookUID() 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 { // book_uid is the unique identifier corresponding to the book BookUID string `protobuf:"bytes,1,opt,name=book_uid,proto3" json:"book_uid"` // odds_uid is odd's uid OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"` // participation_index is the id of initial participation queue ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ // exposure is the total exposure taken on given odd 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 */ IsFulfilled bool `protobuf:"varint,6,opt,name=is_fulfilled,json=isFulfilled,proto3" json:"is_fulfilled,omitempty" yaml:"is_fulfilled"` // number of current round in 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(bookUID, oddsUID string, exposure, betAmount sdk.Int, participationIndex, round uint64, isFulfilled bool) ParticipationExposure
NewParticipationExposure creates a new participation exposure object
func (*ParticipationExposure) Descriptor ¶
func (*ParticipationExposure) Descriptor() ([]byte, []int)
func (*ParticipationExposure) Marshal ¶
func (m *ParticipationExposure) Marshal() (dAtA []byte, err error)
func (*ParticipationExposure) MarshalTo ¶
func (m *ParticipationExposure) MarshalTo(dAtA []byte) (int, error)
func (*ParticipationExposure) MarshalToSizedBuffer ¶
func (m *ParticipationExposure) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParticipationExposure) ProtoMessage ¶
func (*ParticipationExposure) ProtoMessage()
func (*ParticipationExposure) Reset ¶
func (m *ParticipationExposure) Reset()
func (*ParticipationExposure) Size ¶
func (m *ParticipationExposure) Size() (n int)
func (ParticipationExposure) String ¶
func (pe ParticipationExposure) String() string
String returns a human readable string representation of a participationExposure.
func (*ParticipationExposure) Unmarshal ¶
func (m *ParticipationExposure) Unmarshal(dAtA []byte) error
func (*ParticipationExposure) XXX_DiscardUnknown ¶
func (m *ParticipationExposure) XXX_DiscardUnknown()
func (*ParticipationExposure) XXX_Marshal ¶
func (m *ParticipationExposure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParticipationExposure) XXX_Merge ¶
func (m *ParticipationExposure) XXX_Merge(src proto.Message)
func (*ParticipationExposure) XXX_Size ¶
func (m *ParticipationExposure) XXX_Size() int
func (*ParticipationExposure) XXX_Unmarshal ¶
func (m *ParticipationExposure) XXX_Unmarshal(b []byte) error
type QueryBookExposureRequest ¶
type QueryBookExposureRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"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"` }
QueryBookExposureRequest is request type for the Query/BookExposure RPC method
func (*QueryBookExposureRequest) Descriptor ¶
func (*QueryBookExposureRequest) Descriptor() ([]byte, []int)
func (*QueryBookExposureRequest) GetBookUid ¶
func (m *QueryBookExposureRequest) GetBookUid() string
func (*QueryBookExposureRequest) GetOddsUid ¶
func (m *QueryBookExposureRequest) GetOddsUid() string
func (*QueryBookExposureRequest) Marshal ¶
func (m *QueryBookExposureRequest) Marshal() (dAtA []byte, err error)
func (*QueryBookExposureRequest) MarshalTo ¶
func (m *QueryBookExposureRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookExposureRequest) MarshalToSizedBuffer ¶
func (m *QueryBookExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookExposureRequest) ProtoMessage ¶
func (*QueryBookExposureRequest) ProtoMessage()
func (*QueryBookExposureRequest) Reset ¶
func (m *QueryBookExposureRequest) Reset()
func (*QueryBookExposureRequest) Size ¶
func (m *QueryBookExposureRequest) Size() (n int)
func (*QueryBookExposureRequest) String ¶
func (m *QueryBookExposureRequest) String() string
func (*QueryBookExposureRequest) Unmarshal ¶
func (m *QueryBookExposureRequest) Unmarshal(dAtA []byte) error
func (*QueryBookExposureRequest) XXX_DiscardUnknown ¶
func (m *QueryBookExposureRequest) XXX_DiscardUnknown()
func (*QueryBookExposureRequest) XXX_Marshal ¶
func (m *QueryBookExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookExposureRequest) XXX_Merge ¶
func (m *QueryBookExposureRequest) XXX_Merge(src proto.Message)
func (*QueryBookExposureRequest) XXX_Size ¶
func (m *QueryBookExposureRequest) XXX_Size() int
func (*QueryBookExposureRequest) XXX_Unmarshal ¶
func (m *QueryBookExposureRequest) XXX_Unmarshal(b []byte) error
type QueryBookExposureResponse ¶
type QueryBookExposureResponse struct { // book_exposure defines the the book exposure info. BookExposure BookOddsExposure `protobuf:"bytes,1,opt,name=book_exposure,json=bookExposure,proto3" json:"book_exposure"` }
QueryBookExposureResponse is response type for the Query/BookExposure RPC method
func (*QueryBookExposureResponse) Descriptor ¶
func (*QueryBookExposureResponse) Descriptor() ([]byte, []int)
func (*QueryBookExposureResponse) GetBookExposure ¶
func (m *QueryBookExposureResponse) GetBookExposure() BookOddsExposure
func (*QueryBookExposureResponse) Marshal ¶
func (m *QueryBookExposureResponse) Marshal() (dAtA []byte, err error)
func (*QueryBookExposureResponse) MarshalTo ¶
func (m *QueryBookExposureResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookExposureResponse) MarshalToSizedBuffer ¶
func (m *QueryBookExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookExposureResponse) ProtoMessage ¶
func (*QueryBookExposureResponse) ProtoMessage()
func (*QueryBookExposureResponse) Reset ¶
func (m *QueryBookExposureResponse) Reset()
func (*QueryBookExposureResponse) Size ¶
func (m *QueryBookExposureResponse) Size() (n int)
func (*QueryBookExposureResponse) String ¶
func (m *QueryBookExposureResponse) String() string
func (*QueryBookExposureResponse) Unmarshal ¶
func (m *QueryBookExposureResponse) Unmarshal(dAtA []byte) error
func (*QueryBookExposureResponse) XXX_DiscardUnknown ¶
func (m *QueryBookExposureResponse) XXX_DiscardUnknown()
func (*QueryBookExposureResponse) XXX_Marshal ¶
func (m *QueryBookExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookExposureResponse) XXX_Merge ¶
func (m *QueryBookExposureResponse) XXX_Merge(src proto.Message)
func (*QueryBookExposureResponse) XXX_Size ¶
func (m *QueryBookExposureResponse) XXX_Size() int
func (*QueryBookExposureResponse) XXX_Unmarshal ¶
func (m *QueryBookExposureResponse) XXX_Unmarshal(b []byte) error
type QueryBookExposuresRequest ¶
type QueryBookExposuresRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBookExposuresRequest is request type for the Query/BookExposures RPC method
func (*QueryBookExposuresRequest) Descriptor ¶
func (*QueryBookExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryBookExposuresRequest) GetBookUid ¶
func (m *QueryBookExposuresRequest) GetBookUid() string
func (*QueryBookExposuresRequest) GetPagination ¶
func (m *QueryBookExposuresRequest) GetPagination() *query.PageRequest
func (*QueryBookExposuresRequest) Marshal ¶
func (m *QueryBookExposuresRequest) Marshal() (dAtA []byte, err error)
func (*QueryBookExposuresRequest) MarshalTo ¶
func (m *QueryBookExposuresRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookExposuresRequest) MarshalToSizedBuffer ¶
func (m *QueryBookExposuresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookExposuresRequest) ProtoMessage ¶
func (*QueryBookExposuresRequest) ProtoMessage()
func (*QueryBookExposuresRequest) Reset ¶
func (m *QueryBookExposuresRequest) Reset()
func (*QueryBookExposuresRequest) Size ¶
func (m *QueryBookExposuresRequest) Size() (n int)
func (*QueryBookExposuresRequest) String ¶
func (m *QueryBookExposuresRequest) String() string
func (*QueryBookExposuresRequest) Unmarshal ¶
func (m *QueryBookExposuresRequest) Unmarshal(dAtA []byte) error
func (*QueryBookExposuresRequest) XXX_DiscardUnknown ¶
func (m *QueryBookExposuresRequest) XXX_DiscardUnknown()
func (*QueryBookExposuresRequest) XXX_Marshal ¶
func (m *QueryBookExposuresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookExposuresRequest) XXX_Merge ¶
func (m *QueryBookExposuresRequest) XXX_Merge(src proto.Message)
func (*QueryBookExposuresRequest) XXX_Size ¶
func (m *QueryBookExposuresRequest) XXX_Size() int
func (*QueryBookExposuresRequest) XXX_Unmarshal ¶
func (m *QueryBookExposuresRequest) XXX_Unmarshal(b []byte) error
type QueryBookExposuresResponse ¶
type QueryBookExposuresResponse struct { BookExposures []BookOddsExposure `protobuf:"bytes,1,rep,name=book_exposures,json=bookExposures,proto3" json:"book_exposures"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBookExposuresResponse is response type for the Query/BookExposures RPC method
func (*QueryBookExposuresResponse) Descriptor ¶
func (*QueryBookExposuresResponse) Descriptor() ([]byte, []int)
func (*QueryBookExposuresResponse) GetBookExposures ¶
func (m *QueryBookExposuresResponse) GetBookExposures() []BookOddsExposure
func (*QueryBookExposuresResponse) GetPagination ¶
func (m *QueryBookExposuresResponse) GetPagination() *query.PageResponse
func (*QueryBookExposuresResponse) Marshal ¶
func (m *QueryBookExposuresResponse) Marshal() (dAtA []byte, err error)
func (*QueryBookExposuresResponse) MarshalTo ¶
func (m *QueryBookExposuresResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookExposuresResponse) MarshalToSizedBuffer ¶
func (m *QueryBookExposuresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookExposuresResponse) ProtoMessage ¶
func (*QueryBookExposuresResponse) ProtoMessage()
func (*QueryBookExposuresResponse) Reset ¶
func (m *QueryBookExposuresResponse) Reset()
func (*QueryBookExposuresResponse) Size ¶
func (m *QueryBookExposuresResponse) Size() (n int)
func (*QueryBookExposuresResponse) String ¶
func (m *QueryBookExposuresResponse) String() string
func (*QueryBookExposuresResponse) Unmarshal ¶
func (m *QueryBookExposuresResponse) Unmarshal(dAtA []byte) error
func (*QueryBookExposuresResponse) XXX_DiscardUnknown ¶
func (m *QueryBookExposuresResponse) XXX_DiscardUnknown()
func (*QueryBookExposuresResponse) XXX_Marshal ¶
func (m *QueryBookExposuresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookExposuresResponse) XXX_Merge ¶
func (m *QueryBookExposuresResponse) XXX_Merge(src proto.Message)
func (*QueryBookExposuresResponse) XXX_Size ¶
func (m *QueryBookExposuresResponse) XXX_Size() int
func (*QueryBookExposuresResponse) XXX_Unmarshal ¶
func (m *QueryBookExposuresResponse) XXX_Unmarshal(b []byte) error
type QueryBookParticipationRequest ¶
type QueryBookParticipationRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"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"` }
QueryBookParticipationRequest is request type for the Query/BookParticipation RPC method
func (*QueryBookParticipationRequest) Descriptor ¶
func (*QueryBookParticipationRequest) Descriptor() ([]byte, []int)
func (*QueryBookParticipationRequest) GetBookUid ¶
func (m *QueryBookParticipationRequest) GetBookUid() string
func (*QueryBookParticipationRequest) GetParticipationIndex ¶
func (m *QueryBookParticipationRequest) GetParticipationIndex() uint64
func (*QueryBookParticipationRequest) Marshal ¶
func (m *QueryBookParticipationRequest) Marshal() (dAtA []byte, err error)
func (*QueryBookParticipationRequest) MarshalTo ¶
func (m *QueryBookParticipationRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookParticipationRequest) MarshalToSizedBuffer ¶
func (m *QueryBookParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookParticipationRequest) ProtoMessage ¶
func (*QueryBookParticipationRequest) ProtoMessage()
func (*QueryBookParticipationRequest) Reset ¶
func (m *QueryBookParticipationRequest) Reset()
func (*QueryBookParticipationRequest) Size ¶
func (m *QueryBookParticipationRequest) Size() (n int)
func (*QueryBookParticipationRequest) String ¶
func (m *QueryBookParticipationRequest) String() string
func (*QueryBookParticipationRequest) Unmarshal ¶
func (m *QueryBookParticipationRequest) Unmarshal(dAtA []byte) error
func (*QueryBookParticipationRequest) XXX_DiscardUnknown ¶
func (m *QueryBookParticipationRequest) XXX_DiscardUnknown()
func (*QueryBookParticipationRequest) XXX_Marshal ¶
func (m *QueryBookParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookParticipationRequest) XXX_Merge ¶
func (m *QueryBookParticipationRequest) XXX_Merge(src proto.Message)
func (*QueryBookParticipationRequest) XXX_Size ¶
func (m *QueryBookParticipationRequest) XXX_Size() int
func (*QueryBookParticipationRequest) XXX_Unmarshal ¶
func (m *QueryBookParticipationRequest) XXX_Unmarshal(b []byte) error
type QueryBookParticipationResponse ¶
type QueryBookParticipationResponse struct { // book_participation defines the the book participation info. BookParticipation BookParticipation `protobuf:"bytes,1,opt,name=book_participation,json=bookParticipation,proto3" json:"book_participation"` }
QueryBookParticipationResponse is response type for the Query/BookParticipation RPC method
func (*QueryBookParticipationResponse) Descriptor ¶
func (*QueryBookParticipationResponse) Descriptor() ([]byte, []int)
func (*QueryBookParticipationResponse) GetBookParticipation ¶
func (m *QueryBookParticipationResponse) GetBookParticipation() BookParticipation
func (*QueryBookParticipationResponse) Marshal ¶
func (m *QueryBookParticipationResponse) Marshal() (dAtA []byte, err error)
func (*QueryBookParticipationResponse) MarshalTo ¶
func (m *QueryBookParticipationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookParticipationResponse) MarshalToSizedBuffer ¶
func (m *QueryBookParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookParticipationResponse) ProtoMessage ¶
func (*QueryBookParticipationResponse) ProtoMessage()
func (*QueryBookParticipationResponse) Reset ¶
func (m *QueryBookParticipationResponse) Reset()
func (*QueryBookParticipationResponse) Size ¶
func (m *QueryBookParticipationResponse) Size() (n int)
func (*QueryBookParticipationResponse) String ¶
func (m *QueryBookParticipationResponse) String() string
func (*QueryBookParticipationResponse) Unmarshal ¶
func (m *QueryBookParticipationResponse) Unmarshal(dAtA []byte) error
func (*QueryBookParticipationResponse) XXX_DiscardUnknown ¶
func (m *QueryBookParticipationResponse) XXX_DiscardUnknown()
func (*QueryBookParticipationResponse) XXX_Marshal ¶
func (m *QueryBookParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookParticipationResponse) XXX_Merge ¶
func (m *QueryBookParticipationResponse) XXX_Merge(src proto.Message)
func (*QueryBookParticipationResponse) XXX_Size ¶
func (m *QueryBookParticipationResponse) XXX_Size() int
func (*QueryBookParticipationResponse) XXX_Unmarshal ¶
func (m *QueryBookParticipationResponse) XXX_Unmarshal(b []byte) error
type QueryBookParticipationsRequest ¶
type QueryBookParticipationsRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBookParticipationsRequest is request type for the Query/BookParticipations RPC method
func (*QueryBookParticipationsRequest) Descriptor ¶
func (*QueryBookParticipationsRequest) Descriptor() ([]byte, []int)
func (*QueryBookParticipationsRequest) GetBookUid ¶
func (m *QueryBookParticipationsRequest) GetBookUid() string
func (*QueryBookParticipationsRequest) GetPagination ¶
func (m *QueryBookParticipationsRequest) GetPagination() *query.PageRequest
func (*QueryBookParticipationsRequest) Marshal ¶
func (m *QueryBookParticipationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryBookParticipationsRequest) MarshalTo ¶
func (m *QueryBookParticipationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookParticipationsRequest) MarshalToSizedBuffer ¶
func (m *QueryBookParticipationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookParticipationsRequest) ProtoMessage ¶
func (*QueryBookParticipationsRequest) ProtoMessage()
func (*QueryBookParticipationsRequest) Reset ¶
func (m *QueryBookParticipationsRequest) Reset()
func (*QueryBookParticipationsRequest) Size ¶
func (m *QueryBookParticipationsRequest) Size() (n int)
func (*QueryBookParticipationsRequest) String ¶
func (m *QueryBookParticipationsRequest) String() string
func (*QueryBookParticipationsRequest) Unmarshal ¶
func (m *QueryBookParticipationsRequest) Unmarshal(dAtA []byte) error
func (*QueryBookParticipationsRequest) XXX_DiscardUnknown ¶
func (m *QueryBookParticipationsRequest) XXX_DiscardUnknown()
func (*QueryBookParticipationsRequest) XXX_Marshal ¶
func (m *QueryBookParticipationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookParticipationsRequest) XXX_Merge ¶
func (m *QueryBookParticipationsRequest) XXX_Merge(src proto.Message)
func (*QueryBookParticipationsRequest) XXX_Size ¶
func (m *QueryBookParticipationsRequest) XXX_Size() int
func (*QueryBookParticipationsRequest) XXX_Unmarshal ¶
func (m *QueryBookParticipationsRequest) XXX_Unmarshal(b []byte) error
type QueryBookParticipationsResponse ¶
type QueryBookParticipationsResponse struct { BookParticipations []BookParticipation `protobuf:"bytes,1,rep,name=book_participations,json=bookParticipations,proto3" json:"book_participations"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBookParticipationsResponse is response type for the Query/BookParticipations RPC method
func (*QueryBookParticipationsResponse) Descriptor ¶
func (*QueryBookParticipationsResponse) Descriptor() ([]byte, []int)
func (*QueryBookParticipationsResponse) GetBookParticipations ¶
func (m *QueryBookParticipationsResponse) GetBookParticipations() []BookParticipation
func (*QueryBookParticipationsResponse) GetPagination ¶
func (m *QueryBookParticipationsResponse) GetPagination() *query.PageResponse
func (*QueryBookParticipationsResponse) Marshal ¶
func (m *QueryBookParticipationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryBookParticipationsResponse) MarshalTo ¶
func (m *QueryBookParticipationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBookParticipationsResponse) MarshalToSizedBuffer ¶
func (m *QueryBookParticipationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBookParticipationsResponse) ProtoMessage ¶
func (*QueryBookParticipationsResponse) ProtoMessage()
func (*QueryBookParticipationsResponse) Reset ¶
func (m *QueryBookParticipationsResponse) Reset()
func (*QueryBookParticipationsResponse) Size ¶
func (m *QueryBookParticipationsResponse) Size() (n int)
func (*QueryBookParticipationsResponse) String ¶
func (m *QueryBookParticipationsResponse) String() string
func (*QueryBookParticipationsResponse) Unmarshal ¶
func (m *QueryBookParticipationsResponse) Unmarshal(dAtA []byte) error
func (*QueryBookParticipationsResponse) XXX_DiscardUnknown ¶
func (m *QueryBookParticipationsResponse) XXX_DiscardUnknown()
func (*QueryBookParticipationsResponse) XXX_Marshal ¶
func (m *QueryBookParticipationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBookParticipationsResponse) XXX_Merge ¶
func (m *QueryBookParticipationsResponse) XXX_Merge(src proto.Message)
func (*QueryBookParticipationsResponse) XXX_Size ¶
func (m *QueryBookParticipationsResponse) XXX_Size() int
func (*QueryBookParticipationsResponse) XXX_Unmarshal ¶
func (m *QueryBookParticipationsResponse) 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 orderbook info for given order book id. OrderBook(ctx context.Context, in *QueryOrderBookRequest, opts ...grpc.CallOption) (*QueryOrderBookResponse, error) // BookParticipations queries participation info for given orderbook. BookParticipations(ctx context.Context, in *QueryBookParticipationsRequest, opts ...grpc.CallOption) (*QueryBookParticipationsResponse, error) // BookParticipation queries participation info for given orderbook and // participation index. BookParticipation(ctx context.Context, in *QueryBookParticipationRequest, opts ...grpc.CallOption) (*QueryBookParticipationResponse, error) // BookExposures queries exposures info for given orderbook. BookExposures(ctx context.Context, in *QueryBookExposuresRequest, opts ...grpc.CallOption) (*QueryBookExposuresResponse, error) // BookExposure queries exposure info for given orderbook and odds id. BookExposure(ctx context.Context, in *QueryBookExposureRequest, opts ...grpc.CallOption) (*QueryBookExposureResponse, error) // ParticipationExposures queries exposures info for given orderbook // participations. ParticipationExposures(ctx context.Context, in *QueryParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryParticipationExposuresResponse, error) // ParticipationExposure queries exposure info for given orderbook // participation. ParticipationExposure(ctx context.Context, in *QueryParticipationExposureRequest, opts ...grpc.CallOption) (*QueryParticipationExposureResponse, error) // HistoricalParticipationExposures queries historical exposures info for // given orderbook participation. HistoricalParticipationExposures(ctx context.Context, in *QueryHistoricalParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryHistoricalParticipationExposuresResponse, error) // ParticipationFulfilledBets queries fulfilled bets for given orderbook // 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 { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryHistoricalParticipationExposuresRequest is request type for the Query/HistoricalParticipationExposures RPC method
func (*QueryHistoricalParticipationExposuresRequest) Descriptor ¶
func (*QueryHistoricalParticipationExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryHistoricalParticipationExposuresRequest) GetBookUid ¶
func (m *QueryHistoricalParticipationExposuresRequest) GetBookUid() 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 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 QueryOrderBookRequest ¶
type QueryOrderBookRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` }
QueryOrderBookRequest is request type for the Query/OrderBook RPC method
func (*QueryOrderBookRequest) Descriptor ¶
func (*QueryOrderBookRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookRequest) GetBookUid ¶
func (m *QueryOrderBookRequest) GetBookUid() 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 the order book info. Orderbook OrderBook `protobuf:"bytes,1,opt,name=orderbook,proto3" json:"orderbook"` }
QueryOrderBookResponse is response type for the Query/OrderBook RPC method
func (*QueryOrderBookResponse) Descriptor ¶
func (*QueryOrderBookResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookResponse) GetOrderbook ¶
func (m *QueryOrderBookResponse) GetOrderbook() OrderBook
func (*QueryOrderBookResponse) Marshal ¶
func (m *QueryOrderBookResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookResponse) MarshalTo ¶
func (m *QueryOrderBookResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookResponse) MarshalToSizedBuffer ¶
func (m *QueryOrderBookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookResponse) ProtoMessage ¶
func (*QueryOrderBookResponse) ProtoMessage()
func (*QueryOrderBookResponse) Reset ¶
func (m *QueryOrderBookResponse) Reset()
func (*QueryOrderBookResponse) Size ¶
func (m *QueryOrderBookResponse) Size() (n int)
func (*QueryOrderBookResponse) String ¶
func (m *QueryOrderBookResponse) String() string
func (*QueryOrderBookResponse) Unmarshal ¶
func (m *QueryOrderBookResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookResponse) XXX_DiscardUnknown ¶
func (m *QueryOrderBookResponse) XXX_DiscardUnknown()
func (*QueryOrderBookResponse) XXX_Marshal ¶
func (m *QueryOrderBookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookResponse) XXX_Merge ¶
func (m *QueryOrderBookResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookResponse) XXX_Size ¶
func (m *QueryOrderBookResponse) XXX_Size() int
func (*QueryOrderBookResponse) XXX_Unmarshal ¶
func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBooksRequest ¶
type QueryOrderBooksRequest struct { // status enables to query for order bookds matching a given status. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryOrderBooksRequest is request type for 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 response type for the Query/OrderBooks RPC method
func (*QueryOrderBooksResponse) Descriptor ¶
func (*QueryOrderBooksResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBooksResponse) GetOrderbooks ¶
func (m *QueryOrderBooksResponse) GetOrderbooks() []OrderBook
func (*QueryOrderBooksResponse) GetPagination ¶
func (m *QueryOrderBooksResponse) GetPagination() *query.PageResponse
func (*QueryOrderBooksResponse) Marshal ¶
func (m *QueryOrderBooksResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBooksResponse) MarshalTo ¶
func (m *QueryOrderBooksResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBooksResponse) MarshalToSizedBuffer ¶
func (m *QueryOrderBooksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBooksResponse) ProtoMessage ¶
func (*QueryOrderBooksResponse) ProtoMessage()
func (*QueryOrderBooksResponse) Reset ¶
func (m *QueryOrderBooksResponse) Reset()
func (*QueryOrderBooksResponse) Size ¶
func (m *QueryOrderBooksResponse) Size() (n int)
func (*QueryOrderBooksResponse) String ¶
func (m *QueryOrderBooksResponse) String() string
func (*QueryOrderBooksResponse) Unmarshal ¶
func (m *QueryOrderBooksResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBooksResponse) XXX_DiscardUnknown ¶
func (m *QueryOrderBooksResponse) XXX_DiscardUnknown()
func (*QueryOrderBooksResponse) XXX_Marshal ¶
func (m *QueryOrderBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBooksResponse) XXX_Merge ¶
func (m *QueryOrderBooksResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBooksResponse) XXX_Size ¶
func (m *QueryOrderBooksResponse) XXX_Size() int
func (*QueryOrderBooksResponse) XXX_Unmarshal ¶
func (m *QueryOrderBooksResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method. Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method. Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryParticipationExposureRequest ¶
type QueryParticipationExposureRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParticipationExposureRequest is request type for the Query/ParticipationExposure RPC method
func (*QueryParticipationExposureRequest) Descriptor ¶
func (*QueryParticipationExposureRequest) Descriptor() ([]byte, []int)
func (*QueryParticipationExposureRequest) GetBookUid ¶
func (m *QueryParticipationExposureRequest) GetBookUid() string
func (*QueryParticipationExposureRequest) GetPagination ¶
func (m *QueryParticipationExposureRequest) GetPagination() *query.PageRequest
func (*QueryParticipationExposureRequest) GetParticipationIndex ¶
func (m *QueryParticipationExposureRequest) GetParticipationIndex() uint64
func (*QueryParticipationExposureRequest) Marshal ¶
func (m *QueryParticipationExposureRequest) Marshal() (dAtA []byte, err error)
func (*QueryParticipationExposureRequest) MarshalTo ¶
func (m *QueryParticipationExposureRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParticipationExposureRequest) MarshalToSizedBuffer ¶
func (m *QueryParticipationExposureRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParticipationExposureRequest) ProtoMessage ¶
func (*QueryParticipationExposureRequest) ProtoMessage()
func (*QueryParticipationExposureRequest) Reset ¶
func (m *QueryParticipationExposureRequest) Reset()
func (*QueryParticipationExposureRequest) Size ¶
func (m *QueryParticipationExposureRequest) Size() (n int)
func (*QueryParticipationExposureRequest) String ¶
func (m *QueryParticipationExposureRequest) String() string
func (*QueryParticipationExposureRequest) Unmarshal ¶
func (m *QueryParticipationExposureRequest) Unmarshal(dAtA []byte) error
func (*QueryParticipationExposureRequest) XXX_DiscardUnknown ¶
func (m *QueryParticipationExposureRequest) XXX_DiscardUnknown()
func (*QueryParticipationExposureRequest) XXX_Marshal ¶
func (m *QueryParticipationExposureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParticipationExposureRequest) XXX_Merge ¶
func (m *QueryParticipationExposureRequest) XXX_Merge(src proto.Message)
func (*QueryParticipationExposureRequest) XXX_Size ¶
func (m *QueryParticipationExposureRequest) XXX_Size() int
func (*QueryParticipationExposureRequest) XXX_Unmarshal ¶
func (m *QueryParticipationExposureRequest) XXX_Unmarshal(b []byte) error
type QueryParticipationExposureResponse ¶
type QueryParticipationExposureResponse struct { // book_exposure defines the the book exposure info. ParticipationExposure []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposure,json=participationExposure,proto3" json:"participation_exposure"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParticipationExposureResponse is response type for the Query/ParticipationExposure RPC method
func (*QueryParticipationExposureResponse) Descriptor ¶
func (*QueryParticipationExposureResponse) Descriptor() ([]byte, []int)
func (*QueryParticipationExposureResponse) GetPagination ¶
func (m *QueryParticipationExposureResponse) GetPagination() *query.PageResponse
func (*QueryParticipationExposureResponse) GetParticipationExposure ¶
func (m *QueryParticipationExposureResponse) GetParticipationExposure() []ParticipationExposure
func (*QueryParticipationExposureResponse) Marshal ¶
func (m *QueryParticipationExposureResponse) Marshal() (dAtA []byte, err error)
func (*QueryParticipationExposureResponse) MarshalTo ¶
func (m *QueryParticipationExposureResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParticipationExposureResponse) MarshalToSizedBuffer ¶
func (m *QueryParticipationExposureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParticipationExposureResponse) ProtoMessage ¶
func (*QueryParticipationExposureResponse) ProtoMessage()
func (*QueryParticipationExposureResponse) Reset ¶
func (m *QueryParticipationExposureResponse) Reset()
func (*QueryParticipationExposureResponse) Size ¶
func (m *QueryParticipationExposureResponse) Size() (n int)
func (*QueryParticipationExposureResponse) String ¶
func (m *QueryParticipationExposureResponse) String() string
func (*QueryParticipationExposureResponse) Unmarshal ¶
func (m *QueryParticipationExposureResponse) Unmarshal(dAtA []byte) error
func (*QueryParticipationExposureResponse) XXX_DiscardUnknown ¶
func (m *QueryParticipationExposureResponse) XXX_DiscardUnknown()
func (*QueryParticipationExposureResponse) XXX_Marshal ¶
func (m *QueryParticipationExposureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParticipationExposureResponse) XXX_Merge ¶
func (m *QueryParticipationExposureResponse) XXX_Merge(src proto.Message)
func (*QueryParticipationExposureResponse) XXX_Size ¶
func (m *QueryParticipationExposureResponse) XXX_Size() int
func (*QueryParticipationExposureResponse) XXX_Unmarshal ¶
func (m *QueryParticipationExposureResponse) XXX_Unmarshal(b []byte) error
type QueryParticipationExposuresRequest ¶
type QueryParticipationExposuresRequest struct { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParticipationExposuresRequest is request type for the Query/ParticipationExposures RPC method
func (*QueryParticipationExposuresRequest) Descriptor ¶
func (*QueryParticipationExposuresRequest) Descriptor() ([]byte, []int)
func (*QueryParticipationExposuresRequest) GetBookUid ¶
func (m *QueryParticipationExposuresRequest) GetBookUid() string
func (*QueryParticipationExposuresRequest) GetPagination ¶
func (m *QueryParticipationExposuresRequest) GetPagination() *query.PageRequest
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 { ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParticipationExposuresResponse is 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 { // book_uid defines the book id to query for. BookUid string `protobuf:"bytes,1,opt,name=book_uid,json=bookUid,proto3" json:"book_uid,omitempty"` 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 request type for the Query/ParticipationFulfilledBets RPC method
func (*QueryParticipationFulfilledBetsRequest) Descriptor ¶
func (*QueryParticipationFulfilledBetsRequest) Descriptor() ([]byte, []int)
func (*QueryParticipationFulfilledBetsRequest) GetBookUid ¶
func (m *QueryParticipationFulfilledBetsRequest) GetBookUid() 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 { // book_exposure defines the the book exposure info. 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 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 orderbook info for given order book id. OrderBook(context.Context, *QueryOrderBookRequest) (*QueryOrderBookResponse, error) // BookParticipations queries participation info for given orderbook. BookParticipations(context.Context, *QueryBookParticipationsRequest) (*QueryBookParticipationsResponse, error) // BookParticipation queries participation info for given orderbook and // participation index. BookParticipation(context.Context, *QueryBookParticipationRequest) (*QueryBookParticipationResponse, error) // BookExposures queries exposures info for given orderbook. BookExposures(context.Context, *QueryBookExposuresRequest) (*QueryBookExposuresResponse, error) // BookExposure queries exposure info for given orderbook and odds id. BookExposure(context.Context, *QueryBookExposureRequest) (*QueryBookExposureResponse, error) // ParticipationExposures queries exposures info for given orderbook // participations. ParticipationExposures(context.Context, *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, error) // ParticipationExposure queries exposure info for given orderbook // participation. ParticipationExposure(context.Context, *QueryParticipationExposureRequest) (*QueryParticipationExposureResponse, error) // HistoricalParticipationExposures queries historical exposures info for // given orderbook participation. HistoricalParticipationExposures(context.Context, *QueryHistoricalParticipationExposuresRequest) (*QueryHistoricalParticipationExposuresResponse, error) // ParticipationFulfilledBets queries fulfilled bets for given orderbook // participation. ParticipationFulfilledBets(context.Context, *QueryParticipationFulfilledBetsRequest) (*QueryParticipationFulfilledBetsResponse, error) }
QueryServer is the server API for Query service.
type SportEventKeeper ¶
type SportEventKeeper interface {
GetSportEvent(ctx sdk.Context, sportEventUID string) (val sporteventtypes.SportEvent, found bool)
}
SportEventKeeper defines the expected sport-event keeper methods.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) BookExposure ¶
func (*UnimplementedQueryServer) BookExposure(ctx context.Context, req *QueryBookExposureRequest) (*QueryBookExposureResponse, error)
func (*UnimplementedQueryServer) BookExposures ¶
func (*UnimplementedQueryServer) BookExposures(ctx context.Context, req *QueryBookExposuresRequest) (*QueryBookExposuresResponse, error)
func (*UnimplementedQueryServer) BookParticipation ¶
func (*UnimplementedQueryServer) BookParticipation(ctx context.Context, req *QueryBookParticipationRequest) (*QueryBookParticipationResponse, error)
func (*UnimplementedQueryServer) BookParticipations ¶
func (*UnimplementedQueryServer) BookParticipations(ctx context.Context, req *QueryBookParticipationsRequest) (*QueryBookParticipationsResponse, error)
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) 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) ParticipationExposure ¶
func (*UnimplementedQueryServer) ParticipationExposure(ctx context.Context, req *QueryParticipationExposureRequest) (*QueryParticipationExposureResponse, 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)