Module controllers

Source

Functionsยง

assert_controllers
Asserts that the controller IDs are not anonymous and not revoked.
assert_max_number_of_controllers
Asserts that the number of controllers does not exceed the maximum allowed.
caller_is_console
Checks if the caller is the console.
caller_is_observatory
Checks if the caller is the observatory.
caller_is_self
Checks if the caller is the canister itself.
controller_can_write
Checks if a caller is a controller with admin or write scope (permissions).
delete_controllers
Removes specified controllers from the set.
filter_admin_controllers
Filters the set of controllers, returning only those with administrative scope.
init_admin_controllers
Initializes a set of controllers with default administrative scope.
into_controller_ids
Converts the controllers set into a vector of controller IDs.
is_admin_controller
Checks if a caller is an admin controller.
is_controller
Checks if a caller is a controller regardless of its scope (admin, write or submit).
set_controllers
Sets or updates controllers with specified data.