moonwalkerswap-v1-core
Version:
Moonwalkerswap v1 core
308 lines • 11.2 kB
JSON
{
"contractName": "FixedPoint96",
"abi": [],
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Used in SqrtPriceMath.sol\",\"kind\":\"dev\",\"methods\":{},\"title\":\"FixedPoint96\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint96.sol\":\"FixedPoint96\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint96.sol\":{\"keccak256\":\"0xb466ea5c68592e0aab06e0ffa0937b047a2ec0916c2a181dee91f439e06c36d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90e2d3770039b4430765a328d1abc6d035ad5a6e71906ab8f120220f3a9a9899\",\"dweb:/ipfs/QmTJFjBkBJGL98BjRnyH48yDZC94LU42SuuEPkd5qhgTnW\"]}},\"version\":1}",
"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220704af5c30386bcaaff8ba624116dd8ca590c038af190a09ea704989b6c7af25e64736f6c63430007060033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220704af5c30386bcaaff8ba624116dd8ca590c038af190a09ea704989b6c7af25e64736f6c63430007060033",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "232:134:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "232:134:19:-:0;;;;;;;;",
"source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.4.0;\n\n/// @title FixedPoint96\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\n/// @dev Used in SqrtPriceMath.sol\nlibrary FixedPoint96 {\n uint8 internal constant RESOLUTION = 96;\n uint256 internal constant Q96 = 0x1000000000000000000000000;\n}\n",
"sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint96.sol",
"ast": {
"absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint96.sol",
"exportedSymbols": {
"FixedPoint96": [
3817
]
},
"id": 3818,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3809,
"literals": [
"solidity",
">=",
"0.4",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:24:19"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"documentation": {
"id": 3810,
"nodeType": "StructuredDocumentation",
"src": "58:174:19",
"text": "@title FixedPoint96\n @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\n @dev Used in SqrtPriceMath.sol"
},
"fullyImplemented": true,
"id": 3817,
"linearizedBaseContracts": [
3817
],
"name": "FixedPoint96",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 3813,
"mutability": "constant",
"name": "RESOLUTION",
"nodeType": "VariableDeclaration",
"scope": 3817,
"src": "259:39:19",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 3811,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "259:5:19",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "3936",
"id": 3812,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "296:2:19",
"typeDescriptions": {
"typeIdentifier": "t_rational_96_by_1",
"typeString": "int_const 96"
},
"value": "96"
},
"visibility": "internal"
},
{
"constant": true,
"id": 3816,
"mutability": "constant",
"name": "Q96",
"nodeType": "VariableDeclaration",
"scope": 3817,
"src": "304:59:19",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3814,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "304:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"hexValue": "307831303030303030303030303030303030303030303030303030",
"id": 3815,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "336:27:19",
"typeDescriptions": {
"typeIdentifier": "t_rational_79228162514264337593543950336_by_1",
"typeString": "int_const 79228162514264337593543950336"
},
"value": "0x1000000000000000000000000"
},
"visibility": "internal"
}
],
"scope": 3818,
"src": "232:134:19"
}
],
"src": "32:335:19"
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint96.sol",
"exportedSymbols": {
"FixedPoint96": [
3817
]
},
"license": "MIT"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.4",
".0"
]
},
"id": 3809,
"name": "PragmaDirective",
"src": "32:24:19"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "library",
"fullyImplemented": true,
"linearizedBaseContracts": [
3817
],
"name": "FixedPoint96",
"scope": 3818
},
"children": [
{
"attributes": {
"text": "@title FixedPoint96\n @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\n @dev Used in SqrtPriceMath.sol"
},
"id": 3810,
"name": "StructuredDocumentation",
"src": "58:174:19"
},
{
"attributes": {
"constant": true,
"mutability": "constant",
"name": "RESOLUTION",
"scope": 3817,
"stateVariable": true,
"storageLocation": "default",
"type": "uint8",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint8",
"type": "uint8"
},
"id": 3811,
"name": "ElementaryTypeName",
"src": "259:5:19"
},
{
"attributes": {
"hexvalue": "3936",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"token": "number",
"type": "int_const 96",
"value": "96"
},
"id": 3812,
"name": "Literal",
"src": "296:2:19"
}
],
"id": 3813,
"name": "VariableDeclaration",
"src": "259:39:19"
},
{
"attributes": {
"constant": true,
"mutability": "constant",
"name": "Q96",
"scope": 3817,
"stateVariable": true,
"storageLocation": "default",
"type": "uint256",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 3814,
"name": "ElementaryTypeName",
"src": "304:7:19"
},
{
"attributes": {
"hexvalue": "307831303030303030303030303030303030303030303030303030",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"token": "number",
"type": "int_const 79228162514264337593543950336",
"value": "0x1000000000000000000000000"
},
"id": 3815,
"name": "Literal",
"src": "336:27:19"
}
],
"id": 3816,
"name": "VariableDeclaration",
"src": "304:59:19"
}
],
"id": 3817,
"name": "ContractDefinition",
"src": "232:134:19"
}
],
"id": 3818,
"name": "SourceUnit",
"src": "32:335:19"
},
"compiler": {
"name": "solc",
"version": "0.7.6+commit.7338295f.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2022-01-17T20:05:41.756Z",
"devdoc": {
"details": "Used in SqrtPriceMath.sol",
"kind": "dev",
"methods": {},
"title": "FixedPoint96",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"notice": "A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)",
"version": 1
}
}