FirewallConsumer.sol
Last updated
Last updated
A parent contract (i.e. you inherit from this contract) which enables your smart contracts to become a .
For usage example, please see our guide.
firewallAdmin
address
Only allows the modified function to run if it was called by the (see ) .
Protects the modified function, so that any calls to it would go through the 's and hooks.
function setFirewall(address _firewall)
_firewall
address
function setFirewallAdmin(address _firewallAdmin)
_firewallAdmin
address
the address of the that manages this
For cases where you want to use policies that provide advanced inspections based on custom data you pass to it, which may differ from msg.data
. All calls to modified functions will go through 's and hooks.
Designed for policies that track and protect calls to internal functions, use this modifier by passing in the function's signature hash.All calls to the modified function will go through the 's and hooks.
Coupled with our , this modifier will allow the policy to check for changes in the state of internal data that is controlled / updated when the modified function is called. Any calls to the modified function will go through the 's and hooks.
Callable only by the , changes the address of the that will be used by this .
the new address
Callable only by the , it changes the address of the who manages the .
the new address
On our GitLab repository: