UNPKG

@valueswap/v2-periphery

Version:

🎚 Peripheral smart contracts for interacting with Valueswap V2

1,421 lines (1,420 loc) • 58.5 kB
{ "contractName": "IValueswapV1Exchange", "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/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/V1/IValueswapV1Exchange.sol\":\"IValueswapV1Exchange\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/V1/IValueswapV1Exchange.sol\":{\"keccak256\":\"0x18347987e5ec9f2db6d046221e16425bbbd2b615f7d857e581eaa3c4622a299e\",\"urls\":[\"bzz-raw://152e46b593cc84f238a26ac798a240a104f83473db87528a1dd90f4624dd70b9\",\"dweb:/ipfs/QmVCrpGsk4cmvLBN56tdcdtaZojFFkwsNrKWw9oZSjRkAT\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\n\ninterface IValueswapV1Exchange {\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/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/V1/IValueswapV1Exchange.sol", "ast": { "absolutePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/V1/IValueswapV1Exchange.sol", "exportedSymbols": { "IValueswapV1Exchange": [ 5496 ] }, "id": 5497, "nodeType": "SourceUnit", "nodes": [ { "id": 5442, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:13" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 5496, "linearizedBaseContracts": [ 5496 ], "name": "IValueswapV1Exchange", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "70a08231", "id": 5449, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5445, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5444, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5449, "src": "82:13:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5443, "name": "address", "nodeType": "ElementaryTypeName", "src": "82:7:13", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "81:15:13" }, "returnParameters": { "id": 5448, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5447, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5449, "src": "120:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5446, "name": "uint", "nodeType": "ElementaryTypeName", "src": "120:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "119:6:13" }, "scope": 5496, "src": "63:63:13", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "23b872dd", "id": 5460, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5456, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5451, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5460, "src": "153:12:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5450, "name": "address", "nodeType": "ElementaryTypeName", "src": "153:7:13", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5453, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5460, "src": "167:10:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5452, "name": "address", "nodeType": "ElementaryTypeName", "src": "167:7:13", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5455, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5460, "src": "179:10:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5454, "name": "uint", "nodeType": "ElementaryTypeName", "src": "179:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "152:38:13" }, "returnParameters": { "id": 5459, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5458, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5460, "src": "209:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5457, "name": "bool", "nodeType": "ElementaryTypeName", "src": "209:4:13", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "208:6:13" }, "scope": 5496, "src": "131:84:13", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "f88bf15a", "id": 5475, "implemented": false, "kind": "function", "modifiers": [], "name": "removeLiquidity", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5469, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5462, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5475, "src": "245:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5461, "name": "uint", "nodeType": "ElementaryTypeName", "src": "245:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5464, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5475, "src": "251:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5463, "name": "uint", "nodeType": "ElementaryTypeName", "src": "251:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5466, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5475, "src": "257:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5465, "name": "uint", "nodeType": "ElementaryTypeName", "src": "257:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5468, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5475, "src": "263:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5467, "name": "uint", "nodeType": "ElementaryTypeName", "src": "263:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "244:24:13" }, "returnParameters": { "id": 5474, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5471, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5475, "src": "287:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5470, "name": "uint", "nodeType": "ElementaryTypeName", "src": "287:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5473, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5475, "src": "293:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5472, "name": "uint", "nodeType": "ElementaryTypeName", "src": "293:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "286:12:13" }, "scope": 5496, "src": "220:79:13", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "95e3c50b", "id": 5486, "implemented": false, "kind": "function", "modifiers": [], "name": "tokenToEthSwapInput", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5482, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5477, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5486, "src": "333:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5476, "name": "uint", "nodeType": "ElementaryTypeName", "src": "333:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5479, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5486, "src": "339:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5478, "name": "uint", "nodeType": "ElementaryTypeName", "src": "339:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5481, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5486, "src": "345:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5480, "name": "uint", "nodeType": "ElementaryTypeName", "src": "345:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "332:18:13" }, "returnParameters": { "id": 5485, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5484, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5486, "src": "369:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5483, "name": "uint", "nodeType": "ElementaryTypeName", "src": "369:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "368:6:13" }, "scope": 5496, "src": "304:71:13", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "f39b5b9b", "id": 5495, "implemented": false, "kind": "function", "modifiers": [], "name": "ethToTokenSwapInput", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5491, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5488, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5495, "src": "409:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5487, "name": "uint", "nodeType": "ElementaryTypeName", "src": "409:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5490, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5495, "src": "415:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5489, "name": "uint", "nodeType": "ElementaryTypeName", "src": "415:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "408:12:13" }, "returnParameters": { "id": 5494, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5493, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5495, "src": "447:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5492, "name": "uint", "nodeType": "ElementaryTypeName", "src": "447:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "446:6:13" }, "scope": 5496, "src": "380:73:13", "stateMutability": "payable", "virtual": false, "visibility": "external" } ], "scope": 5497, "src": "26:429:13" } ], "src": "0:456:13" }, "legacyAST": { "attributes": { "absolutePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/V1/IValueswapV1Exchange.sol", "exportedSymbols": { "IValueswapV1Exchange": [ 5496 ] } }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 5442, "name": "PragmaDirective", "src": "0:24:13" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "linearizedBaseContracts": [ 5496 ], "name": "IValueswapV1Exchange", "scope": 5497 }, "children": [ { "attributes": { "body": null, "documentation": null, "functionSelector": "70a08231", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "balanceOf", "overrides": null, "scope": 5496, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "owner", "overrides": null, "scope": 5449, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 5443, "name": "ElementaryTypeName", "src": "82:7:13" } ], "id": 5444, "name": "VariableDeclaration", "src": "82:13:13" } ], "id": 5445, "name": "ParameterList", "src": "81:15:13" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5449, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5446, "name": "ElementaryTypeName", "src": "120:4:13" } ], "id": 5447, "name": "VariableDeclaration", "src": "120:4:13" } ], "id": 5448, "name": "ParameterList", "src": "119:6:13" } ], "id": 5449, "name": "FunctionDefinition", "src": "63:63:13" }, { "attributes": { "body": null, "documentation": null, "functionSelector": "23b872dd", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "transferFrom", "overrides": null, "scope": 5496, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "from", "overrides": null, "scope": 5460, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 5450, "name": "ElementaryTypeName", "src": "153:7:13" } ], "id": 5451, "name": "VariableDeclaration", "src": "153:12:13" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "to", "overrides": null, "scope": 5460, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 5452, "name": "ElementaryTypeName", "src": "167:7:13" } ], "id": 5453, "name": "VariableDeclaration", "src": "167:10:13" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "value", "overrides": null, "scope": 5460, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5454, "name": "ElementaryTypeName", "src": "179:4:13" } ], "id": 5455, "name": "VariableDeclaration", "src": "179:10:13" } ], "id": 5456, "name": "ParameterList", "src": "152:38:13" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5460, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 5457, "name": "ElementaryTypeName", "src": "209:4:13" } ], "id": 5458, "name": "VariableDeclaration", "src": "209:4:13" } ], "id": 5459, "name": "ParameterList", "src": "208:6:13" } ], "id": 5460, "name": "FunctionDefinition", "src": "131:84:13" }, { "attributes": { "body": null, "documentation": null, "functionSelector": "f88bf15a", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "removeLiquidity", "overrides": null, "scope": 5496, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5475, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5461, "name": "ElementaryTypeName", "src": "245:4:13" } ], "id": 5462, "name": "VariableDeclaration", "src": "245:4:13" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5475, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5463, "name": "ElementaryTypeName", "src": "251:4:13" } ], "id": 5464, "name": "VariableDeclaration", "src": "251:4:13" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5475, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5465, "name": "ElementaryTypeName", "src": "257:4:13" } ], "id": 5466, "name": "VariableDeclaration", "src": "257:4:13" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5475, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5467, "name": "ElementaryTypeName", "src": "263:4:13" } ], "id": 5468, "name": "VariableDeclaration", "src": "263:4:13" } ], "id": 5469, "name": "ParameterList", "src": "244:24:13" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5475, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5470, "name": "ElementaryTypeName", "src": "287:4:13" } ], "id": 5471, "name": "VariableDeclaration", "src": "287:4:13" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5475, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5472, "name": "ElementaryTypeName", "src": "293:4:13" } ], "id": 5473, "name": "VariableDeclaration", "src": "293:4:13" } ], "id": 5474, "name": "ParameterList", "src": "286:12:13" } ], "id": 5475, "name": "FunctionDefinition", "src": "220:79:13" }, { "attributes": { "body": null, "documentation": null, "functionSelector": "95e3c50b", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "tokenToEthSwapInput", "overrides": null, "scope": 5496, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 5486, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5476,