arc_dx
Version:
A platform for building DAOs
772 lines • 24.2 kB
JSON
{
"contractName": "Debug",
"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": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058206d83358ad978bc75af7f2123b977ffc61491c60f61cadb4af7b8138f6b4668e40029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a723058206d83358ad978bc75af7f2123b977ffc61491c60f61cadb4af7b8138f6b4668e40029",
"sourceMap": "118:244:44:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;118:244:44;;;;;;;",
"deployedSourceMap": "118:244:44:-;;;;;",
"source": "pragma solidity ^0.4.25;\n/*\n A contract you can inherit from that has some useful Events to print statements.\n*/\n\n\ncontract Debug {\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": "@daostack/infra/contracts/test/Debug.sol",
"ast": {
"absolutePath": "@daostack/infra/contracts/test/Debug.sol",
"exportedSymbols": {
"Debug": [
16090
]
},
"id": 16091,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 16061,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:44"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 16090,
"linearizedBaseContracts": [
16090
],
"name": "Debug",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 16065,
"name": "LogAddress",
"nodeType": "EventDefinition",
"parameters": {
"id": 16064,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16063,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16065,
"src": "156:12:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 16062,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "156:7:44",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "155:14:44"
},
"src": "139:31:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16069,
"name": "LogInt",
"nodeType": "EventDefinition",
"parameters": {
"id": 16068,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16067,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16069,
"src": "188:8:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 16066,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "188:3:44",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "187:10:44"
},
"src": "175:23:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16073,
"name": "LogString",
"nodeType": "EventDefinition",
"parameters": {
"id": 16072,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16071,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16073,
"src": "219:11:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 16070,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "219:6:44",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "218:13:44"
},
"src": "203:29:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16077,
"name": "LogUint",
"nodeType": "EventDefinition",
"parameters": {
"id": 16076,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16075,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16077,
"src": "251:9:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 16074,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "251:4:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "250:11:44"
},
"src": "237:25:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16081,
"name": "LogBytes",
"nodeType": "EventDefinition",
"parameters": {
"id": 16080,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16079,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16081,
"src": "282:10:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 16078,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "282:5:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "281:12:44"
},
"src": "267:27:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16085,
"name": "LogBytes32",
"nodeType": "EventDefinition",
"parameters": {
"id": 16084,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16083,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16085,
"src": "316:12:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 16082,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "316:7:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "315:14:44"
},
"src": "299:31:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16089,
"name": "LogBool",
"nodeType": "EventDefinition",
"parameters": {
"id": 16088,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16087,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16089,
"src": "349:9:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 16086,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "349:4:44",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "348:11:44"
},
"src": "335:25:44"
}
],
"scope": 16091,
"src": "118:244:44"
}
],
"src": "0:363:44"
},
"legacyAST": {
"absolutePath": "@daostack/infra/contracts/test/Debug.sol",
"exportedSymbols": {
"Debug": [
16090
]
},
"id": 16091,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 16061,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:44"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 16090,
"linearizedBaseContracts": [
16090
],
"name": "Debug",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 16065,
"name": "LogAddress",
"nodeType": "EventDefinition",
"parameters": {
"id": 16064,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16063,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16065,
"src": "156:12:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 16062,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "156:7:44",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "155:14:44"
},
"src": "139:31:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16069,
"name": "LogInt",
"nodeType": "EventDefinition",
"parameters": {
"id": 16068,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16067,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16069,
"src": "188:8:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 16066,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "188:3:44",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "187:10:44"
},
"src": "175:23:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16073,
"name": "LogString",
"nodeType": "EventDefinition",
"parameters": {
"id": 16072,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16071,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16073,
"src": "219:11:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 16070,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "219:6:44",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "218:13:44"
},
"src": "203:29:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16077,
"name": "LogUint",
"nodeType": "EventDefinition",
"parameters": {
"id": 16076,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16075,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16077,
"src": "251:9:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 16074,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "251:4:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "250:11:44"
},
"src": "237:25:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16081,
"name": "LogBytes",
"nodeType": "EventDefinition",
"parameters": {
"id": 16080,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16079,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16081,
"src": "282:10:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 16078,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "282:5:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "281:12:44"
},
"src": "267:27:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16085,
"name": "LogBytes32",
"nodeType": "EventDefinition",
"parameters": {
"id": 16084,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16083,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16085,
"src": "316:12:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 16082,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "316:7:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "315:14:44"
},
"src": "299:31:44"
},
{
"anonymous": false,
"documentation": null,
"id": 16089,
"name": "LogBool",
"nodeType": "EventDefinition",
"parameters": {
"id": 16088,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16087,
"indexed": false,
"name": "_msg",
"nodeType": "VariableDeclaration",
"scope": 16089,
"src": "349:9:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 16086,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "349:4:44",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "348:11:44"
},
"src": "335:25:44"
}
],
"scope": 16091,
"src": "118:244:44"
}
],
"src": "0:363:44"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.0-beta.1",
"updatedAt": "2018-10-16T14:16:07.418Z"
}