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;

proxies

Mapping of user addresses to proxy instances

mapping(address _owner => IHaiProxy) public proxies;

nonces

Mapping of the next nonce to be used for the specified owner

mapping(address _owner => uint256 nonce) public nonces;

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);