UNPKG

arc_dx

Version:

A platform for building DAOs

882 lines 28.4 kB
{ "contractName": "ARCDebug", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "address" } ], "name": "LogAddress", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "int256" } ], "name": "LogInt", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "string" } ], "name": "LogString", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "uint256" } ], "name": "LogUint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "bytes" } ], "name": "LogBytes", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "bytes32" } ], "name": "LogBytes32", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_msg", "type": "bool" } ], "name": "LogBool", "type": "event" } ], "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820fd296e632416d4946d817a27653773f1f960a4b417a917242b7c1741098ec5360029", "deployedBytecode": "0x6080604052600080fd00a165627a7a72305820fd296e632416d4946d817a27653773f1f960a4b417a917242b7c1741098ec5360029", "sourceMap": "468:247:16:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;468:247:16;;;;;;;", "deployedSourceMap": "468:247:16:-;;;;;", "source": "pragma solidity ^0.4.25;\n\nimport \"@daostack/infra/contracts/votingMachines/GenesisProtocol.sol\";\nimport \"@daostack/infra/contracts/votingMachines/AbsoluteVote.sol\";\nimport \"@daostack/infra/contracts/votingMachines/QuorumVote.sol\";\nimport \"@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol\";\nimport \"@daostack/infra/contracts/test/GenesisProtocolCallbacksMock.sol\";\n\n/*\n A contract you can inherit from that has some useful Events to print statements.\n*/\n\n\ncontract ARCDebug {\n event LogAddress(address _msg);\n event LogInt(int _msg);\n event LogString(string _msg);\n event LogUint(uint _msg);\n event LogBytes(bytes _msg);\n event LogBytes32(bytes32 _msg);\n event LogBool(bool _msg);\n}\n", "sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ARCDebug.sol", "ast": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ARCDebug.sol", "exportedSymbols": { "ARCDebug": [ 6446 ] }, "id": 6447, "nodeType": "SourceUnit", "nodes": [ { "id": 6412, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:16" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol", "file": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol", "id": 6413, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 20209, "src": "26:70:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/AbsoluteVote.sol", "file": "@daostack/infra/contracts/votingMachines/AbsoluteVote.sol", "id": 6414, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 17267, "src": "97:67:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/QuorumVote.sol", "file": "@daostack/infra/contracts/votingMachines/QuorumVote.sol", "id": 6415, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 20525, "src": "165:65:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol", "file": "@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol", "id": 6416, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 16060, "src": "231:68:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/test/GenesisProtocolCallbacksMock.sol", "file": "@daostack/infra/contracts/test/GenesisProtocolCallbacksMock.sol", "id": 6417, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 16380, "src": "300:73:16", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6446, "linearizedBaseContracts": [ 6446 ], "name": "ARCDebug", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 6421, "name": "LogAddress", "nodeType": "EventDefinition", "parameters": { "id": 6420, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6419, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6421, "src": "509:12:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6418, "name": "address", "nodeType": "ElementaryTypeName", "src": "509:7:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "508:14:16" }, "src": "492:31:16" }, { "anonymous": false, "documentation": null, "id": 6425, "name": "LogInt", "nodeType": "EventDefinition", "parameters": { "id": 6424, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6423, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6425, "src": "541:8:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 6422, "name": "int", "nodeType": "ElementaryTypeName", "src": "541:3:16", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "540:10:16" }, "src": "528:23:16" }, { "anonymous": false, "documentation": null, "id": 6429, "name": "LogString", "nodeType": "EventDefinition", "parameters": { "id": 6428, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6427, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6429, "src": "572:11:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 6426, "name": "string", "nodeType": "ElementaryTypeName", "src": "572:6:16", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "571:13:16" }, "src": "556:29:16" }, { "anonymous": false, "documentation": null, "id": 6433, "name": "LogUint", "nodeType": "EventDefinition", "parameters": { "id": 6432, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6431, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6433, "src": "604:9:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6430, "name": "uint", "nodeType": "ElementaryTypeName", "src": "604:4:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "603:11:16" }, "src": "590:25:16" }, { "anonymous": false, "documentation": null, "id": 6437, "name": "LogBytes", "nodeType": "EventDefinition", "parameters": { "id": 6436, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6435, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6437, "src": "635:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6434, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "635:5:16", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "634:12:16" }, "src": "620:27:16" }, { "anonymous": false, "documentation": null, "id": 6441, "name": "LogBytes32", "nodeType": "EventDefinition", "parameters": { "id": 6440, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6439, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6441, "src": "669:12:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 6438, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "669:7:16", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "668:14:16" }, "src": "652:31:16" }, { "anonymous": false, "documentation": null, "id": 6445, "name": "LogBool", "nodeType": "EventDefinition", "parameters": { "id": 6444, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6443, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6445, "src": "702:9:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6442, "name": "bool", "nodeType": "ElementaryTypeName", "src": "702:4:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "701:11:16" }, "src": "688:25:16" } ], "scope": 6447, "src": "468:247:16" } ], "src": "0:716:16" }, "legacyAST": { "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ARCDebug.sol", "exportedSymbols": { "ARCDebug": [ 6446 ] }, "id": 6447, "nodeType": "SourceUnit", "nodes": [ { "id": 6412, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:16" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol", "file": "@daostack/infra/contracts/votingMachines/GenesisProtocol.sol", "id": 6413, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 20209, "src": "26:70:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/AbsoluteVote.sol", "file": "@daostack/infra/contracts/votingMachines/AbsoluteVote.sol", "id": 6414, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 17267, "src": "97:67:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/votingMachines/QuorumVote.sol", "file": "@daostack/infra/contracts/votingMachines/QuorumVote.sol", "id": 6415, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 20525, "src": "165:65:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol", "file": "@daostack/infra/contracts/test/AbsoluteVoteExecuteMock.sol", "id": 6416, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 16060, "src": "231:68:16", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/infra/contracts/test/GenesisProtocolCallbacksMock.sol", "file": "@daostack/infra/contracts/test/GenesisProtocolCallbacksMock.sol", "id": 6417, "nodeType": "ImportDirective", "scope": 6447, "sourceUnit": 16380, "src": "300:73:16", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6446, "linearizedBaseContracts": [ 6446 ], "name": "ARCDebug", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 6421, "name": "LogAddress", "nodeType": "EventDefinition", "parameters": { "id": 6420, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6419, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6421, "src": "509:12:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6418, "name": "address", "nodeType": "ElementaryTypeName", "src": "509:7:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "508:14:16" }, "src": "492:31:16" }, { "anonymous": false, "documentation": null, "id": 6425, "name": "LogInt", "nodeType": "EventDefinition", "parameters": { "id": 6424, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6423, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6425, "src": "541:8:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 6422, "name": "int", "nodeType": "ElementaryTypeName", "src": "541:3:16", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "540:10:16" }, "src": "528:23:16" }, { "anonymous": false, "documentation": null, "id": 6429, "name": "LogString", "nodeType": "EventDefinition", "parameters": { "id": 6428, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6427, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6429, "src": "572:11:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 6426, "name": "string", "nodeType": "ElementaryTypeName", "src": "572:6:16", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "571:13:16" }, "src": "556:29:16" }, { "anonymous": false, "documentation": null, "id": 6433, "name": "LogUint", "nodeType": "EventDefinition", "parameters": { "id": 6432, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6431, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6433, "src": "604:9:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6430, "name": "uint", "nodeType": "ElementaryTypeName", "src": "604:4:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "603:11:16" }, "src": "590:25:16" }, { "anonymous": false, "documentation": null, "id": 6437, "name": "LogBytes", "nodeType": "EventDefinition", "parameters": { "id": 6436, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6435, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6437, "src": "635:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 6434, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "635:5:16", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "634:12:16" }, "src": "620:27:16" }, { "anonymous": false, "documentation": null, "id": 6441, "name": "LogBytes32", "nodeType": "EventDefinition", "parameters": { "id": 6440, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6439, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6441, "src": "669:12:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 6438, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "669:7:16", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "668:14:16" }, "src": "652:31:16" }, { "anonymous": false, "documentation": null, "id": 6445, "name": "LogBool", "nodeType": "EventDefinition", "parameters": { "id": 6444, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6443, "indexed": false, "name": "_msg", "nodeType": "VariableDeclaration", "scope": 6445, "src": "702:9:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6442, "name": "bool", "nodeType": "ElementaryTypeName", "src": "702:4:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "701:11:16" }, "src": "688:25:16" } ], "scope": 6447, "src": "468:247:16" } ], "src": "0:716:16" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.0-beta.1", "updatedAt": "2018-10-16T14:16:07.357Z" }