@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
|
Binary file
|
|
Binary file
|