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

666 lines
28 KiB
JSON
Raw Normal View History

2018-05-31 13:01:02 +00:00
{
"contractName": "DelegateConstructorProxy",
"abi": [
{
"constant": true,
"inputs": [],
"name": "proxyType",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "implementation",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_masterCopy",
"type": "address"
},
{
"name": "initializer",
"type": "bytes"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
}
],
2018-09-26 09:19:53 +00:00
"bytecode": "0x608060405234801561001057600080fd5b506040516102fc3803806102fc83398101806040528101908080519060200190929190805182019291905050508160008173ffffffffffffffffffffffffffffffffffffffff16141515156100f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000815111156101805773ffffffffffffffffffffffffffffffffffffffff60005416600080835160208501846127105a03f46040513d6000823e600082141561017c573d81fd5b5050505b505061016b806101916000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820b2de5726e0943c0fae0f20300b651ccee9090eab24beaf21fd7dbc55f5eef5970029",
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820b2de5726e0943c0fae0f20300b651ccee9090eab24beaf21fd7dbc55f5eef5970029",
"sourceMap": "355:882:21:-;;;610:625;8:9:-1;5:2;;;30:1;27;20:12;5:2;610:625:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;668:11;593:1:23;578:11;:16;;;;570:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;658:11;645:10;;:24;;;;;;;;;;;;;;;;;;508:168;735:1:21;714:11;:18;:22;710:519;;;879:42;875:1;869:8;865:57;1043:1;1040;1026:11;1020:18;1013:4;1000:11;996:22;984:10;976:5;971:3;967:15;954:91;1079:4;1073:11;1124:14;1121:1;1116:3;1101:38;1171:1;1162:7;1159:14;1156:2;;;1188:14;1183:3;1176:27;1156:2;829:390;;;;610:625;;355:882;;;;;;",
"deployedSourceMap": "355:882:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;955:42:23;951:1;945:8;941:57;1030:14;1027:1;1024;1011:34;1125:1;1122;1106:14;1103:1;1091:10;1086:3;1073:54;1161:16;1158:1;1155;1140:38;1206:1;1197:7;1194:14;1191:2;;;1221:16;1218:1;1211:27;1191:2;1263:16;1260:1;1253:27;1426:104;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1426:104:23;;;;;;;;;;;;;;;;;;;;;;;1302:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1302:118:23;;;;;;;;;;;;;;;;;;;;;;;;;;;1426:104;1492:7;1522:1;1515:8;;1426:104;:::o;1302:118::-;1373:7;1403:10;;;;;;;;;;;1396:17;;1302:118;:::o",
2018-05-31 13:01:02 +00:00
"source": "pragma solidity 0.4.24;\nimport \"./Proxy.sol\";\n\n\n/// @title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract DelegateConstructorProxy is Proxy {\n\n /// @dev Constructor function sets address of master copy contract.\n /// @param _masterCopy Master copy address.\n /// @param initializer Data used for a delegate call to initialize the contract.\n constructor(address _masterCopy, bytes initializer) Proxy(_masterCopy)\n public\n {\n if (initializer.length > 0) {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas, 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize)\n if eq(success, 0) { revert(ptr, returndatasize) }\n }\n }\n }\n}\n",
2018-09-26 09:19:53 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/DelegateConstructorProxy.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/proxies/DelegateConstructorProxy.sol",
2018-05-31 13:01:02 +00:00
"exportedSymbols": {
"DelegateConstructorProxy": [
2018-09-26 09:19:53 +00:00
2740
2018-05-31 13:01:02 +00:00
]
},
2018-09-26 09:19:53 +00:00
"id": 2741,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 2718,
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:21"
2018-05-31 13:01:02 +00:00
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/Proxy.sol",
2018-05-31 13:01:02 +00:00
"file": "./Proxy.sol",
2018-09-26 09:19:53 +00:00
"id": 2719,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2741,
"sourceUnit": 2841,
"src": "24:21:21",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2720,
2018-05-31 13:01:02 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2840,
"src": "392:5:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_Proxy_$2840",
2018-05-31 13:01:02 +00:00
"typeString": "contract Proxy"
}
},
2018-09-26 09:19:53 +00:00
"id": 2721,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "392:5:21"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
2018-09-26 09:19:53 +00:00
2840
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 2740,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
2740,
2840
2018-05-31 13:01:02 +00:00
],
"name": "DelegateConstructorProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2738,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "700:535:21",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 2734,
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": 2731,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2725,
"src": "714:11:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
2018-09-26 09:19:53 +00:00
"id": 2732,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "714:18:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2733,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "735:1:21",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "714:22:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
2018-09-26 09:19:53 +00:00
"id": 2737,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
2018-09-26 09:19:53 +00:00
"src": "710:519:21",
2018-05-31 13:01:02 +00:00
"trueBody": {
2018-09-26 09:19:53 +00:00
"id": 2736,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "738:491:21",
2018-05-31 13:01:02 +00:00
"statements": [
{
"externalReferences": [
{
"initializer": {
2018-09-26 09:19:53 +00:00
"declaration": 2725,
2018-05-31 13:01:02 +00:00
"isOffset": false,
"isSlot": false,
2018-09-26 09:19:53 +00:00
"src": "1026:11:21",
2018-05-31 13:01:02 +00:00
"valueSize": 1
}
},
{
"initializer": {
2018-09-26 09:19:53 +00:00
"declaration": 2725,
2018-05-31 13:01:02 +00:00
"isOffset": false,
"isSlot": false,
2018-09-26 09:19:53 +00:00
"src": "1000:11:21",
2018-05-31 13:01:02 +00:00
"valueSize": 1
}
}
],
2018-09-26 09:19:53 +00:00
"id": 2735,
2018-05-31 13:01:02 +00:00
"nodeType": "InlineAssembly",
"operations": "{\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas(), 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n if eq(success, 0)\n {\n revert(ptr, returndatasize())\n }\n}",
2018-09-26 09:19:53 +00:00
"src": "820:409:21"
2018-05-31 13:01:02 +00:00
}
]
}
}
]
},
"documentation": "@dev Constructor function sets address of master copy contract.\n @param _masterCopy Master copy address.\n @param initializer Data used for a delegate call to initialize the contract.",
2018-09-26 09:19:53 +00:00
"id": 2739,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2728,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2723,
"src": "668:11:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
2018-09-26 09:19:53 +00:00
"id": 2729,
2018-05-31 13:01:02 +00:00
"modifierName": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2727,
2018-05-31 13:01:02 +00:00
"name": "Proxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2840,
"src": "662:5:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_Proxy_$2840_$",
2018-05-31 13:01:02 +00:00
"typeString": "type(contract Proxy)"
}
},
"nodeType": "ModifierInvocation",
2018-09-26 09:19:53 +00:00
"src": "662:18:21"
2018-05-31 13:01:02 +00:00
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2726,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2723,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2739,
"src": "622:19:21",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2722,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "622:7:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2725,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2739,
"src": "643:17:21",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2724,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "643:5:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "621:40:21"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2730,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "700:0:21"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2740,
"src": "610:625:21",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 2741,
"src": "355:882:21"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"src": "0:1238:21"
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/proxies/DelegateConstructorProxy.sol",
2018-05-31 13:01:02 +00:00
"exportedSymbols": {
"DelegateConstructorProxy": [
2018-09-26 09:19:53 +00:00
2740
2018-05-31 13:01:02 +00:00
]
},
2018-09-26 09:19:53 +00:00
"id": 2741,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 2718,
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:21"
2018-05-31 13:01:02 +00:00
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/Proxy.sol",
2018-05-31 13:01:02 +00:00
"file": "./Proxy.sol",
2018-09-26 09:19:53 +00:00
"id": 2719,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2741,
"sourceUnit": 2841,
"src": "24:21:21",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2720,
2018-05-31 13:01:02 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2840,
"src": "392:5:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_Proxy_$2840",
2018-05-31 13:01:02 +00:00
"typeString": "contract Proxy"
}
},
2018-09-26 09:19:53 +00:00
"id": 2721,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "392:5:21"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
2018-09-26 09:19:53 +00:00
2840
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 2740,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
2740,
2840
2018-05-31 13:01:02 +00:00
],
"name": "DelegateConstructorProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2738,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "700:535:21",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 2734,
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": 2731,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2725,
"src": "714:11:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
2018-09-26 09:19:53 +00:00
"id": 2732,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "714:18:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2733,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "735:1:21",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "714:22:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
2018-09-26 09:19:53 +00:00
"id": 2737,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
2018-09-26 09:19:53 +00:00
"src": "710:519:21",
2018-05-31 13:01:02 +00:00
"trueBody": {
2018-09-26 09:19:53 +00:00
"id": 2736,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "738:491:21",
2018-05-31 13:01:02 +00:00
"statements": [
{
"externalReferences": [
{
"initializer": {
2018-09-26 09:19:53 +00:00
"declaration": 2725,
2018-05-31 13:01:02 +00:00
"isOffset": false,
"isSlot": false,
2018-09-26 09:19:53 +00:00
"src": "1026:11:21",
2018-05-31 13:01:02 +00:00
"valueSize": 1
}
},
{
"initializer": {
2018-09-26 09:19:53 +00:00
"declaration": 2725,
2018-05-31 13:01:02 +00:00
"isOffset": false,
"isSlot": false,
2018-09-26 09:19:53 +00:00
"src": "1000:11:21",
2018-05-31 13:01:02 +00:00
"valueSize": 1
}
}
],
2018-09-26 09:19:53 +00:00
"id": 2735,
2018-05-31 13:01:02 +00:00
"nodeType": "InlineAssembly",
"operations": "{\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas(), 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n if eq(success, 0)\n {\n revert(ptr, returndatasize())\n }\n}",
2018-09-26 09:19:53 +00:00
"src": "820:409:21"
2018-05-31 13:01:02 +00:00
}
]
}
}
]
},
"documentation": "@dev Constructor function sets address of master copy contract.\n @param _masterCopy Master copy address.\n @param initializer Data used for a delegate call to initialize the contract.",
2018-09-26 09:19:53 +00:00
"id": 2739,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2728,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2723,
"src": "668:11:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
2018-09-26 09:19:53 +00:00
"id": 2729,
2018-05-31 13:01:02 +00:00
"modifierName": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2727,
2018-05-31 13:01:02 +00:00
"name": "Proxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2840,
"src": "662:5:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_Proxy_$2840_$",
2018-05-31 13:01:02 +00:00
"typeString": "type(contract Proxy)"
}
},
"nodeType": "ModifierInvocation",
2018-09-26 09:19:53 +00:00
"src": "662:18:21"
2018-05-31 13:01:02 +00:00
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2726,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2723,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2739,
"src": "622:19:21",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2722,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "622:7:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2725,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2739,
"src": "643:17:21",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2724,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "643:5:21",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "621:40:21"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2730,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "700:0:21"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2740,
"src": "610:625:21",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 2741,
"src": "355:882:21"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"src": "0:1238:21"
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-09-26 09:19:53 +00:00
"updatedAt": "2018-09-26T08:32:07.650Z"
2018-05-31 13:01:02 +00:00
}