{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: OracleCallbackRecord

OracleCallbackRecord = object

Defined in: query.ts:2886

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:2888

Callback id (${blockNumber}_${logIndex}).


marketsResolved

marketsResolved: string

Defined in: query.ts:2890

Number of markets resolved in this callback.


gasPrice

gasPrice: string

Defined in: query.ts:2892

tx.gasprice of the callback (wei).


measuredGas

measuredGas: string

Defined in: query.ts:2894

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


overheadGasAttributed

overheadGasAttributed: string

Defined in: query.ts:2896

The governance-calibrated callbackBaseGas term attributed on top.


totalCost

totalCost: string

Defined in: query.ts:2898

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


totalCharged

totalCharged: string

Defined in: query.ts:2900

Σ wei actually charged against market earmarks.


subsidy

subsidy: string

Defined in: query.ts:2902

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


pendingRemaining

pendingRemaining: string

Defined in: query.ts:2904

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


blockNumber

blockNumber: string

Defined in: query.ts:2906

Block the callback landed in (decimal string).


timestamp

timestamp: string

Defined in: query.ts:2908

Timestamp (unix seconds) of the callback.


txHash

txHash: string

Defined in: query.ts:2910

Tx hash of the callback.