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

7202 lines
297 KiB
JSON
Raw Normal View History

2018-05-10 11:12:13 +00:00
{
"contractName": "ModuleManager",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "isModule",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "modules",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "NAME",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "VERSION",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "newContract",
"type": "address"
}
],
"name": "ContractCreation",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "module",
"type": "address"
}
],
"name": "addModule",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "moduleIndex",
"type": "uint256"
},
{
"name": "module",
"type": "address"
}
],
"name": "removeModule",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
}
],
"name": "executeModule",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getModules",
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610ae8806100206000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631ed86f191461009057806342f6e389146100d35780637c6401d31461012e57806381b2248a1461017b578063a3f4df7e146101e8578063b021640a14610278578063b2494df314610330578063ffa1ad741461039c575b005b34801561009c57600080fd5b506100d1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061042c565b005b3480156100df57600080fd5b50610114600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105a5565b604051808215151515815260200191505060405180910390f35b34801561013a57600080fd5b5061017960048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105c5565b005b34801561018757600080fd5b506101a66004803603810190808035906020019092919050505061077d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f457600080fd5b506101fd6107bb565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561023d578082015181840152602081019050610222565b50505050905090810190601f16801561026a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028457600080fd5b50610316600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291905050506107f4565b604051808215151515815260200191505060405180910390f35b34801561033c57600080fd5b50610345610865565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561038857808201518184015260208101905061036d565b505050509050019250505060405180910390f35b3480156103a857600080fd5b506103b16108f3565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103f15780820151818401526020810190506103d6565b50505050905090810190601f16801561041e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561046657600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff161415151561048c57600080fd5b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515156104e557600080fd5b60008190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60016020528060005260406000206000915054906101000a900460ff1681565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105ff57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008381548110151561062557fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561067257600080fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060006001600080549050038154811015156106e157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008381548110151561071b57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054809190600190036107789190610a6b565b505050565b60008181548110151561078c57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600e81526020017f4d6f64756c65204d
"deployedBytecode": "0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631ed86f191461009057806342f6e389146100d35780637c6401d31461012e57806381b2248a1461017b578063a3f4df7e146101e8578063b021640a14610278578063b2494df314610330578063ffa1ad741461039c575b005b34801561009c57600080fd5b506100d1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061042c565b005b3480156100df57600080fd5b50610114600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105a5565b604051808215151515815260200191505060405180910390f35b34801561013a57600080fd5b5061017960048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105c5565b005b34801561018757600080fd5b506101a66004803603810190808035906020019092919050505061077d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f457600080fd5b506101fd6107bb565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561023d578082015181840152602081019050610222565b50505050905090810190601f16801561026a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028457600080fd5b50610316600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291905050506107f4565b604051808215151515815260200191505060405180910390f35b34801561033c57600080fd5b50610345610865565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561038857808201518184015260208101905061036d565b505050509050019250505060405180910390f35b3480156103a857600080fd5b506103b16108f3565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103f15780820151818401526020810190506103d6565b50505050905090810190601f16801561041e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561046657600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff161415151561048c57600080fd5b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515156104e557600080fd5b60008190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60016020528060005260406000206000915054906101000a900460ff1681565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105ff57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008381548110151561062557fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561067257600080fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060006001600080549050038154811015156106e157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008381548110151561071b57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054809190600190036107789190610a6b565b505050565b60008181548110151561078c57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600e81526020017f4d6f64756c65204d616e6167657200000000000000000000000000000000000081525081
"sourceMap": "303:4090:9:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;303:4090:9;;;;;;;",
"deployedSourceMap": "303:4090:9:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1166:300;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1166:300:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;599:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;599:41:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1722:336;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1722:336:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;500:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;500:23:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;401:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;401:46:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;401:46:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2394:361;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2394:361:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4279:112;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4279:112:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4279:112:9;;;;;;;;;;;;;;;;;453:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;453:40:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;453:40:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1166:300;244:4:14;222:27;;:10;:27;;;214:36;;;;;;;;1317:1:9;1306:6;1298:20;;;;1290:29;;;;;;;;1379:8;:16;1388:6;1379:16;;;;;;;;;;;;;;;;;;;;;;;;;1378:17;1370:26;;;;;;;;1406:7;1419:6;1406:20;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1406:20:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1455:4;1436:8;:16;1445:6;1436:16;;;;;;;;;;;;;;;;:23;;;;;;;;;;;;;;;;;;1166:300;:::o;599:41::-;;;;;;;;;;;;;;;;;;;;;;:::o;1722:336::-;244:4:14;222:27;;:10;:27;;;214:36;;;;;;;;1924:6:9;1900:30;;:7;1908:11;1900:20;;;;;;;;;;;;;;;;;;;;;;;;;;;:30;;;1892:39;;;;;;;;1960:5;1941:8;:16;1950:6;1941:16;;;;;;;;;;;;;;;;:24;;;;;;;;;;;;;;;;;;1998:7;2023:1;2006:7;:14;;;;:18;1998:27;;;;;;;;;;;;;;;;;;;;;;;;;;;1975:7;1983:11;1975:20;;;;;;;;;;;;;;;;;;:50;;;;;;;;;;;;;;;;;;2035:7;:16;;;;;;;;;;;;:::i;:::-;;1722:336;;:::o;500:23::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;401:46::-;;;;;;;;;;;;;;;;;;;;:::o;2394:361::-;2514:12;2599:8;:20;2608:10;2599:20;;;;;;;;;;;;;;;;;;;;;;;;;2591:29;;;;;;;;2702:46;2710:2;2714:5;2721:4;2727:9;2738;2702:7;:46::i;:::-;2692:56;;2394:361;;;;;;:::o;4279:112::-;4346:8;4377:7;4370:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4279:112;:::o;453:40::-;;;;;;;;;;;;;;;;;;;;:::o;2761:548::-;2892:12;3163:19;2937;2924:32;;;;;;;;:9;:32;;;;;;;;;2920:383;;;2980:35;2992:2;2996:5;3003:4;3009:5;2980:11;:35::i;:::-;2970:45;;2920:383;;;3047:27;3034:40;;;;;;;;:9;:40;;;;;;;;;3030:273;;;3098:36;3118:2;3122:4;3128:5;3098:19;:36::i;:::-;3088:46;;3030:273;;;3185:19;3199:4;3185:13;:19::i;:::-;3163:41;;3243:1;3228:11;:16;;;;3218:26;;3263:29;3280:11;3263:29;;;;;;;;;;;;;;;;;;;;;;3030:273;2920:383;2761:548;;;;;;;;:::o;3315:309::-;3424:12;3606:1;3603;3596:4;3590:11;3583:4;3577;3573:15;3566:5;3562:2;3555:5;3550:58;3539:69;;3525:93;;;;;;:::o;3630:303::-;3732:12;3915:1;3912;3905:4;3899:11;3892:4;3886;3882:15;3878:2;3871:5;3858:59;3847:70;;3833:94;;;;;:::o;3939:261::-;4008:19;4178:4;4172:11;4165:4;4159;4155:15;4152:1;4145:39;4130:54;;4116:78;;;:::o;303:4090::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",
"source": "pragma solidity 0.4.23;\nimport \"./Module.sol\";\nimport \"./MasterCopy.sol\";\nimport \"./Enum.sol\";\n\n\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract ModuleManager is SelfAuthorized {\n\n event ContractCreation(address newContract);\n\n string public constant NAME = \"Module Manager\";\n string public constant VERSION = \"0.0.1\";\n\n Module[] public modules;\n\n // isModule mapping allows to check if a module was whitelisted.\n mapping (address => bool) public isModule;\n\n /// @dev Fallback function accepts Ether transactions.\n function ()\n external\n payable\n {\n\n }\n\n function setupModules(address to, bytes data)\n internal\n {\n if (to != 0)\n // Setup has to complete successfully or transaction fails.\n require(executeDelegateCall(to, data, gasleft()));\n }\n\n /// @dev Allows to add a module to the whitelist.\n /// This can only be done via a Safe transaction.\n /// @param module Module to be whitelisted.\n function addModule(Module module)\n public\n authorized\n {\n // Module address cannot be null.\n require(address(module) != 0);\n // Module cannot be added twice.\n require(!isModule[module]);\n modules.push(module);\n isModule[module] = true;\n }\n\n /// @dev Allows to remove a module from the whitelist.\n /// This can only be done via a Safe transaction.\n /// @param moduleIndex Array index position of module to be removed from whitelist.\n /// @param module Module to be removed.\n function removeModule(uint256 moduleIndex, Module module)\n public\n authorized\n {\n // Validate module address corresponds to module index.\n require(modules[moduleIndex] == module);\n isModule[module] = false;\n modules[moduleIndex] = modules[modules.length - 1];\n modules.length--;\n }\n\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\n /// @param to Destination address of module transaction.\n /// @param value Ether value of module transaction.\n /// @param data Data payload of module transaction.\n /// @param operation Operation type of module transaction.\n function executeModule(address to, uint256 value, bytes data, Enum.Operation operation)\n public\n returns (bool success)\n {\n // Only whitelisted modules are allowed.\n require(isModule[msg.sender]);\n // Execute transaction without further confirmations.\n success = execute(to, value, data, operation, gasleft());\n }\n\n function execute(address to, uint256 value, bytes data, Enum.Operation operation, uint256 txGas)\n internal\n returns (bool success)\n {\n if (operation == Enum.Operation.Call)\n success = executeCall(to, value, data, txGas);\n else if (operation == Enum.Operation.DelegateCall)\n success = executeDelegateCall(to, data, txGas);\n else {\n address newContract = executeCreate(data);\n success = newContract != 0;\n emit ContractCreation(newContract);\n }\n }\n\n function executeCall(address to, uint256 value, bytes data, uint256 txGas)\n internal\n returns (bool success)\n {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\n }\n }\n\n function executeDelegateCall(address to, bytes data, uint256 txGas)\n internal\n returns (bool success)\n {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\n }\n }\n\n function execute
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol",
"exportedSymbols": {
"ModuleManager": [
1142
]
},
"id": 1143,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 879,
"literals": [
"solidity",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
"src": "0:23:9"
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol",
"file": "./Module.sol",
"id": 880,
"nodeType": "ImportDirective",
"scope": 1143,
"sourceUnit": 878,
"src": "24:22:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"file": "./MasterCopy.sol",
"id": 881,
"nodeType": "ImportDirective",
"scope": 1143,
"sourceUnit": 780,
"src": "47:26:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol",
"file": "./Enum.sol",
"id": 882,
"nodeType": "ImportDirective",
"scope": 1143,
"sourceUnit": 31,
"src": "74:20:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 883,
"name": "SelfAuthorized",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1559,
"src": "329:14:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_SelfAuthorized_$1559",
"typeString": "contract SelfAuthorized"
}
},
"id": 884,
"nodeType": "InheritanceSpecifier",
"src": "329:14:9"
}
],
"contractDependencies": [
1559
],
"contractKind": "contract",
"documentation": "@title Module Manager - A contract that manages modules that can execute transactions via this contract\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
"id": 1142,
"linearizedBaseContracts": [
1142,
1559
],
"name": "ModuleManager",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 888,
"name": "ContractCreation",
"nodeType": "EventDefinition",
"parameters": {
"id": 887,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 886,
"indexed": false,
"name": "newContract",
"nodeType": "VariableDeclaration",
"scope": 888,
"src": "374:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 885,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "374:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "373:21:9"
},
"src": "351:44:9"
},
{
"constant": true,
"id": 891,
"name": "NAME",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "401:46:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 889,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "401:6:9",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "4d6f64756c65204d616e61676572",
"id": 890,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "431:16:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_12aaa44a1bae367a1e1d9881f5d80283afded6373c2a1ca586db420944084efb",
"typeString": "literal_string \"Module Manager\""
},
"value": "Module Manager"
},
"visibility": "public"
},
{
"constant": true,
"id": 894,
"name": "VERSION",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "453:40:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 892,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "453:6:9",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
"id": 893,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "486:7:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": false,
"id": 897,
"name": "modules",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "500:23:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[]"
},
"typeName": {
"baseType": {
"contractScope": null,
"id": 895,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "500:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"id": 896,
"length": null,
"nodeType": "ArrayTypeName",
"src": "500:8:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage_ptr",
"typeString": "contract Module[]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 901,
"name": "isModule",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "599:41:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"typeName": {
"id": 900,
"keyType": {
"id": 898,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "608:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "599:25:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"valueType": {
"id": 899,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "619:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 904,
"nodeType": "Block",
"src": "755:8:9",
"statements": []
},
"documentation": "@dev Fallback function accepts Ether transactions.",
"id": 905,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 902,
"nodeType": "ParameterList",
"parameters": [],
"src": "715:2:9"
},
"payable": true,
"returnParameters": {
"id": 903,
"nodeType": "ParameterList",
"parameters": [],
"src": "755:0:9"
},
"scope": 1142,
"src": "706:57:9",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": {
"id": 925,
"nodeType": "Block",
"src": "836:163:9",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 914,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 912,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 907,
"src": "850:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 913,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "856:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "850:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 924,
"nodeType": "IfStatement",
"src": "846:146:9",
"trueBody": {
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 917,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 907,
"src": "971:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 918,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 909,
"src": "975:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 919,
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2458,
"src": "981:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 920,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "981:9:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 916,
"name": "executeDelegateCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1123,
"src": "951:19:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,bytes memory,uint256) returns (bool)"
}
},
"id": 921,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "951:40:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 915,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "943:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 922,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "943:49:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 923,
"nodeType": "ExpressionStatement",
"src": "943:49:9"
}
}
]
},
"documentation": null,
"id": 926,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setupModules",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 910,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 907,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 926,
"src": "791:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 906,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "791:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 909,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 926,
"src": "803:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 908,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "803:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "790:24:9"
},
"payable": false,
"returnParameters": {
"id": 911,
"nodeType": "ParameterList",
"parameters": [],
"src": "836:0:9"
},
"scope": 1142,
"src": "769:230:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 960,
"nodeType": "Block",
"src": "1238:228:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 938,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 935,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1306:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
],
"id": 934,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1298:7:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 936,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1298:15:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 937,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1317:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1298:20:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 933,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "1290:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 939,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1290:29:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 940,
"nodeType": "ExpressionStatement",
"src": "1290:29:9"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 945,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "1378:17:9",
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 942,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "1379:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 944,
"indexExpression": {
"argumentTypes": null,
"id": 943,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1388:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1379:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 941,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "1370:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 946,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1370:26:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 947,
"nodeType": "ExpressionStatement",
"src": "1370:26:9"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 951,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1419:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
],
"expression": {
"argumentTypes": null,
"id": 948,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1406:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 950,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "push",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1406:12:9",
"typeDescriptions": {
"typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Module_$877_$returns$_t_uint256_$",
"typeString": "function (contract Module) returns (uint256)"
}
},
"id": 952,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1406:20:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 953,
"nodeType": "ExpressionStatement",
"src": "1406:20:9"
},
{
"expression": {
"argumentTypes": null,
"id": 958,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 954,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "1436:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 956,
"indexExpression": {
"argumentTypes": null,
"id": 955,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1445:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1436:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 957,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1455:4:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1436:23:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 959,
"nodeType": "ExpressionStatement",
"src": "1436:23:9"
}
]
},
"documentation": "@dev Allows to add a module to the whitelist.\n This can only be done via a Safe transaction.\n @param module Module to be whitelisted.",
"id": 961,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 931,
"modifierName": {
"argumentTypes": null,
"id": 930,
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1558,
"src": "1223:10:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1223:10:9"
}
],
"name": "addModule",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 929,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 928,
"name": "module",
"nodeType": "VariableDeclaration",
"scope": 961,
"src": "1185:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
"id": 927,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "1185:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1184:15:9"
},
"payable": false,
"returnParameters": {
"id": 932,
"nodeType": "ParameterList",
"parameters": [],
"src": "1238:0:9"
},
"scope": 1142,
"src": "1166:300:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1000,
"nodeType": "Block",
"src": "1818:240:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
},
"id": 975,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 971,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1900:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 973,
"indexExpression": {
"argumentTypes": null,
"id": 972,
"name": "moduleIndex",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 963,
"src": "1908:11:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1900:20:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 974,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 965,
"src": "1924:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"src": "1900:30:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 970,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "1892:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 976,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1892:39:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 977,
"nodeType": "ExpressionStatement",
"src": "1892:39:9"
},
{
"expression": {
"argumentTypes": null,
"id": 982,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 978,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "1941:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 980,
"indexExpression": {
"argumentTypes": null,
"id": 979,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 965,
"src": "1950:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1941:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 981,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1960:5:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "1941:24:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 983,
"nodeType": "ExpressionStatement",
"src": "1941:24:9"
},
{
"expression": {
"argumentTypes": null,
"id": 993,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 984,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1975:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 986,
"indexExpression": {
"argumentTypes": null,
"id": 985,
"name": "moduleIndex",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 963,
"src": "1983:11:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1975:20:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 987,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1998:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 992,
"indexExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 991,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 988,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "2006:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 989,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2006:14:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
"hexValue": "31",
"id": 990,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2023:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "2006:18:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1998:27:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"src": "1975:50:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"id": 994,
"nodeType": "ExpressionStatement",
"src": "1975:50:9"
},
{
"expression": {
"argumentTypes": null,
"id": 998,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "--",
"prefix": false,
"src": "2035:16:9",
"subExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 995,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "2035:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 997,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2035:14:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 999,
"nodeType": "ExpressionStatement",
"src": "2035:16:9"
}
]
},
"documentation": "@dev Allows to remove a module from the whitelist.\n This can only be done via a Safe transaction.\n @param moduleIndex Array index position of module to be removed from whitelist.\n @param module Module to be removed.",
"id": 1001,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 968,
"modifierName": {
"argumentTypes": null,
"id": 967,
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1558,
"src": "1803:10:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1803:10:9"
}
],
"name": "removeModule",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 966,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 963,
"name": "moduleIndex",
"nodeType": "VariableDeclaration",
"scope": 1001,
"src": "1744:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 962,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1744:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 965,
"name": "module",
"nodeType": "VariableDeclaration",
"scope": 1001,
"src": "1765:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
"id": 964,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "1765:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1743:36:9"
},
"payable": false,
"returnParameters": {
"id": 969,
"nodeType": "ParameterList",
"parameters": [],
"src": "1818:0:9"
},
"scope": 1142,
"src": "1722:336:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1032,
"nodeType": "Block",
"src": "2532:223:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 1015,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "2599:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 1018,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1016,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2465,
"src": "2608:3:9",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 1017,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2608:10:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2599:20:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 1014,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "2591:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 1019,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2591:29:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1020,
"nodeType": "ExpressionStatement",
"src": "2591:29:9"
},
{
"expression": {
"argumentTypes": null,
"id": 1030,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1021,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1012,
"src": "2692:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1023,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1003,
"src": "2710:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1024,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1005,
"src": "2714:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 1025,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1007,
"src": "2721:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 1026,
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1009,
"src": "2727:9:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 1027,
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2458,
"src": "2738:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 1028,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2738:9:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1022,
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1095,
"src": "2702:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 1029,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2702:46:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2692:56:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1031,
"nodeType": "ExpressionStatement",
"src": "2692:56:9"
}
]
},
"documentation": "@dev Allows a Module to execute a Safe transaction without any further confirmations.\n @param to Destination address of module transaction.\n @param value Ether value of module transaction.\n @param data Data payload of module transaction.\n @param operation Operation type of module transaction.",
"id": 1033,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeModule",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1010,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1003,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2417:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1002,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2417:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1005,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2429:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1004,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2429:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1007,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2444:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1006,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2444:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1009,
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2456:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 1008,
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "2456:14:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2416:65:9"
},
"payable": false,
"returnParameters": {
"id": 1013,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1012,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2514:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1011,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2514:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2513:14:9"
},
"scope": 1142,
"src": "2394:361:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1094,
"nodeType": "Block",
"src": "2910:399:9",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"id": 1052,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1048,
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1041,
"src": "2924:9:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1049,
"name": "Enum",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 30,
"src": "2937:4:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Enum_$30_$",
"typeString": "type(contract Enum)"
}
},
"id": 1050,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "Operation",
"nodeType": "MemberAccess",
"referencedDeclaration": 29,
"src": "2937:14:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_Operation_$29_$",
"typeString": "type(enum Enum.Operation)"
}
},
"id": 1051,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "Call",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2937:19:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"src": "2924:32:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"id": 1066,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1062,
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1041,
"src": "3034:9:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1063,
"name": "Enum",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 30,
"src": "3047:4:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Enum_$30_$",
"typeString": "type(contract Enum)"
}
},
"id": 1064,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "Operation",
"nodeType": "MemberAccess",
"referencedDeclaration": 29,
"src": "3047:14:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_Operation_$29_$",
"typeString": "type(enum Enum.Operation)"
}
},
"id": 1065,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "DelegateCall",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "3047:27:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"src": "3034:40:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"id": 1091,
"nodeType": "Block",
"src": "3149:154:9",
"statements": [
{
"assignments": [
1076
],
"declarations": [
{
"constant": false,
"id": 1076,
"name": "newContract",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "3163:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1075,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3163:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1080,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1078,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1039,
"src": "3199:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 1077,
"name": "executeCreate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1132,
"src": "3185:13:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$_t_address_$",
"typeString": "function (bytes memory) returns (address)"
}
},
"id": 1079,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3185:19:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3163:41:9"
},
{
"expression": {
"argumentTypes": null,
"id": 1085,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1081,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1046,
"src": "3218:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 1084,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1082,
"name": "newContract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1076,
"src": "3228:11:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 1083,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3243:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "3228:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3218:26:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1086,
"nodeType": "ExpressionStatement",
"src": "3218:26:9"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1088,
"name": "newContract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1076,
"src": "3280:11:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1087,
"name": "ContractCreation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 888,
"src": "3263:16:9",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 1089,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3263:29:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1090,
"nodeType": "EmitStatement",
"src": "3258:34:9"
}
]
},
"id": 1092,
"nodeType": "IfStatement",
"src": "3030:273:9",
"trueBody": {
"expression": {
"argumentTypes": null,
"id": 1073,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1067,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1046,
"src": "3088:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1069,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1035,
"src": "3118:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1070,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1039,
"src": "3122:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 1071,
"name": "txGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1043,
"src": "3128:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1068,
"name": "executeDelegateCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1123,
"src": "3098:19:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,bytes memory,uint256) returns (bool)"
}
},
"id": 1072,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3098:36:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3088:46:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1074,
"nodeType": "ExpressionStatement",
"src": "3088:46:9"
}
},
"id": 1093,
"nodeType": "IfStatement",
"src": "2920:383:9",
"trueBody": {
"expression": {
"argumentTypes": null,
"id": 1060,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1053,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1046,
"src": "2970:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1055,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1035,
"src": "2992:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1056,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1037,
"src": "2996:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 1057,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1039,
"src": "3003:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 1058,
"name": "txGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1043,
"src": "3009:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1054,
"name": "executeCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1110,
"src": "2980:11:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,uint256) returns (bool)"
}
},
"id": 1059,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2980:35:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2970:45:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1061,
"nodeType": "ExpressionStatement",
"src": "2970:45:9"
}
}
]
},
"documentation": null,
"id": 1095,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execute",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1044,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1035,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2778:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1034,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2778:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1037,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2790:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1036,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2790:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1039,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2805:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1038,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2805:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1041,
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2817:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 1040,
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "2817:14:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1043,
"name": "txGas",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2843:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1042,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2843:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2777:80:9"
},
"payable": false,
"returnParameters": {
"id": 1047,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1046,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2892:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1045,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2892:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2891:14:9"
},
"scope": 1142,
"src": "2761:548:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1109,
"nodeType": "Block",
"src": "3442:182:9",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 1101,
"isOffset": false,
"isSlot": false,
"src": "3596:4:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1101,
"isOffset": false,
"isSlot": false,
"src": "3577:4:9",
"valueSize": 1
}
},
{
"success": {
"declaration": 1106,
"isOffset": false,
"isSlot": false,
"src": "3539:7:9",
"valueSize": 1
}
},
{
"txGas": {
"declaration": 1103,
"isOffset": false,
"isSlot": false,
"src": "3555:5:9",
"valueSize": 1
}
},
{
"to": {
"declaration": 1097,
"isOffset": false,
"isSlot": false,
"src": "3562:2:9",
"valueSize": 1
}
},
{
"value": {
"declaration": 1099,
"isOffset": false,
"isSlot": false,
"src": "3566:5:9",
"valueSize": 1
}
}
],
"id": 1108,
"nodeType": "InlineAssembly",
"operations": "{\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\n}",
"src": "3516:108:9"
}
]
},
"documentation": null,
"id": 1110,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeCall",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1104,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1097,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3336:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1096,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3336:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1099,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3348:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1098,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3348:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1101,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3363:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1100,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3363:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1103,
"name": "txGas",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3375:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1102,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3375:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3335:54:9"
},
"payable": false,
"returnParameters": {
"id": 1107,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1106,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3424:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1105,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3424:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3423:14:9"
},
"scope": 1142,
"src": "3315:309:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1122,
"nodeType": "Block",
"src": "3750:183:9",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 1114,
"isOffset": false,
"isSlot": false,
"src": "3905:4:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1114,
"isOffset": false,
"isSlot": false,
"src": "3886:4:9",
"valueSize": 1
}
},
{
"success": {
"declaration": 1119,
"isOffset": false,
"isSlot": false,
"src": "3847:7:9",
"valueSize": 1
}
},
{
"txGas": {
"declaration": 1116,
"isOffset": false,
"isSlot": false,
"src": "3871:5:9",
"valueSize": 1
}
},
{
"to": {
"declaration": 1112,
"isOffset": false,
"isSlot": false,
"src": "3878:2:9",
"valueSize": 1
}
}
],
"id": 1121,
"nodeType": "InlineAssembly",
"operations": "{\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\n}",
"src": "3824:109:9"
}
]
},
"documentation": null,
"id": 1123,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeDelegateCall",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1117,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1112,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3659:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1111,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3659:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1114,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3671:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1113,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3671:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1116,
"name": "txGas",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3683:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1115,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3683:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3658:39:9"
},
"payable": false,
"returnParameters": {
"id": 1120,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1119,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3732:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1118,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3732:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3731:14:9"
},
"scope": 1142,
"src": "3630:303:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1131,
"nodeType": "Block",
"src": "4033:167:9",
"statements": [
{
"externalReferences": [
{
"newContract": {
"declaration": 1128,
"isOffset": false,
"isSlot": false,
"src": "4130:11:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1125,
"isOffset": false,
"isSlot": false,
"src": "4159:4:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1125,
"isOffset": false,
"isSlot": false,
"src": "4178:4:9",
"valueSize": 1
}
}
],
"id": 1130,
"nodeType": "InlineAssembly",
"operations": "{\n newContract := create(0, add(data, 0x20), mload(data))\n}",
"src": "4107:93:9"
}
]
},
"documentation": null,
"id": 1132,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeCreate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1126,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1125,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1132,
"src": "3962:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1124,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3962:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3961:12:9"
},
"payable": false,
"returnParameters": {
"id": 1129,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1128,
"name": "newContract",
"nodeType": "VariableDeclaration",
"scope": 1132,
"src": "4008:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1127,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4008:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4007:21:9"
},
"scope": 1142,
"src": "3939:261:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1140,
"nodeType": "Block",
"src": "4360:31:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1138,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "4377:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"functionReturnParameters": 1137,
"id": 1139,
"nodeType": "Return",
"src": "4370:14:9"
}
]
},
"documentation": "@dev Returns array of modules.\n @return Array of modules.",
"id": 1141,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getModules",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1133,
"nodeType": "ParameterList",
"parameters": [],
"src": "4298:2:9"
},
"payable": false,
"returnParameters": {
"id": 1137,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1136,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1141,
"src": "4346:8:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_memory_ptr",
"typeString": "contract Module[]"
},
"typeName": {
"baseType": {
"contractScope": null,
"id": 1134,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "4346:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"id": 1135,
"length": null,
"nodeType": "ArrayTypeName",
"src": "4346:8:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage_ptr",
"typeString": "contract Module[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4345:10:9"
},
"scope": 1142,
"src": "4279:112:9",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1143,
"src": "303:4090:9"
}
],
"src": "0:4394:9"
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol",
"exportedSymbols": {
"ModuleManager": [
1142
]
},
"id": 1143,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 879,
"literals": [
"solidity",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
"src": "0:23:9"
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol",
"file": "./Module.sol",
"id": 880,
"nodeType": "ImportDirective",
"scope": 1143,
"sourceUnit": 878,
"src": "24:22:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"file": "./MasterCopy.sol",
"id": 881,
"nodeType": "ImportDirective",
"scope": 1143,
"sourceUnit": 780,
"src": "47:26:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol",
"file": "./Enum.sol",
"id": 882,
"nodeType": "ImportDirective",
"scope": 1143,
"sourceUnit": 31,
"src": "74:20:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 883,
"name": "SelfAuthorized",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1559,
"src": "329:14:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_SelfAuthorized_$1559",
"typeString": "contract SelfAuthorized"
}
},
"id": 884,
"nodeType": "InheritanceSpecifier",
"src": "329:14:9"
}
],
"contractDependencies": [
1559
],
"contractKind": "contract",
"documentation": "@title Module Manager - A contract that manages modules that can execute transactions via this contract\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
"id": 1142,
"linearizedBaseContracts": [
1142,
1559
],
"name": "ModuleManager",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 888,
"name": "ContractCreation",
"nodeType": "EventDefinition",
"parameters": {
"id": 887,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 886,
"indexed": false,
"name": "newContract",
"nodeType": "VariableDeclaration",
"scope": 888,
"src": "374:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 885,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "374:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "373:21:9"
},
"src": "351:44:9"
},
{
"constant": true,
"id": 891,
"name": "NAME",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "401:46:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 889,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "401:6:9",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "4d6f64756c65204d616e61676572",
"id": 890,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "431:16:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_12aaa44a1bae367a1e1d9881f5d80283afded6373c2a1ca586db420944084efb",
"typeString": "literal_string \"Module Manager\""
},
"value": "Module Manager"
},
"visibility": "public"
},
{
"constant": true,
"id": 894,
"name": "VERSION",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "453:40:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 892,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "453:6:9",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
"id": 893,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "486:7:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": false,
"id": 897,
"name": "modules",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "500:23:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[]"
},
"typeName": {
"baseType": {
"contractScope": null,
"id": 895,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "500:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"id": 896,
"length": null,
"nodeType": "ArrayTypeName",
"src": "500:8:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage_ptr",
"typeString": "contract Module[]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 901,
"name": "isModule",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "599:41:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"typeName": {
"id": 900,
"keyType": {
"id": 898,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "608:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "599:25:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"valueType": {
"id": 899,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "619:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 904,
"nodeType": "Block",
"src": "755:8:9",
"statements": []
},
"documentation": "@dev Fallback function accepts Ether transactions.",
"id": 905,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 902,
"nodeType": "ParameterList",
"parameters": [],
"src": "715:2:9"
},
"payable": true,
"returnParameters": {
"id": 903,
"nodeType": "ParameterList",
"parameters": [],
"src": "755:0:9"
},
"scope": 1142,
"src": "706:57:9",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": {
"id": 925,
"nodeType": "Block",
"src": "836:163:9",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 914,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 912,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 907,
"src": "850:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 913,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "856:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "850:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 924,
"nodeType": "IfStatement",
"src": "846:146:9",
"trueBody": {
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 917,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 907,
"src": "971:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 918,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 909,
"src": "975:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 919,
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2458,
"src": "981:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 920,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "981:9:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 916,
"name": "executeDelegateCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1123,
"src": "951:19:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,bytes memory,uint256) returns (bool)"
}
},
"id": 921,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "951:40:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 915,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "943:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 922,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "943:49:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 923,
"nodeType": "ExpressionStatement",
"src": "943:49:9"
}
}
]
},
"documentation": null,
"id": 926,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setupModules",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 910,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 907,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 926,
"src": "791:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 906,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "791:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 909,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 926,
"src": "803:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 908,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "803:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "790:24:9"
},
"payable": false,
"returnParameters": {
"id": 911,
"nodeType": "ParameterList",
"parameters": [],
"src": "836:0:9"
},
"scope": 1142,
"src": "769:230:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 960,
"nodeType": "Block",
"src": "1238:228:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 938,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 935,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1306:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
],
"id": 934,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1298:7:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 936,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1298:15:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 937,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1317:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1298:20:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 933,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "1290:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 939,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1290:29:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 940,
"nodeType": "ExpressionStatement",
"src": "1290:29:9"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 945,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "1378:17:9",
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 942,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "1379:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 944,
"indexExpression": {
"argumentTypes": null,
"id": 943,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1388:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1379:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 941,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "1370:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 946,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1370:26:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 947,
"nodeType": "ExpressionStatement",
"src": "1370:26:9"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 951,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1419:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
],
"expression": {
"argumentTypes": null,
"id": 948,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1406:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 950,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "push",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1406:12:9",
"typeDescriptions": {
"typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Module_$877_$returns$_t_uint256_$",
"typeString": "function (contract Module) returns (uint256)"
}
},
"id": 952,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1406:20:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 953,
"nodeType": "ExpressionStatement",
"src": "1406:20:9"
},
{
"expression": {
"argumentTypes": null,
"id": 958,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 954,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "1436:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 956,
"indexExpression": {
"argumentTypes": null,
"id": 955,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 928,
"src": "1445:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1436:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 957,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1455:4:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1436:23:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 959,
"nodeType": "ExpressionStatement",
"src": "1436:23:9"
}
]
},
"documentation": "@dev Allows to add a module to the whitelist.\n This can only be done via a Safe transaction.\n @param module Module to be whitelisted.",
"id": 961,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 931,
"modifierName": {
"argumentTypes": null,
"id": 930,
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1558,
"src": "1223:10:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1223:10:9"
}
],
"name": "addModule",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 929,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 928,
"name": "module",
"nodeType": "VariableDeclaration",
"scope": 961,
"src": "1185:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
"id": 927,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "1185:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1184:15:9"
},
"payable": false,
"returnParameters": {
"id": 932,
"nodeType": "ParameterList",
"parameters": [],
"src": "1238:0:9"
},
"scope": 1142,
"src": "1166:300:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1000,
"nodeType": "Block",
"src": "1818:240:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
},
"id": 975,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 971,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1900:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 973,
"indexExpression": {
"argumentTypes": null,
"id": 972,
"name": "moduleIndex",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 963,
"src": "1908:11:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1900:20:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 974,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 965,
"src": "1924:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"src": "1900:30:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 970,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "1892:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 976,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1892:39:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 977,
"nodeType": "ExpressionStatement",
"src": "1892:39:9"
},
{
"expression": {
"argumentTypes": null,
"id": 982,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 978,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "1941:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 980,
"indexExpression": {
"argumentTypes": null,
"id": 979,
"name": "module",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 965,
"src": "1950:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1941:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 981,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1960:5:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "1941:24:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 983,
"nodeType": "ExpressionStatement",
"src": "1941:24:9"
},
{
"expression": {
"argumentTypes": null,
"id": 993,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 984,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1975:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 986,
"indexExpression": {
"argumentTypes": null,
"id": 985,
"name": "moduleIndex",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 963,
"src": "1983:11:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1975:20:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 987,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "1998:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 992,
"indexExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 991,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 988,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "2006:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 989,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2006:14:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
"hexValue": "31",
"id": 990,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2023:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "2006:18:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1998:27:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"src": "1975:50:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"id": 994,
"nodeType": "ExpressionStatement",
"src": "1975:50:9"
},
{
"expression": {
"argumentTypes": null,
"id": 998,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "--",
"prefix": false,
"src": "2035:16:9",
"subExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 995,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "2035:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"id": 997,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2035:14:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 999,
"nodeType": "ExpressionStatement",
"src": "2035:16:9"
}
]
},
"documentation": "@dev Allows to remove a module from the whitelist.\n This can only be done via a Safe transaction.\n @param moduleIndex Array index position of module to be removed from whitelist.\n @param module Module to be removed.",
"id": 1001,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 968,
"modifierName": {
"argumentTypes": null,
"id": 967,
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1558,
"src": "1803:10:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1803:10:9"
}
],
"name": "removeModule",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 966,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 963,
"name": "moduleIndex",
"nodeType": "VariableDeclaration",
"scope": 1001,
"src": "1744:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 962,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1744:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 965,
"name": "module",
"nodeType": "VariableDeclaration",
"scope": 1001,
"src": "1765:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
},
"typeName": {
"contractScope": null,
"id": 964,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "1765:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1743:36:9"
},
"payable": false,
"returnParameters": {
"id": 969,
"nodeType": "ParameterList",
"parameters": [],
"src": "1818:0:9"
},
"scope": 1142,
"src": "1722:336:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1032,
"nodeType": "Block",
"src": "2532:223:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 1015,
"name": "isModule",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 901,
"src": "2599:8:9",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
"id": 1018,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1016,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2465,
"src": "2608:3:9",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 1017,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2608:10:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2599:20:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 1014,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2468,
2469
],
"referencedDeclaration": 2468,
"src": "2591:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 1019,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2591:29:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1020,
"nodeType": "ExpressionStatement",
"src": "2591:29:9"
},
{
"expression": {
"argumentTypes": null,
"id": 1030,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1021,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1012,
"src": "2692:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1023,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1003,
"src": "2710:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1024,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1005,
"src": "2714:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 1025,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1007,
"src": "2721:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 1026,
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1009,
"src": "2727:9:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 1027,
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2458,
"src": "2738:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 1028,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2738:9:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1022,
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1095,
"src": "2702:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 1029,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2702:46:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2692:56:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1031,
"nodeType": "ExpressionStatement",
"src": "2692:56:9"
}
]
},
"documentation": "@dev Allows a Module to execute a Safe transaction without any further confirmations.\n @param to Destination address of module transaction.\n @param value Ether value of module transaction.\n @param data Data payload of module transaction.\n @param operation Operation type of module transaction.",
"id": 1033,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeModule",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1010,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1003,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2417:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1002,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2417:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1005,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2429:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1004,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2429:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1007,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2444:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1006,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2444:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1009,
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2456:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 1008,
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "2456:14:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2416:65:9"
},
"payable": false,
"returnParameters": {
"id": 1013,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1012,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1033,
"src": "2514:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1011,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2514:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2513:14:9"
},
"scope": 1142,
"src": "2394:361:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1094,
"nodeType": "Block",
"src": "2910:399:9",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"id": 1052,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1048,
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1041,
"src": "2924:9:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1049,
"name": "Enum",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 30,
"src": "2937:4:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Enum_$30_$",
"typeString": "type(contract Enum)"
}
},
"id": 1050,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "Operation",
"nodeType": "MemberAccess",
"referencedDeclaration": 29,
"src": "2937:14:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_Operation_$29_$",
"typeString": "type(enum Enum.Operation)"
}
},
"id": 1051,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "Call",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2937:19:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"src": "2924:32:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"id": 1066,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1062,
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1041,
"src": "3034:9:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 1063,
"name": "Enum",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 30,
"src": "3047:4:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Enum_$30_$",
"typeString": "type(contract Enum)"
}
},
"id": 1064,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "Operation",
"nodeType": "MemberAccess",
"referencedDeclaration": 29,
"src": "3047:14:9",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_Operation_$29_$",
"typeString": "type(enum Enum.Operation)"
}
},
"id": 1065,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "DelegateCall",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "3047:27:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"src": "3034:40:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"id": 1091,
"nodeType": "Block",
"src": "3149:154:9",
"statements": [
{
"assignments": [
1076
],
"declarations": [
{
"constant": false,
"id": 1076,
"name": "newContract",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "3163:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1075,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3163:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 1080,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1078,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1039,
"src": "3199:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 1077,
"name": "executeCreate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1132,
"src": "3185:13:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$_t_address_$",
"typeString": "function (bytes memory) returns (address)"
}
},
"id": 1079,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3185:19:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3163:41:9"
},
{
"expression": {
"argumentTypes": null,
"id": 1085,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1081,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1046,
"src": "3218:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 1084,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1082,
"name": "newContract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1076,
"src": "3228:11:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 1083,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3243:1:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "3228:16:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3218:26:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1086,
"nodeType": "ExpressionStatement",
"src": "3218:26:9"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1088,
"name": "newContract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1076,
"src": "3280:11:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1087,
"name": "ContractCreation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 888,
"src": "3263:16:9",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 1089,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3263:29:9",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1090,
"nodeType": "EmitStatement",
"src": "3258:34:9"
}
]
},
"id": 1092,
"nodeType": "IfStatement",
"src": "3030:273:9",
"trueBody": {
"expression": {
"argumentTypes": null,
"id": 1073,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1067,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1046,
"src": "3088:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1069,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1035,
"src": "3118:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1070,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1039,
"src": "3122:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 1071,
"name": "txGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1043,
"src": "3128:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1068,
"name": "executeDelegateCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1123,
"src": "3098:19:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,bytes memory,uint256) returns (bool)"
}
},
"id": 1072,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3098:36:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3088:46:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1074,
"nodeType": "ExpressionStatement",
"src": "3088:46:9"
}
},
"id": 1093,
"nodeType": "IfStatement",
"src": "2920:383:9",
"trueBody": {
"expression": {
"argumentTypes": null,
"id": 1060,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1053,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1046,
"src": "2970:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1055,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1035,
"src": "2992:2:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1056,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1037,
"src": "2996:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 1057,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1039,
"src": "3003:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 1058,
"name": "txGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1043,
"src": "3009:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1054,
"name": "executeCall",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1110,
"src": "2980:11:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,uint256) returns (bool)"
}
},
"id": 1059,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2980:35:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2970:45:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1061,
"nodeType": "ExpressionStatement",
"src": "2970:45:9"
}
}
]
},
"documentation": null,
"id": 1095,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execute",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1044,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1035,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2778:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1034,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2778:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1037,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2790:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1036,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2790:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1039,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2805:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1038,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2805:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1041,
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2817:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 1040,
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "2817:14:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1043,
"name": "txGas",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2843:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1042,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2843:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2777:80:9"
},
"payable": false,
"returnParameters": {
"id": 1047,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1046,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1095,
"src": "2892:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1045,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2892:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2891:14:9"
},
"scope": 1142,
"src": "2761:548:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1109,
"nodeType": "Block",
"src": "3442:182:9",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 1101,
"isOffset": false,
"isSlot": false,
"src": "3596:4:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1101,
"isOffset": false,
"isSlot": false,
"src": "3577:4:9",
"valueSize": 1
}
},
{
"success": {
"declaration": 1106,
"isOffset": false,
"isSlot": false,
"src": "3539:7:9",
"valueSize": 1
}
},
{
"txGas": {
"declaration": 1103,
"isOffset": false,
"isSlot": false,
"src": "3555:5:9",
"valueSize": 1
}
},
{
"to": {
"declaration": 1097,
"isOffset": false,
"isSlot": false,
"src": "3562:2:9",
"valueSize": 1
}
},
{
"value": {
"declaration": 1099,
"isOffset": false,
"isSlot": false,
"src": "3566:5:9",
"valueSize": 1
}
}
],
"id": 1108,
"nodeType": "InlineAssembly",
"operations": "{\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\n}",
"src": "3516:108:9"
}
]
},
"documentation": null,
"id": 1110,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeCall",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1104,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1097,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3336:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1096,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3336:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1099,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3348:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1098,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3348:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1101,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3363:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1100,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3363:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1103,
"name": "txGas",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3375:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1102,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3375:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3335:54:9"
},
"payable": false,
"returnParameters": {
"id": 1107,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1106,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1110,
"src": "3424:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1105,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3424:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3423:14:9"
},
"scope": 1142,
"src": "3315:309:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1122,
"nodeType": "Block",
"src": "3750:183:9",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 1114,
"isOffset": false,
"isSlot": false,
"src": "3905:4:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1114,
"isOffset": false,
"isSlot": false,
"src": "3886:4:9",
"valueSize": 1
}
},
{
"success": {
"declaration": 1119,
"isOffset": false,
"isSlot": false,
"src": "3847:7:9",
"valueSize": 1
}
},
{
"txGas": {
"declaration": 1116,
"isOffset": false,
"isSlot": false,
"src": "3871:5:9",
"valueSize": 1
}
},
{
"to": {
"declaration": 1112,
"isOffset": false,
"isSlot": false,
"src": "3878:2:9",
"valueSize": 1
}
}
],
"id": 1121,
"nodeType": "InlineAssembly",
"operations": "{\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\n}",
"src": "3824:109:9"
}
]
},
"documentation": null,
"id": 1123,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeDelegateCall",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1117,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1112,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3659:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1111,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3659:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1114,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3671:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1113,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3671:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1116,
"name": "txGas",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3683:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1115,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3683:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3658:39:9"
},
"payable": false,
"returnParameters": {
"id": 1120,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1119,
"name": "success",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "3732:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1118,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3732:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3731:14:9"
},
"scope": 1142,
"src": "3630:303:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1131,
"nodeType": "Block",
"src": "4033:167:9",
"statements": [
{
"externalReferences": [
{
"newContract": {
"declaration": 1128,
"isOffset": false,
"isSlot": false,
"src": "4130:11:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1125,
"isOffset": false,
"isSlot": false,
"src": "4159:4:9",
"valueSize": 1
}
},
{
"data": {
"declaration": 1125,
"isOffset": false,
"isSlot": false,
"src": "4178:4:9",
"valueSize": 1
}
}
],
"id": 1130,
"nodeType": "InlineAssembly",
"operations": "{\n newContract := create(0, add(data, 0x20), mload(data))\n}",
"src": "4107:93:9"
}
]
},
"documentation": null,
"id": 1132,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeCreate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1126,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1125,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1132,
"src": "3962:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1124,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3962:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3961:12:9"
},
"payable": false,
"returnParameters": {
"id": 1129,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1128,
"name": "newContract",
"nodeType": "VariableDeclaration",
"scope": 1132,
"src": "4008:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1127,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4008:7:9",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4007:21:9"
},
"scope": 1142,
"src": "3939:261:9",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 1140,
"nodeType": "Block",
"src": "4360:31:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1138,
"name": "modules",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 897,
"src": "4377:7:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage",
"typeString": "contract Module[] storage ref"
}
},
"functionReturnParameters": 1137,
"id": 1139,
"nodeType": "Return",
"src": "4370:14:9"
}
]
},
"documentation": "@dev Returns array of modules.\n @return Array of modules.",
"id": 1141,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getModules",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1133,
"nodeType": "ParameterList",
"parameters": [],
"src": "4298:2:9"
},
"payable": false,
"returnParameters": {
"id": 1137,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1136,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1141,
"src": "4346:8:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_memory_ptr",
"typeString": "contract Module[]"
},
"typeName": {
"baseType": {
"contractScope": null,
"id": 1134,
"name": "Module",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 877,
"src": "4346:6:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Module_$877",
"typeString": "contract Module"
}
},
"id": 1135,
"length": null,
"nodeType": "ArrayTypeName",
"src": "4346:8:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_contract$_Module_$877_$dyn_storage_ptr",
"typeString": "contract Module[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4345:10:9"
},
"scope": 1142,
"src": "4279:112:9",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1143,
"src": "303:4090:9"
}
],
"src": "0:4394:9"
},
"compiler": {
"name": "solc",
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.0",
"updatedAt": "2018-05-10T10:43:07.898Z"
}