UNPKG

hardlydifficult-ethereum-contracts

Version:
1,387 lines 47.6 kB
{ "contractName": "IUniswapFactory", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "exchange", "type": "address" } ], "name": "NewExchange", "type": "event" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "token", "type": "address" } ], "name": "getExchange", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "exchangeTemplate", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "tokenCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "exchange", "type": "address" } ], "name": "getToken", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "token_id", "type": "uint256" } ], "name": "getTokenWithId", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "template", "type": "address" } ], "name": "initializeFactory", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "token", "type": "address" } ], "name": "createExchange", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"}],\"name\":\"NewExchange\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"createExchange\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"exchangeTemplate\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getExchange\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"token_id\",\"type\":\"uint256\"}],\"name\":\"getTokenWithId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"template\",\"type\":\"address\"}],\"name\":\"initializeFactory\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"tokenCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/circleci/repo/contracts/interfaces/IUniswapFactory.sol\":\"IUniswapFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"/home/circleci/repo/contracts/interfaces/IUniswapFactory.sol\":{\"keccak256\":\"0xecd186ec4d248c75a71feb6954905adbb34e8c1a776a7508737234d9ae72d6ac\",\"urls\":[\"bzz-raw://569c0536bd57547d3bd7ce3a86d9d634142f070431ff8f8861fb976d5f8ff4cd\",\"dweb:/ipfs/QmXwaoDXuGpHogYxVJLp2yC85Fp48qMMJ4EFhNvByFDAeU\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.0;\n\n\n// Source: https://github.com/Uniswap/contracts-vyper/blob/master/contracts/uniswap_factory.vy\ninterface IUniswapFactory\n{\n // Events\n event NewExchange(address indexed token, address indexed exchange);\n\n // Read-only\n function getExchange(address token) external view returns (address);\n function exchangeTemplate() external view returns (address);\n function tokenCount() external view returns (uint256);\n function getToken(address exchange) external view returns (address);\n function getTokenWithId(uint256 token_id) external view returns (address);\n\n // Transactions\n function initializeFactory(address template) external;\n function createExchange(address token) external returns (address);\n}\n", "sourcePath": "/home/circleci/repo/contracts/interfaces/IUniswapFactory.sol", "ast": { "absolutePath": "/home/circleci/repo/contracts/interfaces/IUniswapFactory.sol", "exportedSymbols": { "IUniswapFactory": [ 562 ] }, "id": 563, "nodeType": "SourceUnit", "nodes": [ { "id": 512, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 562, "linearizedBaseContracts": [ 562 ], "name": "IUniswapFactory", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 518, "name": "NewExchange", "nodeType": "EventDefinition", "parameters": { "id": 517, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 514, "indexed": true, "name": "token", "nodeType": "VariableDeclaration", "scope": 518, "src": "181:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 513, "name": "address", "nodeType": "ElementaryTypeName", "src": "181:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 516, "indexed": true, "name": "exchange", "nodeType": "VariableDeclaration", "scope": 518, "src": "204:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 515, "name": "address", "nodeType": "ElementaryTypeName", "src": "204:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "180:49:2" }, "src": "163:67:2" }, { "body": null, "documentation": null, "id": 525, "implemented": false, "kind": "function", "modifiers": [], "name": "getExchange", "nodeType": "FunctionDefinition", "parameters": { "id": 521, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 520, "name": "token", "nodeType": "VariableDeclaration", "scope": 525, "src": "270:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 519, "name": "address", "nodeType": "ElementaryTypeName", "src": "270:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "269:15:2" }, "returnParameters": { "id": 524, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 523, "name": "", "nodeType": "VariableDeclaration", "scope": 525, "src": "308:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 522, "name": "address", "nodeType": "ElementaryTypeName", "src": "308:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "307:9:2" }, "scope": 562, "src": "249:68:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 530, "implemented": false, "kind": "function", "modifiers": [], "name": "exchangeTemplate", "nodeType": "FunctionDefinition", "parameters": { "id": 526, "nodeType": "ParameterList", "parameters": [], "src": "345:2:2" }, "returnParameters": { "id": 529, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 528, "name": "", "nodeType": "VariableDeclaration", "scope": 530, "src": "371:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 527, "name": "address", "nodeType": "ElementaryTypeName", "src": "371:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "370:9:2" }, "scope": 562, "src": "320:60:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 535, "implemented": false, "kind": "function", "modifiers": [], "name": "tokenCount", "nodeType": "FunctionDefinition", "parameters": { "id": 531, "nodeType": "ParameterList", "parameters": [], "src": "402:2:2" }, "returnParameters": { "id": 534, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 533, "name": "", "nodeType": "VariableDeclaration", "scope": 535, "src": "428:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 532, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "428:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "427:9:2" }, "scope": 562, "src": "383:54:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 542, "implemented": false, "kind": "function", "modifiers": [], "name": "getToken", "nodeType": "FunctionDefinition", "parameters": { "id": 538, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 537, "name": "exchange", "nodeType": "VariableDeclaration", "scope": 542, "src": "458:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 536, "name": "address", "nodeType": "ElementaryTypeName", "src": "458:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "457:18:2" }, "returnParameters": { "id": 541, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 540, "name": "", "nodeType": "VariableDeclaration", "scope": 542, "src": "499:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 539, "name": "address", "nodeType": "ElementaryTypeName", "src": "499:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "498:9:2" }, "scope": 562, "src": "440:68:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 549, "implemented": false, "kind": "function", "modifiers": [], "name": "getTokenWithId", "nodeType": "FunctionDefinition", "parameters": { "id": 545, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 544, "name": "token_id", "nodeType": "VariableDeclaration", "scope": 549, "src": "535:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 543, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "535:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "534:18:2" }, "returnParameters": { "id": 548, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 547, "name": "", "nodeType": "VariableDeclaration", "scope": 549, "src": "576:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 546, "name": "address", "nodeType": "ElementaryTypeName", "src": "576:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "575:9:2" }, "scope": 562, "src": "511:74:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 554, "implemented": false, "kind": "function", "modifiers": [], "name": "initializeFactory", "nodeType": "FunctionDefinition", "parameters": { "id": 552, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 551, "name": "template", "nodeType": "VariableDeclaration", "scope": 554, "src": "634:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 550, "name": "address", "nodeType": "ElementaryTypeName", "src": "634:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "633:18:2" }, "returnParameters": { "id": 553, "nodeType": "ParameterList", "parameters": [], "src": "660:0:2" }, "scope": 562, "src": "607:54:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 561, "implemented": false, "kind": "function", "modifiers": [], "name": "createExchange", "nodeType": "FunctionDefinition", "parameters": { "id": 557, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 556, "name": "token", "nodeType": "VariableDeclaration", "scope": 561, "src": "688:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 555, "name": "address", "nodeType": "ElementaryTypeName", "src": "688:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "687:15:2" }, "returnParameters": { "id": 560, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 559, "name": "", "nodeType": "VariableDeclaration", "scope": 561, "src": "721:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 558, "name": "address", "nodeType": "ElementaryTypeName", "src": "721:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "720:9:2" }, "scope": 562, "src": "664:66:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 563, "src": "121:611:2" } ], "src": "0:733:2" }, "legacyAST": { "absolutePath": "/home/circleci/repo/contracts/interfaces/IUniswapFactory.sol", "exportedSymbols": { "IUniswapFactory": [ 562 ] }, "id": 563, "nodeType": "SourceUnit", "nodes": [ { "id": 512, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 562, "linearizedBaseContracts": [ 562 ], "name": "IUniswapFactory", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 518, "name": "NewExchange", "nodeType": "EventDefinition", "parameters": { "id": 517, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 514, "indexed": true, "name": "token", "nodeType": "VariableDeclaration", "scope": 518, "src": "181:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 513, "name": "address", "nodeType": "ElementaryTypeName", "src": "181:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 516, "indexed": true, "name": "exchange", "nodeType": "VariableDeclaration", "scope": 518, "src": "204:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 515, "name": "address", "nodeType": "ElementaryTypeName", "src": "204:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "180:49:2" }, "src": "163:67:2" }, { "body": null, "documentation": null, "id": 525, "implemented": false, "kind": "function", "modifiers": [], "name": "getExchange", "nodeType": "FunctionDefinition", "parameters": { "id": 521, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 520, "name": "token", "nodeType": "VariableDeclaration", "scope": 525, "src": "270:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 519, "name": "address", "nodeType": "ElementaryTypeName", "src": "270:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "269:15:2" }, "returnParameters": { "id": 524, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 523, "name": "", "nodeType": "VariableDeclaration", "scope": 525, "src": "308:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 522, "name": "address", "nodeType": "ElementaryTypeName", "src": "308:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "307:9:2" }, "scope": 562, "src": "249:68:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 530, "implemented": false, "kind": "function", "modifiers": [], "name": "exchangeTemplate", "nodeType": "FunctionDefinition", "parameters": { "id": 526, "nodeType": "ParameterList", "parameters": [], "src": "345:2:2" }, "returnParameters": { "id": 529, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 528, "name": "", "nodeType": "VariableDeclaration", "scope": 530, "src": "371:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 527, "name": "address", "nodeType": "ElementaryTypeName", "src": "371:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "370:9:2" }, "scope": 562, "src": "320:60:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 535, "implemented": false, "kind": "function", "modifiers": [], "name": "tokenCount", "nodeType": "FunctionDefinition", "parameters": { "id": 531, "nodeType": "ParameterList", "parameters": [], "src": "402:2:2" }, "returnParameters": { "id": 534, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 533, "name": "", "nodeType": "VariableDeclaration", "scope": 535, "src": "428:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 532, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "428:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "427:9:2" }, "scope": 562, "src": "383:54:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 542, "implemented": false, "kind": "function", "modifiers": [], "name": "getToken", "nodeType": "FunctionDefinition", "parameters": { "id": 538, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 537, "name": "exchange", "nodeType": "VariableDeclaration", "scope": 542, "src": "458:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 536, "name": "address", "nodeType": "ElementaryTypeName", "src": "458:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "457:18:2" }, "returnParameters": { "id": 541, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 540, "name": "", "nodeType": "VariableDeclaration", "scope": 542, "src": "499:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 539, "name": "address", "nodeType": "ElementaryTypeName", "src": "499:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "498:9:2" }, "scope": 562, "src": "440:68:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 549, "implemented": false, "kind": "function", "modifiers": [], "name": "getTokenWithId", "nodeType": "FunctionDefinition", "parameters": { "id": 545, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 544, "name": "token_id", "nodeType": "VariableDeclaration", "scope": 549, "src": "535:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 543, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "535:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "534:18:2" }, "returnParameters": { "id": 548, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 547, "name": "", "nodeType": "VariableDeclaration", "scope": 549, "src": "576:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 546, "name": "address", "nodeType": "ElementaryTypeName", "src": "576:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "575:9:2" }, "scope": 562, "src": "511:74:2", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 554, "implemented": false, "kind": "function", "modifiers": [], "name": "initializeFactory", "nodeType": "FunctionDefinition", "parameters": { "id": 552, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 551, "name": "template", "nodeType": "VariableDeclaration", "scope": 554, "src": "634:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 550, "name": "address", "nodeType": "ElementaryTypeName", "src": "634:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "633:18:2" }, "returnParameters": { "id": 553, "nodeType": "ParameterList", "parameters": [], "src": "660:0:2" }, "scope": 562, "src": "607:54:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 561, "implemented": false, "kind": "function", "modifiers": [], "name": "createExchange", "nodeType": "FunctionDefinition", "parameters": { "id": 557, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 556, "name": "token", "nodeType": "VariableDeclaration", "scope": 561, "src": "688:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 555, "name": "address", "nodeType": "ElementaryTypeName", "src": "688:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "687:15:2" }, "returnParameters": { "id": 560, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 559, "name": "", "nodeType": "VariableDeclaration", "scope": 561, "src": "721:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 558, "name": "address", "nodeType": "ElementaryTypeName", "src": "721:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "720:9:2" }, "scope": 562, "src": "664:66:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 563, "src": "121:611:2" } ], "src": "0:733:2" }, "compiler": { "name": "solc", "version": "0.5.17+commit.d19bba13.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.23", "updatedAt": "2020-04-07T20:17:34.929Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }