Skip to main content

Panoptic factory

Deploys an options market on top of an existing Uniswap v3 pool.

Methods​

deployToNewPool​

function deployToNewPool(address _v3PoolAddress) external nonpayable returns (address newPoolAddress)

Parameters​

NameTypeDescription
_v3PoolAddressaddressundefined

Returns​

NameTypeDescription
newPoolAddressaddressundefined

owner​

function owner() external view returns (address)

Returns the address of the current owner.

Returns​

NameTypeDescription
_0addressundefined

renounceOwnership​

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

sfpm​

function sfpm() external view returns (contract ISemiFungiblePositionManager)

Returns​

NameTypeDescription
_0contract ISemiFungiblePositionManagerundefined

transferOwnership​

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters​

NameTypeDescription
newOwneraddressundefined

Events​

OwnershipTransferred​

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

PoolDeployed​

event PoolDeployed(address poolAddress, address uniSwapPool)

Parameters​

NameTypeDescription
poolAddressaddressundefined
uniSwapPooladdressundefined

ABI​

PanopticFactory ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "_SFPM",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "poolAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "uniSwapPool",
"type": "address"
}
],
"name": "PoolDeployed",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_v3PoolAddress",
"type": "address"
}
],
"name": "deployToNewPool",
"outputs": [
{
"internalType": "address",
"name": "newPoolAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "sfpm",
"outputs": [
{
"internalType": "contract ISemiFungiblePositionManager",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]