Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAuthority() string
- 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 (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) Resolve(ctx sdk.Context, storedMarket types.Market, ...) *types.Market
- func (k Keeper) SetMarket(ctx sdk.Context, market types.Market)
- func (k Keeper) SetMarketStats(ctx sdk.Context, stats types.MarketStats)
- func (k *Keeper) SetOVMKeeper(ovmKeeper types.OVMKeeper)
- func (k *Keeper) SetOrderbookKeeper(orderBookKeeper types.OrderbookKeeper)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
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 storetypes.StoreKey, ps paramtypes.Subspace, authority string, ) *Keeper
NewKeeper creates new keeper object
func (Keeper) GetAuthority ¶ added in v1.4.5
GetAuthority returns the x/market module's authority.
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) Resolve ¶ added in v1.0.1
func (k Keeper) Resolve( ctx sdk.Context, storedMarket types.Market, resolutionMarket *types.MarketResolutionTicketPayload, ) *types.Market
Resolve updates a market with its resolution
func (Keeper) SetMarketStats ¶
func (k Keeper) SetMarketStats(ctx sdk.Context, stats types.MarketStats)
SetMarketStats sets market statistics in the store
func (*Keeper) SetOVMKeeper ¶
SetOVMKeeper sets the ovm module keeper to the market keeper.
func (*Keeper) SetOrderbookKeeper ¶ added in v0.0.8
func (k *Keeper) SetOrderbookKeeper(orderBookKeeper types.OrderbookKeeper)
SetOrderbookKeeper sets the orderbook module keeper to the market keeper.