open-dex/contracts/libraries/artifacts/build-info/f616f88ab16c793ed73ba740bc5cfd3c.json
2024-08-24 12:08:46 +03:00

1103 lines
36 KiB
JSON

{
"id": "f616f88ab16c793ed73ba740bc5cfd3c",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/libraries/LiquidityMath.sol": {
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.5.0;\r\n\r\n/// @title Math library for liquidity\r\nlibrary LiquidityMath {\r\n /// @notice Add a signed liquidity delta to liquidity and revert if it overflows or underflows\r\n /// @param x The liquidity before change\r\n /// @param y The delta by which liquidity should be changed\r\n /// @return z The liquidity delta\r\n function addDelta(uint128 x, int128 y) internal pure returns (uint128 z) {\r\n if (y < 0) {\r\n require((z = x - uint128(-y)) < x, 'LS');\r\n } else {\r\n require((z = x + uint128(y)) >= x, 'LA');\r\n }\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/libraries/LiquidityMath.sol": {
"LiquidityMath": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"title": "Math library for liquidity",
"version": 1
},
"evm": {
"assembly": " /* \"contracts/libraries/LiquidityMath.sol\":113:637 library LiquidityMath {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/libraries/LiquidityMath.sol\":113:637 library LiquidityMath {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220d5bfd02475f74fdb2abd9e513db88bd2c29381743e81e623269adad752f6cf6364736f6c634300081a0033\n}\n",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220d5bfd02475f74fdb2abd9e513db88bd2c29381743e81e623269adad752f6cf6364736f6c634300081a0033",
"opcodes": "PUSH1 0x55 PUSH1 0x4B PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH0 BYTE PUSH1 0x73 EQ PUSH1 0x3F JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST ADDRESS PUSH0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD5 0xBF 0xD0 0x24 PUSH22 0xF74FDB2ABD9E513DB88BD2C29381743E81E623269ADA 0xD7 MSTORE 0xF6 0xCF PUSH4 0x64736F6C PUSH4 0x4300081A STOP CALLER ",
"sourceMap": "113:524:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220d5bfd02475f74fdb2abd9e513db88bd2c29381743e81e623269adad752f6cf6364736f6c634300081a0033",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD5 0xBF 0xD0 0x24 PUSH22 0xF74FDB2ABD9E513DB88BD2C29381743E81E623269ADA 0xD7 MSTORE 0xF6 0xCF PUSH4 0x64736F6C PUSH4 0x4300081A STOP CALLER ",
"sourceMap": "113:524:0:-:0;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "17000",
"executionCost": "92",
"totalCost": "17092"
},
"internal": {
"addDelta(uint128,int128)": "infinite"
}
},
"legacyAssembly": {
".code": [
{
"begin": 113,
"end": 637,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 113,
"end": 637,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "B"
},
{
"begin": 113,
"end": 637,
"name": "DUP3",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "DUP3",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "DUP3",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "CODECOPY",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "DUP1",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "MLOAD",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 113,
"end": 637,
"name": "BYTE",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "73"
},
{
"begin": 113,
"end": 637,
"name": "EQ",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 113,
"end": 637,
"name": "JUMPI",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 113,
"end": 637,
"name": "MSTORE",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 113,
"end": 637,
"name": "MSTORE",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "24"
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 113,
"end": 637,
"name": "REVERT",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 113,
"end": 637,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "ADDRESS",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 113,
"end": 637,
"name": "MSTORE",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "73"
},
{
"begin": 113,
"end": 637,
"name": "DUP2",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "MSTORE8",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "DUP3",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "DUP2",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220d5bfd02475f74fdb2abd9e513db88bd2c29381743e81e623269adad752f6cf6364736f6c634300081a0033",
".code": [
{
"begin": 113,
"end": 637,
"name": "PUSHDEPLOYADDRESS",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "ADDRESS",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "EQ",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 113,
"end": 637,
"name": "MSTORE",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 113,
"end": 637,
"name": "DUP1",
"source": 0
},
{
"begin": 113,
"end": 637,
"name": "REVERT",
"source": 0
}
]
}
},
"sourceList": [
"contracts/libraries/LiquidityMath.sol",
"#utility.yul"
]
},
"methodIdentifiers": {}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Math library for liquidity\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/libraries/LiquidityMath.sol\":\"LiquidityMath\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/libraries/LiquidityMath.sol\":{\"keccak256\":\"0x3ec938fd1b7cc8751df9e2ed90fd0abf32ffacc42cf4b6edbf7138629d747944\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://a741475c8a3b5ae8eac7d328170c5a6811920dac22d3800197e39abe0ba42e01\",\"dweb:/ipfs/Qmc2fs5kxp437hWxtLZ6CB8g7vt3bkwKLxE7MMo9D5TAF9\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/libraries/LiquidityMath.sol": {
"ast": {
"absolutePath": "contracts/libraries/LiquidityMath.sol",
"exportedSymbols": {
"LiquidityMath": [
51
]
},
"id": 52,
"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": "LiquidityMath",
"contractDependencies": [],
"contractKind": "library",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "74:39:0",
"text": "@title Math library for liquidity"
},
"fullyImplemented": true,
"id": 51,
"linearizedBaseContracts": [
51
],
"name": "LiquidityMath",
"nameLocation": "121:13:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 49,
"nodeType": "Block",
"src": "465:169:0",
"statements": [
{
"condition": {
"commonType": {
"typeIdentifier": "t_int128",
"typeString": "int128"
},
"id": 14,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 12,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "480:1:0",
"typeDescriptions": {
"typeIdentifier": "t_int128",
"typeString": "int128"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"hexValue": "30",
"id": 13,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "484:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "480:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"id": 47,
"nodeType": "Block",
"src": "560:67:0",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"id": 43,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"id": 40,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 33,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10,
"src": "584:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"commonType": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"id": 39,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 34,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "588:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"arguments": [
{
"id": 37,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "600:1:0",
"typeDescriptions": {
"typeIdentifier": "t_int128",
"typeString": "int128"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_int128",
"typeString": "int128"
}
],
"id": 36,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "592:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint128_$",
"typeString": "type(uint128)"
},
"typeName": {
"id": 35,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "592:7:0",
"typeDescriptions": {}
}
},
"id": 38,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "592:10:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"src": "588:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"src": "584:18:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
}
],
"id": 41,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "583:20:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"id": 42,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "607:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"src": "583:25:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4c41",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "610:4:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ce8fc98a1432efc8ba166615239eb1702fbbbd0ddab9a5952502a98483035383",
"typeString": "literal_string \"LA\""
},
"value": "LA"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_ce8fc98a1432efc8ba166615239eb1702fbbbd0ddab9a5952502a98483035383",
"typeString": "literal_string \"LA\""
}
],
"id": 32,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "575:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 45,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "575:40:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 46,
"nodeType": "ExpressionStatement",
"src": "575:40:0"
}
]
},
"id": 48,
"nodeType": "IfStatement",
"src": "476:151:0",
"trueBody": {
"id": 31,
"nodeType": "Block",
"src": "487:67:0",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"id": 24,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 16,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10,
"src": "511:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"commonType": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"id": 23,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 17,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "515:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"arguments": [
{
"id": 21,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "-",
"prefix": true,
"src": "527:2:0",
"subExpression": {
"id": 20,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "528:1:0",
"typeDescriptions": {
"typeIdentifier": "t_int128",
"typeString": "int128"
}
},
"typeDescriptions": {
"typeIdentifier": "t_int128",
"typeString": "int128"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_int128",
"typeString": "int128"
}
],
"id": 19,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "519:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint128_$",
"typeString": "type(uint128)"
},
"typeName": {
"id": 18,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "519:7:0",
"typeDescriptions": {}
}
},
"id": 22,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "519:11:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"src": "515:15:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"src": "511:19:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
}
],
"id": 25,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "510:21:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"id": 26,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5,
"src": "534:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"src": "510:25:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4c53",
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "537:4:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_2be2231ccd52e7fedf30c30a3dfa3d6c9d9d3400159e305398a7b6d437f56985",
"typeString": "literal_string \"LS\""
},
"value": "LS"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_2be2231ccd52e7fedf30c30a3dfa3d6c9d9d3400159e305398a7b6d437f56985",
"typeString": "literal_string \"LS\""
}
],
"id": 15,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "502:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 29,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "502:40:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 30,
"nodeType": "ExpressionStatement",
"src": "502:40:0"
}
]
}
}
]
},
"documentation": {
"id": 3,
"nodeType": "StructuredDocumentation",
"src": "142:244:0",
"text": "@notice Add a signed liquidity delta to liquidity and revert if it overflows or underflows\n @param x The liquidity before change\n @param y The delta by which liquidity should be changed\n @return z The liquidity delta"
},
"id": 50,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "addDelta",
"nameLocation": "401:8:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 8,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "x",
"nameLocation": "418:1:0",
"nodeType": "VariableDeclaration",
"scope": 50,
"src": "410:9:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 4,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "410:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7,
"mutability": "mutable",
"name": "y",
"nameLocation": "428:1:0",
"nodeType": "VariableDeclaration",
"scope": 50,
"src": "421:8:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int128",
"typeString": "int128"
},
"typeName": {
"id": 6,
"name": "int128",
"nodeType": "ElementaryTypeName",
"src": "421:6:0",
"typeDescriptions": {
"typeIdentifier": "t_int128",
"typeString": "int128"
}
},
"visibility": "internal"
}
],
"src": "409:21:0"
},
"returnParameters": {
"id": 11,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "z",
"nameLocation": "462:1:0",
"nodeType": "VariableDeclaration",
"scope": 50,
"src": "454:9:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 9,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "454:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
}
],
"src": "453:11:0"
},
"scope": 51,
"src": "392:242:0",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
}
],
"scope": 52,
"src": "113:524:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "46:593:0"
},
"id": 0
}
}
}
}