Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetDefaultBetConstraints(ctx sdk.Context) (params *types.MarketBetConstraints)
- func (k Keeper) GetFirstUnsettledResolvedMarket(ctx sdk.Context) (string, bool)
- func (k Keeper) GetMarket(ctx sdk.Context, marketUID string) (val types.Market, found bool)
- func (k Keeper) GetMarketStats(ctx sdk.Context) (val types.MarketStats)
- func (k Keeper) GetMarkets(ctx sdk.Context) (list []types.Market, err error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Market(c context.Context, req *types.QueryMarketRequest) (*types.QueryMarketResponse, error)
- func (k Keeper) MarketExists(ctx sdk.Context, marketUID string) bool
- func (k Keeper) Markets(c context.Context, req *types.QueryMarketsRequest) (*types.QueryMarketsResponse, error)
- func (k Keeper) MarketsByUIDs(goCtx context.Context, req *types.QueryMarketsByUIDsRequest) (*types.QueryMarketsByUIDsResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveUnsettledResolvedMarket(ctx sdk.Context, marketUID string)
- func (k Keeper) ResolveMarket(ctx sdk.Context, storedMarket types.Market, ...) *types.Market
- func (k *Keeper) SetDVMKeeper(dvmKeeper types.DVMKeeper)
- func (k Keeper) SetMarket(ctx sdk.Context, market types.Market)
- func (k Keeper) SetMarketStats(ctx sdk.Context, stats types.MarketStats)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) SetSRKeeper(srKeeper types.SRKeeper)
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 ¶
func (k Keeper) GetDefaultBetConstraints(ctx sdk.Context) (params *types.MarketBetConstraints)
GetDefaultBetConstraints get bet constraint values of the bet constraints
func (Keeper) GetFirstUnsettledResolvedMarket ¶
GetFirstUnsettledResolvedMarket returns first element of resolved markets that have active bets
func (Keeper) GetMarketStats ¶
func (k Keeper) GetMarketStats(ctx sdk.Context) (val types.MarketStats)
GetMarketStats returns market stats
func (Keeper) GetMarkets ¶
GetMarkets returns all markets
func (Keeper) Market ¶
func (k Keeper) Market(c context.Context, req *types.QueryMarketRequest) (*types.QueryMarketResponse, error)
Market returns a specific markets by its UID
func (Keeper) MarketExists ¶
MarketExists checks if a specific market exists or not
func (Keeper) Markets ¶
func (k Keeper) Markets(c context.Context, req *types.QueryMarketsRequest) (*types.QueryMarketsResponse, error)
Markets returns all the markets
func (Keeper) MarketsByUIDs ¶
func (k Keeper) MarketsByUIDs(goCtx context.Context, req *types.QueryMarketsByUIDsRequest) (*types.QueryMarketsByUIDsResponse, error)
MarketsByUIDs return success markets and failed markets by uids back to the caller
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) RemoveUnsettledResolvedMarket ¶
RemoveUnsettledResolvedMarket removes resolved market from the statistics
func (Keeper) ResolveMarket ¶
func (k Keeper) ResolveMarket(ctx sdk.Context, storedMarket types.Market, resolutionMarket *types.MarketResolutionTicketPayload) *types.Market
ResolveMarket updates a market with its resolution
func (*Keeper) SetDVMKeeper ¶
SetDVMKeeper sets the dvm module keeper to the market keeper.
func (Keeper) SetMarketStats ¶
func (k Keeper) SetMarketStats(ctx sdk.Context, stats types.MarketStats)
SetMarketStats sets market statistics in the store
func (*Keeper) SetSRKeeper ¶
SetSRKeeper sets the sr module keeper to the market keeper.