UNPKG

@gnosis.pm/util-contracts

Version:
1,395 lines 66.6 kB
{ "contractName": "Token", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "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" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.7.5+commit.eb77ed08\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Abstract token contract - Functions to be implemented by token contracts\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/bensniff/Projects/gnosis/util-contracts/contracts/Token.sol\":\"Token\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/bensniff/Projects/gnosis/util-contracts/contracts/Token.sol\":{\"keccak256\":\"0x5328b269119ce2771bc332924519228fdef2d8a5237ffcbc5ce4b9c4680a9b79\",\"license\":\"LGPL-3.0-only\",\"urls\":[\"bzz-raw://5a40fd561e73ac545ebb64d358f69d5dfb78bede41159f1500a08202cf2e53a6\",\"dweb:/ipfs/QmVFni1zySZek7uTpqaig48H23dMuhaKULQvcD8HYvDnXX\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: LGPL-3.0-only\n/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md\npragma solidity ^0.7.0;\n\n/// @title Abstract token contract - Functions to be implemented by token contracts\nabstract contract Token {\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 virtual returns (bool);\n function transferFrom(address from, address to, uint value) public virtual returns (bool);\n function approve(address spender, uint value) public virtual returns (bool);\n function balanceOf(address owner) public virtual view returns (uint);\n function allowance(address owner, address spender) public virtual view returns (uint);\n function totalSupply() public virtual view returns (uint);\n}\n", "sourcePath": "/Users/bensniff/Projects/gnosis/util-contracts/contracts/Token.sol", "ast": { "absolutePath": "/Users/bensniff/Projects/gnosis/util-contracts/contracts/Token.sol", "exportedSymbols": { "Token": [ 1903 ] }, "id": 1904, "license": "LGPL-3.0-only", "nodeType": "SourceUnit", "nodes": [ { "id": 1835, "literals": [ "solidity", "^", "0.7", ".0" ], "nodeType": "PragmaDirective", "src": "155:23:7" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 1836, "nodeType": "StructuredDocumentation", "src": "180:84:7", "text": "@title Abstract token contract - Functions to be implemented by token contracts" }, "fullyImplemented": false, "id": 1903, "linearizedBaseContracts": [ 1903 ], "name": "Token", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 1844, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 1843, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1838, "indexed": true, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "scope": 1844, "src": "339:20:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1837, "name": "address", "nodeType": "ElementaryTypeName", "src": "339:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1840, "indexed": true, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "scope": 1844, "src": "361:18:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1839, "name": "address", "nodeType": "ElementaryTypeName", "src": "361:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1842, "indexed": false, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1844, "src": "381:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1841, "name": "uint", "nodeType": "ElementaryTypeName", "src": "381:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "338:54:7" }, "src": "324:69:7" }, { "anonymous": false, "id": 1852, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 1851, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1846, "indexed": true, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "scope": 1852, "src": "413:21:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1845, "name": "address", "nodeType": "ElementaryTypeName", "src": "413:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1848, "indexed": true, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 1852, "src": "436:23:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1847, "name": "address", "nodeType": "ElementaryTypeName", "src": "436:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1850, "indexed": false, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1852, "src": "461:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1849, "name": "uint", "nodeType": "ElementaryTypeName", "src": "461:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "412:60:7" }, "src": "398:75:7" }, { "functionSelector": "a9059cbb", "id": 1861, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 1857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1854, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "scope": 1861, "src": "537:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1853, "name": "address", "nodeType": "ElementaryTypeName", "src": "537:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1856, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1861, "src": "549:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1855, "name": "uint", "nodeType": "ElementaryTypeName", "src": "549:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "536:24:7" }, "returnParameters": { "id": 1860, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1859, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1861, "src": "585:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1858, "name": "bool", "nodeType": "ElementaryTypeName", "src": "585:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "584:6:7" }, "scope": 1903, "src": "519:72:7", "stateMutability": "nonpayable", "virtual": true, "visibility": "public" }, { "functionSelector": "23b872dd", "id": 1872, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 1868, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1863, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "scope": 1872, "src": "618:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1862, "name": "address", "nodeType": "ElementaryTypeName", "src": "618:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1865, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "scope": 1872, "src": "632:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1864, "name": "address", "nodeType": "ElementaryTypeName", "src": "632:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1867, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1872, "src": "644:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1866, "name": "uint", "nodeType": "ElementaryTypeName", "src": "644:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "617:38:7" }, "returnParameters": { "id": 1871, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1870, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1872, "src": "680:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1869, "name": "bool", "nodeType": "ElementaryTypeName", "src": "680:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "679:6:7" }, "scope": 1903, "src": "596:90:7", "stateMutability": "nonpayable", "virtual": true, "visibility": "public" }, { "functionSelector": "095ea7b3", "id": 1881, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 1877, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1874, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 1881, "src": "708:15:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1873, "name": "address", "nodeType": "ElementaryTypeName", "src": "708:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1876, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1881, "src": "725:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1875, "name": "uint", "nodeType": "ElementaryTypeName", "src": "725:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "707:29:7" }, "returnParameters": { "id": 1880, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1879, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1881, "src": "761:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1878, "name": "bool", "nodeType": "ElementaryTypeName", "src": "761:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "760:6:7" }, "scope": 1903, "src": "691:76:7", "stateMutability": "nonpayable", "virtual": true, "visibility": "public" }, { "functionSelector": "70a08231", "id": 1888, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 1884, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1883, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "scope": 1888, "src": "791:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1882, "name": "address", "nodeType": "ElementaryTypeName", "src": "791:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "790:15:7" }, "returnParameters": { "id": 1887, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1886, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1888, "src": "835:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1885, "name": "uint", "nodeType": "ElementaryTypeName", "src": "835:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "834:6:7" }, "scope": 1903, "src": "772:69:7", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "functionSelector": "dd62ed3e", "id": 1897, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 1893, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1890, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "scope": 1897, "src": "865:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1889, "name": "address", "nodeType": "ElementaryTypeName", "src": "865:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1892, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 1897, "src": "880:15:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1891, "name": "address", "nodeType": "ElementaryTypeName", "src": "880:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "864:32:7" }, "returnParameters": { "id": 1896, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1895, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1897, "src": "926:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1894, "name": "uint", "nodeType": "ElementaryTypeName", "src": "926:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "925:6:7" }, "scope": 1903, "src": "846:86:7", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "functionSelector": "18160ddd", "id": 1902, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 1898, "nodeType": "ParameterList", "parameters": [], "src": "957:2:7" }, "returnParameters": { "id": 1901, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1900, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1902, "src": "989:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1899, "name": "uint", "nodeType": "ElementaryTypeName", "src": "989:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "988:6:7" }, "scope": 1903, "src": "937:58:7", "stateMutability": "view", "virtual": true, "visibility": "public" } ], "scope": 1904, "src": "264:733:7" } ], "src": "155:843:7" }, "legacyAST": { "absolutePath": "/Users/bensniff/Projects/gnosis/util-contracts/contracts/Token.sol", "exportedSymbols": { "Token": [ 1903 ] }, "id": 1904, "license": "LGPL-3.0-only", "nodeType": "SourceUnit", "nodes": [ { "id": 1835, "literals": [ "solidity", "^", "0.7", ".0" ], "nodeType": "PragmaDirective", "src": "155:23:7" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 1836, "nodeType": "StructuredDocumentation", "src": "180:84:7", "text": "@title Abstract token contract - Functions to be implemented by token contracts" }, "fullyImplemented": false, "id": 1903, "linearizedBaseContracts": [ 1903 ], "name": "Token", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 1844, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 1843, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1838, "indexed": true, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "scope": 1844, "src": "339:20:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1837, "name": "address", "nodeType": "ElementaryTypeName", "src": "339:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1840, "indexed": true, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "scope": 1844, "src": "361:18:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1839, "name": "address", "nodeType": "ElementaryTypeName", "src": "361:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1842, "indexed": false, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1844, "src": "381:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1841, "name": "uint", "nodeType": "ElementaryTypeName", "src": "381:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "338:54:7" }, "src": "324:69:7" }, { "anonymous": false, "id": 1852, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 1851, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1846, "indexed": true, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "scope": 1852, "src": "413:21:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1845, "name": "address", "nodeType": "ElementaryTypeName", "src": "413:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1848, "indexed": true, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 1852, "src": "436:23:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1847, "name": "address", "nodeType": "ElementaryTypeName", "src": "436:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1850, "indexed": false, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1852, "src": "461:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1849, "name": "uint", "nodeType": "ElementaryTypeName", "src": "461:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "412:60:7" }, "src": "398:75:7" }, { "functionSelector": "a9059cbb", "id": 1861, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 1857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1854, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "scope": 1861, "src": "537:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1853, "name": "address", "nodeType": "ElementaryTypeName", "src": "537:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1856, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 1861, "src": "549:10:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1855, "name": "uint", "nodeType": "ElementaryTypeName", "src": "549:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "536:24:7" }, "returnParameters": { "id": 1860, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1859, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 1861, "src": "585:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1858, "name": "bool", "nodeType": "ElementaryTypeName", "src": "585:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "584:6:7" }, "scope": 1903, "src": "519:72:7", "stateMutability": "nonpayable", "virtual": true, "visibility": "public" }, { "functionSelector": "23b872dd", "id": 1872, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 1868, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1863, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "scope": 1872, "src": "618:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_addr