IRestriction

Git Source

Author: Matter Labs

Note: security-contact: security@matterlabs.dev

Functions

getSupportsRestrictionMagic

A method used to check that the contract supports this interface.

function getSupportsRestrictionMagic() external view returns (bytes32);

Returns

NameTypeDescription
<none>bytes32Returns the RESTRICTION_MAGIC

validateCall

Ensures that the invoker has the required role to call the function.

function validateCall(Call calldata _call, address _invoker) external view;

Parameters

NameTypeDescription
_callCallThe call data.
_invokeraddressThe address of the invoker.