{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: OracleBindRecord

OracleBindRecord = object

Defined in: query.ts:2265

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


oracleQuestionId

oracleQuestionId: string

Defined in: query.ts:2268

Question the bind belongs to (decimal string).


bindIndex

bindIndex: number

Defined in: query.ts:2270

1-based lifetime bind sequence on the question.


operatorId

operatorId: number

Defined in: query.ts:2272

Operator whose earmark funds this market's resolve.


measuredGas

measuredGas: string | null

Defined in: query.ts:2274

gasleft()-wrapped measured gas of the resolve slice; null until resolved.


overheadShare

overheadShare: string | null

Defined in: query.ts:2276

Pro-rata share of the callback overhead gas; null until resolved.


cost

cost: string | null

Defined in: query.ts:2278

Exact wei the resolve cost worked out to; null until resolved.


charged

charged: string | null

Defined in: query.ts:2281

Wei actually charged against this market's earmark; null until resolved (== min(cost, reserve)).


subsidy

subsidy: string | null

Defined in: query.ts:2284

cost − charged: the reserve-capped shortfall the hub subsidised; null until resolved.


resolvedAt

resolvedAt: string | null

Defined in: query.ts:2287

Timestamp the resolve cost was charged (MarketResolveCharged); null until resolved — the resolved flag is simply resolvedAt != null.


boundAtBlock

boundAtBlock: string

Defined in: query.ts:2288


boundAtTimestamp

boundAtTimestamp: string

Defined in: query.ts:2289


txHash

txHash: string

Defined in: query.ts:2290