@rolly-dev/wasm-signer 1.22.0 → 1.24.1
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 +13 -3
- package/dist/node/rolly_wasm_signer.js +305 -67
- package/dist/node/rolly_wasm_signer_bg.wasm +0 -0
- package/dist/node/rolly_wasm_signer_bg.wasm.d.ts +5 -4
- package/dist/node-inline/rolly_wasm_signer.d.ts +13 -3
- package/dist/node-inline/rolly_wasm_signer.js +306 -68
- package/dist/node-inline/rolly_wasm_signer.mjs +306 -69
- package/dist/node-inline/rolly_wasm_signer_bg.wasm.d.ts +5 -4
- package/dist/web/rolly_wasm_signer.d.ts +18 -7
- package/dist/web/rolly_wasm_signer.js +304 -67
- package/dist/web/rolly_wasm_signer_bg.wasm +0 -0
- package/dist/web/rolly_wasm_signer_bg.wasm.d.ts +5 -4
- package/js/browser.mjs +1 -0
- package/js/index.d.ts +1 -0
- package/js/node-inline.cjs +1 -0
- package/js/node-inline.mjs +1 -0
- package/js/node.cjs +1 -0
- package/js/node.mjs +1 -0
- package/js/react.mjs +2 -0
- package/package.json +1 -1
|
@@ -34,9 +34,9 @@ export function coinflip_rtp_percent(): number;
|
|
|
34
34
|
export function compute_address_hash(address_hex: string): BigUint64Array;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Extract aviato point (×100) from
|
|
37
|
+
* Extract aviato point (×100) from raw server seed fields.
|
|
38
38
|
*
|
|
39
|
-
* `random` must be exactly 4 elements.
|
|
39
|
+
* `random` must be exactly 4 elements (first 4 fields of server_seed).
|
|
40
40
|
* Returns the clamped aviato multiplier ×100 (100..=1_000_000, i.e. 1.00x..10000.00x).
|
|
41
41
|
*/
|
|
42
42
|
export function compute_aviato_point(random: BigUint64Array): number;
|
|
@@ -61,7 +61,7 @@ export function compute_multi_dice(win_numbers: number): bigint;
|
|
|
61
61
|
/**
|
|
62
62
|
* Full aviato payout computation — pure integer arithmetic, zero floats.
|
|
63
63
|
*
|
|
64
|
-
* `random`: 4 Goldilocks field elements (
|
|
64
|
+
* `random`: 4 Goldilocks field elements (first 4 fields of raw server_seed).
|
|
65
65
|
* `bet_atomic`: bet in atomic units (1 USDT = 1_000_000).
|
|
66
66
|
* `cashout_x100`: multiplier at which the user cashed out (×100).
|
|
67
67
|
* - 0 = user did NOT cash out (loss).
|
|
@@ -475,3 +475,13 @@ export function string_to_user_seed(input: string): BigUint64Array;
|
|
|
475
475
|
* ```
|
|
476
476
|
*/
|
|
477
477
|
export function string_to_user_seed_hex(input: string): string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Re-check every per-slot circuit constraint on a candidate witness, returning
|
|
481
|
+
* the post-tx effects on success or a typed rejection reason on failure.
|
|
482
|
+
*
|
|
483
|
+
* Input: a JS object matching `tx_validator::SlotInput` (serde-compatible).
|
|
484
|
+
* Output on success: `{ ok: true, effects: SlotEffects }`.
|
|
485
|
+
* Output on failure: `{ ok: false, reason: string }`.
|
|
486
|
+
*/
|
|
487
|
+
export function validate_slot(input: any): any;
|