🗝️Access Control Delegate

An Access Control Delegate manages call permissions for different functions from different operators based on the provided context.

This delegate interface provides loose coupling between TokenTableUnlockerV2 and access control contracts. Any contract implementing this interface is a valid source of truth for the Unlocker.

Functions

hasPermissionToPerform

/**
 * @notice Checks if an operator has the adequate permissions to perform a
 * specific action.
 * @dev We check if the operator is permitted to call a certain function
 * given an actualID and contextual data.
 * @param selector The selector of the calling function.
 * @param context Any useful contextual data. This is usually the call
 * parameters encoded in order.
 * @param operator The entity whose permissions we are trying to verify.
 * @return A boolean value indicating if the operator is permitted to
 * perform a specific action.
 */
function hasPermissionToPerform(
    bytes4 selector,
    bytes calldata context,
    address operator
) external view returns (bool);

Last updated