UNPKG

arc_dx

Version:

A platform for building DAOs

1,290 lines 40.8 kB
{ "contractName": "ERC827", "abi": [ { "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": "totalSupply", "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": 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" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "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": false, "inputs": [ { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }, { "name": "_data", "type": "bytes" } ], "name": "approveAndCall", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }, { "name": "_data", "type": "bytes" } ], "name": "transferAndCall", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }, { "name": "_data", "type": "bytes" } ], "name": "transferFromAndCall", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.25;\n\nimport \"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\";\n\n\n/**\n * @title ERC827 interface, an extension of ERC20 token standard\n *\n * @dev Interface of a ERC827 token, following the ERC20 standard with extra\n * methods to transfer value and data and execute calls in transfers and\n * approvals.\n */\ncontract ERC827 is ERC20 {\n\n function approveAndCall(address _spender,uint256 _value,bytes _data) public payable returns(bool);\n\n function transferAndCall(address _to,uint256 _value,bytes _data) public payable returns(bool);\n\n function transferFromAndCall(address _from,address _to,uint256 _value,bytes _data) public payable returns(bool);\n\n}\n", "sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/token/ERC827/ERC827.sol", "ast": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/token/ERC827/ERC827.sol", "exportedSymbols": { "ERC827": [ 6862 ] }, "id": 6863, "nodeType": "SourceUnit", "nodes": [ { "id": 6823, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:24" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "file": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "id": 6824, "nodeType": "ImportDirective", "scope": 6863, "sourceUnit": 21088, "src": "26:63:24", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6825, "name": "ERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 21087, "src": "351:5:24", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20_$21087", "typeString": "contract ERC20" } }, "id": 6826, "nodeType": "InheritanceSpecifier", "src": "351:5:24" } ], "contractDependencies": [ 21087, 21119 ], "contractKind": "contract", "documentation": "@title ERC827 interface, an extension of ERC20 token standard\n * @dev Interface of a ERC827 token, following the ERC20 standard with extra\nmethods to transfer value and data and execute calls in transfers and\napprovals.", "fullyImplemented": false, "id": 6862, "linearizedBaseContracts": [ 6862, 21087, 21119 ], "name": "ERC827", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 6837, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approveAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 6833, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6828, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 6837, "src": "388:16:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6827, "name": "address", "nodeType": "ElementaryTypeName", "src": "388:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6830, "name": "_value", "nodeType": "VariableDeclaration", "scope": 6837, "src": "405:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6829, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "405:7:24", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6832, "name": "_data", "nodeType": "VariableDeclaration", "scope": 6837, "src": "420:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6831, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "420:5:24", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "387:45:24" }, "payable": true, "returnParameters": { "id": 6836, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6835, "name": "", "nodeType": "VariableDeclaration", "scope": 6837, "src": "456:4:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6834, "name": "bool", "nodeType": "ElementaryTypeName", "src": "456:4:24", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "455:6:24" }, "scope": 6862, "src": "364:98:24", "stateMutability": "payable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 6848, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 6844, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6839, "name": "_to", "nodeType": "VariableDeclaration", "scope": 6848, "src": "493:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6838, "name": "address", "nodeType": "ElementaryTypeName", "src": "493:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6841, "name": "_value", "nodeType": "VariableDeclaration", "scope": 6848, "src": "505:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6840, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "505:7:24", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6843, "name": "_data", "nodeType": "VariableDeclaration", "scope": 6848, "src": "520:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6842, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "520:5:24", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "492:40:24" }, "payable": true, "returnParameters": { "id": 6847, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6846, "name": "", "nodeType": "VariableDeclaration", "scope": 6848, "src": "556:4:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6845, "name": "bool", "nodeType": "ElementaryTypeName", "src": "556:4:24", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "555:6:24" }, "scope": 6862, "src": "468:94:24", "stateMutability": "payable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 6861, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFromAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 6857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6850, "name": "_from", "nodeType": "VariableDeclaration", "scope": 6861, "src": "597:13:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6849, "name": "address", "nodeType": "ElementaryTypeName", "src": "597:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6852, "name": "_to", "nodeType": "VariableDeclaration", "scope": 6861, "src": "611:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6851, "name": "address", "nodeType": "ElementaryTypeName", "src": "611:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6854, "name": "_value", "nodeType": "VariableDeclaration", "scope": 6861, "src": "623:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6853, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "623:7:24", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6856, "name": "_data", "nodeType": "VariableDeclaration", "scope": 6861, "src": "638:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6855, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "638:5:24", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "596:54:24" }, "payable": true, "returnParameters": { "id": 6860, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6859, "name": "", "nodeType": "VariableDeclaration", "scope": 6861, "src": "674:4:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6858, "name": "bool", "nodeType": "ElementaryTypeName", "src": "674:4:24", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "673:6:24" }, "scope": 6862, "src": "568:112:24", "stateMutability": "payable", "superFunction": null, "visibility": "public" } ], "scope": 6863, "src": "332:351:24" } ], "src": "0:684:24" }, "legacyAST": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/token/ERC827/ERC827.sol", "exportedSymbols": { "ERC827": [ 6862 ] }, "id": 6863, "nodeType": "SourceUnit", "nodes": [ { "id": 6823, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:24" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "file": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "id": 6824, "nodeType": "ImportDirective", "scope": 6863, "sourceUnit": 21088, "src": "26:63:24", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6825, "name": "ERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 21087, "src": "351:5:24", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20_$21087", "typeString": "contract ERC20" } }, "id": 6826, "nodeType": "InheritanceSpecifier", "src": "351:5:24" } ], "contractDependencies": [ 21087, 21119 ], "contractKind": "contract", "documentation": "@title ERC827 interface, an extension of ERC20 token standard\n * @dev Interface of a ERC827 token, following the ERC20 standard with extra\nmethods to transfer value and data and execute calls in transfers and\napprovals.", "fullyImplemented": false, "id": 6862, "linearizedBaseContracts": [ 6862, 21087, 21119 ], "name": "ERC827", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 6837, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approveAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 6833, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6828, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 6837, "src": "388:16:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6827, "name": "address", "nodeType": "ElementaryTypeName", "src": "388:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6830, "name": "_value", "nodeType": "VariableDeclaration", "scope": 6837, "src": "405:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6829, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "405:7:24", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6832, "name": "_data", "nodeType": "VariableDeclaration", "scope": 6837, "src": "420:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6831, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "420:5:24", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "387:45:24" }, "payable": true, "returnParameters": { "id": 6836, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6835, "name": "", "nodeType": "VariableDeclaration", "scope": 6837, "src": "456:4:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6834, "name": "bool", "nodeType": "ElementaryTypeName", "src": "456:4:24", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "455:6:24" }, "scope": 6862, "src": "364:98:24", "stateMutability": "payable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 6848, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 6844, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6839, "name": "_to", "nodeType": "VariableDeclaration", "scope": 6848, "src": "493:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6838, "name": "address", "nodeType": "ElementaryTypeName", "src": "493:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6841, "name": "_value", "nodeType": "VariableDeclaration", "scope": 6848, "src": "505:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6840, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "505:7:24", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6843, "name": "_data", "nodeType": "VariableDeclaration", "scope": 6848, "src": "520:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6842, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "520:5:24", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "492:40:24" }, "payable": true, "returnParameters": { "id": 6847, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6846, "name": "", "nodeType": "VariableDeclaration", "scope": 6848, "src": "556:4:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6845, "name": "bool", "nodeType": "ElementaryTypeName", "src": "556:4:24", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "555:6:24" }, "scope": 6862, "src": "468:94:24", "stateMutability": "payable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 6861, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFromAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 6857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6850, "name": "_from", "nodeType": "VariableDeclaration", "scope": 6861, "src": "597:13:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6849, "name": "address", "nodeType": "ElementaryTypeName", "src": "597:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6852, "name": "_to", "nodeType": "VariableDeclaration", "scope": 6861, "src": "611:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6851, "name": "address", "nodeType": "ElementaryTypeName", "src": "611:7:24", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6854, "name": "_value", "nodeType": "VariableDeclaration", "scope": 6861, "src": "623:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6853, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "623:7:24", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6856, "name": "_data", "nodeType": "VariableDeclaration", "scope": 6861, "src": "638:11:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6855, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "638:5:24", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "596:54:24" }, "payable": true, "returnParameters": { "id": 6860, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6859, "name": "", "nodeType": "VariableDeclaration", "scope": 6861, "src": "674:4:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6858, "name": "bool", "nodeType": "ElementaryTypeName", "src": "674:4:24", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "673:6:24" }, "scope": 6862, "src": "568:112:24", "stateMutability": "payable", "superFunction": null, "visibility": "public" } ], "scope": 6863, "src": "332:351:24" } ], "src": "0:684:24" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.0-beta.1", "updatedAt": "2018-10-16T14:16:07.360Z" }