Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- 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 DVMKeeper
- type EventBetConstraints
- func (*EventBetConstraints) Descriptor() ([]byte, []int)
- func (m *EventBetConstraints) Marshal() (dAtA []byte, err error)
- func (m *EventBetConstraints) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBetConstraints) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBetConstraints) ProtoMessage()
- func (m *EventBetConstraints) Reset()
- func (m *EventBetConstraints) Size() (n int)
- func (m *EventBetConstraints) String() string
- func (m *EventBetConstraints) Unmarshal(dAtA []byte) error
- func (m *EventBetConstraints) XXX_DiscardUnknown()
- func (m *EventBetConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBetConstraints) XXX_Merge(src proto.Message)
- func (m *EventBetConstraints) XXX_Size() int
- func (m *EventBetConstraints) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSportEventList() []SportEvent
- func (m *GenesisState) GetStats() SportEventStats
- 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 MsgAddSportEvent
- func (*MsgAddSportEvent) Descriptor() ([]byte, []int)
- func (m *MsgAddSportEvent) GetCreator() string
- func (msg *MsgAddSportEvent) GetSignBytes() []byte
- func (msg *MsgAddSportEvent) GetSigners() []sdk.AccAddress
- func (m *MsgAddSportEvent) GetTicket() string
- func (m *MsgAddSportEvent) Marshal() (dAtA []byte, err error)
- func (m *MsgAddSportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddSportEvent) ProtoMessage()
- func (m *MsgAddSportEvent) Reset()
- func (msg *MsgAddSportEvent) Route() string
- func (m *MsgAddSportEvent) Size() (n int)
- func (m *MsgAddSportEvent) String() string
- func (msg *MsgAddSportEvent) Type() string
- func (m *MsgAddSportEvent) Unmarshal(dAtA []byte) error
- func (msg *MsgAddSportEvent) ValidateBasic() error
- func (m *MsgAddSportEvent) XXX_DiscardUnknown()
- func (m *MsgAddSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddSportEvent) XXX_Merge(src proto.Message)
- func (m *MsgAddSportEvent) XXX_Size() int
- func (m *MsgAddSportEvent) XXX_Unmarshal(b []byte) error
- type MsgAddSportEventResponse
- func (*MsgAddSportEventResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddSportEventResponse) GetData() *SportEvent
- func (m *MsgAddSportEventResponse) GetError() string
- func (m *MsgAddSportEventResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddSportEventResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddSportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddSportEventResponse) ProtoMessage()
- func (m *MsgAddSportEventResponse) Reset()
- func (m *MsgAddSportEventResponse) Size() (n int)
- func (m *MsgAddSportEventResponse) String() string
- func (m *MsgAddSportEventResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddSportEventResponse) XXX_DiscardUnknown()
- func (m *MsgAddSportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddSportEventResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddSportEventResponse) XXX_Size() int
- func (m *MsgAddSportEventResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgResolveSportEvent
- func (*MsgResolveSportEvent) Descriptor() ([]byte, []int)
- func (m *MsgResolveSportEvent) GetCreator() string
- func (msg *MsgResolveSportEvent) GetSignBytes() []byte
- func (msg *MsgResolveSportEvent) GetSigners() []sdk.AccAddress
- func (m *MsgResolveSportEvent) GetTicket() string
- func (m *MsgResolveSportEvent) Marshal() (dAtA []byte, err error)
- func (m *MsgResolveSportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgResolveSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgResolveSportEvent) ProtoMessage()
- func (m *MsgResolveSportEvent) Reset()
- func (msg *MsgResolveSportEvent) Route() string
- func (m *MsgResolveSportEvent) Size() (n int)
- func (m *MsgResolveSportEvent) String() string
- func (msg *MsgResolveSportEvent) Type() string
- func (m *MsgResolveSportEvent) Unmarshal(dAtA []byte) error
- func (msg *MsgResolveSportEvent) ValidateBasic() error
- func (m *MsgResolveSportEvent) XXX_DiscardUnknown()
- func (m *MsgResolveSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgResolveSportEvent) XXX_Merge(src proto.Message)
- func (m *MsgResolveSportEvent) XXX_Size() int
- func (m *MsgResolveSportEvent) XXX_Unmarshal(b []byte) error
- type MsgResolveSportEventResponse
- func (*MsgResolveSportEventResponse) Descriptor() ([]byte, []int)
- func (m *MsgResolveSportEventResponse) GetData() *SportEvent
- func (m *MsgResolveSportEventResponse) GetError() string
- func (m *MsgResolveSportEventResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgResolveSportEventResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgResolveSportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgResolveSportEventResponse) ProtoMessage()
- func (m *MsgResolveSportEventResponse) Reset()
- func (m *MsgResolveSportEventResponse) Size() (n int)
- func (m *MsgResolveSportEventResponse) String() string
- func (m *MsgResolveSportEventResponse) Unmarshal(dAtA []byte) error
- func (m *MsgResolveSportEventResponse) XXX_DiscardUnknown()
- func (m *MsgResolveSportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgResolveSportEventResponse) XXX_Merge(src proto.Message)
- func (m *MsgResolveSportEventResponse) XXX_Size() int
- func (m *MsgResolveSportEventResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateSportEvent
- func (*MsgUpdateSportEvent) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSportEvent) GetCreator() string
- func (msg *MsgUpdateSportEvent) GetSignBytes() []byte
- func (msg *MsgUpdateSportEvent) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSportEvent) GetTicket() string
- func (m *MsgUpdateSportEvent) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSportEvent) ProtoMessage()
- func (m *MsgUpdateSportEvent) Reset()
- func (msg *MsgUpdateSportEvent) Route() string
- func (m *MsgUpdateSportEvent) Size() (n int)
- func (m *MsgUpdateSportEvent) String() string
- func (msg *MsgUpdateSportEvent) Type() string
- func (m *MsgUpdateSportEvent) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSportEvent) ValidateBasic() error
- func (m *MsgUpdateSportEvent) XXX_DiscardUnknown()
- func (m *MsgUpdateSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSportEvent) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSportEvent) XXX_Size() int
- func (m *MsgUpdateSportEvent) XXX_Unmarshal(b []byte) error
- type MsgUpdateSportEventResponse
- func (*MsgUpdateSportEventResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSportEventResponse) GetData() *SportEvent
- func (m *MsgUpdateSportEventResponse) GetError() string
- func (m *MsgUpdateSportEventResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSportEventResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSportEventResponse) ProtoMessage()
- func (m *MsgUpdateSportEventResponse) Reset()
- func (m *MsgUpdateSportEventResponse) Size() (n int)
- func (m *MsgUpdateSportEventResponse) String() string
- func (m *MsgUpdateSportEventResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSportEventResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSportEventResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSportEventResponse) XXX_Size() int
- func (m *MsgUpdateSportEventResponse) XXX_Unmarshal(b []byte) error
- type Odds
- func (*Odds) Descriptor() ([]byte, []int)
- func (m *Odds) GetMeta() string
- func (m *Odds) GetUID() string
- func (m *Odds) Marshal() (dAtA []byte, err error)
- func (m *Odds) MarshalTo(dAtA []byte) (int, error)
- func (m *Odds) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Odds) ProtoMessage()
- func (m *Odds) Reset()
- func (m *Odds) Size() (n int)
- func (m *Odds) String() string
- func (m *Odds) Unmarshal(dAtA []byte) error
- func (m *Odds) XXX_DiscardUnknown()
- func (m *Odds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Odds) XXX_Merge(src proto.Message)
- func (m *Odds) XXX_Size() int
- func (m *Odds) XXX_Unmarshal(b []byte) error
- type OrderBookKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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) NewEventBetConstraints(minAmount, betFee sdk.Int) *EventBetConstraints
- 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 QueryClient
- 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 QueryServer
- type QuerySportEventRequest
- func (*QuerySportEventRequest) Descriptor() ([]byte, []int)
- func (m *QuerySportEventRequest) GetUid() string
- func (m *QuerySportEventRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventRequest) ProtoMessage()
- func (m *QuerySportEventRequest) Reset()
- func (m *QuerySportEventRequest) Size() (n int)
- func (m *QuerySportEventRequest) String() string
- func (m *QuerySportEventRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventRequest) XXX_DiscardUnknown()
- func (m *QuerySportEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventRequest) XXX_Merge(src proto.Message)
- func (m *QuerySportEventRequest) XXX_Size() int
- func (m *QuerySportEventRequest) XXX_Unmarshal(b []byte) error
- type QuerySportEventResponse
- func (*QuerySportEventResponse) Descriptor() ([]byte, []int)
- func (m *QuerySportEventResponse) GetSportEvent() SportEvent
- func (m *QuerySportEventResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventResponse) ProtoMessage()
- func (m *QuerySportEventResponse) Reset()
- func (m *QuerySportEventResponse) Size() (n int)
- func (m *QuerySportEventResponse) String() string
- func (m *QuerySportEventResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventResponse) XXX_DiscardUnknown()
- func (m *QuerySportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventResponse) XXX_Merge(src proto.Message)
- func (m *QuerySportEventResponse) XXX_Size() int
- func (m *QuerySportEventResponse) XXX_Unmarshal(b []byte) error
- type QuerySportEventsByUIDsRequest
- func (*QuerySportEventsByUIDsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsByUIDsRequest) GetUids() []string
- func (m *QuerySportEventsByUIDsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsByUIDsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsByUIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsByUIDsRequest) ProtoMessage()
- func (m *QuerySportEventsByUIDsRequest) Reset()
- func (m *QuerySportEventsByUIDsRequest) Size() (n int)
- func (m *QuerySportEventsByUIDsRequest) String() string
- func (m *QuerySportEventsByUIDsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsByUIDsRequest) XXX_DiscardUnknown()
- func (m *QuerySportEventsByUIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsByUIDsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsByUIDsRequest) XXX_Size() int
- func (m *QuerySportEventsByUIDsRequest) XXX_Unmarshal(b []byte) error
- type QuerySportEventsByUIDsResponse
- func (*QuerySportEventsByUIDsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsByUIDsResponse) GetFailedEvents() []string
- func (m *QuerySportEventsByUIDsResponse) GetSportEvents() []SportEvent
- func (m *QuerySportEventsByUIDsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsByUIDsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsByUIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsByUIDsResponse) ProtoMessage()
- func (m *QuerySportEventsByUIDsResponse) Reset()
- func (m *QuerySportEventsByUIDsResponse) Size() (n int)
- func (m *QuerySportEventsByUIDsResponse) String() string
- func (m *QuerySportEventsByUIDsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsByUIDsResponse) XXX_DiscardUnknown()
- func (m *QuerySportEventsByUIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsByUIDsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsByUIDsResponse) XXX_Size() int
- func (m *QuerySportEventsByUIDsResponse) XXX_Unmarshal(b []byte) error
- type QuerySportEventsRequest
- func (*QuerySportEventsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsRequest) GetPagination() *query.PageRequest
- func (m *QuerySportEventsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsRequest) ProtoMessage()
- func (m *QuerySportEventsRequest) Reset()
- func (m *QuerySportEventsRequest) Size() (n int)
- func (m *QuerySportEventsRequest) String() string
- func (m *QuerySportEventsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsRequest) XXX_DiscardUnknown()
- func (m *QuerySportEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsRequest) XXX_Size() int
- func (m *QuerySportEventsRequest) XXX_Unmarshal(b []byte) error
- type QuerySportEventsResponse
- func (*QuerySportEventsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySportEventsResponse) GetPagination() *query.PageResponse
- func (m *QuerySportEventsResponse) GetSportEvent() []SportEvent
- func (m *QuerySportEventsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySportEventsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySportEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySportEventsResponse) ProtoMessage()
- func (m *QuerySportEventsResponse) Reset()
- func (m *QuerySportEventsResponse) Size() (n int)
- func (m *QuerySportEventsResponse) String() string
- func (m *QuerySportEventsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySportEventsResponse) XXX_DiscardUnknown()
- func (m *QuerySportEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySportEventsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySportEventsResponse) XXX_Size() int
- func (m *QuerySportEventsResponse) XXX_Unmarshal(b []byte) error
- type SportEvent
- func (*SportEvent) Descriptor() ([]byte, []int)
- func (m *SportEvent) GetBetConstraints() *EventBetConstraints
- func (m *SportEvent) GetBookUID() string
- func (m *SportEvent) GetCreator() string
- func (m *SportEvent) GetEndTS() uint64
- func (m *SportEvent) GetMeta() string
- func (m *SportEvent) GetOdds() []*Odds
- func (m *SportEvent) GetResolutionTS() uint64
- func (m *SportEvent) GetStartTS() uint64
- func (m *SportEvent) GetStatus() SportEventStatus
- func (m *SportEvent) GetUID() string
- func (m *SportEvent) GetWinnerOddsUIDs() []string
- func (m *SportEvent) Marshal() (dAtA []byte, err error)
- func (m *SportEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEvent) ProtoMessage()
- func (m *SportEvent) Reset()
- func (m *SportEvent) Size() (n int)
- func (m *SportEvent) String() string
- func (m *SportEvent) Unmarshal(dAtA []byte) error
- func (m *SportEvent) XXX_DiscardUnknown()
- func (m *SportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEvent) XXX_Merge(src proto.Message)
- func (m *SportEvent) XXX_Size() int
- func (m *SportEvent) XXX_Unmarshal(b []byte) error
- type SportEventAddTicketPayload
- func (*SportEventAddTicketPayload) Descriptor() ([]byte, []int)
- func (m *SportEventAddTicketPayload) GetCreator() string
- func (m *SportEventAddTicketPayload) GetEndTS() uint64
- func (m *SportEventAddTicketPayload) GetMeta() string
- func (m *SportEventAddTicketPayload) GetOdds() []*Odds
- func (m *SportEventAddTicketPayload) GetStartTS() uint64
- func (m *SportEventAddTicketPayload) GetStatus() SportEventStatus
- func (m *SportEventAddTicketPayload) GetUID() string
- func (m *SportEventAddTicketPayload) Marshal() (dAtA []byte, err error)
- func (m *SportEventAddTicketPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEventAddTicketPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEventAddTicketPayload) ProtoMessage()
- func (m *SportEventAddTicketPayload) Reset()
- func (m *SportEventAddTicketPayload) Size() (n int)
- func (m *SportEventAddTicketPayload) String() string
- func (m *SportEventAddTicketPayload) Unmarshal(dAtA []byte) error
- func (payload *SportEventAddTicketPayload) Validate(ctx sdk.Context, p *Params) error
- func (m *SportEventAddTicketPayload) XXX_DiscardUnknown()
- func (m *SportEventAddTicketPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEventAddTicketPayload) XXX_Merge(src proto.Message)
- func (m *SportEventAddTicketPayload) XXX_Size() int
- func (m *SportEventAddTicketPayload) XXX_Unmarshal(b []byte) error
- type SportEventResolutionTicketPayload
- func (*SportEventResolutionTicketPayload) Descriptor() ([]byte, []int)
- func (m *SportEventResolutionTicketPayload) GetResolutionTS() uint64
- func (m *SportEventResolutionTicketPayload) GetStatus() SportEventStatus
- func (m *SportEventResolutionTicketPayload) GetUID() string
- func (m *SportEventResolutionTicketPayload) GetWinnerOddsUIDs() []string
- func (m *SportEventResolutionTicketPayload) Marshal() (dAtA []byte, err error)
- func (m *SportEventResolutionTicketPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEventResolutionTicketPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEventResolutionTicketPayload) ProtoMessage()
- func (m *SportEventResolutionTicketPayload) Reset()
- func (m *SportEventResolutionTicketPayload) Size() (n int)
- func (m *SportEventResolutionTicketPayload) String() string
- func (m *SportEventResolutionTicketPayload) Unmarshal(dAtA []byte) error
- func (payload *SportEventResolutionTicketPayload) Validate() error
- func (m *SportEventResolutionTicketPayload) XXX_DiscardUnknown()
- func (m *SportEventResolutionTicketPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEventResolutionTicketPayload) XXX_Merge(src proto.Message)
- func (m *SportEventResolutionTicketPayload) XXX_Size() int
- func (m *SportEventResolutionTicketPayload) XXX_Unmarshal(b []byte) error
- type SportEventStats
- func (*SportEventStats) Descriptor() ([]byte, []int)
- func (m *SportEventStats) GetResolvedUnsettled() []string
- func (m *SportEventStats) Marshal() (dAtA []byte, err error)
- func (m *SportEventStats) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEventStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEventStats) ProtoMessage()
- func (m *SportEventStats) Reset()
- func (m *SportEventStats) Size() (n int)
- func (m *SportEventStats) String() string
- func (m *SportEventStats) Unmarshal(dAtA []byte) error
- func (m *SportEventStats) XXX_DiscardUnknown()
- func (m *SportEventStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEventStats) XXX_Merge(src proto.Message)
- func (m *SportEventStats) XXX_Size() int
- func (m *SportEventStats) XXX_Unmarshal(b []byte) error
- type SportEventStatus
- type SportEventUpdateTicketPayload
- func (*SportEventUpdateTicketPayload) Descriptor() ([]byte, []int)
- func (m *SportEventUpdateTicketPayload) GetEndTS() uint64
- func (m *SportEventUpdateTicketPayload) GetStartTS() uint64
- func (m *SportEventUpdateTicketPayload) GetStatus() SportEventStatus
- func (m *SportEventUpdateTicketPayload) GetUID() string
- func (m *SportEventUpdateTicketPayload) Marshal() (dAtA []byte, err error)
- func (m *SportEventUpdateTicketPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SportEventUpdateTicketPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SportEventUpdateTicketPayload) ProtoMessage()
- func (m *SportEventUpdateTicketPayload) Reset()
- func (m *SportEventUpdateTicketPayload) Size() (n int)
- func (m *SportEventUpdateTicketPayload) String() string
- func (m *SportEventUpdateTicketPayload) Unmarshal(dAtA []byte) error
- func (payload *SportEventUpdateTicketPayload) Validate(ctx sdk.Context, p *Params) error
- func (m *SportEventUpdateTicketPayload) XXX_DiscardUnknown()
- func (m *SportEventUpdateTicketPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SportEventUpdateTicketPayload) XXX_Merge(src proto.Message)
- func (m *SportEventUpdateTicketPayload) XXX_Size() int
- func (m *SportEventUpdateTicketPayload) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddSportEvent(ctx context.Context, req *MsgAddSportEvent) (*MsgAddSportEventResponse, error)
- func (*UnimplementedMsgServer) ResolveSportEvent(ctx context.Context, req *MsgResolveSportEvent) (*MsgResolveSportEventResponse, error)
- func (*UnimplementedMsgServer) UpdateSportEvent(ctx context.Context, req *MsgUpdateSportEvent) (*MsgUpdateSportEventResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) SportEvent(ctx context.Context, req *QuerySportEventRequest) (*QuerySportEventResponse, error)
- func (*UnimplementedQueryServer) SportEvents(ctx context.Context, req *QuerySportEventsRequest) (*QuerySportEventsResponse, error)
- func (*UnimplementedQueryServer) SportEventsByUIDs(ctx context.Context, req *QuerySportEventsByUIDsRequest) (*QuerySportEventsByUIDsResponse, error)
Constants ¶
const ( AttributeKeyEventsCreator = "events_creator" AttributeKeySportEventsSuccessUID = "sport_events_success_uid" AttributeKeyOrderBookUID = "sport_events_book_uid" AttributeKeySportEventsFailedUID = "sport_events_failed_uid" // AttributeValueCategory is the event attribute for category as module name AttributeValueCategory = ModuleName )
const ( TypeMsgCreateSportEvents = "create_sport_events" TypeMsgUpdateSportEvents = "update_sport_events" TypeMsgResolveSportEvents = "resolve_sport_events" )
const ( // ModuleName defines the module name ModuleName = "sportevent" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_sportevent" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
// MaxAllowedCharactersForMeta is maximum allowed characters count for sport-event and odds metadata
MaxAllowedCharactersForMeta = 256
)
Variables ¶
var ( // Amino is the legacy amino codec Amino = codec.NewLegacyAmino() // ModuleCdc is the codec of the module ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInMarshaling = sdkerrors.Register(ModuleName, 1001, "internal error in marshaling") ErrInUnmarshaling = sdkerrors.Register(ModuleName, 1002, "internal error in unmarshaling") ErrNoMatchingSportEvent = sdkerrors.Register(ModuleName, 1003, "sport-event not found") ErrEmptySportEventUIDs = sdkerrors.Register(ModuleName, 1004, "sport-event UID(s) must be provided") ErrCanNotBeAltered = sdkerrors.Register(ModuleName, 1006, "event cannot be altered if it is active or inactive") ErrEventAlreadyExist = sdkerrors.Register(ModuleName, 1007, "event already exist") ErrEventNotFound = sdkerrors.Register(ModuleName, 1008, "event not found") ErrEventIsNotActiveOrInactive = sdkerrors.Register(ModuleName, 1009, "event cannot be resolved as status is not active or inactive") ErrInvalidWinnerOdds = sdkerrors.Register(ModuleName, 1010, "the provided winner odds does not exist in the event odds") ErrInVerification = sdkerrors.Register(ModuleName, 1012, "error in verification process") ErrResolutionTimeLessTnStart = sdkerrors.Register(ModuleName, 1013, "resolution time cannot be less than event start time") ErrDuplicateEventsExist = sdkerrors.Register(ModuleName, 1014, "duplicate events provided") ErrOddsStatsNotFound = sdkerrors.Register(ModuleName, 1015, "odds stats not found") ErrInOrderBookInitiation = sdkerrors.Register(ModuleName, 1016, "error in order book initiation") )
x/sportevent module sentinel errors
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 ( // SportEventKeyPrefix is the prefix to retrieve all SportEvent SportEventKeyPrefix = []byte{0x00} // SportEventStatsKey is the key for the sport-event statistics SportEventStatsKey = []byte{0x01} )
var ( ErrInvalidLengthOdds = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOdds = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOdds = fmt.Errorf("proto: unexpected end of group") )
var ( // KeyEventMinBetAmount is the min bet amount param key KeyEventMinBetAmount = []byte("EventMinBetAmount") // KeyMinBetFee is the minimum bet fee param key KeyMinBetFee = []byte("EventMinBetFee") // KeyMaxSRContribution is the min bet amount param key KeyMaxSRContribution = []byte("EventMaxSRContribution") )
param keys
var ( // DefaultMinBetAmount is the default minimum bet amount allowed DefaultMinBetAmount = sdk.NewInt(1000000) // DefaultMaxSRContribution is the default maximum sr contribution allowed DefaultMaxSRContribution = sdk.NewInt(10000000) // DefaultMinBetFee is the default minimum bet fee amount allowed DefaultMinBetFee = sdk.NewInt(0) )
default params
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSportEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSportEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSportEvent = 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 ( ErrInvalidLengthTicket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTicket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTicket = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var SportEventStatus_name = map[int32]string{
0: "SPORT_EVENT_STATUS_UNSPECIFIED",
1: "SPORT_EVENT_STATUS_ACTIVE",
2: "SPORT_EVENT_STATUS_INACTIVE",
3: "SPORT_EVENT_STATUS_CANCELED",
4: "SPORT_EVENT_STATUS_ABORTED",
5: "SPORT_EVENT_STATUS_RESULT_DECLARED",
}
var SportEventStatus_value = map[string]int32{
"SPORT_EVENT_STATUS_UNSPECIFIED": 0,
"SPORT_EVENT_STATUS_ACTIVE": 1,
"SPORT_EVENT_STATUS_INACTIVE": 2,
"SPORT_EVENT_STATUS_CANCELED": 3,
"SPORT_EVENT_STATUS_ABORTED": 4,
"SPORT_EVENT_STATUS_RESULT_DECLARED": 5,
}
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
RegisterCodec registers module codec to the app codec
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module interface types
func RegisterMsgServer ¶
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 ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type DVMKeeper ¶
type DVMKeeper interface {
VerifyTicketUnmarshal(goCtx context.Context, ticket string, clm interface{}) error
}
DVMKeeper defines the expected interface needed to verify ticket and unmarshal it
type EventBetConstraints ¶
type EventBetConstraints struct { // min_amount is the minimum allowed bet amount for a sport-event. MinAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ // bet_fee is the fee that thebettor needs to pay to bet on the sport-event. BetFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bet_fee,json=betFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bet_fee"` }
Bet constraints parent group for a sport-event
func (*EventBetConstraints) Descriptor ¶
func (*EventBetConstraints) Descriptor() ([]byte, []int)
func (*EventBetConstraints) Marshal ¶
func (m *EventBetConstraints) Marshal() (dAtA []byte, err error)
func (*EventBetConstraints) MarshalTo ¶
func (m *EventBetConstraints) MarshalTo(dAtA []byte) (int, error)
func (*EventBetConstraints) MarshalToSizedBuffer ¶
func (m *EventBetConstraints) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBetConstraints) ProtoMessage ¶
func (*EventBetConstraints) ProtoMessage()
func (*EventBetConstraints) Reset ¶
func (m *EventBetConstraints) Reset()
func (*EventBetConstraints) Size ¶
func (m *EventBetConstraints) Size() (n int)
func (*EventBetConstraints) String ¶
func (m *EventBetConstraints) String() string
func (*EventBetConstraints) Unmarshal ¶
func (m *EventBetConstraints) Unmarshal(dAtA []byte) error
func (*EventBetConstraints) XXX_DiscardUnknown ¶
func (m *EventBetConstraints) XXX_DiscardUnknown()
func (*EventBetConstraints) XXX_Marshal ¶
func (m *EventBetConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBetConstraints) XXX_Merge ¶
func (m *EventBetConstraints) XXX_Merge(src proto.Message)
func (*EventBetConstraints) XXX_Size ¶
func (m *EventBetConstraints) XXX_Size() int
func (*EventBetConstraints) XXX_Unmarshal ¶
func (m *EventBetConstraints) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params are the parameters of sport-event module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // sport_event_list is the list of sport-events that are available in the // chain init. SportEventList []SportEvent `protobuf:"bytes,2,rep,name=sport_event_list,json=sportEventList,proto3" json:"sport_event_list"` // stats is the statistics of the sport-events Stats SportEventStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats"` }
GenesisState defines the sport-event 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) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSportEventList ¶
func (m *GenesisState) GetSportEventList() []SportEvent
func (*GenesisState) GetStats ¶
func (m *GenesisState) GetStats() SportEventStats
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 MsgAddSportEvent ¶
type MsgAddSportEvent struct { // creator is the address of the creator account of sport-event. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // ticket is the jwt ticket data. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgAddSportEvent is the message type for adding sport-event into the state.
func NewMsgAddEvent ¶
func NewMsgAddEvent(creator string, ticket string) *MsgAddSportEvent
NewMsgAddEvent creates the new input for adding an event to blockchain
func (*MsgAddSportEvent) Descriptor ¶
func (*MsgAddSportEvent) Descriptor() ([]byte, []int)
func (*MsgAddSportEvent) GetCreator ¶
func (m *MsgAddSportEvent) GetCreator() string
func (*MsgAddSportEvent) GetSignBytes ¶
func (msg *MsgAddSportEvent) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgAddSportEvent) GetSigners ¶
func (msg *MsgAddSportEvent) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgAddSportEvent) GetTicket ¶
func (m *MsgAddSportEvent) GetTicket() string
func (*MsgAddSportEvent) Marshal ¶
func (m *MsgAddSportEvent) Marshal() (dAtA []byte, err error)
func (*MsgAddSportEvent) MarshalToSizedBuffer ¶
func (m *MsgAddSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddSportEvent) ProtoMessage ¶
func (*MsgAddSportEvent) ProtoMessage()
func (*MsgAddSportEvent) Reset ¶
func (m *MsgAddSportEvent) Reset()
func (*MsgAddSportEvent) Route ¶
func (msg *MsgAddSportEvent) Route() string
Route return the message route for slashing
func (*MsgAddSportEvent) Size ¶
func (m *MsgAddSportEvent) Size() (n int)
func (*MsgAddSportEvent) String ¶
func (m *MsgAddSportEvent) String() string
func (*MsgAddSportEvent) Type ¶
func (msg *MsgAddSportEvent) Type() string
Type returns the msg add event type
func (*MsgAddSportEvent) Unmarshal ¶
func (m *MsgAddSportEvent) Unmarshal(dAtA []byte) error
func (*MsgAddSportEvent) ValidateBasic ¶
func (msg *MsgAddSportEvent) ValidateBasic() error
ValidateBasic validates the input creation event
func (*MsgAddSportEvent) XXX_DiscardUnknown ¶
func (m *MsgAddSportEvent) XXX_DiscardUnknown()
func (*MsgAddSportEvent) XXX_Marshal ¶
func (m *MsgAddSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddSportEvent) XXX_Merge ¶
func (m *MsgAddSportEvent) XXX_Merge(src proto.Message)
func (*MsgAddSportEvent) XXX_Size ¶
func (m *MsgAddSportEvent) XXX_Size() int
func (*MsgAddSportEvent) XXX_Unmarshal ¶
func (m *MsgAddSportEvent) XXX_Unmarshal(b []byte) error
type MsgAddSportEventResponse ¶
type MsgAddSportEventResponse struct { // error contains an error if adding a sport-event faces any issues. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // data is the data of sport-event. Data *SportEvent `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
MsgAddSportEventResponse response for adding sport-event.
func (*MsgAddSportEventResponse) Descriptor ¶
func (*MsgAddSportEventResponse) Descriptor() ([]byte, []int)
func (*MsgAddSportEventResponse) GetData ¶
func (m *MsgAddSportEventResponse) GetData() *SportEvent
func (*MsgAddSportEventResponse) GetError ¶
func (m *MsgAddSportEventResponse) GetError() string
func (*MsgAddSportEventResponse) Marshal ¶
func (m *MsgAddSportEventResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddSportEventResponse) MarshalTo ¶
func (m *MsgAddSportEventResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddSportEventResponse) MarshalToSizedBuffer ¶
func (m *MsgAddSportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddSportEventResponse) ProtoMessage ¶
func (*MsgAddSportEventResponse) ProtoMessage()
func (*MsgAddSportEventResponse) Reset ¶
func (m *MsgAddSportEventResponse) Reset()
func (*MsgAddSportEventResponse) Size ¶
func (m *MsgAddSportEventResponse) Size() (n int)
func (*MsgAddSportEventResponse) String ¶
func (m *MsgAddSportEventResponse) String() string
func (*MsgAddSportEventResponse) Unmarshal ¶
func (m *MsgAddSportEventResponse) Unmarshal(dAtA []byte) error
func (*MsgAddSportEventResponse) XXX_DiscardUnknown ¶
func (m *MsgAddSportEventResponse) XXX_DiscardUnknown()
func (*MsgAddSportEventResponse) XXX_Marshal ¶
func (m *MsgAddSportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddSportEventResponse) XXX_Merge ¶
func (m *MsgAddSportEventResponse) XXX_Merge(src proto.Message)
func (*MsgAddSportEventResponse) XXX_Size ¶
func (m *MsgAddSportEventResponse) XXX_Size() int
func (*MsgAddSportEventResponse) XXX_Unmarshal ¶
func (m *MsgAddSportEventResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // AddSportEvent defines a method to add sport-event with the given data. AddSportEvent(ctx context.Context, in *MsgAddSportEvent, opts ...grpc.CallOption) (*MsgAddSportEventResponse, error) // ResolveSportEvent defines a method to resolve sport-event. ResolveSportEvent(ctx context.Context, in *MsgResolveSportEvent, opts ...grpc.CallOption) (*MsgResolveSportEventResponse, error) // UpdateSportEvent defines a method to update a sport-event. UpdateSportEvent(ctx context.Context, in *MsgUpdateSportEvent, opts ...grpc.CallOption) (*MsgUpdateSportEventResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgResolveSportEvent ¶
type MsgResolveSportEvent struct { // creator is the address of the creator account of sport-event. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // ticket is the jwt ticket data. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgResolveSportEvent is the message type for resolving a sport-event.
func NewMsgResolveEvent ¶
func NewMsgResolveEvent(creator, ticket string) *MsgResolveSportEvent
NewMsgResolveEvent accepts the params to create new resolution body
func (*MsgResolveSportEvent) Descriptor ¶
func (*MsgResolveSportEvent) Descriptor() ([]byte, []int)
func (*MsgResolveSportEvent) GetCreator ¶
func (m *MsgResolveSportEvent) GetCreator() string
func (*MsgResolveSportEvent) GetSignBytes ¶
func (msg *MsgResolveSportEvent) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgResolveSportEvent) GetSigners ¶
func (msg *MsgResolveSportEvent) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgResolveSportEvent) GetTicket ¶
func (m *MsgResolveSportEvent) GetTicket() string
func (*MsgResolveSportEvent) Marshal ¶
func (m *MsgResolveSportEvent) Marshal() (dAtA []byte, err error)
func (*MsgResolveSportEvent) MarshalTo ¶
func (m *MsgResolveSportEvent) MarshalTo(dAtA []byte) (int, error)
func (*MsgResolveSportEvent) MarshalToSizedBuffer ¶
func (m *MsgResolveSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgResolveSportEvent) ProtoMessage ¶
func (*MsgResolveSportEvent) ProtoMessage()
func (*MsgResolveSportEvent) Reset ¶
func (m *MsgResolveSportEvent) Reset()
func (*MsgResolveSportEvent) Route ¶
func (msg *MsgResolveSportEvent) Route() string
Route return the message route for slashing
func (*MsgResolveSportEvent) Size ¶
func (m *MsgResolveSportEvent) Size() (n int)
func (*MsgResolveSportEvent) String ¶
func (m *MsgResolveSportEvent) String() string
func (*MsgResolveSportEvent) Type ¶
func (msg *MsgResolveSportEvent) Type() string
Type return the resolve event type
func (*MsgResolveSportEvent) Unmarshal ¶
func (m *MsgResolveSportEvent) Unmarshal(dAtA []byte) error
func (*MsgResolveSportEvent) ValidateBasic ¶
func (msg *MsgResolveSportEvent) ValidateBasic() error
ValidateBasic validates the input resolution event
func (*MsgResolveSportEvent) XXX_DiscardUnknown ¶
func (m *MsgResolveSportEvent) XXX_DiscardUnknown()
func (*MsgResolveSportEvent) XXX_Marshal ¶
func (m *MsgResolveSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgResolveSportEvent) XXX_Merge ¶
func (m *MsgResolveSportEvent) XXX_Merge(src proto.Message)
func (*MsgResolveSportEvent) XXX_Size ¶
func (m *MsgResolveSportEvent) XXX_Size() int
func (*MsgResolveSportEvent) XXX_Unmarshal ¶
func (m *MsgResolveSportEvent) XXX_Unmarshal(b []byte) error
type MsgResolveSportEventResponse ¶
type MsgResolveSportEventResponse struct { // error contains an error if adding a sport-event faces any issues. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // data is the data of sport-event. Data *SportEvent `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
MsgResolveSportEventResponse response for resolving a sport-event.
func (*MsgResolveSportEventResponse) Descriptor ¶
func (*MsgResolveSportEventResponse) Descriptor() ([]byte, []int)
func (*MsgResolveSportEventResponse) GetData ¶
func (m *MsgResolveSportEventResponse) GetData() *SportEvent
func (*MsgResolveSportEventResponse) GetError ¶
func (m *MsgResolveSportEventResponse) GetError() string
func (*MsgResolveSportEventResponse) Marshal ¶
func (m *MsgResolveSportEventResponse) Marshal() (dAtA []byte, err error)
func (*MsgResolveSportEventResponse) MarshalTo ¶
func (m *MsgResolveSportEventResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgResolveSportEventResponse) MarshalToSizedBuffer ¶
func (m *MsgResolveSportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgResolveSportEventResponse) ProtoMessage ¶
func (*MsgResolveSportEventResponse) ProtoMessage()
func (*MsgResolveSportEventResponse) Reset ¶
func (m *MsgResolveSportEventResponse) Reset()
func (*MsgResolveSportEventResponse) Size ¶
func (m *MsgResolveSportEventResponse) Size() (n int)
func (*MsgResolveSportEventResponse) String ¶
func (m *MsgResolveSportEventResponse) String() string
func (*MsgResolveSportEventResponse) Unmarshal ¶
func (m *MsgResolveSportEventResponse) Unmarshal(dAtA []byte) error
func (*MsgResolveSportEventResponse) XXX_DiscardUnknown ¶
func (m *MsgResolveSportEventResponse) XXX_DiscardUnknown()
func (*MsgResolveSportEventResponse) XXX_Marshal ¶
func (m *MsgResolveSportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgResolveSportEventResponse) XXX_Merge ¶
func (m *MsgResolveSportEventResponse) XXX_Merge(src proto.Message)
func (*MsgResolveSportEventResponse) XXX_Size ¶
func (m *MsgResolveSportEventResponse) XXX_Size() int
func (*MsgResolveSportEventResponse) XXX_Unmarshal ¶
func (m *MsgResolveSportEventResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // AddSportEvent defines a method to add sport-event with the given data. AddSportEvent(context.Context, *MsgAddSportEvent) (*MsgAddSportEventResponse, error) // ResolveSportEvent defines a method to resolve sport-event. ResolveSportEvent(context.Context, *MsgResolveSportEvent) (*MsgResolveSportEventResponse, error) // UpdateSportEvent defines a method to update a sport-event. UpdateSportEvent(context.Context, *MsgUpdateSportEvent) (*MsgUpdateSportEventResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateSportEvent ¶
type MsgUpdateSportEvent struct { // creator is the address of the creator account of sport-event. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // ticket is the jwt ticket data. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgUpdateSportEvent is the message type for updating sport-event data. in the state
func NewMsgUpdateEvent ¶
func NewMsgUpdateEvent(creator, ticket string) *MsgUpdateSportEvent
NewMsgUpdateEvent accepts the params to create new update body
func (*MsgUpdateSportEvent) Descriptor ¶
func (*MsgUpdateSportEvent) Descriptor() ([]byte, []int)
func (*MsgUpdateSportEvent) GetCreator ¶
func (m *MsgUpdateSportEvent) GetCreator() string
func (*MsgUpdateSportEvent) GetSignBytes ¶
func (msg *MsgUpdateSportEvent) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgUpdateSportEvent) GetSigners ¶
func (msg *MsgUpdateSportEvent) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgUpdateSportEvent) GetTicket ¶
func (m *MsgUpdateSportEvent) GetTicket() string
func (*MsgUpdateSportEvent) Marshal ¶
func (m *MsgUpdateSportEvent) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSportEvent) MarshalTo ¶
func (m *MsgUpdateSportEvent) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSportEvent) MarshalToSizedBuffer ¶
func (m *MsgUpdateSportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSportEvent) ProtoMessage ¶
func (*MsgUpdateSportEvent) ProtoMessage()
func (*MsgUpdateSportEvent) Reset ¶
func (m *MsgUpdateSportEvent) Reset()
func (*MsgUpdateSportEvent) Route ¶
func (msg *MsgUpdateSportEvent) Route() string
Route return the message route for slashing
func (*MsgUpdateSportEvent) Size ¶
func (m *MsgUpdateSportEvent) Size() (n int)
func (*MsgUpdateSportEvent) String ¶
func (m *MsgUpdateSportEvent) String() string
func (*MsgUpdateSportEvent) Type ¶
func (msg *MsgUpdateSportEvent) Type() string
Type return the update event type
func (*MsgUpdateSportEvent) Unmarshal ¶
func (m *MsgUpdateSportEvent) Unmarshal(dAtA []byte) error
func (*MsgUpdateSportEvent) ValidateBasic ¶
func (msg *MsgUpdateSportEvent) ValidateBasic() error
ValidateBasic validates the input update event
func (*MsgUpdateSportEvent) XXX_DiscardUnknown ¶
func (m *MsgUpdateSportEvent) XXX_DiscardUnknown()
func (*MsgUpdateSportEvent) XXX_Marshal ¶
func (m *MsgUpdateSportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSportEvent) XXX_Merge ¶
func (m *MsgUpdateSportEvent) XXX_Merge(src proto.Message)
func (*MsgUpdateSportEvent) XXX_Size ¶
func (m *MsgUpdateSportEvent) XXX_Size() int
func (*MsgUpdateSportEvent) XXX_Unmarshal ¶
func (m *MsgUpdateSportEvent) XXX_Unmarshal(b []byte) error
type MsgUpdateSportEventResponse ¶
type MsgUpdateSportEventResponse struct { // error contains an error if adding a sport-event faces any issues. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // data is the data of sport-event Data *SportEvent `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
MsgUpdateSportEventResponse response for updating a sport-event.
func (*MsgUpdateSportEventResponse) Descriptor ¶
func (*MsgUpdateSportEventResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSportEventResponse) GetData ¶
func (m *MsgUpdateSportEventResponse) GetData() *SportEvent
func (*MsgUpdateSportEventResponse) GetError ¶
func (m *MsgUpdateSportEventResponse) GetError() string
func (*MsgUpdateSportEventResponse) Marshal ¶
func (m *MsgUpdateSportEventResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSportEventResponse) MarshalTo ¶
func (m *MsgUpdateSportEventResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSportEventResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateSportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSportEventResponse) ProtoMessage ¶
func (*MsgUpdateSportEventResponse) ProtoMessage()
func (*MsgUpdateSportEventResponse) Reset ¶
func (m *MsgUpdateSportEventResponse) Reset()
func (*MsgUpdateSportEventResponse) Size ¶
func (m *MsgUpdateSportEventResponse) Size() (n int)
func (*MsgUpdateSportEventResponse) String ¶
func (m *MsgUpdateSportEventResponse) String() string
func (*MsgUpdateSportEventResponse) Unmarshal ¶
func (m *MsgUpdateSportEventResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSportEventResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateSportEventResponse) XXX_DiscardUnknown()
func (*MsgUpdateSportEventResponse) XXX_Marshal ¶
func (m *MsgUpdateSportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSportEventResponse) XXX_Merge ¶
func (m *MsgUpdateSportEventResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSportEventResponse) XXX_Size ¶
func (m *MsgUpdateSportEventResponse) XXX_Size() int
func (*MsgUpdateSportEventResponse) XXX_Unmarshal ¶
func (m *MsgUpdateSportEventResponse) XXX_Unmarshal(b []byte) error
type Odds ¶
type Odds struct { // uid is the universal unique identifier of the odds. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // meta contains any human-readable metadata of the odds. Meta string `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` }
Odds is a representation of and sport-event odds items.
func (*Odds) Descriptor ¶
func (*Odds) ProtoMessage ¶
func (*Odds) ProtoMessage()
func (*Odds) XXX_DiscardUnknown ¶
func (m *Odds) XXX_DiscardUnknown()
func (*Odds) XXX_Unmarshal ¶
type OrderBookKeeper ¶
type OrderBookKeeper interface {
InitiateBook(ctx sdk.Context, sportEventUID string, srContribution sdk.Int, oddsUIDs []string) error
}
OrderBookKeeper defines the expected interface needed to initiate an order book for a sport event
type Params ¶
type Params struct { // event_min_bet_amount default minimum bet amount for a sport-event. EventMinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 184-byte string literal not displayed */ // event_min_bet_fee default minimum bet fee for a sport-event. EventMinBetFee github_com_cosmos_cosmos_sdk_types.Int `` /* 172-byte string literal not displayed */ // event_max_sr_contribution default max sr contribution for a sport-event. EventMaxSrContribution github_com_cosmos_cosmos_sdk_types.Int `` /* 204-byte string literal not displayed */ }
Params defines the parameters for the module. contains bet constraints associated to a sport-event.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) NewEventBetConstraints ¶
func (p *Params) NewEventBetConstraints(minAmount, betFee sdk.Int) *EventBetConstraints
NewEventBetConstraints creates new bet constraint pointer
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the 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 QueryClient ¶
type QueryClient interface { // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a SportEvent by uid. SportEvent(ctx context.Context, in *QuerySportEventRequest, opts ...grpc.CallOption) (*QuerySportEventResponse, error) // Queries a list of SportEvent items. SportEvents(ctx context.Context, in *QuerySportEventsRequest, opts ...grpc.CallOption) (*QuerySportEventsResponse, error) // Queries a list of SportEventsByUIDs items. SportEventsByUIDs(ctx context.Context, in *QuerySportEventsByUIDsRequest, opts ...grpc.CallOption) (*QuerySportEventsByUIDsResponse, 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 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 hold 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 QueryServer ¶
type QueryServer interface { // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a SportEvent by uid. SportEvent(context.Context, *QuerySportEventRequest) (*QuerySportEventResponse, error) // Queries a list of SportEvent items. SportEvents(context.Context, *QuerySportEventsRequest) (*QuerySportEventsResponse, error) // Queries a list of SportEventsByUIDs items. SportEventsByUIDs(context.Context, *QuerySportEventsByUIDsRequest) (*QuerySportEventsByUIDsResponse, error) }
QueryServer is the server API for Query service.
type QuerySportEventRequest ¶
type QuerySportEventRequest struct {
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
}
QuerySportEventRequest is the request type for the Query/{uid} RPC method. Query/SportEvent RPC method.
func (*QuerySportEventRequest) Descriptor ¶
func (*QuerySportEventRequest) Descriptor() ([]byte, []int)
func (*QuerySportEventRequest) GetUid ¶
func (m *QuerySportEventRequest) GetUid() string
func (*QuerySportEventRequest) Marshal ¶
func (m *QuerySportEventRequest) Marshal() (dAtA []byte, err error)
func (*QuerySportEventRequest) MarshalTo ¶
func (m *QuerySportEventRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventRequest) MarshalToSizedBuffer ¶
func (m *QuerySportEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventRequest) ProtoMessage ¶
func (*QuerySportEventRequest) ProtoMessage()
func (*QuerySportEventRequest) Reset ¶
func (m *QuerySportEventRequest) Reset()
func (*QuerySportEventRequest) Size ¶
func (m *QuerySportEventRequest) Size() (n int)
func (*QuerySportEventRequest) String ¶
func (m *QuerySportEventRequest) String() string
func (*QuerySportEventRequest) Unmarshal ¶
func (m *QuerySportEventRequest) Unmarshal(dAtA []byte) error
func (*QuerySportEventRequest) XXX_DiscardUnknown ¶
func (m *QuerySportEventRequest) XXX_DiscardUnknown()
func (*QuerySportEventRequest) XXX_Marshal ¶
func (m *QuerySportEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventRequest) XXX_Merge ¶
func (m *QuerySportEventRequest) XXX_Merge(src proto.Message)
func (*QuerySportEventRequest) XXX_Size ¶
func (m *QuerySportEventRequest) XXX_Size() int
func (*QuerySportEventRequest) XXX_Unmarshal ¶
func (m *QuerySportEventRequest) XXX_Unmarshal(b []byte) error
type QuerySportEventResponse ¶
type QuerySportEventResponse struct {
SportEvent SportEvent `protobuf:"bytes,1,opt,name=sport_event,json=sportEvent,proto3" json:"sport_event"`
}
QuerySportEventRequest is the response type for the Query/{uid} RPC method. Query/SportEvent RPC method.
func (*QuerySportEventResponse) Descriptor ¶
func (*QuerySportEventResponse) Descriptor() ([]byte, []int)
func (*QuerySportEventResponse) GetSportEvent ¶
func (m *QuerySportEventResponse) GetSportEvent() SportEvent
func (*QuerySportEventResponse) Marshal ¶
func (m *QuerySportEventResponse) Marshal() (dAtA []byte, err error)
func (*QuerySportEventResponse) MarshalTo ¶
func (m *QuerySportEventResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventResponse) MarshalToSizedBuffer ¶
func (m *QuerySportEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventResponse) ProtoMessage ¶
func (*QuerySportEventResponse) ProtoMessage()
func (*QuerySportEventResponse) Reset ¶
func (m *QuerySportEventResponse) Reset()
func (*QuerySportEventResponse) Size ¶
func (m *QuerySportEventResponse) Size() (n int)
func (*QuerySportEventResponse) String ¶
func (m *QuerySportEventResponse) String() string
func (*QuerySportEventResponse) Unmarshal ¶
func (m *QuerySportEventResponse) Unmarshal(dAtA []byte) error
func (*QuerySportEventResponse) XXX_DiscardUnknown ¶
func (m *QuerySportEventResponse) XXX_DiscardUnknown()
func (*QuerySportEventResponse) XXX_Marshal ¶
func (m *QuerySportEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventResponse) XXX_Merge ¶
func (m *QuerySportEventResponse) XXX_Merge(src proto.Message)
func (*QuerySportEventResponse) XXX_Size ¶
func (m *QuerySportEventResponse) XXX_Size() int
func (*QuerySportEventResponse) XXX_Unmarshal ¶
func (m *QuerySportEventResponse) XXX_Unmarshal(b []byte) error
type QuerySportEventsByUIDsRequest ¶
type QuerySportEventsByUIDsRequest struct {
Uids []string `protobuf:"bytes,1,rep,name=uids,proto3" json:"uids"`
}
QuerySportEventsByUIDsRequest is the request type for the Query/sposport_events_by_uids RPC method. Query/SportEventsByUIDs RPC method.
func (*QuerySportEventsByUIDsRequest) Descriptor ¶
func (*QuerySportEventsByUIDsRequest) Descriptor() ([]byte, []int)
func (*QuerySportEventsByUIDsRequest) GetUids ¶
func (m *QuerySportEventsByUIDsRequest) GetUids() []string
func (*QuerySportEventsByUIDsRequest) Marshal ¶
func (m *QuerySportEventsByUIDsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsByUIDsRequest) MarshalTo ¶
func (m *QuerySportEventsByUIDsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsRequest) MarshalToSizedBuffer ¶
func (m *QuerySportEventsByUIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsRequest) ProtoMessage ¶
func (*QuerySportEventsByUIDsRequest) ProtoMessage()
func (*QuerySportEventsByUIDsRequest) Reset ¶
func (m *QuerySportEventsByUIDsRequest) Reset()
func (*QuerySportEventsByUIDsRequest) Size ¶
func (m *QuerySportEventsByUIDsRequest) Size() (n int)
func (*QuerySportEventsByUIDsRequest) String ¶
func (m *QuerySportEventsByUIDsRequest) String() string
func (*QuerySportEventsByUIDsRequest) Unmarshal ¶
func (m *QuerySportEventsByUIDsRequest) Unmarshal(dAtA []byte) error
func (*QuerySportEventsByUIDsRequest) XXX_DiscardUnknown ¶
func (m *QuerySportEventsByUIDsRequest) XXX_DiscardUnknown()
func (*QuerySportEventsByUIDsRequest) XXX_Marshal ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsByUIDsRequest) XXX_Merge ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Merge(src proto.Message)
func (*QuerySportEventsByUIDsRequest) XXX_Size ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Size() int
func (*QuerySportEventsByUIDsRequest) XXX_Unmarshal ¶
func (m *QuerySportEventsByUIDsRequest) XXX_Unmarshal(b []byte) error
type QuerySportEventsByUIDsResponse ¶
type QuerySportEventsByUIDsResponse struct { SportEvents []SportEvent `protobuf:"bytes,1,rep,name=sport_events,json=sportEvents,proto3" json:"sport_events"` FailedEvents []string `protobuf:"bytes,2,rep,name=failed_events,json=failedEvents,proto3" json:"failed_events,omitempty"` }
QuerySportEventsByUIDsResponse is the response type for the Query/sposport_events_by_uids RPC method. Query/SportEventsByUIDs RPC method.
func (*QuerySportEventsByUIDsResponse) Descriptor ¶
func (*QuerySportEventsByUIDsResponse) Descriptor() ([]byte, []int)
func (*QuerySportEventsByUIDsResponse) GetFailedEvents ¶
func (m *QuerySportEventsByUIDsResponse) GetFailedEvents() []string
func (*QuerySportEventsByUIDsResponse) GetSportEvents ¶
func (m *QuerySportEventsByUIDsResponse) GetSportEvents() []SportEvent
func (*QuerySportEventsByUIDsResponse) Marshal ¶
func (m *QuerySportEventsByUIDsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsByUIDsResponse) MarshalTo ¶
func (m *QuerySportEventsByUIDsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsResponse) MarshalToSizedBuffer ¶
func (m *QuerySportEventsByUIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsByUIDsResponse) ProtoMessage ¶
func (*QuerySportEventsByUIDsResponse) ProtoMessage()
func (*QuerySportEventsByUIDsResponse) Reset ¶
func (m *QuerySportEventsByUIDsResponse) Reset()
func (*QuerySportEventsByUIDsResponse) Size ¶
func (m *QuerySportEventsByUIDsResponse) Size() (n int)
func (*QuerySportEventsByUIDsResponse) String ¶
func (m *QuerySportEventsByUIDsResponse) String() string
func (*QuerySportEventsByUIDsResponse) Unmarshal ¶
func (m *QuerySportEventsByUIDsResponse) Unmarshal(dAtA []byte) error
func (*QuerySportEventsByUIDsResponse) XXX_DiscardUnknown ¶
func (m *QuerySportEventsByUIDsResponse) XXX_DiscardUnknown()
func (*QuerySportEventsByUIDsResponse) XXX_Marshal ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsByUIDsResponse) XXX_Merge ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Merge(src proto.Message)
func (*QuerySportEventsByUIDsResponse) XXX_Size ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Size() int
func (*QuerySportEventsByUIDsResponse) XXX_Unmarshal ¶
func (m *QuerySportEventsByUIDsResponse) XXX_Unmarshal(b []byte) error
type QuerySportEventsRequest ¶
type QuerySportEventsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QuerySportEventsRequest is the request type for the Query/sport_events RPC method. Query/SportEvents RPC method.
func (*QuerySportEventsRequest) Descriptor ¶
func (*QuerySportEventsRequest) Descriptor() ([]byte, []int)
func (*QuerySportEventsRequest) GetPagination ¶
func (m *QuerySportEventsRequest) GetPagination() *query.PageRequest
func (*QuerySportEventsRequest) Marshal ¶
func (m *QuerySportEventsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsRequest) MarshalTo ¶
func (m *QuerySportEventsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsRequest) MarshalToSizedBuffer ¶
func (m *QuerySportEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsRequest) ProtoMessage ¶
func (*QuerySportEventsRequest) ProtoMessage()
func (*QuerySportEventsRequest) Reset ¶
func (m *QuerySportEventsRequest) Reset()
func (*QuerySportEventsRequest) Size ¶
func (m *QuerySportEventsRequest) Size() (n int)
func (*QuerySportEventsRequest) String ¶
func (m *QuerySportEventsRequest) String() string
func (*QuerySportEventsRequest) Unmarshal ¶
func (m *QuerySportEventsRequest) Unmarshal(dAtA []byte) error
func (*QuerySportEventsRequest) XXX_DiscardUnknown ¶
func (m *QuerySportEventsRequest) XXX_DiscardUnknown()
func (*QuerySportEventsRequest) XXX_Marshal ¶
func (m *QuerySportEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsRequest) XXX_Merge ¶
func (m *QuerySportEventsRequest) XXX_Merge(src proto.Message)
func (*QuerySportEventsRequest) XXX_Size ¶
func (m *QuerySportEventsRequest) XXX_Size() int
func (*QuerySportEventsRequest) XXX_Unmarshal ¶
func (m *QuerySportEventsRequest) XXX_Unmarshal(b []byte) error
type QuerySportEventsResponse ¶
type QuerySportEventsResponse struct { SportEvent []SportEvent `protobuf:"bytes,1,rep,name=sport_event,json=sportEvent,proto3" json:"sport_event"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySportEventsResponse is the response type for the Query/sport_events RPC method. Query/SportEvents RPC method.
func (*QuerySportEventsResponse) Descriptor ¶
func (*QuerySportEventsResponse) Descriptor() ([]byte, []int)
func (*QuerySportEventsResponse) GetPagination ¶
func (m *QuerySportEventsResponse) GetPagination() *query.PageResponse
func (*QuerySportEventsResponse) GetSportEvent ¶
func (m *QuerySportEventsResponse) GetSportEvent() []SportEvent
func (*QuerySportEventsResponse) Marshal ¶
func (m *QuerySportEventsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySportEventsResponse) MarshalTo ¶
func (m *QuerySportEventsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySportEventsResponse) MarshalToSizedBuffer ¶
func (m *QuerySportEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySportEventsResponse) ProtoMessage ¶
func (*QuerySportEventsResponse) ProtoMessage()
func (*QuerySportEventsResponse) Reset ¶
func (m *QuerySportEventsResponse) Reset()
func (*QuerySportEventsResponse) Size ¶
func (m *QuerySportEventsResponse) Size() (n int)
func (*QuerySportEventsResponse) String ¶
func (m *QuerySportEventsResponse) String() string
func (*QuerySportEventsResponse) Unmarshal ¶
func (m *QuerySportEventsResponse) Unmarshal(dAtA []byte) error
func (*QuerySportEventsResponse) XXX_DiscardUnknown ¶
func (m *QuerySportEventsResponse) XXX_DiscardUnknown()
func (*QuerySportEventsResponse) XXX_Marshal ¶
func (m *QuerySportEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySportEventsResponse) XXX_Merge ¶
func (m *QuerySportEventsResponse) XXX_Merge(src proto.Message)
func (*QuerySportEventsResponse) XXX_Size ¶
func (m *QuerySportEventsResponse) XXX_Size() int
func (*QuerySportEventsResponse) XXX_Unmarshal ¶
func (m *QuerySportEventsResponse) XXX_Unmarshal(b []byte) error
type SportEvent ¶
type SportEvent struct { // uid is the universal unique identifier of the sport-event. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // start_ts is the start timestamp of the sport-event. StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"` // end_ts is the end timestamp of the sport-event. EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"` // odds is the list of odds of the sport-event. Odds []*Odds `protobuf:"bytes,4,rep,name=odds,proto3" json:"odds,omitempty"` // winner_odds_uids is the list of winner odds universal unique identifiers. WinnerOddsUIDs []string `protobuf:"bytes,5,rep,name=winner_odds_uids,proto3" json:"winner_odds_uids"` // status is the current status of the sport-event. Status SportEventStatus `protobuf:"varint,6,opt,name=status,proto3,enum=merlinnetwork.fury.sportevent.SportEventStatus" json:"status,omitempty"` // resolution_ts is the timestamp of the resolution of sport-event. ResolutionTS uint64 `protobuf:"varint,7,opt,name=resolution_ts,proto3" json:"resolution_ts"` // creator is the address of the creator of sport-event. Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"` // bet_constraints holds the constraints of sport-event to accept bets. BetConstraints *EventBetConstraints `protobuf:"bytes,9,opt,name=bet_constraints,json=betConstraints,proto3" json:"bet_constraints,omitempty"` // meta contains human-readable metadata of the sport-event. Meta string `protobuf:"bytes,10,opt,name=meta,proto3" json:"meta,omitempty"` // sr_contribution_for_house is the amount of contibution of house in the sr SrContributionForHouse github_com_cosmos_cosmos_sdk_types.Int `` /* 144-byte string literal not displayed */ // book_uid is the unique identifier corresponding to the book BookUID string `protobuf:"bytes,12,opt,name=book_uid,proto3" json:"book_uid"` }
SportEvent the representation of the sport-event to be stored in the sport-event state.
func NewSportEvent ¶
func NewSportEvent( uid, creator string, startTS, endTS uint64, odds []*Odds, betConstraits *EventBetConstraints, meta string, bookUID string, srContributionForHouse sdk.Int, status SportEventStatus, ) SportEvent
func (*SportEvent) Descriptor ¶
func (*SportEvent) Descriptor() ([]byte, []int)
func (*SportEvent) GetBetConstraints ¶
func (m *SportEvent) GetBetConstraints() *EventBetConstraints
func (*SportEvent) GetBookUID ¶
func (m *SportEvent) GetBookUID() string
func (*SportEvent) GetCreator ¶
func (m *SportEvent) GetCreator() string
func (*SportEvent) GetEndTS ¶
func (m *SportEvent) GetEndTS() uint64
func (*SportEvent) GetMeta ¶
func (m *SportEvent) GetMeta() string
func (*SportEvent) GetOdds ¶
func (m *SportEvent) GetOdds() []*Odds
func (*SportEvent) GetResolutionTS ¶
func (m *SportEvent) GetResolutionTS() uint64
func (*SportEvent) GetStartTS ¶
func (m *SportEvent) GetStartTS() uint64
func (*SportEvent) GetStatus ¶
func (m *SportEvent) GetStatus() SportEventStatus
func (*SportEvent) GetUID ¶
func (m *SportEvent) GetUID() string
func (*SportEvent) GetWinnerOddsUIDs ¶
func (m *SportEvent) GetWinnerOddsUIDs() []string
func (*SportEvent) Marshal ¶
func (m *SportEvent) Marshal() (dAtA []byte, err error)
func (*SportEvent) MarshalToSizedBuffer ¶
func (m *SportEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEvent) ProtoMessage ¶
func (*SportEvent) ProtoMessage()
func (*SportEvent) Reset ¶
func (m *SportEvent) Reset()
func (*SportEvent) Size ¶
func (m *SportEvent) Size() (n int)
func (*SportEvent) String ¶
func (m *SportEvent) String() string
func (*SportEvent) Unmarshal ¶
func (m *SportEvent) Unmarshal(dAtA []byte) error
func (*SportEvent) XXX_DiscardUnknown ¶
func (m *SportEvent) XXX_DiscardUnknown()
func (*SportEvent) XXX_Marshal ¶
func (m *SportEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEvent) XXX_Merge ¶
func (m *SportEvent) XXX_Merge(src proto.Message)
func (*SportEvent) XXX_Size ¶
func (m *SportEvent) XXX_Size() int
func (*SportEvent) XXX_Unmarshal ¶
func (m *SportEvent) XXX_Unmarshal(b []byte) error
type SportEventAddTicketPayload ¶
type SportEventAddTicketPayload struct { // uid is the universal unique identifier of the sport-event. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // start_ts is the start timestamp of the sport-event. StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"` // end_ts is the end timestamp of the sport-event. EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"` // odds is the list of odds of the sport-event. Odds []*Odds `protobuf:"bytes,4,rep,name=odds,proto3" json:"odds,omitempty"` // status is the current status of the sport-event. Status SportEventStatus `protobuf:"varint,5,opt,name=status,proto3,enum=merlinnetwork.fury.sportevent.SportEventStatus" json:"status,omitempty"` // creator is the address of the creator of sport-event. Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` // min_bet_amount is the minimum allowed bet amount for a sport-event. MinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */ // bet_fee is the fee that thebettor needs to pay to bet on the sport-event. BetFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=bet_fee,json=betFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bet_fee"` // meta contains human-readable metadata of the sport-event. Meta string `protobuf:"bytes,9,opt,name=meta,proto3" json:"meta,omitempty"` // sr_contribution_for_house is the portion of payout that should be paid by // sr SrContributionForHouse github_com_cosmos_cosmos_sdk_types.Int `` /* 144-byte string literal not displayed */ }
SportEventAddTicketPayload indicates data of add sport-event ticket
func (*SportEventAddTicketPayload) Descriptor ¶
func (*SportEventAddTicketPayload) Descriptor() ([]byte, []int)
func (*SportEventAddTicketPayload) GetCreator ¶
func (m *SportEventAddTicketPayload) GetCreator() string
func (*SportEventAddTicketPayload) GetEndTS ¶
func (m *SportEventAddTicketPayload) GetEndTS() uint64
func (*SportEventAddTicketPayload) GetMeta ¶
func (m *SportEventAddTicketPayload) GetMeta() string
func (*SportEventAddTicketPayload) GetOdds ¶
func (m *SportEventAddTicketPayload) GetOdds() []*Odds
func (*SportEventAddTicketPayload) GetStartTS ¶
func (m *SportEventAddTicketPayload) GetStartTS() uint64
func (*SportEventAddTicketPayload) GetStatus ¶
func (m *SportEventAddTicketPayload) GetStatus() SportEventStatus
func (*SportEventAddTicketPayload) GetUID ¶
func (m *SportEventAddTicketPayload) GetUID() string
func (*SportEventAddTicketPayload) Marshal ¶
func (m *SportEventAddTicketPayload) Marshal() (dAtA []byte, err error)
func (*SportEventAddTicketPayload) MarshalTo ¶
func (m *SportEventAddTicketPayload) MarshalTo(dAtA []byte) (int, error)
func (*SportEventAddTicketPayload) MarshalToSizedBuffer ¶
func (m *SportEventAddTicketPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEventAddTicketPayload) ProtoMessage ¶
func (*SportEventAddTicketPayload) ProtoMessage()
func (*SportEventAddTicketPayload) Reset ¶
func (m *SportEventAddTicketPayload) Reset()
func (*SportEventAddTicketPayload) Size ¶
func (m *SportEventAddTicketPayload) Size() (n int)
func (*SportEventAddTicketPayload) String ¶
func (m *SportEventAddTicketPayload) String() string
func (*SportEventAddTicketPayload) Unmarshal ¶
func (m *SportEventAddTicketPayload) Unmarshal(dAtA []byte) error
func (*SportEventAddTicketPayload) Validate ¶
func (payload *SportEventAddTicketPayload) Validate(ctx sdk.Context, p *Params) error
Validate validates sport-event add ticket payload.
func (*SportEventAddTicketPayload) XXX_DiscardUnknown ¶
func (m *SportEventAddTicketPayload) XXX_DiscardUnknown()
func (*SportEventAddTicketPayload) XXX_Marshal ¶
func (m *SportEventAddTicketPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEventAddTicketPayload) XXX_Merge ¶
func (m *SportEventAddTicketPayload) XXX_Merge(src proto.Message)
func (*SportEventAddTicketPayload) XXX_Size ¶
func (m *SportEventAddTicketPayload) XXX_Size() int
func (*SportEventAddTicketPayload) XXX_Unmarshal ¶
func (m *SportEventAddTicketPayload) XXX_Unmarshal(b []byte) error
type SportEventResolutionTicketPayload ¶
type SportEventResolutionTicketPayload struct { // uid is the universal unique identifier of sport-event. UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // resolution_ts is the resolution timestamp of the sport-event. ResolutionTS uint64 `protobuf:"varint,2,opt,name=resolution_ts,proto3" json:"resolution_ts"` // winner_odds_uids is the universal unique identifier list of the winner // odds. WinnerOddsUIDs []string `protobuf:"bytes,3,rep,name=winner_odds_uids,proto3" json:"winner_odds_uids"` // status is the status of the resolution. Status SportEventStatus `protobuf:"varint,4,opt,name=status,proto3,enum=merlinnetwork.fury.sportevent.SportEventStatus" json:"status,omitempty"` }
SportEventResolutionTicketPayload indicates data of the resolution of the sport-event ticket.
func (*SportEventResolutionTicketPayload) Descriptor ¶
func (*SportEventResolutionTicketPayload) Descriptor() ([]byte, []int)
func (*SportEventResolutionTicketPayload) GetResolutionTS ¶
func (m *SportEventResolutionTicketPayload) GetResolutionTS() uint64
func (*SportEventResolutionTicketPayload) GetStatus ¶
func (m *SportEventResolutionTicketPayload) GetStatus() SportEventStatus
func (*SportEventResolutionTicketPayload) GetUID ¶
func (m *SportEventResolutionTicketPayload) GetUID() string
func (*SportEventResolutionTicketPayload) GetWinnerOddsUIDs ¶
func (m *SportEventResolutionTicketPayload) GetWinnerOddsUIDs() []string
func (*SportEventResolutionTicketPayload) Marshal ¶
func (m *SportEventResolutionTicketPayload) Marshal() (dAtA []byte, err error)
func (*SportEventResolutionTicketPayload) MarshalTo ¶
func (m *SportEventResolutionTicketPayload) MarshalTo(dAtA []byte) (int, error)
func (*SportEventResolutionTicketPayload) MarshalToSizedBuffer ¶
func (m *SportEventResolutionTicketPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEventResolutionTicketPayload) ProtoMessage ¶
func (*SportEventResolutionTicketPayload) ProtoMessage()
func (*SportEventResolutionTicketPayload) Reset ¶
func (m *SportEventResolutionTicketPayload) Reset()
func (*SportEventResolutionTicketPayload) Size ¶
func (m *SportEventResolutionTicketPayload) Size() (n int)
func (*SportEventResolutionTicketPayload) String ¶
func (m *SportEventResolutionTicketPayload) String() string
func (*SportEventResolutionTicketPayload) Unmarshal ¶
func (m *SportEventResolutionTicketPayload) Unmarshal(dAtA []byte) error
func (*SportEventResolutionTicketPayload) Validate ¶
func (payload *SportEventResolutionTicketPayload) Validate() error
Validate validates sport-event resolution ticket payload.
func (*SportEventResolutionTicketPayload) XXX_DiscardUnknown ¶
func (m *SportEventResolutionTicketPayload) XXX_DiscardUnknown()
func (*SportEventResolutionTicketPayload) XXX_Marshal ¶
func (m *SportEventResolutionTicketPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEventResolutionTicketPayload) XXX_Merge ¶
func (m *SportEventResolutionTicketPayload) XXX_Merge(src proto.Message)
func (*SportEventResolutionTicketPayload) XXX_Size ¶
func (m *SportEventResolutionTicketPayload) XXX_Size() int
func (*SportEventResolutionTicketPayload) XXX_Unmarshal ¶
func (m *SportEventResolutionTicketPayload) XXX_Unmarshal(b []byte) error
type SportEventStats ¶
type SportEventStats struct { // resolved_unsettled is the list of universal unique identifiers // of resolved sport-events that have unsettled bets ResolvedUnsettled []string `protobuf:"bytes,1,rep,name=resolved_unsettled,json=resolvedUnsettled,proto3" json:"resolved_unsettled,omitempty"` }
SportEventStats holds statistics of the sport-event
func (*SportEventStats) Descriptor ¶
func (*SportEventStats) Descriptor() ([]byte, []int)
func (*SportEventStats) GetResolvedUnsettled ¶
func (m *SportEventStats) GetResolvedUnsettled() []string
func (*SportEventStats) Marshal ¶
func (m *SportEventStats) Marshal() (dAtA []byte, err error)
func (*SportEventStats) MarshalToSizedBuffer ¶
func (m *SportEventStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEventStats) ProtoMessage ¶
func (*SportEventStats) ProtoMessage()
func (*SportEventStats) Reset ¶
func (m *SportEventStats) Reset()
func (*SportEventStats) Size ¶
func (m *SportEventStats) Size() (n int)
func (*SportEventStats) String ¶
func (m *SportEventStats) String() string
func (*SportEventStats) Unmarshal ¶
func (m *SportEventStats) Unmarshal(dAtA []byte) error
func (*SportEventStats) XXX_DiscardUnknown ¶
func (m *SportEventStats) XXX_DiscardUnknown()
func (*SportEventStats) XXX_Marshal ¶
func (m *SportEventStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEventStats) XXX_Merge ¶
func (m *SportEventStats) XXX_Merge(src proto.Message)
func (*SportEventStats) XXX_Size ¶
func (m *SportEventStats) XXX_Size() int
func (*SportEventStats) XXX_Unmarshal ¶
func (m *SportEventStats) XXX_Unmarshal(b []byte) error
type SportEventStatus ¶
type SportEventStatus int32
SportEventStatus is the sport-event status enumeration
const ( // unspecified event SportEventStatus_SPORT_EVENT_STATUS_UNSPECIFIED SportEventStatus = 0 // event is active SportEventStatus_SPORT_EVENT_STATUS_ACTIVE SportEventStatus = 1 // event is inactive SportEventStatus_SPORT_EVENT_STATUS_INACTIVE SportEventStatus = 2 // event is canceled SportEventStatus_SPORT_EVENT_STATUS_CANCELED SportEventStatus = 3 // event is aborted SportEventStatus_SPORT_EVENT_STATUS_ABORTED SportEventStatus = 4 // result of the event is declared SportEventStatus_SPORT_EVENT_STATUS_RESULT_DECLARED SportEventStatus = 5 )
func (SportEventStatus) EnumDescriptor ¶
func (SportEventStatus) EnumDescriptor() ([]byte, []int)
func (SportEventStatus) String ¶
func (x SportEventStatus) String() string
type SportEventUpdateTicketPayload ¶
type SportEventUpdateTicketPayload struct { // uid is the uuid of the sport-event UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` // start_ts is the start timestamp of the sport-event StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"` // end_ts is the end timestamp of the sport-event EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"` // min_bet_amount is the minimum allowed bet amount for a sport-event. MinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */ // bet_fee is the fee that thebettor needs to pay to bet on the sport-event. BetFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=bet_fee,json=betFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bet_fee"` // status is the status of the resolution. Status SportEventStatus `protobuf:"varint,6,opt,name=status,proto3,enum=merlinnetwork.fury.sportevent.SportEventStatus" json:"status,omitempty"` }
SportEventUpdateTicketPayload indicates data of update sport-event ticket
func (*SportEventUpdateTicketPayload) Descriptor ¶
func (*SportEventUpdateTicketPayload) Descriptor() ([]byte, []int)
func (*SportEventUpdateTicketPayload) GetEndTS ¶
func (m *SportEventUpdateTicketPayload) GetEndTS() uint64
func (*SportEventUpdateTicketPayload) GetStartTS ¶
func (m *SportEventUpdateTicketPayload) GetStartTS() uint64
func (*SportEventUpdateTicketPayload) GetStatus ¶
func (m *SportEventUpdateTicketPayload) GetStatus() SportEventStatus
func (*SportEventUpdateTicketPayload) GetUID ¶
func (m *SportEventUpdateTicketPayload) GetUID() string
func (*SportEventUpdateTicketPayload) Marshal ¶
func (m *SportEventUpdateTicketPayload) Marshal() (dAtA []byte, err error)
func (*SportEventUpdateTicketPayload) MarshalTo ¶
func (m *SportEventUpdateTicketPayload) MarshalTo(dAtA []byte) (int, error)
func (*SportEventUpdateTicketPayload) MarshalToSizedBuffer ¶
func (m *SportEventUpdateTicketPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SportEventUpdateTicketPayload) ProtoMessage ¶
func (*SportEventUpdateTicketPayload) ProtoMessage()
func (*SportEventUpdateTicketPayload) Reset ¶
func (m *SportEventUpdateTicketPayload) Reset()
func (*SportEventUpdateTicketPayload) Size ¶
func (m *SportEventUpdateTicketPayload) Size() (n int)
func (*SportEventUpdateTicketPayload) String ¶
func (m *SportEventUpdateTicketPayload) String() string
func (*SportEventUpdateTicketPayload) Unmarshal ¶
func (m *SportEventUpdateTicketPayload) Unmarshal(dAtA []byte) error
func (*SportEventUpdateTicketPayload) Validate ¶
func (payload *SportEventUpdateTicketPayload) Validate(ctx sdk.Context, p *Params) error
Validate validates sport-event update ticket payload.
func (*SportEventUpdateTicketPayload) XXX_DiscardUnknown ¶
func (m *SportEventUpdateTicketPayload) XXX_DiscardUnknown()
func (*SportEventUpdateTicketPayload) XXX_Marshal ¶
func (m *SportEventUpdateTicketPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SportEventUpdateTicketPayload) XXX_Merge ¶
func (m *SportEventUpdateTicketPayload) XXX_Merge(src proto.Message)
func (*SportEventUpdateTicketPayload) XXX_Size ¶
func (m *SportEventUpdateTicketPayload) XXX_Size() int
func (*SportEventUpdateTicketPayload) XXX_Unmarshal ¶
func (m *SportEventUpdateTicketPayload) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddSportEvent ¶
func (*UnimplementedMsgServer) AddSportEvent(ctx context.Context, req *MsgAddSportEvent) (*MsgAddSportEventResponse, error)
func (*UnimplementedMsgServer) ResolveSportEvent ¶
func (*UnimplementedMsgServer) ResolveSportEvent(ctx context.Context, req *MsgResolveSportEvent) (*MsgResolveSportEventResponse, error)
func (*UnimplementedMsgServer) UpdateSportEvent ¶
func (*UnimplementedMsgServer) UpdateSportEvent(ctx context.Context, req *MsgUpdateSportEvent) (*MsgUpdateSportEventResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SportEvent ¶
func (*UnimplementedQueryServer) SportEvent(ctx context.Context, req *QuerySportEventRequest) (*QuerySportEventResponse, error)
func (*UnimplementedQueryServer) SportEvents ¶
func (*UnimplementedQueryServer) SportEvents(ctx context.Context, req *QuerySportEventsRequest) (*QuerySportEventsResponse, error)
func (*UnimplementedQueryServer) SportEventsByUIDs ¶
func (*UnimplementedQueryServer) SportEventsByUIDs(ctx context.Context, req *QuerySportEventsByUIDsRequest) (*QuerySportEventsByUIDsResponse, error)
Source Files ¶
- bet_constraints.go
- codec.go
- consts.go
- errors.go
- events.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- keys.go
- message_add_event.go
- message_resolve_event.go
- message_update_event.go
- odds.pb.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- sport_event.go
- sport_event.pb.go
- stats.pb.go
- ticket.go
- ticket.pb.go
- tx.pb.go