Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2023 Changes in this version + func NewMsgServerImpl(keeper Keeper) types.MsgServer + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace) *Keeper + func (k *Keeper) SetDVMKeeper(dvmKeeper types.DVMKeeper) + func (k *Keeper) SetOrderBookKeeper(orderBookKeeper types.OrderBookKeeper) + func (k *Keeper) SetSportEventKeeper(sportEventKeeper types.SportEventKeeper) + func (k Keeper) ActiveBets(c context.Context, req *types.QueryActiveBetsRequest) (*types.QueryActiveBetsResponse, error) + func (k Keeper) BatchSportEventSettlements(ctx sdk.Context) error + func (k Keeper) Bet(c context.Context, req *types.QueryBetRequest) (*types.QueryBetResponse, error) + func (k Keeper) Bets(c context.Context, req *types.QueryBetsRequest) (*types.QueryBetsResponse, error) + func (k Keeper) BetsByCreator(c context.Context, req *types.QueryBetsByCreatorRequest) (*types.QueryBetsByCreatorResponse, error) + func (k Keeper) BetsByUIDs(c context.Context, req *types.QueryBetsByUIDsRequest) (*types.QueryBetsByUIDsResponse, error) + func (k Keeper) GetActiveBets(ctx sdk.Context) (list []types.ActiveBet, err error) + func (k Keeper) GetBet(ctx sdk.Context, creator string, id uint64) (val types.Bet, found bool) + func (k Keeper) GetBetID(ctx sdk.Context, uid string) (val types.UID2ID, found bool) + func (k Keeper) GetBetIDs(ctx sdk.Context) (list []types.UID2ID, err error) + func (k Keeper) GetBetStats(ctx sdk.Context) (val types.BetStats) + func (k Keeper) GetBets(ctx sdk.Context) (list []types.Bet, err error) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetSettledBets(ctx sdk.Context) (list []types.SettledBet, err error) + func (k Keeper) IsAnyActiveBetForSportEvent(ctx sdk.Context, sportEventUID string) (thereIs bool, err error) + 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) PlaceBet(ctx sdk.Context, bet *types.Bet) error + func (k Keeper) RemoveActiveBet(ctx sdk.Context, sportEventUID string, betID uint64) + func (k Keeper) SetActiveBet(ctx sdk.Context, activeBet *types.ActiveBet, id uint64, sportEventUID string) + func (k Keeper) SetBet(ctx sdk.Context, bet types.Bet, id uint64) + func (k Keeper) SetBetID(ctx sdk.Context, uid2ID types.UID2ID) + func (k Keeper) SetBetStats(ctx sdk.Context, stats types.BetStats) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetSettledBet(ctx sdk.Context, settledBet *types.SettledBet, id uint64, blockHeight int64) + func (k Keeper) SettleBet(ctx sdk.Context, bettorAddressStr, betUID string) error + func (k Keeper) SettledBetsOfHeight(c context.Context, req *types.QuerySettledBetsOfHeightRequest) (*types.QuerySettledBetsOfHeightResponse, error)