access-control:set-role-guardian
Set the guardian role allowed to cancel scheduled operations of an AccessManager role.
Syntax
Section titled “Syntax”access-control:set-role-guardian <manager> <roleId> <guardianRoleId>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
manager |
address |
AccessManager address |
roleId |
number | string |
Role id (or ADMIN_ROLE / PUBLIC_ROLE) |
guardianRoleId |
number | string |
New guardian role id |
Examples
Section titled “Examples”load access-control
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
# Let role 3 cancel scheduled operations of role 42 membersaccess-control:set-role-guardian $manager 42 3- Guardians can cancel scheduled (delayed) operations of the role’s members.
- Only members of the AccessManager
ADMIN_ROLE(role 0) can change role guardians.
See Also
Section titled “See Also”- access-control:set-role-admin — set the managing role