IFirewall
Figment
Firewall
This interface exposes methods to accept calls to admin-level functions of an underlying contract.
Methods
allowExecutor
function allowExecutor(bytes4 _functionSelector, bool _executorCanCall) external nonpayable
Sets the permission for a function selector
Parameters
_functionSelector
bytes4
Method signature on which the permission is changed
_executorCanCall
bool
True if selector is callable by the executor
destination
function destination() external view returns (address)
Retrieve the destination address
Returns
_0
address
The destination address
executor
function executor() external view returns (address)
Retrieve the executor address
Returns
_0
address
The executor address
executorCanCall
function executorCanCall(bytes4 _selector) external view returns (bool)
Returns true if the executor is allowed to perform a call on the given selector
Parameters
_selector
bytes4
The selector to verify
Returns
_0
bool
True if executor is allowed to call
setExecutor
function setExecutor(address _newExecutor) external nonpayable
Sets the executor address
Parameters
_newExecutor
address
New address for the executor
Events
SetDestination
event SetDestination(address indexed destination)
The stored destination address has been changed
Parameters
destination indexed
address
The new destination address
SetExecutor
event SetExecutor(address indexed executor)
The stored executor address has been changed
Parameters
executor indexed
address
The new executor address
SetExecutorPermissions
event SetExecutorPermissions(bytes4 selector, bool status)
The storage permission for a selector has been changed
Parameters
selector
bytes4
The 4 bytes method selector
status
bool
True if executor is allowed
Last updated