ProxyFactory
Inherits: IProxyFactory, Administrable
Author: mortimr @ Kiln
Proxy Factory deploys proxy that are setup to work and give the ownership to a configurable owner.
Unstructured Storage Friendly
Functions
constructor
constructor(address admin_);
Parameters
| Name | Type | Description |
|---|---|---|
admin_ | address | Owner of this factory, allowed to deploy proxies |
deploy
Deploys a new proxy ready to be used.
function deploy(bytes32 channel, address owner, address implementation, bytes calldata cdata)
external
onlyAdmin
returns (address newProxy);
Parameters
| Name | Type | Description |
|---|---|---|
channel | bytes32 | Channel value used in the broadcast event for indexing purposes |
owner | address | The address used as an admin for the proxy |
implementation | address | The initial proxy implementation |
cdata | bytes | The initial calldata |