@betorigami/games 0.7.13 → 0.7.15
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 +13 -4
- package/dist/index.mjs +306 -298
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ declare class SoundController {
|
|
|
45
45
|
}
|
|
46
46
|
export type gameContextType = {
|
|
47
47
|
amount: string;
|
|
48
|
+
updateBetAmount: (newAmount: BigNumber) => void;
|
|
48
49
|
updateBalance: (newAmount: BigNumber) => void;
|
|
49
50
|
currency: Currency;
|
|
50
51
|
isCryptoMode: boolean;
|
|
@@ -53,7 +54,6 @@ export type gameContextType = {
|
|
|
53
54
|
balance: number;
|
|
54
55
|
baseUrl: string;
|
|
55
56
|
authToken: string;
|
|
56
|
-
gameStatsOpen: boolean;
|
|
57
57
|
hotkeysOpenEnabled: boolean;
|
|
58
58
|
volume: number;
|
|
59
59
|
instantBetEnabled: boolean;
|
|
@@ -69,6 +69,12 @@ export type gameContextType = {
|
|
|
69
69
|
declare const gameContext: {
|
|
70
70
|
__context__: gameContextType;
|
|
71
71
|
};
|
|
72
|
+
declare enum OrigamiGame {
|
|
73
|
+
DICE = "DICE",
|
|
74
|
+
MINES = "MINES",
|
|
75
|
+
KENO = "KENO",
|
|
76
|
+
LIMBO = "LIMBO"
|
|
77
|
+
}
|
|
72
78
|
export declare class GameProviderWrapper extends OrigamiElement {
|
|
73
79
|
currency: Currency;
|
|
74
80
|
isTheatreMode: boolean;
|
|
@@ -77,7 +83,7 @@ export declare class GameProviderWrapper extends OrigamiElement {
|
|
|
77
83
|
baseUrl: string;
|
|
78
84
|
authToken: string;
|
|
79
85
|
isCryptoMode: boolean;
|
|
80
|
-
|
|
86
|
+
origamiGame: OrigamiGame;
|
|
81
87
|
private betAmount;
|
|
82
88
|
private autobetNumberOfBets;
|
|
83
89
|
private hotkeysOpenEnabled;
|
|
@@ -87,16 +93,19 @@ export declare class GameProviderWrapper extends OrigamiElement {
|
|
|
87
93
|
private _soundController;
|
|
88
94
|
protected _gameProvider: ContextProvider<typeof gameContext>;
|
|
89
95
|
connectedCallback(): void;
|
|
96
|
+
disconnectedCallback(): void;
|
|
90
97
|
updated(changedProperties: PropertyValues): void;
|
|
91
98
|
get gameData(): gameContextType;
|
|
92
99
|
private updateProviderValue;
|
|
100
|
+
private fetchBalance;
|
|
93
101
|
updateHotkeysOpenEnabled(enabled: boolean): void;
|
|
94
102
|
updateVolume(volume: number): void;
|
|
95
103
|
updateInstantBetEnabled(enabled: boolean): void;
|
|
96
104
|
updateAutobetNumberOfBets(numberOfBets: number): void;
|
|
97
105
|
updateMainWidth(width: number): void;
|
|
106
|
+
updateBetAmount(newAmount: BigNumber): void;
|
|
98
107
|
updateBalance(newAmount: BigNumber): void;
|
|
99
|
-
render(): import("lit-html").TemplateResult<1
|
|
108
|
+
render(): import("lit-html").TemplateResult<1> | undefined;
|
|
100
109
|
}
|
|
101
110
|
declare enum MinesGameOutcome {
|
|
102
111
|
WIN = "WIN",
|
|
@@ -195,7 +204,7 @@ export interface BetResult {
|
|
|
195
204
|
proof: string | null;
|
|
196
205
|
nonce: number;
|
|
197
206
|
completedAt: string | null;
|
|
198
|
-
|
|
207
|
+
betActions: Action[];
|
|
199
208
|
}
|
|
200
209
|
export type AutobetToggleEvent = CustomEvent<AutobetValues & {
|
|
201
210
|
numberOfBets: string;
|