@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.
@@ -51,12 +51,13 @@ export const seed_hash_truncated: (a: number, b: number, c: number) => void;
51
51
  export const session_public_key: (a: number, b: number, c: number, d: bigint) => void;
52
52
  export const string_to_user_seed: (a: number, b: number, c: number) => void;
53
53
  export const string_to_user_seed_hex: (a: number, b: number, c: number) => void;
54
+ export const validate_slot: (a: number, b: number) => void;
54
55
  export const coinflip_rtp_percent: () => number;
55
56
  export const dice_rtp_percent: () => number;
56
57
  export const keno_max_picks: () => number;
57
58
  export const goldilocks_modulus: () => bigint;
58
- export const __wbindgen_export: (a: number) => void;
59
+ export const __wbindgen_export: (a: number, b: number) => number;
60
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
61
+ export const __wbindgen_export3: (a: number) => void;
59
62
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
60
- export const __wbindgen_export2: (a: number, b: number, c: number) => void;
61
- export const __wbindgen_export3: (a: number, b: number) => number;
62
- export const __wbindgen_export4: (a: number, b: number, c: number, d: number) => number;
63
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
@@ -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).
@@ -476,6 +476,16 @@ export function string_to_user_seed(input: string): BigUint64Array;
476
476
  */
477
477
  export function string_to_user_seed_hex(input: string): string;
478
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;
488
+
479
489
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
480
490
 
481
491
  export interface InitOutput {
@@ -530,15 +540,16 @@ export interface InitOutput {
530
540
  readonly session_public_key: (a: number, b: number, c: number, d: bigint) => void;
531
541
  readonly string_to_user_seed: (a: number, b: number, c: number) => void;
532
542
  readonly string_to_user_seed_hex: (a: number, b: number, c: number) => void;
543
+ readonly validate_slot: (a: number, b: number) => void;
533
544
  readonly coinflip_rtp_percent: () => number;
534
545
  readonly dice_rtp_percent: () => number;
535
546
  readonly keno_max_picks: () => number;
536
547
  readonly goldilocks_modulus: () => bigint;
537
- readonly __wbindgen_export: (a: number) => void;
548
+ readonly __wbindgen_export: (a: number, b: number) => number;
549
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
550
+ readonly __wbindgen_export3: (a: number) => void;
538
551
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
539
- readonly __wbindgen_export2: (a: number, b: number, c: number) => void;
540
- readonly __wbindgen_export3: (a: number, b: number) => number;
541
- readonly __wbindgen_export4: (a: number, b: number, c: number, d: number) => number;
552
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
542
553
  }
543
554
 
544
555
  export type SyncInitInput = BufferSource | WebAssembly.Module;