UNPKG

@josojo/realitytoken-contracts

Version:
1,512 lines (1,511 loc) 61.7 kB
{ "contractName": "Token", "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": 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": "from", "type": "address" }, { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transferFrom", "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": true, "inputs": [ { "name": "owner", "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": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md\npragma solidity ^0.4.15;\n\n\n/// @title Abstract token contract - Functions to be implemented by token contracts\ncontract Token {\n\n /*\n * Events\n */\n event Transfer(address indexed from, address indexed to, uint value);\n event Approval(address indexed owner, address indexed spender, uint value);\n\n /*\n * Public functions\n */\n function transfer(address to, uint value) public returns (bool);\n function transferFrom(address from, address to, uint value) public returns (bool);\n function approve(address spender, uint value) public returns (bool);\n function balanceOf(address owner) public constant returns (uint);\n function allowance(address owner, address spender) public constant returns (uint);\n function totalSupply() public constant returns (uint);\n}\n", "sourcePath": "@gnosis.pm/pm-contracts/contracts/Tokens/Token.sol", "ast": { "absolutePath": "@gnosis.pm/pm-contracts/contracts/Tokens/Token.sol", "exportedSymbols": { "Token": [ 3360 ] }, "id": 3361, "nodeType": "SourceUnit", "nodes": [ { "id": 3293, "literals": [ "solidity", "^", "0.4", ".15" ], "nodeType": "PragmaDirective", "src": "113:24:14" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title Abstract token contract - Functions to be implemented by token contracts", "fullyImplemented": false, "id": 3360, "linearizedBaseContracts": [ 3360 ], "name": "Token", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 3301, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 3300, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3295, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 3301, "src": "291:20:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3294, "name": "address", "nodeType": "ElementaryTypeName", "src": "291:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3297, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 3301, "src": "313:18:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3296, "name": "address", "nodeType": "ElementaryTypeName", "src": "313:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3299, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 3301, "src": "333:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3298, "name": "uint", "nodeType": "ElementaryTypeName", "src": "333:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "290:54:14" }, "src": "276:69:14" }, { "anonymous": false, "documentation": null, "id": 3309, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 3308, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3303, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 3309, "src": "365:21:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3302, "name": "address", "nodeType": "ElementaryTypeName", "src": "365:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3305, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 3309, "src": "388:23:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3304, "name": "address", "nodeType": "ElementaryTypeName", "src": "388:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3307, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 3309, "src": "413:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3306, "name": "uint", "nodeType": "ElementaryTypeName", "src": "413:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "364:60:14" }, "src": "350:75:14" }, { "body": null, "documentation": null, "id": 3318, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 3314, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3311, "name": "to", "nodeType": "VariableDeclaration", "scope": 3318, "src": "489:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3310, "name": "address", "nodeType": "ElementaryTypeName", "src": "489:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3313, "name": "value", "nodeType": "VariableDeclaration", "scope": 3318, "src": "501:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3312, "name": "uint", "nodeType": "ElementaryTypeName", "src": "501:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "488:24:14" }, "payable": false, "returnParameters": { "id": 3317, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3316, "name": "", "nodeType": "VariableDeclaration", "scope": 3318, "src": "529:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3315, "name": "bool", "nodeType": "ElementaryTypeName", "src": "529:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "528:6:14" }, "scope": 3360, "src": "471:64:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3329, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 3325, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3320, "name": "from", "nodeType": "VariableDeclaration", "scope": 3329, "src": "562:12:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3319, "name": "address", "nodeType": "ElementaryTypeName", "src": "562:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3322, "name": "to", "nodeType": "VariableDeclaration", "scope": 3329, "src": "576:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3321, "name": "address", "nodeType": "ElementaryTypeName", "src": "576:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3324, "name": "value", "nodeType": "VariableDeclaration", "scope": 3329, "src": "588:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3323, "name": "uint", "nodeType": "ElementaryTypeName", "src": "588:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "561:38:14" }, "payable": false, "returnParameters": { "id": 3328, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3327, "name": "", "nodeType": "VariableDeclaration", "scope": 3329, "src": "616:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3326, "name": "bool", "nodeType": "ElementaryTypeName", "src": "616:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "615:6:14" }, "scope": 3360, "src": "540:82:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3338, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 3334, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3331, "name": "spender", "nodeType": "VariableDeclaration", "scope": 3338, "src": "644:15:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3330, "name": "address", "nodeType": "ElementaryTypeName", "src": "644:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3333, "name": "value", "nodeType": "VariableDeclaration", "scope": 3338, "src": "661:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3332, "name": "uint", "nodeType": "ElementaryTypeName", "src": "661:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "643:29:14" }, "payable": false, "returnParameters": { "id": 3337, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3336, "name": "", "nodeType": "VariableDeclaration", "scope": 3338, "src": "689:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3335, "name": "bool", "nodeType": "ElementaryTypeName", "src": "689:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "688:6:14" }, "scope": 3360, "src": "627:68:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3345, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 3341, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3340, "name": "owner", "nodeType": "VariableDeclaration", "scope": 3345, "src": "719:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3339, "name": "address", "nodeType": "ElementaryTypeName", "src": "719:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "718:15:14" }, "payable": false, "returnParameters": { "id": 3344, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3343, "name": "", "nodeType": "VariableDeclaration", "scope": 3345, "src": "759:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3342, "name": "uint", "nodeType": "ElementaryTypeName", "src": "759:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "758:6:14" }, "scope": 3360, "src": "700:65:14", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3354, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 3350, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3347, "name": "owner", "nodeType": "VariableDeclaration", "scope": 3354, "src": "789:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3346, "name": "address", "nodeType": "ElementaryTypeName", "src": "789:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3349, "name": "spender", "nodeType": "VariableDeclaration", "scope": 3354, "src": "804:15:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3348, "name": "address", "nodeType": "ElementaryTypeName", "src": "804:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "788:32:14" }, "payable": false, "returnParameters": { "id": 3353, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3352, "name": "", "nodeType": "VariableDeclaration", "scope": 3354, "src": "846:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3351, "name": "uint", "nodeType": "ElementaryTypeName", "src": "846:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "845:6:14" }, "scope": 3360, "src": "770:82:14", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3359, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 3355, "nodeType": "ParameterList", "parameters": [], "src": "877:2:14" }, "payable": false, "returnParameters": { "id": 3358, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3357, "name": "", "nodeType": "VariableDeclaration", "scope": 3359, "src": "905:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3356, "name": "uint", "nodeType": "ElementaryTypeName", "src": "905:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "904:6:14" }, "scope": 3360, "src": "857:54:14", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 3361, "src": "224:689:14" } ], "src": "113:801:14" }, "legacyAST": { "absolutePath": "@gnosis.pm/pm-contracts/contracts/Tokens/Token.sol", "exportedSymbols": { "Token": [ 3360 ] }, "id": 3361, "nodeType": "SourceUnit", "nodes": [ { "id": 3293, "literals": [ "solidity", "^", "0.4", ".15" ], "nodeType": "PragmaDirective", "src": "113:24:14" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title Abstract token contract - Functions to be implemented by token contracts", "fullyImplemented": false, "id": 3360, "linearizedBaseContracts": [ 3360 ], "name": "Token", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 3301, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 3300, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3295, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 3301, "src": "291:20:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3294, "name": "address", "nodeType": "ElementaryTypeName", "src": "291:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3297, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 3301, "src": "313:18:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3296, "name": "address", "nodeType": "ElementaryTypeName", "src": "313:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3299, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 3301, "src": "333:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3298, "name": "uint", "nodeType": "ElementaryTypeName", "src": "333:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "290:54:14" }, "src": "276:69:14" }, { "anonymous": false, "documentation": null, "id": 3309, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 3308, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3303, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 3309, "src": "365:21:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3302, "name": "address", "nodeType": "ElementaryTypeName", "src": "365:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3305, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 3309, "src": "388:23:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3304, "name": "address", "nodeType": "ElementaryTypeName", "src": "388:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3307, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 3309, "src": "413:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3306, "name": "uint", "nodeType": "ElementaryTypeName", "src": "413:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "364:60:14" }, "src": "350:75:14" }, { "body": null, "documentation": null, "id": 3318, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 3314, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3311, "name": "to", "nodeType": "VariableDeclaration", "scope": 3318, "src": "489:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3310, "name": "address", "nodeType": "ElementaryTypeName", "src": "489:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3313, "name": "value", "nodeType": "VariableDeclaration", "scope": 3318, "src": "501:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3312, "name": "uint", "nodeType": "ElementaryTypeName", "src": "501:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "488:24:14" }, "payable": false, "returnParameters": { "id": 3317, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3316, "name": "", "nodeType": "VariableDeclaration", "scope": 3318, "src": "529:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3315, "name": "bool", "nodeType": "ElementaryTypeName", "src": "529:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "528:6:14" }, "scope": 3360, "src": "471:64:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3329, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 3325, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3320, "name": "from", "nodeType": "VariableDeclaration", "scope": 3329, "src": "562:12:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3319, "name": "address", "nodeType": "ElementaryTypeName", "src": "562:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3322, "name": "to", "nodeType": "VariableDeclaration", "scope": 3329, "src": "576:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3321, "name": "address", "nodeType": "ElementaryTypeName", "src": "576:7:14", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3324, "name": "value", "nodeType": "VariableDeclaration", "scope": 3329, "src": "588:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3323, "name": "uint", "nodeType": "ElementaryTypeName", "src": "588:4:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "561:38:14" }, "payable": false, "returnParameters": { "id": 3328, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3327, "name": "", "nodeType": "VariableDeclaration", "scope": 3329, "src": "616:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3326, "name": "bool", "nodeType": "ElementaryTypeName", "src": "616:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "615:6:14" }, "scope": 3360, "src": "540:82:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 3338, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 3334, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3331, "name": "spender", "nodeType": "VariableDeclaration", "scope": 3338, "src": "644:15:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": {