1375 lines
52 KiB
JSON
1375 lines
52 KiB
JSON
{
|
|
"id": "7ba5b6b0f0565c6ca8897c7e56d4cc29",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/interfaces/IUniswapV3Factory.sol": {
|
|
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.5.0;\r\n\r\n/// @title The interface for the Uniswap V3 Factory\r\n/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees\r\ninterface IUniswapV3Factory {\r\n /// @notice Emitted when the owner of the factory is changed\r\n /// @param oldOwner The owner before the owner was changed\r\n /// @param newOwner The owner after the owner was changed\r\n event OwnerChanged(address indexed oldOwner, address indexed newOwner);\r\n\r\n /// @notice Emitted when a pool is created\r\n /// @param token0 The first token of the pool by address sort order\r\n /// @param token1 The second token of the pool by address sort order\r\n /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\r\n /// @param tickSpacing The minimum number of ticks between initialized ticks\r\n /// @param pool The address of the created pool\r\n event PoolCreated(\r\n address indexed token0,\r\n address indexed token1,\r\n uint24 indexed fee,\r\n int24 tickSpacing,\r\n address pool\r\n );\r\n\r\n /// @notice Emitted when a new fee amount is enabled for pool creation via the factory\r\n /// @param fee The enabled fee, denominated in hundredths of a bip\r\n /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee\r\n event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);\r\n\r\n /// @notice Returns the current owner of the factory\r\n /// @dev Can be changed by the current owner via setOwner\r\n /// @return The address of the factory owner\r\n function owner() external view returns (address);\r\n\r\n /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled\r\n /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context\r\n /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee\r\n /// @return The tick spacing\r\n function feeAmountTickSpacing(uint24 fee) external view returns (int24);\r\n\r\n /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist\r\n /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\r\n /// @param tokenA The contract address of either token0 or token1\r\n /// @param tokenB The contract address of the other token\r\n /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\r\n /// @return pool The pool address\r\n function getPool(\r\n address tokenA,\r\n address tokenB,\r\n uint24 fee\r\n ) external view returns (address pool);\r\n\r\n /// @notice Creates a pool for the given two tokens and fee\r\n /// @param tokenA One of the two tokens in the desired pool\r\n /// @param tokenB The other of the two tokens in the desired pool\r\n /// @param fee The desired fee for the pool\r\n /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved\r\n /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments\r\n /// are invalid.\r\n /// @return pool The address of the newly created pool\r\n function createPool(\r\n address tokenA,\r\n address tokenB,\r\n uint24 fee\r\n ) external returns (address pool);\r\n\r\n /// @notice Updates the owner of the factory\r\n /// @dev Must be called by the current owner\r\n /// @param _owner The new owner of the factory\r\n function setOwner(address _owner) external;\r\n\r\n /// @notice Enables a fee amount with the given tickSpacing\r\n /// @dev Fee amounts may never be removed once enabled\r\n /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)\r\n /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount\r\n function enableFeeAmount(uint24 fee, int24 tickSpacing) external;\r\n}\r\n"
|
|
}
|
|
},
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"": [
|
|
"ast"
|
|
],
|
|
"*": [
|
|
"abi",
|
|
"metadata",
|
|
"devdoc",
|
|
"userdoc",
|
|
"storageLayout",
|
|
"evm.legacyAssembly",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers",
|
|
"evm.gasEstimates",
|
|
"evm.assembly"
|
|
]
|
|
}
|
|
},
|
|
"remappings": []
|
|
}
|
|
},
|
|
"output": {
|
|
"contracts": {
|
|
"contracts/interfaces/IUniswapV3Factory.sol": {
|
|
"IUniswapV3Factory": {
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint24",
|
|
"name": "fee",
|
|
"type": "uint24"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "int24",
|
|
"name": "tickSpacing",
|
|
"type": "int24"
|
|
}
|
|
],
|
|
"name": "FeeAmountEnabled",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldOwner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newOwner",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "OwnerChanged",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "token0",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "token1",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint24",
|
|
"name": "fee",
|
|
"type": "uint24"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "int24",
|
|
"name": "tickSpacing",
|
|
"type": "int24"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "pool",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "PoolCreated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenA",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenB",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint24",
|
|
"name": "fee",
|
|
"type": "uint24"
|
|
}
|
|
],
|
|
"name": "createPool",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "pool",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint24",
|
|
"name": "fee",
|
|
"type": "uint24"
|
|
},
|
|
{
|
|
"internalType": "int24",
|
|
"name": "tickSpacing",
|
|
"type": "int24"
|
|
}
|
|
],
|
|
"name": "enableFeeAmount",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint24",
|
|
"name": "fee",
|
|
"type": "uint24"
|
|
}
|
|
],
|
|
"name": "feeAmountTickSpacing",
|
|
"outputs": [
|
|
{
|
|
"internalType": "int24",
|
|
"name": "",
|
|
"type": "int24"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenA",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "tokenB",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint24",
|
|
"name": "fee",
|
|
"type": "uint24"
|
|
}
|
|
],
|
|
"name": "getPool",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "pool",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "owner",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_owner",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setOwner",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"events": {
|
|
"FeeAmountEnabled(uint24,int24)": {
|
|
"params": {
|
|
"fee": "The enabled fee, denominated in hundredths of a bip",
|
|
"tickSpacing": "The minimum number of ticks between initialized ticks for pools created with the given fee"
|
|
}
|
|
},
|
|
"OwnerChanged(address,address)": {
|
|
"params": {
|
|
"newOwner": "The owner after the owner was changed",
|
|
"oldOwner": "The owner before the owner was changed"
|
|
}
|
|
},
|
|
"PoolCreated(address,address,uint24,int24,address)": {
|
|
"params": {
|
|
"fee": "The fee collected upon every swap in the pool, denominated in hundredths of a bip",
|
|
"pool": "The address of the created pool",
|
|
"tickSpacing": "The minimum number of ticks between initialized ticks",
|
|
"token0": "The first token of the pool by address sort order",
|
|
"token1": "The second token of the pool by address sort order"
|
|
}
|
|
}
|
|
},
|
|
"kind": "dev",
|
|
"methods": {
|
|
"createPool(address,address,uint24)": {
|
|
"details": "tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments are invalid.",
|
|
"params": {
|
|
"fee": "The desired fee for the pool",
|
|
"tokenA": "One of the two tokens in the desired pool",
|
|
"tokenB": "The other of the two tokens in the desired pool"
|
|
},
|
|
"returns": {
|
|
"pool": "The address of the newly created pool"
|
|
}
|
|
},
|
|
"enableFeeAmount(uint24,int24)": {
|
|
"details": "Fee amounts may never be removed once enabled",
|
|
"params": {
|
|
"fee": "The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)",
|
|
"tickSpacing": "The spacing between ticks to be enforced for all pools created with the given fee amount"
|
|
}
|
|
},
|
|
"feeAmountTickSpacing(uint24)": {
|
|
"details": "A fee amount can never be removed, so this value should be hard coded or cached in the calling context",
|
|
"params": {
|
|
"fee": "The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee"
|
|
},
|
|
"returns": {
|
|
"_0": "The tick spacing"
|
|
}
|
|
},
|
|
"getPool(address,address,uint24)": {
|
|
"details": "tokenA and tokenB may be passed in either token0/token1 or token1/token0 order",
|
|
"params": {
|
|
"fee": "The fee collected upon every swap in the pool, denominated in hundredths of a bip",
|
|
"tokenA": "The contract address of either token0 or token1",
|
|
"tokenB": "The contract address of the other token"
|
|
},
|
|
"returns": {
|
|
"pool": "The pool address"
|
|
}
|
|
},
|
|
"owner()": {
|
|
"details": "Can be changed by the current owner via setOwner",
|
|
"returns": {
|
|
"_0": "The address of the factory owner"
|
|
}
|
|
},
|
|
"setOwner(address)": {
|
|
"details": "Must be called by the current owner",
|
|
"params": {
|
|
"_owner": "The new owner of the factory"
|
|
}
|
|
}
|
|
},
|
|
"title": "The interface for the Uniswap V3 Factory",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"createPool(address,address,uint24)": "a1671295",
|
|
"enableFeeAmount(uint24,int24)": "8a7c195f",
|
|
"feeAmountTickSpacing(uint24)": "22afcccb",
|
|
"getPool(address,address,uint24)": "1698ee82",
|
|
"owner()": "8da5cb5b",
|
|
"setOwner(address)": "13af4035"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"}],\"name\":\"FeeAmountEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"}],\"name\":\"enableFeeAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"feeAmountTickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"FeeAmountEnabled(uint24,int24)\":{\"params\":{\"fee\":\"The enabled fee, denominated in hundredths of a bip\",\"tickSpacing\":\"The minimum number of ticks between initialized ticks for pools created with the given fee\"}},\"OwnerChanged(address,address)\":{\"params\":{\"newOwner\":\"The owner after the owner was changed\",\"oldOwner\":\"The owner before the owner was changed\"}},\"PoolCreated(address,address,uint24,int24,address)\":{\"params\":{\"fee\":\"The fee collected upon every swap in the pool, denominated in hundredths of a bip\",\"pool\":\"The address of the created pool\",\"tickSpacing\":\"The minimum number of ticks between initialized ticks\",\"token0\":\"The first token of the pool by address sort order\",\"token1\":\"The second token of the pool by address sort order\"}}},\"kind\":\"dev\",\"methods\":{\"createPool(address,address,uint24)\":{\"details\":\"tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments are invalid.\",\"params\":{\"fee\":\"The desired fee for the pool\",\"tokenA\":\"One of the two tokens in the desired pool\",\"tokenB\":\"The other of the two tokens in the desired pool\"},\"returns\":{\"pool\":\"The address of the newly created pool\"}},\"enableFeeAmount(uint24,int24)\":{\"details\":\"Fee amounts may never be removed once enabled\",\"params\":{\"fee\":\"The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)\",\"tickSpacing\":\"The spacing between ticks to be enforced for all pools created with the given fee amount\"}},\"feeAmountTickSpacing(uint24)\":{\"details\":\"A fee amount can never be removed, so this value should be hard coded or cached in the calling context\",\"params\":{\"fee\":\"The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee\"},\"returns\":{\"_0\":\"The tick spacing\"}},\"getPool(address,address,uint24)\":{\"details\":\"tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\",\"params\":{\"fee\":\"The fee collected upon every swap in the pool, denominated in hundredths of a bip\",\"tokenA\":\"The contract address of either token0 or token1\",\"tokenB\":\"The contract address of the other token\"},\"returns\":{\"pool\":\"The pool address\"}},\"owner()\":{\"details\":\"Can be changed by the current owner via setOwner\",\"returns\":{\"_0\":\"The address of the factory owner\"}},\"setOwner(address)\":{\"details\":\"Must be called by the current owner\",\"params\":{\"_owner\":\"The new owner of the factory\"}}},\"title\":\"The interface for the Uniswap V3 Factory\",\"version\":1},\"userdoc\":{\"events\":{\"FeeAmountEnabled(uint24,int24)\":{\"notice\":\"Emitted when a new fee amount is enabled for pool creation via the factory\"},\"OwnerChanged(address,address)\":{\"notice\":\"Emitted when the owner of the factory is changed\"},\"PoolCreated(address,address,uint24,int24,address)\":{\"notice\":\"Emitted when a pool is created\"}},\"kind\":\"user\",\"methods\":{\"createPool(address,address,uint24)\":{\"notice\":\"Creates a pool for the given two tokens and fee\"},\"enableFeeAmount(uint24,int24)\":{\"notice\":\"Enables a fee amount with the given tickSpacing\"},\"feeAmountTickSpacing(uint24)\":{\"notice\":\"Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled\"},\"getPool(address,address,uint24)\":{\"notice\":\"Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist\"},\"owner()\":{\"notice\":\"Returns the current owner of the factory\"},\"setOwner(address)\":{\"notice\":\"Updates the owner of the factory\"}},\"notice\":\"The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IUniswapV3Factory.sol\":\"IUniswapV3Factory\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IUniswapV3Factory.sol\":{\"keccak256\":\"0x18cea2431ed5f2731790245f4dcedb469ab0c655be49760bcc7bd224518f63a4\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://0dbd271fe3df5f946b099b94047170365e7b7f13a59cef11cfd628f637d3cc5d\",\"dweb:/ipfs/QmU51vvPdQ9E2h4t8aKf6ppkj82m29BpNvMYnfFjPYoyhZ\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"events": {
|
|
"FeeAmountEnabled(uint24,int24)": {
|
|
"notice": "Emitted when a new fee amount is enabled for pool creation via the factory"
|
|
},
|
|
"OwnerChanged(address,address)": {
|
|
"notice": "Emitted when the owner of the factory is changed"
|
|
},
|
|
"PoolCreated(address,address,uint24,int24,address)": {
|
|
"notice": "Emitted when a pool is created"
|
|
}
|
|
},
|
|
"kind": "user",
|
|
"methods": {
|
|
"createPool(address,address,uint24)": {
|
|
"notice": "Creates a pool for the given two tokens and fee"
|
|
},
|
|
"enableFeeAmount(uint24,int24)": {
|
|
"notice": "Enables a fee amount with the given tickSpacing"
|
|
},
|
|
"feeAmountTickSpacing(uint24)": {
|
|
"notice": "Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled"
|
|
},
|
|
"getPool(address,address,uint24)": {
|
|
"notice": "Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist"
|
|
},
|
|
"owner()": {
|
|
"notice": "Returns the current owner of the factory"
|
|
},
|
|
"setOwner(address)": {
|
|
"notice": "Updates the owner of the factory"
|
|
}
|
|
},
|
|
"notice": "The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees",
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/interfaces/IUniswapV3Factory.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/interfaces/IUniswapV3Factory.sol",
|
|
"exportedSymbols": {
|
|
"IUniswapV3Factory": [
|
|
82
|
|
]
|
|
},
|
|
"id": 83,
|
|
"license": "GPL-2.0-or-later",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
">=",
|
|
"0.5",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "46:24:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IUniswapV3Factory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 2,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "74:165:0",
|
|
"text": "@title The interface for the Uniswap V3 Factory\n @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees"
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 82,
|
|
"linearizedBaseContracts": [
|
|
82
|
|
],
|
|
"name": "IUniswapV3Factory",
|
|
"nameLocation": "249:17:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 3,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "274:187:0",
|
|
"text": "@notice Emitted when the owner of the factory is changed\n @param oldOwner The owner before the owner was changed\n @param newOwner The owner after the owner was changed"
|
|
},
|
|
"eventSelector": "b532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c",
|
|
"id": 9,
|
|
"name": "OwnerChanged",
|
|
"nameLocation": "473:12:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 8,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldOwner",
|
|
"nameLocation": "502:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 9,
|
|
"src": "486:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "486:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 7,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newOwner",
|
|
"nameLocation": "528:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 9,
|
|
"src": "512:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 6,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "512:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "485:52:0"
|
|
},
|
|
"src": "467:71:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 10,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "546:426:0",
|
|
"text": "@notice Emitted when a pool is created\n @param token0 The first token of the pool by address sort order\n @param token1 The second token of the pool by address sort order\n @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n @param tickSpacing The minimum number of ticks between initialized ticks\n @param pool The address of the created pool"
|
|
},
|
|
"eventSelector": "783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118",
|
|
"id": 22,
|
|
"name": "PoolCreated",
|
|
"nameLocation": "984:11:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 21,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 12,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "token0",
|
|
"nameLocation": "1022:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1006:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 11,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1006:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 14,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "token1",
|
|
"nameLocation": "1055:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1039:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 13,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1039:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 16,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "1087:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1072:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
},
|
|
"typeName": {
|
|
"id": 15,
|
|
"name": "uint24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1072:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 18,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "tickSpacing",
|
|
"nameLocation": "1107:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1101:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
},
|
|
"typeName": {
|
|
"id": 17,
|
|
"name": "int24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1101:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 20,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "pool",
|
|
"nameLocation": "1137:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1129:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 19,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1129:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "995:153:0"
|
|
},
|
|
"src": "978:171:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 23,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1157:277:0",
|
|
"text": "@notice Emitted when a new fee amount is enabled for pool creation via the factory\n @param fee The enabled fee, denominated in hundredths of a bip\n @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee"
|
|
},
|
|
"eventSelector": "c66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc",
|
|
"id": 29,
|
|
"name": "FeeAmountEnabled",
|
|
"nameLocation": "1446:16:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 28,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 25,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "1478:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 29,
|
|
"src": "1463:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
},
|
|
"typeName": {
|
|
"id": 24,
|
|
"name": "uint24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1463:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 27,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "tickSpacing",
|
|
"nameLocation": "1497:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 29,
|
|
"src": "1483:25:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
},
|
|
"typeName": {
|
|
"id": 26,
|
|
"name": "int24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1483:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1462:47:0"
|
|
},
|
|
"src": "1440:70:0"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 30,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1518:165:0",
|
|
"text": "@notice Returns the current owner of the factory\n @dev Can be changed by the current owner via setOwner\n @return The address of the factory owner"
|
|
},
|
|
"functionSelector": "8da5cb5b",
|
|
"id": 35,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "owner",
|
|
"nameLocation": "1698:5:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 31,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1703:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 34,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 33,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 35,
|
|
"src": "1729:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 32,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1729:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1728:9:0"
|
|
},
|
|
"scope": 82,
|
|
"src": "1689:49:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 36,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1746:351:0",
|
|
"text": "@notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled\n @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context\n @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee\n @return The tick spacing"
|
|
},
|
|
"functionSelector": "22afcccb",
|
|
"id": 43,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "feeAmountTickSpacing",
|
|
"nameLocation": "2112:20:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 39,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 38,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "2140:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 43,
|
|
"src": "2133:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
},
|
|
"typeName": {
|
|
"id": 37,
|
|
"name": "uint24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2133:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2132:12:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 42,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 41,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 43,
|
|
"src": "2168:5:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
},
|
|
"typeName": {
|
|
"id": 40,
|
|
"name": "int24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2168:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2167:7:0"
|
|
},
|
|
"scope": 82,
|
|
"src": "2103:72:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 44,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2183:476:0",
|
|
"text": "@notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist\n @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n @param tokenA The contract address of either token0 or token1\n @param tokenB The contract address of the other token\n @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n @return pool The pool address"
|
|
},
|
|
"functionSelector": "1698ee82",
|
|
"id": 55,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPool",
|
|
"nameLocation": "2674:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 51,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 46,
|
|
"mutability": "mutable",
|
|
"name": "tokenA",
|
|
"nameLocation": "2700:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "2692:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 45,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2692:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 48,
|
|
"mutability": "mutable",
|
|
"name": "tokenB",
|
|
"nameLocation": "2725:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "2717:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 47,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2717:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 50,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "2749:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "2742:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
},
|
|
"typeName": {
|
|
"id": 49,
|
|
"name": "uint24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2742:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2681:78:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 54,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 53,
|
|
"mutability": "mutable",
|
|
"name": "pool",
|
|
"nameLocation": "2791:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "2783:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 52,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2783:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2782:14:0"
|
|
},
|
|
"scope": 82,
|
|
"src": "2665:132:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 56,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2805:561:0",
|
|
"text": "@notice Creates a pool for the given two tokens and fee\n @param tokenA One of the two tokens in the desired pool\n @param tokenB The other of the two tokens in the desired pool\n @param fee The desired fee for the pool\n @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved\n from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments\n are invalid.\n @return pool The address of the newly created pool"
|
|
},
|
|
"functionSelector": "a1671295",
|
|
"id": 67,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "createPool",
|
|
"nameLocation": "3381:10:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 63,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 58,
|
|
"mutability": "mutable",
|
|
"name": "tokenA",
|
|
"nameLocation": "3410:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "3402:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 57,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3402:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 60,
|
|
"mutability": "mutable",
|
|
"name": "tokenB",
|
|
"nameLocation": "3435:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "3427:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 59,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3427:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 62,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "3459:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "3452:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
},
|
|
"typeName": {
|
|
"id": 61,
|
|
"name": "uint24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3452:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3391:78:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 66,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 65,
|
|
"mutability": "mutable",
|
|
"name": "pool",
|
|
"nameLocation": "3496:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "3488:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 64,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3488:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3487:14:0"
|
|
},
|
|
"scope": 82,
|
|
"src": "3372:130:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 68,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3510:146:0",
|
|
"text": "@notice Updates the owner of the factory\n @dev Must be called by the current owner\n @param _owner The new owner of the factory"
|
|
},
|
|
"functionSelector": "13af4035",
|
|
"id": 73,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setOwner",
|
|
"nameLocation": "3671:8:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 71,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 70,
|
|
"mutability": "mutable",
|
|
"name": "_owner",
|
|
"nameLocation": "3688:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 73,
|
|
"src": "3680:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 69,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3680:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3679:16:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 72,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "3704:0:0"
|
|
},
|
|
"scope": 82,
|
|
"src": "3662:43:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 74,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3713:329:0",
|
|
"text": "@notice Enables a fee amount with the given tickSpacing\n @dev Fee amounts may never be removed once enabled\n @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)\n @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount"
|
|
},
|
|
"functionSelector": "8a7c195f",
|
|
"id": 81,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "enableFeeAmount",
|
|
"nameLocation": "4057:15:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 79,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 76,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "4080:3:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 81,
|
|
"src": "4073:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
},
|
|
"typeName": {
|
|
"id": 75,
|
|
"name": "uint24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4073:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint24",
|
|
"typeString": "uint24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 78,
|
|
"mutability": "mutable",
|
|
"name": "tickSpacing",
|
|
"nameLocation": "4091:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 81,
|
|
"src": "4085:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
},
|
|
"typeName": {
|
|
"id": 77,
|
|
"name": "int24",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4085:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_int24",
|
|
"typeString": "int24"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4072:31:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 80,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "4112:0:0"
|
|
},
|
|
"scope": 82,
|
|
"src": "4048:65:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 83,
|
|
"src": "239:3877:0",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
9,
|
|
22,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"src": "46:4072:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |