UNPKG

moonwalkerswap-v1-core

Version:
224 lines 8.51 kB
{ "contractName": "FixedPoint128", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"FixedPoint128\",\"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/FixedPoint128.sol\":\"FixedPoint128\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint128.sol\":{\"keccak256\":\"0x2d1f4f73ae0d8f0a210b8d30084659b57c56ac8f2f96011fca36f00a6d417178\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://2ba88933f16cd2df398e19c6ad227268f83c03081b70d243c97116d2ed9bc241\",\"dweb:/ipfs/QmTUGxdh8snzEM9VrTSS47StCg9VVWvvLJtJeNnMTFY4xb\"]}},\"version\":1}", "bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a8f70a1194858f93db38f25ad928f7757145860bafb0a75c308472ea9ddde2d964736f6c63430007060033", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a8f70a1194858f93db38f25ad928f7757145860bafb0a75c308472ea9ddde2d964736f6c63430007060033", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "211:99:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;", "deployedSourceMap": "211:99:18:-:0;;;;;;;;", "source": "// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.4.0;\n\n/// @title FixedPoint128\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\nlibrary FixedPoint128 {\n uint256 internal constant Q128 = 0x100000000000000000000000000000000;\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint128.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint128.sol", "exportedSymbols": { "FixedPoint128": [ 3807 ] }, "id": 3808, "license": "GPL-2.0-or-later", "nodeType": "SourceUnit", "nodes": [ { "id": 3802, "literals": [ "solidity", ">=", "0.4", ".0" ], "nodeType": "PragmaDirective", "src": "45:24:18" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": { "id": 3803, "nodeType": "StructuredDocumentation", "src": "71:140:18", "text": "@title FixedPoint128\n @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)" }, "fullyImplemented": true, "id": 3807, "linearizedBaseContracts": [ 3807 ], "name": "FixedPoint128", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 3806, "mutability": "constant", "name": "Q128", "nodeType": "VariableDeclaration", "scope": 3807, "src": "239:68:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3804, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "239:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3078313030303030303030303030303030303030303030303030303030303030303030", "id": 3805, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "272:35:18", "typeDescriptions": { "typeIdentifier": "t_rational_340282366920938463463374607431768211456_by_1", "typeString": "int_const 3402...(31 digits omitted)...1456" }, "value": "0x100000000000000000000000000000000" }, "visibility": "internal" } ], "scope": 3808, "src": "211:99:18" } ], "src": "45:266:18" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/libraries/FixedPoint128.sol", "exportedSymbols": { "FixedPoint128": [ 3807 ] }, "license": "GPL-2.0-or-later" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.4", ".0" ] }, "id": 3802, "name": "PragmaDirective", "src": "45:24:18" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "library", "fullyImplemented": true, "linearizedBaseContracts": [ 3807 ], "name": "FixedPoint128", "scope": 3808 }, "children": [ { "attributes": { "text": "@title FixedPoint128\n @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)" }, "id": 3803, "name": "StructuredDocumentation", "src": "71:140:18" }, { "attributes": { "constant": true, "mutability": "constant", "name": "Q128", "scope": 3807, "stateVariable": true, "storageLocation": "default", "type": "uint256", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 3804, "name": "ElementaryTypeName", "src": "239:7:18" }, { "attributes": { "hexvalue": "3078313030303030303030303030303030303030303030303030303030303030303030", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "token": "number", "type": "int_const 3402...(31 digits omitted)...1456", "value": "0x100000000000000000000000000000000" }, "id": 3805, "name": "Literal", "src": "272:35:18" } ], "id": 3806, "name": "VariableDeclaration", "src": "239:68:18" } ], "id": 3807, "name": "ContractDefinition", "src": "211:99:18" } ], "id": 3808, "name": "SourceUnit", "src": "45:266:18" }, "compiler": { "name": "solc", "version": "0.7.6+commit.7338295f.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2022-01-17T20:05:41.755Z", "devdoc": { "kind": "dev", "methods": {}, "title": "FixedPoint128", "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 } }