@betorigami/game-calculations 0.0.0-sha-9faea50-20251204110704 → 0.0.0-sha-1212490-20251208011037
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -1701
- package/dist/index.mjs +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,1701 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
-
|
|
3
|
-
import Big$1 from 'big.js';
|
|
4
|
-
import { Big as Big$1, Big as Big$2 } from 'big.js';
|
|
5
|
-
|
|
6
|
-
export type Proof = {
|
|
7
|
-
proofHash: string;
|
|
8
|
-
proofString: string;
|
|
9
|
-
};
|
|
10
|
-
export type SingleRandomValue = {
|
|
11
|
-
value: number;
|
|
12
|
-
values: number[];
|
|
13
|
-
count: 1;
|
|
14
|
-
min: number;
|
|
15
|
-
max: number;
|
|
16
|
-
} & Proof;
|
|
17
|
-
export type MultipleRandomValues = {
|
|
18
|
-
values: number[];
|
|
19
|
-
count: number;
|
|
20
|
-
min: number;
|
|
21
|
-
max: number;
|
|
22
|
-
} & Proof;
|
|
23
|
-
export interface RandomNumberGenerator {
|
|
24
|
-
getRandomInt({ min, max }: {
|
|
25
|
-
min: number;
|
|
26
|
-
max: number;
|
|
27
|
-
}): SingleRandomValue;
|
|
28
|
-
getUniqueRandomInts({ min, max, count }: {
|
|
29
|
-
min: number;
|
|
30
|
-
max: number;
|
|
31
|
-
count: number;
|
|
32
|
-
}): MultipleRandomValues;
|
|
33
|
-
getRandomIntsWithReplacement({ min, max, count }: {
|
|
34
|
-
min: number;
|
|
35
|
-
max: number;
|
|
36
|
-
count: number;
|
|
37
|
-
}): MultipleRandomValues;
|
|
38
|
-
}
|
|
39
|
-
export declare enum OrigamiGame {
|
|
40
|
-
DICE = "DICE",
|
|
41
|
-
MINES = "MINES",
|
|
42
|
-
KENO = "KENO",
|
|
43
|
-
LIMBO = "LIMBO",
|
|
44
|
-
ADVANCED_DICE = "ADVANCED_DICE",
|
|
45
|
-
BACCARAT = "BACCARAT",
|
|
46
|
-
DIAMONDS = "DIAMONDS",
|
|
47
|
-
PLINKO = "PLINKO",
|
|
48
|
-
ROULETTE = "ROULETTE",
|
|
49
|
-
WHEEL = "WHEEL"
|
|
50
|
-
}
|
|
51
|
-
export type EmptyGameOutput = {};
|
|
52
|
-
export interface GetGameResultRequest<TGameInputs> {
|
|
53
|
-
generator: RandomNumberGenerator;
|
|
54
|
-
edge: number;
|
|
55
|
-
gameInputs: TGameInputs;
|
|
56
|
-
}
|
|
57
|
-
export interface GameResult<TGameOutputs = EmptyGameOutput> {
|
|
58
|
-
isFinished: boolean;
|
|
59
|
-
payoutMultiplier: Big$1;
|
|
60
|
-
outputs: TGameOutputs & {
|
|
61
|
-
result: number[];
|
|
62
|
-
};
|
|
63
|
-
randomValues: SingleRandomValue | MultipleRandomValues;
|
|
64
|
-
}
|
|
65
|
-
export declare abstract class Game<TGameInputs, TGameOutputs = EmptyGameOutput> {
|
|
66
|
-
readonly gameId: OrigamiGame;
|
|
67
|
-
protected constructor(gameId: OrigamiGame);
|
|
68
|
-
getGameResult(request: GetGameResultRequest<TGameInputs>): GameResult<TGameOutputs>;
|
|
69
|
-
protected abstract determineGameResult(request: GetGameResultRequest<TGameInputs>): GameResult<TGameOutputs>;
|
|
70
|
-
}
|
|
71
|
-
export type Bounds = {
|
|
72
|
-
lower: number;
|
|
73
|
-
upper: number;
|
|
74
|
-
};
|
|
75
|
-
export declare const RANDOM_MIN_VALUE = 0;
|
|
76
|
-
export declare const RANDOM_MAX_VALUE = 10000;
|
|
77
|
-
export declare const EFFECTIVE_RANGE = 10001;
|
|
78
|
-
export declare const MIN_WIN_CHANCE = 0.01;
|
|
79
|
-
export declare const MAX_WIN_CHANCE = 98;
|
|
80
|
-
export declare enum RollType {
|
|
81
|
-
ROLL_BETWEEN = "ROLL_BETWEEN",
|
|
82
|
-
ROLL_OUTSIDE = "ROLL_OUTSIDE",
|
|
83
|
-
ROLL_BETWEEN_TWO = "ROLL_BETWEEN_TWO"
|
|
84
|
-
}
|
|
85
|
-
export type RollBetween = {
|
|
86
|
-
mode: RollType.ROLL_BETWEEN;
|
|
87
|
-
bounds: Bounds;
|
|
88
|
-
};
|
|
89
|
-
export type RollOutside = {
|
|
90
|
-
mode: RollType.ROLL_OUTSIDE;
|
|
91
|
-
bounds: Bounds;
|
|
92
|
-
};
|
|
93
|
-
export type RollBetweenTwo = {
|
|
94
|
-
mode: RollType.ROLL_BETWEEN_TWO;
|
|
95
|
-
firstBounds: Bounds;
|
|
96
|
-
secondBounds: Bounds;
|
|
97
|
-
};
|
|
98
|
-
export type AdvancedDiceInputs = RollBetween | RollOutside | RollBetweenTwo;
|
|
99
|
-
export declare const validateAdvancedDiceInputs: (gameInputs: AdvancedDiceInputs) => void;
|
|
100
|
-
export declare class AdvancedDice extends Game<AdvancedDiceInputs> {
|
|
101
|
-
constructor();
|
|
102
|
-
protected determineGameResult({ generator, edge, gameInputs }: GetGameResultRequest<AdvancedDiceInputs>): GameResult;
|
|
103
|
-
}
|
|
104
|
-
export interface Bet {
|
|
105
|
-
amount: Big$1;
|
|
106
|
-
type: BaccaratBetType;
|
|
107
|
-
}
|
|
108
|
-
export interface BaccaratGameInputs {
|
|
109
|
-
bets: Bet[];
|
|
110
|
-
}
|
|
111
|
-
export declare const VALID_SUITS: readonly [
|
|
112
|
-
"Clubs",
|
|
113
|
-
"Diamonds",
|
|
114
|
-
"Hearts",
|
|
115
|
-
"Spades"
|
|
116
|
-
];
|
|
117
|
-
export declare const VALID_RANKS: readonly [
|
|
118
|
-
"Ace",
|
|
119
|
-
"2",
|
|
120
|
-
"3",
|
|
121
|
-
"4",
|
|
122
|
-
"5",
|
|
123
|
-
"6",
|
|
124
|
-
"7",
|
|
125
|
-
"8",
|
|
126
|
-
"9",
|
|
127
|
-
"10",
|
|
128
|
-
"Jack",
|
|
129
|
-
"Queen",
|
|
130
|
-
"King"
|
|
131
|
-
];
|
|
132
|
-
export type Suit = (typeof VALID_SUITS)[number];
|
|
133
|
-
export type Rank = (typeof VALID_RANKS)[number];
|
|
134
|
-
export interface Card {
|
|
135
|
-
suit: Suit;
|
|
136
|
-
rank: Rank;
|
|
137
|
-
}
|
|
138
|
-
export declare enum BaccaratOutcome {
|
|
139
|
-
PLAYER_WIN = "PLAYER_WIN",
|
|
140
|
-
TIE = "TIE",
|
|
141
|
-
BANKER_WIN = "BANKER_WIN"
|
|
142
|
-
}
|
|
143
|
-
export declare enum BaccaratBetType {
|
|
144
|
-
PLAYER = "PLAYER",
|
|
145
|
-
TIE = "TIE",
|
|
146
|
-
BANKER = "BANKER"
|
|
147
|
-
}
|
|
148
|
-
export interface BaccaratGameOutputs {
|
|
149
|
-
playerCards: Card[];
|
|
150
|
-
playerHandValue: number;
|
|
151
|
-
bankerCards: Card[];
|
|
152
|
-
bankerHandValue: number;
|
|
153
|
-
gameOutcome: BaccaratOutcome;
|
|
154
|
-
}
|
|
155
|
-
export declare const calculateBaccaratBetAmount: (gameInputs: BaccaratGameInputs) => Big$1;
|
|
156
|
-
export declare class Baccarat extends Game<BaccaratGameInputs, BaccaratGameOutputs> {
|
|
157
|
-
constructor();
|
|
158
|
-
protected determineGameResult({ generator, gameInputs, edge }: GetGameResultRequest<BaccaratGameInputs>): GameResult<BaccaratGameOutputs>;
|
|
159
|
-
private validateGameInputs;
|
|
160
|
-
private mapRandomValueToCard;
|
|
161
|
-
private isNaturalWin;
|
|
162
|
-
private mapRandomValueToCardValue;
|
|
163
|
-
private shouldDrawThirdPlayerCard;
|
|
164
|
-
private shouldDrawThirdBankerCard;
|
|
165
|
-
}
|
|
166
|
-
declare class MultiplierContainer<TMultipliers> {
|
|
167
|
-
readonly multipliers: Map<number, TMultipliers>;
|
|
168
|
-
constructor(multipliers: Map<number, TMultipliers>);
|
|
169
|
-
getMultipliers(edge: number): TMultipliers;
|
|
170
|
-
getAllMultipliers(): {
|
|
171
|
-
edge: number;
|
|
172
|
-
multipliers: TMultipliers;
|
|
173
|
-
}[];
|
|
174
|
-
}
|
|
175
|
-
export interface DiamondsGameInputs {
|
|
176
|
-
}
|
|
177
|
-
export declare enum DiamondsResultType {
|
|
178
|
-
PAIR = "PAIR",
|
|
179
|
-
TWO_PAIR = "TWO_PAIR",
|
|
180
|
-
THREE_OF_A_KIND = "THREE_OF_A_KIND",
|
|
181
|
-
FULL_HOUSE = "FULL_HOUSE",
|
|
182
|
-
FOUR_OF_A_KIND = "FOUR_OF_A_KIND",
|
|
183
|
-
FIVE_OF_A_KIND = "FIVE_OF_A_KIND"
|
|
184
|
-
}
|
|
185
|
-
export type DiamondsMultipliers = Record<keyof typeof DiamondsResultType, number>;
|
|
186
|
-
export declare const diamondsMultipliers: MultiplierContainer<DiamondsMultipliers>;
|
|
187
|
-
export declare class Diamonds extends Game<DiamondsGameInputs> {
|
|
188
|
-
constructor();
|
|
189
|
-
protected determineGameResult({ generator, edge }: GetGameResultRequest<DiamondsGameInputs>): GameResult;
|
|
190
|
-
private calculatePayoutMultiplier;
|
|
191
|
-
private classifyResult;
|
|
192
|
-
}
|
|
193
|
-
export declare enum DiceDirection {
|
|
194
|
-
ABOVE = "ABOVE",
|
|
195
|
-
BELOW = "BELOW"
|
|
196
|
-
}
|
|
197
|
-
export interface DiceGameInputs {
|
|
198
|
-
direction: DiceDirection;
|
|
199
|
-
selectedValue: number;
|
|
200
|
-
}
|
|
201
|
-
export declare class Dice extends Game<DiceGameInputs> {
|
|
202
|
-
constructor();
|
|
203
|
-
protected determineGameResult({ generator, edge, gameInputs }: GetGameResultRequest<DiceGameInputs>): GameResult;
|
|
204
|
-
}
|
|
205
|
-
export declare enum KenoRiskLevel {
|
|
206
|
-
CLASSIC = "CLASSIC",
|
|
207
|
-
LOW_RISK = "LOW_RISK",
|
|
208
|
-
MEDIUM_RISK = "MEDIUM_RISK",
|
|
209
|
-
HIGH_RISK = "HIGH_RISK"
|
|
210
|
-
}
|
|
211
|
-
export interface KenoGameInputs {
|
|
212
|
-
riskLevel: KenoRiskLevel;
|
|
213
|
-
selectedNumbers: number[];
|
|
214
|
-
}
|
|
215
|
-
export type TileCount = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
216
|
-
export type KenoMultipliers = Record<TileCount, Record<KenoRiskLevel, number[]>>;
|
|
217
|
-
export declare class Keno extends Game<KenoGameInputs> {
|
|
218
|
-
readonly multiplierOverrides?: KenoMultipliers | undefined;
|
|
219
|
-
private get multipliers();
|
|
220
|
-
constructor(multiplierOverrides?: KenoMultipliers | undefined);
|
|
221
|
-
protected determineGameResult({ generator, edge, gameInputs }: GetGameResultRequest<KenoGameInputs>): GameResult;
|
|
222
|
-
private validateMultiplierOverrides;
|
|
223
|
-
}
|
|
224
|
-
export interface LimboGameInputs {
|
|
225
|
-
targetMultiplier: number;
|
|
226
|
-
}
|
|
227
|
-
export interface LimboGameOutputs {
|
|
228
|
-
randomMultiplier: Big$1;
|
|
229
|
-
}
|
|
230
|
-
export declare class Limbo extends Game<LimboGameInputs, LimboGameOutputs> {
|
|
231
|
-
constructor();
|
|
232
|
-
protected determineGameResult({ generator, edge, gameInputs }: GetGameResultRequest<LimboGameInputs>): GameResult<LimboGameOutputs>;
|
|
233
|
-
}
|
|
234
|
-
export interface MinesGameInputs {
|
|
235
|
-
minesCount: number;
|
|
236
|
-
selectedTiles: number[];
|
|
237
|
-
hasCashedOut: boolean;
|
|
238
|
-
}
|
|
239
|
-
export declare class Mines extends Game<MinesGameInputs> {
|
|
240
|
-
constructor();
|
|
241
|
-
protected determineGameResult({ generator, edge, gameInputs }: GetGameResultRequest<MinesGameInputs>): GameResult;
|
|
242
|
-
}
|
|
243
|
-
export declare enum PlinkoRiskLevel {
|
|
244
|
-
LOW_RISK = "LOW_RISK",
|
|
245
|
-
MEDIUM_RISK = "MEDIUM_RISK",
|
|
246
|
-
HIGH_RISK = "HIGH_RISK"
|
|
247
|
-
}
|
|
248
|
-
export interface PlinkoGameInputs {
|
|
249
|
-
numberOfRows: number;
|
|
250
|
-
riskLevel: PlinkoRiskLevel;
|
|
251
|
-
}
|
|
252
|
-
export declare class Plinko extends Game<PlinkoGameInputs> {
|
|
253
|
-
constructor();
|
|
254
|
-
protected determineGameResult({ generator, gameInputs, edge }: GetGameResultRequest<PlinkoGameInputs>): GameResult;
|
|
255
|
-
}
|
|
256
|
-
export declare const PLINKO_ROW_COUNTS: readonly [
|
|
257
|
-
8,
|
|
258
|
-
9,
|
|
259
|
-
10,
|
|
260
|
-
11,
|
|
261
|
-
12,
|
|
262
|
-
13,
|
|
263
|
-
14,
|
|
264
|
-
15,
|
|
265
|
-
16
|
|
266
|
-
];
|
|
267
|
-
export type PlinkoRowCount = (typeof PLINKO_ROW_COUNTS)[number];
|
|
268
|
-
export type PlinkoMultiplierSet = Record<PlinkoRowCount, number[]>;
|
|
269
|
-
export type PlinkoMultipliers = Record<PlinkoRiskLevel, PlinkoMultiplierSet>;
|
|
270
|
-
export declare const plinkoMultipliers: MultiplierContainer<PlinkoMultipliers>;
|
|
271
|
-
export declare const VALID_EUROPEAN_STRAIGHTS: readonly [
|
|
272
|
-
0,
|
|
273
|
-
1,
|
|
274
|
-
2,
|
|
275
|
-
3,
|
|
276
|
-
4,
|
|
277
|
-
5,
|
|
278
|
-
6,
|
|
279
|
-
7,
|
|
280
|
-
8,
|
|
281
|
-
9,
|
|
282
|
-
10,
|
|
283
|
-
11,
|
|
284
|
-
12,
|
|
285
|
-
13,
|
|
286
|
-
14,
|
|
287
|
-
15,
|
|
288
|
-
16,
|
|
289
|
-
17,
|
|
290
|
-
18,
|
|
291
|
-
19,
|
|
292
|
-
20,
|
|
293
|
-
21,
|
|
294
|
-
22,
|
|
295
|
-
23,
|
|
296
|
-
24,
|
|
297
|
-
25,
|
|
298
|
-
26,
|
|
299
|
-
27,
|
|
300
|
-
28,
|
|
301
|
-
29,
|
|
302
|
-
30,
|
|
303
|
-
31,
|
|
304
|
-
32,
|
|
305
|
-
33,
|
|
306
|
-
34,
|
|
307
|
-
35,
|
|
308
|
-
36
|
|
309
|
-
];
|
|
310
|
-
export type EuropeanStraight = (typeof VALID_EUROPEAN_STRAIGHTS)[number];
|
|
311
|
-
export declare const VALID_AMERICAN_STRAIGHTS: readonly [
|
|
312
|
-
37,
|
|
313
|
-
0,
|
|
314
|
-
1,
|
|
315
|
-
2,
|
|
316
|
-
3,
|
|
317
|
-
4,
|
|
318
|
-
5,
|
|
319
|
-
6,
|
|
320
|
-
7,
|
|
321
|
-
8,
|
|
322
|
-
9,
|
|
323
|
-
10,
|
|
324
|
-
11,
|
|
325
|
-
12,
|
|
326
|
-
13,
|
|
327
|
-
14,
|
|
328
|
-
15,
|
|
329
|
-
16,
|
|
330
|
-
17,
|
|
331
|
-
18,
|
|
332
|
-
19,
|
|
333
|
-
20,
|
|
334
|
-
21,
|
|
335
|
-
22,
|
|
336
|
-
23,
|
|
337
|
-
24,
|
|
338
|
-
25,
|
|
339
|
-
26,
|
|
340
|
-
27,
|
|
341
|
-
28,
|
|
342
|
-
29,
|
|
343
|
-
30,
|
|
344
|
-
31,
|
|
345
|
-
32,
|
|
346
|
-
33,
|
|
347
|
-
34,
|
|
348
|
-
35,
|
|
349
|
-
36
|
|
350
|
-
];
|
|
351
|
-
export type AmericanStraight = (typeof VALID_AMERICAN_STRAIGHTS)[number];
|
|
352
|
-
export interface EuropeanStraightBet extends BaseBet {
|
|
353
|
-
value: EuropeanStraight;
|
|
354
|
-
}
|
|
355
|
-
export interface AmericanStraightBet extends BaseBet {
|
|
356
|
-
value: AmericanStraight;
|
|
357
|
-
}
|
|
358
|
-
export declare const VALID_EUROPEAN_SPLITS: readonly [
|
|
359
|
-
readonly [
|
|
360
|
-
0,
|
|
361
|
-
1
|
|
362
|
-
],
|
|
363
|
-
readonly [
|
|
364
|
-
0,
|
|
365
|
-
2
|
|
366
|
-
],
|
|
367
|
-
readonly [
|
|
368
|
-
0,
|
|
369
|
-
3
|
|
370
|
-
],
|
|
371
|
-
readonly [
|
|
372
|
-
1,
|
|
373
|
-
2
|
|
374
|
-
],
|
|
375
|
-
readonly [
|
|
376
|
-
1,
|
|
377
|
-
4
|
|
378
|
-
],
|
|
379
|
-
readonly [
|
|
380
|
-
2,
|
|
381
|
-
3
|
|
382
|
-
],
|
|
383
|
-
readonly [
|
|
384
|
-
2,
|
|
385
|
-
5
|
|
386
|
-
],
|
|
387
|
-
readonly [
|
|
388
|
-
3,
|
|
389
|
-
6
|
|
390
|
-
],
|
|
391
|
-
readonly [
|
|
392
|
-
4,
|
|
393
|
-
5
|
|
394
|
-
],
|
|
395
|
-
readonly [
|
|
396
|
-
4,
|
|
397
|
-
7
|
|
398
|
-
],
|
|
399
|
-
readonly [
|
|
400
|
-
5,
|
|
401
|
-
6
|
|
402
|
-
],
|
|
403
|
-
readonly [
|
|
404
|
-
5,
|
|
405
|
-
8
|
|
406
|
-
],
|
|
407
|
-
readonly [
|
|
408
|
-
6,
|
|
409
|
-
9
|
|
410
|
-
],
|
|
411
|
-
readonly [
|
|
412
|
-
7,
|
|
413
|
-
8
|
|
414
|
-
],
|
|
415
|
-
readonly [
|
|
416
|
-
7,
|
|
417
|
-
10
|
|
418
|
-
],
|
|
419
|
-
readonly [
|
|
420
|
-
8,
|
|
421
|
-
9
|
|
422
|
-
],
|
|
423
|
-
readonly [
|
|
424
|
-
8,
|
|
425
|
-
11
|
|
426
|
-
],
|
|
427
|
-
readonly [
|
|
428
|
-
9,
|
|
429
|
-
12
|
|
430
|
-
],
|
|
431
|
-
readonly [
|
|
432
|
-
10,
|
|
433
|
-
11
|
|
434
|
-
],
|
|
435
|
-
readonly [
|
|
436
|
-
10,
|
|
437
|
-
13
|
|
438
|
-
],
|
|
439
|
-
readonly [
|
|
440
|
-
11,
|
|
441
|
-
12
|
|
442
|
-
],
|
|
443
|
-
readonly [
|
|
444
|
-
11,
|
|
445
|
-
14
|
|
446
|
-
],
|
|
447
|
-
readonly [
|
|
448
|
-
12,
|
|
449
|
-
15
|
|
450
|
-
],
|
|
451
|
-
readonly [
|
|
452
|
-
13,
|
|
453
|
-
14
|
|
454
|
-
],
|
|
455
|
-
readonly [
|
|
456
|
-
13,
|
|
457
|
-
16
|
|
458
|
-
],
|
|
459
|
-
readonly [
|
|
460
|
-
14,
|
|
461
|
-
15
|
|
462
|
-
],
|
|
463
|
-
readonly [
|
|
464
|
-
14,
|
|
465
|
-
17
|
|
466
|
-
],
|
|
467
|
-
readonly [
|
|
468
|
-
15,
|
|
469
|
-
18
|
|
470
|
-
],
|
|
471
|
-
readonly [
|
|
472
|
-
16,
|
|
473
|
-
17
|
|
474
|
-
],
|
|
475
|
-
readonly [
|
|
476
|
-
16,
|
|
477
|
-
19
|
|
478
|
-
],
|
|
479
|
-
readonly [
|
|
480
|
-
17,
|
|
481
|
-
18
|
|
482
|
-
],
|
|
483
|
-
readonly [
|
|
484
|
-
17,
|
|
485
|
-
20
|
|
486
|
-
],
|
|
487
|
-
readonly [
|
|
488
|
-
18,
|
|
489
|
-
21
|
|
490
|
-
],
|
|
491
|
-
readonly [
|
|
492
|
-
19,
|
|
493
|
-
20
|
|
494
|
-
],
|
|
495
|
-
readonly [
|
|
496
|
-
19,
|
|
497
|
-
22
|
|
498
|
-
],
|
|
499
|
-
readonly [
|
|
500
|
-
20,
|
|
501
|
-
21
|
|
502
|
-
],
|
|
503
|
-
readonly [
|
|
504
|
-
20,
|
|
505
|
-
23
|
|
506
|
-
],
|
|
507
|
-
readonly [
|
|
508
|
-
21,
|
|
509
|
-
24
|
|
510
|
-
],
|
|
511
|
-
readonly [
|
|
512
|
-
22,
|
|
513
|
-
23
|
|
514
|
-
],
|
|
515
|
-
readonly [
|
|
516
|
-
22,
|
|
517
|
-
25
|
|
518
|
-
],
|
|
519
|
-
readonly [
|
|
520
|
-
23,
|
|
521
|
-
24
|
|
522
|
-
],
|
|
523
|
-
readonly [
|
|
524
|
-
23,
|
|
525
|
-
26
|
|
526
|
-
],
|
|
527
|
-
readonly [
|
|
528
|
-
24,
|
|
529
|
-
27
|
|
530
|
-
],
|
|
531
|
-
readonly [
|
|
532
|
-
25,
|
|
533
|
-
26
|
|
534
|
-
],
|
|
535
|
-
readonly [
|
|
536
|
-
25,
|
|
537
|
-
28
|
|
538
|
-
],
|
|
539
|
-
readonly [
|
|
540
|
-
26,
|
|
541
|
-
27
|
|
542
|
-
],
|
|
543
|
-
readonly [
|
|
544
|
-
26,
|
|
545
|
-
29
|
|
546
|
-
],
|
|
547
|
-
readonly [
|
|
548
|
-
27,
|
|
549
|
-
30
|
|
550
|
-
],
|
|
551
|
-
readonly [
|
|
552
|
-
28,
|
|
553
|
-
29
|
|
554
|
-
],
|
|
555
|
-
readonly [
|
|
556
|
-
28,
|
|
557
|
-
31
|
|
558
|
-
],
|
|
559
|
-
readonly [
|
|
560
|
-
29,
|
|
561
|
-
30
|
|
562
|
-
],
|
|
563
|
-
readonly [
|
|
564
|
-
29,
|
|
565
|
-
32
|
|
566
|
-
],
|
|
567
|
-
readonly [
|
|
568
|
-
30,
|
|
569
|
-
33
|
|
570
|
-
],
|
|
571
|
-
readonly [
|
|
572
|
-
31,
|
|
573
|
-
32
|
|
574
|
-
],
|
|
575
|
-
readonly [
|
|
576
|
-
31,
|
|
577
|
-
34
|
|
578
|
-
],
|
|
579
|
-
readonly [
|
|
580
|
-
32,
|
|
581
|
-
33
|
|
582
|
-
],
|
|
583
|
-
readonly [
|
|
584
|
-
32,
|
|
585
|
-
35
|
|
586
|
-
],
|
|
587
|
-
readonly [
|
|
588
|
-
33,
|
|
589
|
-
36
|
|
590
|
-
],
|
|
591
|
-
readonly [
|
|
592
|
-
34,
|
|
593
|
-
35
|
|
594
|
-
],
|
|
595
|
-
readonly [
|
|
596
|
-
35,
|
|
597
|
-
36
|
|
598
|
-
]
|
|
599
|
-
];
|
|
600
|
-
export type EuropeanSplit = (typeof VALID_EUROPEAN_SPLITS)[number];
|
|
601
|
-
export interface EuropeanSplitBet extends BaseBet {
|
|
602
|
-
values: EuropeanSplit;
|
|
603
|
-
}
|
|
604
|
-
export declare const VALID_AMERICAN_SPLITS: readonly [
|
|
605
|
-
readonly [
|
|
606
|
-
0,
|
|
607
|
-
1
|
|
608
|
-
],
|
|
609
|
-
readonly [
|
|
610
|
-
0,
|
|
611
|
-
2
|
|
612
|
-
],
|
|
613
|
-
readonly [
|
|
614
|
-
0,
|
|
615
|
-
37
|
|
616
|
-
],
|
|
617
|
-
readonly [
|
|
618
|
-
2,
|
|
619
|
-
37
|
|
620
|
-
],
|
|
621
|
-
readonly [
|
|
622
|
-
3,
|
|
623
|
-
37
|
|
624
|
-
],
|
|
625
|
-
readonly [
|
|
626
|
-
1,
|
|
627
|
-
2
|
|
628
|
-
],
|
|
629
|
-
readonly [
|
|
630
|
-
1,
|
|
631
|
-
4
|
|
632
|
-
],
|
|
633
|
-
readonly [
|
|
634
|
-
2,
|
|
635
|
-
3
|
|
636
|
-
],
|
|
637
|
-
readonly [
|
|
638
|
-
2,
|
|
639
|
-
5
|
|
640
|
-
],
|
|
641
|
-
readonly [
|
|
642
|
-
3,
|
|
643
|
-
6
|
|
644
|
-
],
|
|
645
|
-
readonly [
|
|
646
|
-
4,
|
|
647
|
-
5
|
|
648
|
-
],
|
|
649
|
-
readonly [
|
|
650
|
-
4,
|
|
651
|
-
7
|
|
652
|
-
],
|
|
653
|
-
readonly [
|
|
654
|
-
5,
|
|
655
|
-
6
|
|
656
|
-
],
|
|
657
|
-
readonly [
|
|
658
|
-
5,
|
|
659
|
-
8
|
|
660
|
-
],
|
|
661
|
-
readonly [
|
|
662
|
-
6,
|
|
663
|
-
9
|
|
664
|
-
],
|
|
665
|
-
readonly [
|
|
666
|
-
7,
|
|
667
|
-
8
|
|
668
|
-
],
|
|
669
|
-
readonly [
|
|
670
|
-
7,
|
|
671
|
-
10
|
|
672
|
-
],
|
|
673
|
-
readonly [
|
|
674
|
-
8,
|
|
675
|
-
9
|
|
676
|
-
],
|
|
677
|
-
readonly [
|
|
678
|
-
8,
|
|
679
|
-
11
|
|
680
|
-
],
|
|
681
|
-
readonly [
|
|
682
|
-
9,
|
|
683
|
-
12
|
|
684
|
-
],
|
|
685
|
-
readonly [
|
|
686
|
-
10,
|
|
687
|
-
11
|
|
688
|
-
],
|
|
689
|
-
readonly [
|
|
690
|
-
10,
|
|
691
|
-
13
|
|
692
|
-
],
|
|
693
|
-
readonly [
|
|
694
|
-
11,
|
|
695
|
-
12
|
|
696
|
-
],
|
|
697
|
-
readonly [
|
|
698
|
-
11,
|
|
699
|
-
14
|
|
700
|
-
],
|
|
701
|
-
readonly [
|
|
702
|
-
12,
|
|
703
|
-
15
|
|
704
|
-
],
|
|
705
|
-
readonly [
|
|
706
|
-
13,
|
|
707
|
-
14
|
|
708
|
-
],
|
|
709
|
-
readonly [
|
|
710
|
-
13,
|
|
711
|
-
16
|
|
712
|
-
],
|
|
713
|
-
readonly [
|
|
714
|
-
14,
|
|
715
|
-
15
|
|
716
|
-
],
|
|
717
|
-
readonly [
|
|
718
|
-
14,
|
|
719
|
-
17
|
|
720
|
-
],
|
|
721
|
-
readonly [
|
|
722
|
-
15,
|
|
723
|
-
18
|
|
724
|
-
],
|
|
725
|
-
readonly [
|
|
726
|
-
16,
|
|
727
|
-
17
|
|
728
|
-
],
|
|
729
|
-
readonly [
|
|
730
|
-
16,
|
|
731
|
-
19
|
|
732
|
-
],
|
|
733
|
-
readonly [
|
|
734
|
-
17,
|
|
735
|
-
18
|
|
736
|
-
],
|
|
737
|
-
readonly [
|
|
738
|
-
17,
|
|
739
|
-
20
|
|
740
|
-
],
|
|
741
|
-
readonly [
|
|
742
|
-
18,
|
|
743
|
-
21
|
|
744
|
-
],
|
|
745
|
-
readonly [
|
|
746
|
-
19,
|
|
747
|
-
20
|
|
748
|
-
],
|
|
749
|
-
readonly [
|
|
750
|
-
19,
|
|
751
|
-
22
|
|
752
|
-
],
|
|
753
|
-
readonly [
|
|
754
|
-
20,
|
|
755
|
-
21
|
|
756
|
-
],
|
|
757
|
-
readonly [
|
|
758
|
-
20,
|
|
759
|
-
23
|
|
760
|
-
],
|
|
761
|
-
readonly [
|
|
762
|
-
21,
|
|
763
|
-
24
|
|
764
|
-
],
|
|
765
|
-
readonly [
|
|
766
|
-
22,
|
|
767
|
-
23
|
|
768
|
-
],
|
|
769
|
-
readonly [
|
|
770
|
-
22,
|
|
771
|
-
25
|
|
772
|
-
],
|
|
773
|
-
readonly [
|
|
774
|
-
23,
|
|
775
|
-
24
|
|
776
|
-
],
|
|
777
|
-
readonly [
|
|
778
|
-
23,
|
|
779
|
-
26
|
|
780
|
-
],
|
|
781
|
-
readonly [
|
|
782
|
-
24,
|
|
783
|
-
27
|
|
784
|
-
],
|
|
785
|
-
readonly [
|
|
786
|
-
25,
|
|
787
|
-
26
|
|
788
|
-
],
|
|
789
|
-
readonly [
|
|
790
|
-
25,
|
|
791
|
-
28
|
|
792
|
-
],
|
|
793
|
-
readonly [
|
|
794
|
-
26,
|
|
795
|
-
27
|
|
796
|
-
],
|
|
797
|
-
readonly [
|
|
798
|
-
26,
|
|
799
|
-
29
|
|
800
|
-
],
|
|
801
|
-
readonly [
|
|
802
|
-
27,
|
|
803
|
-
30
|
|
804
|
-
],
|
|
805
|
-
readonly [
|
|
806
|
-
28,
|
|
807
|
-
29
|
|
808
|
-
],
|
|
809
|
-
readonly [
|
|
810
|
-
28,
|
|
811
|
-
31
|
|
812
|
-
],
|
|
813
|
-
readonly [
|
|
814
|
-
29,
|
|
815
|
-
30
|
|
816
|
-
],
|
|
817
|
-
readonly [
|
|
818
|
-
29,
|
|
819
|
-
32
|
|
820
|
-
],
|
|
821
|
-
readonly [
|
|
822
|
-
30,
|
|
823
|
-
33
|
|
824
|
-
],
|
|
825
|
-
readonly [
|
|
826
|
-
31,
|
|
827
|
-
32
|
|
828
|
-
],
|
|
829
|
-
readonly [
|
|
830
|
-
31,
|
|
831
|
-
34
|
|
832
|
-
],
|
|
833
|
-
readonly [
|
|
834
|
-
32,
|
|
835
|
-
33
|
|
836
|
-
],
|
|
837
|
-
readonly [
|
|
838
|
-
32,
|
|
839
|
-
35
|
|
840
|
-
],
|
|
841
|
-
readonly [
|
|
842
|
-
33,
|
|
843
|
-
36
|
|
844
|
-
],
|
|
845
|
-
readonly [
|
|
846
|
-
34,
|
|
847
|
-
35
|
|
848
|
-
],
|
|
849
|
-
readonly [
|
|
850
|
-
35,
|
|
851
|
-
36
|
|
852
|
-
]
|
|
853
|
-
];
|
|
854
|
-
export type AmericanSplit = (typeof VALID_AMERICAN_SPLITS)[number];
|
|
855
|
-
export interface AmericanSplitBet extends BaseBet {
|
|
856
|
-
values: AmericanSplit;
|
|
857
|
-
}
|
|
858
|
-
export declare const VALID_EUROPEAN_STREETS: readonly [
|
|
859
|
-
readonly [
|
|
860
|
-
0,
|
|
861
|
-
1,
|
|
862
|
-
2
|
|
863
|
-
],
|
|
864
|
-
readonly [
|
|
865
|
-
0,
|
|
866
|
-
2,
|
|
867
|
-
3
|
|
868
|
-
],
|
|
869
|
-
readonly [
|
|
870
|
-
1,
|
|
871
|
-
2,
|
|
872
|
-
3
|
|
873
|
-
],
|
|
874
|
-
readonly [
|
|
875
|
-
4,
|
|
876
|
-
5,
|
|
877
|
-
6
|
|
878
|
-
],
|
|
879
|
-
readonly [
|
|
880
|
-
7,
|
|
881
|
-
8,
|
|
882
|
-
9
|
|
883
|
-
],
|
|
884
|
-
readonly [
|
|
885
|
-
10,
|
|
886
|
-
11,
|
|
887
|
-
12
|
|
888
|
-
],
|
|
889
|
-
readonly [
|
|
890
|
-
13,
|
|
891
|
-
14,
|
|
892
|
-
15
|
|
893
|
-
],
|
|
894
|
-
readonly [
|
|
895
|
-
16,
|
|
896
|
-
17,
|
|
897
|
-
18
|
|
898
|
-
],
|
|
899
|
-
readonly [
|
|
900
|
-
19,
|
|
901
|
-
20,
|
|
902
|
-
21
|
|
903
|
-
],
|
|
904
|
-
readonly [
|
|
905
|
-
22,
|
|
906
|
-
23,
|
|
907
|
-
24
|
|
908
|
-
],
|
|
909
|
-
readonly [
|
|
910
|
-
25,
|
|
911
|
-
26,
|
|
912
|
-
27
|
|
913
|
-
],
|
|
914
|
-
readonly [
|
|
915
|
-
28,
|
|
916
|
-
29,
|
|
917
|
-
30
|
|
918
|
-
],
|
|
919
|
-
readonly [
|
|
920
|
-
31,
|
|
921
|
-
32,
|
|
922
|
-
33
|
|
923
|
-
],
|
|
924
|
-
readonly [
|
|
925
|
-
34,
|
|
926
|
-
35,
|
|
927
|
-
36
|
|
928
|
-
]
|
|
929
|
-
];
|
|
930
|
-
export type EuropeanStreet = (typeof VALID_EUROPEAN_STREETS)[number];
|
|
931
|
-
export interface BaseBet {
|
|
932
|
-
amount: Big$1.Big;
|
|
933
|
-
}
|
|
934
|
-
export interface EuropeanStreetBet extends BaseBet {
|
|
935
|
-
values: EuropeanStreet;
|
|
936
|
-
}
|
|
937
|
-
export declare const VALID_AMERICAN_STREETS: readonly [
|
|
938
|
-
readonly [
|
|
939
|
-
0,
|
|
940
|
-
1,
|
|
941
|
-
2
|
|
942
|
-
],
|
|
943
|
-
readonly [
|
|
944
|
-
0,
|
|
945
|
-
2,
|
|
946
|
-
37
|
|
947
|
-
],
|
|
948
|
-
readonly [
|
|
949
|
-
1,
|
|
950
|
-
2,
|
|
951
|
-
3
|
|
952
|
-
],
|
|
953
|
-
readonly [
|
|
954
|
-
2,
|
|
955
|
-
3,
|
|
956
|
-
37
|
|
957
|
-
],
|
|
958
|
-
readonly [
|
|
959
|
-
4,
|
|
960
|
-
5,
|
|
961
|
-
6
|
|
962
|
-
],
|
|
963
|
-
readonly [
|
|
964
|
-
7,
|
|
965
|
-
8,
|
|
966
|
-
9
|
|
967
|
-
],
|
|
968
|
-
readonly [
|
|
969
|
-
10,
|
|
970
|
-
11,
|
|
971
|
-
12
|
|
972
|
-
],
|
|
973
|
-
readonly [
|
|
974
|
-
13,
|
|
975
|
-
14,
|
|
976
|
-
15
|
|
977
|
-
],
|
|
978
|
-
readonly [
|
|
979
|
-
16,
|
|
980
|
-
17,
|
|
981
|
-
18
|
|
982
|
-
],
|
|
983
|
-
readonly [
|
|
984
|
-
19,
|
|
985
|
-
20,
|
|
986
|
-
21
|
|
987
|
-
],
|
|
988
|
-
readonly [
|
|
989
|
-
22,
|
|
990
|
-
23,
|
|
991
|
-
24
|
|
992
|
-
],
|
|
993
|
-
readonly [
|
|
994
|
-
25,
|
|
995
|
-
26,
|
|
996
|
-
27
|
|
997
|
-
],
|
|
998
|
-
readonly [
|
|
999
|
-
28,
|
|
1000
|
-
29,
|
|
1001
|
-
30
|
|
1002
|
-
],
|
|
1003
|
-
readonly [
|
|
1004
|
-
31,
|
|
1005
|
-
32,
|
|
1006
|
-
33
|
|
1007
|
-
],
|
|
1008
|
-
readonly [
|
|
1009
|
-
34,
|
|
1010
|
-
35,
|
|
1011
|
-
36
|
|
1012
|
-
]
|
|
1013
|
-
];
|
|
1014
|
-
export type AmericanStreet = (typeof VALID_AMERICAN_STREETS)[number];
|
|
1015
|
-
export interface AmericanStreetBet extends BaseBet {
|
|
1016
|
-
values: AmericanStreet;
|
|
1017
|
-
}
|
|
1018
|
-
export declare const VALID_EUROPEAN_CORNERS: readonly [
|
|
1019
|
-
readonly [
|
|
1020
|
-
0,
|
|
1021
|
-
1,
|
|
1022
|
-
2,
|
|
1023
|
-
3
|
|
1024
|
-
],
|
|
1025
|
-
readonly [
|
|
1026
|
-
1,
|
|
1027
|
-
2,
|
|
1028
|
-
4,
|
|
1029
|
-
5
|
|
1030
|
-
],
|
|
1031
|
-
readonly [
|
|
1032
|
-
2,
|
|
1033
|
-
3,
|
|
1034
|
-
5,
|
|
1035
|
-
6
|
|
1036
|
-
],
|
|
1037
|
-
readonly [
|
|
1038
|
-
4,
|
|
1039
|
-
5,
|
|
1040
|
-
7,
|
|
1041
|
-
8
|
|
1042
|
-
],
|
|
1043
|
-
readonly [
|
|
1044
|
-
5,
|
|
1045
|
-
6,
|
|
1046
|
-
8,
|
|
1047
|
-
9
|
|
1048
|
-
],
|
|
1049
|
-
readonly [
|
|
1050
|
-
7,
|
|
1051
|
-
8,
|
|
1052
|
-
10,
|
|
1053
|
-
11
|
|
1054
|
-
],
|
|
1055
|
-
readonly [
|
|
1056
|
-
8,
|
|
1057
|
-
9,
|
|
1058
|
-
11,
|
|
1059
|
-
12
|
|
1060
|
-
],
|
|
1061
|
-
readonly [
|
|
1062
|
-
10,
|
|
1063
|
-
11,
|
|
1064
|
-
13,
|
|
1065
|
-
14
|
|
1066
|
-
],
|
|
1067
|
-
readonly [
|
|
1068
|
-
11,
|
|
1069
|
-
12,
|
|
1070
|
-
14,
|
|
1071
|
-
15
|
|
1072
|
-
],
|
|
1073
|
-
readonly [
|
|
1074
|
-
13,
|
|
1075
|
-
14,
|
|
1076
|
-
16,
|
|
1077
|
-
17
|
|
1078
|
-
],
|
|
1079
|
-
readonly [
|
|
1080
|
-
14,
|
|
1081
|
-
15,
|
|
1082
|
-
17,
|
|
1083
|
-
18
|
|
1084
|
-
],
|
|
1085
|
-
readonly [
|
|
1086
|
-
16,
|
|
1087
|
-
17,
|
|
1088
|
-
19,
|
|
1089
|
-
20
|
|
1090
|
-
],
|
|
1091
|
-
readonly [
|
|
1092
|
-
17,
|
|
1093
|
-
18,
|
|
1094
|
-
20,
|
|
1095
|
-
21
|
|
1096
|
-
],
|
|
1097
|
-
readonly [
|
|
1098
|
-
19,
|
|
1099
|
-
20,
|
|
1100
|
-
22,
|
|
1101
|
-
23
|
|
1102
|
-
],
|
|
1103
|
-
readonly [
|
|
1104
|
-
20,
|
|
1105
|
-
21,
|
|
1106
|
-
23,
|
|
1107
|
-
24
|
|
1108
|
-
],
|
|
1109
|
-
readonly [
|
|
1110
|
-
22,
|
|
1111
|
-
23,
|
|
1112
|
-
25,
|
|
1113
|
-
26
|
|
1114
|
-
],
|
|
1115
|
-
readonly [
|
|
1116
|
-
23,
|
|
1117
|
-
24,
|
|
1118
|
-
26,
|
|
1119
|
-
27
|
|
1120
|
-
],
|
|
1121
|
-
readonly [
|
|
1122
|
-
25,
|
|
1123
|
-
26,
|
|
1124
|
-
28,
|
|
1125
|
-
29
|
|
1126
|
-
],
|
|
1127
|
-
readonly [
|
|
1128
|
-
26,
|
|
1129
|
-
27,
|
|
1130
|
-
29,
|
|
1131
|
-
30
|
|
1132
|
-
],
|
|
1133
|
-
readonly [
|
|
1134
|
-
28,
|
|
1135
|
-
29,
|
|
1136
|
-
31,
|
|
1137
|
-
32
|
|
1138
|
-
],
|
|
1139
|
-
readonly [
|
|
1140
|
-
29,
|
|
1141
|
-
30,
|
|
1142
|
-
32,
|
|
1143
|
-
33
|
|
1144
|
-
],
|
|
1145
|
-
readonly [
|
|
1146
|
-
31,
|
|
1147
|
-
32,
|
|
1148
|
-
34,
|
|
1149
|
-
35
|
|
1150
|
-
],
|
|
1151
|
-
readonly [
|
|
1152
|
-
32,
|
|
1153
|
-
33,
|
|
1154
|
-
35,
|
|
1155
|
-
36
|
|
1156
|
-
]
|
|
1157
|
-
];
|
|
1158
|
-
export type EuropeanCorner = (typeof VALID_EUROPEAN_CORNERS)[number];
|
|
1159
|
-
export interface EuropeanCornerBet extends BaseBet {
|
|
1160
|
-
values: EuropeanCorner;
|
|
1161
|
-
}
|
|
1162
|
-
export declare const VALID_AMERICAN_CORNERS: readonly [
|
|
1163
|
-
readonly [
|
|
1164
|
-
1,
|
|
1165
|
-
2,
|
|
1166
|
-
4,
|
|
1167
|
-
5
|
|
1168
|
-
],
|
|
1169
|
-
readonly [
|
|
1170
|
-
2,
|
|
1171
|
-
3,
|
|
1172
|
-
5,
|
|
1173
|
-
6
|
|
1174
|
-
],
|
|
1175
|
-
readonly [
|
|
1176
|
-
4,
|
|
1177
|
-
5,
|
|
1178
|
-
7,
|
|
1179
|
-
8
|
|
1180
|
-
],
|
|
1181
|
-
readonly [
|
|
1182
|
-
5,
|
|
1183
|
-
6,
|
|
1184
|
-
8,
|
|
1185
|
-
9
|
|
1186
|
-
],
|
|
1187
|
-
readonly [
|
|
1188
|
-
7,
|
|
1189
|
-
8,
|
|
1190
|
-
10,
|
|
1191
|
-
11
|
|
1192
|
-
],
|
|
1193
|
-
readonly [
|
|
1194
|
-
8,
|
|
1195
|
-
9,
|
|
1196
|
-
11,
|
|
1197
|
-
12
|
|
1198
|
-
],
|
|
1199
|
-
readonly [
|
|
1200
|
-
10,
|
|
1201
|
-
11,
|
|
1202
|
-
13,
|
|
1203
|
-
14
|
|
1204
|
-
],
|
|
1205
|
-
readonly [
|
|
1206
|
-
11,
|
|
1207
|
-
12,
|
|
1208
|
-
14,
|
|
1209
|
-
15
|
|
1210
|
-
],
|
|
1211
|
-
readonly [
|
|
1212
|
-
13,
|
|
1213
|
-
14,
|
|
1214
|
-
16,
|
|
1215
|
-
17
|
|
1216
|
-
],
|
|
1217
|
-
readonly [
|
|
1218
|
-
14,
|
|
1219
|
-
15,
|
|
1220
|
-
17,
|
|
1221
|
-
18
|
|
1222
|
-
],
|
|
1223
|
-
readonly [
|
|
1224
|
-
16,
|
|
1225
|
-
17,
|
|
1226
|
-
19,
|
|
1227
|
-
20
|
|
1228
|
-
],
|
|
1229
|
-
readonly [
|
|
1230
|
-
17,
|
|
1231
|
-
18,
|
|
1232
|
-
20,
|
|
1233
|
-
21
|
|
1234
|
-
],
|
|
1235
|
-
readonly [
|
|
1236
|
-
19,
|
|
1237
|
-
20,
|
|
1238
|
-
22,
|
|
1239
|
-
23
|
|
1240
|
-
],
|
|
1241
|
-
readonly [
|
|
1242
|
-
20,
|
|
1243
|
-
21,
|
|
1244
|
-
23,
|
|
1245
|
-
24
|
|
1246
|
-
],
|
|
1247
|
-
readonly [
|
|
1248
|
-
22,
|
|
1249
|
-
23,
|
|
1250
|
-
25,
|
|
1251
|
-
26
|
|
1252
|
-
],
|
|
1253
|
-
readonly [
|
|
1254
|
-
23,
|
|
1255
|
-
24,
|
|
1256
|
-
26,
|
|
1257
|
-
27
|
|
1258
|
-
],
|
|
1259
|
-
readonly [
|
|
1260
|
-
25,
|
|
1261
|
-
26,
|
|
1262
|
-
28,
|
|
1263
|
-
29
|
|
1264
|
-
],
|
|
1265
|
-
readonly [
|
|
1266
|
-
26,
|
|
1267
|
-
27,
|
|
1268
|
-
29,
|
|
1269
|
-
30
|
|
1270
|
-
],
|
|
1271
|
-
readonly [
|
|
1272
|
-
28,
|
|
1273
|
-
29,
|
|
1274
|
-
31,
|
|
1275
|
-
32
|
|
1276
|
-
],
|
|
1277
|
-
readonly [
|
|
1278
|
-
29,
|
|
1279
|
-
30,
|
|
1280
|
-
32,
|
|
1281
|
-
33
|
|
1282
|
-
],
|
|
1283
|
-
readonly [
|
|
1284
|
-
31,
|
|
1285
|
-
32,
|
|
1286
|
-
34,
|
|
1287
|
-
35
|
|
1288
|
-
],
|
|
1289
|
-
readonly [
|
|
1290
|
-
32,
|
|
1291
|
-
33,
|
|
1292
|
-
35,
|
|
1293
|
-
36
|
|
1294
|
-
]
|
|
1295
|
-
];
|
|
1296
|
-
export type AmericanCorner = (typeof VALID_AMERICAN_CORNERS)[number];
|
|
1297
|
-
export interface AmericanCornerBet extends BaseBet {
|
|
1298
|
-
values: AmericanCorner;
|
|
1299
|
-
}
|
|
1300
|
-
export declare const AMERICAN_BASKET: readonly [
|
|
1301
|
-
0,
|
|
1302
|
-
1,
|
|
1303
|
-
2,
|
|
1304
|
-
3,
|
|
1305
|
-
37
|
|
1306
|
-
];
|
|
1307
|
-
export interface AmericanBasketBet extends BaseBet {
|
|
1308
|
-
}
|
|
1309
|
-
export declare const VALID_EUROPEAN_DOUBLE_STREETS: readonly [
|
|
1310
|
-
readonly [
|
|
1311
|
-
1,
|
|
1312
|
-
2,
|
|
1313
|
-
3,
|
|
1314
|
-
4,
|
|
1315
|
-
5,
|
|
1316
|
-
6
|
|
1317
|
-
],
|
|
1318
|
-
readonly [
|
|
1319
|
-
4,
|
|
1320
|
-
5,
|
|
1321
|
-
6,
|
|
1322
|
-
7,
|
|
1323
|
-
8,
|
|
1324
|
-
9
|
|
1325
|
-
],
|
|
1326
|
-
readonly [
|
|
1327
|
-
7,
|
|
1328
|
-
8,
|
|
1329
|
-
9,
|
|
1330
|
-
10,
|
|
1331
|
-
11,
|
|
1332
|
-
12
|
|
1333
|
-
],
|
|
1334
|
-
readonly [
|
|
1335
|
-
10,
|
|
1336
|
-
11,
|
|
1337
|
-
12,
|
|
1338
|
-
13,
|
|
1339
|
-
14,
|
|
1340
|
-
15
|
|
1341
|
-
],
|
|
1342
|
-
readonly [
|
|
1343
|
-
13,
|
|
1344
|
-
14,
|
|
1345
|
-
15,
|
|
1346
|
-
16,
|
|
1347
|
-
17,
|
|
1348
|
-
18
|
|
1349
|
-
],
|
|
1350
|
-
readonly [
|
|
1351
|
-
16,
|
|
1352
|
-
17,
|
|
1353
|
-
18,
|
|
1354
|
-
19,
|
|
1355
|
-
20,
|
|
1356
|
-
21
|
|
1357
|
-
],
|
|
1358
|
-
readonly [
|
|
1359
|
-
19,
|
|
1360
|
-
20,
|
|
1361
|
-
21,
|
|
1362
|
-
22,
|
|
1363
|
-
23,
|
|
1364
|
-
24
|
|
1365
|
-
],
|
|
1366
|
-
readonly [
|
|
1367
|
-
22,
|
|
1368
|
-
23,
|
|
1369
|
-
24,
|
|
1370
|
-
25,
|
|
1371
|
-
26,
|
|
1372
|
-
27
|
|
1373
|
-
],
|
|
1374
|
-
readonly [
|
|
1375
|
-
25,
|
|
1376
|
-
26,
|
|
1377
|
-
27,
|
|
1378
|
-
28,
|
|
1379
|
-
29,
|
|
1380
|
-
30
|
|
1381
|
-
],
|
|
1382
|
-
readonly [
|
|
1383
|
-
28,
|
|
1384
|
-
29,
|
|
1385
|
-
30,
|
|
1386
|
-
31,
|
|
1387
|
-
32,
|
|
1388
|
-
33
|
|
1389
|
-
],
|
|
1390
|
-
readonly [
|
|
1391
|
-
31,
|
|
1392
|
-
32,
|
|
1393
|
-
33,
|
|
1394
|
-
34,
|
|
1395
|
-
35,
|
|
1396
|
-
36
|
|
1397
|
-
]
|
|
1398
|
-
];
|
|
1399
|
-
export type EuropeanDoubleStreet = (typeof VALID_EUROPEAN_DOUBLE_STREETS)[number];
|
|
1400
|
-
export interface EuropeanDoubleStreetBet extends BaseBet {
|
|
1401
|
-
values: EuropeanDoubleStreet;
|
|
1402
|
-
}
|
|
1403
|
-
export declare const VALID_AMERICAN_DOUBLE_STREETS: readonly [
|
|
1404
|
-
readonly [
|
|
1405
|
-
1,
|
|
1406
|
-
2,
|
|
1407
|
-
3,
|
|
1408
|
-
4,
|
|
1409
|
-
5,
|
|
1410
|
-
6
|
|
1411
|
-
],
|
|
1412
|
-
readonly [
|
|
1413
|
-
4,
|
|
1414
|
-
5,
|
|
1415
|
-
6,
|
|
1416
|
-
7,
|
|
1417
|
-
8,
|
|
1418
|
-
9
|
|
1419
|
-
],
|
|
1420
|
-
readonly [
|
|
1421
|
-
7,
|
|
1422
|
-
8,
|
|
1423
|
-
9,
|
|
1424
|
-
10,
|
|
1425
|
-
11,
|
|
1426
|
-
12
|
|
1427
|
-
],
|
|
1428
|
-
readonly [
|
|
1429
|
-
10,
|
|
1430
|
-
11,
|
|
1431
|
-
12,
|
|
1432
|
-
13,
|
|
1433
|
-
14,
|
|
1434
|
-
15
|
|
1435
|
-
],
|
|
1436
|
-
readonly [
|
|
1437
|
-
13,
|
|
1438
|
-
14,
|
|
1439
|
-
15,
|
|
1440
|
-
16,
|
|
1441
|
-
17,
|
|
1442
|
-
18
|
|
1443
|
-
],
|
|
1444
|
-
readonly [
|
|
1445
|
-
16,
|
|
1446
|
-
17,
|
|
1447
|
-
18,
|
|
1448
|
-
19,
|
|
1449
|
-
20,
|
|
1450
|
-
21
|
|
1451
|
-
],
|
|
1452
|
-
readonly [
|
|
1453
|
-
19,
|
|
1454
|
-
20,
|
|
1455
|
-
21,
|
|
1456
|
-
22,
|
|
1457
|
-
23,
|
|
1458
|
-
24
|
|
1459
|
-
],
|
|
1460
|
-
readonly [
|
|
1461
|
-
22,
|
|
1462
|
-
23,
|
|
1463
|
-
24,
|
|
1464
|
-
25,
|
|
1465
|
-
26,
|
|
1466
|
-
27
|
|
1467
|
-
],
|
|
1468
|
-
readonly [
|
|
1469
|
-
25,
|
|
1470
|
-
26,
|
|
1471
|
-
27,
|
|
1472
|
-
28,
|
|
1473
|
-
29,
|
|
1474
|
-
30
|
|
1475
|
-
],
|
|
1476
|
-
readonly [
|
|
1477
|
-
28,
|
|
1478
|
-
29,
|
|
1479
|
-
30,
|
|
1480
|
-
31,
|
|
1481
|
-
32,
|
|
1482
|
-
33
|
|
1483
|
-
],
|
|
1484
|
-
readonly [
|
|
1485
|
-
31,
|
|
1486
|
-
32,
|
|
1487
|
-
33,
|
|
1488
|
-
34,
|
|
1489
|
-
35,
|
|
1490
|
-
36
|
|
1491
|
-
]
|
|
1492
|
-
];
|
|
1493
|
-
export type AmericanDoubleStreet = (typeof VALID_AMERICAN_DOUBLE_STREETS)[number];
|
|
1494
|
-
export interface AmericanDoubleStreetBet extends BaseBet {
|
|
1495
|
-
values: AmericanDoubleStreet;
|
|
1496
|
-
}
|
|
1497
|
-
export declare enum Parity {
|
|
1498
|
-
EVEN = "EVEN",
|
|
1499
|
-
ODD = "ODD"
|
|
1500
|
-
}
|
|
1501
|
-
export interface ParityBet extends BaseBet {
|
|
1502
|
-
parity: Parity;
|
|
1503
|
-
}
|
|
1504
|
-
export declare enum Color {
|
|
1505
|
-
RED = "RED",
|
|
1506
|
-
BLACK = "BLACK"
|
|
1507
|
-
}
|
|
1508
|
-
export interface ColorBet extends BaseBet {
|
|
1509
|
-
color: Color;
|
|
1510
|
-
}
|
|
1511
|
-
export declare enum Half {
|
|
1512
|
-
LOW = "LOW",
|
|
1513
|
-
HIGH = "HIGH"
|
|
1514
|
-
}
|
|
1515
|
-
export interface HalfBet extends BaseBet {
|
|
1516
|
-
half: Half;
|
|
1517
|
-
}
|
|
1518
|
-
export declare enum Column {
|
|
1519
|
-
TOP = "TOP",
|
|
1520
|
-
MIDDLE = "MIDDLE",
|
|
1521
|
-
BOTTOM = "BOTTOM"
|
|
1522
|
-
}
|
|
1523
|
-
export interface ColumnBet extends BaseBet {
|
|
1524
|
-
column: Column;
|
|
1525
|
-
}
|
|
1526
|
-
export declare enum Dozen {
|
|
1527
|
-
FIRST = "FIRST",
|
|
1528
|
-
SECOND = "SECOND",
|
|
1529
|
-
THIRD = "THIRD"
|
|
1530
|
-
}
|
|
1531
|
-
export interface DozenBet extends BaseBet {
|
|
1532
|
-
dozen: Dozen;
|
|
1533
|
-
}
|
|
1534
|
-
export interface EuropeanRouletteGameInputs {
|
|
1535
|
-
straightBets: EuropeanStraightBet[];
|
|
1536
|
-
splitBets: EuropeanSplitBet[];
|
|
1537
|
-
streetBets: EuropeanStreetBet[];
|
|
1538
|
-
cornerBets: EuropeanCornerBet[];
|
|
1539
|
-
doubleStreetBets: EuropeanDoubleStreetBet[];
|
|
1540
|
-
parityBets: ParityBet[];
|
|
1541
|
-
colorBets: ColorBet[];
|
|
1542
|
-
halfBets: HalfBet[];
|
|
1543
|
-
columnBets: ColumnBet[];
|
|
1544
|
-
dozenBets: DozenBet[];
|
|
1545
|
-
}
|
|
1546
|
-
export interface AmericanRouletteGameInputs {
|
|
1547
|
-
straightBets: AmericanStraightBet[];
|
|
1548
|
-
splitBets: AmericanSplitBet[];
|
|
1549
|
-
streetBets: AmericanStreetBet[];
|
|
1550
|
-
cornerBets: AmericanCornerBet[];
|
|
1551
|
-
basketBets: AmericanBasketBet[];
|
|
1552
|
-
doubleStreetBets: AmericanDoubleStreetBet[];
|
|
1553
|
-
parityBets: ParityBet[];
|
|
1554
|
-
colorBets: ColorBet[];
|
|
1555
|
-
halfBets: HalfBet[];
|
|
1556
|
-
columnBets: ColumnBet[];
|
|
1557
|
-
dozenBets: DozenBet[];
|
|
1558
|
-
}
|
|
1559
|
-
export declare enum RouletteType {
|
|
1560
|
-
AMERICAN = "AMERICAN",
|
|
1561
|
-
EUROPEAN = "EUROPEAN"
|
|
1562
|
-
}
|
|
1563
|
-
export type RouletteGameInputs = {
|
|
1564
|
-
type: RouletteType.EUROPEAN;
|
|
1565
|
-
inputs: EuropeanRouletteGameInputs;
|
|
1566
|
-
} | {
|
|
1567
|
-
type: RouletteType.AMERICAN;
|
|
1568
|
-
inputs: AmericanRouletteGameInputs;
|
|
1569
|
-
};
|
|
1570
|
-
export interface EuropeanRouletteBetOutcomes {
|
|
1571
|
-
winningBets: EuropeanRouletteGameInputs;
|
|
1572
|
-
losingBets: EuropeanRouletteGameInputs;
|
|
1573
|
-
}
|
|
1574
|
-
export interface AmericanRouletteBetOutcomes {
|
|
1575
|
-
winningBets: AmericanRouletteGameInputs;
|
|
1576
|
-
losingBets: AmericanRouletteGameInputs;
|
|
1577
|
-
}
|
|
1578
|
-
export interface EuropeanRouletteGameOutputs {
|
|
1579
|
-
betOutcomes: EuropeanRouletteBetOutcomes;
|
|
1580
|
-
result: number[];
|
|
1581
|
-
}
|
|
1582
|
-
export interface AmericanRouletteGameOutputs {
|
|
1583
|
-
betOutcomes: AmericanRouletteBetOutcomes;
|
|
1584
|
-
result: number[];
|
|
1585
|
-
}
|
|
1586
|
-
export type RouletteGameOutputs = {
|
|
1587
|
-
type: "european";
|
|
1588
|
-
betOutcomes: EuropeanRouletteBetOutcomes;
|
|
1589
|
-
result: number[];
|
|
1590
|
-
} | {
|
|
1591
|
-
type: "american";
|
|
1592
|
-
betOutcomes: AmericanRouletteBetOutcomes;
|
|
1593
|
-
result: number[];
|
|
1594
|
-
};
|
|
1595
|
-
export declare const PAYOUT_MULTIPLIERS: Record<keyof EuropeanRouletteGameInputs | keyof AmericanRouletteGameInputs, number>;
|
|
1596
|
-
export declare const TOP_COLUMN: number[];
|
|
1597
|
-
export declare const MIDDLE_COLUMN: number[];
|
|
1598
|
-
export declare const BOTTOM_COLUMN: number[];
|
|
1599
|
-
export declare const RED_NUMBERS: number[];
|
|
1600
|
-
export declare const BLACK_NUMBERS: number[];
|
|
1601
|
-
export declare const EUROPEAN_HOUSE_EDGE = 2.7;
|
|
1602
|
-
export declare const AMERICAN_HOUSE_EDGE = 5.3;
|
|
1603
|
-
export type BetPredicate = (bet: BaseBet, result: number) => boolean;
|
|
1604
|
-
declare abstract class BaseRoulette<TInputs extends {
|
|
1605
|
-
straightBets: BaseBet[];
|
|
1606
|
-
splitBets: BaseBet[];
|
|
1607
|
-
streetBets: BaseBet[];
|
|
1608
|
-
cornerBets: BaseBet[];
|
|
1609
|
-
doubleStreetBets: BaseBet[];
|
|
1610
|
-
parityBets: BaseBet[];
|
|
1611
|
-
colorBets: BaseBet[];
|
|
1612
|
-
halfBets: BaseBet[];
|
|
1613
|
-
columnBets: BaseBet[];
|
|
1614
|
-
dozenBets: BaseBet[];
|
|
1615
|
-
}, TOutputs extends {
|
|
1616
|
-
betOutcomes: {
|
|
1617
|
-
winningBets: TInputs;
|
|
1618
|
-
losingBets: TInputs;
|
|
1619
|
-
};
|
|
1620
|
-
result: number[];
|
|
1621
|
-
}> extends Game<TInputs, TOutputs> {
|
|
1622
|
-
constructor();
|
|
1623
|
-
determineGameResult({ generator, gameInputs }: GetGameResultRequest<TInputs>): GameResult<TOutputs>;
|
|
1624
|
-
protected abstract readonly maxNumber: number;
|
|
1625
|
-
protected abstract validateInputs(inputs: TInputs): void;
|
|
1626
|
-
protected abstract readonly betPredicates: Record<keyof TInputs, BetPredicate>;
|
|
1627
|
-
getPayoutDetails(gameInputs: TInputs, gameResult: number): {
|
|
1628
|
-
payoutMultiplier: Big$1.Big;
|
|
1629
|
-
payoutAmount: Big$1.Big;
|
|
1630
|
-
};
|
|
1631
|
-
protected determineBetOutcomes(inputs: TInputs, result: number): {
|
|
1632
|
-
winningBets: TInputs;
|
|
1633
|
-
losingBets: TInputs;
|
|
1634
|
-
};
|
|
1635
|
-
private partitionBets;
|
|
1636
|
-
protected calculateTotalAmount(bets: {
|
|
1637
|
-
amount: Big$1.Big;
|
|
1638
|
-
}[]): Big$1.Big;
|
|
1639
|
-
protected isWinningStraightBet(bet: BaseBet, gameResult: number): boolean;
|
|
1640
|
-
protected isWinningSplitBet(bet: BaseBet, gameResult: number): boolean;
|
|
1641
|
-
protected isWinningStreetBet(bet: BaseBet, gameResult: number): boolean;
|
|
1642
|
-
protected isWinningCornerBet(bet: BaseBet, gameResult: number): boolean;
|
|
1643
|
-
protected isWinningDoubleStreetBet(bet: BaseBet, gameResult: number): boolean;
|
|
1644
|
-
protected isWinningColorBet(bet: BaseBet, gameResult: number): boolean;
|
|
1645
|
-
protected isWinningHalfBet(bet: BaseBet, gameResult: number): boolean;
|
|
1646
|
-
protected isWinningColumnBet(bet: BaseBet, gameResult: number): boolean;
|
|
1647
|
-
protected isWinningDozenBet(bet: BaseBet, gameResult: number): boolean;
|
|
1648
|
-
protected isWinningParityBet(bet: BaseBet, gameResult: number): boolean;
|
|
1649
|
-
protected getBetTotals(inputs: TInputs): Record<keyof TInputs, Big$1.Big>;
|
|
1650
|
-
calculateTotalPayout(totals: Record<keyof TInputs, Big$1.Big>): Big$1.Big;
|
|
1651
|
-
protected calculateTotalBetAmount(totals: Record<keyof TInputs, Big$1.Big>): Big$1.Big;
|
|
1652
|
-
}
|
|
1653
|
-
export declare class EuropeanRoulette extends BaseRoulette<EuropeanRouletteGameInputs, EuropeanRouletteGameOutputs> {
|
|
1654
|
-
protected readonly maxNumber = 36;
|
|
1655
|
-
protected validateInputs(inputs: EuropeanRouletteGameInputs): void;
|
|
1656
|
-
protected readonly betPredicates: Record<keyof EuropeanRouletteGameInputs, BetPredicate>;
|
|
1657
|
-
}
|
|
1658
|
-
export declare class AmericanRoulette extends BaseRoulette<AmericanRouletteGameInputs, AmericanRouletteGameOutputs> {
|
|
1659
|
-
protected readonly maxNumber = 37;
|
|
1660
|
-
protected validateInputs(inputs: AmericanRouletteGameInputs): void;
|
|
1661
|
-
protected readonly betPredicates: Record<keyof AmericanRouletteGameInputs, BetPredicate>;
|
|
1662
|
-
protected isWinningBasketBet(_bet: BaseBet, gameResult: number): boolean;
|
|
1663
|
-
}
|
|
1664
|
-
export declare class Roulette extends Game<RouletteGameInputs, RouletteGameOutputs> {
|
|
1665
|
-
private readonly europeanGame;
|
|
1666
|
-
private readonly americanGame;
|
|
1667
|
-
constructor();
|
|
1668
|
-
protected determineGameResult(request: GetGameResultRequest<RouletteGameInputs>): GameResult<RouletteGameOutputs>;
|
|
1669
|
-
}
|
|
1670
|
-
export declare const validateRouletteGameInputs: (gameInputs: RouletteGameInputs) => void;
|
|
1671
|
-
export declare enum WheelRiskLevel {
|
|
1672
|
-
LOW_RISK = "LOW_RISK",
|
|
1673
|
-
MEDIUM_RISK = "MEDIUM_RISK",
|
|
1674
|
-
HIGH_RISK = "HIGH_RISK"
|
|
1675
|
-
}
|
|
1676
|
-
export declare enum WheelSegments {
|
|
1677
|
-
TEN = 10,
|
|
1678
|
-
TWENTY = 20,
|
|
1679
|
-
THIRTY = 30,
|
|
1680
|
-
FORTY = 40,
|
|
1681
|
-
FIFTY = 50
|
|
1682
|
-
}
|
|
1683
|
-
export interface WheelGameInputs {
|
|
1684
|
-
segments: WheelSegments;
|
|
1685
|
-
riskLevel: WheelRiskLevel;
|
|
1686
|
-
}
|
|
1687
|
-
export declare class Wheel extends Game<WheelGameInputs> {
|
|
1688
|
-
constructor();
|
|
1689
|
-
protected determineGameResult({ generator, gameInputs, edge }: GetGameResultRequest<WheelGameInputs>): GameResult;
|
|
1690
|
-
}
|
|
1691
|
-
export declare enum GameErrorCode {
|
|
1692
|
-
INPUT_VALIDATION_ERROR = "INPUT_VALIDATION_ERROR"
|
|
1693
|
-
}
|
|
1694
|
-
export declare class GameError extends Error {
|
|
1695
|
-
static createValidationError(message: string): GameError;
|
|
1696
|
-
static isGameError(error: unknown): error is GameError;
|
|
1697
|
-
errorCode: GameErrorCode;
|
|
1698
|
-
constructor(errorCode: GameErrorCode, message?: string);
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
export {};
|