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
.
Parameter Name | Type | Description |
---|---|---|
|
| the Firewall Proxy that this contract is the Firewall Admin of |
|
| the new Firewall that the Firewall Proxy will use |
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
.
Parameter Name | Type | Description |
---|---|---|
|
| the Firewall Proxy whose Firewall Admin we want to set |
|
| the new Firewall Admin |
View Functions
getProxyFirewall()
function getProxyFirewall(FirewallTransparentUpgradeableProxy proxy)
function getProxyFirewall(FirewallTransparentUpgradeableProxy proxy)
Returns the address of the current Firewall of proxy
.
Parameter Name | Type | Description |
---|---|---|
|
| the |
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).
Parameter Name | Type | Description |
---|---|---|
|
| the |
Source Code
On our GitLab repository: FirewallProxyAdmin.sol
Last updated