Skip to content

EVM Contract Status Lifecycle

This lifecycle tracks the status of the off-chain contract record in our database as it moves from creation to deployment and finally to an archived state.

Lifecycle Diagram

PENDING_DEPLOYMENTDEPLOYMENT_IN_PROGRESSACTIVEARCHIVED

Status Definitions

StatusDescription
PENDING_DEPLOYMENTThe Offer has been approved, and a contract record has been created, but it has not yet been sent to the blockchain.
DEPLOYMENT_IN_PROGRESSA deployment transaction has been broadcast to the network. The system is awaiting confirmation.
ACTIVEThe contract is successfully deployed, its address is confirmed, and it is fully operational.
ARCHIVEDThe underlying Offer has been completed (EXITED/REPAID), and this contract record is now archived.

Key Transitions

  • Deploy Contract (PENDING_DEPLOYMENTDEPLOYMENT_IN_PROGRESS)

    • Trigger: An administrator initiates the deployment for a legally approved Offer.

    • Action: The system broadcasts the deployment transaction to the specified network, stores the resulting deployment_tx_hash, and updates the status.

  • Confirm Deployment (DEPLOYMENT_IN_PROGRESSACTIVE)

    • Trigger: A background service (blockchain listener) confirms the deployment transaction has been successfully mined.

    • Action: The system parses the transaction receipt to get the contract address, stores it, and updates the status to ACTIVE.

  • Archive Contract (ACTIVEARCHIVED)

    • Trigger: The linked Offer's status changes to EXITED/REPAID.

    • Action: The system automatically updates the contract record's status to ARCHIVED.