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.

  1. To add a global policy, call the addGlobalPolicy() method.

  2. 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.

  1. To add a per-method policy, call the addPolicy() method.

  2. To remove a per-method policy, call the removePolicy() method.

Last updated