Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 833 Bytes

File metadata and controls

29 lines (19 loc) · 833 Bytes

Proposal contract flow

flowchart TD
    A[Contract] --> B[Create]
    B --> D[OutOfFunds]
    D --> B
    B --> E[Canceled]
    D --> F[Killed]
    E --> F[Killed]
Loading

Create

Contract object is created, storage is initialized. Billing cycles are enabled.

Out Of Funds

Contract state is set to Out Of Funds when the wallet of the users does not contain enough tokens to pay for deployment. A grace period can be implemented here so the workload is not instantly removed.

If the wallet of the user is funded again, the chain will set the state of the contract back to create.

Canceled

Contract is canceled by user. Storage is not cleaned up yet and billing will still trigger (this to bill remaining time it was running on a zos node).

Killed

Contract objects are removed, billing cycle is disabled.