@rolly-dev/witness-core 1.0.0 → 1.0.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/index.d.ts CHANGED
@@ -317,6 +317,21 @@ export declare class MerkleEngine {
317
317
  releaseSeed(userId: number): void
318
318
  /** Whether `user_id` currently holds a live (non-expired) seed reservation. */
319
319
  isSeedReserved(userId: number): boolean
320
+ /**
321
+ * Open a crash-round auth lock for `user_id`: while set, `process_tx`
322
+ * rejects any nonce-bumping tx (`in_house_bet` / `withdrawal` / `transfer`
323
+ * / `key_register`) with `CrashRoundOpen`, so the account's pre-signed
324
+ * `crash_settle` auto-cashout keeps its bound nonce. Called by the crash
325
+ * game when a bet is placed. NON-consensus; idempotent.
326
+ */
327
+ lockCrashRound(userId: number): void
328
+ /**
329
+ * Release a crash-round auth lock (the round settled or was abandoned).
330
+ * No-op when the user has none.
331
+ */
332
+ unlockCrashRound(userId: number): void
333
+ /** Whether `user_id` currently has an open crash-round auth lock. */
334
+ isCrashRoundLocked(userId: number): boolean
320
335
  getPkHash(userId: number): Buffer
321
336
  getAddressHash(userId: number): Buffer
322
337
  getLockedTotal(userId: number): bigint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolly-dev/witness-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Authoritative native witness-state engine for Rolly ZK-Rollup (Node-API addon)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file