Skip to content

API Reference


API Reference / StateChangeReason

Type Alias: StateChangeReason ​

ts
type StateChangeReason = 
  | EngineReason
  | CallerReason
  | "failed";

Defined in: contract/types.ts:335

Every reason a statechange can carry. May grow in a minor release: branch on to.status, which is closed, and treat an unknown reason as informational.