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

674 lines
25 KiB
JSON
Raw Normal View History

2018-05-10 11:12:13 +00:00
{
"contractName": "MasterCopy",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_masterCopy",
"type": "address"
}
],
"name": "changeMasterCopy",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610158806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100c357600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141515156100e957600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582073cd5ab8858f9d67e5e09748f71ecf939357d0d1230776e9f935b1ef5d664eb00029",
"deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100c357600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141515156100e957600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582073cd5ab8858f9d67e5e09748f71ecf939357d0d1230776e9f935b1ef5d664eb00029",
2018-05-16 13:46:33 +00:00
"sourceMap": "203:633:4:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;203:633:4;;;;;;;",
"deployedSourceMap": "203:633:4:-;;;;;;;;;;;;;;;;;;;;;;;;626:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:208:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;244:4:8;222:27;;:10;:27;;;214:36;;;;;;;;791:1:4;776:11;:16;;;;768:25;;;;;;;;816:11;803:10;;:24;;;;;;;;;;;;;;;;;;626:208;:::o",
2018-05-10 11:12:13 +00:00
"source": "pragma solidity 0.4.23;\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",
"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-16 13:46:33 +00:00
580
2018-05-10 11:12:13 +00:00
]
},
2018-05-16 13:46:33 +00:00
"id": 581,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-16 13:46:33 +00:00
"id": 556,
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:4"
2018-05-10 11:12:13 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol",
"file": "./SelfAuthorized.sol",
2018-05-16 13:46:33 +00:00
"id": 557,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 581,
"sourceUnit": 1360,
"src": "24:30:4",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-16 13:46:33 +00:00
"id": 558,
2018-05-10 11:12:13 +00:00
"name": "SelfAuthorized",
"nodeType": "UserDefinedTypeName",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1359,
"src": "226:14:4",
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"
}
},
2018-05-16 13:46:33 +00:00
"id": 559,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-16 13:46:33 +00:00
"src": "226:14:4"
2018-05-10 11:12:13 +00:00
}
],
"contractDependencies": [
2018-05-16 13:46:33 +00:00
1359
2018-05-10 11:12:13 +00: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-16 13:46:33 +00:00
"id": 580,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
2018-05-16 13:46:33 +00:00
580,
1359
2018-05-10 11:12:13 +00:00
],
"name": "MasterCopy",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 561,
2018-05-10 11:12:13 +00:00
"name": "masterCopy",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 580,
"src": "465:18:4",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 560,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "465:7:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 578,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "711:123:4",
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": 571,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 569,
2018-05-10 11:12:13 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 563,
"src": "776:11:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 570,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "791:1:4",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-16 13:46:33 +00:00
"src": "776:16:4",
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": 568,
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": "768:7:4",
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": 572,
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": "768:25:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 573,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "768:25:4"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 576,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 574,
2018-05-10 11:12:13 +00:00
"name": "masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 561,
"src": "803:10:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 575,
2018-05-10 11:12:13 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 563,
"src": "816:11:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"src": "803:24:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"id": 577,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "803:24:4"
2018-05-10 11:12:13 +00: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-16 13:46:33 +00:00
"id": 579,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-05-16 13:46:33 +00:00
"id": 566,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 565,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1358,
"src": "696:10:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-05-16 13:46:33 +00:00
"src": "696:10:4"
2018-05-10 11:12:13 +00:00
}
],
"name": "changeMasterCopy",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 564,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 563,
2018-05-10 11:12:13 +00:00
"name": "_masterCopy",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 579,
"src": "652:19:4",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 562,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "652:7:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "651:21:4"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 567,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "711:0:4"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 580,
"src": "626:208:4",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-16 13:46:33 +00:00
"scope": 581,
"src": "203:633:4"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"src": "0:837:4"
2018-05-10 11:12:13 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"exportedSymbols": {
"MasterCopy": [
2018-05-16 13:46:33 +00:00
580
2018-05-10 11:12:13 +00:00
]
},
2018-05-16 13:46:33 +00:00
"id": 581,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-16 13:46:33 +00:00
"id": 556,
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:4"
2018-05-10 11:12:13 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol",
"file": "./SelfAuthorized.sol",
2018-05-16 13:46:33 +00:00
"id": 557,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 581,
"sourceUnit": 1360,
"src": "24:30:4",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-16 13:46:33 +00:00
"id": 558,
2018-05-10 11:12:13 +00:00
"name": "SelfAuthorized",
"nodeType": "UserDefinedTypeName",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1359,
"src": "226:14:4",
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"
}
},
2018-05-16 13:46:33 +00:00
"id": 559,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-16 13:46:33 +00:00
"src": "226:14:4"
2018-05-10 11:12:13 +00:00
}
],
"contractDependencies": [
2018-05-16 13:46:33 +00:00
1359
2018-05-10 11:12:13 +00: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-16 13:46:33 +00:00
"id": 580,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
2018-05-16 13:46:33 +00:00
580,
1359
2018-05-10 11:12:13 +00:00
],
"name": "MasterCopy",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 561,
2018-05-10 11:12:13 +00:00
"name": "masterCopy",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 580,
"src": "465:18:4",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 560,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "465:7:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 578,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "711:123:4",
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": 571,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 569,
2018-05-10 11:12:13 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 563,
"src": "776:11:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 570,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "791:1:4",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-16 13:46:33 +00:00
"src": "776:16:4",
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": 568,
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": "768:7:4",
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": 572,
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": "768:25:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 573,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "768:25:4"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 576,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 574,
2018-05-10 11:12:13 +00:00
"name": "masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 561,
"src": "803:10:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 575,
2018-05-10 11:12:13 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 563,
"src": "816:11:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"src": "803:24:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"id": 577,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "803:24:4"
2018-05-10 11:12:13 +00: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-16 13:46:33 +00:00
"id": 579,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-05-16 13:46:33 +00:00
"id": 566,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 565,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1358,
"src": "696:10:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-05-16 13:46:33 +00:00
"src": "696:10:4"
2018-05-10 11:12:13 +00:00
}
],
"name": "changeMasterCopy",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 564,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 563,
2018-05-10 11:12:13 +00:00
"name": "_masterCopy",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 579,
"src": "652:19:4",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 562,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "652:7:4",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "651:21:4"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 567,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "711:0:4"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 580,
"src": "626:208:4",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-16 13:46:33 +00:00
"scope": 581,
"src": "203:633:4"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"src": "0:837:4"
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.746Z"
2018-05-10 11:12:13 +00:00
}