UNPKG

moonwalkerswap-v1-core

Version:
1,070 lines 40.5 kB
{ "contractName": "IMoonwalkerPoolImmutables", "abi": [ { "inputs": [], "name": "factory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token0", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token1", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "fee", "outputs": [ { "internalType": "uint24", "name": "", "type": "uint24" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "tickSpacing", "outputs": [ { "internalType": "int24", "name": "", "type": "int24" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxLiquidityPerTick", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"factory()\":{\"returns\":{\"_0\":\"The contract address\"}},\"fee()\":{\"returns\":{\"_0\":\"The fee\"}},\"maxLiquidityPerTick()\":{\"details\":\"This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\",\"returns\":{\"_0\":\"The max amount of liquidity per tick\"}},\"tickSpacing()\":{\"details\":\"Ticks can only be used at multiples of this value, minimum of 1 and always positive e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... This value is an int24 to avoid casting even though it is always positive.\",\"returns\":{\"_0\":\"The tick spacing\"}},\"token0()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"token1()\":{\"returns\":{\"_0\":\"The token contract address\"}}},\"title\":\"Pool state that never changes\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"factory()\":{\"notice\":\"The contract that deployed the pool, which must adhere to the IMoonwalkerFactory interface\"},\"fee()\":{\"notice\":\"The pool's fee in hundredths of a bip, i.e. 1e-6\"},\"maxLiquidityPerTick()\":{\"notice\":\"The maximum amount of position liquidity that can use any tick in the range\"},\"tickSpacing()\":{\"notice\":\"The pool tick spacing\"},\"token0()\":{\"notice\":\"The first of the two tokens of the pool, sorted by address\"},\"token1()\":{\"notice\":\"The second of the two tokens of the pool, sorted by address\"}},\"notice\":\"These parameters are fixed for a pool forever, i.e., the methods will always return the same values\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolImmutables.sol\":\"IMoonwalkerPoolImmutables\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolImmutables.sol\":{\"keccak256\":\"0xd0f2dfc66cc3400c6433e0adf4cd40117798f5cdb6963f79a8ff593375773ce2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b03f976151a3a375eadf6f60dd03187bf73f5cd3786ba6b74bcb3e08d6e5c823\",\"dweb:/ipfs/QmYwbt38mnGnB9ovtd9J3Ea8He8BZhrh4ybJ6cCQehZGJj\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.5.0;\n\n/// @title Pool state that never changes\n/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values\ninterface IMoonwalkerPoolImmutables {\n /// @notice The contract that deployed the pool, which must adhere to the IMoonwalkerFactory interface\n /// @return The contract address\n function factory() external view returns (address);\n\n /// @notice The first of the two tokens of the pool, sorted by address\n /// @return The token contract address\n function token0() external view returns (address);\n\n /// @notice The second of the two tokens of the pool, sorted by address\n /// @return The token contract address\n function token1() external view returns (address);\n\n /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6\n /// @return The fee\n function fee() external view returns (uint24);\n\n /// @notice The pool tick spacing\n /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\n /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\n /// This value is an int24 to avoid casting even though it is always positive.\n /// @return The tick spacing\n function tickSpacing() external view returns (int24);\n\n /// @notice The maximum amount of position liquidity that can use any tick in the range\n /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n /// @return The max amount of liquidity per tick\n function maxLiquidityPerTick() external view returns (uint128);\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolImmutables.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolImmutables.sol", "exportedSymbols": { "IMoonwalkerPoolImmutables": [ 3387 ] }, "id": 3388, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 3349, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "32:24:14" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 3350, "nodeType": "StructuredDocumentation", "src": "58:153:14", "text": "@title Pool state that never changes\n @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values" }, "fullyImplemented": false, "id": 3387, "linearizedBaseContracts": [ 3387 ], "name": "IMoonwalkerPoolImmutables", "nodeType": "ContractDefinition", "nodes": [ { "documentation": { "id": 3351, "nodeType": "StructuredDocumentation", "src": "253:139:14", "text": "@notice The contract that deployed the pool, which must adhere to the IMoonwalkerFactory interface\n @return The contract address" }, "functionSelector": "c45a0155", "id": 3356, "implemented": false, "kind": "function", "modifiers": [], "name": "factory", "nodeType": "FunctionDefinition", "parameters": { "id": 3352, "nodeType": "ParameterList", "parameters": [], "src": "413:2:14" }, "returnParameters": { "id": 3355, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3354, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 3356, "src": "439:7:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3353, "name": "address", "nodeType": "ElementaryTypeName", "src": "439:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "438:9:14" }, "scope": 3387, "src": "397:51:14", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 3357, "nodeType": "StructuredDocumentation", "src": "454:113:14", "text": "@notice The first of the two tokens of the pool, sorted by address\n @return The token contract address" }, "functionSelector": "0dfe1681", "id": 3362, "implemented": false, "kind": "function", "modifiers": [], "name": "token0", "nodeType": "FunctionDefinition", "parameters": { "id": 3358, "nodeType": "ParameterList", "parameters": [], "src": "587:2:14" }, "returnParameters": { "id": 3361, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3360, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 3362, "src": "613:7:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3359, "name": "address", "nodeType": "ElementaryTypeName", "src": "613:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "612:9:14" }, "scope": 3387, "src": "572:50:14", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 3363, "nodeType": "StructuredDocumentation", "src": "628:114:14", "text": "@notice The second of the two tokens of the pool, sorted by address\n @return The token contract address" }, "functionSelector": "d21220a7", "id": 3368, "implemented": false, "kind": "function", "modifiers": [], "name": "token1", "nodeType": "FunctionDefinition", "parameters": { "id": 3364, "nodeType": "ParameterList", "parameters": [], "src": "762:2:14" }, "returnParameters": { "id": 3367, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3366, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 3368, "src": "788:7:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3365, "name": "address", "nodeType": "ElementaryTypeName", "src": "788:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "787:9:14" }, "scope": 3387, "src": "747:50:14", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 3369, "nodeType": "StructuredDocumentation", "src": "803:84:14", "text": "@notice The pool's fee in hundredths of a bip, i.e. 1e-6\n @return The fee" }, "functionSelector": "ddca3f43", "id": 3374, "implemented": false, "kind": "function", "modifiers": [], "name": "fee", "nodeType": "FunctionDefinition", "parameters": { "id": 3370, "nodeType": "ParameterList", "parameters": [], "src": "904:2:14" }, "returnParameters": { "id": 3373, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3372, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 3374, "src": "930:6:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint24", "typeString": "uint24" }, "typeName": { "id": 3371, "name": "uint24", "nodeType": "ElementaryTypeName", "src": "930:6:14", "typeDescriptions": { "typeIdentifier": "t_uint24", "typeString": "uint24" } }, "visibility": "internal" } ], "src": "929:8:14" }, "scope": 3387, "src": "892:46:14", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 3375, "nodeType": "StructuredDocumentation", "src": "944:358:14", "text": "@notice The pool tick spacing\n @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\n e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\n This value is an int24 to avoid casting even though it is always positive.\n @return The tick spacing" }, "functionSelector": "d0c93a7c", "id": 3380, "implemented": false, "kind": "function", "modifiers": [], "name": "tickSpacing", "nodeType": "FunctionDefinition", "parameters": { "id": 3376, "nodeType": "ParameterList", "parameters": [], "src": "1327:2:14" }, "returnParameters": { "id": 3379, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3378, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 3380, "src": "1353:5:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int24", "typeString": "int24" }, "typeName": { "id": 3377, "name": "int24", "nodeType": "ElementaryTypeName", "src": "1353:5:14", "typeDescriptions": { "typeIdentifier": "t_int24", "typeString": "int24" } }, "visibility": "internal" } ], "src": "1352:7:14" }, "scope": 3387, "src": "1307:53:14", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 3381, "nodeType": "StructuredDocumentation", "src": "1366:363:14", "text": "@notice The maximum amount of position liquidity that can use any tick in the range\n @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n @return The max amount of liquidity per tick" }, "functionSelector": "70cf754a", "id": 3386, "implemented": false, "kind": "function", "modifiers": [], "name": "maxLiquidityPerTick", "nodeType": "FunctionDefinition", "parameters": { "id": 3382, "nodeType": "ParameterList", "parameters": [], "src": "1762:2:14" }, "returnParameters": { "id": 3385, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3384, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 3386, "src": "1788:7:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 3383, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "1788:7:14", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" } }, "visibility": "internal" } ], "src": "1787:9:14" }, "scope": 3387, "src": "1734:63:14", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 3388, "src": "211:1588:14" } ], "src": "32:1768:14" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolImmutables.sol", "exportedSymbols": { "IMoonwalkerPoolImmutables": [ 3387 ] }, "license": "MIT" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 3349, "name": "PragmaDirective", "src": "32:24:14" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "fullyImplemented": false, "linearizedBaseContracts": [ 3387 ], "name": "IMoonwalkerPoolImmutables", "scope": 3388 }, "children": [ { "attributes": { "text": "@title Pool state that never changes\n @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values" }, "id": 3350, "name": "StructuredDocumentation", "src": "58:153:14" }, { "attributes": { "functionSelector": "c45a0155", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "factory", "scope": 3387, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice The contract that deployed the pool, which must adhere to the IMoonwalkerFactory interface\n @return The contract address" }, "id": 3351, "name": "StructuredDocumentation", "src": "253:139:14" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3352, "name": "ParameterList", "src": "413:2:14" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 3356, "stateVariable": false, "storageLocation": "default", "type": "address", "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 3353, "name": "ElementaryTypeName", "src": "439:7:14" } ], "id": 3354, "name": "VariableDeclaration", "src": "439:7:14" } ], "id": 3355, "name": "ParameterList", "src": "438:9:14" } ], "id": 3356, "name": "FunctionDefinition", "src": "397:51:14" }, { "attributes": { "functionSelector": "0dfe1681", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "token0", "scope": 3387, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice The first of the two tokens of the pool, sorted by address\n @return The token contract address" }, "id": 3357, "name": "StructuredDocumentation", "src": "454:113:14" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3358, "name": "ParameterList", "src": "587:2:14" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 3362, "stateVariable": false, "storageLocation": "default", "type": "address", "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 3359, "name": "ElementaryTypeName", "src": "613:7:14" } ], "id": 3360, "name": "VariableDeclaration", "src": "613:7:14" } ], "id": 3361, "name": "ParameterList", "src": "612:9:14" } ], "id": 3362, "name": "FunctionDefinition", "src": "572:50:14" }, { "attributes": { "functionSelector": "d21220a7", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "token1", "scope": 3387, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice The second of the two tokens of the pool, sorted by address\n @return The token contract address" }, "id": 3363, "name": "StructuredDocumentation", "src": "628:114:14" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3364, "name": "ParameterList", "src": "762:2:14" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 3368, "stateVariable": false, "storageLocation": "default", "type": "address", "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 3365, "name": "ElementaryTypeName", "src": "788:7:14" } ], "id": 3366, "name": "VariableDeclaration", "src": "788:7:14" } ], "id": 3367, "name": "ParameterList", "src": "787:9:14" } ], "id": 3368, "name": "FunctionDefinition", "src": "747:50:14" }, { "attributes": { "functionSelector": "ddca3f43", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "fee", "scope": 3387, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice The pool's fee in hundredths of a bip, i.e. 1e-6\n @return The fee" }, "id": 3369, "name": "StructuredDocumentation", "src": "803:84:14" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3370, "name": "ParameterList", "src": "904:2:14" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 3374, "stateVariable": false, "storageLocation": "default", "type": "uint24", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint24", "type": "uint24" }, "id": 3371, "name": "ElementaryTypeName", "src": "930:6:14" } ], "id": 3372, "name": "VariableDeclaration", "src": "930:6:14" } ], "id": 3373, "name": "ParameterList", "src": "929:8:14" } ], "id": 3374, "name": "FunctionDefinition", "src": "892:46:14" }, { "attributes": { "functionSelector": "d0c93a7c", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "tickSpacing", "scope": 3387, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice The pool tick spacing\n @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\n e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\n This value is an int24 to avoid casting even though it is always positive.\n @return The tick spacing" }, "id": 3375, "name": "StructuredDocumentation", "src": "944:358:14" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3376, "name": "ParameterList", "src": "1327:2:14" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 3380, "stateVariable": false, "storageLocation": "default", "type": "int24", "visibility": "internal" }, "children": [ { "attributes": { "name": "int24", "type": "int24" }, "id": 3377, "name": "ElementaryTypeName", "src": "1353:5:14" } ], "id": 3378, "name": "VariableDeclaration", "src": "1353:5:14" } ], "id": 3379, "name": "ParameterList", "src": "1352:7:14" } ], "id": 3380, "name": "FunctionDefinition", "src": "1307:53:14" }, { "attributes": { "functionSelector": "70cf754a", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "maxLiquidityPerTick", "scope": 3387, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice The maximum amount of position liquidity that can use any tick in the range\n @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n @return The max amount of liquidity per tick" }, "id": 3381, "name": "StructuredDocumentation", "src": "1366:363:14" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3382, "name": "ParameterList", "src": "1762:2:14" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 3386, "stateVariable": false, "storageLocation": "default", "type": "uint128", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint128", "type": "uint128" }, "id": 3383, "name": "ElementaryTypeName", "src": "1788:7:14" } ], "id": 3384, "name": "VariableDeclaration", "src": "1788:7:14" } ], "id": 3385, "name": "ParameterList", "src": "1787:9:14" } ], "id": 3386, "name": "FunctionDefinition", "src": "1734:63:14" } ], "id": 3387, "name": "ContractDefinition", "src": "211:1588:14" } ], "id": 3388, "name": "SourceUnit", "src": "32:1768:14" }, "compiler": { "name": "solc", "version": "0.7.6+commit.7338295f.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2022-01-17T20:05:41.705Z", "devdoc": { "kind": "dev", "methods": { "factory()": { "returns": { "_0": "The contract address" } }, "fee()": { "returns": { "_0": "The fee" } }, "maxLiquidityPerTick()": { "details": "This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool", "returns": { "_0": "The max amount of liquidity per tick" } }, "tickSpacing()": { "details": "Ticks can only be used at multiples of this value, minimum of 1 and always positive e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... This value is an int24 to avoid casting even though it is always positive.", "returns": { "_0": "The tick spacing" } }, "token0()": { "returns": { "_0": "The token contract address" } }, "token1()": { "returns": { "_0": "The token contract address" } } }, "title": "Pool state that never changes", "version": 1 }, "userdoc": { "kind": "user", "methods": { "factory()": { "notice": "The contract that deployed the pool, which must adhere to the IMoonwalkerFactory interface" }, "fee()": { "notice": "The pool's fee in hundredths of a bip, i.e. 1e-6" }, "maxLiquidityPerTick()": { "notice": "The maximum amount of position liquidity that can use any tick in the range" }, "tickSpacing()": { "notice": "The pool tick spacing" }, "token0()": { "notice": "The first of the two tokens of the pool, sorted by address" }, "token1()": { "notice": "The second of the two tokens of the pool, sorted by address" } }, "notice": "These parameters are fixed for a pool forever, i.e., the methods will always return the same values", "version": 1 } }