FirewallProxyAdmin.sol

FirewallProxyAdmin is Ironblocks' extended version of OpenZeppelins ProxyAdmin.

Everything is the same except that there are additional methods for setting/getting the new fields firewall and firewallAdmin.

Methods

changeFirewall()

function changeFirewall(FirewallTransparentUpgradeableProxy proxy, address newFirewall)

Callable only by the Firewall Proxy Admin, Changes the Firewall of proxy to newFirewall.

Parameter Name
Type
Description

proxy

FirewallTransparentUpgradeableProxy

newFirewall

address

changeFirewallAdmin()

function changeFirewallAdmin(FirewallTransparentUpgradeableProxy proxy, address newFirewallAdmin)

Callable only by the Firewall Proxy Admin, changes the Firewall Admin of the Firewall Proxy proxy to newFirewallAdmin.

Parameter Name
Type
Description

proxy

FirewallTransparentUpgradeableProxy

newFirewallAdmin

address

View Functions

getProxyFirewall()

function getProxyFirewall(FirewallTransparentUpgradeableProxy proxy)

Returns the address of the current Firewall of proxy.

Parameter Name
Type
Description

proxy

FirewallTransparentUpgradeableProxy

the proxy that this contract is the admin of

getProxyFirewallAdmin()

function getProxyFirewallAdmin(FirewallTransparentUpgradeableProxy proxy)

Returns the address of the Firewall Admin of the Firewall that proxy uses (i.e. the admin that can manage firewall policies).

Parameter Name
Type
Description

proxy

FirewallTransparentUpgradeableProxy

the proxy that this contract is the admin of

Source Code

On our GitLab repository: FirewallProxyAdmin.sol

Last updated