HaiProxyFactory

Git Source

Inherits: IHaiProxyFactory

This contract is used to deploy new HaiProxy instances

State Variables

isProxy

Mapping of proxy addresses to boolean state

mapping(address _proxyAddress => bool _exists) public isProxy;

Functions

build

Deploys a new proxy instance, setting the caller as the owner

function build() external returns (address payable _proxy);

Returns

NameTypeDescription
_proxyaddress payableAddress of the new proxy

build

Deploys a new proxy instance, setting the caller as the owner

function build(address _owner) external returns (address payable _proxy);

Returns

NameTypeDescription
_proxyaddress payableAddress of the new proxy

_build

Internal method used to deploy a new proxy instance

function _build(address _owner) internal returns (address payable _proxy);