@actuallyfair/verifier 0.0.4 → 0.0.6

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.
@@ -1,478 +1,548 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDuelPlinkoPayoutsFromEnum = exports.duelPlinkoRiskFromEnum = exports.duelPlinkoRiskToEnum = exports.isDuelPlinkoRows = exports.isDuelPlinkoRiskKey = exports.getDuelPlinkoPayouts = exports.DUEL_PLINKO_ROWS = exports.DUEL_PLINKO_PAYOUTS = exports.DUEL_PLINKO_RISK_KEYS = void 0;
3
+ exports.getPlinkoPayoutsFromEnum = exports.plinkoPayoutTableFromEnum = exports.plinkoPayoutTableToEnum = exports.isPlinkoPayoutTableKey = exports.getPlinkoPayouts = exports.getPlinkoPayoutTableKey = exports.isPlinkoRows = exports.isPlinkoRiskKey = exports.PLINKO_ROWS = exports.PLINKO_PAYOUT_TABLES = exports.PLINKO_PAYOUT_TABLE_KEYS = exports.PLINKO_RISK_KEYS = void 0;
4
4
  const plinko_1 = require("./generated/context/plinko");
5
- exports.DUEL_PLINKO_RISK_KEYS = ["low", "medium", "high"];
6
- const DUEL_PLINKO_RISK_ENUM_BY_KEY = {
7
- low: plinko_1.DuelPlinkoRisk.DUEL_PLINKO_RISK_LOW,
8
- medium: plinko_1.DuelPlinkoRisk.DUEL_PLINKO_RISK_MEDIUM,
9
- high: plinko_1.DuelPlinkoRisk.DUEL_PLINKO_RISK_HIGH,
5
+ exports.PLINKO_RISK_KEYS = ["low", "medium", "high"];
6
+ exports.PLINKO_PAYOUT_TABLE_KEYS = [
7
+ "duel_8_low",
8
+ "duel_8_medium",
9
+ "duel_8_high",
10
+ "duel_9_low",
11
+ "duel_9_medium",
12
+ "duel_9_high",
13
+ "duel_10_low",
14
+ "duel_10_medium",
15
+ "duel_10_high",
16
+ "duel_11_low",
17
+ "duel_11_medium",
18
+ "duel_11_high",
19
+ "duel_12_low",
20
+ "duel_12_medium",
21
+ "duel_12_high",
22
+ "duel_13_low",
23
+ "duel_13_medium",
24
+ "duel_13_high",
25
+ "duel_14_low",
26
+ "duel_14_medium",
27
+ "duel_14_high",
28
+ "duel_15_low",
29
+ "duel_15_medium",
30
+ "duel_15_high",
31
+ "duel_16_low",
32
+ "duel_16_medium",
33
+ "duel_16_high",
34
+ ];
35
+ const PLINKO_PAYOUT_TABLE_ENUM_BY_KEY = {
36
+ duel_8_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_LOW,
37
+ duel_8_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM,
38
+ duel_8_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_HIGH,
39
+ duel_9_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_LOW,
40
+ duel_9_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM,
41
+ duel_9_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_HIGH,
42
+ duel_10_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_LOW,
43
+ duel_10_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM,
44
+ duel_10_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_HIGH,
45
+ duel_11_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_LOW,
46
+ duel_11_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM,
47
+ duel_11_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_HIGH,
48
+ duel_12_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_LOW,
49
+ duel_12_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM,
50
+ duel_12_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_HIGH,
51
+ duel_13_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_LOW,
52
+ duel_13_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM,
53
+ duel_13_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_HIGH,
54
+ duel_14_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_LOW,
55
+ duel_14_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM,
56
+ duel_14_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_HIGH,
57
+ duel_15_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_LOW,
58
+ duel_15_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM,
59
+ duel_15_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_HIGH,
60
+ duel_16_low: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_LOW,
61
+ duel_16_medium: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM,
62
+ duel_16_high: plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_HIGH,
10
63
  };
11
- const DUEL_PLINKO_RISK_KEY_BY_ENUM = {
12
- [plinko_1.DuelPlinkoRisk.DUEL_PLINKO_RISK_LOW]: "low",
13
- [plinko_1.DuelPlinkoRisk.DUEL_PLINKO_RISK_MEDIUM]: "medium",
14
- [plinko_1.DuelPlinkoRisk.DUEL_PLINKO_RISK_HIGH]: "high",
64
+ const PLINKO_PAYOUT_TABLE_KEY_BY_ENUM = {
65
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_LOW]: "duel_8_low",
66
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_MEDIUM]: "duel_8_medium",
67
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_8_HIGH]: "duel_8_high",
68
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_LOW]: "duel_9_low",
69
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_MEDIUM]: "duel_9_medium",
70
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_9_HIGH]: "duel_9_high",
71
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_LOW]: "duel_10_low",
72
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_MEDIUM]: "duel_10_medium",
73
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_10_HIGH]: "duel_10_high",
74
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_LOW]: "duel_11_low",
75
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_MEDIUM]: "duel_11_medium",
76
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_11_HIGH]: "duel_11_high",
77
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_LOW]: "duel_12_low",
78
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_MEDIUM]: "duel_12_medium",
79
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_12_HIGH]: "duel_12_high",
80
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_LOW]: "duel_13_low",
81
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_MEDIUM]: "duel_13_medium",
82
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_13_HIGH]: "duel_13_high",
83
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_LOW]: "duel_14_low",
84
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_MEDIUM]: "duel_14_medium",
85
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_14_HIGH]: "duel_14_high",
86
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_LOW]: "duel_15_low",
87
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_MEDIUM]: "duel_15_medium",
88
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_15_HIGH]: "duel_15_high",
89
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_LOW]: "duel_16_low",
90
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_MEDIUM]: "duel_16_medium",
91
+ [plinko_1.PlinkoPayoutTable.PLINKO_PAYOUT_TABLE_DUEL_16_HIGH]: "duel_16_high",
15
92
  };
16
- exports.DUEL_PLINKO_PAYOUTS = {
17
- "8": {
18
- "low": [
19
- 5.6518011,
20
- 2.11942541,
21
- 1.11017522,
22
- 1.0092502,
23
- 0.5046251,
24
- 1.0092502,
25
- 1.11017522,
26
- 2.11942541,
27
- 5.6518011
28
- ],
29
- "medium": [
30
- 13.13061611,
31
- 3.03014218,
32
- 1.31306161,
33
- 0.70703318,
34
- 0.40401896,
35
- 0.70703318,
36
- 1.31306161,
37
- 3.03014218,
38
- 13.13061611
39
- ],
40
- "high": [
41
- 29.2451735,
42
- 4.03381703,
43
- 1.51268139,
44
- 0.30253628,
45
- 0.20169085,
46
- 0.30253628,
47
- 1.51268139,
48
- 4.03381703,
49
- 29.2451735
50
- ]
51
- },
52
- "9": {
53
- "low": [
54
- 5.6518011,
55
- 2.01850039,
56
- 1.61480032,
57
- 1.0092502,
58
- 0.70647514,
59
- 0.70647514,
60
- 1.0092502,
61
- 1.61480032,
62
- 2.01850039,
63
- 5.6518011
64
- ],
65
- "medium": [
66
- 18.13787234,
67
- 4.0306383,
68
- 1.71302128,
69
- 0.90689362,
70
- 0.50382979,
71
- 0.50382979,
72
- 0.90689362,
73
- 1.71302128,
74
- 4.0306383,
75
- 18.13787234
76
- ],
77
- "high": [
78
- 43.36353312,
79
- 7.05917981,
80
- 2.01690852,
81
- 0.60507256,
82
- 0.20169085,
83
- 0.20169085,
84
- 0.60507256,
85
- 2.01690852,
86
- 7.05917981,
87
- 43.36353312
88
- ]
89
- },
90
- "10": {
91
- "low": [
92
- 8.98055474,
93
- 3.02715328,
94
- 1.41267153,
95
- 1.1099562,
96
- 1.00905109,
97
- 0.50452555,
98
- 1.00905109,
99
- 1.1099562,
100
- 1.41267153,
101
- 3.02715328,
102
- 8.98055474
103
- ],
104
- "medium": [
105
- 22.22104265,
106
- 5.05023697,
107
- 2.02009479,
108
- 1.41406635,
109
- 0.60602844,
110
- 0.40401896,
111
- 0.60602844,
112
- 1.41406635,
113
- 2.02009479,
114
- 5.05023697,
115
- 22.22104265
116
- ],
117
- "high": [
118
- 76.64252366,
119
- 10.08454259,
120
- 3.02536278,
121
- 0.90760883,
122
- 0.30253628,
123
- 0.20169085,
124
- 0.30253628,
125
- 0.90760883,
126
- 3.02536278,
127
- 10.08454259,
128
- 76.64252366
129
- ]
130
- },
131
- "11": {
132
- "low": [
133
- 8.4760292,
134
- 3.02715328,
135
- 1.91719708,
136
- 1.31176642,
137
- 1.00905109,
138
- 0.70633577,
139
- 0.70633577,
140
- 1.00905109,
141
- 1.31176642,
142
- 1.91719708,
143
- 3.02715328,
144
- 8.4760292
145
- ],
146
- "medium": [
147
- 24.2124497,
148
- 6.05311243,
149
- 3.02655621,
150
- 1.81593373,
151
- 0.70619645,
152
- 0.50442604,
153
- 0.50442604,
154
- 0.70619645,
155
- 1.81593373,
156
- 3.02655621,
157
- 6.05311243,
158
- 24.2124497
159
- ],
160
- "high": [
161
- 120.89533189,
162
- 14.10445539,
163
- 5.23879772,
164
- 1.41044554,
165
- 0.40298444,
166
- 0.20149222,
167
- 0.20149222,
168
- 0.40298444,
169
- 1.41044554,
170
- 5.23879772,
171
- 14.10445539,
172
- 120.89533189
173
- ]
174
- },
175
- "12": {
176
- "low": [
177
- 10.09299985,
178
- 3.02789996,
179
- 1.61487998,
180
- 1.41301998,
181
- 1.11022998,
182
- 1.00929999,
183
- 0.50464999,
184
- 1.00929999,
185
- 1.11022998,
186
- 1.41301998,
187
- 1.61487998,
188
- 3.02789996,
189
- 10.09299985
190
- ],
191
- "medium": [
192
- 33.30361367,
193
- 11.10120456,
194
- 4.03680166,
195
- 2.01840083,
196
- 1.11012046,
197
- 0.60552025,
198
- 0.30276012,
199
- 0.60552025,
200
- 1.11012046,
201
- 2.01840083,
202
- 4.03680166,
203
- 11.10120456,
204
- 33.30361367
205
- ],
206
- "high": [
207
- 171.34432238,
208
- 24.18978669,
209
- 8.16405301,
210
- 2.01581556,
211
- 0.70553545,
212
- 0.20158156,
213
- 0.20158156,
214
- 0.20158156,
215
- 0.70553545,
216
- 2.01581556,
217
- 8.16405301,
218
- 24.18978669,
219
- 171.34432238
220
- ]
221
- },
222
- "13": {
223
- "low": [
224
- 8.17371699,
225
- 4.03640345,
226
- 3.02730259,
227
- 1.91729164,
228
- 1.21092104,
229
- 0.90819078,
230
- 0.7063706,
231
- 0.7063706,
232
- 0.90819078,
233
- 1.21092104,
234
- 1.91729164,
235
- 3.02730259,
236
- 4.03640345,
237
- 8.17371699
238
- ],
239
- "medium": [
240
- 43.39347736,
241
- 13.11895827,
242
- 6.05490382,
243
- 3.02745191,
244
- 1.31189583,
245
- 0.70640545,
246
- 0.40366025,
247
- 0.40366025,
248
- 0.70640545,
249
- 1.31189583,
250
- 3.02745191,
251
- 6.05490382,
252
- 13.11895827,
253
- 43.39347736
254
- ],
255
- "high": [
256
- 262.13350416,
257
- 37.30361405,
258
- 11.09026364,
259
- 4.03282314,
260
- 1.00820579,
261
- 0.20164116,
262
- 0.20164116,
263
- 0.20164116,
264
- 0.20164116,
265
- 1.00820579,
266
- 4.03282314,
267
- 11.09026364,
268
- 37.30361405,
269
- 262.13350416
270
- ]
271
- },
272
- "14": {
273
- "low": [
274
- 7.16452779,
275
- 4.03635368,
276
- 1.917268,
277
- 1.41272379,
278
- 1.31181495,
279
- 1.10999726,
280
- 1.00908842,
281
- 0.50454421,
282
- 1.00908842,
283
- 1.10999726,
284
- 1.31181495,
285
- 1.41272379,
286
- 1.917268,
287
- 4.03635368,
288
- 7.16452779
289
- ],
290
- "medium": [
291
- 58.5307369,
292
- 15.13725954,
293
- 7.06405445,
294
- 4.03660255,
295
- 1.91738621,
296
- 1.00915064,
297
- 0.50457532,
298
- 0.20183013,
299
- 0.50457532,
300
- 1.00915064,
301
- 1.91738621,
302
- 4.03660255,
303
- 7.06405445,
304
- 15.13725954,
305
- 58.5307369
306
- ],
307
- "high": [
308
- 423.91122183,
309
- 56.52149624,
310
- 18.16762379,
311
- 5.04656216,
312
- 1.91769362,
313
- 0.30279373,
314
- 0.20186249,
315
- 0.20186249,
316
- 0.20186249,
317
- 0.30279373,
318
- 1.91769362,
319
- 5.04656216,
320
- 18.16762379,
321
- 56.52149624,
322
- 423.91122183
323
- ]
324
- },
325
- "15": {
326
- "low": [
327
- 15.13623299,
328
- 8.0726576,
329
- 3.0272466,
330
- 2.0181644,
331
- 1.5136233,
332
- 1.10999042,
333
- 1.0090822,
334
- 0.70635754,
335
- 0.70635754,
336
- 1.0090822,
337
- 1.10999042,
338
- 1.5136233,
339
- 2.0181644,
340
- 3.0272466,
341
- 8.0726576,
342
- 15.13623299
343
- ],
344
- "medium": [
345
- 88.80142344,
346
- 18.16392752,
347
- 11.10017793,
348
- 5.04553542,
349
- 3.02732125,
350
- 1.31183921,
351
- 0.50455354,
352
- 0.30273213,
353
- 0.30273213,
354
- 0.50455354,
355
- 1.31183921,
356
- 3.02732125,
357
- 5.04553542,
358
- 11.10017793,
359
- 18.16392752,
360
- 88.80142344
361
- ],
362
- "high": [
363
- 625.46900798,
364
- 83.73214139,
365
- 27.23816648,
366
- 8.07056784,
367
- 3.02646294,
368
- 0.50441049,
369
- 0.2017642,
370
- 0.2017642,
371
- 0.2017642,
372
- 0.2017642,
373
- 0.50441049,
374
- 3.02646294,
375
- 8.07056784,
376
- 27.23816648,
377
- 83.73214139,
378
- 625.46900798
379
- ]
380
- },
381
- "16": {
382
- "low": [
383
- 16.14566358,
384
- 9.08193576,
385
- 2.01820795,
386
- 1.41274556,
387
- 1.41274556,
388
- 1.21092477,
389
- 1.11001437,
390
- 1.00910397,
391
- 0.50455199,
392
- 1.00910397,
393
- 1.11001437,
394
- 1.21092477,
395
- 1.41274556,
396
- 1.41274556,
397
- 2.01820795,
398
- 9.08193576,
399
- 16.14566358
400
- ],
401
- "medium": [
402
- 111.01307231,
403
- 41.37759968,
404
- 10.09209748,
405
- 5.04604874,
406
- 3.02762924,
407
- 1.51381462,
408
- 1.00920975,
409
- 0.50460487,
410
- 0.30276292,
411
- 0.50460487,
412
- 1.00920975,
413
- 1.51381462,
414
- 3.02762924,
415
- 5.04604874,
416
- 10.09209748,
417
- 41.37759968,
418
- 111.01307231
419
- ],
420
- "high": [
421
- 1009.33110512,
422
- 131.21304367,
423
- 26.24260873,
424
- 9.08397995,
425
- 4.03732442,
426
- 2.01866221,
427
- 0.20186622,
428
- 0.20186622,
429
- 0.20186622,
430
- 0.20186622,
431
- 0.20186622,
432
- 2.01866221,
433
- 4.03732442,
434
- 9.08397995,
435
- 26.24260873,
436
- 131.21304367,
437
- 1009.33110512
438
- ]
439
- }
93
+ exports.PLINKO_PAYOUT_TABLES = {
94
+ duel_8_low: [
95
+ 5.6518011,
96
+ 2.11942541,
97
+ 1.11017522,
98
+ 1.0092502,
99
+ 0.5046251,
100
+ 1.0092502,
101
+ 1.11017522,
102
+ 2.11942541,
103
+ 5.6518011,
104
+ ],
105
+ duel_8_medium: [
106
+ 13.13061611,
107
+ 3.03014218,
108
+ 1.31306161,
109
+ 0.70703318,
110
+ 0.40401896,
111
+ 0.70703318,
112
+ 1.31306161,
113
+ 3.03014218,
114
+ 13.13061611,
115
+ ],
116
+ duel_8_high: [
117
+ 29.2451735,
118
+ 4.03381703,
119
+ 1.51268139,
120
+ 0.30253628,
121
+ 0.20169085,
122
+ 0.30253628,
123
+ 1.51268139,
124
+ 4.03381703,
125
+ 29.2451735,
126
+ ],
127
+ duel_9_low: [
128
+ 5.6518011,
129
+ 2.01850039,
130
+ 1.61480032,
131
+ 1.0092502,
132
+ 0.70647514,
133
+ 0.70647514,
134
+ 1.0092502,
135
+ 1.61480032,
136
+ 2.01850039,
137
+ 5.6518011,
138
+ ],
139
+ duel_9_medium: [
140
+ 18.13787234,
141
+ 4.0306383,
142
+ 1.71302128,
143
+ 0.90689362,
144
+ 0.50382979,
145
+ 0.50382979,
146
+ 0.90689362,
147
+ 1.71302128,
148
+ 4.0306383,
149
+ 18.13787234,
150
+ ],
151
+ duel_9_high: [
152
+ 43.36353312,
153
+ 7.05917981,
154
+ 2.01690852,
155
+ 0.60507256,
156
+ 0.20169085,
157
+ 0.20169085,
158
+ 0.60507256,
159
+ 2.01690852,
160
+ 7.05917981,
161
+ 43.36353312,
162
+ ],
163
+ duel_10_low: [
164
+ 8.98055474,
165
+ 3.02715328,
166
+ 1.41267153,
167
+ 1.1099562,
168
+ 1.00905109,
169
+ 0.50452555,
170
+ 1.00905109,
171
+ 1.1099562,
172
+ 1.41267153,
173
+ 3.02715328,
174
+ 8.98055474,
175
+ ],
176
+ duel_10_medium: [
177
+ 22.22104265,
178
+ 5.05023697,
179
+ 2.02009479,
180
+ 1.41406635,
181
+ 0.60602844,
182
+ 0.40401896,
183
+ 0.60602844,
184
+ 1.41406635,
185
+ 2.02009479,
186
+ 5.05023697,
187
+ 22.22104265,
188
+ ],
189
+ duel_10_high: [
190
+ 76.64252366,
191
+ 10.08454259,
192
+ 3.02536278,
193
+ 0.90760883,
194
+ 0.30253628,
195
+ 0.20169085,
196
+ 0.30253628,
197
+ 0.90760883,
198
+ 3.02536278,
199
+ 10.08454259,
200
+ 76.64252366,
201
+ ],
202
+ duel_11_low: [
203
+ 8.4760292,
204
+ 3.02715328,
205
+ 1.91719708,
206
+ 1.31176642,
207
+ 1.00905109,
208
+ 0.70633577,
209
+ 0.70633577,
210
+ 1.00905109,
211
+ 1.31176642,
212
+ 1.91719708,
213
+ 3.02715328,
214
+ 8.4760292,
215
+ ],
216
+ duel_11_medium: [
217
+ 24.2124497,
218
+ 6.05311243,
219
+ 3.02655621,
220
+ 1.81593373,
221
+ 0.70619645,
222
+ 0.50442604,
223
+ 0.50442604,
224
+ 0.70619645,
225
+ 1.81593373,
226
+ 3.02655621,
227
+ 6.05311243,
228
+ 24.2124497,
229
+ ],
230
+ duel_11_high: [
231
+ 120.89533189,
232
+ 14.10445539,
233
+ 5.23879772,
234
+ 1.41044554,
235
+ 0.40298444,
236
+ 0.20149222,
237
+ 0.20149222,
238
+ 0.40298444,
239
+ 1.41044554,
240
+ 5.23879772,
241
+ 14.10445539,
242
+ 120.89533189,
243
+ ],
244
+ duel_12_low: [
245
+ 10.09299985,
246
+ 3.02789996,
247
+ 1.61487998,
248
+ 1.41301998,
249
+ 1.11022998,
250
+ 1.00929999,
251
+ 0.50464999,
252
+ 1.00929999,
253
+ 1.11022998,
254
+ 1.41301998,
255
+ 1.61487998,
256
+ 3.02789996,
257
+ 10.09299985,
258
+ ],
259
+ duel_12_medium: [
260
+ 33.30361367,
261
+ 11.10120456,
262
+ 4.03680166,
263
+ 2.01840083,
264
+ 1.11012046,
265
+ 0.60552025,
266
+ 0.30276012,
267
+ 0.60552025,
268
+ 1.11012046,
269
+ 2.01840083,
270
+ 4.03680166,
271
+ 11.10120456,
272
+ 33.30361367,
273
+ ],
274
+ duel_12_high: [
275
+ 171.34432238,
276
+ 24.18978669,
277
+ 8.16405301,
278
+ 2.01581556,
279
+ 0.70553545,
280
+ 0.20158156,
281
+ 0.20158156,
282
+ 0.20158156,
283
+ 0.70553545,
284
+ 2.01581556,
285
+ 8.16405301,
286
+ 24.18978669,
287
+ 171.34432238,
288
+ ],
289
+ duel_13_low: [
290
+ 8.17371699,
291
+ 4.03640345,
292
+ 3.02730259,
293
+ 1.91729164,
294
+ 1.21092104,
295
+ 0.90819078,
296
+ 0.7063706,
297
+ 0.7063706,
298
+ 0.90819078,
299
+ 1.21092104,
300
+ 1.91729164,
301
+ 3.02730259,
302
+ 4.03640345,
303
+ 8.17371699,
304
+ ],
305
+ duel_13_medium: [
306
+ 43.39347736,
307
+ 13.11895827,
308
+ 6.05490382,
309
+ 3.02745191,
310
+ 1.31189583,
311
+ 0.70640545,
312
+ 0.40366025,
313
+ 0.40366025,
314
+ 0.70640545,
315
+ 1.31189583,
316
+ 3.02745191,
317
+ 6.05490382,
318
+ 13.11895827,
319
+ 43.39347736,
320
+ ],
321
+ duel_13_high: [
322
+ 262.13350416,
323
+ 37.30361405,
324
+ 11.09026364,
325
+ 4.03282314,
326
+ 1.00820579,
327
+ 0.20164116,
328
+ 0.20164116,
329
+ 0.20164116,
330
+ 0.20164116,
331
+ 1.00820579,
332
+ 4.03282314,
333
+ 11.09026364,
334
+ 37.30361405,
335
+ 262.13350416,
336
+ ],
337
+ duel_14_low: [
338
+ 7.16452779,
339
+ 4.03635368,
340
+ 1.917268,
341
+ 1.41272379,
342
+ 1.31181495,
343
+ 1.10999726,
344
+ 1.00908842,
345
+ 0.50454421,
346
+ 1.00908842,
347
+ 1.10999726,
348
+ 1.31181495,
349
+ 1.41272379,
350
+ 1.917268,
351
+ 4.03635368,
352
+ 7.16452779,
353
+ ],
354
+ duel_14_medium: [
355
+ 58.5307369,
356
+ 15.13725954,
357
+ 7.06405445,
358
+ 4.03660255,
359
+ 1.91738621,
360
+ 1.00915064,
361
+ 0.50457532,
362
+ 0.20183013,
363
+ 0.50457532,
364
+ 1.00915064,
365
+ 1.91738621,
366
+ 4.03660255,
367
+ 7.06405445,
368
+ 15.13725954,
369
+ 58.5307369,
370
+ ],
371
+ duel_14_high: [
372
+ 423.91122183,
373
+ 56.52149624,
374
+ 18.16762379,
375
+ 5.04656216,
376
+ 1.91769362,
377
+ 0.30279373,
378
+ 0.20186249,
379
+ 0.20186249,
380
+ 0.20186249,
381
+ 0.30279373,
382
+ 1.91769362,
383
+ 5.04656216,
384
+ 18.16762379,
385
+ 56.52149624,
386
+ 423.91122183,
387
+ ],
388
+ duel_15_low: [
389
+ 15.13623299,
390
+ 8.0726576,
391
+ 3.0272466,
392
+ 2.0181644,
393
+ 1.5136233,
394
+ 1.10999042,
395
+ 1.0090822,
396
+ 0.70635754,
397
+ 0.70635754,
398
+ 1.0090822,
399
+ 1.10999042,
400
+ 1.5136233,
401
+ 2.0181644,
402
+ 3.0272466,
403
+ 8.0726576,
404
+ 15.13623299,
405
+ ],
406
+ duel_15_medium: [
407
+ 88.80142344,
408
+ 18.16392752,
409
+ 11.10017793,
410
+ 5.04553542,
411
+ 3.02732125,
412
+ 1.31183921,
413
+ 0.50455354,
414
+ 0.30273213,
415
+ 0.30273213,
416
+ 0.50455354,
417
+ 1.31183921,
418
+ 3.02732125,
419
+ 5.04553542,
420
+ 11.10017793,
421
+ 18.16392752,
422
+ 88.80142344,
423
+ ],
424
+ duel_15_high: [
425
+ 625.46900798,
426
+ 83.73214139,
427
+ 27.23816648,
428
+ 8.07056784,
429
+ 3.02646294,
430
+ 0.50441049,
431
+ 0.2017642,
432
+ 0.2017642,
433
+ 0.2017642,
434
+ 0.2017642,
435
+ 0.50441049,
436
+ 3.02646294,
437
+ 8.07056784,
438
+ 27.23816648,
439
+ 83.73214139,
440
+ 625.46900798,
441
+ ],
442
+ duel_16_low: [
443
+ 16.14566358,
444
+ 9.08193576,
445
+ 2.01820795,
446
+ 1.41274556,
447
+ 1.41274556,
448
+ 1.21092477,
449
+ 1.11001437,
450
+ 1.00910397,
451
+ 0.50455199,
452
+ 1.00910397,
453
+ 1.11001437,
454
+ 1.21092477,
455
+ 1.41274556,
456
+ 1.41274556,
457
+ 2.01820795,
458
+ 9.08193576,
459
+ 16.14566358,
460
+ ],
461
+ duel_16_medium: [
462
+ 111.01307231,
463
+ 41.37759968,
464
+ 10.09209748,
465
+ 5.04604874,
466
+ 3.02762924,
467
+ 1.51381462,
468
+ 1.00920975,
469
+ 0.50460487,
470
+ 0.30276292,
471
+ 0.50460487,
472
+ 1.00920975,
473
+ 1.51381462,
474
+ 3.02762924,
475
+ 5.04604874,
476
+ 10.09209748,
477
+ 41.37759968,
478
+ 111.01307231,
479
+ ],
480
+ duel_16_high: [
481
+ 1009.33110512,
482
+ 131.21304367,
483
+ 26.24260873,
484
+ 9.08397995,
485
+ 4.03732442,
486
+ 2.01866221,
487
+ 0.20186622,
488
+ 0.20186622,
489
+ 0.20186622,
490
+ 0.20186622,
491
+ 0.20186622,
492
+ 2.01866221,
493
+ 4.03732442,
494
+ 9.08397995,
495
+ 26.24260873,
496
+ 131.21304367,
497
+ 1009.33110512,
498
+ ],
440
499
  };
441
- const DUEL_PLINKO_ROW_VALUES = Object.keys(exports.DUEL_PLINKO_PAYOUTS)
442
- .map((value) => Number.parseInt(value, 10))
500
+ const PLINKO_ROW_VALUES = Array.from(new Set(exports.PLINKO_PAYOUT_TABLE_KEYS.map((key) => Number.parseInt(key.split("_")[1] ?? "", 10))))
443
501
  .filter((value) => Number.isFinite(value))
444
502
  .sort((a, b) => a - b);
445
- exports.DUEL_PLINKO_ROWS = {
446
- min: DUEL_PLINKO_ROW_VALUES[0] ?? 0,
447
- max: DUEL_PLINKO_ROW_VALUES[DUEL_PLINKO_ROW_VALUES.length - 1] ?? 0,
503
+ exports.PLINKO_ROWS = {
504
+ min: PLINKO_ROW_VALUES[0] ?? 0,
505
+ max: PLINKO_ROW_VALUES[PLINKO_ROW_VALUES.length - 1] ?? 0,
448
506
  };
449
- function getDuelPlinkoPayouts(rows, risk) {
450
- return exports.DUEL_PLINKO_PAYOUTS[rows]?.[risk] ?? [];
451
- }
452
- exports.getDuelPlinkoPayouts = getDuelPlinkoPayouts;
453
- function isDuelPlinkoRiskKey(value) {
454
- return exports.DUEL_PLINKO_RISK_KEYS.includes(value);
507
+ function isPlinkoRiskKey(value) {
508
+ return exports.PLINKO_RISK_KEYS.includes(value);
455
509
  }
456
- exports.isDuelPlinkoRiskKey = isDuelPlinkoRiskKey;
457
- function isDuelPlinkoRows(rows) {
510
+ exports.isPlinkoRiskKey = isPlinkoRiskKey;
511
+ function isPlinkoRows(rows) {
458
512
  return (Number.isInteger(rows) &&
459
- rows >= exports.DUEL_PLINKO_ROWS.min &&
460
- rows <= exports.DUEL_PLINKO_ROWS.max);
513
+ rows >= exports.PLINKO_ROWS.min &&
514
+ rows <= exports.PLINKO_ROWS.max);
515
+ }
516
+ exports.isPlinkoRows = isPlinkoRows;
517
+ function getPlinkoPayoutTableKey(rows, risk) {
518
+ if (!isPlinkoRows(rows)) {
519
+ return null;
520
+ }
521
+ const key = `duel_${rows}_${risk}`;
522
+ return isPlinkoPayoutTableKey(key) ? key : null;
523
+ }
524
+ exports.getPlinkoPayoutTableKey = getPlinkoPayoutTableKey;
525
+ function getPlinkoPayouts(key) {
526
+ return exports.PLINKO_PAYOUT_TABLES[key] ?? [];
527
+ }
528
+ exports.getPlinkoPayouts = getPlinkoPayouts;
529
+ function isPlinkoPayoutTableKey(value) {
530
+ return exports.PLINKO_PAYOUT_TABLE_KEYS.includes(value);
461
531
  }
462
- exports.isDuelPlinkoRows = isDuelPlinkoRows;
463
- function duelPlinkoRiskToEnum(value) {
464
- return DUEL_PLINKO_RISK_ENUM_BY_KEY[value];
532
+ exports.isPlinkoPayoutTableKey = isPlinkoPayoutTableKey;
533
+ function plinkoPayoutTableToEnum(value) {
534
+ return PLINKO_PAYOUT_TABLE_ENUM_BY_KEY[value];
465
535
  }
466
- exports.duelPlinkoRiskToEnum = duelPlinkoRiskToEnum;
467
- function duelPlinkoRiskFromEnum(value) {
468
- return DUEL_PLINKO_RISK_KEY_BY_ENUM[value] ?? null;
536
+ exports.plinkoPayoutTableToEnum = plinkoPayoutTableToEnum;
537
+ function plinkoPayoutTableFromEnum(value) {
538
+ return PLINKO_PAYOUT_TABLE_KEY_BY_ENUM[value] ?? null;
469
539
  }
470
- exports.duelPlinkoRiskFromEnum = duelPlinkoRiskFromEnum;
471
- function getDuelPlinkoPayoutsFromEnum(rows, risk) {
472
- const key = duelPlinkoRiskFromEnum(risk);
540
+ exports.plinkoPayoutTableFromEnum = plinkoPayoutTableFromEnum;
541
+ function getPlinkoPayoutsFromEnum(value) {
542
+ const key = plinkoPayoutTableFromEnum(value);
473
543
  if (!key) {
474
544
  return [];
475
545
  }
476
- return getDuelPlinkoPayouts(rows, key);
546
+ return getPlinkoPayouts(key);
477
547
  }
478
- exports.getDuelPlinkoPayoutsFromEnum = getDuelPlinkoPayoutsFromEnum;
548
+ exports.getPlinkoPayoutsFromEnum = getPlinkoPayoutsFromEnum;