safe-react/safe-contracts/build/contracts/SelfAuthorized.json

435 lines
17 KiB
JSON
Raw Normal View History

2018-05-10 11:12:13 +00:00
{
"contractName": "SelfAuthorized",
"abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820c359a8a0df732b4d3e100e43277411dee19c572529edb454cbf1fa9ee91508150029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a72305820c359a8a0df732b4d3e100e43277411dee19c572529edb454cbf1fa9ee91508150029",
2018-05-16 13:46:33 +00:00
"sourceMap": "152:118:8:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;152:118:8;;;;;;;",
"deployedSourceMap": "152:118:8:-;;;;;",
2018-05-10 11:12:13 +00:00
"source": "pragma solidity 0.4.23;\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));\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": [
2018-05-16 13:46:33 +00:00
1359
2018-05-10 11:12:13 +00:00
]
},
2018-05-16 13:46:33 +00:00
"id": 1360,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-16 13:46:33 +00:00
"id": 1345,
2018-05-10 11:12:13 +00:00
"literals": [
"solidity",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
2018-05-16 13:46:33 +00:00
"src": "0:23:8"
2018-05-10 11:12:13 +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-05-16 13:46:33 +00:00
"id": 1359,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
2018-05-16 13:46:33 +00:00
1359
2018-05-10 11:12:13 +00:00
],
"name": "SelfAuthorized",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 1357,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "204:64:8",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-16 13:46:33 +00:00
"id": 1353,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 1348,
2018-05-10 11:12:13 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2396,
"src": "222:3:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-05-16 13:46:33 +00:00
"id": 1349,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-16 13:46:33 +00:00
"src": "222:10:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 1351,
2018-05-10 11:12:13 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2411,
"src": "244:4:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_SelfAuthorized_$1359",
2018-05-10 11:12:13 +00:00
"typeString": "contract SelfAuthorized"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_SelfAuthorized_$1359",
2018-05-10 11:12:13 +00:00
"typeString": "contract SelfAuthorized"
}
],
2018-05-16 13:46:33 +00:00
"id": 1350,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-05-16 13:46:33 +00:00
"src": "236:7:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-05-16 13:46:33 +00:00
"id": 1352,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "236:13:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"src": "222:27:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 1347,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "214:7:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 1354,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "214:36:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 1355,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "214:36:8"
2018-05-10 11:12:13 +00:00
},
{
2018-05-16 13:46:33 +00:00
"id": 1356,
2018-05-10 11:12:13 +00:00
"nodeType": "PlaceholderStatement",
2018-05-16 13:46:33 +00:00
"src": "260:1:8"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": null,
2018-05-16 13:46:33 +00:00
"id": 1358,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "ModifierDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 1346,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "201:2:8"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"src": "182:86:8",
2018-05-10 11:12:13 +00:00
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"scope": 1360,
"src": "152:118:8"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"src": "0:271:8"
2018-05-10 11:12:13 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol",
"exportedSymbols": {
"SelfAuthorized": [
2018-05-16 13:46:33 +00:00
1359
2018-05-10 11:12:13 +00:00
]
},
2018-05-16 13:46:33 +00:00
"id": 1360,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-16 13:46:33 +00:00
"id": 1345,
2018-05-10 11:12:13 +00:00
"literals": [
"solidity",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
2018-05-16 13:46:33 +00:00
"src": "0:23:8"
2018-05-10 11:12:13 +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-05-16 13:46:33 +00:00
"id": 1359,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
2018-05-16 13:46:33 +00:00
1359
2018-05-10 11:12:13 +00:00
],
"name": "SelfAuthorized",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 1357,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "204:64:8",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-16 13:46:33 +00:00
"id": 1353,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 1348,
2018-05-10 11:12:13 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2396,
"src": "222:3:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-05-16 13:46:33 +00:00
"id": 1349,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-16 13:46:33 +00:00
"src": "222:10:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 1351,
2018-05-10 11:12:13 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2411,
"src": "244:4:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_SelfAuthorized_$1359",
2018-05-10 11:12:13 +00:00
"typeString": "contract SelfAuthorized"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_SelfAuthorized_$1359",
2018-05-10 11:12:13 +00:00
"typeString": "contract SelfAuthorized"
}
],
2018-05-16 13:46:33 +00:00
"id": 1350,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-05-16 13:46:33 +00:00
"src": "236:7:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-05-16 13:46:33 +00:00
"id": 1352,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "236:13:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"src": "222:27:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 1347,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "214:7:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 1354,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "214:36:8",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 1355,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "214:36:8"
2018-05-10 11:12:13 +00:00
},
{
2018-05-16 13:46:33 +00:00
"id": 1356,
2018-05-10 11:12:13 +00:00
"nodeType": "PlaceholderStatement",
2018-05-16 13:46:33 +00:00
"src": "260:1:8"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": null,
2018-05-16 13:46:33 +00:00
"id": 1358,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "ModifierDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 1346,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "201:2:8"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"src": "182:86:8",
2018-05-10 11:12:13 +00:00
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"scope": 1360,
"src": "152:118:8"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"src": "0:271:8"
2018-05-10 11:12:13 +00:00
},
"compiler": {
"name": "solc",
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.0",
2018-05-16 13:46:33 +00:00
"updatedAt": "2018-05-16T10:51:14.750Z"
2018-05-10 11:12:13 +00:00
}