StatePending
untyped string// scheduled, not yet ready
Value
"Pending"
StateReady
untyped string// ready height reached, awaiting execution
Value
"Ready"
StateExecuted
untyped string// terminal
Value
"Executed"
StateCancelled
untyped string// terminal
Value
"Cancelled"
Operation
typeOperation is a single scheduled action.
Value
timelock.Operation
ops
*v0.Tree// key: paddedKey(id) -> \*Operation
- OID
- 0d499e…5344:4
ops details
nextID
intValue
1
Schedule
func(action string, delayBlocks int) intSchedule registers a new operation to run after delayBlocks blocks and returns its id. delayBlocks must be >= 0.
- OID
- 0d499e…5344:7
Schedule details
Execute
func(id int)Execute runs a ready operation. It panics if the operation is unknown, already terminal, or not yet ready.
- OID
- 0d499e…5344:9
Execute details
Cancel
func(id int)Cancel drops a pending or ready operation before it executes. It panics if the operation is unknown or already terminal.
- OID
- 0d499e…5344:10
Cancel details
mustGet
func(id int) *timelock.OperationmustGet returns the operation or panics if absent.
- OID
- 0d499e…5344:11
mustGet details
paddedKey
func(id int) stringpaddedKey returns a fixed-width, lexicographically sortable key for an id so avl iteration yields operations in id order.
- OID
- 0d499e…5344:12
paddedKey details
StateOf
func(op *timelock.Operation, height int64) stringStateOf returns the display state of op at the given chain height.
- OID
- 0d499e…5344:13
StateOf details
BlocksRemaining
func(op *timelock.Operation, height int64) int64BlocksRemaining returns how many blocks remain before op is ready (0 if already ready or past).
- OID
- 0d499e…5344:14
BlocksRemaining details
Render
func(path string) stringRender implements the standard realm markdown view.
- OID
- 0d499e…5344:15