Skip to content
On this page

Interface: JudgedClassifyStateInput

Defined in: pledge-core/src/types.ts:591 (opens in a new tab)

ClassifyStateInput with the key-holder checks of the pledge and of every outcome and abandonment that verified for it (3.9.0, SPEC §11 item 16): any unread makes the state unchecked. Refused envelopes are already out, since their checks failed.

ExtendsLink to this section

PropertiesLink to this section

PropertyTypeDescriptionDefined in
abandonmentAbandonmentEnvelope | nullInherited from ClassifyStateInput.abandonmentpledge-core/src/types.ts:554 (opens in a new tab)
chain?{ blockTimes?: Record<number, string>; tip_height: number; tip_time: string; }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.Inherited from ClassifyStateInput.chainpledge-core/src/types.ts:562 (opens in a new tab)
chain.blockTimes?Record<number, string>Optional override mapping a specific block to its mined-time.Inherited from -pledge-core/src/types.ts:568 (opens in a new tab)
chain.tip_heightnumberHighest seen block height.Inherited from -pledge-core/src/types.ts:564 (opens in a new tab)
chain.tip_timestringWall-clock ISO 8601 UTC of tip_height.Inherited from -pledge-core/src/types.ts:566 (opens in a new tab)
contradictoryOutcomes?OutcomeEnvelope[]Further outcome envelopes from authorized resolvers, verified by the caller (verifyOutcome). With outcome they may come in any order: the earliest settling one in force classifies the pledge. The resolver's own contradiction counts only when dated before that outcome's dispute_window_ends_at; a swearer counter-claim in force always counts (→ disputed). With no dispute.mechanism, such a dispute times out to expired_unresolved at expires_at.Inherited from ClassifyStateInput.contradictoryOutcomespledge-core/src/types.ts:580 (opens in a new tab)
keyHoldersKeyHolderCheck[]Inherited from -pledge-core/src/types.ts:592 (opens in a new tab)
nowstringISO 8601 UTC.Inherited from ClassifyStateInput.nowpledge-core/src/types.ts:556 (opens in a new tab)
outcomeOutcomeEnvelope | nullInherited from ClassifyStateInput.outcomepledge-core/src/types.ts:553 (opens in a new tab)
pledgePledgeEnvelopeInherited from ClassifyStateInput.pledgepledge-core/src/types.ts:552 (opens in a new tab)