-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
87 lines (76 loc) · 1.69 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { ChatChannel, MessageSummary, Transaction } from "./keybase-bot";
export interface ICroupierBotConfig {
botUsername: string;
paperKey1: string;
paperKey2: string;
}
export interface ICroupierDbConfig {
mongoDbHost: string;
mongoDbIsCluster: boolean;
mongoDbPassword: string;
mongoDbUsername: string;
}
export interface IReactionContent {
type: "reaction";
reaction: {
m: any;
b: any;
};
}
export interface IBetData {
fees: Array<Promise<number>>;
wagers: Array<number>;
}
export interface IBetList {
[key: string]: IBetData;
}
export interface IParticipant {
username: string;
transaction: Transaction;
onBehalfOf?: string;
powerup?: IPowerup;
freeBet?: boolean;
}
export interface IPowerup {
award: IPowerupAward;
awardedAt: number;
usedAt: number;
participantIndex: number;
reactionId: string;
}
export interface IPowerupAward {
name: string;
description: string;
reaction: string;
emoji: string;
}
export interface IPopularityContest {
challenger: string;
leader: string;
pollMessageId: string;
votesForChallenger: Array<string>;
votesForLeader: Array<string>;
}
export interface ISnipe {
participants: Array<IParticipant>;
betting_open: boolean;
clock: string;
timeout: NodeJS.Timeout;
countdown: number;
snipeId: number;
betting_stops: moment.Moment;
chatSend: ThrottledChat;
moneySend: ThrottledMoneyTransfer;
positionSizes: IPositionSize;
reflipping: boolean;
bettingTable: string;
blinds: number;
betting_started: number;
popularityContests: Array<IPopularityContest>;
potSizeStored: number;
clockRemaining: number;
freeze: string;
}
export interface IPositionSize {
[key: string]: number;
}