Skip to main content

Type Alias: OfferStatus

type OfferStatus = "open" | "expired" | "matched" | "cancelled";

Defined in: packages/overcast-core/src/curation/shapes.ts:61

An offer's lifecycle (see offerStatus):

  • open — still matchable: not consumed, not withdrawn, not past expiry.
  • expired — nothing closed it, but its own deadline has passed, so the program will no longer match it. Evaluated against the reader's clock.
  • matched — consumed by an option (named by matchedOptionId).
  • cancelled — withdrawn by its creator, escrow refunded.

Only the last two are terminal facts; open / expired is a snapshot taken when the offer was read, the same caveat OptionState carries.