open-dex/contracts/interfaces/artifacts/IUniswapV3Factory_metadata.json
2024-08-24 12:08:46 +03:00

348 lines
8.4 KiB
JSON

{
"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
}