2018-05-31 13:01:02 +00:00
{
"contractName" : "SelfAuthorized" ,
"abi" : [ ] ,
2018-09-26 09:19:53 +00:00
"bytecode" : "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a7230582089be6830aa63b2ce4480c1565e02c1d4e7d28bdf01f3f1cfbca1af4fc2fd06f50029" ,
"deployedBytecode" : "0x6080604052600080fd00a165627a7a7230582089be6830aa63b2ce4480c1565e02c1d4e7d28bdf01f3f1cfbca1af4fc2fd06f50029" ,
"sourceMap" : "152:166:11:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;152:166:11;;;;;;;" ,
"deployedSourceMap" : "152:166:11:-;;;;;" ,
2018-05-31 13:01:02 +00:00
"source" : "pragma solidity 0.4.24;\n\n\n/// @title SelfAuthorized - authorizes current contract to perform actions\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract SelfAuthorized {\n modifier authorized() {\n require(msg.sender == address(this), \"Method can only be called from this contract\");\n _;\n }\n}\n" ,
2018-09-26 09:19:53 +00:00
"sourcePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol" ,
2018-05-31 13:01:02 +00:00
"ast" : {
2018-09-26 09:19:53 +00:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol" ,
2018-05-31 13:01:02 +00:00
"exportedSymbols" : {
"SelfAuthorized" : [
2018-09-26 09:19:53 +00:00
1735
2018-05-31 13:01:02 +00:00
]
} ,
2018-09-26 09:19:53 +00:00
"id" : 1736 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-09-26 09:19:53 +00:00
"id" : 1720 ,
2018-05-31 13:01:02 +00:00
"literals" : [
"solidity" ,
"0.4" ,
".24"
] ,
"nodeType" : "PragmaDirective" ,
2018-09-26 09:19:53 +00:00
"src" : "0:23:11"
2018-05-31 13:01:02 +00:00
} ,
{
"baseContracts" : [ ] ,
"contractDependencies" : [ ] ,
"contractKind" : "contract" ,
"documentation" : "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - <richard@gnosis.pm>" ,
"fullyImplemented" : true ,
2018-09-26 09:19:53 +00:00
"id" : 1735 ,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts" : [
2018-09-26 09:19:53 +00:00
1735
2018-05-31 13:01:02 +00:00
] ,
"name" : "SelfAuthorized" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"body" : {
2018-09-26 09:19:53 +00:00
"id" : 1733 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-09-26 09:19:53 +00:00
"src" : "204:112:11" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-09-26 09:19:53 +00:00
"id" : 1728 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-09-26 09:19:53 +00:00
"id" : 1723 ,
2018-05-31 13:01:02 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-10-05 15:26:48 +00:00
"referencedDeclaration" : 4015 ,
2018-09-26 09:19:53 +00:00
"src" : "222:3:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-09-26 09:19:53 +00:00
"id" : 1724 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-09-26 09:19:53 +00:00
"src" : "222:10:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-09-26 09:19:53 +00:00
"id" : 1726 ,
2018-05-31 13:01:02 +00:00
"name" : "this" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-10-05 15:26:48 +00:00
"referencedDeclaration" : 4028 ,
2018-09-26 09:19:53 +00:00
"src" : "244:4:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-09-26 09:19:53 +00:00
"typeIdentifier" : "t_contract$_SelfAuthorized_$1735" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract SelfAuthorized"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2018-09-26 09:19:53 +00:00
"typeIdentifier" : "t_contract$_SelfAuthorized_$1735" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract SelfAuthorized"
}
] ,
2018-09-26 09:19:53 +00:00
"id" : 1725 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2018-09-26 09:19:53 +00:00
"src" : "236:7:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2018-09-26 09:19:53 +00:00
"id" : 1727 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-09-26 09:19:53 +00:00
"src" : "236:13:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-09-26 09:19:53 +00:00
"src" : "222:27:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207468697320636f6e7472616374" ,
2018-09-26 09:19:53 +00:00
"id" : 1729 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-09-26 09:19:53 +00:00
"src" : "251:46:11" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733" ,
"typeString" : "literal_string \"Method can only be called from this contract\""
} ,
"value" : "Method can only be called from this contract"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733" ,
"typeString" : "literal_string \"Method can only be called from this contract\""
}
] ,
2018-09-26 09:19:53 +00:00
"id" : 1722 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-10-05 15:26:48 +00:00
4018 ,
4019
2018-05-31 13:01:02 +00:00
] ,
2018-10-05 15:26:48 +00:00
"referencedDeclaration" : 4019 ,
2018-09-26 09:19:53 +00:00
"src" : "214:7:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-09-26 09:19:53 +00:00
"id" : 1730 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-09-26 09:19:53 +00:00
"src" : "214:84:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-09-26 09:19:53 +00:00
"id" : 1731 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-09-26 09:19:53 +00:00
"src" : "214:84:11"
2018-05-31 13:01:02 +00:00
} ,
{
2018-09-26 09:19:53 +00:00
"id" : 1732 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "PlaceholderStatement" ,
2018-09-26 09:19:53 +00:00
"src" : "308:1:11"
2018-05-31 13:01:02 +00:00
}
]
} ,
"documentation" : null ,
2018-09-26 09:19:53 +00:00
"id" : 1734 ,
2018-05-31 13:01:02 +00:00
"name" : "authorized" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
2018-09-26 09:19:53 +00:00
"id" : 1721 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-09-26 09:19:53 +00:00
"src" : "201:2:11"
2018-05-31 13:01:02 +00:00
} ,
2018-09-26 09:19:53 +00:00
"src" : "182:134:11" ,
2018-05-31 13:01:02 +00:00
"visibility" : "internal"
}
] ,
2018-09-26 09:19:53 +00:00
"scope" : 1736 ,
"src" : "152:166:11"
2018-05-31 13:01:02 +00:00
}
] ,
2018-09-26 09:19:53 +00:00
"src" : "0:319:11"
2018-05-31 13:01:02 +00:00
} ,
"legacyAST" : {
2018-09-26 09:19:53 +00:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol" ,
2018-05-31 13:01:02 +00:00
"exportedSymbols" : {
"SelfAuthorized" : [
2018-09-26 09:19:53 +00:00
1735
2018-05-31 13:01:02 +00:00
]
} ,
2018-09-26 09:19:53 +00:00
"id" : 1736 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-09-26 09:19:53 +00:00
"id" : 1720 ,
2018-05-31 13:01:02 +00:00
"literals" : [
"solidity" ,
"0.4" ,
".24"
] ,
"nodeType" : "PragmaDirective" ,
2018-09-26 09:19:53 +00:00
"src" : "0:23:11"
2018-05-31 13:01:02 +00:00
} ,
{
"baseContracts" : [ ] ,
"contractDependencies" : [ ] ,
"contractKind" : "contract" ,
"documentation" : "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - <richard@gnosis.pm>" ,
"fullyImplemented" : true ,
2018-09-26 09:19:53 +00:00
"id" : 1735 ,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts" : [
2018-09-26 09:19:53 +00:00
1735
2018-05-31 13:01:02 +00:00
] ,
"name" : "SelfAuthorized" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"body" : {
2018-09-26 09:19:53 +00:00
"id" : 1733 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-09-26 09:19:53 +00:00
"src" : "204:112:11" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-09-26 09:19:53 +00:00
"id" : 1728 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-09-26 09:19:53 +00:00
"id" : 1723 ,
2018-05-31 13:01:02 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-10-05 15:26:48 +00:00
"referencedDeclaration" : 4015 ,
2018-09-26 09:19:53 +00:00
"src" : "222:3:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-09-26 09:19:53 +00:00
"id" : 1724 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-09-26 09:19:53 +00:00
"src" : "222:10:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-09-26 09:19:53 +00:00
"id" : 1726 ,
2018-05-31 13:01:02 +00:00
"name" : "this" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-10-05 15:26:48 +00:00
"referencedDeclaration" : 4028 ,
2018-09-26 09:19:53 +00:00
"src" : "244:4:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-09-26 09:19:53 +00:00
"typeIdentifier" : "t_contract$_SelfAuthorized_$1735" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract SelfAuthorized"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2018-09-26 09:19:53 +00:00
"typeIdentifier" : "t_contract$_SelfAuthorized_$1735" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract SelfAuthorized"
}
] ,
2018-09-26 09:19:53 +00:00
"id" : 1725 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2018-09-26 09:19:53 +00:00
"src" : "236:7:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2018-09-26 09:19:53 +00:00
"id" : 1727 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-09-26 09:19:53 +00:00
"src" : "236:13:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-09-26 09:19:53 +00:00
"src" : "222:27:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207468697320636f6e7472616374" ,
2018-09-26 09:19:53 +00:00
"id" : 1729 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-09-26 09:19:53 +00:00
"src" : "251:46:11" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733" ,
"typeString" : "literal_string \"Method can only be called from this contract\""
} ,
"value" : "Method can only be called from this contract"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733" ,
"typeString" : "literal_string \"Method can only be called from this contract\""
}
] ,
2018-09-26 09:19:53 +00:00
"id" : 1722 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-10-05 15:26:48 +00:00
4018 ,
4019
2018-05-31 13:01:02 +00:00
] ,
2018-10-05 15:26:48 +00:00
"referencedDeclaration" : 4019 ,
2018-09-26 09:19:53 +00:00
"src" : "214:7:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-09-26 09:19:53 +00:00
"id" : 1730 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-09-26 09:19:53 +00:00
"src" : "214:84:11" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-09-26 09:19:53 +00:00
"id" : 1731 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-09-26 09:19:53 +00:00
"src" : "214:84:11"
2018-05-31 13:01:02 +00:00
} ,
{
2018-09-26 09:19:53 +00:00
"id" : 1732 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "PlaceholderStatement" ,
2018-09-26 09:19:53 +00:00
"src" : "308:1:11"
2018-05-31 13:01:02 +00:00
}
]
} ,
"documentation" : null ,
2018-09-26 09:19:53 +00:00
"id" : 1734 ,
2018-05-31 13:01:02 +00:00
"name" : "authorized" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
2018-09-26 09:19:53 +00:00
"id" : 1721 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-09-26 09:19:53 +00:00
"src" : "201:2:11"
2018-05-31 13:01:02 +00:00
} ,
2018-09-26 09:19:53 +00:00
"src" : "182:134:11" ,
2018-05-31 13:01:02 +00:00
"visibility" : "internal"
}
] ,
2018-09-26 09:19:53 +00:00
"scope" : 1736 ,
"src" : "152:166:11"
2018-05-31 13:01:02 +00:00
}
] ,
2018-09-26 09:19:53 +00:00
"src" : "0:319:11"
2018-05-31 13:01:02 +00:00
} ,
"compiler" : {
"name" : "solc" ,
"version" : "0.4.24+commit.e67f0147.Emscripten.clang"
} ,
"networks" : { } ,
2018-06-29 11:23:01 +00:00
"schemaVersion" : "2.0.0" ,
2018-10-05 15:26:48 +00:00
"updatedAt" : "2018-10-05T14:25:58.938Z"
2018-05-31 13:01:02 +00:00
}