open-dex/contracts/interfaces/pool/artifacts/build-info/fb40963dc35adef6aba8f0071fc82cd8.json
2024-08-24 12:08:46 +03:00

552 lines
24 KiB
JSON

{
"id": "fb40963dc35adef6aba8f0071fc82cd8",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol": {
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.5.0;\r\n\r\n/// @title Pool state that is not stored\r\n/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the\r\n/// blockchain. The functions here may have variable gas costs.\r\ninterface IUniswapV3PoolDerivedState {\r\n /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\r\n /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing\r\n /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,\r\n /// you must call it with secondsAgos = [3600, 0].\r\n /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in\r\n /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\r\n /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned\r\n /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp\r\n /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block\r\n /// timestamp\r\n function observe(uint32[] calldata secondsAgos)\r\n external\r\n view\r\n returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);\r\n\r\n /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\r\n /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.\r\n /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first\r\n /// snapshot is taken and the second snapshot is taken.\r\n /// @param tickLower The lower tick of the range\r\n /// @param tickUpper The upper tick of the range\r\n /// @return tickCumulativeInside The snapshot of the tick accumulator for the range\r\n /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range\r\n /// @return secondsInside The snapshot of seconds per liquidity for the range\r\n function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)\r\n external\r\n view\r\n returns (\r\n int56 tickCumulativeInside,\r\n uint160 secondsPerLiquidityInsideX128,\r\n uint32 secondsInside\r\n );\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/pool/IUniswapV3PoolDerivedState.sol": {
"IUniswapV3PoolDerivedState": {
"abi": [
{
"inputs": [
{
"internalType": "uint32[]",
"name": "secondsAgos",
"type": "uint32[]"
}
],
"name": "observe",
"outputs": [
{
"internalType": "int56[]",
"name": "tickCumulatives",
"type": "int56[]"
},
{
"internalType": "uint160[]",
"name": "secondsPerLiquidityCumulativeX128s",
"type": "uint160[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "int24",
"name": "tickLower",
"type": "int24"
},
{
"internalType": "int24",
"name": "tickUpper",
"type": "int24"
}
],
"name": "snapshotCumulativesInside",
"outputs": [
{
"internalType": "int56",
"name": "tickCumulativeInside",
"type": "int56"
},
{
"internalType": "uint160",
"name": "secondsPerLiquidityInsideX128",
"type": "uint160"
},
{
"internalType": "uint32",
"name": "secondsInside",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"observe(uint32[])": {
"details": "To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick, you must call it with secondsAgos = [3600, 0].The time weighted average tick represents the geometric time weighted average price of the pool, in log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.",
"params": {
"secondsAgos": "From how long ago each cumulative tick and liquidity value should be returned"
},
"returns": {
"secondsPerLiquidityCumulativeX128s": "Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block timestamp",
"tickCumulatives": "Cumulative tick values as of each `secondsAgos` from the current block timestamp"
}
},
"snapshotCumulativesInside(int24,int24)": {
"details": "Snapshots must only be compared to other snapshots, taken over a period for which a position existed. I.e., snapshots cannot be compared if a position is not held for the entire period between when the first snapshot is taken and the second snapshot is taken.",
"params": {
"tickLower": "The lower tick of the range",
"tickUpper": "The upper tick of the range"
},
"returns": {
"secondsInside": "The snapshot of seconds per liquidity for the range",
"secondsPerLiquidityInsideX128": "The snapshot of seconds per liquidity for the range",
"tickCumulativeInside": "The snapshot of the tick accumulator for the range"
}
}
},
"title": "Pool state that is not stored",
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"observe(uint32[])": "883bdbfd",
"snapshotCumulativesInside(int24,int24)": "a38807f2"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint32[]\",\"name\":\"secondsAgos\",\"type\":\"uint32[]\"}],\"name\":\"observe\",\"outputs\":[{\"internalType\":\"int56[]\",\"name\":\"tickCumulatives\",\"type\":\"int56[]\"},{\"internalType\":\"uint160[]\",\"name\":\"secondsPerLiquidityCumulativeX128s\",\"type\":\"uint160[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"}],\"name\":\"snapshotCumulativesInside\",\"outputs\":[{\"internalType\":\"int56\",\"name\":\"tickCumulativeInside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityInsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsInside\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"observe(uint32[])\":{\"details\":\"To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick, you must call it with secondsAgos = [3600, 0].The time weighted average tick represents the geometric time weighted average price of the pool, in log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\",\"params\":{\"secondsAgos\":\"From how long ago each cumulative tick and liquidity value should be returned\"},\"returns\":{\"secondsPerLiquidityCumulativeX128s\":\"Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block timestamp\",\"tickCumulatives\":\"Cumulative tick values as of each `secondsAgos` from the current block timestamp\"}},\"snapshotCumulativesInside(int24,int24)\":{\"details\":\"Snapshots must only be compared to other snapshots, taken over a period for which a position existed. I.e., snapshots cannot be compared if a position is not held for the entire period between when the first snapshot is taken and the second snapshot is taken.\",\"params\":{\"tickLower\":\"The lower tick of the range\",\"tickUpper\":\"The upper tick of the range\"},\"returns\":{\"secondsInside\":\"The snapshot of seconds per liquidity for the range\",\"secondsPerLiquidityInsideX128\":\"The snapshot of seconds per liquidity for the range\",\"tickCumulativeInside\":\"The snapshot of the tick accumulator for the range\"}}},\"title\":\"Pool state that is not stored\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"observe(uint32[])\":{\"notice\":\"Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\"},\"snapshotCumulativesInside(int24,int24)\":{\"notice\":\"Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\"}},\"notice\":\"Contains view functions to provide information about the pool that is computed rather than stored on the blockchain. The functions here may have variable gas costs.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":\"IUniswapV3PoolDerivedState\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":{\"keccak256\":\"0x388533862fc3bc4a7040ec401ec473019a7907bf397b406defee94286c1d6c7e\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://e6ab09700c39f53d429f430ad3b4b7cd2a3b2d61baa53004dd1f4fd92db39e36\",\"dweb:/ipfs/QmSUnTzyZtZ4K6ASxwxdzCCMwj7utj8xzDYnjopGPCV4z5\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {
"observe(uint32[])": {
"notice": "Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp"
},
"snapshotCumulativesInside(int24,int24)": {
"notice": "Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range"
}
},
"notice": "Contains view functions to provide information about the pool that is computed rather than stored on the blockchain. The functions here may have variable gas costs.",
"version": 1
}
}
}
},
"sources": {
"contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol": {
"ast": {
"absolutePath": "contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol",
"exportedSymbols": {
"IUniswapV3PoolDerivedState": [
30
]
},
"id": 31,
"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": "IUniswapV3PoolDerivedState",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "74:225:0",
"text": "@title Pool state that is not stored\n @notice Contains view functions to provide information about the pool that is computed rather than stored on the\n blockchain. The functions here may have variable gas costs."
},
"fullyImplemented": false,
"id": 30,
"linearizedBaseContracts": [
30
],
"name": "IUniswapV3PoolDerivedState",
"nameLocation": "309:26:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 3,
"nodeType": "StructuredDocumentation",
"src": "343:1054:0",
"text": "@notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\n @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing\n the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,\n you must call it with secondsAgos = [3600, 0].\n @dev The time weighted average tick represents the geometric time weighted average price of the pool, in\n log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\n @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned\n @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp\n @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block\n timestamp"
},
"functionSelector": "883bdbfd",
"id": 15,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "observe",
"nameLocation": "1412:7:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6,
"mutability": "mutable",
"name": "secondsAgos",
"nameLocation": "1438:11:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "1420:29:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint32_$dyn_calldata_ptr",
"typeString": "uint32[]"
},
"typeName": {
"baseType": {
"id": 4,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1420:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"id": 5,
"nodeType": "ArrayTypeName",
"src": "1420:8:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr",
"typeString": "uint32[]"
}
},
"visibility": "internal"
}
],
"src": "1419:31:0"
},
"returnParameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "tickCumulatives",
"nameLocation": "1516:15:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "1501:30:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_int56_$dyn_memory_ptr",
"typeString": "int56[]"
},
"typeName": {
"baseType": {
"id": 8,
"name": "int56",
"nodeType": "ElementaryTypeName",
"src": "1501:5:0",
"typeDescriptions": {
"typeIdentifier": "t_int56",
"typeString": "int56"
}
},
"id": 9,
"nodeType": "ArrayTypeName",
"src": "1501:7:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_int56_$dyn_storage_ptr",
"typeString": "int56[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13,
"mutability": "mutable",
"name": "secondsPerLiquidityCumulativeX128s",
"nameLocation": "1550:34:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "1533:51:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint160_$dyn_memory_ptr",
"typeString": "uint160[]"
},
"typeName": {
"baseType": {
"id": 11,
"name": "uint160",
"nodeType": "ElementaryTypeName",
"src": "1533:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint160",
"typeString": "uint160"
}
},
"id": 12,
"nodeType": "ArrayTypeName",
"src": "1533:9:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint160_$dyn_storage_ptr",
"typeString": "uint160[]"
}
},
"visibility": "internal"
}
],
"src": "1500:85:0"
},
"scope": 30,
"src": "1403:183:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 16,
"nodeType": "StructuredDocumentation",
"src": "1594:779:0",
"text": "@notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\n @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.\n I.e., snapshots cannot be compared if a position is not held for the entire period between when the first\n snapshot is taken and the second snapshot is taken.\n @param tickLower The lower tick of the range\n @param tickUpper The upper tick of the range\n @return tickCumulativeInside The snapshot of the tick accumulator for the range\n @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range\n @return secondsInside The snapshot of seconds per liquidity for the range"
},
"functionSelector": "a38807f2",
"id": 29,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "snapshotCumulativesInside",
"nameLocation": "2388:25:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18,
"mutability": "mutable",
"name": "tickLower",
"nameLocation": "2420:9:0",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "2414:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int24",
"typeString": "int24"
},
"typeName": {
"id": 17,
"name": "int24",
"nodeType": "ElementaryTypeName",
"src": "2414:5:0",
"typeDescriptions": {
"typeIdentifier": "t_int24",
"typeString": "int24"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20,
"mutability": "mutable",
"name": "tickUpper",
"nameLocation": "2437:9:0",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "2431:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int24",
"typeString": "int24"
},
"typeName": {
"id": 19,
"name": "int24",
"nodeType": "ElementaryTypeName",
"src": "2431:5:0",
"typeDescriptions": {
"typeIdentifier": "t_int24",
"typeString": "int24"
}
},
"visibility": "internal"
}
],
"src": "2413:34:0"
},
"returnParameters": {
"id": 28,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 23,
"mutability": "mutable",
"name": "tickCumulativeInside",
"nameLocation": "2518:20:0",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "2512:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int56",
"typeString": "int56"
},
"typeName": {
"id": 22,
"name": "int56",
"nodeType": "ElementaryTypeName",
"src": "2512:5:0",
"typeDescriptions": {
"typeIdentifier": "t_int56",
"typeString": "int56"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25,
"mutability": "mutable",
"name": "secondsPerLiquidityInsideX128",
"nameLocation": "2561:29:0",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "2553:37:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint160",
"typeString": "uint160"
},
"typeName": {
"id": 24,
"name": "uint160",
"nodeType": "ElementaryTypeName",
"src": "2553:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint160",
"typeString": "uint160"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 27,
"mutability": "mutable",
"name": "secondsInside",
"nameLocation": "2612:13:0",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "2605:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 26,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2605:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
}
],
"src": "2497:139:0"
},
"scope": 30,
"src": "2379:258:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 31,
"src": "299:2341:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "46:2596:0"
},
"id": 0
}
}
}
}