live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/pledge-core


@orangecheck/pledge-core / ClassifyStateInput

Interface: ClassifyStateInput

Defined in: pledge-core/src/types.ts:413

Properties

PropertyTypeDescriptionDefined in
<a id="property-abandonment"></a> abandonmentAbandonmentEnvelope | null-pledge-core/src/types.ts:416
<a id="property-chain"></a> chain?&#123; blockTimes?: Record&lt;number, string>; tip_height: number; tip_time: string; &#125;Optional — block-height resolutions need a wall-clock timestamp for the resolves_at.block. If the block isn't yet mined or no chain state is supplied, the SDK treats resolves_at as +infinity.pledge-core/src/types.ts:424
chain.blockTimes?Record&lt;number, string>Optional override mapping a specific block to its mined-time.pledge-core/src/types.ts:430
chain.tip_heightnumberHighest seen block height.pledge-core/src/types.ts:426
chain.tip_timestringWall-clock ISO 8601 UTC of tip_height.pledge-core/src/types.ts:428
<a id="property-contradictoryoutcomes"></a> contradictoryOutcomes?OutcomeEnvelope[]Optional list of additional outcome envelopes from authorized resolvers (e.g. swearer + counterparty in a bilateral pledge). Used to detect contradictory outcomes → disputed.pledge-core/src/types.ts:437
<a id="property-now"></a> nowstringISO 8601 UTC.pledge-core/src/types.ts:418
<a id="property-outcome"></a> outcomeOutcomeEnvelope | null-pledge-core/src/types.ts:415
<a id="property-pledge"></a> pledgePledgeEnvelope-pledge-core/src/types.ts:414