{s}omniamarkets

@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / OracleCallbackRecord

Type Alias: OracleCallbackRecord

OracleCallbackRecord = object

Defined in: query.ts:2300

One resolution callback's conservation record (mirror of the indexer OracleCallback entity ← the hub's CallbackAccounted event). NOT per-question (a callback drains across many qids). Invariants: totalCost == (measuredGas + overheadGasAttributed) * gasPrice; Σ of the callback's OracleBindRecord.charged == totalCharged; totalCharged + subsidy == totalCost (the subsidy is the hub's explicit reserve-capped shortfall).

Properties

id

id: string

Defined in: query.ts:2301


marketsResolved

marketsResolved: string

Defined in: query.ts:2303

Number of markets resolved in this callback.


gasPrice

gasPrice: string

Defined in: query.ts:2305

tx.gasprice of the callback (wei).


measuredGas

measuredGas: string

Defined in: query.ts:2307

Σ gasleft()-wrapped measured gas across the resolved markets.


overheadGasAttributed

overheadGasAttributed: string

Defined in: query.ts:2309

The governance-calibrated callbackBaseGas term attributed on top.


totalCost

totalCost: string

Defined in: query.ts:2311

Exact wei distributed: (measuredGas + overhead) * gasPrice.


totalCharged

totalCharged: string

Defined in: query.ts:2313

Σ wei actually charged against market earmarks.


subsidy

subsidy: string

Defined in: query.ts:2315

totalCost − totalCharged: the hub's explicit reserve-capped subsidy.


pendingRemaining

pendingRemaining: string

Defined in: query.ts:2317

Markets still queued after this callback (0 = drain complete).


blockNumber

blockNumber: string

Defined in: query.ts:2318


timestamp

timestamp: string

Defined in: query.ts:2319


txHash

txHash: string

Defined in: query.ts:2320