Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2023 Changes in this version + type Keeper struct + BetKeeper types.BetKeeper + func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, ps paramtypes.Subspace, ...) *Keeper + func (k *Keeper) SetBetKeeper(betKeeper types.BetKeeper) + func (k *Keeper) SetSportEventKeeper(sportEventKeeper types.SportEventKeeper) + func (k Keeper) AddBookSettlement(ctx sdk.Context, orderBookUID string) error + func (k Keeper) BatchOrderBookSettlements(ctx sdk.Context) error + func (k Keeper) BettorLoses(ctx sdk.Context, address sdk.AccAddress, betAmount sdk.Int, ...) error + func (k Keeper) BettorWins(ctx sdk.Context, bettorAddress sdk.AccAddress, betAmount sdk.Int, ...) error + func (k Keeper) BookExposure(c context.Context, req *types.QueryBookExposureRequest) (*types.QueryBookExposureResponse, error) + func (k Keeper) BookExposures(c context.Context, req *types.QueryBookExposuresRequest) (*types.QueryBookExposuresResponse, error) + func (k Keeper) BookParticipation(c context.Context, req *types.QueryBookParticipationRequest) (*types.QueryBookParticipationResponse, error) + func (k Keeper) BookParticipations(c context.Context, req *types.QueryBookParticipationsRequest) (*types.QueryBookParticipationsResponse, error) + func (k Keeper) GetAllBookExposures(ctx sdk.Context) (list []types.BookOddsExposure, err error) + func (k Keeper) GetAllBookParticipations(ctx sdk.Context) (list []types.BookParticipation, err error) + func (k Keeper) GetAllBooks(ctx sdk.Context) (list []types.OrderBook, err error) + func (k Keeper) GetAllHistoricalParticipationExposures(ctx sdk.Context) (list []types.ParticipationExposure, err error) + func (k Keeper) GetAllParticipationBetPair(ctx sdk.Context) (list []types.ParticipationBetPair, err error) + func (k Keeper) GetAllParticipationExposures(ctx sdk.Context) (list []types.ParticipationExposure, err error) + func (k Keeper) GetAllPayoutLock(ctx sdk.Context) (list [][]byte, err error) + func (k Keeper) GetBatchSettlementCount(ctx sdk.Context) (res uint64) + func (k Keeper) GetBook(ctx sdk.Context, bookUID string) (val types.OrderBook, found bool) + func (k Keeper) GetBookOddsExposure(ctx sdk.Context, bookUID, oddsUID string) (val types.BookOddsExposure, found bool) + func (k Keeper) GetBookParticipation(ctx sdk.Context, bookUID string, index uint64) (val types.BookParticipation, found bool) + func (k Keeper) GetExposureByBookAndOdds(ctx sdk.Context, bookUID, oddsUID string) (list []types.ParticipationExposure, err error) + func (k Keeper) GetExposureByBookAndParticipationIndex(ctx sdk.Context, bookUID string, participationIndex uint64) (list []types.ParticipationExposure, err error) + func (k Keeper) GetFirstUnsettledResolvedOrderBook(ctx sdk.Context) (string, bool) + func (k Keeper) GetMaxBookParticipationsAllowed(ctx sdk.Context) (res uint64) + func (k Keeper) GetOddsExposuresByBook(ctx sdk.Context, bookUID string) (list []types.BookOddsExposure, err error) + func (k Keeper) GetOrderBookStats(ctx sdk.Context) (val types.OrderBookStats) + func (k Keeper) GetParams(ctx sdk.Context) types.Params + func (k Keeper) GetParticipationsOfBook(ctx sdk.Context, bookUID string) (list []types.BookParticipation, err error) + func (k Keeper) HistoricalParticipationExposures(c context.Context, req *types.QueryHistoricalParticipationExposuresRequest) (*types.QueryHistoricalParticipationExposuresResponse, error) + func (k Keeper) InitiateBook(ctx sdk.Context, sportEventUID string, srContribution sdk.Int, ...) (err error) + func (k Keeper) InitiateBookParticipation(ctx sdk.Context, addr sdk.AccAddress, bookUID string, liquidity, fee sdk.Int) (index uint64, err error) + func (k Keeper) LiquidateBookParticipation(ctx sdk.Context, depositorAddr, bookUID string, participationIndex uint64, ...) (sdk.Int, error) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MoveToHistoricalParticipationExposure(ctx sdk.Context, pe types.ParticipationExposure) + func (k Keeper) OrderBook(c context.Context, req *types.QueryOrderBookRequest) (*types.QueryOrderBookResponse, error) + func (k Keeper) OrderBooks(c context.Context, req *types.QueryOrderBooksRequest) (*types.QueryOrderBooksResponse, error) + func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) ParticipationExposure(c context.Context, req *types.QueryParticipationExposureRequest) (*types.QueryParticipationExposureResponse, error) + func (k Keeper) ParticipationExposures(c context.Context, req *types.QueryParticipationExposuresRequest) (*types.QueryParticipationExposuresResponse, error) + func (k Keeper) ParticipationFulfilledBets(c context.Context, req *types.QueryParticipationFulfilledBetsRequest) (*types.QueryParticipationFulfilledBetsResponse, error) + func (k Keeper) ProcessBetPlacement(ctx sdk.Context, betUID, bookUID, oddsUID string, maxLossMultiplier sdk.Dec, ...) (betFulfillments []*bettypes.BetFulfillment, err error) + func (k Keeper) RefundBettor(ctx sdk.Context, bettorAddress sdk.AccAddress, betAmount, payout sdk.Int, ...) error + func (k Keeper) RemoveUnsettledResolvedOrderBook(ctx sdk.Context, orderBookUID string) + func (k Keeper) SetBook(ctx sdk.Context, book types.OrderBook) + func (k Keeper) SetBookOddsExposure(ctx sdk.Context, boe types.BookOddsExposure) + func (k Keeper) SetBookParticipation(ctx sdk.Context, participation types.BookParticipation) + func (k Keeper) SetHistoricalParticipationExposure(ctx sdk.Context, pe types.ParticipationExposure) + func (k Keeper) SetOrderBookStats(ctx sdk.Context, stats types.OrderBookStats) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetParticipationBetPair(ctx sdk.Context, bp types.ParticipationBetPair, betID uint64) + func (k Keeper) SetParticipationExposure(ctx sdk.Context, pe types.ParticipationExposure) + func (k Keeper) SetParticipationExposureByIndex(ctx sdk.Context, pe types.ParticipationExposure) + func (k Keeper) SetPayoutLock(ctx sdk.Context, uniqueLock string) + type SdkExpectedKeepers struct + AccountKeeper types.AccountKeeper + BankKeeper types.BankKeeper