UNPKG

arc_dx

Version:

A platform for building DAOs

1,237 lines 39.7 kB
{ "contractName": "ERC20", "abi": [ { "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": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "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" }, { "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" }, { "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": "_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" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC20Basic.sol\";\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ncontract ERC20 is ERC20Basic {\n function allowance(address _owner, address _spender)\n public view returns (uint256);\n\n function transferFrom(address _from, address _to, uint256 _value)\n public returns (bool);\n\n function approve(address _spender, uint256 _value) public returns (bool);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}\n", "sourcePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 21087 ] }, "id": 21088, "nodeType": "SourceUnit", "nodes": [ { "id": 21046, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:58" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 21047, "nodeType": "ImportDirective", "scope": 21088, "sourceUnit": 21120, "src": "26:26:58", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 21048, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 21119, "src": "162:10:58", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$21119", "typeString": "contract ERC20Basic" } }, "id": 21049, "nodeType": "InheritanceSpecifier", "src": "162:10:58" } ], "contractDependencies": [ 21119 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 21087, "linearizedBaseContracts": [ 21087, 21119 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 21058, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 21054, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21051, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 21058, "src": "196:14:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21050, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21053, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 21058, "src": "212:16:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21052, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:58" }, "payable": false, "returnParameters": { "id": 21057, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21056, "name": "", "nodeType": "VariableDeclaration", "scope": 21058, "src": "255:7:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21055, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:58" }, "scope": 21087, "src": "177:87:58", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 21069, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 21065, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21060, "name": "_from", "nodeType": "VariableDeclaration", "scope": 21069, "src": "290:13:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21059, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21062, "name": "_to", "nodeType": "VariableDeclaration", "scope": 21069, "src": "305:11:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21061, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21064, "name": "_value", "nodeType": "VariableDeclaration", "scope": 21069, "src": "318:14:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21063, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:58" }, "payable": false, "returnParameters": { "id": 21068, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21067, "name": "", "nodeType": "VariableDeclaration", "scope": 21069, "src": "354:4:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 21066, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:58", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:58" }, "scope": 21087, "src": "268:92:58", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 21078, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 21074, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21071, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 21078, "src": "381:16:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21070, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21073, "name": "_value", "nodeType": "VariableDeclaration", "scope": 21078, "src": "399:14:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21072, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:58" }, "payable": false, "returnParameters": { "id": 21077, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21076, "name": "", "nodeType": "VariableDeclaration", "scope": 21078, "src": "431:4:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 21075, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:58", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:58" }, "scope": 21087, "src": "364:73:58", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 21086, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 21085, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21080, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 21086, "src": "460:21:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21079, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21082, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 21086, "src": "487:23:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21081, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21084, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 21086, "src": "516:13:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21083, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:58" }, "src": "440:94:58" } ], "scope": 21088, "src": "144:392:58" } ], "src": "0:537:58" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 21087 ] }, "id": 21088, "nodeType": "SourceUnit", "nodes": [ { "id": 21046, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:58" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 21047, "nodeType": "ImportDirective", "scope": 21088, "sourceUnit": 21120, "src": "26:26:58", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 21048, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 21119, "src": "162:10:58", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$21119", "typeString": "contract ERC20Basic" } }, "id": 21049, "nodeType": "InheritanceSpecifier", "src": "162:10:58" } ], "contractDependencies": [ 21119 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 21087, "linearizedBaseContracts": [ 21087, 21119 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 21058, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 21054, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21051, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 21058, "src": "196:14:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21050, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21053, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 21058, "src": "212:16:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21052, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:58" }, "payable": false, "returnParameters": { "id": 21057, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21056, "name": "", "nodeType": "VariableDeclaration", "scope": 21058, "src": "255:7:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21055, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:58" }, "scope": 21087, "src": "177:87:58", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 21069, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 21065, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21060, "name": "_from", "nodeType": "VariableDeclaration", "scope": 21069, "src": "290:13:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21059, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21062, "name": "_to", "nodeType": "VariableDeclaration", "scope": 21069, "src": "305:11:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21061, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21064, "name": "_value", "nodeType": "VariableDeclaration", "scope": 21069, "src": "318:14:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21063, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:58" }, "payable": false, "returnParameters": { "id": 21068, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21067, "name": "", "nodeType": "VariableDeclaration", "scope": 21069, "src": "354:4:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 21066, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:58", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:58" }, "scope": 21087, "src": "268:92:58", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 21078, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 21074, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21071, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 21078, "src": "381:16:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21070, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21073, "name": "_value", "nodeType": "VariableDeclaration", "scope": 21078, "src": "399:14:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21072, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:58" }, "payable": false, "returnParameters": { "id": 21077, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21076, "name": "", "nodeType": "VariableDeclaration", "scope": 21078, "src": "431:4:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 21075, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:58", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:58" }, "scope": 21087, "src": "364:73:58", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 21086, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 21085, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21080, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 21086, "src": "460:21:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21079, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21082, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 21086, "src": "487:23:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 21081, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:58", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 21084, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 21086, "src": "516:13:58", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21083, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:58", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:58" }, "src": "440:94:58" } ], "scope": 21088, "src": "144:392:58" } ], "src": "0:537:58" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.0-beta.1", "updatedAt": "2018-10-16T14:16:07.466Z" }