@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.
@@ -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 Poseidon2 random output.
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 (Poseidon2 output of server_seed).
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;