2018-05-10 13:12:13 +02:00
{
"contractName" : "MasterCopy" ,
"abi" : [
{
"constant" : false ,
"inputs" : [
{
"name" : "_masterCopy" ,
"type" : "address"
}
] ,
"name" : "changeMasterCopy" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
}
] ,
2018-05-27 13:24:10 +02:00
"bytecode" : "0x608060405234801561001057600080fd5b50610158806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100c357600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141515156100e957600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820af102433b8ccec4f2f22acc2112a110b3e5e8a3a9a6410aebbe25fc9281607660029" ,
"deployedBytecode" : "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100c357600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141515156100e957600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820af102433b8ccec4f2f22acc2112a110b3e5e8a3a9a6410aebbe25fc9281607660029" ,
"sourceMap" : "203:633:5:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;203:633:5;;;;;;;" ,
"deployedSourceMap" : "203:633:5:-;;;;;;;;;;;;;;;;;;;;;;;;626:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:208:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;244:4:13;222:27;;:10;:27;;;214:36;;;;;;;;791:1:5;776:11;:16;;;;768:25;;;;;;;;816:11;803:10;;:24;;;;;;;;;;;;;;;;;;626:208;:::o" ,
"source" : "pragma solidity 0.4.24;\nimport \"./SelfAuthorized.sol\";\n\n\n/// @title MasterCopy - Base for master copy contracts (should always be first super contract)\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract MasterCopy is SelfAuthorized {\n // masterCopy always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\n // It should also always be ensured that the address is stored alone (uses a full word)\n address masterCopy;\n\n /// @dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n /// @param _masterCopy New contract address.\n function changeMasterCopy(address _masterCopy)\n public\n authorized\n {\n // Master copy address cannot be null.\n require(_masterCopy != 0);\n masterCopy = _masterCopy;\n }\n}\n" ,
2018-05-10 13:12:13 +02:00
"sourcePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol" ,
"ast" : {
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol" ,
"exportedSymbols" : {
"MasterCopy" : [
2018-05-27 13:24:10 +02:00
652
2018-05-10 13:12:13 +02:00
]
} ,
2018-05-27 13:24:10 +02:00
"id" : 653 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-05-27 13:24:10 +02:00
"id" : 628 ,
2018-05-10 13:12:13 +02:00
"literals" : [
"solidity" ,
"0.4" ,
2018-05-27 13:24:10 +02:00
".24"
2018-05-10 13:12:13 +02:00
] ,
"nodeType" : "PragmaDirective" ,
2018-05-27 13:24:10 +02:00
"src" : "0:23:5"
2018-05-10 13:12:13 +02:00
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol" ,
"file" : "./SelfAuthorized.sol" ,
2018-05-27 13:24:10 +02:00
"id" : 629 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ImportDirective" ,
2018-05-27 13:24:10 +02:00
"scope" : 653 ,
"sourceUnit" : 1620 ,
"src" : "24:30:5" ,
2018-05-10 13:12:13 +02:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-05-27 13:24:10 +02:00
"id" : 630 ,
2018-05-10 13:12:13 +02:00
"name" : "SelfAuthorized" ,
"nodeType" : "UserDefinedTypeName" ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 1619 ,
"src" : "226:14:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
2018-05-27 13:24:10 +02:00
"typeIdentifier" : "t_contract$_SelfAuthorized_$1619" ,
2018-05-10 13:12:13 +02:00
"typeString" : "contract SelfAuthorized"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 631 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "InheritanceSpecifier" ,
2018-05-27 13:24:10 +02:00
"src" : "226:14:5"
2018-05-10 13:12:13 +02:00
}
] ,
"contractDependencies" : [
2018-05-27 13:24:10 +02:00
1619
2018-05-10 13:12:13 +02:00
] ,
"contractKind" : "contract" ,
"documentation" : "@title MasterCopy - Base for master copy contracts (should always be first super contract)\n @author Richard Meissner - <richard@gnosis.pm>" ,
"fullyImplemented" : true ,
2018-05-27 13:24:10 +02:00
"id" : 652 ,
2018-05-10 13:12:13 +02:00
"linearizedBaseContracts" : [
2018-05-27 13:24:10 +02:00
652 ,
1619
2018-05-10 13:12:13 +02:00
] ,
"name" : "MasterCopy" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : false ,
2018-05-27 13:24:10 +02:00
"id" : 633 ,
2018-05-10 13:12:13 +02:00
"name" : "masterCopy" ,
"nodeType" : "VariableDeclaration" ,
2018-05-27 13:24:10 +02:00
"scope" : 652 ,
"src" : "465:18:5" ,
2018-05-10 13:12:13 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-05-27 13:24:10 +02:00
"id" : 632 ,
2018-05-10 13:12:13 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-27 13:24:10 +02:00
"src" : "465:7:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"body" : {
2018-05-27 13:24:10 +02:00
"id" : 650 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "Block" ,
2018-05-27 13:24:10 +02:00
"src" : "711:123:5" ,
2018-05-10 13:12:13 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-05-27 13:24:10 +02:00
"id" : 643 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 641 ,
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 635 ,
"src" : "776:11:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-27 13:24:10 +02:00
"id" : 642 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-27 13:24:10 +02:00
"src" : "791:1:5" ,
2018-05-10 13:12:13 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-05-27 13:24:10 +02:00
"src" : "776:16:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-27 13:24:10 +02:00
"id" : 640 ,
2018-05-10 13:12:13 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-05-27 13:24:10 +02:00
2601 ,
2602
2018-05-10 13:12:13 +02:00
] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 2601 ,
"src" : "768:7:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 644 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-27 13:24:10 +02:00
"src" : "768:25:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 645 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-27 13:24:10 +02:00
"src" : "768:25:5"
2018-05-10 13:12:13 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 648 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 646 ,
2018-05-10 13:12:13 +02:00
"name" : "masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 633 ,
"src" : "803:10:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 647 ,
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 635 ,
"src" : "816:11:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-27 13:24:10 +02:00
"src" : "803:24:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 649 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-27 13:24:10 +02:00
"src" : "803:24:5"
2018-05-10 13:12:13 +02:00
}
]
} ,
"documentation" : "@dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n @param _masterCopy New contract address." ,
2018-05-27 13:24:10 +02:00
"id" : 651 ,
2018-05-10 13:12:13 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : null ,
2018-05-27 13:24:10 +02:00
"id" : 638 ,
2018-05-10 13:12:13 +02:00
"modifierName" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 637 ,
2018-05-10 13:12:13 +02:00
"name" : "authorized" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 1618 ,
"src" : "696:10:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-05-27 13:24:10 +02:00
"src" : "696:10:5"
2018-05-10 13:12:13 +02:00
}
] ,
"name" : "changeMasterCopy" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-27 13:24:10 +02:00
"id" : 636 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-27 13:24:10 +02:00
"id" : 635 ,
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"nodeType" : "VariableDeclaration" ,
2018-05-27 13:24:10 +02:00
"scope" : 651 ,
"src" : "652:19:5" ,
2018-05-10 13:12:13 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-05-27 13:24:10 +02:00
"id" : 634 ,
2018-05-10 13:12:13 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-27 13:24:10 +02:00
"src" : "652:7:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-27 13:24:10 +02:00
"src" : "651:21:5"
2018-05-10 13:12:13 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-27 13:24:10 +02:00
"id" : 639 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-27 13:24:10 +02:00
"src" : "711:0:5"
2018-05-10 13:12:13 +02:00
} ,
2018-05-27 13:24:10 +02:00
"scope" : 652 ,
"src" : "626:208:5" ,
2018-05-10 13:12:13 +02:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-05-27 13:24:10 +02:00
"scope" : 653 ,
"src" : "203:633:5"
2018-05-10 13:12:13 +02:00
}
] ,
2018-05-27 13:24:10 +02:00
"src" : "0:837:5"
2018-05-10 13:12:13 +02:00
} ,
"legacyAST" : {
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol" ,
"exportedSymbols" : {
"MasterCopy" : [
2018-05-27 13:24:10 +02:00
652
2018-05-10 13:12:13 +02:00
]
} ,
2018-05-27 13:24:10 +02:00
"id" : 653 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-05-27 13:24:10 +02:00
"id" : 628 ,
2018-05-10 13:12:13 +02:00
"literals" : [
"solidity" ,
"0.4" ,
2018-05-27 13:24:10 +02:00
".24"
2018-05-10 13:12:13 +02:00
] ,
"nodeType" : "PragmaDirective" ,
2018-05-27 13:24:10 +02:00
"src" : "0:23:5"
2018-05-10 13:12:13 +02:00
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol" ,
"file" : "./SelfAuthorized.sol" ,
2018-05-27 13:24:10 +02:00
"id" : 629 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ImportDirective" ,
2018-05-27 13:24:10 +02:00
"scope" : 653 ,
"sourceUnit" : 1620 ,
"src" : "24:30:5" ,
2018-05-10 13:12:13 +02:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-05-27 13:24:10 +02:00
"id" : 630 ,
2018-05-10 13:12:13 +02:00
"name" : "SelfAuthorized" ,
"nodeType" : "UserDefinedTypeName" ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 1619 ,
"src" : "226:14:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
2018-05-27 13:24:10 +02:00
"typeIdentifier" : "t_contract$_SelfAuthorized_$1619" ,
2018-05-10 13:12:13 +02:00
"typeString" : "contract SelfAuthorized"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 631 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "InheritanceSpecifier" ,
2018-05-27 13:24:10 +02:00
"src" : "226:14:5"
2018-05-10 13:12:13 +02:00
}
] ,
"contractDependencies" : [
2018-05-27 13:24:10 +02:00
1619
2018-05-10 13:12:13 +02:00
] ,
"contractKind" : "contract" ,
"documentation" : "@title MasterCopy - Base for master copy contracts (should always be first super contract)\n @author Richard Meissner - <richard@gnosis.pm>" ,
"fullyImplemented" : true ,
2018-05-27 13:24:10 +02:00
"id" : 652 ,
2018-05-10 13:12:13 +02:00
"linearizedBaseContracts" : [
2018-05-27 13:24:10 +02:00
652 ,
1619
2018-05-10 13:12:13 +02:00
] ,
"name" : "MasterCopy" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : false ,
2018-05-27 13:24:10 +02:00
"id" : 633 ,
2018-05-10 13:12:13 +02:00
"name" : "masterCopy" ,
"nodeType" : "VariableDeclaration" ,
2018-05-27 13:24:10 +02:00
"scope" : 652 ,
"src" : "465:18:5" ,
2018-05-10 13:12:13 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-05-27 13:24:10 +02:00
"id" : 632 ,
2018-05-10 13:12:13 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-27 13:24:10 +02:00
"src" : "465:7:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"body" : {
2018-05-27 13:24:10 +02:00
"id" : 650 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "Block" ,
2018-05-27 13:24:10 +02:00
"src" : "711:123:5" ,
2018-05-10 13:12:13 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-05-27 13:24:10 +02:00
"id" : 643 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 641 ,
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 635 ,
"src" : "776:11:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-27 13:24:10 +02:00
"id" : 642 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-27 13:24:10 +02:00
"src" : "791:1:5" ,
2018-05-10 13:12:13 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-05-27 13:24:10 +02:00
"src" : "776:16:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-27 13:24:10 +02:00
"id" : 640 ,
2018-05-10 13:12:13 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-05-27 13:24:10 +02:00
2601 ,
2602
2018-05-10 13:12:13 +02:00
] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 2601 ,
"src" : "768:7:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 644 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-27 13:24:10 +02:00
"src" : "768:25:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 645 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-27 13:24:10 +02:00
"src" : "768:25:5"
2018-05-10 13:12:13 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 648 ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 646 ,
2018-05-10 13:12:13 +02:00
"name" : "masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 633 ,
"src" : "803:10:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 647 ,
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 635 ,
"src" : "816:11:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-27 13:24:10 +02:00
"src" : "803:24:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-27 13:24:10 +02:00
"id" : 649 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-27 13:24:10 +02:00
"src" : "803:24:5"
2018-05-10 13:12:13 +02:00
}
]
} ,
"documentation" : "@dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n @param _masterCopy New contract address." ,
2018-05-27 13:24:10 +02:00
"id" : 651 ,
2018-05-10 13:12:13 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : null ,
2018-05-27 13:24:10 +02:00
"id" : 638 ,
2018-05-10 13:12:13 +02:00
"modifierName" : {
"argumentTypes" : null ,
2018-05-27 13:24:10 +02:00
"id" : 637 ,
2018-05-10 13:12:13 +02:00
"name" : "authorized" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-27 13:24:10 +02:00
"referencedDeclaration" : 1618 ,
"src" : "696:10:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-05-27 13:24:10 +02:00
"src" : "696:10:5"
2018-05-10 13:12:13 +02:00
}
] ,
"name" : "changeMasterCopy" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-27 13:24:10 +02:00
"id" : 636 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-27 13:24:10 +02:00
"id" : 635 ,
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"nodeType" : "VariableDeclaration" ,
2018-05-27 13:24:10 +02:00
"scope" : 651 ,
"src" : "652:19:5" ,
2018-05-10 13:12:13 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-05-27 13:24:10 +02:00
"id" : 634 ,
2018-05-10 13:12:13 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-27 13:24:10 +02:00
"src" : "652:7:5" ,
2018-05-10 13:12:13 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-27 13:24:10 +02:00
"src" : "651:21:5"
2018-05-10 13:12:13 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-27 13:24:10 +02:00
"id" : 639 ,
2018-05-10 13:12:13 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-27 13:24:10 +02:00
"src" : "711:0:5"
2018-05-10 13:12:13 +02:00
} ,
2018-05-27 13:24:10 +02:00
"scope" : 652 ,
"src" : "626:208:5" ,
2018-05-10 13:12:13 +02:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-05-27 13:24:10 +02:00
"scope" : 653 ,
"src" : "203:633:5"
2018-05-10 13:12:13 +02:00
}
] ,
2018-05-27 13:24:10 +02:00
"src" : "0:837:5"
2018-05-10 13:12:13 +02:00
} ,
"compiler" : {
"name" : "solc" ,
2018-05-27 13:24:10 +02:00
"version" : "0.4.24+commit.e67f0147.Emscripten.clang"
2018-05-10 13:12:13 +02:00
} ,
"networks" : { } ,
"schemaVersion" : "2.0.0" ,
2018-05-27 13:24:10 +02:00
"updatedAt" : "2018-05-27T11:12:45.579Z"
2018-05-10 13:12:13 +02:00
}