@somnia-chain/markets-sdk / index / OracleBindRecord
Type Alias: OracleBindRecord
OracleBindRecord =
object
Defined in: query.ts:2839
One market's bind on a question (mirror of the indexer OracleBind entity,
Oracle v2 §8e). Opens with MarketBound (operator attribution; the paired
ReserveEarmarked locks the reserve), stamped at resolution with
MarketResolveCharged (exact metered charge + subsidy; a surplus is credited
via SurplusCredited). Per-market conservation: charged + subsidy == cost.
Properties
id
id:
string
Defined in: query.ts:2841
Bind id (${oracleQuestionId}_${bindIndex}).
oracleQuestionId
oracleQuestionId:
string
Defined in: query.ts:2843
Question the bind belongs to (decimal string).
bindIndex
bindIndex:
number
Defined in: query.ts:2845
1-based lifetime bind sequence on the question.
operatorId
operatorId:
number
Defined in: query.ts:2847
Operator whose earmark funds this market's resolve.
measuredGas
measuredGas:
string|null
Defined in: query.ts:2849
gasleft()-wrapped measured gas of the resolve slice; null until resolved.
overheadShare
overheadShare:
string|null
Defined in: query.ts:2851
Pro-rata share of the callback overhead gas; null until resolved.
cost
cost:
string|null
Defined in: query.ts:2853
Exact wei the resolve cost worked out to; null until resolved.
charged
charged:
string|null
Defined in: query.ts:2858
Wei actually charged against this market's earmark; null until resolved (== min(cost, reserve)).
subsidy
subsidy:
string|null
Defined in: query.ts:2863
cost − charged: the reserve-capped shortfall the hub subsidised; null until resolved.
resolvedAt
resolvedAt:
string|null
Defined in: query.ts:2868
Timestamp the resolve cost was charged (MarketResolveCharged); null
until resolved — the resolved flag is simply resolvedAt != null.
boundAtBlock
boundAtBlock:
string
Defined in: query.ts:2870
Block the bind landed in (decimal string).
boundAtTimestamp
boundAtTimestamp:
string
Defined in: query.ts:2872
Timestamp (unix seconds) of the bind.
txHash
txHash:
string
Defined in: query.ts:2874
Tx hash of the bind (the market-creation tx).