@governor:governor.timelockOperationState
State of a TimelockController operation: Unset, Waiting, Ready or Done.
Returns: string
Syntax
Section titled “Syntax”@governor:governor.timelockOperationState(timelock operationId)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
timelock |
address |
TimelockController address |
operationId |
bytes32 |
Operation id (bound by governor:timelock-schedule) |
Examples
Section titled “Examples”load governor
set $timelock 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1set $opId 0x83f6db63dbcae7ea6a625e442c00b74a4707ce6c4a91667c8b5cf01b6f3159a1
print @governor.timelockOperationState($timelock $opId)- Returns
Unset,Waiting,ReadyorDone, derived from the operation timestamp (works on all TimelockController versions).
See Also
Section titled “See Also”- governor:timelock-schedule — binds
$opId - governor:timelock-execute