acl:schedule
Schedule a delayed operation on an AccessManager for later execution with acl:execute-scheduled.
Syntax
Section titled “Syntax”acl: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 acl
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
# Queue a delayed call for as soon as the execution delay allowsacl:schedule $manager $token "setDuration(uint256)" 1y
# Or pick an explicit execution timeacl:schedule $manager $token "setDuration(uint256)" 1y --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”- acl:execute-scheduled — run it once ready
- acl:cancel-scheduled — cancel it
- @acl:operationSchedule — check the timer