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)
function changeFirewall(FirewallTransparentUpgradeableProxy proxy, address newFirewall)
Callable only by the Firewall Proxy Admin, Changes the Firewall of proxy
to newFirewall
.
proxy
FirewallTransparentUpgradeableProxy
newFirewall
address
changeFirewallAdmin()
function changeFirewallAdmin(FirewallTransparentUpgradeableProxy proxy, address newFirewallAdmin)
function changeFirewallAdmin(FirewallTransparentUpgradeableProxy proxy, address newFirewallAdmin)
Callable only by the Firewall Proxy Admin, changes the Firewall Admin of the Firewall Proxy proxy
to newFirewallAdmin
.
proxy
FirewallTransparentUpgradeableProxy
newFirewallAdmin
address
View Functions
getProxyFirewall()
function getProxyFirewall(FirewallTransparentUpgradeableProxy proxy)
function getProxyFirewall(FirewallTransparentUpgradeableProxy proxy)
Returns the address of the current Firewall of proxy
.
proxy
FirewallTransparentUpgradeableProxy
the proxy
that this contract is the admin of
getProxyFirewallAdmin()
function getProxyFirewallAdmin(FirewallTransparentUpgradeableProxy proxy)
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).
proxy
FirewallTransparentUpgradeableProxy
the proxy
that this contract is the admin of
Source Code
On our GitLab repository: FirewallProxyAdmin.sol
Last updated