access-control:schedule
Schedule a delayed operation on an AccessManager for later execution with access-control:execute-scheduled.
Syntax
Section titled “Syntax”access-control:schedule <manager> <target> <signature> [...params]Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
manager |
address |
AccessManager address |
target |
address |
Managed contract address |
signature |
write-abi |
Function to call on the target |
[...params] |
any |
Arguments matching the signature types |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--when |
number |
Unix timestamp at which the operation becomes executable (default 0 = as soon as the delay allows) |
Examples
Section titled “Examples”load access-control
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
# Queue a delayed call for as soon as the execution delay allowsaccess-control:schedule $manager $token "setDuration(uint256)" 31536000
# Or pick an explicit execution timeaccess-control:schedule $manager $token "setDuration(uint256)" 31536000 --when 1767225600- The sender must hold the role required for the call; scheduling starts the execution-delay clock attached to their grant.
- Scheduled operations expire one week after becoming executable.
See Also
Section titled “See Also”- access-control:execute-scheduled — run it once ready
- access-control:cancel-scheduled — cancel it
- @access-control.operationSchedule — check the timer