Documentation ¶
Index ¶
- func KycValidation(address string, ticket *types.BetPlacementTicketPayload) bool
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type ExpectedKeepers
- type Keeper
- 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) GetBet(ctx sdk.Context, uid string) (val types.Bet, found bool)
- func (k Keeper) GetBets(ctx sdk.Context) (list []types.Bet, err error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PlaceBet(ctx sdk.Context, bet *types.Bet) error
- func (k Keeper) SetBet(ctx sdk.Context, bet types.Bet)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SettleBet(ctx sdk.Context, betUID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KycValidation ¶
func KycValidation(address string, ticket *types.BetPlacementTicketPayload) bool
KycValidation checks whether the kyc data is valid for a particular bettor if the kyc is required
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type ExpectedKeepers ¶
type ExpectedKeepers struct { SporteventKeeper types.SporteventKeeper StrategicreserveKeeper types.StrategicreserveKeeper DVMKeeper types.DVMKeeper }
ExpectedKeepers contains expected keepers parameter needed by NewKeeper
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, expectedKeepers ExpectedKeepers, ) *Keeper
NewKeeper creates new keeper object
func (Keeper) Bet ¶
func (k Keeper) Bet(c context.Context, req *types.QueryBetRequest) (*types.QueryBetResponse, error)
Bet returns a specific bet by its UID
func (Keeper) Bets ¶
func (k Keeper) Bets(c context.Context, req *types.QueryBetsRequest) (*types.QueryBetsResponse, error)
Bets returns all bets
Click to show internal directories.
Click to hide internal directories.