Firewall Documentation
Home
  • Overview
  • Quick Start
    • Using Function Modifiers
    • Using Proxy Patterb
  • Concepts
  • Configuration
    • Governance
    • Firewall Configuration
    • Policy Administration
  • How It Works
  • Smart Contracts
    • Firewall.sol
    • FirewallConsumer.sol
    • FirewallProxyAdmin.sol
    • FirewallTransparentUpgradableProxy.sol
  • Policies
    • Admin Notary
    • Whitelist
    • Approved Calls
    • Approved Patterns
    • Balance Guard
    • EOA Only
    • Method Block
    • Custom Protector
    • Non Reentrant
    • Combined Policies
  • Addresses
  • Glossary
  • Support
  • FAQ
Powered by GitBook
On this page
  • Global Policies
  • Per-Method Policies
  1. Configuration

Firewall Configuration

PreviousGovernanceNextPolicy Administration

Last updated 1 year ago

You add and remove policies for your protocol by interacting with the 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 method.

  2. To remove a global policy, call the 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 method.

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

Firewall
addGlobalPolicy()
removeGlobalPolicy()
addPolicy()
removePolicy()