UNPKG

moonwalkerswap-v2-periphery

Version:
1,416 lines (1,415 loc) 58.6 kB
{ "contractName": "IMoonwalkerswapV1Exchange", "abi": [ { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "removeLiquidity", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "tokenToEthSwapInput", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "ethToTokenSwapInput", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "payable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ethToTokenSwapInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenToEthSwapInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/V1/IMoonwalkerswapV1Exchange.sol\":\"IMoonwalkerswapV1Exchange\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/V1/IMoonwalkerswapV1Exchange.sol\":{\"keccak256\":\"0x2788c69fa93f52896bb4eaf5eba53f1a3a6f0ad6bf279638e6a4ba4654f32849\",\"urls\":[\"bzz-raw://3ddd98f3b9f1575bf1aadfcd871e466bd9b604d7bcce4eef78c02d18caab26bf\",\"dweb:/ipfs/QmbQtYPJYcZBLYJGBRoaLKHj6HhnQ4EKV4X3348KfooNXm\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\n\ninterface IMoonwalkerswapV1Exchange {\n function balanceOf(address owner) external view returns (uint);\n function transferFrom(address from, address to, uint value) external returns (bool);\n function removeLiquidity(uint, uint, uint, uint) external returns (uint, uint);\n function tokenToEthSwapInput(uint, uint, uint) external returns (uint);\n function ethToTokenSwapInput(uint, uint) external payable returns (uint);\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/V1/IMoonwalkerswapV1Exchange.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/V1/IMoonwalkerswapV1Exchange.sol", "exportedSymbols": { "IMoonwalkerswapV1Exchange": [ 4237 ] }, "id": 4238, "nodeType": "SourceUnit", "nodes": [ { "id": 4183, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:8" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 4237, "linearizedBaseContracts": [ 4237 ], "name": "IMoonwalkerswapV1Exchange", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "70a08231", "id": 4190, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4186, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4185, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4190, "src": "87:13:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4184, "name": "address", "nodeType": "ElementaryTypeName", "src": "87:7:8", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "86:15:8" }, "returnParameters": { "id": 4189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4188, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4190, "src": "125:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4187, "name": "uint", "nodeType": "ElementaryTypeName", "src": "125:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "124:6:8" }, "scope": 4237, "src": "68:63:8", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "23b872dd", "id": 4201, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4197, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4192, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4201, "src": "158:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4191, "name": "address", "nodeType": "ElementaryTypeName", "src": "158:7:8", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4194, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4201, "src": "172:10:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4193, "name": "address", "nodeType": "ElementaryTypeName", "src": "172:7:8", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4196, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4201, "src": "184:10:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4195, "name": "uint", "nodeType": "ElementaryTypeName", "src": "184:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "157:38:8" }, "returnParameters": { "id": 4200, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4199, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4201, "src": "214:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4198, "name": "bool", "nodeType": "ElementaryTypeName", "src": "214:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "213:6:8" }, "scope": 4237, "src": "136:84:8", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "f88bf15a", "id": 4216, "implemented": false, "kind": "function", "modifiers": [], "name": "removeLiquidity", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4210, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4203, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4216, "src": "250:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4202, "name": "uint", "nodeType": "ElementaryTypeName", "src": "250:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4205, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4216, "src": "256:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4204, "name": "uint", "nodeType": "ElementaryTypeName", "src": "256:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4207, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4216, "src": "262:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4206, "name": "uint", "nodeType": "ElementaryTypeName", "src": "262:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4209, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4216, "src": "268:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4208, "name": "uint", "nodeType": "ElementaryTypeName", "src": "268:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "249:24:8" }, "returnParameters": { "id": 4215, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4212, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4216, "src": "292:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4211, "name": "uint", "nodeType": "ElementaryTypeName", "src": "292:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4214, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4216, "src": "298:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4213, "name": "uint", "nodeType": "ElementaryTypeName", "src": "298:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "291:12:8" }, "scope": 4237, "src": "225:79:8", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "95e3c50b", "id": 4227, "implemented": false, "kind": "function", "modifiers": [], "name": "tokenToEthSwapInput", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4223, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4218, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4227, "src": "338:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4217, "name": "uint", "nodeType": "ElementaryTypeName", "src": "338:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4220, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4227, "src": "344:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4219, "name": "uint", "nodeType": "ElementaryTypeName", "src": "344:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4222, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4227, "src": "350:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4221, "name": "uint", "nodeType": "ElementaryTypeName", "src": "350:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "337:18:8" }, "returnParameters": { "id": 4226, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4225, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4227, "src": "374:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4224, "name": "uint", "nodeType": "ElementaryTypeName", "src": "374:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "373:6:8" }, "scope": 4237, "src": "309:71:8", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "f39b5b9b", "id": 4236, "implemented": false, "kind": "function", "modifiers": [], "name": "ethToTokenSwapInput", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4232, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4229, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4236, "src": "414:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4228, "name": "uint", "nodeType": "ElementaryTypeName", "src": "414:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4231, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4236, "src": "420:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4230, "name": "uint", "nodeType": "ElementaryTypeName", "src": "420:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "413:12:8" }, "returnParameters": { "id": 4235, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4234, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4236, "src": "452:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4233, "name": "uint", "nodeType": "ElementaryTypeName", "src": "452:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "451:6:8" }, "scope": 4237, "src": "385:73:8", "stateMutability": "payable", "virtual": false, "visibility": "external" } ], "scope": 4238, "src": "26:434:8" } ], "src": "0:461:8" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/V1/IMoonwalkerswapV1Exchange.sol", "exportedSymbols": { "IMoonwalkerswapV1Exchange": [ 4237 ] } }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 4183, "name": "PragmaDirective", "src": "0:24:8" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "linearizedBaseContracts": [ 4237 ], "name": "IMoonwalkerswapV1Exchange", "scope": 4238 }, "children": [ { "attributes": { "body": null, "documentation": null, "functionSelector": "70a08231", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "balanceOf", "overrides": null, "scope": 4237, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "owner", "overrides": null, "scope": 4190, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 4184, "name": "ElementaryTypeName", "src": "87:7:8" } ], "id": 4185, "name": "VariableDeclaration", "src": "87:13:8" } ], "id": 4186, "name": "ParameterList", "src": "86:15:8" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4190, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4187, "name": "ElementaryTypeName", "src": "125:4:8" } ], "id": 4188, "name": "VariableDeclaration", "src": "125:4:8" } ], "id": 4189, "name": "ParameterList", "src": "124:6:8" } ], "id": 4190, "name": "FunctionDefinition", "src": "68:63:8" }, { "attributes": { "body": null, "documentation": null, "functionSelector": "23b872dd", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "transferFrom", "overrides": null, "scope": 4237, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "from", "overrides": null, "scope": 4201, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 4191, "name": "ElementaryTypeName", "src": "158:7:8" } ], "id": 4192, "name": "VariableDeclaration", "src": "158:12:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "to", "overrides": null, "scope": 4201, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 4193, "name": "ElementaryTypeName", "src": "172:7:8" } ], "id": 4194, "name": "VariableDeclaration", "src": "172:10:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "value", "overrides": null, "scope": 4201, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4195, "name": "ElementaryTypeName", "src": "184:4:8" } ], "id": 4196, "name": "VariableDeclaration", "src": "184:10:8" } ], "id": 4197, "name": "ParameterList", "src": "157:38:8" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4201, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 4198, "name": "ElementaryTypeName", "src": "214:4:8" } ], "id": 4199, "name": "VariableDeclaration", "src": "214:4:8" } ], "id": 4200, "name": "ParameterList", "src": "213:6:8" } ], "id": 4201, "name": "FunctionDefinition", "src": "136:84:8" }, { "attributes": { "body": null, "documentation": null, "functionSelector": "f88bf15a", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "removeLiquidity", "overrides": null, "scope": 4237, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4216, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4202, "name": "ElementaryTypeName", "src": "250:4:8" } ], "id": 4203, "name": "VariableDeclaration", "src": "250:4:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4216, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4204, "name": "ElementaryTypeName", "src": "256:4:8" } ], "id": 4205, "name": "VariableDeclaration", "src": "256:4:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4216, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4206, "name": "ElementaryTypeName", "src": "262:4:8" } ], "id": 4207, "name": "VariableDeclaration", "src": "262:4:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4216, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4208, "name": "ElementaryTypeName", "src": "268:4:8" } ], "id": 4209, "name": "VariableDeclaration", "src": "268:4:8" } ], "id": 4210, "name": "ParameterList", "src": "249:24:8" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4216, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4211, "name": "ElementaryTypeName", "src": "292:4:8" } ], "id": 4212, "name": "VariableDeclaration", "src": "292:4:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4216, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4213, "name": "ElementaryTypeName", "src": "298:4:8" } ], "id": 4214, "name": "VariableDeclaration", "src": "298:4:8" } ], "id": 4215, "name": "ParameterList", "src": "291:12:8" } ], "id": 4216, "name": "FunctionDefinition", "src": "225:79:8" }, { "attributes": { "body": null, "documentation": null, "functionSelector": "95e3c50b", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "tokenToEthSwapInput", "overrides": null, "scope": 4237, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4227, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ {