{ "contractName": "ModuleManager", "abi": [ { "constant": true, "inputs": [], "name": "SENTINEL_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": "enableModule", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "prevModule", "type": "address" }, { "name": "module", "type": "address" } ], "name": "disableModule", "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": "execTransactionFromModule", "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": "0x608060405234801561001057600080fd5b50610d8f806100206000396000f300608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063468721a714610085578063610b59251461013d57806385e332cd14610180578063a3f4df7e146101d7578063b2494df314610267578063e009cfde146102d3578063ffa1ad7414610336575b005b34801561009157600080fd5b50610123600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291905050506103c6565b604051808215151515815260200191505060405180910390f35b34801561014957600080fd5b5061017e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610462565b005b34801561018c57600080fd5b506101956106db565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e357600080fd5b506101ec6106e0565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561022c578082015181840152602081019050610211565b50505050905090810190601f1680156102595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027357600080fd5b5061027c610719565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156102bf5780820151818401526020810190506102a4565b505050509050019250505060405180910390f35b3480156102df57600080fd5b50610334600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109bc565b005b34801561034257600080fd5b5061034b610beb565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561038b578082015181840152602081019050610370565b50505050905090810190601f1680156103b85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561044b57600080fd5b610458858585855a610c24565b9050949350505050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561049c57600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141580156104f05750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15156104fb57600080fd5b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561057e57600080fd5b600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600181565b6040805190810160405280600e81526020017f4d6f64756c65204d616e6167657200000000000000000000000000000000000081525081565b6060600080606060009250600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505b600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151561082b576000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508280600101935050610787565b8260405190808252806020026020018201604052801561085a5781602001602082028038833980820191505090505b50905060009250600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505b600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415156109b35781818481518110151561090957fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915082806001019350506108c4565b80935050505090565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109f657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610a8e57600080fd5b6000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6040805190810160405280600581526020017f302e302e3100000000000000000000000000000000000000000000000000000081525081565b60008060006002811115610c3457fe5b846002811115610c4057fe5b1415610c5957610c5287878786610d21565b9150610d17565b60016002811115610c6657fe5b846002811115610c7257fe5b1415610c8a57610c83878685610d3a565b9150610d16565b610c9385610d51565b905060008173ffffffffffffffffffffffffffffffffffffffff16141591507f4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b51181604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a15b5b5095945050505050565b6000806000845160208601878987f19050949350505050565b60008060008451602086018786f490509392505050565b60008151602083016000f090509190505600a165627a7a72305820f73984cc7cb90fc15f3fdf21f5e74b21221f6ace06f0742ae3ee75acdbd56ef40029", "deployedBytecode": "0x608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063468721a714610085578063610b59251461013d57806385e332cd14610180578063a3f4df7e146101d7578063b2494df314610267578063e009cfde146102d3578063ffa1ad7414610336575b005b34801561009157600080fd5b50610123600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291905050506103c6565b604051808215151515815260200191505060405180910390f35b34801561014957600080fd5b5061017e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610462565b005b34801561018c57600080fd5b506101956106db565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e357600080fd5b506101ec6106e0565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561022c578082015181840152602081019050610211565b50505050905090810190601f1680156102595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027357600080fd5b5061027c610719565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156102bf5780820151818401526020810190506102a4565b505050509050019250505060405180910390f35b3480156102df57600080fd5b50610334600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109bc565b005b34801561034257600080fd5b5061034b610beb565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561038b578082015181840152602081019050610370565b50505050905090810190601f1680156103b85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561044b57600080fd5b610458858585855a610c24565b9050949350505050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561049c57600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141580156104f05750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15156104fb57600080fd5b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561057e57600080fd5b600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600181565b6040805190810160405280600e81526020017f4d6f64756c65204d616e6167657200000000000000000000000000000000000081525081565b6060600080606060009250600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505b600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151561082b576000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508280600101935050610787565b8260405190808252806020026020018201604052801561085a5781602001602082028038833980820191505090505b50905060009250600080600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505b600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415156109b35781818481518110151561090957fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915082806001019350506108c4565b80935050505090565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109f657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610a8e57600080fd5b6000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6040805190810160405280600581526020017f302e302e3100000000000000000000000000000000000000000000000000000081525081565b60008060006002811115610c3457fe5b846002811115610c4057fe5b1415610c5957610c5287878786610d21565b9150610d17565b60016002811115610c6657fe5b846002811115610c7257fe5b1415610c8a57610c83878685610d3a565b9150610d16565b610c9385610d51565b905060008173ffffffffffffffffffffffffffffffffffffffff16141591507f4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b51181604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a15b5b5095945050505050565b6000806000845160208601878987f19050949350505050565b60008060008451602086018786f490509392505050565b60008151602083016000f090509190505600a165627a7a72305820f73984cc7cb90fc15f3fdf21f5e74b21221f6ace06f0742ae3ee75acdbd56ef40029", "sourceMap": "303:4860:6:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;303:4860:6;;;;;;;", "deployedSourceMap": "303:4860:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2522:377;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2522:377:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1235:391;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1235:391:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;499:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;499:55:6;;;;;;;;;;;;;;;;;;;;;;;;;;;401:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;401:46:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4423:738;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4423:738:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;4423:738:6;;;;;;;;;;;;;;;;;1887:299;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1887:299:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;453:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;453:40:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2522:377;2654:12;2762:1;2739:7;:19;2747:10;2739:19;;;;;;;;;;;;;;;;;;;;;;;;;:24;;;;2731:33;;;;;;;;2846:46;2854:2;2858:5;2865:4;2871:9;2882;2846:7;:46::i;:::-;2836:56;;2522:377;;;;;;:::o;1235:391::-;244:4:8;222:27;;:10;:27;;;214:36;;;;;;;;1401:1:6;1390:6;1382:20;;;;:59;;;;;550:3;1406:35;;1414:6;1406:35;;;;1382:59;1374:68;;;;;;;;1520:1;1501:7;:15;1509:6;1501:15;;;;;;;;;;;;;;;;;;;;;;;;;:20;;;1493:29;;;;;;;;1550:7;:25;550:3;1550:25;;;;;;;;;;;;;;;;;;;;;;;;;1532:7;:15;1540:6;1532:15;;;;;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;1613:6;1585:7;:25;550:3;1585:25;;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;1235:391;:::o;499:55::-;550:3;499:55;:::o;401:46::-;;;;;;;;;;;;;;;;;;;;:::o;4423:738::-;4490:9;4549:19;4582:21;4782:22;4571:1;4549:23;;4606:7;:25;550:3;4606:25;;;;;;;;;;;;;;;;;;;;;;;;;4582:49;;4641:132;550:3;4647:33;;:13;:33;;;;4641:132;;;4712:7;:22;4720:13;4712:22;;;;;;;;;;;;;;;;;;;;;;;;;4696:38;;4748:14;;;;;;;4641:132;;;4821:11;4807:26;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;4807:26:6;;;;4782:51;;4891:1;4877:15;;4918:7;:25;550:3;4918:25;;;;;;;;;;;;;;;;;;;;;;;;;4902:41;;4953:180;550:3;4959:33;;:13;:33;;;;4953:180;;;5029:13;5008:5;5014:11;5008:18;;;;;;;;;;;;;;;;;:34;;;;;;;;;;;5072:7;:22;5080:13;5072:22;;;;;;;;;;;;;;;;;;;;;;;;;5056:38;;5108:14;;;;;;;4953:180;;;5149:5;5142:12;;4423:738;;;;:::o;1887:299::-;244:4:8;222:27;;:10;:27;;;214:36;;;;;;;;2095:6:6;2064:38;;:7;:19;2072:10;2064:19;;;;;;;;;;;;;;;;;;;;;;;;;:38;;;2056:47;;;;;;;;2135:7;:15;2143:6;2135:15;;;;;;;;;;;;;;;;;;;;;;;;;2113:7;:19;2121:10;2113:19;;;;;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;2178:1;2160:7;:15;2168:6;2160:15;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;;;;;;;1887:299;;:::o;453:40::-;;;;;;;;;;;;;;;;;;;;:::o;2905:548::-;3036:12;3307:19;3081;3068:32;;;;;;;;:9;:32;;;;;;;;;3064:383;;;3124:35;3136:2;3140:5;3147:4;3153:5;3124:11;:35::i;:::-;3114:45;;3064:383;;;3191:27;3178:40;;;;;;;;:9;:40;;;;;;;;;3174:273;;;3242:36;3262:2;3266:4;3272:5;3242:19;:36::i;:::-;3232:46;;3174:273;;;3329:19;3343:4;3329:13;:19::i;:::-;3307:41;;3387:1;3372:11;:16;;;;3362:26;;3407:29;3424:11;3407:29;;;;;;;;;;;;;;;;;;;;;;3174:273;3064:383;2905:548;;;;;;;;:::o;3459:309::-;3568:12;3750:1;3747;3740:4;3734:11;3727:4;3721;3717:15;3710:5;3706:2;3699:5;3694:58;3683:69;;3669:93;;;;;;:::o;3774:303::-;3876:12;4059:1;4056;4049:4;4043:11;4036:4;4030;4026:15;4022:2;4015:5;4002:59;3991:70;;3977:94;;;;;:::o;4083:261::-;4152:19;4322:4;4316:11;4309:4;4303;4299:15;4296:1;4289:39;4274:54;;4260:78;;;:::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 - \n/// @author Richard Meissner - \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 address public constant SENTINEL_MODULES = address(0x1);\n\n mapping (address => address) internal modules;\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 require(modules[SENTINEL_MODULES] == 0);\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\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 enableModule(Module module)\n public\n authorized\n {\n // Module address cannot be null or sentinel.\n require(address(module) != 0 && address(module) != SENTINEL_MODULES);\n // Module cannot be added twice.\n require(modules[module] == 0);\n modules[module] = modules[SENTINEL_MODULES];\n modules[SENTINEL_MODULES] = module;\n }\n\n /// @dev Allows to remove a module from the whitelist.\n /// This can only be done via a Safe transaction.\n /// @param prevModule Module that pointed to the module to be removed in the linked list\n /// @param module Module to be removed.\n function disableModule(Module prevModule, Module module)\n public\n authorized\n {\n // Validate module address corresponds to module index.\n require(modules[prevModule] == address(module));\n modules[prevModule] = modules[module];\n modules[module] = 0;\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 execTransactionFromModule(address to, uint256 value, bytes data, Enum.Operation operation)\n public\n returns (bool success)\n {\n // Only whitelisted modules are allowed.\n require(modules[msg.sender] != 0);\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 executeCreate(bytes data)\n internal\n returns (address newContract)\n {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n newContract := create(0, add(data, 0x20), mload(data))\n }\n }\n\n /// @dev Returns array of modules.\n /// @return Array of modules.\n function getModules()\n public\n view\n returns (address[])\n {\n // Calculate module count\n uint256 moduleCount = 0;\n address currentModule = modules[SENTINEL_MODULES];\n while(currentModule != SENTINEL_MODULES) {\n currentModule = modules[currentModule];\n moduleCount ++;\n }\n address[] memory array = new address[](moduleCount);\n\n // populate return array\n moduleCount = 0;\n currentModule = modules[SENTINEL_MODULES];\n while(currentModule != SENTINEL_MODULES) {\n array[moduleCount] = currentModule;\n currentModule = modules[currentModule];\n moduleCount ++;\n }\n return array;\n }\n}\n", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "ast": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "exportedSymbols": { "ModuleManager": [ 971 ] }, "id": 972, "nodeType": "SourceUnit", "nodes": [ { "id": 623, "literals": [ "solidity", "0.4", ".23" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol", "file": "./Module.sol", "id": 624, "nodeType": "ImportDirective", "scope": 972, "sourceUnit": 622, "src": "24:22:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol", "file": "./MasterCopy.sol", "id": 625, "nodeType": "ImportDirective", "scope": 972, "sourceUnit": 581, "src": "47:26:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "file": "./Enum.sol", "id": 626, "nodeType": "ImportDirective", "scope": 972, "sourceUnit": 7, "src": "74:20:6", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 627, "name": "SelfAuthorized", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 1359, "src": "329:14:6", "typeDescriptions": { "typeIdentifier": "t_contract$_SelfAuthorized_$1359", "typeString": "contract SelfAuthorized" } }, "id": 628, "nodeType": "InheritanceSpecifier", "src": "329:14:6" } ], "contractDependencies": [ 1359 ], "contractKind": "contract", "documentation": "@title Module Manager - A contract that manages modules that can execute transactions via this contract\n @author Stefan George - \n @author Richard Meissner - ", "fullyImplemented": true, "id": 971, "linearizedBaseContracts": [ 971, 1359 ], "name": "ModuleManager", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 632, "name": "ContractCreation", "nodeType": "EventDefinition", "parameters": { "id": 631, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 630, "indexed": false, "name": "newContract", "nodeType": "VariableDeclaration", "scope": 632, "src": "374:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 629, "name": "address", "nodeType": "ElementaryTypeName", "src": "374:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "373:21:6" }, "src": "351:44:6" }, { "constant": true, "id": 635, "name": "NAME", "nodeType": "VariableDeclaration", "scope": 971, "src": "401:46:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 633, "name": "string", "nodeType": "ElementaryTypeName", "src": "401:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "4d6f64756c65204d616e61676572", "id": 634, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "431:16:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_12aaa44a1bae367a1e1d9881f5d80283afded6373c2a1ca586db420944084efb", "typeString": "literal_string \"Module Manager\"" }, "value": "Module Manager" }, "visibility": "public" }, { "constant": true, "id": 638, "name": "VERSION", "nodeType": "VariableDeclaration", "scope": 971, "src": "453:40:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 636, "name": "string", "nodeType": "ElementaryTypeName", "src": "453:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "302e302e31", "id": 637, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "486:7:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": true, "id": 643, "name": "SENTINEL_MODULES", "nodeType": "VariableDeclaration", "scope": 971, "src": "499:55:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 639, "name": "address", "nodeType": "ElementaryTypeName", "src": "499:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307831", "id": 641, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "550:3:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "0x1" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "id": 640, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "542:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 642, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "542:12:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "public" }, { "constant": false, "id": 647, "name": "modules", "nodeType": "VariableDeclaration", "scope": 971, "src": "561:45:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" }, "typeName": { "id": 646, "keyType": { "id": 644, "name": "address", "nodeType": "ElementaryTypeName", "src": "570:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "561:28:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" }, "valueType": { "id": 645, "name": "address", "nodeType": "ElementaryTypeName", "src": "581:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } }, "value": null, "visibility": "internal" }, { "body": { "id": 650, "nodeType": "Block", "src": "721:8:6", "statements": [] }, "documentation": "@dev Fallback function accepts Ether transactions.", "id": 651, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 648, "nodeType": "ParameterList", "parameters": [], "src": "681:2:6" }, "payable": true, "returnParameters": { "id": 649, "nodeType": "ParameterList", "parameters": [], "src": "721:0:6" }, "scope": 971, "src": "672:57:6", "stateMutability": "payable", "superFunction": null, "visibility": "external" }, { "body": { "id": 685, "nodeType": "Block", "src": "802:266:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 663, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 659, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "820:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 661, "indexExpression": { "argumentTypes": null, "id": 660, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "828:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "820:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 662, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "849:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "820:30:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 658, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "812:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 664, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "812:39:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 665, "nodeType": "ExpressionStatement", "src": "812:39:6" }, { "expression": { "argumentTypes": null, "id": 670, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 666, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "861:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 668, "indexExpression": { "argumentTypes": null, "id": 667, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "869:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "861:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 669, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "889:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "861:44:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 671, "nodeType": "ExpressionStatement", "src": "861:44:6" }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 674, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 672, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 653, "src": "919:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 673, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "925:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "919:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 684, "nodeType": "IfStatement", "src": "915:146:6", "trueBody": { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 677, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 653, "src": "1040:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 678, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 655, "src": "1044:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 679, "name": "gasleft", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2389, "src": "1050:7:6", "typeDescriptions": { "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 680, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1050:9:6", "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": 676, "name": "executeDelegateCall", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 888, "src": "1020:19:6", "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": 681, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1020:40:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 675, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "1012:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 682, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1012:49:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 683, "nodeType": "ExpressionStatement", "src": "1012:49:6" } } ] }, "documentation": null, "id": 686, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "setupModules", "nodeType": "FunctionDefinition", "parameters": { "id": 656, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 653, "name": "to", "nodeType": "VariableDeclaration", "scope": 686, "src": "757:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 652, "name": "address", "nodeType": "ElementaryTypeName", "src": "757:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 655, "name": "data", "nodeType": "VariableDeclaration", "scope": 686, "src": "769:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 654, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "769:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "756:24:6" }, "payable": false, "returnParameters": { "id": 657, "nodeType": "ParameterList", "parameters": [], "src": "802:0:6" }, "scope": 971, "src": "735:333:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 729, "nodeType": "Block", "src": "1310:316:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 704, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 698, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 695, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1390:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } ], "id": 694, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1382:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 696, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1382:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 697, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1401:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1382:20:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 703, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 700, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1414:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } ], "id": 699, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1406:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 701, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1406:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 702, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "1425:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1406:35:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "1382:59:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 693, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "1374:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 705, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1374:68:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 706, "nodeType": "ExpressionStatement", "src": "1374:68:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 712, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 708, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1501:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 710, "indexExpression": { "argumentTypes": null, "id": 709, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1509:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1501:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 711, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1520:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1501:20:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 707, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "1493:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 713, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1493:29:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 714, "nodeType": "ExpressionStatement", "src": "1493:29:6" }, { "expression": { "argumentTypes": null, "id": 721, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 715, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1532:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 717, "indexExpression": { "argumentTypes": null, "id": 716, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1540:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1532:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 718, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1550:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 720, "indexExpression": { "argumentTypes": null, "id": 719, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "1558:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1550:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1532:43:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 722, "nodeType": "ExpressionStatement", "src": "1532:43:6" }, { "expression": { "argumentTypes": null, "id": 727, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 723, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1585:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 725, "indexExpression": { "argumentTypes": null, "id": 724, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "1593:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1585:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 726, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1613:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "src": "1585:34:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 728, "nodeType": "ExpressionStatement", "src": "1585:34:6" } ] }, "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": 730, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 691, "modifierName": { "argumentTypes": null, "id": 690, "name": "authorized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1358, "src": "1295:10:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1295:10:6" } ], "name": "enableModule", "nodeType": "FunctionDefinition", "parameters": { "id": 689, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 688, "name": "module", "nodeType": "VariableDeclaration", "scope": 730, "src": "1257:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" }, "typeName": { "contractScope": null, "id": 687, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 621, "src": "1257:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "value": null, "visibility": "internal" } ], "src": "1256:15:6" }, "payable": false, "returnParameters": { "id": 692, "nodeType": "ParameterList", "parameters": [], "src": "1310:0:6" }, "scope": 971, "src": "1235:391:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 763, "nodeType": "Block", "src": "1982:204:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 746, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 740, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2064:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 742, "indexExpression": { "argumentTypes": null, "id": 741, "name": "prevModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 732, "src": "2072:10:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2064:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 744, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 734, "src": "2095:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } ], "id": 743, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2087:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 745, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2087:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2064:38:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 739, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "2056:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 747, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2056:47:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 748, "nodeType": "ExpressionStatement", "src": "2056:47:6" }, { "expression": { "argumentTypes": null, "id": 755, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 749, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2113:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 751, "indexExpression": { "argumentTypes": null, "id": 750, "name": "prevModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 732, "src": "2121:10:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2113:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 752, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2135:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 754, "indexExpression": { "argumentTypes": null, "id": 753, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 734, "src": "2143:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2135:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2113:37:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 756, "nodeType": "ExpressionStatement", "src": "2113:37:6" }, { "expression": { "argumentTypes": null, "id": 761, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 757, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2160:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 759, "indexExpression": { "argumentTypes": null, "id": 758, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 734, "src": "2168:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2160:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 760, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2178:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2160:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 762, "nodeType": "ExpressionStatement", "src": "2160:19:6" } ] }, "documentation": "@dev Allows to remove a module from the whitelist.\n This can only be done via a Safe transaction.\n @param prevModule Module that pointed to the module to be removed in the linked list\n @param module Module to be removed.", "id": 764, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 737, "modifierName": { "argumentTypes": null, "id": 736, "name": "authorized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1358, "src": "1967:10:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1967:10:6" } ], "name": "disableModule", "nodeType": "FunctionDefinition", "parameters": { "id": 735, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 732, "name": "prevModule", "nodeType": "VariableDeclaration", "scope": 764, "src": "1910:17:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" }, "typeName": { "contractScope": null, "id": 731, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 621, "src": "1910:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 734, "name": "module", "nodeType": "VariableDeclaration", "scope": 764, "src": "1929:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" }, "typeName": { "contractScope": null, "id": 733, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 621, "src": "1929:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "value": null, "visibility": "internal" } ], "src": "1909:34:6" }, "payable": false, "returnParameters": { "id": 738, "nodeType": "ParameterList", "parameters": [], "src": "1982:0:6" }, "scope": 971, "src": "1887:299:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 797, "nodeType": "Block", "src": "2672:227:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 783, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 778, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2739:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 781, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 779, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2396, "src": "2747:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 780, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2747:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2739:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 782, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2762:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2739:24:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 777, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "2731:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 784, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2731:33:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 785, "nodeType": "ExpressionStatement", "src": "2731:33:6" }, { "expression": { "argumentTypes": null, "id": 795, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 786, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 775, "src": "2836:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 788, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 766, "src": "2854:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 789, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 768, "src": "2858:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 790, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 770, "src": "2865:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "id": 791, "name": "operation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 772, "src": "2871:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 792, "name": "gasleft", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2389, "src": "2882:7:6", "typeDescriptions": { "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 793, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2882:9:6", "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_$5", "typeString": "enum Enum.Operation" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 787, "name": "execute", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 860, "src": "2846:7:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$5_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)" } }, "id": 794, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2846:46:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "2836:56:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 796, "nodeType": "ExpressionStatement", "src": "2836:56:6" } ] }, "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": 798, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "execTransactionFromModule", "nodeType": "FunctionDefinition", "parameters": { "id": 773, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 766, "name": "to", "nodeType": "VariableDeclaration", "scope": 798, "src": "2557:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 765, "name": "address", "nodeType": "ElementaryTypeName", "src": "2557:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 768, "name": "value", "nodeType": "VariableDeclaration", "scope": 798, "src": "2569:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 767, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2569:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 770, "name": "data", "nodeType": "VariableDeclaration", "scope": 798, "src": "2584:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 769, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2584:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 772, "name": "operation", "nodeType": "VariableDeclaration", "scope": 798, "src": "2596:24:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "typeName": { "contractScope": null, "id": 771, "name": "Enum.Operation", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5, "src": "2596:14:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "value": null, "visibility": "internal" } ], "src": "2556:65:6" }, "payable": false, "returnParameters": { "id": 776, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 775, "name": "success", "nodeType": "VariableDeclaration", "scope": 798, "src": "2654:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 774, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2654:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "2653:14:6" }, "scope": 971, "src": "2522:377:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 859, "nodeType": "Block", "src": "3054:399:6", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "id": 817, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 813, "name": "operation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 806, "src": "3068:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 814, "name": "Enum", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6, "src": "3081:4:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Enum_$6_$", "typeString": "type(contract Enum)" } }, "id": 815, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Operation", "nodeType": "MemberAccess", "referencedDeclaration": 5, "src": "3081:14:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$5_$", "typeString": "type(enum Enum.Operation)" } }, "id": 816, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Call", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3081:19:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "src": "3068:32:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "id": 831, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 827, "name": "operation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 806, "src": "3178:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 828, "name": "Enum", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6, "src": "3191:4:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Enum_$6_$", "typeString": "type(contract Enum)" } }, "id": 829, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Operation", "nodeType": "MemberAccess", "referencedDeclaration": 5, "src": "3191:14:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$5_$", "typeString": "type(enum Enum.Operation)" } }, "id": 830, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "DelegateCall", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3191:27:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "src": "3178:40:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 856, "nodeType": "Block", "src": "3293:154:6", "statements": [ { "assignments": [ 841 ], "declarations": [ { "constant": false, "id": 841, "name": "newContract", "nodeType": "VariableDeclaration", "scope": 860, "src": "3307:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 840, "name": "address", "nodeType": "ElementaryTypeName", "src": "3307:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 845, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 843, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "3343:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 842, "name": "executeCreate", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 897, "src": "3329:13:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$_t_address_$", "typeString": "function (bytes memory) returns (address)" } }, "id": 844, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3329:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "3307:41:6" }, { "expression": { "argumentTypes": null, "id": 850, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 846, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 811, "src": "3362:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 849, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 847, "name": "newContract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 841, "src": "3372:11:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 848, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3387:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "3372:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3362:26:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 851, "nodeType": "ExpressionStatement", "src": "3362:26:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 853, "name": "newContract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 841, "src": "3424:11:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 852, "name": "ContractCreation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 632, "src": "3407:16:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 854, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3407:29:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 855, "nodeType": "EmitStatement", "src": "3402:34:6" } ] }, "id": 857, "nodeType": "IfStatement", "src": "3174:273:6", "trueBody": { "expression": { "argumentTypes": null, "id": 838, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 832, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 811, "src": "3232:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 834, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 800, "src": "3262:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 835, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "3266:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "id": 836, "name": "txGas", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 808, "src": "3272:5:6", "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": 833, "name": "executeDelegateCall", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 888, "src": "3242:19:6", "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": 837, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3242:36:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3232:46:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 839, "nodeType": "ExpressionStatement", "src": "3232:46:6" } }, "id": 858, "nodeType": "IfStatement", "src": "3064:383:6", "trueBody": { "expression": { "argumentTypes": null, "id": 825, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 818, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 811, "src": "3114:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 820, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 800, "src": "3136:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 821, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 802, "src": "3140:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 822, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "3147:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "id": 823, "name": "txGas", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 808, "src": "3153:5:6", "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": 819, "name": "executeCall", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 875, "src": "3124:11:6", "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": 824, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3124:35:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3114:45:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 826, "nodeType": "ExpressionStatement", "src": "3114:45:6" } } ] }, "documentation": null, "id": 860, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "execute", "nodeType": "FunctionDefinition", "parameters": { "id": 809, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 800, "name": "to", "nodeType": "VariableDeclaration", "scope": 860, "src": "2922:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 799, "name": "address", "nodeType": "ElementaryTypeName", "src": "2922:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 802, "name": "value", "nodeType": "VariableDeclaration", "scope": 860, "src": "2934:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 801, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2934:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 804, "name": "data", "nodeType": "VariableDeclaration", "scope": 860, "src": "2949:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 803, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2949:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 806, "name": "operation", "nodeType": "VariableDeclaration", "scope": 860, "src": "2961:24:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "typeName": { "contractScope": null, "id": 805, "name": "Enum.Operation", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5, "src": "2961:14:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 808, "name": "txGas", "nodeType": "VariableDeclaration", "scope": 860, "src": "2987:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 807, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2987:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "2921:80:6" }, "payable": false, "returnParameters": { "id": 812, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 811, "name": "success", "nodeType": "VariableDeclaration", "scope": 860, "src": "3036:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 810, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3036:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3035:14:6" }, "scope": 971, "src": "2905:548:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 874, "nodeType": "Block", "src": "3586:182:6", "statements": [ { "externalReferences": [ { "data": { "declaration": 866, "isOffset": false, "isSlot": false, "src": "3740:4:6", "valueSize": 1 } }, { "data": { "declaration": 866, "isOffset": false, "isSlot": false, "src": "3721:4:6", "valueSize": 1 } }, { "success": { "declaration": 871, "isOffset": false, "isSlot": false, "src": "3683:7:6", "valueSize": 1 } }, { "txGas": { "declaration": 868, "isOffset": false, "isSlot": false, "src": "3699:5:6", "valueSize": 1 } }, { "to": { "declaration": 862, "isOffset": false, "isSlot": false, "src": "3706:2:6", "valueSize": 1 } }, { "value": { "declaration": 864, "isOffset": false, "isSlot": false, "src": "3710:5:6", "valueSize": 1 } } ], "id": 873, "nodeType": "InlineAssembly", "operations": "{\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\n}", "src": "3660:108:6" } ] }, "documentation": null, "id": 875, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "executeCall", "nodeType": "FunctionDefinition", "parameters": { "id": 869, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 862, "name": "to", "nodeType": "VariableDeclaration", "scope": 875, "src": "3480:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 861, "name": "address", "nodeType": "ElementaryTypeName", "src": "3480:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 864, "name": "value", "nodeType": "VariableDeclaration", "scope": 875, "src": "3492:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 863, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3492:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 866, "name": "data", "nodeType": "VariableDeclaration", "scope": 875, "src": "3507:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 865, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3507:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 868, "name": "txGas", "nodeType": "VariableDeclaration", "scope": 875, "src": "3519:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 867, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3519:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "3479:54:6" }, "payable": false, "returnParameters": { "id": 872, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 871, "name": "success", "nodeType": "VariableDeclaration", "scope": 875, "src": "3568:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 870, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3568:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3567:14:6" }, "scope": 971, "src": "3459:309:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 887, "nodeType": "Block", "src": "3894:183:6", "statements": [ { "externalReferences": [ { "data": { "declaration": 879, "isOffset": false, "isSlot": false, "src": "4049:4:6", "valueSize": 1 } }, { "data": { "declaration": 879, "isOffset": false, "isSlot": false, "src": "4030:4:6", "valueSize": 1 } }, { "success": { "declaration": 884, "isOffset": false, "isSlot": false, "src": "3991:7:6", "valueSize": 1 } }, { "txGas": { "declaration": 881, "isOffset": false, "isSlot": false, "src": "4015:5:6", "valueSize": 1 } }, { "to": { "declaration": 877, "isOffset": false, "isSlot": false, "src": "4022:2:6", "valueSize": 1 } } ], "id": 886, "nodeType": "InlineAssembly", "operations": "{\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\n}", "src": "3968:109:6" } ] }, "documentation": null, "id": 888, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "executeDelegateCall", "nodeType": "FunctionDefinition", "parameters": { "id": 882, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 877, "name": "to", "nodeType": "VariableDeclaration", "scope": 888, "src": "3803:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 876, "name": "address", "nodeType": "ElementaryTypeName", "src": "3803:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 879, "name": "data", "nodeType": "VariableDeclaration", "scope": 888, "src": "3815:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 878, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3815:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 881, "name": "txGas", "nodeType": "VariableDeclaration", "scope": 888, "src": "3827:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 880, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3827:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "3802:39:6" }, "payable": false, "returnParameters": { "id": 885, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 884, "name": "success", "nodeType": "VariableDeclaration", "scope": 888, "src": "3876:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 883, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3876:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3875:14:6" }, "scope": 971, "src": "3774:303:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 896, "nodeType": "Block", "src": "4177:167:6", "statements": [ { "externalReferences": [ { "newContract": { "declaration": 893, "isOffset": false, "isSlot": false, "src": "4274:11:6", "valueSize": 1 } }, { "data": { "declaration": 890, "isOffset": false, "isSlot": false, "src": "4303:4:6", "valueSize": 1 } }, { "data": { "declaration": 890, "isOffset": false, "isSlot": false, "src": "4322:4:6", "valueSize": 1 } } ], "id": 895, "nodeType": "InlineAssembly", "operations": "{\n newContract := create(0, add(data, 0x20), mload(data))\n}", "src": "4251:93:6" } ] }, "documentation": null, "id": 897, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "executeCreate", "nodeType": "FunctionDefinition", "parameters": { "id": 891, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 890, "name": "data", "nodeType": "VariableDeclaration", "scope": 897, "src": "4106:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 889, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "4106:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "4105:12:6" }, "payable": false, "returnParameters": { "id": 894, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 893, "name": "newContract", "nodeType": "VariableDeclaration", "scope": 897, "src": "4152:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 892, "name": "address", "nodeType": "ElementaryTypeName", "src": "4152:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "4151:21:6" }, "scope": 971, "src": "4083:261:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 969, "nodeType": "Block", "src": "4505:656:6", "statements": [ { "assignments": [ 904 ], "declarations": [ { "constant": false, "id": 904, "name": "moduleCount", "nodeType": "VariableDeclaration", "scope": 970, "src": "4549:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 903, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4549:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 906, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 905, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4571:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "4549:23:6" }, { "assignments": [ 908 ], "declarations": [ { "constant": false, "id": 908, "name": "currentModule", "nodeType": "VariableDeclaration", "scope": 970, "src": "4582:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 907, "name": "address", "nodeType": "ElementaryTypeName", "src": "4582:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 912, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 909, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "4606:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 911, "indexExpression": { "argumentTypes": null, "id": 910, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4614:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4606:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "4582:49:6" }, { "body": { "id": 925, "nodeType": "Block", "src": "4682:91:6", "statements": [ { "expression": { "argumentTypes": null, "id": 920, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 916, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4696:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 917, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "4712:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 919, "indexExpression": { "argumentTypes": null, "id": 918, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4720:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4712:22:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4696:38:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 921, "nodeType": "ExpressionStatement", "src": "4696:38:6" }, { "expression": { "argumentTypes": null, "id": 923, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4748:14:6", "subExpression": { "argumentTypes": null, "id": 922, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "4748:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 924, "nodeType": "ExpressionStatement", "src": "4748:14:6" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 915, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 913, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4647:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 914, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4664:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4647:33:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 926, "nodeType": "WhileStatement", "src": "4641:132:6" }, { "assignments": [ 930 ], "declarations": [ { "constant": false, "id": 930, "name": "array", "nodeType": "VariableDeclaration", "scope": 970, "src": "4782:22:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 928, "name": "address", "nodeType": "ElementaryTypeName", "src": "4782:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 929, "length": null, "nodeType": "ArrayTypeName", "src": "4782:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" } ], "id": 936, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 934, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "4821:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 933, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "4807:13:6", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_$", "typeString": "function (uint256) pure returns (address[] memory)" }, "typeName": { "baseType": { "id": 931, "name": "address", "nodeType": "ElementaryTypeName", "src": "4811:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 932, "length": null, "nodeType": "ArrayTypeName", "src": "4811:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } } }, "id": 935, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4807:26:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory", "typeString": "address[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "4782:51:6" }, { "expression": { "argumentTypes": null, "id": 939, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 937, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "4877:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 938, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4891:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "4877:15:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 940, "nodeType": "ExpressionStatement", "src": "4877:15:6" }, { "expression": { "argumentTypes": null, "id": 945, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 941, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4902:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 942, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "4918:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 944, "indexExpression": { "argumentTypes": null, "id": 943, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4926:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4918:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4902:41:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 946, "nodeType": "ExpressionStatement", "src": "4902:41:6" }, { "body": { "id": 965, "nodeType": "Block", "src": "4994:139:6", "statements": [ { "expression": { "argumentTypes": null, "id": 954, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 950, "name": "array", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 930, "src": "5008:5:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 952, "indexExpression": { "argumentTypes": null, "id": 951, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "5014:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5008:18:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 953, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "5029:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "5008:34:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 955, "nodeType": "ExpressionStatement", "src": "5008:34:6" }, { "expression": { "argumentTypes": null, "id": 960, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 956, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "5056:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 957, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "5072:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 959, "indexExpression": { "argumentTypes": null, "id": 958, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "5080:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5072:22:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "5056:38:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 961, "nodeType": "ExpressionStatement", "src": "5056:38:6" }, { "expression": { "argumentTypes": null, "id": 963, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "5108:14:6", "subExpression": { "argumentTypes": null, "id": 962, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "5108:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 964, "nodeType": "ExpressionStatement", "src": "5108:14:6" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 949, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 947, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4959:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 948, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4976:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4959:33:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 966, "nodeType": "WhileStatement", "src": "4953:180:6" }, { "expression": { "argumentTypes": null, "id": 967, "name": "array", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 930, "src": "5149:5:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "functionReturnParameters": 902, "id": 968, "nodeType": "Return", "src": "5142:12:6" } ] }, "documentation": "@dev Returns array of modules.\n @return Array of modules.", "id": 970, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getModules", "nodeType": "FunctionDefinition", "parameters": { "id": 898, "nodeType": "ParameterList", "parameters": [], "src": "4442:2:6" }, "payable": false, "returnParameters": { "id": 902, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 901, "name": "", "nodeType": "VariableDeclaration", "scope": 970, "src": "4490:9:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 899, "name": "address", "nodeType": "ElementaryTypeName", "src": "4490:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 900, "length": null, "nodeType": "ArrayTypeName", "src": "4490:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" } ], "src": "4489:11:6" }, "scope": 971, "src": "4423:738:6", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 972, "src": "303:4860:6" } ], "src": "0:5164:6" }, "legacyAST": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "exportedSymbols": { "ModuleManager": [ 971 ] }, "id": 972, "nodeType": "SourceUnit", "nodes": [ { "id": 623, "literals": [ "solidity", "0.4", ".23" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol", "file": "./Module.sol", "id": 624, "nodeType": "ImportDirective", "scope": 972, "sourceUnit": 622, "src": "24:22:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol", "file": "./MasterCopy.sol", "id": 625, "nodeType": "ImportDirective", "scope": 972, "sourceUnit": 581, "src": "47:26:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "file": "./Enum.sol", "id": 626, "nodeType": "ImportDirective", "scope": 972, "sourceUnit": 7, "src": "74:20:6", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 627, "name": "SelfAuthorized", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 1359, "src": "329:14:6", "typeDescriptions": { "typeIdentifier": "t_contract$_SelfAuthorized_$1359", "typeString": "contract SelfAuthorized" } }, "id": 628, "nodeType": "InheritanceSpecifier", "src": "329:14:6" } ], "contractDependencies": [ 1359 ], "contractKind": "contract", "documentation": "@title Module Manager - A contract that manages modules that can execute transactions via this contract\n @author Stefan George - \n @author Richard Meissner - ", "fullyImplemented": true, "id": 971, "linearizedBaseContracts": [ 971, 1359 ], "name": "ModuleManager", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 632, "name": "ContractCreation", "nodeType": "EventDefinition", "parameters": { "id": 631, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 630, "indexed": false, "name": "newContract", "nodeType": "VariableDeclaration", "scope": 632, "src": "374:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 629, "name": "address", "nodeType": "ElementaryTypeName", "src": "374:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "373:21:6" }, "src": "351:44:6" }, { "constant": true, "id": 635, "name": "NAME", "nodeType": "VariableDeclaration", "scope": 971, "src": "401:46:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 633, "name": "string", "nodeType": "ElementaryTypeName", "src": "401:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "4d6f64756c65204d616e61676572", "id": 634, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "431:16:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_12aaa44a1bae367a1e1d9881f5d80283afded6373c2a1ca586db420944084efb", "typeString": "literal_string \"Module Manager\"" }, "value": "Module Manager" }, "visibility": "public" }, { "constant": true, "id": 638, "name": "VERSION", "nodeType": "VariableDeclaration", "scope": 971, "src": "453:40:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 636, "name": "string", "nodeType": "ElementaryTypeName", "src": "453:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "302e302e31", "id": 637, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "486:7:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": true, "id": 643, "name": "SENTINEL_MODULES", "nodeType": "VariableDeclaration", "scope": 971, "src": "499:55:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 639, "name": "address", "nodeType": "ElementaryTypeName", "src": "499:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307831", "id": 641, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "550:3:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "0x1" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "id": 640, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "542:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 642, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "542:12:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "public" }, { "constant": false, "id": 647, "name": "modules", "nodeType": "VariableDeclaration", "scope": 971, "src": "561:45:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" }, "typeName": { "id": 646, "keyType": { "id": 644, "name": "address", "nodeType": "ElementaryTypeName", "src": "570:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "561:28:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" }, "valueType": { "id": 645, "name": "address", "nodeType": "ElementaryTypeName", "src": "581:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } }, "value": null, "visibility": "internal" }, { "body": { "id": 650, "nodeType": "Block", "src": "721:8:6", "statements": [] }, "documentation": "@dev Fallback function accepts Ether transactions.", "id": 651, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 648, "nodeType": "ParameterList", "parameters": [], "src": "681:2:6" }, "payable": true, "returnParameters": { "id": 649, "nodeType": "ParameterList", "parameters": [], "src": "721:0:6" }, "scope": 971, "src": "672:57:6", "stateMutability": "payable", "superFunction": null, "visibility": "external" }, { "body": { "id": 685, "nodeType": "Block", "src": "802:266:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 663, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 659, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "820:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 661, "indexExpression": { "argumentTypes": null, "id": 660, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "828:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "820:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 662, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "849:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "820:30:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 658, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "812:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 664, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "812:39:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 665, "nodeType": "ExpressionStatement", "src": "812:39:6" }, { "expression": { "argumentTypes": null, "id": 670, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 666, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "861:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 668, "indexExpression": { "argumentTypes": null, "id": 667, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "869:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "861:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 669, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "889:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "861:44:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 671, "nodeType": "ExpressionStatement", "src": "861:44:6" }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 674, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 672, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 653, "src": "919:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 673, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "925:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "919:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 684, "nodeType": "IfStatement", "src": "915:146:6", "trueBody": { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 677, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 653, "src": "1040:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 678, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 655, "src": "1044:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 679, "name": "gasleft", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2389, "src": "1050:7:6", "typeDescriptions": { "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 680, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1050:9:6", "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": 676, "name": "executeDelegateCall", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 888, "src": "1020:19:6", "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": 681, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1020:40:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 675, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "1012:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 682, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1012:49:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 683, "nodeType": "ExpressionStatement", "src": "1012:49:6" } } ] }, "documentation": null, "id": 686, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "setupModules", "nodeType": "FunctionDefinition", "parameters": { "id": 656, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 653, "name": "to", "nodeType": "VariableDeclaration", "scope": 686, "src": "757:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 652, "name": "address", "nodeType": "ElementaryTypeName", "src": "757:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 655, "name": "data", "nodeType": "VariableDeclaration", "scope": 686, "src": "769:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 654, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "769:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "756:24:6" }, "payable": false, "returnParameters": { "id": 657, "nodeType": "ParameterList", "parameters": [], "src": "802:0:6" }, "scope": 971, "src": "735:333:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 729, "nodeType": "Block", "src": "1310:316:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 704, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 698, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 695, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1390:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } ], "id": 694, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1382:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 696, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1382:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 697, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1401:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1382:20:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 703, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 700, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1414:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } ], "id": 699, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1406:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 701, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1406:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 702, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "1425:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1406:35:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "1382:59:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 693, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "1374:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 705, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1374:68:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 706, "nodeType": "ExpressionStatement", "src": "1374:68:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 712, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 708, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1501:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 710, "indexExpression": { "argumentTypes": null, "id": 709, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1509:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1501:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 711, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1520:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1501:20:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 707, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "1493:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 713, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1493:29:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 714, "nodeType": "ExpressionStatement", "src": "1493:29:6" }, { "expression": { "argumentTypes": null, "id": 721, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 715, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1532:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 717, "indexExpression": { "argumentTypes": null, "id": 716, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1540:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1532:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 718, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1550:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 720, "indexExpression": { "argumentTypes": null, "id": 719, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "1558:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1550:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1532:43:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 722, "nodeType": "ExpressionStatement", "src": "1532:43:6" }, { "expression": { "argumentTypes": null, "id": 727, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 723, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "1585:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 725, "indexExpression": { "argumentTypes": null, "id": 724, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "1593:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1585:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 726, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 688, "src": "1613:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "src": "1585:34:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 728, "nodeType": "ExpressionStatement", "src": "1585:34:6" } ] }, "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": 730, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 691, "modifierName": { "argumentTypes": null, "id": 690, "name": "authorized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1358, "src": "1295:10:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1295:10:6" } ], "name": "enableModule", "nodeType": "FunctionDefinition", "parameters": { "id": 689, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 688, "name": "module", "nodeType": "VariableDeclaration", "scope": 730, "src": "1257:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" }, "typeName": { "contractScope": null, "id": 687, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 621, "src": "1257:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "value": null, "visibility": "internal" } ], "src": "1256:15:6" }, "payable": false, "returnParameters": { "id": 692, "nodeType": "ParameterList", "parameters": [], "src": "1310:0:6" }, "scope": 971, "src": "1235:391:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 763, "nodeType": "Block", "src": "1982:204:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 746, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 740, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2064:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 742, "indexExpression": { "argumentTypes": null, "id": 741, "name": "prevModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 732, "src": "2072:10:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2064:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 744, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 734, "src": "2095:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } ], "id": 743, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2087:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 745, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2087:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2064:38:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 739, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "2056:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 747, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2056:47:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 748, "nodeType": "ExpressionStatement", "src": "2056:47:6" }, { "expression": { "argumentTypes": null, "id": 755, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 749, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2113:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 751, "indexExpression": { "argumentTypes": null, "id": 750, "name": "prevModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 732, "src": "2121:10:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2113:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 752, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2135:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 754, "indexExpression": { "argumentTypes": null, "id": 753, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 734, "src": "2143:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2135:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2113:37:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 756, "nodeType": "ExpressionStatement", "src": "2113:37:6" }, { "expression": { "argumentTypes": null, "id": 761, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 757, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2160:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 759, "indexExpression": { "argumentTypes": null, "id": 758, "name": "module", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 734, "src": "2168:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2160:15:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 760, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2178:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2160:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 762, "nodeType": "ExpressionStatement", "src": "2160:19:6" } ] }, "documentation": "@dev Allows to remove a module from the whitelist.\n This can only be done via a Safe transaction.\n @param prevModule Module that pointed to the module to be removed in the linked list\n @param module Module to be removed.", "id": 764, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 737, "modifierName": { "argumentTypes": null, "id": 736, "name": "authorized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1358, "src": "1967:10:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1967:10:6" } ], "name": "disableModule", "nodeType": "FunctionDefinition", "parameters": { "id": 735, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 732, "name": "prevModule", "nodeType": "VariableDeclaration", "scope": 764, "src": "1910:17:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" }, "typeName": { "contractScope": null, "id": 731, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 621, "src": "1910:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 734, "name": "module", "nodeType": "VariableDeclaration", "scope": 764, "src": "1929:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" }, "typeName": { "contractScope": null, "id": 733, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 621, "src": "1929:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$621", "typeString": "contract Module" } }, "value": null, "visibility": "internal" } ], "src": "1909:34:6" }, "payable": false, "returnParameters": { "id": 738, "nodeType": "ParameterList", "parameters": [], "src": "1982:0:6" }, "scope": 971, "src": "1887:299:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 797, "nodeType": "Block", "src": "2672:227:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 783, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 778, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "2739:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 781, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 779, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2396, "src": "2747:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 780, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2747:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2739:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 782, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2762:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2739:24:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 777, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2399, 2400 ], "referencedDeclaration": 2399, "src": "2731:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 784, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2731:33:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 785, "nodeType": "ExpressionStatement", "src": "2731:33:6" }, { "expression": { "argumentTypes": null, "id": 795, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 786, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 775, "src": "2836:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 788, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 766, "src": "2854:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 789, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 768, "src": "2858:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 790, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 770, "src": "2865:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "id": 791, "name": "operation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 772, "src": "2871:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 792, "name": "gasleft", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2389, "src": "2882:7:6", "typeDescriptions": { "typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 793, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2882:9:6", "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_$5", "typeString": "enum Enum.Operation" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 787, "name": "execute", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 860, "src": "2846:7:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$5_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)" } }, "id": 794, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2846:46:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "2836:56:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 796, "nodeType": "ExpressionStatement", "src": "2836:56:6" } ] }, "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": 798, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "execTransactionFromModule", "nodeType": "FunctionDefinition", "parameters": { "id": 773, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 766, "name": "to", "nodeType": "VariableDeclaration", "scope": 798, "src": "2557:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 765, "name": "address", "nodeType": "ElementaryTypeName", "src": "2557:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 768, "name": "value", "nodeType": "VariableDeclaration", "scope": 798, "src": "2569:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 767, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2569:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 770, "name": "data", "nodeType": "VariableDeclaration", "scope": 798, "src": "2584:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 769, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2584:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 772, "name": "operation", "nodeType": "VariableDeclaration", "scope": 798, "src": "2596:24:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "typeName": { "contractScope": null, "id": 771, "name": "Enum.Operation", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5, "src": "2596:14:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "value": null, "visibility": "internal" } ], "src": "2556:65:6" }, "payable": false, "returnParameters": { "id": 776, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 775, "name": "success", "nodeType": "VariableDeclaration", "scope": 798, "src": "2654:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 774, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2654:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "2653:14:6" }, "scope": 971, "src": "2522:377:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 859, "nodeType": "Block", "src": "3054:399:6", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "id": 817, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 813, "name": "operation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 806, "src": "3068:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 814, "name": "Enum", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6, "src": "3081:4:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Enum_$6_$", "typeString": "type(contract Enum)" } }, "id": 815, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Operation", "nodeType": "MemberAccess", "referencedDeclaration": 5, "src": "3081:14:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$5_$", "typeString": "type(enum Enum.Operation)" } }, "id": 816, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Call", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3081:19:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "src": "3068:32:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "id": 831, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 827, "name": "operation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 806, "src": "3178:9:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 828, "name": "Enum", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6, "src": "3191:4:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Enum_$6_$", "typeString": "type(contract Enum)" } }, "id": 829, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Operation", "nodeType": "MemberAccess", "referencedDeclaration": 5, "src": "3191:14:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$5_$", "typeString": "type(enum Enum.Operation)" } }, "id": 830, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "DelegateCall", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3191:27:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "src": "3178:40:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 856, "nodeType": "Block", "src": "3293:154:6", "statements": [ { "assignments": [ 841 ], "declarations": [ { "constant": false, "id": 841, "name": "newContract", "nodeType": "VariableDeclaration", "scope": 860, "src": "3307:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 840, "name": "address", "nodeType": "ElementaryTypeName", "src": "3307:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 845, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 843, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "3343:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 842, "name": "executeCreate", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 897, "src": "3329:13:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$_t_address_$", "typeString": "function (bytes memory) returns (address)" } }, "id": 844, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3329:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "3307:41:6" }, { "expression": { "argumentTypes": null, "id": 850, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 846, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 811, "src": "3362:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 849, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 847, "name": "newContract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 841, "src": "3372:11:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 848, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3387:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "3372:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3362:26:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 851, "nodeType": "ExpressionStatement", "src": "3362:26:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 853, "name": "newContract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 841, "src": "3424:11:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 852, "name": "ContractCreation", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 632, "src": "3407:16:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 854, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3407:29:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 855, "nodeType": "EmitStatement", "src": "3402:34:6" } ] }, "id": 857, "nodeType": "IfStatement", "src": "3174:273:6", "trueBody": { "expression": { "argumentTypes": null, "id": 838, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 832, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 811, "src": "3232:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 834, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 800, "src": "3262:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 835, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "3266:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "id": 836, "name": "txGas", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 808, "src": "3272:5:6", "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": 833, "name": "executeDelegateCall", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 888, "src": "3242:19:6", "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": 837, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3242:36:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3232:46:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 839, "nodeType": "ExpressionStatement", "src": "3232:46:6" } }, "id": 858, "nodeType": "IfStatement", "src": "3064:383:6", "trueBody": { "expression": { "argumentTypes": null, "id": 825, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 818, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 811, "src": "3114:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 820, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 800, "src": "3136:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 821, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 802, "src": "3140:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 822, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 804, "src": "3147:4:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "id": 823, "name": "txGas", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 808, "src": "3153:5:6", "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": 819, "name": "executeCall", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 875, "src": "3124:11:6", "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": 824, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3124:35:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3114:45:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 826, "nodeType": "ExpressionStatement", "src": "3114:45:6" } } ] }, "documentation": null, "id": 860, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "execute", "nodeType": "FunctionDefinition", "parameters": { "id": 809, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 800, "name": "to", "nodeType": "VariableDeclaration", "scope": 860, "src": "2922:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 799, "name": "address", "nodeType": "ElementaryTypeName", "src": "2922:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 802, "name": "value", "nodeType": "VariableDeclaration", "scope": 860, "src": "2934:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 801, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2934:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 804, "name": "data", "nodeType": "VariableDeclaration", "scope": 860, "src": "2949:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 803, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2949:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 806, "name": "operation", "nodeType": "VariableDeclaration", "scope": 860, "src": "2961:24:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" }, "typeName": { "contractScope": null, "id": 805, "name": "Enum.Operation", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5, "src": "2961:14:6", "typeDescriptions": { "typeIdentifier": "t_enum$_Operation_$5", "typeString": "enum Enum.Operation" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 808, "name": "txGas", "nodeType": "VariableDeclaration", "scope": 860, "src": "2987:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 807, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2987:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "2921:80:6" }, "payable": false, "returnParameters": { "id": 812, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 811, "name": "success", "nodeType": "VariableDeclaration", "scope": 860, "src": "3036:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 810, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3036:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3035:14:6" }, "scope": 971, "src": "2905:548:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 874, "nodeType": "Block", "src": "3586:182:6", "statements": [ { "externalReferences": [ { "data": { "declaration": 866, "isOffset": false, "isSlot": false, "src": "3740:4:6", "valueSize": 1 } }, { "data": { "declaration": 866, "isOffset": false, "isSlot": false, "src": "3721:4:6", "valueSize": 1 } }, { "success": { "declaration": 871, "isOffset": false, "isSlot": false, "src": "3683:7:6", "valueSize": 1 } }, { "txGas": { "declaration": 868, "isOffset": false, "isSlot": false, "src": "3699:5:6", "valueSize": 1 } }, { "to": { "declaration": 862, "isOffset": false, "isSlot": false, "src": "3706:2:6", "valueSize": 1 } }, { "value": { "declaration": 864, "isOffset": false, "isSlot": false, "src": "3710:5:6", "valueSize": 1 } } ], "id": 873, "nodeType": "InlineAssembly", "operations": "{\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\n}", "src": "3660:108:6" } ] }, "documentation": null, "id": 875, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "executeCall", "nodeType": "FunctionDefinition", "parameters": { "id": 869, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 862, "name": "to", "nodeType": "VariableDeclaration", "scope": 875, "src": "3480:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 861, "name": "address", "nodeType": "ElementaryTypeName", "src": "3480:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 864, "name": "value", "nodeType": "VariableDeclaration", "scope": 875, "src": "3492:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 863, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3492:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 866, "name": "data", "nodeType": "VariableDeclaration", "scope": 875, "src": "3507:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 865, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3507:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 868, "name": "txGas", "nodeType": "VariableDeclaration", "scope": 875, "src": "3519:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 867, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3519:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "3479:54:6" }, "payable": false, "returnParameters": { "id": 872, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 871, "name": "success", "nodeType": "VariableDeclaration", "scope": 875, "src": "3568:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 870, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3568:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3567:14:6" }, "scope": 971, "src": "3459:309:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 887, "nodeType": "Block", "src": "3894:183:6", "statements": [ { "externalReferences": [ { "data": { "declaration": 879, "isOffset": false, "isSlot": false, "src": "4049:4:6", "valueSize": 1 } }, { "data": { "declaration": 879, "isOffset": false, "isSlot": false, "src": "4030:4:6", "valueSize": 1 } }, { "success": { "declaration": 884, "isOffset": false, "isSlot": false, "src": "3991:7:6", "valueSize": 1 } }, { "txGas": { "declaration": 881, "isOffset": false, "isSlot": false, "src": "4015:5:6", "valueSize": 1 } }, { "to": { "declaration": 877, "isOffset": false, "isSlot": false, "src": "4022:2:6", "valueSize": 1 } } ], "id": 886, "nodeType": "InlineAssembly", "operations": "{\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\n}", "src": "3968:109:6" } ] }, "documentation": null, "id": 888, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "executeDelegateCall", "nodeType": "FunctionDefinition", "parameters": { "id": 882, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 877, "name": "to", "nodeType": "VariableDeclaration", "scope": 888, "src": "3803:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 876, "name": "address", "nodeType": "ElementaryTypeName", "src": "3803:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 879, "name": "data", "nodeType": "VariableDeclaration", "scope": 888, "src": "3815:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 878, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3815:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 881, "name": "txGas", "nodeType": "VariableDeclaration", "scope": 888, "src": "3827:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 880, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3827:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "3802:39:6" }, "payable": false, "returnParameters": { "id": 885, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 884, "name": "success", "nodeType": "VariableDeclaration", "scope": 888, "src": "3876:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 883, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3876:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3875:14:6" }, "scope": 971, "src": "3774:303:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 896, "nodeType": "Block", "src": "4177:167:6", "statements": [ { "externalReferences": [ { "newContract": { "declaration": 893, "isOffset": false, "isSlot": false, "src": "4274:11:6", "valueSize": 1 } }, { "data": { "declaration": 890, "isOffset": false, "isSlot": false, "src": "4303:4:6", "valueSize": 1 } }, { "data": { "declaration": 890, "isOffset": false, "isSlot": false, "src": "4322:4:6", "valueSize": 1 } } ], "id": 895, "nodeType": "InlineAssembly", "operations": "{\n newContract := create(0, add(data, 0x20), mload(data))\n}", "src": "4251:93:6" } ] }, "documentation": null, "id": 897, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "executeCreate", "nodeType": "FunctionDefinition", "parameters": { "id": 891, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 890, "name": "data", "nodeType": "VariableDeclaration", "scope": 897, "src": "4106:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 889, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "4106:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "4105:12:6" }, "payable": false, "returnParameters": { "id": 894, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 893, "name": "newContract", "nodeType": "VariableDeclaration", "scope": 897, "src": "4152:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 892, "name": "address", "nodeType": "ElementaryTypeName", "src": "4152:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "4151:21:6" }, "scope": 971, "src": "4083:261:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 969, "nodeType": "Block", "src": "4505:656:6", "statements": [ { "assignments": [ 904 ], "declarations": [ { "constant": false, "id": 904, "name": "moduleCount", "nodeType": "VariableDeclaration", "scope": 970, "src": "4549:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 903, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4549:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 906, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 905, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4571:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "4549:23:6" }, { "assignments": [ 908 ], "declarations": [ { "constant": false, "id": 908, "name": "currentModule", "nodeType": "VariableDeclaration", "scope": 970, "src": "4582:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 907, "name": "address", "nodeType": "ElementaryTypeName", "src": "4582:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 912, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 909, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "4606:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 911, "indexExpression": { "argumentTypes": null, "id": 910, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4614:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4606:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "4582:49:6" }, { "body": { "id": 925, "nodeType": "Block", "src": "4682:91:6", "statements": [ { "expression": { "argumentTypes": null, "id": 920, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 916, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4696:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 917, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "4712:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 919, "indexExpression": { "argumentTypes": null, "id": 918, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4720:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4712:22:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4696:38:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 921, "nodeType": "ExpressionStatement", "src": "4696:38:6" }, { "expression": { "argumentTypes": null, "id": 923, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4748:14:6", "subExpression": { "argumentTypes": null, "id": 922, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "4748:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 924, "nodeType": "ExpressionStatement", "src": "4748:14:6" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 915, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 913, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4647:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 914, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4664:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4647:33:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 926, "nodeType": "WhileStatement", "src": "4641:132:6" }, { "assignments": [ 930 ], "declarations": [ { "constant": false, "id": 930, "name": "array", "nodeType": "VariableDeclaration", "scope": 970, "src": "4782:22:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 928, "name": "address", "nodeType": "ElementaryTypeName", "src": "4782:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 929, "length": null, "nodeType": "ArrayTypeName", "src": "4782:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" } ], "id": 936, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 934, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "4821:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 933, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "4807:13:6", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_$", "typeString": "function (uint256) pure returns (address[] memory)" }, "typeName": { "baseType": { "id": 931, "name": "address", "nodeType": "ElementaryTypeName", "src": "4811:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 932, "length": null, "nodeType": "ArrayTypeName", "src": "4811:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } } }, "id": 935, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4807:26:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory", "typeString": "address[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "4782:51:6" }, { "expression": { "argumentTypes": null, "id": 939, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 937, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "4877:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 938, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4891:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "4877:15:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 940, "nodeType": "ExpressionStatement", "src": "4877:15:6" }, { "expression": { "argumentTypes": null, "id": 945, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 941, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4902:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 942, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "4918:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 944, "indexExpression": { "argumentTypes": null, "id": 943, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4926:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4918:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4902:41:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 946, "nodeType": "ExpressionStatement", "src": "4902:41:6" }, { "body": { "id": 965, "nodeType": "Block", "src": "4994:139:6", "statements": [ { "expression": { "argumentTypes": null, "id": 954, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 950, "name": "array", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 930, "src": "5008:5:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 952, "indexExpression": { "argumentTypes": null, "id": 951, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "5014:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5008:18:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 953, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "5029:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "5008:34:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 955, "nodeType": "ExpressionStatement", "src": "5008:34:6" }, { "expression": { "argumentTypes": null, "id": 960, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 956, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "5056:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 957, "name": "modules", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 647, "src": "5072:7:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_address_$", "typeString": "mapping(address => address)" } }, "id": 959, "indexExpression": { "argumentTypes": null, "id": 958, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "5080:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5072:22:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "5056:38:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 961, "nodeType": "ExpressionStatement", "src": "5056:38:6" }, { "expression": { "argumentTypes": null, "id": 963, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "5108:14:6", "subExpression": { "argumentTypes": null, "id": 962, "name": "moduleCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "5108:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 964, "nodeType": "ExpressionStatement", "src": "5108:14:6" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 949, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 947, "name": "currentModule", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 908, "src": "4959:13:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 948, "name": "SENTINEL_MODULES", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 643, "src": "4976:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "4959:33:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 966, "nodeType": "WhileStatement", "src": "4953:180:6" }, { "expression": { "argumentTypes": null, "id": 967, "name": "array", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 930, "src": "5149:5:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "functionReturnParameters": 902, "id": 968, "nodeType": "Return", "src": "5142:12:6" } ] }, "documentation": "@dev Returns array of modules.\n @return Array of modules.", "id": 970, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getModules", "nodeType": "FunctionDefinition", "parameters": { "id": 898, "nodeType": "ParameterList", "parameters": [], "src": "4442:2:6" }, "payable": false, "returnParameters": { "id": 902, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 901, "name": "", "nodeType": "VariableDeclaration", "scope": 970, "src": "4490:9:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 899, "name": "address", "nodeType": "ElementaryTypeName", "src": "4490:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 900, "length": null, "nodeType": "ArrayTypeName", "src": "4490:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" } ], "src": "4489:11:6" }, "scope": 971, "src": "4423:738:6", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 972, "src": "303:4860:6" } ], "src": "0:5164:6" }, "compiler": { "name": "solc", "version": "0.4.23+commit.124ca40d.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.0", "updatedAt": "2018-05-16T10:51:14.748Z" }