IOptionPSFactory

Git Source

Inherits: IProxyManager

Functions

isProxyDeployed

Return whether proxy is a deployed proxy

function isProxyDeployed(address proxy) external view returns (bool);

getProxyAddress

Return the proxy address and whether it is deployed

function getProxyAddress(OptionPSArgs calldata args) external view returns (address proxy, bool isDeployed);

Parameters

NameTypeDescription
argsOptionPSArgsThe arguments used to deploy the proxy

Returns

NameTypeDescription
proxyaddressThe proxy address
isDeployedboolWhether the proxy is deployed

deployProxy

Deploy a new proxy

function deployProxy(OptionPSArgs calldata args) external returns (address);

Events

ProxyDeployed

event ProxyDeployed(address indexed base, address indexed quote, bool isCall, address proxy);

Errors

OptionPSFactory__ProxyAlreadyDeployed

error OptionPSFactory__ProxyAlreadyDeployed(address proxy);

Structs

OptionPSArgs

struct OptionPSArgs {
    address base;
    address quote;
    bool isCall;
}