UNPKG

kohin-js

Version:

The Kohin JS is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and ana

67 lines (66 loc) 1.36 kB
export declare enum BetVariant { EXPRESS = "Express", ORDINAR = "Ordinar" } export declare enum BetTypeEnum { Single = "Single", Combo = "Combo" } export declare enum BetStatus { PENDING = "Pending", RESOLVED = "Resolved", CANCELED = "Canceled", CLAIMED = "Claimed" } export declare enum BetResult { WIN = "Win", LOSE = "Lose", DRAW = "Draw", PENDING = "Pending", CANCELED = "Canceled" } export interface ActiveBetParams { bettorAddress: string; pageCount: number; } export interface Bet { id: string; amount: string; bettor: string; betId: string; odds: string; status: BetStatus; type: BetVariant; potentialPayout: string; _updatedAt: string; _wonSubBetsCount: number; _lostSubBetsCount: number; _subBetsCount: number; createdBlockTimestamp: string; _games: Game[]; _conditions: Condition[]; selections: Selection[]; isEligible: boolean; maxSubBetsCount: number; isInsured: boolean; platformName?: string; imageUrl?: string; } interface Game { title: string; league: League; startsAt: string; } interface League { name: string; } interface Condition { conditionId: string; coreAddress: string; game: Game; } interface Selection { _outcomeId: string; odds: string; } export {};