Firewall Configuration
You add and remove policies for your protocol by interacting with the Firewall contract.
Global Policies
Global Policies apply to all of your protocol's transactions, regardless of the method that was triggered.
To add a global policy, call the addGlobalPolicy() method.
To remove a global policy, call the removeGlobalPolicy() method.
Per-Method Policies
Per-Method Policies apply to specific method on your contract, based on the contract's name and the method's signature hash. These are useful in cases where you want to apply a policy on a select set of methods.
To add a per-method policy, call the addPolicy() method.
To remove a per-method policy, call the removePolicy() method.
Last updated