UNPKG

@reality.eth/contracts

Version:

Collection of smart contracts for the Realitio fact verification platform

1,535 lines 61.2 kB
{ "contractName": "IERC20", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "spender", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "who", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "owner", "type": "address" }, { "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "spender", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "from", "type": "address" }, { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ninterface IERC20 {\n function totalSupply() external view returns (uint256);\n\n function balanceOf(address who) external view returns (uint256);\n\n function allowance(address owner, address spender) external view returns (uint256);\n\n function transfer(address to, uint256 value) external returns (bool);\n\n function approve(address spender, uint256 value) external returns (bool);\n\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n", "sourcePath": "/home/ed/working/realitio-contracts-newtest/truffle/contracts/IERC20.sol", "ast": { "absolutePath": "/home/ed/working/realitio-contracts-newtest/truffle/contracts/IERC20.sol", "exportedSymbols": { "IERC20": [ 117 ] }, "id": 118, "nodeType": "SourceUnit", "nodes": [ { "id": 50, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:1" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 117, "linearizedBaseContracts": [ 117 ], "name": "IERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 55, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 51, "nodeType": "ParameterList", "parameters": [], "src": "158:2:1" }, "payable": false, "returnParameters": { "id": 54, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 53, "name": "", "nodeType": "VariableDeclaration", "scope": 55, "src": "184:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 52, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "184:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "183:9:1" }, "scope": 117, "src": "138:55:1", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 62, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 58, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 57, "name": "who", "nodeType": "VariableDeclaration", "scope": 62, "src": "218:11:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 56, "name": "address", "nodeType": "ElementaryTypeName", "src": "218:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "217:13:1" }, "payable": false, "returnParameters": { "id": 61, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 60, "name": "", "nodeType": "VariableDeclaration", "scope": 62, "src": "254:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 59, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "254:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "253:9:1" }, "scope": 117, "src": "199:64:1", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 71, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 67, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 64, "name": "owner", "nodeType": "VariableDeclaration", "scope": 71, "src": "288:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 63, "name": "address", "nodeType": "ElementaryTypeName", "src": "288:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 66, "name": "spender", "nodeType": "VariableDeclaration", "scope": 71, "src": "303:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 65, "name": "address", "nodeType": "ElementaryTypeName", "src": "303:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "287:32:1" }, "payable": false, "returnParameters": { "id": 70, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 69, "name": "", "nodeType": "VariableDeclaration", "scope": 71, "src": "343:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 68, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "343:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "342:9:1" }, "scope": 117, "src": "269:83:1", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 80, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 76, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 73, "name": "to", "nodeType": "VariableDeclaration", "scope": 80, "src": "376:10:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 72, "name": "address", "nodeType": "ElementaryTypeName", "src": "376:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 75, "name": "value", "nodeType": "VariableDeclaration", "scope": 80, "src": "388:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 74, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "388:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "375:27:1" }, "payable": false, "returnParameters": { "id": 79, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 78, "name": "", "nodeType": "VariableDeclaration", "scope": 80, "src": "421:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 77, "name": "bool", "nodeType": "ElementaryTypeName", "src": "421:4:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "420:6:1" }, "scope": 117, "src": "358:69:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 89, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 85, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 82, "name": "spender", "nodeType": "VariableDeclaration", "scope": 89, "src": "450:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 81, "name": "address", "nodeType": "ElementaryTypeName", "src": "450:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 84, "name": "value", "nodeType": "VariableDeclaration", "scope": 89, "src": "467:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 83, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "467:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "449:32:1" }, "payable": false, "returnParameters": { "id": 88, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 87, "name": "", "nodeType": "VariableDeclaration", "scope": 89, "src": "500:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 86, "name": "bool", "nodeType": "ElementaryTypeName", "src": "500:4:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "499:6:1" }, "scope": 117, "src": "433:73:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 100, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 96, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 91, "name": "from", "nodeType": "VariableDeclaration", "scope": 100, "src": "534:12:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 90, "name": "address", "nodeType": "ElementaryTypeName", "src": "534:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 93, "name": "to", "nodeType": "VariableDeclaration", "scope": 100, "src": "548:10:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 92, "name": "address", "nodeType": "ElementaryTypeName", "src": "548:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 95, "name": "value", "nodeType": "VariableDeclaration", "scope": 100, "src": "560:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 94, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "560:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "533:41:1" }, "payable": false, "returnParameters": { "id": 99, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 98, "name": "", "nodeType": "VariableDeclaration", "scope": 100, "src": "593:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 97, "name": "bool", "nodeType": "ElementaryTypeName", "src": "593:4:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "592:6:1" }, "scope": 117, "src": "512:87:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "anonymous": false, "documentation": null, "id": 108, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 107, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 102, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 108, "src": "620:20:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 101, "name": "address", "nodeType": "ElementaryTypeName", "src": "620:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 104, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 108, "src": "642:18:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 103, "name": "address", "nodeType": "ElementaryTypeName", "src": "642:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 106, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 108, "src": "662:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 105, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "662:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "619:57:1" }, "src": "605:72:1" }, { "anonymous": false, "documentation": null, "id": 116, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 115, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 110, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 116, "src": "698:21:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 109, "name": "address", "nodeType": "ElementaryTypeName", "src": "698:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 112, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 116, "src": "721:23:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 111, "name": "address", "nodeType": "ElementaryTypeName", "src": "721:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 114, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 116, "src": "746:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 113, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "746:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "697:63:1" }, "src": "683:78:1" } ], "scope": 118, "src": "115:648:1" } ], "src": "0:764:1" }, "legacyAST": { "absolutePath": "/home/ed/working/realitio-contracts-newtest/truffle/contracts/IERC20.sol", "exportedSymbols": { "IERC20": [ 117 ] }, "id": 118, "nodeType": "SourceUnit", "nodes": [ { "id": 50, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:1" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 117, "linearizedBaseContracts": [ 117 ], "name": "IERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 55, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 51, "nodeType": "ParameterList", "parameters": [], "src": "158:2:1" }, "payable": false, "returnParameters": { "id": 54, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 53, "name": "", "nodeType": "VariableDeclaration", "scope": 55, "src": "184:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 52, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "184:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "183:9:1" }, "scope": 117, "src": "138:55:1", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 62, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 58, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 57, "name": "who", "nodeType": "VariableDeclaration", "scope": 62, "src": "218:11:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 56, "name": "address", "nodeType": "ElementaryTypeName", "src": "218:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "217:13:1" }, "payable": false, "returnParameters": { "id": 61, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 60, "name": "", "nodeType": "VariableDeclaration", "scope": 62, "src": "254:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 59, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "254:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "253:9:1" }, "scope": 117, "src": "199:64:1", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 71, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 67, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 64, "name": "owner", "nodeType": "VariableDeclaration", "scope": 71, "src": "288:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 63, "name": "address", "nodeType": "ElementaryTypeName", "src": "288:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 66, "name": "spender", "nodeType": "VariableDeclaration", "scope": 71, "src": "303:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 65, "name": "address", "nodeType": "ElementaryTypeName", "src": "303:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "287:32:1" }, "payable": false, "returnParameters": { "id": 70, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 69, "name": "", "nodeType": "VariableDeclaration", "scope": 71, "src": "343:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 68, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "343:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "342:9:1" }, "scope": 117, "src": "269:83:1", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 80, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 76, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 73, "name": "to", "nodeType": "VariableDeclaration", "scope": 80, "src": "376:10:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 72, "name": "address", "nodeType": "ElementaryTypeName", "src": "376:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 75, "name": "value", "nodeType": "VariableDeclaration", "scope": 80, "src": "388:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 74, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "388:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "375:27:1" }, "payable": false, "returnParameters": { "id": 79, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 78, "name": "", "nodeType": "VariableDeclaration", "scope": 80, "src": "421:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 77, "name": "bool", "nodeType": "ElementaryTypeName", "src": "421:4:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "420:6:1" }, "scope": 117, "src": "358:69:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 89, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 85, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 82, "name": "spender", "nodeType": "VariableDeclaration", "scope": 89, "src": "450:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 81, "name": "address", "nodeType": "ElementaryTypeName", "src": "450:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 84, "name": "value", "nodeType": "VariableDeclaration", "scope": 89, "src": "467:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 83, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "467:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "449:32:1" }, "payable": false, "returnParameters": { "id": 88, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 87, "name": "", "nodeType": "VariableDeclaration", "scope": 89, "src": "500:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 86, "name": "bool", "nodeType": "ElementaryTypeName", "src": "500:4:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "499:6:1" }, "scope": 117, "src": "433:73:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 100, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 96, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 91, "name": "fro