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

1277 lines
54 KiB
JSON
Raw Normal View History

2018-05-16 13:46:33 +00:00
{
"contractName": "CreateAndAddModules",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "module",
"type": "address"
}
],
"name": "enableModule",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "proxyFactory",
"type": "address"
},
{
"name": "data",
"type": "bytes"
}
],
"name": "createAndAddModules",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
2018-05-27 11:24:10 +00:00
"bytecode": "0x608060405234801561001057600080fd5b50610275806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360df7f5814610051578063610b5925146100da575b600080fd5b34801561005d57600080fd5b506100d8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061011d565b005b3480156100e657600080fd5b5061011b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610244565b005b600080600083519250600090505b8281101561023d5780840160200151818501604001604051600060208285858c5af4141561015857600080fd5b73ffffffffffffffffffffffffffffffffffffffff8151169450602080601f85010402602001840193505050503073ffffffffffffffffffffffffffffffffffffffff1663610b5925836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561022057600080fd5b505af1158015610234573d6000803e3d6000fd5b5050505061012b565b5050505050565b600080fd00a165627a7a723058208f7a97e938c15e3356168d53d19c7667249d0a3b35454b33fa8a258c0655d6ce0029",
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360df7f5814610051578063610b5925146100da575b600080fd5b34801561005d57600080fd5b506100d8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061011d565b005b3480156100e657600080fd5b5061011b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610244565b005b600080600083519250600090505b8281101561023d5780840160200151818501604001604051600060208285858c5af4141561015857600080fd5b73ffffffffffffffffffffffffffffffffffffffff8151169450602080601f85010402602001840193505050503073ffffffffffffffffffffffffffffffffffffffff1663610b5925836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561022057600080fd5b505af1158015610234573d6000803e3d6000fd5b5050505061012b565b5050505050565b600080fd00a165627a7a723058208f7a97e938c15e3356168d53d19c7667249d0a3b35454b33fa8a258c0655d6ce0029",
"sourceMap": "245:1457:15:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;245:1457:15;;;;;;;",
"deployedSourceMap": "245:1457:15:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;815:885;;8:9:-1;5:2;;;30:1;27;20:12;5:2;815:885:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;405:81;;8:9:-1;5:2;;;30:1;27;20:12;5:2;405:81:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;815:885;907:14;945:13;968:9;924:4;:11;907:28;;980:1;968:13;;991:703;1002:6;998:1;:10;991:703;;;1170:1;1164:4;1160:12;1154:4;1150:23;1144:30;1230:1;1224:4;1220:12;1214:4;1210:23;1271:4;1265:11;1378:1;1371:4;1363:6;1344:17;1331:11;1317:12;1312:3;1299:77;1296:84;1293:2;;;1393:1;1390;1383:12;1293:2;1443:42;1434:6;1428:13;1424:62;1414:72;;1624:4;1617;1610;1591:17;1587:28;1583:39;1579:50;1573:4;1569:61;1566:1;1562:69;1557:74;;1101:544;;;1658:4;:17;;;1676:6;1658:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1658:25:15;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1658:25:15;;;;991:703;;;815:885;;;;;:::o;405:81::-;471:8;;",
"source": "pragma solidity 0.4.24;\nimport \"../Module.sol\";\n\n\n/// @title Create and Add Modules - Allows to create and add multiple module in one transaction.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract CreateAndAddModules {\n\n /// @dev Function required to compile contract. Gnosis Safe function is called instead.\n /// @param module Not used.\n function enableModule(Module module)\n public\n {\n revert();\n }\n\n /// @dev Allows to create and add multiple module in one transaction.\n /// @param proxyFactory Module proxy factory contract.\n /// @param data Modules constructor payload. This is the data for each proxy factory call concatinated. (e.g. <byte_array_len_1><byte_array_data_1><byte_array_len_2><byte_array_data_2>)\n function createAndAddModules(address proxyFactory, bytes data)\n public\n {\n uint256 length = data.length;\n Module module;\n uint256 i = 0;\n while (i < length) {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let createBytesLength := mload(add(0x20, add(data, i)))\n let createBytes := add(0x40, add(data, i))\n\n let output := mload(0x40)\n if eq(delegatecall(gas, proxyFactory, createBytes, createBytesLength, output, 0x20), 0) { revert(0, 0) }\n module := and(mload(output), 0xffffffffffffffffffffffffffffffffffffffff)\n\n // Data is always padded to 32 bytes\n i := add(i, add(0x20, mul(div(add(createBytesLength, 0x1f), 0x20), 0x20)))\n }\n this.enableModule(module);\n }\n }\n}\n",
2018-05-16 13:46:33 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/CreateAndAddModules.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/CreateAndAddModules.sol",
"exportedSymbols": {
"CreateAndAddModules": [
2018-05-27 11:24:10 +00:00
1730
2018-05-16 13:46:33 +00:00
]
},
2018-05-27 11:24:10 +00:00
"id": 1731,
2018-05-16 13:46:33 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-27 11:24:10 +00:00
"id": 1687,
2018-05-16 13:46:33 +00:00
"literals": [
"solidity",
"0.4",
2018-05-27 11:24:10 +00:00
".24"
2018-05-16 13:46:33 +00:00
],
"nodeType": "PragmaDirective",
2018-05-27 11:24:10 +00:00
"src": "0:23:15"
2018-05-16 13:46:33 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol",
"file": "../Module.sol",
2018-05-27 11:24:10 +00:00
"id": 1688,
2018-05-16 13:46:33 +00:00
"nodeType": "ImportDirective",
2018-05-27 11:24:10 +00:00
"scope": 1731,
"sourceUnit": 751,
"src": "24:23:15",
2018-05-16 13:46:33 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Create and Add Modules - Allows to create and add multiple module in one transaction.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
2018-05-27 11:24:10 +00:00
"id": 1730,
2018-05-16 13:46:33 +00:00
"linearizedBaseContracts": [
2018-05-27 11:24:10 +00:00
1730
2018-05-16 13:46:33 +00:00
],
"name": "CreateAndAddModules",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-05-27 11:24:10 +00:00
"id": 1696,
2018-05-16 13:46:33 +00:00
"nodeType": "Block",
2018-05-27 11:24:10 +00:00
"src": "461:25:15",
2018-05-16 13:46:33 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-27 11:24:10 +00:00
"id": 1693,
2018-05-16 13:46:33 +00:00
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-27 11:24:10 +00:00
2603,
2604
2018-05-16 13:46:33 +00:00
],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 2603,
"src": "471:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
2018-05-27 11:24:10 +00:00
"id": 1694,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "471:8:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-27 11:24:10 +00:00
"id": 1695,
2018-05-16 13:46:33 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "471:8:15"
2018-05-16 13:46:33 +00:00
}
]
},
"documentation": "@dev Function required to compile contract. Gnosis Safe function is called instead.\n @param module Not used.",
2018-05-27 11:24:10 +00:00
"id": 1697,
2018-05-16 13:46:33 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "enableModule",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 1691,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1690,
2018-05-16 13:46:33 +00:00
"name": "module",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1697,
"src": "427:13:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 1689,
2018-05-16 13:46:33 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 750,
"src": "427:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"src": "426:15:15"
2018-05-16 13:46:33 +00:00
},
"payable": false,
"returnParameters": {
2018-05-27 11:24:10 +00:00
"id": 1692,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "461:0:15"
2018-05-16 13:46:33 +00:00
},
2018-05-27 11:24:10 +00:00
"scope": 1730,
"src": "405:81:15",
2018-05-16 13:46:33 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-27 11:24:10 +00:00
"id": 1728,
2018-05-16 13:46:33 +00:00
"nodeType": "Block",
2018-05-27 11:24:10 +00:00
"src": "897:803:15",
2018-05-16 13:46:33 +00:00
"statements": [
{
"assignments": [
2018-05-27 11:24:10 +00:00
1705
2018-05-16 13:46:33 +00:00
],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1705,
2018-05-16 13:46:33 +00:00
"name": "length",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "907:14:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1704,
2018-05-16 13:46:33 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "907:7:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 1708,
2018-05-16 13:46:33 +00:00
"initialValue": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1706,
2018-05-16 13:46:33 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1701,
"src": "924:4:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
2018-05-27 11:24:10 +00:00
"id": 1707,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-27 11:24:10 +00:00
"src": "924:11:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "907:28:15"
2018-05-16 13:46:33 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1710,
2018-05-16 13:46:33 +00:00
"name": "module",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "945:13:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 1709,
2018-05-16 13:46:33 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 750,
"src": "945:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 1711,
2018-05-16 13:46:33 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "945:13:15"
2018-05-16 13:46:33 +00:00
},
{
"assignments": [
2018-05-27 11:24:10 +00:00
1713
2018-05-16 13:46:33 +00:00
],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1713,
2018-05-16 13:46:33 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "968:9:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1712,
2018-05-16 13:46:33 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "968:7:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 1715,
2018-05-16 13:46:33 +00:00
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
2018-05-27 11:24:10 +00:00
"id": 1714,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "980:1:15",
2018-05-16 13:46:33 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "968:13:15"
2018-05-16 13:46:33 +00:00
},
{
"body": {
2018-05-27 11:24:10 +00:00
"id": 1726,
2018-05-16 13:46:33 +00:00
"nodeType": "Block",
2018-05-27 11:24:10 +00:00
"src": "1010:684:15",
2018-05-16 13:46:33 +00:00
"statements": [
{
"externalReferences": [
{
"module": {
2018-05-27 11:24:10 +00:00
"declaration": 1710,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1414:6:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"data": {
2018-05-27 11:24:10 +00:00
"declaration": 1701,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1164:4:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1170:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"data": {
2018-05-27 11:24:10 +00:00
"declaration": 1701,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1224:4:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1230:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1557:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"proxyFactory": {
2018-05-27 11:24:10 +00:00
"declaration": 1699,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1317:12:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1566:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
}
],
2018-05-27 11:24:10 +00:00
"id": 1719,
2018-05-16 13:46:33 +00:00
"nodeType": "InlineAssembly",
2018-05-27 11:24:10 +00:00
"operations": "{\n let createBytesLength := mload(add(0x20, add(data, i)))\n let createBytes := add(0x40, add(data, i))\n let output := mload(0x40)\n if eq(delegatecall(gas(), proxyFactory, createBytes, createBytesLength, output, 0x20), 0)\n {\n revert(0, 0)\n }\n module := and(mload(output), 0xffffffffffffffffffffffffffffffffffffffff)\n i := add(i, add(0x20, mul(div(add(createBytesLength, 0x1f), 0x20), 0x20)))\n}",
"src": "1092:570:15"
2018-05-16 13:46:33 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1723,
2018-05-16 13:46:33 +00:00
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1710,
"src": "1676:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
],
"expression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1720,
2018-05-16 13:46:33 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 2641,
"src": "1658:4:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_CreateAndAddModules_$1730",
2018-05-16 13:46:33 +00:00
"typeString": "contract CreateAndAddModules"
}
},
2018-05-27 11:24:10 +00:00
"id": 1722,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "enableModule",
"nodeType": "MemberAccess",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1697,
"src": "1658:17:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_external_nonpayable$_t_contract$_Module_$750_$returns$__$",
2018-05-16 13:46:33 +00:00
"typeString": "function (contract Module) external"
}
},
2018-05-27 11:24:10 +00:00
"id": 1724,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "1658:25:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-27 11:24:10 +00:00
"id": 1725,
2018-05-16 13:46:33 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "1658:25:15"
2018-05-16 13:46:33 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
"id": 1718,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1716,
2018-05-16 13:46:33 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1713,
"src": "998:1:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1717,
2018-05-16 13:46:33 +00:00
"name": "length",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1705,
"src": "1002:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"src": "998:10:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-27 11:24:10 +00:00
"id": 1727,
2018-05-16 13:46:33 +00:00
"nodeType": "WhileStatement",
2018-05-27 11:24:10 +00:00
"src": "991:703:15"
2018-05-16 13:46:33 +00:00
}
]
},
"documentation": "@dev Allows to create and add multiple module in one transaction.\n @param proxyFactory Module proxy factory contract.\n @param data Modules constructor payload. This is the data for each proxy factory call concatinated. (e.g. <byte_array_len_1><byte_array_data_1><byte_array_len_2><byte_array_data_2>)",
2018-05-27 11:24:10 +00:00
"id": 1729,
2018-05-16 13:46:33 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createAndAddModules",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 1702,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1699,
2018-05-16 13:46:33 +00:00
"name": "proxyFactory",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "844:20:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1698,
2018-05-16 13:46:33 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "844:7:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1701,
2018-05-16 13:46:33 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "866:10:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1700,
2018-05-16 13:46:33 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "866:5:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"src": "843:34:15"
2018-05-16 13:46:33 +00:00
},
"payable": false,
"returnParameters": {
2018-05-27 11:24:10 +00:00
"id": 1703,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "897:0:15"
2018-05-16 13:46:33 +00:00
},
2018-05-27 11:24:10 +00:00
"scope": 1730,
"src": "815:885:15",
2018-05-16 13:46:33 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-27 11:24:10 +00:00
"scope": 1731,
"src": "245:1457:15"
2018-05-16 13:46:33 +00:00
}
],
2018-05-27 11:24:10 +00:00
"src": "0:1703:15"
2018-05-16 13:46:33 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/CreateAndAddModules.sol",
"exportedSymbols": {
"CreateAndAddModules": [
2018-05-27 11:24:10 +00:00
1730
2018-05-16 13:46:33 +00:00
]
},
2018-05-27 11:24:10 +00:00
"id": 1731,
2018-05-16 13:46:33 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-27 11:24:10 +00:00
"id": 1687,
2018-05-16 13:46:33 +00:00
"literals": [
"solidity",
"0.4",
2018-05-27 11:24:10 +00:00
".24"
2018-05-16 13:46:33 +00:00
],
"nodeType": "PragmaDirective",
2018-05-27 11:24:10 +00:00
"src": "0:23:15"
2018-05-16 13:46:33 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol",
"file": "../Module.sol",
2018-05-27 11:24:10 +00:00
"id": 1688,
2018-05-16 13:46:33 +00:00
"nodeType": "ImportDirective",
2018-05-27 11:24:10 +00:00
"scope": 1731,
"sourceUnit": 751,
"src": "24:23:15",
2018-05-16 13:46:33 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Create and Add Modules - Allows to create and add multiple module in one transaction.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
2018-05-27 11:24:10 +00:00
"id": 1730,
2018-05-16 13:46:33 +00:00
"linearizedBaseContracts": [
2018-05-27 11:24:10 +00:00
1730
2018-05-16 13:46:33 +00:00
],
"name": "CreateAndAddModules",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-05-27 11:24:10 +00:00
"id": 1696,
2018-05-16 13:46:33 +00:00
"nodeType": "Block",
2018-05-27 11:24:10 +00:00
"src": "461:25:15",
2018-05-16 13:46:33 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-27 11:24:10 +00:00
"id": 1693,
2018-05-16 13:46:33 +00:00
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-27 11:24:10 +00:00
2603,
2604
2018-05-16 13:46:33 +00:00
],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 2603,
"src": "471:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
2018-05-27 11:24:10 +00:00
"id": 1694,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "471:8:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-27 11:24:10 +00:00
"id": 1695,
2018-05-16 13:46:33 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "471:8:15"
2018-05-16 13:46:33 +00:00
}
]
},
"documentation": "@dev Function required to compile contract. Gnosis Safe function is called instead.\n @param module Not used.",
2018-05-27 11:24:10 +00:00
"id": 1697,
2018-05-16 13:46:33 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "enableModule",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 1691,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1690,
2018-05-16 13:46:33 +00:00
"name": "module",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1697,
"src": "427:13:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 1689,
2018-05-16 13:46:33 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 750,
"src": "427:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"src": "426:15:15"
2018-05-16 13:46:33 +00:00
},
"payable": false,
"returnParameters": {
2018-05-27 11:24:10 +00:00
"id": 1692,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "461:0:15"
2018-05-16 13:46:33 +00:00
},
2018-05-27 11:24:10 +00:00
"scope": 1730,
"src": "405:81:15",
2018-05-16 13:46:33 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-27 11:24:10 +00:00
"id": 1728,
2018-05-16 13:46:33 +00:00
"nodeType": "Block",
2018-05-27 11:24:10 +00:00
"src": "897:803:15",
2018-05-16 13:46:33 +00:00
"statements": [
{
"assignments": [
2018-05-27 11:24:10 +00:00
1705
2018-05-16 13:46:33 +00:00
],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1705,
2018-05-16 13:46:33 +00:00
"name": "length",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "907:14:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1704,
2018-05-16 13:46:33 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "907:7:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 1708,
2018-05-16 13:46:33 +00:00
"initialValue": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1706,
2018-05-16 13:46:33 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1701,
"src": "924:4:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
2018-05-27 11:24:10 +00:00
"id": 1707,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-27 11:24:10 +00:00
"src": "924:11:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "907:28:15"
2018-05-16 13:46:33 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1710,
2018-05-16 13:46:33 +00:00
"name": "module",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "945:13:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 1709,
2018-05-16 13:46:33 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 750,
"src": "945:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 1711,
2018-05-16 13:46:33 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "945:13:15"
2018-05-16 13:46:33 +00:00
},
{
"assignments": [
2018-05-27 11:24:10 +00:00
1713
2018-05-16 13:46:33 +00:00
],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1713,
2018-05-16 13:46:33 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "968:9:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1712,
2018-05-16 13:46:33 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "968:7:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 1715,
2018-05-16 13:46:33 +00:00
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
2018-05-27 11:24:10 +00:00
"id": 1714,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "980:1:15",
2018-05-16 13:46:33 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "968:13:15"
2018-05-16 13:46:33 +00:00
},
{
"body": {
2018-05-27 11:24:10 +00:00
"id": 1726,
2018-05-16 13:46:33 +00:00
"nodeType": "Block",
2018-05-27 11:24:10 +00:00
"src": "1010:684:15",
2018-05-16 13:46:33 +00:00
"statements": [
{
"externalReferences": [
{
"module": {
2018-05-27 11:24:10 +00:00
"declaration": 1710,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1414:6:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"data": {
2018-05-27 11:24:10 +00:00
"declaration": 1701,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1164:4:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1170:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"data": {
2018-05-27 11:24:10 +00:00
"declaration": 1701,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1224:4:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1230:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1557:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"proxyFactory": {
2018-05-27 11:24:10 +00:00
"declaration": 1699,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1317:12:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
},
{
"i": {
2018-05-27 11:24:10 +00:00
"declaration": 1713,
2018-05-16 13:46:33 +00:00
"isOffset": false,
"isSlot": false,
2018-05-27 11:24:10 +00:00
"src": "1566:1:15",
2018-05-16 13:46:33 +00:00
"valueSize": 1
}
}
],
2018-05-27 11:24:10 +00:00
"id": 1719,
2018-05-16 13:46:33 +00:00
"nodeType": "InlineAssembly",
2018-05-27 11:24:10 +00:00
"operations": "{\n let createBytesLength := mload(add(0x20, add(data, i)))\n let createBytes := add(0x40, add(data, i))\n let output := mload(0x40)\n if eq(delegatecall(gas(), proxyFactory, createBytes, createBytesLength, output, 0x20), 0)\n {\n revert(0, 0)\n }\n module := and(mload(output), 0xffffffffffffffffffffffffffffffffffffffff)\n i := add(i, add(0x20, mul(div(add(createBytesLength, 0x1f), 0x20), 0x20)))\n}",
"src": "1092:570:15"
2018-05-16 13:46:33 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1723,
2018-05-16 13:46:33 +00:00
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1710,
"src": "1676:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_Module_$750",
2018-05-16 13:46:33 +00:00
"typeString": "contract Module"
}
],
"expression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1720,
2018-05-16 13:46:33 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 2641,
"src": "1658:4:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_CreateAndAddModules_$1730",
2018-05-16 13:46:33 +00:00
"typeString": "contract CreateAndAddModules"
}
},
2018-05-27 11:24:10 +00:00
"id": 1722,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "enableModule",
"nodeType": "MemberAccess",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1697,
"src": "1658:17:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_external_nonpayable$_t_contract$_Module_$750_$returns$__$",
2018-05-16 13:46:33 +00:00
"typeString": "function (contract Module) external"
}
},
2018-05-27 11:24:10 +00:00
"id": 1724,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "1658:25:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-27 11:24:10 +00:00
"id": 1725,
2018-05-16 13:46:33 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "1658:25:15"
2018-05-16 13:46:33 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
"id": 1718,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1716,
2018-05-16 13:46:33 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1713,
"src": "998:1:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 1717,
2018-05-16 13:46:33 +00:00
"name": "length",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 1705,
"src": "1002:6:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"src": "998:10:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-27 11:24:10 +00:00
"id": 1727,
2018-05-16 13:46:33 +00:00
"nodeType": "WhileStatement",
2018-05-27 11:24:10 +00:00
"src": "991:703:15"
2018-05-16 13:46:33 +00:00
}
]
},
"documentation": "@dev Allows to create and add multiple module in one transaction.\n @param proxyFactory Module proxy factory contract.\n @param data Modules constructor payload. This is the data for each proxy factory call concatinated. (e.g. <byte_array_len_1><byte_array_data_1><byte_array_len_2><byte_array_data_2>)",
2018-05-27 11:24:10 +00:00
"id": 1729,
2018-05-16 13:46:33 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createAndAddModules",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 1702,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1699,
2018-05-16 13:46:33 +00:00
"name": "proxyFactory",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "844:20:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1698,
2018-05-16 13:46:33 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "844:7:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 1701,
2018-05-16 13:46:33 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-05-27 11:24:10 +00:00
"scope": 1729,
"src": "866:10:15",
2018-05-16 13:46:33 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 1700,
2018-05-16 13:46:33 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "866:5:15",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"src": "843:34:15"
2018-05-16 13:46:33 +00:00
},
"payable": false,
"returnParameters": {
2018-05-27 11:24:10 +00:00
"id": 1703,
2018-05-16 13:46:33 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "897:0:15"
2018-05-16 13:46:33 +00:00
},
2018-05-27 11:24:10 +00:00
"scope": 1730,
"src": "815:885:15",
2018-05-16 13:46:33 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-27 11:24:10 +00:00
"scope": 1731,
"src": "245:1457:15"
2018-05-16 13:46:33 +00:00
}
],
2018-05-27 11:24:10 +00:00
"src": "0:1703:15"
2018-05-16 13:46:33 +00:00
},
"compiler": {
"name": "solc",
2018-05-27 11:24:10 +00:00
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
2018-05-16 13:46:33 +00:00
},
"networks": {
"4": {
"events": {},
"links": {},
2018-05-27 11:24:10 +00:00
"address": "0x09938dc4aedf7573bea1acde27119525162caf86",
"transactionHash": "0x542ed496b9857fdad7870207cd3aa4de6ef756975a2f8f7b736e950aff77634e"
2018-05-16 13:46:33 +00:00
},
2018-05-27 11:24:10 +00:00
"1527316019334": {
"events": {},
"links": {},
2018-05-27 11:24:10 +00:00
"address": "0x3476d04ef7a630db99177c493378763511783ecc",
"transactionHash": "0xa1f976aa57640d6f00fda50b5faa87e6395a25cb7ebcbdf43802038869c30189"
2018-05-26 07:36:34 +00:00
},
2018-05-27 11:24:10 +00:00
"1527420696956": {
2018-05-26 07:36:34 +00:00
"events": {},
"links": {},
2018-05-27 11:24:10 +00:00
"address": "0xa13c4a216f6f3441841401afecdad68223f47cce",
"transactionHash": "0x5c5a77c0584fd75a1a9b7f932710af48fa6803a794ac7c28f17aea45b28c4f26"
2018-05-16 13:46:33 +00:00
}
},
"schemaVersion": "2.0.0",
2018-05-27 11:24:10 +00:00
"updatedAt": "2018-05-27T11:31:46.256Z"
2018-05-16 13:46:33 +00:00
}