ProxyFactory

Git Source

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

NameTypeDescription
admin_addressOwner 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

NameTypeDescription
channelbytes32Channel value used in the broadcast event for indexing purposes
owneraddressThe address used as an admin for the proxy
implementationaddressThe initial proxy implementation
cdatabytesThe initial calldata