Skip to content
docs

OmnistonQuoteStore

Defined in: protocol-swap2-omniston/src/provider.ts:140

Persists the quote/build context between getQuote, buildDeposit and registerSignedOrder. On SERVERLESS these run on different instances, so the default in-memory map strands executions (“quote expired”) — inject a durable store there. Values are JSON-safe (byte fields base64-encoded).

optional claim(quoteId, valueJson): boolean | Promise<boolean>

Defined in: protocol-swap2-omniston/src/provider.ts:150

Save only if nothing is stored under quoteId yet, atomically (Redis SET NX, a KV conditional put): true when this call wrote it. A quote id is the platform’s choice, so a context must never be overwritten by another user’s quote under the same id (scan 2026-10-27 modules, F27). Without it the provider checks then saves — fine for one process, racy across instances.

string

string

boolean | Promise<boolean>


clear(quoteId): void | Promise<void>

Defined in: protocol-swap2-omniston/src/provider.ts:143

string

void | Promise<void>


load(quoteId): string | Promise<string | undefined> | undefined

Defined in: protocol-swap2-omniston/src/provider.ts:142

string

string | Promise<string | undefined> | undefined


save(quoteId, valueJson): void | Promise<void>

Defined in: protocol-swap2-omniston/src/provider.ts:141

string

string

void | Promise<void>