UNPKG

@netvote/elections-solidity

Version:
630 lines 31.2 kB
{ "contractName": "BaseBallot", "abi": [ { "constant": false, "inputs": [], "name": "activate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "addr", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "addr", "type": "address" } ], "name": "isAdmin", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "electionPhase", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "abort", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "close", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "removeSelf", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "addr", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isLocked", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "unlock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "metadataLocation", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isClosed", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "checkConfig", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "name": "ownerAddress", "type": "address" }, { "name": "location", "type": "string" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [], "name": "Closed", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Activated", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Aborted", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Locked", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Unlocked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "previousOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" } ], "bytecode": "0x60606040526002805461ffff19169055341561001a57600080fd5b604051610932380380610932833981016040528080519190602001805160008054600160a060020a03338116600160a060020a031990921691909117825585168152600160208190526040909120805460ff191690911790559091019050600381805161008b929160200190610093565b50505061012e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100d457805160ff1916838001178555610101565b82800160010185558215610101579182015b828111156101015782518255916020019190600101906100e6565b5061010d929150610111565b5090565b61012b91905b8082111561010d5760008155600101610117565b90565b6107f58061013d6000396000f3006060604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630f15f4c081146100ea5780631785f53c146100ff57806324d7806c1461011e578063265050b61461015157806335a063b41461018857806343d726d61461019b5780635e898dac146101ae57806370480275146101c15780638da5cb5b146101e0578063a4e2d6341461020f578063a69df4b514610222578063b86901af14610235578063c2b6b58c146102bf578063f098fe47146102d2578063f2fde38b146102e5578063f83d08ba14610304575b600080fd5b34156100f557600080fd5b6100fd610317565b005b341561010a57600080fd5b6100fd600160a060020a03600435166103b0565b341561012957600080fd5b61013d600160a060020a03600435166103ec565b604051901515815260200160405180910390f35b341561015c57600080fd5b61016461043b565b6040518082600381111561017457fe5b60ff16815260200191505060405180910390f35b341561019357600080fd5b6100fd610449565b34156101a657600080fd5b6100fd61049a565b34156101b957600080fd5b6100fd610520565b34156101cc57600080fd5b6100fd600160a060020a0360043516610556565b34156101eb57600080fd5b6101f3610598565b604051600160a060020a03909116815260200160405180910390f35b341561021a57600080fd5b61013d6105a7565b341561022d57600080fd5b6100fd6105b0565b341561024057600080fd5b61024861060d565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561028457808201518382015260200161026c565b50505050905090810190601f1680156102b15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102ca57600080fd5b61013d6106ab565b34156102dd57600080fd5b61013d6106ca565b34156102f057600080fd5b6100fd600160a060020a03600435166106cf565b341561030f57600080fd5b6100fd61076a565b61031f6105a7565b15801561034157506000600254610100900460ff16600381111561033f57fe5b145b151561034c57600080fd5b610355336103ec565b151561036057600080fd5b6103686106ca565b151561037357600080fd5b6002805461ff0019166101001790557fed1cd0670ee0c0017f550451a038818c696d0b6a9d6ce5b369e44275573cf9b060405160405180910390a1565b60005433600160a060020a039081169116146103cb57600080fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b6000600160a060020a038216158015906104355750600054600160a060020a03838116911614806104355750600160a060020a03821660009081526001602052604090205460ff165b92915050565b600254610100900460ff1681565b610452336103ec565b151561045d57600080fd5b6002805461ff0019166103001790557f72c874aeff0b183a56e2b79c71b46e1aed4dee5e09862134b8821ba2fddbf8bf60405160405180910390a1565b6104a26105a7565b1580156104c457506001600254610100900460ff1660038111156104c257fe5b145b15156104cf57600080fd5b6104d8336103ec565b15156104e357600080fd5b6002805461ff0019166102001790557f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a60405160405180910390a1565b610529336103ec565b151561053457600080fd5b600160a060020a0333166000908152600160205260409020805460ff19169055565b60005433600160a060020a0390811691161461057157600080fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b600054600160a060020a031681565b60025460ff1690565b6105b9336103ec565b15156105c457600080fd5b60025460ff1615156105d557600080fd5b6002805460ff191690557f19aad37188a1d3921e29eb3c66acf43d81975e107cb650d58cca878627955fd660405160405180910390a1565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106a35780601f10610678576101008083540402835291602001916106a3565b820191906000526020600020905b81548152906001019060200180831161068657829003601f168201915b505050505081565b600060028054610100900460ff1660038111156106c457fe5b14905090565b600190565b60005433600160a060020a039081169116146106ea57600080fd5b600160a060020a03811615156106ff57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b610773336103ec565b151561077e57600080fd5b60025460ff161561078e57600080fd5b6002805460ff191660011790557f0f2e5b6c72c6a4491efd919a9f9a409f324ef0708c11ee57d410c2cb06c0992b60405160405180910390a15600a165627a7a72305820a486f1a0091aa8f6424da17f1dcbbf6c77a4b75a220cd51be88e82a0bee16f0a0029", "deployedBytecode": "0x6060604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630f15f4c081146100ea5780631785f53c146100ff57806324d7806c1461011e578063265050b61461015157806335a063b41461018857806343d726d61461019b5780635e898dac146101ae57806370480275146101c15780638da5cb5b146101e0578063a4e2d6341461020f578063a69df4b514610222578063b86901af14610235578063c2b6b58c146102bf578063f098fe47146102d2578063f2fde38b146102e5578063f83d08ba14610304575b600080fd5b34156100f557600080fd5b6100fd610317565b005b341561010a57600080fd5b6100fd600160a060020a03600435166103b0565b341561012957600080fd5b61013d600160a060020a03600435166103ec565b604051901515815260200160405180910390f35b341561015c57600080fd5b61016461043b565b6040518082600381111561017457fe5b60ff16815260200191505060405180910390f35b341561019357600080fd5b6100fd610449565b34156101a657600080fd5b6100fd61049a565b34156101b957600080fd5b6100fd610520565b34156101cc57600080fd5b6100fd600160a060020a0360043516610556565b34156101eb57600080fd5b6101f3610598565b604051600160a060020a03909116815260200160405180910390f35b341561021a57600080fd5b61013d6105a7565b341561022d57600080fd5b6100fd6105b0565b341561024057600080fd5b61024861060d565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561028457808201518382015260200161026c565b50505050905090810190601f1680156102b15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102ca57600080fd5b61013d6106ab565b34156102dd57600080fd5b61013d6106ca565b34156102f057600080fd5b6100fd600160a060020a03600435166106cf565b341561030f57600080fd5b6100fd61076a565b61031f6105a7565b15801561034157506000600254610100900460ff16600381111561033f57fe5b145b151561034c57600080fd5b610355336103ec565b151561036057600080fd5b6103686106ca565b151561037357600080fd5b6002805461ff0019166101001790557fed1cd0670ee0c0017f550451a038818c696d0b6a9d6ce5b369e44275573cf9b060405160405180910390a1565b60005433600160a060020a039081169116146103cb57600080fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b6000600160a060020a038216158015906104355750600054600160a060020a03838116911614806104355750600160a060020a03821660009081526001602052604090205460ff165b92915050565b600254610100900460ff1681565b610452336103ec565b151561045d57600080fd5b6002805461ff0019166103001790557f72c874aeff0b183a56e2b79c71b46e1aed4dee5e09862134b8821ba2fddbf8bf60405160405180910390a1565b6104a26105a7565b1580156104c457506001600254610100900460ff1660038111156104c257fe5b145b15156104cf57600080fd5b6104d8336103ec565b15156104e357600080fd5b6002805461ff0019166102001790557f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a60405160405180910390a1565b610529336103ec565b151561053457600080fd5b600160a060020a0333166000908152600160205260409020805460ff19169055565b60005433600160a060020a0390811691161461057157600080fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b600054600160a060020a031681565b60025460ff1690565b6105b9336103ec565b15156105c457600080fd5b60025460ff1615156105d557600080fd5b6002805460ff191690557f19aad37188a1d3921e29eb3c66acf43d81975e107cb650d58cca878627955fd660405160405180910390a1565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106a35780601f10610678576101008083540402835291602001916106a3565b820191906000526020600020905b81548152906001019060200180831161068657829003601f168201915b505050505081565b600060028054610100900460ff1660038111156106c457fe5b14905090565b600190565b60005433600160a060020a039081169116146106ea57600080fd5b600160a060020a03811615156106ff57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b610773336103ec565b151561077e57600080fd5b60025460ff161561078e57600080fd5b6002805460ff191660011790557f0f2e5b6c72c6a4491efd919a9f9a409f324ef0708c11ee57d410c2cb06c0992b60405160405180910390a15600a165627a7a72305820a486f1a0091aa8f6424da17f1dcbbf6c77a4b75a220cd51be88e82a0bee16f0a0029", "sourceMap": "1041:273:2:-;;;1183:22:16;;;-1:-1:-1;;1326:59:15;;;1126:185:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;494:5:21;:18;;-1:-1:-1;;;;;502:10:21;494:18;;-1:-1:-1;;;;;;494:18:21;;;;;;;;;1234:26:2;;;;494:18:21;1234:26:2;;;;;;;;:33;;-1:-1:-1;;1234:33:2;;;;;;1126:185;;;;-1:-1:-1;1277:16:2;1126:185;;1277:27;;;;;;;;:::i;:::-;;1126:185;;1041:273;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1041:273:2;;;-1:-1:-1;1041:273:2;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "1041:273:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2006:148:15;;;;;;;;;;;;;;1460:95:0;;;;;;;;;;-1:-1:-1;;;;;1460:95:0;;;;;1212:145;;;;;;;;;;-1:-1:-1;;;;;1212:145:0;;;;;;;;;;;;;;;;;;;;;;1326:59:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2274:103;;;;;;;;;;;;2160:108;;;;;;;;;;;;1561:84:0;;;;;;;;;;;;1363:91;;;;;;;;;;-1:-1:-1;;;;;1363:91:0;;;;;238:20:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;238:20:21;;;;;;;;;;;;;;1355:84:16;;;;;;;;;;;;1540:92;;;;;;;;;;;;1089:30:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;71:3;;;64:6;52:2;45:3;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1720:112:15;;;;;;;;;;;;1838:162;;;;;;;;;;;;827:169:21;;;;;;;;;;-1:-1:-1;;;;;827:169:21;;;;;1445:89:16;;;;;;;;;;;;2006:148:15;1529:10;:8;:10::i;:::-;1528:11;:54;;;;-1:-1:-1;1560:22:15;1543:13;;;;;;;:39;;;;;;;;;1528:54;1520:63;;;;;;;;1168:19:0;1176:10;1168:7;:19::i;:::-;1160:28;;;;;;;;2066:13:15;:11;:13::i;:::-;2058:22;;;;;;;;2090:13;:36;;-1:-1:-1;;2090:36:15;;;;;2136:11;;;;;;;;;;2006:148::o;1460:95:0:-;647:5:21;;633:10;-1:-1:-1;;;;;633:19:21;;;647:5;;633:19;625:28;;;;;;-1:-1:-1;;;;;1522:18:0;1543:5;1522:18;;;:12;:18;;;;;:26;;-1:-1:-1;;1522:26:0;;;1460:95::o;1212:145::-;1268:4;-1:-1:-1;;;;;1291:18:0;;;;;;:59;;-1:-1:-1;1322:5:0;;-1:-1:-1;;;;;1314:13:0;;;1322:5;;1314:13;;:35;;-1:-1:-1;;;;;;1331:18:0;;;;;;:12;:18;;;;;;;;1314:35;1284:66;1212:145;-1:-1:-1;;1212:145:0:o;1326:59:15:-;;;;;;;;;:::o;2274:103::-;1168:19:0;1176:10;1168:7;:19::i;:::-;1160:28;;;;;;;;2314:13:15;:37;;-1:-1:-1;;2314:37:15;;;;;2361:9;;;;;;;;;;2274:103::o;2160:108::-;1644:10;:8;:10::i;:::-;1643:11;:52;;;;-1:-1:-1;1675:20:15;1658:13;;;;;;;:37;;;;;;;;;1643:52;1635:61;;;;;;;;1168:19:0;1176:10;1168:7;:19::i;:::-;1160:28;;;;;;;;2223:20:15;2207:36;;-1:-1:-1;;2207:36:15;;;;;2253:8;;;;;;;;;;2160:108::o;1561:84:0:-;1168:19;1176:10;1168:7;:19::i;:::-;1160:28;;;;;;;;-1:-1:-1;;;;;1619:10:0;1606:24;1633:5;1606:24;;;:12;:24;;;;;:32;;-1:-1:-1;;1606:32:0;;;1561:84::o;1363:91::-;647:5:21;;633:10;-1:-1:-1;;;;;633:19:21;;;647:5;;633:19;625:28;;;;;;-1:-1:-1;;;;;1422:18:0;;;;;1443:4;1422:18;;;;;;;;:25;;-1:-1:-1;;1422:25:0;;;;;;1363:91::o;238:20:21:-;;;-1:-1:-1;;;;;238:20:21;;:::o;1355:84:16:-;1423:9;;;;1355:84;:::o;1540:92::-;1168:19:0;1176:10;1168:7;:19::i;:::-;1160:28;;;;;;;;1248:9:16;;;;1240:18;;;;;;;;1588:9;:17;;-1:-1:-1;;1588:17:16;;;1615:10;;;;;;;;;;1540:92::o;1089:30:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1720:112:15:-;1765:4;1805:20;1788:13;;;;;;;:37;;;;;;;;;1781:44;;1720:112;:::o;1838:162::-;1989:4;1838:162;:::o;827:169:21:-;647:5;;633:10;-1:-1:-1;;;;;633:19:21;;;647:5;;633:19;625:28;;;;;;-1:-1:-1;;;;;903:22:21;;;;895:31;;;;;;953:5;;-1:-1:-1;;;;;932:37:21;;;;953:5;932:37;;;;;;;;;;975:5;:16;;-1:-1:-1;;975:16:21;-1:-1:-1;;;;;975:16:21;;;;;;;;;;827:169::o;1445:89:16:-;1168:19:0;1176:10;1168:7;:19::i;:::-;1160:28;;;;;;;;1321:9:16;;;;1320:10;1312:19;;;;;;1493:9;:16;;-1:-1:-1;;1493:16:16;1505:4;1493:16;;;1519:8;;;;;;;;;;1445:89::o", "source": "// ------------------------------------------------------------------------------\n// This file is part of netvote.\n//\n// netvote is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// netvote is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with solidity. If not, see <http://www.gnu.org/licenses/>\n//\n// (c) 2017 netvote contributors.\n//-------------------------------------------------------------------------------\n\npragma solidity ^0.4.17;\n\nimport \"../state/ElectionPhaseable.sol\";\n\n\n/**\n * @title BaseBallot\n * @dev A base ballot contract that knows how to store a metadataLocation\n */\ncontract BaseBallot is ElectionPhaseable {\n\n string public metadataLocation;\n\n function BaseBallot(address ownerAddress, string location) public {\n //owner = ownerAddress;\n adminAddress[ownerAddress] = true;\n metadataLocation = location;\n }\n\n}", "sourcePath": "/Users/slanders/netvote/elections-solidity/contracts/elections/BaseBallot.sol", "ast": { "attributes": { "absolutePath": "/Users/slanders/netvote/elections-solidity/contracts/elections/BaseBallot.sol", "exportedSymbols": { "BaseBallot": [ 160 ] } }, "children": [ { "attributes": { "literals": [ "solidity", "^", "0.4", ".17" ] }, "id": 136, "name": "PragmaDirective", "src": "869:24:2" }, { "attributes": { "SourceUnit": 2130, "absolutePath": "/Users/slanders/netvote/elections-solidity/contracts/state/ElectionPhaseable.sol", "file": "../state/ElectionPhaseable.sol", "scope": 161, "symbolAliases": [ null ], "unitAlias": "" }, "id": 137, "name": "ImportDirective", "src": "895:40:2" }, { "attributes": { "contractDependencies": [ 84, 2129, 2197, 2703 ], "contractKind": "contract", "documentation": "@title BaseBallot\n@dev A base ballot contract that knows how to store a metadataLocation", "fullyImplemented": true, "linearizedBaseContracts": [ 160, 2129, 2197, 84, 2703 ], "name": "BaseBallot", "scope": 161 }, "children": [ { "attributes": { "arguments": [ null ] }, "children": [ { "attributes": { "contractScope": null, "name": "ElectionPhaseable", "referencedDeclaration": 2129, "type": "contract ElectionPhaseable" }, "id": 138, "name": "UserDefinedTypeName", "src": "1064:17:2" } ], "id": 139, "name": "InheritanceSpecifier", "src": "1064:17:2" }, { "attributes": { "constant": false, "name": "metadataLocation", "scope": 160, "stateVariable": true, "storageLocation": "default", "type": "string storage ref", "value": null, "visibility": "public" }, "children": [ { "attributes": { "name": "string", "type": "string storage pointer" }, "id": 140, "name": "ElementaryTypeName", "src": "1089:6:2" } ], "id": 141, "name": "VariableDeclaration", "src": "1089:30:2" }, { "attributes": { "constant": false, "implemented": true, "isConstructor": true, "modifiers": [ null ], "name": "BaseBallot", "payable": false, "scope": 160, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "ownerAddress", "scope": 159, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "type": "address" }, "id": 142, "name": "ElementaryTypeName", "src": "1146:7:2" } ], "id": 143, "name": "VariableDeclaration", "src": "1146:20:2" }, { "attributes": { "constant": false, "name": "location", "scope": 159, "stateVariable": false, "storageLocation": "default", "type": "string memory", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string storage pointer" }, "id": 144, "name": "ElementaryTypeName", "src": "1168:6:2" } ], "id": 145, "name": "VariableDeclaration", "src": "1168:15:2" } ], "id": 146, "name": "ParameterList", "src": "1145:39:2" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 147, "name": "ParameterList", "src": "1192:0:2" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8, "type": "mapping(address => bool)", "value": "adminAddress" }, "id": 148, "name": "Identifier", "src": "1234:12:2" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 143, "type": "address", "value": "ownerAddress" }, "id": 149, "name": "Identifier", "src": "1247:12:2" } ], "id": 150, "name": "IndexAccess", "src": "1234:26:2" }, { "attributes": { "argumentTypes": null, "hexvalue": "74727565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "true" }, "id": 151, "name": "Literal", "src": "1263:4:2" } ], "id": 152, "name": "Assignment", "src": "1234:33:2" } ], "id": 153, "name": "ExpressionStatement", "src": "1234:33:2" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 141, "type": "string storage ref", "value": "metadataLocation" }, "id": 154, "name": "Identifier", "src": "1277:16:2" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 145, "type": "string memory", "value": "location" }, "id": 155, "name": "Identifier", "src": "1296:8:2" } ], "id": 156, "name": "Assignment", "src": "1277:27:2" } ], "id": 157, "name": "ExpressionStatement", "src": "1277:27:2" } ], "id": 158, "name": "Block", "src": "1192:119:2" } ], "id": 159, "name": "FunctionDefinition", "src": "1126:185:2" } ], "id": 160, "name": "ContractDefinition", "src": "1041:273:2" } ], "id": 161, "name": "SourceUnit", "src": "869:445:2" }, "compiler": { "name": "solc", "version": "0.4.18+commit.9cf6e910.Emscripten.clang" }, "networks": {}, "schemaVersion": "1.0.1", "updatedAt": "2018-03-26T15:46:12.428Z" }