@rolly-dev/wasm-signer 1.17.0 → 1.18.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.
@@ -331,6 +331,11 @@ export function make_main_leaf(balance_hash: BigUint64Array, pk_hash: BigUint64A
331
331
  */
332
332
  export function plinko_is_valid_config(sector: number, rows: number, is_extreme: boolean): boolean;
333
333
 
334
+ /**
335
+ * Whether rows is within the valid Plinko range [8, 16].
336
+ */
337
+ export function plinko_is_valid_rows(rows: number): boolean;
338
+
334
339
  export function plinko_max_rows(): number;
335
340
 
336
341
  export function plinko_min_rows(): number;
@@ -805,6 +805,17 @@ function plinko_is_valid_config(sector, rows, is_extreme) {
805
805
  }
806
806
  exports.plinko_is_valid_config = plinko_is_valid_config;
807
807
 
808
+ /**
809
+ * Whether rows is within the valid Plinko range [8, 16].
810
+ * @param {number} rows
811
+ * @returns {boolean}
812
+ */
813
+ function plinko_is_valid_rows(rows) {
814
+ const ret = wasm.plinko_is_valid_rows(rows);
815
+ return ret !== 0;
816
+ }
817
+ exports.plinko_is_valid_rows = plinko_is_valid_rows;
818
+
808
819
  /**
809
820
  * @returns {number}
810
821
  */
Binary file
@@ -33,6 +33,7 @@ export const keno_multiplier_table: (a: number, b: number, c: number) => void;
33
33
  export const keno_numbers_range: () => number;
34
34
  export const make_main_leaf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
35
35
  export const plinko_is_valid_config: (a: number, b: number, c: number) => number;
36
+ export const plinko_is_valid_rows: (a: number) => number;
36
37
  export const plinko_max_rows: () => number;
37
38
  export const plinko_min_rows: () => number;
38
39
  export const plinko_multiplier_table: (a: number, b: number, c: number, d: number) => void;
@@ -331,6 +331,11 @@ export function make_main_leaf(balance_hash: BigUint64Array, pk_hash: BigUint64A
331
331
  */
332
332
  export function plinko_is_valid_config(sector: number, rows: number, is_extreme: boolean): boolean;
333
333
 
334
+ /**
335
+ * Whether rows is within the valid Plinko range [8, 16].
336
+ */
337
+ export function plinko_is_valid_rows(rows: number): boolean;
338
+
334
339
  export function plinko_max_rows(): number;
335
340
 
336
341
  export function plinko_min_rows(): number;