@rolly-dev/wasm-signer 1.21.0 → 1.22.0
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/node/rolly_wasm_signer.d.ts +20 -20
- package/dist/node/rolly_wasm_signer.js +36 -36
- package/dist/node/rolly_wasm_signer_bg.wasm +0 -0
- package/dist/node/rolly_wasm_signer_bg.wasm.d.ts +5 -5
- package/dist/node-inline/rolly_wasm_signer.d.ts +20 -20
- package/dist/node-inline/rolly_wasm_signer.js +37 -37
- package/dist/node-inline/rolly_wasm_signer.mjs +34 -34
- package/dist/node-inline/rolly_wasm_signer_bg.wasm.d.ts +5 -5
- package/dist/web/rolly_wasm_signer.d.ts +25 -25
- package/dist/web/rolly_wasm_signer.js +32 -32
- package/dist/web/rolly_wasm_signer_bg.wasm +0 -0
- package/dist/web/rolly_wasm_signer_bg.wasm.d.ts +5 -5
- package/js/browser.mjs +3 -3
- package/js/index.d.ts +3 -3
- package/js/node-inline.cjs +3 -3
- package/js/node-inline.mjs +3 -3
- package/js/node.cjs +3 -3
- package/js/node.mjs +3 -3
- package/js/react.mjs +6 -6
- package/package.json +1 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const amount_split: (a: number, b: bigint) => void;
|
|
5
|
+
export const aviato_rtp_percent: () => number;
|
|
5
6
|
export const coinflip_multiplier_x10000: () => number;
|
|
6
|
-
export const coinflip_rtp_percent: () => number;
|
|
7
7
|
export const compute_address_hash: (a: number, b: number, c: number) => void;
|
|
8
|
-
export const
|
|
8
|
+
export const compute_aviato_point: (a: number, b: number) => number;
|
|
9
9
|
export const compute_drawn_keno: (a: number, b: number, c: number) => void;
|
|
10
10
|
export const compute_multi_dice: (a: number) => bigint;
|
|
11
|
+
export const compute_payout_aviato: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
11
12
|
export const compute_payout_coinflip: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
12
|
-
export const compute_payout_crash: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
13
13
|
export const compute_payout_dice: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number) => void;
|
|
14
14
|
export const compute_payout_keno: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number) => void;
|
|
15
15
|
export const compute_payout_limbo: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
@@ -35,6 +35,7 @@ export const keno_is_valid_config: (a: number, b: number) => number;
|
|
|
35
35
|
export const keno_multiplier_table: (a: number, b: number, c: number) => void;
|
|
36
36
|
export const keno_numbers_range: () => number;
|
|
37
37
|
export const keno_rtp_x100: (a: number, b: number) => bigint;
|
|
38
|
+
export const limbo_rtp_percent: () => number;
|
|
38
39
|
export const make_main_leaf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
39
40
|
export const plinko_all_rtp_x100: () => number;
|
|
40
41
|
export const plinko_is_valid_config: (a: number, b: number, c: number) => number;
|
|
@@ -50,10 +51,9 @@ export const seed_hash_truncated: (a: number, b: number, c: number) => void;
|
|
|
50
51
|
export const session_public_key: (a: number, b: number, c: number, d: bigint) => void;
|
|
51
52
|
export const string_to_user_seed: (a: number, b: number, c: number) => void;
|
|
52
53
|
export const string_to_user_seed_hex: (a: number, b: number, c: number) => void;
|
|
53
|
-
export const
|
|
54
|
+
export const coinflip_rtp_percent: () => number;
|
|
54
55
|
export const dice_rtp_percent: () => number;
|
|
55
56
|
export const keno_max_picks: () => number;
|
|
56
|
-
export const limbo_rtp_percent: () => number;
|
|
57
57
|
export const goldilocks_modulus: () => bigint;
|
|
58
58
|
export const __wbindgen_export: (a: number) => void;
|
|
59
59
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export function amount_split(amount: bigint): Uint32Array;
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Aviato RTP percent (99). Canonical source for backend/frontend.
|
|
17
|
+
*/
|
|
18
|
+
export function aviato_rtp_percent(): number;
|
|
19
|
+
|
|
15
20
|
/**
|
|
16
21
|
* CoinFlip multiplier × 10000 (19800 = 1.98×). Canonical source for backend/frontend.
|
|
17
22
|
*/
|
|
@@ -29,12 +34,12 @@ export function coinflip_rtp_percent(): number;
|
|
|
29
34
|
export function compute_address_hash(address_hex: string): BigUint64Array;
|
|
30
35
|
|
|
31
36
|
/**
|
|
32
|
-
* Extract
|
|
37
|
+
* Extract aviato point (×100) from Poseidon2 random output.
|
|
33
38
|
*
|
|
34
39
|
* `random` must be exactly 4 elements.
|
|
35
|
-
* Returns the clamped
|
|
40
|
+
* Returns the clamped aviato multiplier ×100 (100..=1_000_000, i.e. 1.00x..10000.00x).
|
|
36
41
|
*/
|
|
37
|
-
export function
|
|
42
|
+
export function compute_aviato_point(random: BigUint64Array): number;
|
|
38
43
|
|
|
39
44
|
/**
|
|
40
45
|
* Extract the 10 drawn numbers from Poseidon2 random output using
|
|
@@ -54,28 +59,28 @@ export function compute_drawn_keno(random: BigUint64Array): Uint8Array;
|
|
|
54
59
|
export function compute_multi_dice(win_numbers: number): bigint;
|
|
55
60
|
|
|
56
61
|
/**
|
|
57
|
-
* Full
|
|
62
|
+
* Full aviato payout computation — pure integer arithmetic, zero floats.
|
|
58
63
|
*
|
|
59
|
-
* `random`: 4 Goldilocks field elements (Poseidon2 output).
|
|
64
|
+
* `random`: 4 Goldilocks field elements (Poseidon2 output of server_seed).
|
|
60
65
|
* `bet_atomic`: bet in atomic units (1 USDT = 1_000_000).
|
|
61
|
-
* `
|
|
66
|
+
* `cashout_x100`: multiplier at which the user cashed out (×100).
|
|
67
|
+
* - 0 = user did NOT cash out (loss).
|
|
68
|
+
* - 100..=1_000_000 = user stopped at this multiplier.
|
|
62
69
|
*
|
|
63
|
-
* Returns `BigUint64Array[4]`: `[win_amount,
|
|
70
|
+
* Returns `BigUint64Array[4]`: `[win_amount, aviato_x100, is_win (0|1), multiplier×10000]`.
|
|
64
71
|
*/
|
|
65
|
-
export function
|
|
72
|
+
export function compute_payout_aviato(random: BigUint64Array, bet_atomic: bigint, cashout_x100: number): BigUint64Array;
|
|
66
73
|
|
|
67
74
|
/**
|
|
68
|
-
* Full
|
|
75
|
+
* Full coinflip payout computation — pure integer arithmetic, zero floats.
|
|
69
76
|
*
|
|
70
|
-
* `random`: 4 Goldilocks field elements (Poseidon2 output
|
|
77
|
+
* `random`: 4 Goldilocks field elements (Poseidon2 output).
|
|
71
78
|
* `bet_atomic`: bet in atomic units (1 USDT = 1_000_000).
|
|
72
|
-
* `
|
|
73
|
-
* - 0 = user did NOT cash out (loss).
|
|
74
|
-
* - 100..=1_000_000 = user stopped at this multiplier.
|
|
79
|
+
* `prediction`: 0 or 1.
|
|
75
80
|
*
|
|
76
|
-
* Returns `BigUint64Array[4]`: `[win_amount,
|
|
81
|
+
* Returns `BigUint64Array[4]`: `[win_amount, roll (0|1), is_win (0|1), multiplier×10000]`.
|
|
77
82
|
*/
|
|
78
|
-
export function
|
|
83
|
+
export function compute_payout_coinflip(random: BigUint64Array, bet_atomic: bigint, prediction: number): BigUint64Array;
|
|
79
84
|
|
|
80
85
|
/**
|
|
81
86
|
* Full dice payout computation — pure integer arithmetic, zero floats.
|
|
@@ -206,11 +211,6 @@ export function compute_server_seed_hash(server_seed: BigUint64Array): BigUint64
|
|
|
206
211
|
*/
|
|
207
212
|
export function compute_user_seed_binding(game_id: number, bet: bigint, pred_hash: BigUint64Array, secret: BigUint64Array): BigUint64Array;
|
|
208
213
|
|
|
209
|
-
/**
|
|
210
|
-
* Crash RTP percent (99). Canonical source for backend/frontend.
|
|
211
|
-
*/
|
|
212
|
-
export function crash_rtp_percent(): number;
|
|
213
|
-
|
|
214
214
|
/**
|
|
215
215
|
* Derive a session key from 32 bytes of entropy (e.g. MetaMask signature).
|
|
216
216
|
*
|
|
@@ -481,14 +481,14 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
481
481
|
export interface InitOutput {
|
|
482
482
|
readonly memory: WebAssembly.Memory;
|
|
483
483
|
readonly amount_split: (a: number, b: bigint) => void;
|
|
484
|
+
readonly aviato_rtp_percent: () => number;
|
|
484
485
|
readonly coinflip_multiplier_x10000: () => number;
|
|
485
|
-
readonly coinflip_rtp_percent: () => number;
|
|
486
486
|
readonly compute_address_hash: (a: number, b: number, c: number) => void;
|
|
487
|
-
readonly
|
|
487
|
+
readonly compute_aviato_point: (a: number, b: number) => number;
|
|
488
488
|
readonly compute_drawn_keno: (a: number, b: number, c: number) => void;
|
|
489
489
|
readonly compute_multi_dice: (a: number) => bigint;
|
|
490
|
+
readonly compute_payout_aviato: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
490
491
|
readonly compute_payout_coinflip: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
491
|
-
readonly compute_payout_crash: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
492
492
|
readonly compute_payout_dice: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number) => void;
|
|
493
493
|
readonly compute_payout_keno: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number) => void;
|
|
494
494
|
readonly compute_payout_limbo: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
@@ -514,6 +514,7 @@ export interface InitOutput {
|
|
|
514
514
|
readonly keno_multiplier_table: (a: number, b: number, c: number) => void;
|
|
515
515
|
readonly keno_numbers_range: () => number;
|
|
516
516
|
readonly keno_rtp_x100: (a: number, b: number) => bigint;
|
|
517
|
+
readonly limbo_rtp_percent: () => number;
|
|
517
518
|
readonly make_main_leaf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
518
519
|
readonly plinko_all_rtp_x100: () => number;
|
|
519
520
|
readonly plinko_is_valid_config: (a: number, b: number, c: number) => number;
|
|
@@ -529,10 +530,9 @@ export interface InitOutput {
|
|
|
529
530
|
readonly session_public_key: (a: number, b: number, c: number, d: bigint) => void;
|
|
530
531
|
readonly string_to_user_seed: (a: number, b: number, c: number) => void;
|
|
531
532
|
readonly string_to_user_seed_hex: (a: number, b: number, c: number) => void;
|
|
532
|
-
readonly
|
|
533
|
+
readonly coinflip_rtp_percent: () => number;
|
|
533
534
|
readonly dice_rtp_percent: () => number;
|
|
534
535
|
readonly keno_max_picks: () => number;
|
|
535
|
-
readonly limbo_rtp_percent: () => number;
|
|
536
536
|
readonly goldilocks_modulus: () => bigint;
|
|
537
537
|
readonly __wbindgen_export: (a: number) => void;
|
|
538
538
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
@@ -25,6 +25,15 @@ export function amount_split(amount) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Aviato RTP percent (99). Canonical source for backend/frontend.
|
|
30
|
+
* @returns {number}
|
|
31
|
+
*/
|
|
32
|
+
export function aviato_rtp_percent() {
|
|
33
|
+
const ret = wasm.aviato_rtp_percent();
|
|
34
|
+
return ret >>> 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
28
37
|
/**
|
|
29
38
|
* CoinFlip multiplier × 10000 (19800 = 1.98×). Canonical source for backend/frontend.
|
|
30
39
|
* @returns {number}
|
|
@@ -39,7 +48,7 @@ export function coinflip_multiplier_x10000() {
|
|
|
39
48
|
* @returns {number}
|
|
40
49
|
*/
|
|
41
50
|
export function coinflip_rtp_percent() {
|
|
42
|
-
const ret = wasm.
|
|
51
|
+
const ret = wasm.aviato_rtp_percent();
|
|
43
52
|
return ret >>> 0;
|
|
44
53
|
}
|
|
45
54
|
|
|
@@ -66,17 +75,17 @@ export function compute_address_hash(address_hex) {
|
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
/**
|
|
69
|
-
* Extract
|
|
78
|
+
* Extract aviato point (×100) from Poseidon2 random output.
|
|
70
79
|
*
|
|
71
80
|
* `random` must be exactly 4 elements.
|
|
72
|
-
* Returns the clamped
|
|
81
|
+
* Returns the clamped aviato multiplier ×100 (100..=1_000_000, i.e. 1.00x..10000.00x).
|
|
73
82
|
* @param {BigUint64Array} random
|
|
74
83
|
* @returns {number}
|
|
75
84
|
*/
|
|
76
|
-
export function
|
|
85
|
+
export function compute_aviato_point(random) {
|
|
77
86
|
const ptr0 = passArray64ToWasm0(random, wasm.__wbindgen_export3);
|
|
78
87
|
const len0 = WASM_VECTOR_LEN;
|
|
79
|
-
const ret = wasm.
|
|
88
|
+
const ret = wasm.compute_aviato_point(ptr0, len0);
|
|
80
89
|
return ret >>> 0;
|
|
81
90
|
}
|
|
82
91
|
|
|
@@ -119,24 +128,26 @@ export function compute_multi_dice(win_numbers) {
|
|
|
119
128
|
}
|
|
120
129
|
|
|
121
130
|
/**
|
|
122
|
-
* Full
|
|
131
|
+
* Full aviato payout computation — pure integer arithmetic, zero floats.
|
|
123
132
|
*
|
|
124
|
-
* `random`: 4 Goldilocks field elements (Poseidon2 output).
|
|
133
|
+
* `random`: 4 Goldilocks field elements (Poseidon2 output of server_seed).
|
|
125
134
|
* `bet_atomic`: bet in atomic units (1 USDT = 1_000_000).
|
|
126
|
-
* `
|
|
135
|
+
* `cashout_x100`: multiplier at which the user cashed out (×100).
|
|
136
|
+
* - 0 = user did NOT cash out (loss).
|
|
137
|
+
* - 100..=1_000_000 = user stopped at this multiplier.
|
|
127
138
|
*
|
|
128
|
-
* Returns `BigUint64Array[4]`: `[win_amount,
|
|
139
|
+
* Returns `BigUint64Array[4]`: `[win_amount, aviato_x100, is_win (0|1), multiplier×10000]`.
|
|
129
140
|
* @param {BigUint64Array} random
|
|
130
141
|
* @param {bigint} bet_atomic
|
|
131
|
-
* @param {number}
|
|
142
|
+
* @param {number} cashout_x100
|
|
132
143
|
* @returns {BigUint64Array}
|
|
133
144
|
*/
|
|
134
|
-
export function
|
|
145
|
+
export function compute_payout_aviato(random, bet_atomic, cashout_x100) {
|
|
135
146
|
try {
|
|
136
147
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
137
148
|
const ptr0 = passArray64ToWasm0(random, wasm.__wbindgen_export3);
|
|
138
149
|
const len0 = WASM_VECTOR_LEN;
|
|
139
|
-
wasm.
|
|
150
|
+
wasm.compute_payout_aviato(retptr, ptr0, len0, bet_atomic, cashout_x100);
|
|
140
151
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
141
152
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
142
153
|
var v2 = getArrayU64FromWasm0(r0, r1).slice();
|
|
@@ -148,26 +159,24 @@ export function compute_payout_coinflip(random, bet_atomic, prediction) {
|
|
|
148
159
|
}
|
|
149
160
|
|
|
150
161
|
/**
|
|
151
|
-
* Full
|
|
162
|
+
* Full coinflip payout computation — pure integer arithmetic, zero floats.
|
|
152
163
|
*
|
|
153
|
-
* `random`: 4 Goldilocks field elements (Poseidon2 output
|
|
164
|
+
* `random`: 4 Goldilocks field elements (Poseidon2 output).
|
|
154
165
|
* `bet_atomic`: bet in atomic units (1 USDT = 1_000_000).
|
|
155
|
-
* `
|
|
156
|
-
* - 0 = user did NOT cash out (loss).
|
|
157
|
-
* - 100..=1_000_000 = user stopped at this multiplier.
|
|
166
|
+
* `prediction`: 0 or 1.
|
|
158
167
|
*
|
|
159
|
-
* Returns `BigUint64Array[4]`: `[win_amount,
|
|
168
|
+
* Returns `BigUint64Array[4]`: `[win_amount, roll (0|1), is_win (0|1), multiplier×10000]`.
|
|
160
169
|
* @param {BigUint64Array} random
|
|
161
170
|
* @param {bigint} bet_atomic
|
|
162
|
-
* @param {number}
|
|
171
|
+
* @param {number} prediction
|
|
163
172
|
* @returns {BigUint64Array}
|
|
164
173
|
*/
|
|
165
|
-
export function
|
|
174
|
+
export function compute_payout_coinflip(random, bet_atomic, prediction) {
|
|
166
175
|
try {
|
|
167
176
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
168
177
|
const ptr0 = passArray64ToWasm0(random, wasm.__wbindgen_export3);
|
|
169
178
|
const len0 = WASM_VECTOR_LEN;
|
|
170
|
-
wasm.
|
|
179
|
+
wasm.compute_payout_coinflip(retptr, ptr0, len0, bet_atomic, prediction);
|
|
171
180
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
172
181
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
173
182
|
var v2 = getArrayU64FromWasm0(r0, r1).slice();
|
|
@@ -488,15 +497,6 @@ export function compute_user_seed_binding(game_id, bet, pred_hash, secret) {
|
|
|
488
497
|
}
|
|
489
498
|
}
|
|
490
499
|
|
|
491
|
-
/**
|
|
492
|
-
* Crash RTP percent (99). Canonical source for backend/frontend.
|
|
493
|
-
* @returns {number}
|
|
494
|
-
*/
|
|
495
|
-
export function crash_rtp_percent() {
|
|
496
|
-
const ret = wasm.coinflip_rtp_percent();
|
|
497
|
-
return ret >>> 0;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
500
|
/**
|
|
501
501
|
* Derive a session key from 32 bytes of entropy (e.g. MetaMask signature).
|
|
502
502
|
*
|
|
@@ -536,7 +536,7 @@ export function derive_session_key(sig_bytes) {
|
|
|
536
536
|
* @returns {number}
|
|
537
537
|
*/
|
|
538
538
|
export function dice_rtp_percent() {
|
|
539
|
-
const ret = wasm.
|
|
539
|
+
const ret = wasm.aviato_rtp_percent();
|
|
540
540
|
return ret >>> 0;
|
|
541
541
|
}
|
|
542
542
|
|
|
@@ -790,7 +790,7 @@ export function keno_rtp_x100(risk, pick_count) {
|
|
|
790
790
|
* @returns {number}
|
|
791
791
|
*/
|
|
792
792
|
export function limbo_rtp_percent() {
|
|
793
|
-
const ret = wasm.
|
|
793
|
+
const ret = wasm.limbo_rtp_percent();
|
|
794
794
|
return ret >>> 0;
|
|
795
795
|
}
|
|
796
796
|
|
|
Binary file
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const amount_split: (a: number, b: bigint) => void;
|
|
5
|
+
export const aviato_rtp_percent: () => number;
|
|
5
6
|
export const coinflip_multiplier_x10000: () => number;
|
|
6
|
-
export const coinflip_rtp_percent: () => number;
|
|
7
7
|
export const compute_address_hash: (a: number, b: number, c: number) => void;
|
|
8
|
-
export const
|
|
8
|
+
export const compute_aviato_point: (a: number, b: number) => number;
|
|
9
9
|
export const compute_drawn_keno: (a: number, b: number, c: number) => void;
|
|
10
10
|
export const compute_multi_dice: (a: number) => bigint;
|
|
11
|
+
export const compute_payout_aviato: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
11
12
|
export const compute_payout_coinflip: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
12
|
-
export const compute_payout_crash: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
13
13
|
export const compute_payout_dice: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number) => void;
|
|
14
14
|
export const compute_payout_keno: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number) => void;
|
|
15
15
|
export const compute_payout_limbo: (a: number, b: number, c: number, d: bigint, e: number) => void;
|
|
@@ -35,6 +35,7 @@ export const keno_is_valid_config: (a: number, b: number) => number;
|
|
|
35
35
|
export const keno_multiplier_table: (a: number, b: number, c: number) => void;
|
|
36
36
|
export const keno_numbers_range: () => number;
|
|
37
37
|
export const keno_rtp_x100: (a: number, b: number) => bigint;
|
|
38
|
+
export const limbo_rtp_percent: () => number;
|
|
38
39
|
export const make_main_leaf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
39
40
|
export const plinko_all_rtp_x100: () => number;
|
|
40
41
|
export const plinko_is_valid_config: (a: number, b: number, c: number) => number;
|
|
@@ -50,10 +51,9 @@ export const seed_hash_truncated: (a: number, b: number, c: number) => void;
|
|
|
50
51
|
export const session_public_key: (a: number, b: number, c: number, d: bigint) => void;
|
|
51
52
|
export const string_to_user_seed: (a: number, b: number, c: number) => void;
|
|
52
53
|
export const string_to_user_seed_hex: (a: number, b: number, c: number) => void;
|
|
53
|
-
export const
|
|
54
|
+
export const coinflip_rtp_percent: () => number;
|
|
54
55
|
export const dice_rtp_percent: () => number;
|
|
55
56
|
export const keno_max_picks: () => number;
|
|
56
|
-
export const limbo_rtp_percent: () => number;
|
|
57
57
|
export const goldilocks_modulus: () => bigint;
|
|
58
58
|
export const __wbindgen_export: (a: number) => void;
|
|
59
59
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/js/browser.mjs
CHANGED
|
@@ -2,14 +2,15 @@ export { default as init } from '../dist/web/rolly_wasm_signer.js';
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
amount_split,
|
|
5
|
+
aviato_rtp_percent,
|
|
5
6
|
coinflip_multiplier_x10000,
|
|
6
7
|
coinflip_rtp_percent,
|
|
7
8
|
compute_address_hash,
|
|
8
|
-
|
|
9
|
+
compute_aviato_point,
|
|
9
10
|
compute_drawn_keno,
|
|
10
11
|
compute_multi_dice,
|
|
12
|
+
compute_payout_aviato,
|
|
11
13
|
compute_payout_coinflip,
|
|
12
|
-
compute_payout_crash,
|
|
13
14
|
compute_payout_dice,
|
|
14
15
|
compute_payout_keno,
|
|
15
16
|
compute_payout_limbo,
|
|
@@ -22,7 +23,6 @@ export {
|
|
|
22
23
|
compute_roll_plinko,
|
|
23
24
|
compute_server_seed_hash,
|
|
24
25
|
compute_user_seed_binding,
|
|
25
|
-
crash_rtp_percent,
|
|
26
26
|
derive_session_key,
|
|
27
27
|
dice_rtp_percent,
|
|
28
28
|
encode_keno_selected,
|
package/js/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export {
|
|
2
2
|
amount_split,
|
|
3
|
+
aviato_rtp_percent,
|
|
3
4
|
coinflip_multiplier_x10000,
|
|
4
5
|
coinflip_rtp_percent,
|
|
5
6
|
compute_address_hash,
|
|
6
|
-
|
|
7
|
+
compute_aviato_point,
|
|
7
8
|
compute_drawn_keno,
|
|
8
9
|
compute_multi_dice,
|
|
10
|
+
compute_payout_aviato,
|
|
9
11
|
compute_payout_coinflip,
|
|
10
|
-
compute_payout_crash,
|
|
11
12
|
compute_payout_dice,
|
|
12
13
|
compute_payout_keno,
|
|
13
14
|
compute_payout_limbo,
|
|
@@ -20,7 +21,6 @@ export {
|
|
|
20
21
|
compute_roll_plinko,
|
|
21
22
|
compute_server_seed_hash,
|
|
22
23
|
compute_user_seed_binding,
|
|
23
|
-
crash_rtp_percent,
|
|
24
24
|
derive_session_key,
|
|
25
25
|
dice_rtp_percent,
|
|
26
26
|
encode_keno_selected,
|
package/js/node-inline.cjs
CHANGED
|
@@ -4,14 +4,15 @@ const wasm = require('../dist/node-inline/rolly_wasm_signer.js');
|
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
amount_split: wasm.amount_split,
|
|
7
|
+
aviato_rtp_percent: wasm.aviato_rtp_percent,
|
|
7
8
|
coinflip_multiplier_x10000: wasm.coinflip_multiplier_x10000,
|
|
8
9
|
coinflip_rtp_percent: wasm.coinflip_rtp_percent,
|
|
9
10
|
compute_address_hash: wasm.compute_address_hash,
|
|
10
|
-
|
|
11
|
+
compute_aviato_point: wasm.compute_aviato_point,
|
|
11
12
|
compute_drawn_keno: wasm.compute_drawn_keno,
|
|
12
13
|
compute_multi_dice: wasm.compute_multi_dice,
|
|
14
|
+
compute_payout_aviato: wasm.compute_payout_aviato,
|
|
13
15
|
compute_payout_coinflip: wasm.compute_payout_coinflip,
|
|
14
|
-
compute_payout_crash: wasm.compute_payout_crash,
|
|
15
16
|
compute_payout_dice: wasm.compute_payout_dice,
|
|
16
17
|
compute_payout_keno: wasm.compute_payout_keno,
|
|
17
18
|
compute_payout_limbo: wasm.compute_payout_limbo,
|
|
@@ -24,7 +25,6 @@ module.exports = {
|
|
|
24
25
|
compute_roll_plinko: wasm.compute_roll_plinko,
|
|
25
26
|
compute_server_seed_hash: wasm.compute_server_seed_hash,
|
|
26
27
|
compute_user_seed_binding: wasm.compute_user_seed_binding,
|
|
27
|
-
crash_rtp_percent: wasm.crash_rtp_percent,
|
|
28
28
|
derive_session_key: wasm.derive_session_key,
|
|
29
29
|
dice_rtp_percent: wasm.dice_rtp_percent,
|
|
30
30
|
encode_keno_selected: wasm.encode_keno_selected,
|
package/js/node-inline.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export {
|
|
2
2
|
amount_split,
|
|
3
|
+
aviato_rtp_percent,
|
|
3
4
|
coinflip_multiplier_x10000,
|
|
4
5
|
coinflip_rtp_percent,
|
|
5
6
|
compute_address_hash,
|
|
6
|
-
|
|
7
|
+
compute_aviato_point,
|
|
7
8
|
compute_drawn_keno,
|
|
8
9
|
compute_multi_dice,
|
|
10
|
+
compute_payout_aviato,
|
|
9
11
|
compute_payout_coinflip,
|
|
10
|
-
compute_payout_crash,
|
|
11
12
|
compute_payout_dice,
|
|
12
13
|
compute_payout_keno,
|
|
13
14
|
compute_payout_limbo,
|
|
@@ -20,7 +21,6 @@ export {
|
|
|
20
21
|
compute_roll_plinko,
|
|
21
22
|
compute_server_seed_hash,
|
|
22
23
|
compute_user_seed_binding,
|
|
23
|
-
crash_rtp_percent,
|
|
24
24
|
derive_session_key,
|
|
25
25
|
dice_rtp_percent,
|
|
26
26
|
encode_keno_selected,
|
package/js/node.cjs
CHANGED
|
@@ -4,14 +4,15 @@ const wasm = require('../dist/node/rolly_wasm_signer.js');
|
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
amount_split: wasm.amount_split,
|
|
7
|
+
aviato_rtp_percent: wasm.aviato_rtp_percent,
|
|
7
8
|
coinflip_multiplier_x10000: wasm.coinflip_multiplier_x10000,
|
|
8
9
|
coinflip_rtp_percent: wasm.coinflip_rtp_percent,
|
|
9
10
|
compute_address_hash: wasm.compute_address_hash,
|
|
10
|
-
|
|
11
|
+
compute_aviato_point: wasm.compute_aviato_point,
|
|
11
12
|
compute_drawn_keno: wasm.compute_drawn_keno,
|
|
12
13
|
compute_multi_dice: wasm.compute_multi_dice,
|
|
14
|
+
compute_payout_aviato: wasm.compute_payout_aviato,
|
|
13
15
|
compute_payout_coinflip: wasm.compute_payout_coinflip,
|
|
14
|
-
compute_payout_crash: wasm.compute_payout_crash,
|
|
15
16
|
compute_payout_dice: wasm.compute_payout_dice,
|
|
16
17
|
compute_payout_keno: wasm.compute_payout_keno,
|
|
17
18
|
compute_payout_limbo: wasm.compute_payout_limbo,
|
|
@@ -24,7 +25,6 @@ module.exports = {
|
|
|
24
25
|
compute_roll_plinko: wasm.compute_roll_plinko,
|
|
25
26
|
compute_server_seed_hash: wasm.compute_server_seed_hash,
|
|
26
27
|
compute_user_seed_binding: wasm.compute_user_seed_binding,
|
|
27
|
-
crash_rtp_percent: wasm.crash_rtp_percent,
|
|
28
28
|
derive_session_key: wasm.derive_session_key,
|
|
29
29
|
dice_rtp_percent: wasm.dice_rtp_percent,
|
|
30
30
|
encode_keno_selected: wasm.encode_keno_selected,
|
package/js/node.mjs
CHANGED
|
@@ -5,14 +5,15 @@ const wasm = require('../dist/node/rolly_wasm_signer.js');
|
|
|
5
5
|
|
|
6
6
|
export const {
|
|
7
7
|
amount_split,
|
|
8
|
+
aviato_rtp_percent,
|
|
8
9
|
coinflip_multiplier_x10000,
|
|
9
10
|
coinflip_rtp_percent,
|
|
10
11
|
compute_address_hash,
|
|
11
|
-
|
|
12
|
+
compute_aviato_point,
|
|
12
13
|
compute_drawn_keno,
|
|
13
14
|
compute_multi_dice,
|
|
15
|
+
compute_payout_aviato,
|
|
14
16
|
compute_payout_coinflip,
|
|
15
|
-
compute_payout_crash,
|
|
16
17
|
compute_payout_dice,
|
|
17
18
|
compute_payout_keno,
|
|
18
19
|
compute_payout_limbo,
|
|
@@ -25,7 +26,6 @@ export const {
|
|
|
25
26
|
compute_roll_plinko,
|
|
26
27
|
compute_server_seed_hash,
|
|
27
28
|
compute_user_seed_binding,
|
|
28
|
-
crash_rtp_percent,
|
|
29
29
|
derive_session_key,
|
|
30
30
|
dice_rtp_percent,
|
|
31
31
|
encode_keno_selected,
|
package/js/react.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import init, {
|
|
3
3
|
amount_split,
|
|
4
|
+
aviato_rtp_percent,
|
|
4
5
|
coinflip_multiplier_x10000,
|
|
5
6
|
coinflip_rtp_percent,
|
|
6
7
|
compute_address_hash,
|
|
7
|
-
|
|
8
|
+
compute_aviato_point,
|
|
8
9
|
compute_drawn_keno,
|
|
9
10
|
compute_multi_dice,
|
|
11
|
+
compute_payout_aviato,
|
|
10
12
|
compute_payout_coinflip,
|
|
11
|
-
compute_payout_crash,
|
|
12
13
|
compute_payout_dice,
|
|
13
14
|
compute_payout_keno,
|
|
14
15
|
compute_payout_limbo,
|
|
@@ -21,7 +22,6 @@ import init, {
|
|
|
21
22
|
compute_roll_plinko,
|
|
22
23
|
compute_server_seed_hash,
|
|
23
24
|
compute_user_seed_binding,
|
|
24
|
-
crash_rtp_percent,
|
|
25
25
|
derive_session_key,
|
|
26
26
|
dice_rtp_percent,
|
|
27
27
|
encode_keno_selected,
|
|
@@ -68,14 +68,15 @@ function guard(fn) {
|
|
|
68
68
|
|
|
69
69
|
const fns = {
|
|
70
70
|
amount_split: guard(amount_split),
|
|
71
|
+
aviato_rtp_percent: guard(aviato_rtp_percent),
|
|
71
72
|
coinflip_multiplier_x10000: guard(coinflip_multiplier_x10000),
|
|
72
73
|
coinflip_rtp_percent: guard(coinflip_rtp_percent),
|
|
73
74
|
compute_address_hash: guard(compute_address_hash),
|
|
74
|
-
|
|
75
|
+
compute_aviato_point: guard(compute_aviato_point),
|
|
75
76
|
compute_drawn_keno: guard(compute_drawn_keno),
|
|
76
77
|
compute_multi_dice: guard(compute_multi_dice),
|
|
78
|
+
compute_payout_aviato: guard(compute_payout_aviato),
|
|
77
79
|
compute_payout_coinflip: guard(compute_payout_coinflip),
|
|
78
|
-
compute_payout_crash: guard(compute_payout_crash),
|
|
79
80
|
compute_payout_dice: guard(compute_payout_dice),
|
|
80
81
|
compute_payout_keno: guard(compute_payout_keno),
|
|
81
82
|
compute_payout_limbo: guard(compute_payout_limbo),
|
|
@@ -88,7 +89,6 @@ const fns = {
|
|
|
88
89
|
compute_roll_plinko: guard(compute_roll_plinko),
|
|
89
90
|
compute_server_seed_hash: guard(compute_server_seed_hash),
|
|
90
91
|
compute_user_seed_binding: guard(compute_user_seed_binding),
|
|
91
|
-
crash_rtp_percent: guard(crash_rtp_percent),
|
|
92
92
|
derive_session_key: guard(derive_session_key),
|
|
93
93
|
dice_rtp_percent: guard(dice_rtp_percent),
|
|
94
94
|
encode_keno_selected: guard(encode_keno_selected),
|