ContractABI/Constants.json
{ "contractName": "Constants", "abi": [ { "constant": true, "inputs": [], "name": "ContractUpdater", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x0b02e5b9" }, { "constant": true, "inputs": [], "name": "MemberManager", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x34725b53" }, { "constant": true, "inputs": [], "name": "Members", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x6bb04b86" } ], "metadata": "{\"compiler\":{\"version\":\"0.4.24+commit.e67f0147\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"ContractUpdater\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"MemberManager\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"Members\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/d/a/1/s/contracts/Constants.sol\":\"Constants\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/d/a/1/s/contracts/Constants.sol\":{\"keccak256\":\"0xb0c311d292c0115c36c1d5c3ed0c83afd594c90dd41d6c7992a1f66dff9a4375\",\"urls\":[\"bzzr://07b29230dbc162d19e3bef6a6217b21ebbac525e003ded9ba374e1d421f5103d\"]}},\"version\":1}", "bytecode": "0x6101d0610030600b82828239805160001a6073146000811461002057610022565bfe5b5030600052607381538281f300730000000000000000000000000000000000000000301460806040526004361061006d5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630b02e5b9811461007257806334725b53146100ef5780636bb04b86146100f7575b600080fd5b61007a6100ff565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b457818101518382015260200161009c565b50505050905090810190601f1680156100e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61007a610136565b61007a61016d565b60408051808201909152600f81527f436f6e7472616374557064617465720000000000000000000000000000000000602082015290565b60408051808201909152600d81527f4d656d6265724d616e6167657200000000000000000000000000000000000000602082015290565b60408051808201909152600781527f4d656d62657273000000000000000000000000000000000000000000000000006020820152905600a165627a7a723058200b866ce76e7d48ba58459f601f588017dd3bdee56f6dddcaa8e91bddca3e7d9c0029", "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006d5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630b02e5b9811461007257806334725b53146100ef5780636bb04b86146100f7575b600080fd5b61007a6100ff565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b457818101518382015260200161009c565b50505050905090810190601f1680156100e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61007a610136565b61007a61016d565b60408051808201909152600f81527f436f6e7472616374557064617465720000000000000000000000000000000000602082015290565b60408051808201909152600d81527f4d656d6265724d616e6167657200000000000000000000000000000000000000602082015290565b60408051808201909152600781527f4d656d62657273000000000000000000000000000000000000000000000000006020820152905600a165627a7a723058200b866ce76e7d48ba58459f601f588017dd3bdee56f6dddcaa8e91bddca3e7d9c0029", "sourceMap": "83:1115:2:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24", "deployedSourceMap": "83:1115:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;207:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;207:85:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;298:81;;;;385:69;;;;207:85;265:24;;;;;;;;;;;;;;;;;207:85;:::o;298:81::-;354:22;;;;;;;;;;;;;;;;;298:81;:::o;385:69::-;435:16;;;;;;;;;;;;;;;;;385:69;:::o", "source": "pragma solidity ^0.4.24;\r\n\r\n/**\r\n * Some constants needed by other contracts\r\n */\r\nlibrary Constants {\r\n enum MemberStatus {PENDING, ACTIVE}\r\n enum VotingState {VOTING, PASSED, REJECTED, IGNORED}\r\n function ContractUpdater() public pure returns (string) { return \"ContractUpdater\"; }\r\n function MemberManager() public pure returns (string) { return \"MemberManager\"; }\r\n function Members() public pure returns (string) { return \"Members\"; }\r\n\r\n // enum ProposalType {UPDATE_CONTRACT, ADD_MEMBER, REMOVE_MEMBER}\r\n\r\n\r\n // function getProposalTypeCnt() public pure returns (uint) { return 5; }\r\n // enum NodeType {TRANSACTION, VALIDATOR}\r\n\r\n // function ConfigStorage() public pure returns (string) { return \"ConfigStorage\"; }\r\n // function RoleStorage() public pure returns (string) { return \"RoleStorage\"; }\r\n // function PolicyStorage() public pure returns (string) { return \"PolicyStorage\"; }\r\n\r\n // function ConfigManager() public pure returns (string) { return \"ConfigManager\"; }\r\n // function RoleManager() public pure returns (string) { return \"RoleManager\"; }\r\n // function PolicyManager() public pure returns (string) { return \"PolicyManager\"; }\r\n\r\n}\r\n", "sourcePath": "d:\\a\\1\\s\\contracts\\Constants.sol", "ast": { "absolutePath": "/d/a/1/s/contracts/Constants.sol", "exportedSymbols": { "Constants": [ 141 ] }, "id": 142, "nodeType": "SourceUnit", "nodes": [ { "id": 108, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": "Some constants needed by other contracts\r", "fullyImplemented": true, "id": 141, "linearizedBaseContracts": [ 141 ], "name": "Constants", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "Constants.MemberStatus", "id": 111, "members": [ { "id": 109, "name": "PENDING", "nodeType": "EnumValue", "src": "127:7:2" }, { "id": 110, "name": "ACTIVE", "nodeType": "EnumValue", "src": "136:6:2" } ], "name": "MemberStatus", "nodeType": "EnumDefinition", "src": "108:35:2" }, { "canonicalName": "Constants.VotingState", "id": 116, "members": [ { "id": 112, "name": "VOTING", "nodeType": "EnumValue", "src": "167:6:2" }, { "id": 113, "name": "PASSED", "nodeType": "EnumValue", "src": "175:6:2" }, { "id": 114, "name": "REJECTED", "nodeType": "EnumValue", "src": "183:8:2" }, { "id": 115, "name": "IGNORED", "nodeType": "EnumValue", "src": "193:7:2" } ], "name": "VotingState", "nodeType": "EnumDefinition", "src": "149:52:2" }, { "body": { "id": 123, "nodeType": "Block", "src": "263:29:2", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "436f6e747261637455706461746572", "id": 121, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "272:17:2", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_5ce117af43a7da2a893bce1027acc6bfa6284dfc2cf267992278351e270b84ee", "typeString": "literal_string \"ContractUpdater\"" }, "value": "ContractUpdater" }, "functionReturnParameters": 120, "id": 122, "nodeType": "Return", "src": "265:24:2" } ] }, "documentation": null, "id": 124, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "ContractUpdater", "nodeType": "FunctionDefinition", "parameters": { "id": 117, "nodeType": "ParameterList", "parameters": [], "src": "231:2:2" }, "payable": false, "returnParameters": { "id": 120, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 119, "name": "", "nodeType": "VariableDeclaration", "scope": 124, "src": "255:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 118, "name": "string", "nodeType": "ElementaryTypeName", "src": "255:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "254:8:2" }, "scope": 141, "src": "207:85:2", "stateMutability": "pure", "superFunction": null, "visibility": "public" }, { "body": { "id": 131, "nodeType": "Block", "src": "352:27:2", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "4d656d6265724d616e61676572", "id": 129, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "361:15:2", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_4283fd3792f1d06bd46884af02a47b047f094546a07b3b74856334ce597b9db4", "typeString": "literal_string \"MemberManager\"" }, "value": "MemberManager" }, "functionReturnParameters": 128, "id": 130, "nodeType": "Return", "src": "354:22:2" } ] }, "documentation": null, "id": 132, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "MemberManager", "nodeType": "FunctionDefinition", "parameters": { "id": 125, "nodeType": "ParameterList", "parameters": [], "src": "320:2:2" }, "payable": false, "returnParameters": { "id": 128, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 127, "name": "", "nodeType": "VariableDeclaration", "scope": 132, "src": "344:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 126, "name": "string", "nodeType": "ElementaryTypeName", "src": "344:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "343:8:2" }, "scope": 141, "src": "298:81:2", "stateMutability": "pure", "superFunction": null, "visibility": "public" }, { "body": { "id": 139, "nodeType": "Block", "src": "433:21:2", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "4d656d62657273", "id": 137, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "442:9:2", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_78f57e5c946d3023cc82b6a90daf25626674f2d20cb27417f1d3b5a4927dd9d6", "typeString": "literal_string \"Members\"" }, "value": "Members" }, "functionReturnParameters": 136, "id": 138, "nodeType": "Return", "src": "435:16:2" } ] }, "documentation": null, "id": 140, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "Members", "nodeType": "FunctionDefinition", "parameters": { "id": 133, "nodeType": "ParameterList", "parameters": [], "src": "401:2:2" }, "payable": false, "returnParameters": { "id": 136, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 135, "name": "", "nodeType": "VariableDeclaration", "scope": 140, "src": "425:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 134, "name": "string", "nodeType": "ElementaryTypeName", "src": "425:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "424:8:2" }, "scope": 141, "src": "385:69:2", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 142, "src": "83:1115:2" } ], "src": "0:1200:2" }, "legacyAST": { "absolutePath": "/d/a/1/s/contracts/Constants.sol", "exportedSymbols": { "Constants": [ 141 ] }, "id": 142, "nodeType": "SourceUnit", "nodes": [ { "id": 108, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": "Some constants needed by other contracts\r", "fullyImplemented": true, "id": 141, "linearizedBaseContracts": [ 141 ], "name": "Constants", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "Constants.MemberStatus", "id": 111, "members": [ { "id": 109, "name": "PENDING", "nodeType": "EnumValue", "src": "127:7:2" }, { "id": 110, "name": "ACTIVE", "nodeType": "EnumValue", "src": "136:6:2" } ], "name": "MemberStatus", "nodeType": "EnumDefinition", "src": "108:35:2" }, { "canonicalName": "Constants.VotingState", "id": 116, "members": [ { "id": 112, "name": "VOTING", "nodeType": "EnumValue", "src": "167:6:2" }, { "id": 113, "name": "PASSED", "nodeType": "EnumValue", "src": "175:6:2" }, { "id": 114, "name": "REJECTED", "nodeType": "EnumValue", "src": "183:8:2" }, { "id": 115, "name": "IGNORED", "nodeType": "EnumValue", "src": "193:7:2" } ], "name": "VotingState", "nodeType": "EnumDefinition", "src": "149:52:2" }, { "body": { "id": 123, "nodeType": "Block", "src": "263:29:2", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "436f6e747261637455706461746572", "id": 121, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "272:17:2", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_5ce117af43a7da2a893bce1027acc6bfa6284dfc2cf267992278351e270b84ee", "typeString": "literal_string \"ContractUpdater\"" }, "value": "ContractUpdater" }, "functionReturnParameters": 120, "id": 122, "nodeType": "Return", "src": "265:24:2" } ] }, "documentation": null, "id": 124, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "ContractUpdater", "nodeType": "FunctionDefinition", "parameters": { "id": 117, "nodeType": "ParameterList", "parameters": [], "src": "231:2:2" }, "payable": false, "returnParameters": { "id": 120, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 119, "name": "", "nodeType": "VariableDeclaration", "scope": 124, "src": "255:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 118, "name": "string", "nodeType": "ElementaryTypeName", "src": "255:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "254:8:2" }, "scope": 141, "src": "207:85:2", "stateMutability": "pure", "superFunction": null, "visibility": "public" }, { "body": { "id": 131, "nodeType": "Block", "src": "352:27:2", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "4d656d6265724d616e61676572", "id": 129, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "361:15:2", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_4283fd3792f1d06bd46884af02a47b047f094546a07b3b74856334ce597b9db4", "typeString": "literal_string \"MemberManager\"" }, "value": "MemberManager" }, "functionReturnParameters": 128, "id": 130, "nodeType": "Return", "src": "354:22:2" } ] }, "documentation": null, "id": 132, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "MemberManager", "nodeType": "FunctionDefinition", "parameters": { "id": 125, "nodeType": "ParameterList", "parameters": [], "src": "320:2:2" }, "payable": false, "returnParameters": { "id": 128, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 127, "name": "", "nodeType": "VariableDeclaration", "scope": 132, "src": "344:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 126, "name": "string", "nodeType": "ElementaryTypeName", "src": "344:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "343:8:2" }, "scope": 141, "src": "298:81:2", "stateMutability": "pure", "superFunction": null, "visibility": "public" }, { "body": { "id": 139, "nodeType": "Block", "src": "433:21:2", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "4d656d62657273", "id": 137, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "442:9:2", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_78f57e5c946d3023cc82b6a90daf25626674f2d20cb27417f1d3b5a4927dd9d6", "typeString": "literal_string \"Members\"" }, "value": "Members" }, "functionReturnParameters": 136, "id": 138, "nodeType": "Return", "src": "435:16:2" } ] }, "documentation": null, "id": 140, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "Members", "nodeType": "FunctionDefinition", "parameters": { "id": 133, "nodeType": "ParameterList", "parameters": [], "src": "401:2:2" }, "payable": false, "returnParameters": { "id": 136, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 135, "name": "", "nodeType": "VariableDeclaration", "scope": 140, "src": "425:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 134, "name": "string", "nodeType": "ElementaryTypeName", "src": "425:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "424:8:2" }, "scope": 141, "src": "385:69:2", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 142, "src": "83:1115:2" } ], "src": "0:1200:2" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": { "1554487835301": { "events": {}, "links": {}, "address": "0xEEA4778499C4a15bE9F26889B64f1fd5DAe452a0", "transactionHash": "0xa17d87c516767f19e099f19b8c7b828c693d497e00fc26a392b41ad437868ffd" } }, "schemaVersion": "3.0.6", "updatedAt": "2019-04-05T18:10:58.190Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } } |