HaiProxy

Git Source

Inherits: Ownable, IHaiProxy

This contract is an ownable proxy to execute batched transactions in the protocol contracts

The proxy executes a delegate call to an Actions contract, which have the logic to execute the batched transactions

Functions

constructor

constructor(address _owner) Ownable(_owner);

Parameters

NameTypeDescription
_owneraddressThe owner of the proxy contract

execute

Executes a call to the target contract through a delegate call

The proxy will call the target through a delegate call (the target must not be a direct protocol contract)

function execute(address _target, bytes memory _data) external payable onlyOwner returns (bytes memory _response);

Parameters

NameTypeDescription
_targetaddressAddress of the target Actions contract
_databytesEncoded data of the transaction to execute

Returns

NameTypeDescription
_responsebytesThe raw response of the target call