@rolly-dev/witness-core 0.2.2 → 0.3.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.
package/index.d.ts
CHANGED
|
@@ -124,6 +124,11 @@ export interface ProcessTxRequest {
|
|
|
124
124
|
gameMode?: number
|
|
125
125
|
predictionLo?: number
|
|
126
126
|
predictionHi?: number
|
|
127
|
+
/**
|
|
128
|
+
* Blackjack only: base stake (decimal string). The engine replays the round
|
|
129
|
+
* from this to derive the TOTAL staked (recorded as `amount`) and the win.
|
|
130
|
+
*/
|
|
131
|
+
baseBet?: string
|
|
127
132
|
userSecretRandom?: Buffer
|
|
128
133
|
useGameLock?: boolean
|
|
129
134
|
maxBlockTimestamp?: string
|
|
@@ -272,6 +277,17 @@ export declare class MerkleEngine {
|
|
|
272
277
|
/** Spendable balance minus all frozen buckets (withdrawal + game locks). */
|
|
273
278
|
getAvailable(userId: number): bigint
|
|
274
279
|
getSeedHash(userId: number): Buffer
|
|
280
|
+
/**
|
|
281
|
+
* Read-only reveal of the user's current committed full server seed (64 LE
|
|
282
|
+
* bytes = 8 limbs). The blackjack backend needs it at DEAL time to unfold
|
|
283
|
+
* the fair shoe and run the round off-chain before the single settle
|
|
284
|
+
* `in_house_bet`. This does NOT advance the seed chain: it returns the seed
|
|
285
|
+
* already committed by the previous slot's `next_seed_hash`, and the
|
|
286
|
+
* eventual blackjack settle IHB is the next tx to consume / rotate it (so
|
|
287
|
+
* the backend MUST keep the round the next IHB for this user). Returns an
|
|
288
|
+
* all-zero 64-byte buffer when the user has no initialized seed yet.
|
|
289
|
+
*/
|
|
290
|
+
getServerSeed(userId: number): Buffer
|
|
275
291
|
getPkHash(userId: number): Buffer
|
|
276
292
|
getAddressHash(userId: number): Buffer
|
|
277
293
|
getLockedTotal(userId: number): bigint
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|