access-control:label-role
Attach a human-readable label to an AccessManager role (emitted as an event for off-chain indexing).
Syntax
Section titled “Syntax”access-control:label-role <manager> <roleId> <label>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
manager |
address |
AccessManager address |
roleId |
number | string |
Role id (or ADMIN_ROLE / PUBLIC_ROLE) |
label |
string |
Human-readable role name |
Examples
Section titled “Examples”load access-control
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1access-control:label-role $manager 42 "Treasury manager"- Labels are only emitted as
RoleLabelevents for off-chain tooling; they are not stored on-chain.
See Also
Section titled “See Also”- access-control:grant — grant the role to accounts