@betorigami/games 0.7.32 → 0.7.33
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/dist/index.d.ts +14 -27
- package/dist/index.mjs +466 -466
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -3381,7 +3381,6 @@ export type DiceStartAction = {
|
|
|
3381
3381
|
};
|
|
3382
3382
|
export type KenoStartAction = {
|
|
3383
3383
|
riskLevel: KenoRiskLevel;
|
|
3384
|
-
usdAmount: number;
|
|
3385
3384
|
selectedNumbers: number[];
|
|
3386
3385
|
};
|
|
3387
3386
|
export type EndAction = {
|
|
@@ -3407,33 +3406,27 @@ export interface Action {
|
|
|
3407
3406
|
LIMBO?: LimboStartAction | LimboEndAction;
|
|
3408
3407
|
MINES?: MinesStartAction | EndAction;
|
|
3409
3408
|
};
|
|
3410
|
-
type: OrigamiActionType;
|
|
3411
|
-
actionIndex: number;
|
|
3412
|
-
originalActionId: string | null;
|
|
3413
3409
|
betAmount: string | null;
|
|
3414
3410
|
payoutAmount: string | null;
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
updatedAt: string;
|
|
3418
|
-
webhookId: string;
|
|
3411
|
+
actionIndex: number;
|
|
3412
|
+
type: OrigamiActionType;
|
|
3419
3413
|
}
|
|
3420
3414
|
export interface BetResult {
|
|
3421
3415
|
id: string;
|
|
3422
|
-
|
|
3416
|
+
nonce: number;
|
|
3417
|
+
amount: string;
|
|
3418
|
+
payout: string | null;
|
|
3419
|
+
currency: Currency;
|
|
3423
3420
|
userId: string;
|
|
3424
|
-
tenantUserId: string;
|
|
3425
3421
|
gameId: string;
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
payout: string;
|
|
3429
|
-
afterBalance: string;
|
|
3430
|
-
maxPayoutReached: boolean;
|
|
3431
|
-
multiplier: string;
|
|
3422
|
+
multiplier: string | null;
|
|
3423
|
+
tenantId: string;
|
|
3432
3424
|
clientSeed: string;
|
|
3433
|
-
randomValue: string;
|
|
3425
|
+
randomValue: string | null;
|
|
3434
3426
|
proof: string | null;
|
|
3435
|
-
|
|
3436
|
-
|
|
3427
|
+
afterBalance: string | null;
|
|
3428
|
+
tenantUserId: string;
|
|
3429
|
+
betActions: Array<Action>;
|
|
3437
3430
|
}
|
|
3438
3431
|
export interface HistoryItem {
|
|
3439
3432
|
id: string;
|
|
@@ -3960,19 +3953,13 @@ declare class MinesApi {
|
|
|
3960
3953
|
static calculateMinesMultiplier: (gemsFound: number, mines: number) => BigNumber;
|
|
3961
3954
|
static getState: (bet: BetResult) => MinesState;
|
|
3962
3955
|
}
|
|
3963
|
-
export interface MockMinesSettings {
|
|
3964
|
-
shouldWin: boolean;
|
|
3965
|
-
minePositions?: number[];
|
|
3966
|
-
}
|
|
3967
3956
|
declare class MockMinesApi {
|
|
3968
|
-
private static mockSettings;
|
|
3969
3957
|
private static activeBet;
|
|
3970
3958
|
private static minePositions;
|
|
3971
|
-
static setMockSettings(settings: MockMinesSettings): void;
|
|
3972
3959
|
private static getRandomValueInRange;
|
|
3973
3960
|
private static generateMinePositions;
|
|
3974
|
-
private static
|
|
3975
|
-
private static
|
|
3961
|
+
private static createBetAction;
|
|
3962
|
+
private static createMockBetResult;
|
|
3976
3963
|
startManualBet(data: MinesManualStartArgs): Promise<{
|
|
3977
3964
|
success: true;
|
|
3978
3965
|
data: BetResult;
|