const StatePending, StateReady, StateExecuted, StateCancelled
State labels for an operation.
Package timelock is a simplified port of OpenZeppelin's TimelockController.
Package timelock is a simplified port of OpenZeppelin's TimelockController.
Operations are scheduled with a delay (measured in blocks). A scheduled operation becomes executable only once the chain height reaches the operation's ready height. Until then it can be cancelled by anyone (this simplified port omits role-based access control). Once executed or cancelled, an operation is terminal.
Solidity mapping:
State labels for an operation.
BlocksRemaining returns how many blocks remain before op is ready (0 if already ready or past).
Cancel drops a pending or ready operation before it executes. It panics if the operation is unknown or already terminal.
Execute runs a ready operation. It panics if the operation is unknown, already terminal, or not yet ready.
Render implements the standard realm markdown view.
Schedule registers a new operation to run after delayBlocks blocks and returns its id. delayBlocks must be >= 0.
StateOf returns the display state of op at the given chain height.