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