Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetDefaultBetConstraints(ctx sdk.Context) (params *types.EventBetConstraints)
- func (k Keeper) GetFirstUnsettledResovedSportEvent(ctx sdk.Context) (string, bool)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetSportEvent(ctx sdk.Context, sportEventUID string) (val types.SportEvent, found bool)
- func (k Keeper) GetSportEventAll(ctx sdk.Context) (list []types.SportEvent, err error)
- func (k Keeper) GetSportEventStats(ctx sdk.Context) (val types.SportEventStats)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveSportEvent(ctx sdk.Context, sportEventUID string)
- func (k Keeper) RemoveUnsettledResolvedSportEvent(ctx sdk.Context, sportEventUID string)
- func (k Keeper) ResolveSportEvent(ctx sdk.Context, resolutionEvent *types.SportEventResolutionTicketPayload) (*types.SportEvent, error)
- func (k *Keeper) SetDVMKeeper(dvmKeeper types.DVMKeeper)
- func (k *Keeper) SetOrderBookKeeper(orderBookKeeper types.OrderBookKeeper)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSportEvent(ctx sdk.Context, sportEvent types.SportEvent)
- func (k Keeper) SetSportEventStats(ctx sdk.Context, stats types.SportEventStats)
- func (k Keeper) SportEvent(c context.Context, req *types.QuerySportEventRequest) (*types.QuerySportEventResponse, error)
- func (k Keeper) SportEventExists(ctx sdk.Context, sportEventUID string) bool
- func (k Keeper) SportEvents(c context.Context, req *types.QuerySportEventsRequest) (*types.QuerySportEventsResponse, error)
- func (k Keeper) SportEventsByUIDs(goCtx context.Context, req *types.QuerySportEventsByUIDsRequest) (*types.QuerySportEventsByUIDsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the type for module properties
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
NewKeeper creates new keeper object
func (Keeper) GetDefaultBetConstraints ¶ added in v0.0.5
func (k Keeper) GetDefaultBetConstraints(ctx sdk.Context) (params *types.EventBetConstraints)
GetDefaultBetConstraints get bet constraint values of the bet constraints
func (Keeper) GetFirstUnsettledResovedSportEvent ¶ added in v0.0.5
GetFirstUnsettledResovedSportEvent returns first element of resolved sport-events that have active bets
func (Keeper) GetSportEvent ¶
func (k Keeper) GetSportEvent(ctx sdk.Context, sportEventUID string) (val types.SportEvent, found bool)
GetSportEvent returns a specific sport-event by its UID
func (Keeper) GetSportEventAll ¶
GetSportEventAll returns all sport-events
func (Keeper) GetSportEventStats ¶ added in v0.0.5
func (k Keeper) GetSportEventStats(ctx sdk.Context) (val types.SportEventStats)
GetSportEventStats returns sport-event stats
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns the params of the module
func (Keeper) RemoveSportEvent ¶
RemoveSportEvent removes a sport-event from the store
func (Keeper) RemoveUnsettledResolvedSportEvent ¶ added in v0.0.5
RemoveUnsettledResolvedSportEvent removes resolved sport-event from the statistics
func (Keeper) ResolveSportEvent ¶ added in v0.0.3
func (k Keeper) ResolveSportEvent(ctx sdk.Context, resolutionEvent *types.SportEventResolutionTicketPayload) (*types.SportEvent, error)
ResolveSportEvent updates a sport-event with its resolution
func (*Keeper) SetDVMKeeper ¶ added in v0.0.5
SetDVMKeeper sets the dvm module keeper to the sport-event keeper.
func (*Keeper) SetOrderBookKeeper ¶ added in v0.0.5
func (k *Keeper) SetOrderBookKeeper(orderBookKeeper types.OrderBookKeeper)
SetOrderBookKeeper sets the order book module keeper to the sport-event keeper.
func (Keeper) SetSportEvent ¶
func (k Keeper) SetSportEvent(ctx sdk.Context, sportEvent types.SportEvent)
SetSportEvent sets a specific sport-event in the store
func (Keeper) SetSportEventStats ¶ added in v0.0.5
func (k Keeper) SetSportEventStats(ctx sdk.Context, stats types.SportEventStats)
SetSportEventStats sets bet statistics in the store
func (Keeper) SportEvent ¶
func (k Keeper) SportEvent(c context.Context, req *types.QuerySportEventRequest) (*types.QuerySportEventResponse, error)
SportEvent returns a specific sport-events by its UID
func (Keeper) SportEventExists ¶
SportEventExists checks if a specific sport-event exists or not
func (Keeper) SportEvents ¶ added in v0.0.3
func (k Keeper) SportEvents(c context.Context, req *types.QuerySportEventsRequest) (*types.QuerySportEventsResponse, error)
SportEvents returns all the sport-events
func (Keeper) SportEventsByUIDs ¶ added in v0.0.3
func (k Keeper) SportEventsByUIDs(goCtx context.Context, req *types.QuerySportEventsByUIDsRequest) (*types.QuerySportEventsByUIDsResponse, error)
SportEventsByUIDs return success events and failed events id only back to the caller