type

Phase

One resumable execution boundary.

Properties

PropertyTypeDescription
IDstringThe ID value.
ModePhaseModeThe Mode value.
PhysicalContractVersionuint32The PhysicalContractVersion value.
BeforePhysicalDigeststringThe BeforePhysicalDigest value.
AfterPhysicalDigeststringThe AfterPhysicalDigest value.
Steps[]StepThe Steps value.

How it works

Modes are transaction, batch, and no_transaction. Batch and no-transaction phases contain exactly one typed step.

Full signature

type Phase struct { ID string `json:"id"` Mode PhaseMode `json:"mode"` PhysicalContractVersion uint32 `json:"physicalContractVersion"` BeforePhysicalDigest string `json:"beforePhysicalDigest"` AfterPhysicalDigest string `json:"afterPhysicalDigest"` Steps []Step `json:"steps"` }

Source migration/phases.go:43