IOptionPSFactory
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
Name | Type | Description |
---|---|---|
args | OptionPSArgs | The arguments used to deploy the proxy |
Returns
Name | Type | Description |
---|---|---|
proxy | address | The proxy address |
isDeployed | bool | Whether 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;
}