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 NameTypeDescription

proxy

FirewallTransparentUpgradeableProxy

the Firewall Proxy that this contract is the Firewall Admin of

newFirewall

address

the new Firewall that the Firewall Proxy will use

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 NameTypeDescription

proxy

FirewallTransparentUpgradeableProxy

the Firewall Proxy whose Firewall Admin we want to set

newFirewallAdmin

address

View Functions

getProxyFirewall()

function getProxyFirewall(FirewallTransparentUpgradeableProxy proxy)

Returns the address of the current Firewall of proxy.

Parameter NameTypeDescription

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 NameTypeDescription

proxy

FirewallTransparentUpgradeableProxy

the proxy that this contract is the admin of

Source Code

On our GitLab repository: FirewallProxyAdmin.sol

Last updated