kohin-app-v2-sdk
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
63 lines (62 loc) • 1.27 kB
TypeScript
export declare enum BetType {
EXPRESS = "Express",
ORDINAR = "Ordinar"
}
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: BetType;
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 {};