{ "contractName": "SelfAuthorized", "abi": [], "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820af9f772ea9919e0b590dbadc1d255c497a0a1031eaf00e4735e7b65b3f2e31520029", "deployedBytecode": "0x6080604052600080fd00a165627a7a72305820af9f772ea9919e0b590dbadc1d255c497a0a1031eaf00e4735e7b65b3f2e31520029", "sourceMap": "152:118:13:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;152:118:13;;;;;;;", "deployedSourceMap": "152:118:13:-;;;;;", "source": "pragma solidity 0.4.24;\n\n\n/// @title SelfAuthorized - authorizes current contract to perform actions\n/// @author Richard Meissner - \ncontract SelfAuthorized {\n modifier authorized() {\n require(msg.sender == address(this));\n _;\n }\n}\n", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "ast": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "exportedSymbols": { "SelfAuthorized": [ 1619 ] }, "id": 1620, "nodeType": "SourceUnit", "nodes": [ { "id": 1605, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:23:13" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - ", "fullyImplemented": true, "id": 1619, "linearizedBaseContracts": [ 1619 ], "name": "SelfAuthorized", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1617, "nodeType": "Block", "src": "204:64:13", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1613, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 1608, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "222:3:13", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 1609, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "222:10:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 1611, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2617, "src": "244:4:13", "typeDescriptions": { "typeIdentifier": "t_contract$_SelfAuthorized_$1619", "typeString": "contract SelfAuthorized" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_SelfAuthorized_$1619", "typeString": "contract SelfAuthorized" } ], "id": 1610, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "236:7:13", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 1612, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "236:13:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "222:27:13", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1607, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "214:7:13", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1614, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "214:36:13", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1615, "nodeType": "ExpressionStatement", "src": "214:36:13" }, { "id": 1616, "nodeType": "PlaceholderStatement", "src": "260:1:13" } ] }, "documentation": null, "id": 1618, "name": "authorized", "nodeType": "ModifierDefinition", "parameters": { "id": 1606, "nodeType": "ParameterList", "parameters": [], "src": "201:2:13" }, "src": "182:86:13", "visibility": "internal" } ], "scope": 1620, "src": "152:118:13" } ], "src": "0:271:13" }, "legacyAST": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "exportedSymbols": { "SelfAuthorized": [ 1619 ] }, "id": 1620, "nodeType": "SourceUnit", "nodes": [ { "id": 1605, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:23:13" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - ", "fullyImplemented": true, "id": 1619, "linearizedBaseContracts": [ 1619 ], "name": "SelfAuthorized", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1617, "nodeType": "Block", "src": "204:64:13", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1613, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 1608, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "222:3:13", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 1609, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "222:10:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 1611, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2617, "src": "244:4:13", "typeDescriptions": { "typeIdentifier": "t_contract$_SelfAuthorized_$1619", "typeString": "contract SelfAuthorized" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_SelfAuthorized_$1619", "typeString": "contract SelfAuthorized" } ], "id": 1610, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "236:7:13", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 1612, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "236:13:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "222:27:13", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1607, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "214:7:13", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1614, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "214:36:13", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1615, "nodeType": "ExpressionStatement", "src": "214:36:13" }, { "id": 1616, "nodeType": "PlaceholderStatement", "src": "260:1:13" } ] }, "documentation": null, "id": 1618, "name": "authorized", "nodeType": "ModifierDefinition", "parameters": { "id": 1606, "nodeType": "ParameterList", "parameters": [], "src": "201:2:13" }, "src": "182:86:13", "visibility": "internal" } ], "scope": 1620, "src": "152:118:13" } ], "src": "0:271:13" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.0", "updatedAt": "2018-05-27T11:12:45.584Z" }