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

1018 lines
43 KiB
JSON
Raw Normal View History

2018-05-04 14:04:04 +00:00
{
"contractName": "ProxyFactory",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proxy",
"type": "address"
}
],
"name": "ProxyCreation",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "masterCopy",
"type": "address"
},
{
"name": "data",
"type": "bytes"
}
],
"name": "createProxy",
"outputs": [
{
"name": "proxy",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
2018-05-10 11:12:13 +00:00
"bytecode": "0x608060405234801561001057600080fd5b5061044e806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806361b69abd14610046575b600080fd5b34801561005257600080fd5b506100cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061010f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008261011a6101fe565b808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050604051809103906000f08015801561016c573d6000803e3d6000fd5b5090506000825111156101955760008060008451602086016000865af1141561019457600080fd5b5b7fa38789425dbeee0239e16ff2d2567e31720127fbc6430758c1a4efc6aef29f8081604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a192915050565b6040516102148061020f833901905600608060405234801561001057600080fd5b506040516020806102148339810180604052810190808051906020019092919050505060008173ffffffffffffffffffffffffffffffffffffffff161415151561005957600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061016b806100a96000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a723058209594d3f13f6fbad0d5e33f423014061ae7898100636a8b854618092ea85c15e90029a165627a7a7230582048e6ac6bd11856ae7c073d3f3d327f3e04a2dff35dfbcf223c8a425cba2fa6a10029",
"deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806361b69abd14610046575b600080fd5b34801561005257600080fd5b506100cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061010f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008261011a6101fe565b808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050604051809103906000f08015801561016c573d6000803e3d6000fd5b5090506000825111156101955760008060008451602086016000865af1141561019457600080fd5b5b7fa38789425dbeee0239e16ff2d2567e31720127fbc6430758c1a4efc6aef29f8081604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a192915050565b6040516102148061020f833901905600608060405234801561001057600080fd5b506040516020806102148339810180604052810190808051906020019092919050505060008173ffffffffffffffffffffffffffffffffffffffff161415151561005957600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061016b806100a96000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a723058209594d3f13f6fbad0d5e33f423014061ae7898100636a8b854618092ea85c15e90029a165627a7a7230582048e6ac6bd11856ae7c073d3f3d327f3e04a2dff35dfbcf223c8a425cba2fa6a10029",
"sourceMap": "225:725:13:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;225:725:13;;;;;;;",
"deployedSourceMap": "225:725:13:-;;;;;;;;;;;;;;;;;;;;;;;;532:416;;8:9:-1;5:2;;;30:1;27;20:12;5:2;532:416:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;617:11;662:10;652:21;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;652:21:13;644:29;;701:1;687:4;:11;:15;683:237;;;874:1;870;867;860:4;854:11;847:4;841;837:15;834:1;827:5;822:3;817:55;814:62;811:2;;;889:1;886;879:12;811:2;793:114;921:20;935:5;921:20;;;;;;;;;;;;;;;;;;;;;;532:416;;;;:::o;225:725::-;;;;;;;;;;:::o",
"source": "pragma solidity 0.4.23;\nimport \"./Proxy.sol\";\n\n\n/// @title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract ProxyFactory {\n\n event ProxyCreation(Proxy proxy);\n\n /// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.\n /// @param masterCopy Address of master copy.\n /// @param data Payload for message call sent to new proxy contract.\n function createProxy(address masterCopy, bytes data)\n public\n returns (Proxy proxy)\n {\n proxy = new Proxy(masterCopy);\n if (data.length > 0)\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n if eq(call(gas, proxy, 0, add(data, 0x20), mload(data), 0, 0), 0) { revert(0, 0) }\n }\n emit ProxyCreation(proxy);\n }\n}\n",
2018-05-04 14:04:04 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ProxyFactory.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ProxyFactory.sol",
"exportedSymbols": {
"ProxyFactory": [
2018-05-10 11:12:13 +00:00
1543
2018-05-04 14:04:04 +00:00
]
},
2018-05-10 11:12:13 +00:00
"id": 1544,
2018-05-04 14:04:04 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-10 11:12:13 +00:00
"id": 1510,
2018-05-04 14:04:04 +00:00
"literals": [
"solidity",
"0.4",
2018-05-10 11:12:13 +00:00
".23"
2018-05-04 14:04:04 +00:00
],
"nodeType": "PragmaDirective",
2018-05-10 11:12:13 +00:00
"src": "0:23:13"
2018-05-04 14:04:04 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Proxy.sol",
"file": "./Proxy.sol",
2018-05-10 11:12:13 +00:00
"id": 1511,
2018-05-04 14:04:04 +00:00
"nodeType": "ImportDirective",
2018-05-10 11:12:13 +00:00
"scope": 1544,
"sourceUnit": 1509,
"src": "24:21:13",
2018-05-04 14:04:04 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [
2018-05-10 11:12:13 +00:00
1508
2018-05-04 14:04:04 +00:00
],
"contractKind": "contract",
"documentation": "@title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.\n @author Stefan George - <stefan@gnosis.pm>",
"fullyImplemented": true,
2018-05-10 11:12:13 +00:00
"id": 1543,
2018-05-04 14:04:04 +00:00
"linearizedBaseContracts": [
2018-05-10 11:12:13 +00:00
1543
2018-05-04 14:04:04 +00:00
],
"name": "ProxyFactory",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
2018-05-10 11:12:13 +00:00
"documentation": null,
"id": 1515,
2018-05-04 14:04:04 +00:00
"name": "ProxyCreation",
"nodeType": "EventDefinition",
"parameters": {
2018-05-10 11:12:13 +00:00
"id": 1514,
2018-05-04 14:04:04 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1513,
2018-05-04 14:04:04 +00:00
"indexed": false,
"name": "proxy",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1515,
"src": "274:11:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
},
"typeName": {
"contractScope": null,
2018-05-10 11:12:13 +00:00
"id": 1512,
2018-05-04 14:04:04 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1508,
"src": "274:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-10 11:12:13 +00:00
"src": "273:13:13"
2018-05-04 14:04:04 +00:00
},
2018-05-10 11:12:13 +00:00
"src": "254:33:13"
2018-05-04 14:04:04 +00:00
},
{
"body": {
2018-05-10 11:12:13 +00:00
"id": 1541,
2018-05-04 14:04:04 +00:00
"nodeType": "Block",
2018-05-10 11:12:13 +00:00
"src": "634:314:13",
2018-05-04 14:04:04 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1529,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1524,
2018-05-04 14:04:04 +00:00
"name": "proxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1522,
"src": "644:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1527,
2018-05-04 14:04:04 +00:00
"name": "masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1517,
"src": "662:10:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-05-10 11:12:13 +00:00
"id": 1526,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "NewExpression",
2018-05-10 11:12:13 +00:00
"src": "652:9:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_function_creation_nonpayable$_t_address_$returns$_t_contract$_Proxy_$1508_$",
2018-05-04 14:04:04 +00:00
"typeString": "function (address) returns (contract Proxy)"
},
"typeName": {
"contractScope": null,
2018-05-10 11:12:13 +00:00
"id": 1525,
2018-05-04 14:04:04 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1508,
"src": "656:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
}
},
2018-05-10 11:12:13 +00:00
"id": 1528,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-10 11:12:13 +00:00
"src": "652:21:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
2018-05-10 11:12:13 +00:00
"src": "644:29:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
2018-05-10 11:12:13 +00:00
"id": 1530,
2018-05-04 14:04:04 +00:00
"nodeType": "ExpressionStatement",
2018-05-10 11:12:13 +00:00
"src": "644:29:13"
2018-05-04 14:04:04 +00:00
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-10 11:12:13 +00:00
"id": 1534,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1531,
2018-05-04 14:04:04 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1519,
"src": "687:4:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
2018-05-10 11:12:13 +00:00
"id": 1532,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-10 11:12:13 +00:00
"src": "687:11:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-10 11:12:13 +00:00
"id": 1533,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-10 11:12:13 +00:00
"src": "701:1:13",
2018-05-04 14:04:04 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-10 11:12:13 +00:00
"src": "687:15:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
2018-05-10 11:12:13 +00:00
"id": 1536,
2018-05-04 14:04:04 +00:00
"nodeType": "IfStatement",
2018-05-10 11:12:13 +00:00
"src": "683:237:13",
2018-05-04 14:04:04 +00:00
"trueBody": {
"externalReferences": [
{
"data": {
2018-05-10 11:12:13 +00:00
"declaration": 1519,
2018-05-04 14:04:04 +00:00
"isOffset": false,
"isSlot": false,
2018-05-10 11:12:13 +00:00
"src": "860:4:13",
2018-05-04 14:04:04 +00:00
"valueSize": 1
}
},
{
2018-05-10 11:12:13 +00:00
"proxy": {
"declaration": 1522,
2018-05-04 14:04:04 +00:00
"isOffset": false,
"isSlot": false,
2018-05-10 11:12:13 +00:00
"src": "827:5:13",
2018-05-04 14:04:04 +00:00
"valueSize": 1
}
},
{
2018-05-10 11:12:13 +00:00
"data": {
"declaration": 1519,
2018-05-04 14:04:04 +00:00
"isOffset": false,
"isSlot": false,
2018-05-10 11:12:13 +00:00
"src": "841:4:13",
2018-05-04 14:04:04 +00:00
"valueSize": 1
}
}
],
2018-05-10 11:12:13 +00:00
"id": 1535,
2018-05-04 14:04:04 +00:00
"nodeType": "InlineAssembly",
2018-05-10 11:12:13 +00:00
"operations": "{\n if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0)\n {\n revert(0, 0)\n }\n}",
"src": "784:136:13"
2018-05-04 14:04:04 +00:00
}
},
{
2018-05-10 11:12:13 +00:00
"eventCall": {
2018-05-04 14:04:04 +00:00
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1538,
2018-05-04 14:04:04 +00:00
"name": "proxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1522,
"src": "935:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
],
2018-05-10 11:12:13 +00:00
"id": 1537,
2018-05-04 14:04:04 +00:00
"name": "ProxyCreation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1515,
"src": "921:13:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_function_event_nonpayable$_t_contract$_Proxy_$1508_$returns$__$",
2018-05-04 14:04:04 +00:00
"typeString": "function (contract Proxy)"
}
},
2018-05-10 11:12:13 +00:00
"id": 1539,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-10 11:12:13 +00:00
"src": "921:20:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-10 11:12:13 +00:00
"id": 1540,
"nodeType": "EmitStatement",
"src": "916:25:13"
2018-05-04 14:04:04 +00:00
}
]
},
2018-05-10 11:12:13 +00:00
"documentation": "@dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.\n @param masterCopy Address of master copy.\n @param data Payload for message call sent to new proxy contract.",
"id": 1542,
2018-05-04 14:04:04 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createProxy",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-10 11:12:13 +00:00
"id": 1520,
2018-05-04 14:04:04 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1517,
2018-05-04 14:04:04 +00:00
"name": "masterCopy",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1542,
"src": "553:18:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-10 11:12:13 +00:00
"id": 1516,
2018-05-04 14:04:04 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-10 11:12:13 +00:00
"src": "553:7:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1519,
2018-05-04 14:04:04 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1542,
"src": "573:10:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
2018-05-10 11:12:13 +00:00
"typeString": "bytes"
2018-05-04 14:04:04 +00:00
},
"typeName": {
2018-05-10 11:12:13 +00:00
"id": 1518,
2018-05-04 14:04:04 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-10 11:12:13 +00:00
"src": "573:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
2018-05-10 11:12:13 +00:00
"typeString": "bytes"
2018-05-04 14:04:04 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-10 11:12:13 +00:00
"src": "552:32:13"
2018-05-04 14:04:04 +00:00
},
"payable": false,
"returnParameters": {
2018-05-10 11:12:13 +00:00
"id": 1523,
2018-05-04 14:04:04 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1522,
2018-05-04 14:04:04 +00:00
"name": "proxy",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1542,
"src": "617:11:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
},
"typeName": {
"contractScope": null,
2018-05-10 11:12:13 +00:00
"id": 1521,
2018-05-04 14:04:04 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1508,
"src": "617:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-10 11:12:13 +00:00
"src": "616:13:13"
2018-05-04 14:04:04 +00:00
},
2018-05-10 11:12:13 +00:00
"scope": 1543,
"src": "532:416:13",
2018-05-04 14:04:04 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-10 11:12:13 +00:00
"scope": 1544,
"src": "225:725:13"
2018-05-04 14:04:04 +00:00
}
],
2018-05-10 11:12:13 +00:00
"src": "0:951:13"
2018-05-04 14:04:04 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ProxyFactory.sol",
"exportedSymbols": {
"ProxyFactory": [
2018-05-10 11:12:13 +00:00
1543
2018-05-04 14:04:04 +00:00
]
},
2018-05-10 11:12:13 +00:00
"id": 1544,
2018-05-04 14:04:04 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-10 11:12:13 +00:00
"id": 1510,
2018-05-04 14:04:04 +00:00
"literals": [
"solidity",
"0.4",
2018-05-10 11:12:13 +00:00
".23"
2018-05-04 14:04:04 +00:00
],
"nodeType": "PragmaDirective",
2018-05-10 11:12:13 +00:00
"src": "0:23:13"
2018-05-04 14:04:04 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Proxy.sol",
"file": "./Proxy.sol",
2018-05-10 11:12:13 +00:00
"id": 1511,
2018-05-04 14:04:04 +00:00
"nodeType": "ImportDirective",
2018-05-10 11:12:13 +00:00
"scope": 1544,
"sourceUnit": 1509,
"src": "24:21:13",
2018-05-04 14:04:04 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [
2018-05-10 11:12:13 +00:00
1508
2018-05-04 14:04:04 +00:00
],
"contractKind": "contract",
"documentation": "@title Proxy Factory - Allows to create new proxy contact and execute a message call to the new proxy within one transaction.\n @author Stefan George - <stefan@gnosis.pm>",
"fullyImplemented": true,
2018-05-10 11:12:13 +00:00
"id": 1543,
2018-05-04 14:04:04 +00:00
"linearizedBaseContracts": [
2018-05-10 11:12:13 +00:00
1543
2018-05-04 14:04:04 +00:00
],
"name": "ProxyFactory",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
2018-05-10 11:12:13 +00:00
"documentation": null,
"id": 1515,
2018-05-04 14:04:04 +00:00
"name": "ProxyCreation",
"nodeType": "EventDefinition",
"parameters": {
2018-05-10 11:12:13 +00:00
"id": 1514,
2018-05-04 14:04:04 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1513,
2018-05-04 14:04:04 +00:00
"indexed": false,
"name": "proxy",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1515,
"src": "274:11:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
},
"typeName": {
"contractScope": null,
2018-05-10 11:12:13 +00:00
"id": 1512,
2018-05-04 14:04:04 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1508,
"src": "274:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-10 11:12:13 +00:00
"src": "273:13:13"
2018-05-04 14:04:04 +00:00
},
2018-05-10 11:12:13 +00:00
"src": "254:33:13"
2018-05-04 14:04:04 +00:00
},
{
"body": {
2018-05-10 11:12:13 +00:00
"id": 1541,
2018-05-04 14:04:04 +00:00
"nodeType": "Block",
2018-05-10 11:12:13 +00:00
"src": "634:314:13",
2018-05-04 14:04:04 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1529,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1524,
2018-05-04 14:04:04 +00:00
"name": "proxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1522,
"src": "644:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1527,
2018-05-04 14:04:04 +00:00
"name": "masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1517,
"src": "662:10:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-05-10 11:12:13 +00:00
"id": 1526,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "NewExpression",
2018-05-10 11:12:13 +00:00
"src": "652:9:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_function_creation_nonpayable$_t_address_$returns$_t_contract$_Proxy_$1508_$",
2018-05-04 14:04:04 +00:00
"typeString": "function (address) returns (contract Proxy)"
},
"typeName": {
"contractScope": null,
2018-05-10 11:12:13 +00:00
"id": 1525,
2018-05-04 14:04:04 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1508,
"src": "656:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
}
},
2018-05-10 11:12:13 +00:00
"id": 1528,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-10 11:12:13 +00:00
"src": "652:21:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
2018-05-10 11:12:13 +00:00
"src": "644:29:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
2018-05-10 11:12:13 +00:00
"id": 1530,
2018-05-04 14:04:04 +00:00
"nodeType": "ExpressionStatement",
2018-05-10 11:12:13 +00:00
"src": "644:29:13"
2018-05-04 14:04:04 +00:00
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-10 11:12:13 +00:00
"id": 1534,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1531,
2018-05-04 14:04:04 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1519,
"src": "687:4:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
2018-05-10 11:12:13 +00:00
"id": 1532,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-10 11:12:13 +00:00
"src": "687:11:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-10 11:12:13 +00:00
"id": 1533,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-10 11:12:13 +00:00
"src": "701:1:13",
2018-05-04 14:04:04 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-10 11:12:13 +00:00
"src": "687:15:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
2018-05-10 11:12:13 +00:00
"id": 1536,
2018-05-04 14:04:04 +00:00
"nodeType": "IfStatement",
2018-05-10 11:12:13 +00:00
"src": "683:237:13",
2018-05-04 14:04:04 +00:00
"trueBody": {
"externalReferences": [
{
"data": {
2018-05-10 11:12:13 +00:00
"declaration": 1519,
2018-05-04 14:04:04 +00:00
"isOffset": false,
"isSlot": false,
2018-05-10 11:12:13 +00:00
"src": "860:4:13",
2018-05-04 14:04:04 +00:00
"valueSize": 1
}
},
{
2018-05-10 11:12:13 +00:00
"proxy": {
"declaration": 1522,
2018-05-04 14:04:04 +00:00
"isOffset": false,
"isSlot": false,
2018-05-10 11:12:13 +00:00
"src": "827:5:13",
2018-05-04 14:04:04 +00:00
"valueSize": 1
}
},
{
2018-05-10 11:12:13 +00:00
"data": {
"declaration": 1519,
2018-05-04 14:04:04 +00:00
"isOffset": false,
"isSlot": false,
2018-05-10 11:12:13 +00:00
"src": "841:4:13",
2018-05-04 14:04:04 +00:00
"valueSize": 1
}
}
],
2018-05-10 11:12:13 +00:00
"id": 1535,
2018-05-04 14:04:04 +00:00
"nodeType": "InlineAssembly",
2018-05-10 11:12:13 +00:00
"operations": "{\n if eq(call(gas(), proxy, 0, add(data, 0x20), mload(data), 0, 0), 0)\n {\n revert(0, 0)\n }\n}",
"src": "784:136:13"
2018-05-04 14:04:04 +00:00
}
},
{
2018-05-10 11:12:13 +00:00
"eventCall": {
2018-05-04 14:04:04 +00:00
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-10 11:12:13 +00:00
"id": 1538,
2018-05-04 14:04:04 +00:00
"name": "proxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1522,
"src": "935:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
],
2018-05-10 11:12:13 +00:00
"id": 1537,
2018-05-04 14:04:04 +00:00
"name": "ProxyCreation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1515,
"src": "921:13:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_function_event_nonpayable$_t_contract$_Proxy_$1508_$returns$__$",
2018-05-04 14:04:04 +00:00
"typeString": "function (contract Proxy)"
}
},
2018-05-10 11:12:13 +00:00
"id": 1539,
2018-05-04 14:04:04 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-10 11:12:13 +00:00
"src": "921:20:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-10 11:12:13 +00:00
"id": 1540,
"nodeType": "EmitStatement",
"src": "916:25:13"
2018-05-04 14:04:04 +00:00
}
]
},
2018-05-10 11:12:13 +00:00
"documentation": "@dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction.\n @param masterCopy Address of master copy.\n @param data Payload for message call sent to new proxy contract.",
"id": 1542,
2018-05-04 14:04:04 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createProxy",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-10 11:12:13 +00:00
"id": 1520,
2018-05-04 14:04:04 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1517,
2018-05-04 14:04:04 +00:00
"name": "masterCopy",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1542,
"src": "553:18:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-10 11:12:13 +00:00
"id": 1516,
2018-05-04 14:04:04 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-10 11:12:13 +00:00
"src": "553:7:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1519,
2018-05-04 14:04:04 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1542,
"src": "573:10:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
2018-05-10 11:12:13 +00:00
"typeString": "bytes"
2018-05-04 14:04:04 +00:00
},
"typeName": {
2018-05-10 11:12:13 +00:00
"id": 1518,
2018-05-04 14:04:04 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-10 11:12:13 +00:00
"src": "573:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
2018-05-10 11:12:13 +00:00
"typeString": "bytes"
2018-05-04 14:04:04 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-10 11:12:13 +00:00
"src": "552:32:13"
2018-05-04 14:04:04 +00:00
},
"payable": false,
"returnParameters": {
2018-05-10 11:12:13 +00:00
"id": 1523,
2018-05-04 14:04:04 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-10 11:12:13 +00:00
"id": 1522,
2018-05-04 14:04:04 +00:00
"name": "proxy",
"nodeType": "VariableDeclaration",
2018-05-10 11:12:13 +00:00
"scope": 1542,
"src": "617:11:13",
2018-05-04 14:04:04 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
},
"typeName": {
"contractScope": null,
2018-05-10 11:12:13 +00:00
"id": 1521,
2018-05-04 14:04:04 +00:00
"name": "Proxy",
"nodeType": "UserDefinedTypeName",
2018-05-10 11:12:13 +00:00
"referencedDeclaration": 1508,
"src": "617:5:13",
2018-05-04 14:04:04 +00:00
"typeDescriptions": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_contract$_Proxy_$1508",
2018-05-04 14:04:04 +00:00
"typeString": "contract Proxy"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-10 11:12:13 +00:00
"src": "616:13:13"
2018-05-04 14:04:04 +00:00
},
2018-05-10 11:12:13 +00:00
"scope": 1543,
"src": "532:416:13",
2018-05-04 14:04:04 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-10 11:12:13 +00:00
"scope": 1544,
"src": "225:725:13"
2018-05-04 14:04:04 +00:00
}
],
2018-05-10 11:12:13 +00:00
"src": "0:951:13"
2018-05-04 14:04:04 +00:00
},
"compiler": {
"name": "solc",
2018-05-10 11:12:13 +00:00
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
2018-05-04 14:04:04 +00:00
},
"networks": {
"4": {
"events": {},
"links": {},
2018-05-16 13:46:33 +00:00
"address": "0xf11c9ac85e73435180707156748ecbaf4efc035b",
"transactionHash": "0xf8c48bc1ea023ab15194af47f50d2c8eaeb3d7b9dd13e7325e892e92743c2979"
},
2018-05-10 11:12:13 +00:00
"1525950336085": {
"events": {},
"links": {},
2018-05-10 11:12:13 +00:00
"address": "0x7686eac12d94e3c0bdfe0a00ec759f89fbd115f7",
"transactionHash": "0x5b47c779cfd719a97f218a56d99b64b2c5b382549f3375822d5afed010cdb9c5"
2018-05-14 07:48:41 +00:00
},
"1526283540628": {
"events": {},
"links": {},
"address": "0x321151783f8dfb4699370d1bd5cee4e82bc3b52a",
"transactionHash": "0x5b47c779cfd719a97f218a56d99b64b2c5b382549f3375822d5afed010cdb9c5"
2018-05-16 13:46:33 +00:00
},
"1526478212260": {
"events": {},
"links": {},
"address": "0xf7f9b14921d4723eae3a8b29784c100301f6d8b8",
"transactionHash": "0x5b47c779cfd719a97f218a56d99b64b2c5b382549f3375822d5afed010cdb9c5"
2018-05-04 14:04:04 +00:00
}
},
"schemaVersion": "2.0.0",
2018-05-16 13:46:33 +00:00
"updatedAt": "2018-05-16T13:45:24.507Z"
2018-05-04 14:04:04 +00:00
}