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

4059 lines
176 KiB
JSON
Raw Normal View History

2018-05-10 11:12:13 +00:00
{
"contractName": "WhitelistModule",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "isWhitelisted",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "manager",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_masterCopy",
"type": "address"
}
],
"name": "changeMasterCopy",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"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"
},
{
"constant": false,
"inputs": [
{
"name": "accounts",
"type": "address[]"
}
],
"name": "setup",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "account",
"type": "address"
}
],
"name": "addToWhitelist",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "account",
"type": "address"
}
],
"name": "removeFromWhitelist",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
}
],
"name": "executeWhitelisted",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
2018-05-16 13:46:33 +00:00
"bytecode": "0x608060405234801561001057600080fd5b50610c78806100206000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632f2f3be11461009e5780633af32abf14610149578063481c6a75146101a45780637de7edef146101fb5780638ab1d6811461023e578063a3f4df7e14610281578063bd5b853b14610311578063e43252d714610377578063ffa1ad74146103ba575b600080fd5b3480156100aa57600080fd5b5061012f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061044a565b604051808215151515815260200191505060405180910390f35b34801561015557600080fd5b5061018a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061073d565b604051808215151515815260200191505060405180910390f35b3480156101b057600080fd5b506101b961075d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561020757600080fd5b5061023c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610783565b005b34801561024a57600080fd5b5061027f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610848565b005b34801561028d57600080fd5b50610296610957565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102d65780820151818401526020810190506102bb565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561031d57600080fd5b5061037560048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610990565b005b34801561038357600080fd5b506103b8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a53565b005b3480156103c657600080fd5b506103cf610b89565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561040f5780820151818401526020810190506103f4565b50505050905090810190601f16801561043c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f54bf6e336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561050957600080fd5b505af115801561051d573d6000803e3d6000fd5b505050506040513d602081101561053357600080fd5b8101908080519060200190929190505050151561054f57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156105a757600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663468721a785858560006040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018060200183600281111561066157fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b838110156106a1578082015181840152602081019050610686565b50505050905090810190601f1680156106ce5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156106f057600080fd5b505af1158015610704573d6000803e3d6000fd5b505050506040513d602081101561071a57600080fd5b8101908080519060200190929190505050151561073657600080fd5b9392505050565b60026020528060005260406000206000915054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515
"deployedBytecode": "0x608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632f2f3be11461009e5780633af32abf14610149578063481c6a75146101a45780637de7edef146101fb5780638ab1d6811461023e578063a3f4df7e14610281578063bd5b853b14610311578063e43252d714610377578063ffa1ad74146103ba575b600080fd5b3480156100aa57600080fd5b5061012f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061044a565b604051808215151515815260200191505060405180910390f35b34801561015557600080fd5b5061018a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061073d565b604051808215151515815260200191505060405180910390f35b3480156101b057600080fd5b506101b961075d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561020757600080fd5b5061023c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610783565b005b34801561024a57600080fd5b5061027f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610848565b005b34801561028d57600080fd5b50610296610957565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102d65780820151818401526020810190506102bb565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561031d57600080fd5b5061037560048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610990565b005b34801561038357600080fd5b506103b8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a53565b005b3480156103c657600080fd5b506103cf610b89565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561040f5780820151818401526020810190506103f4565b50505050905090810190601f16801561043c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f54bf6e336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561050957600080fd5b505af115801561051d573d6000803e3d6000fd5b505050506040513d602081101561053357600080fd5b8101908080519060200190929190505050151561054f57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156105a757600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663468721a785858560006040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018060200183600281111561066157fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b838110156106a1578082015181840152602081019050610686565b50505050905090810190601f1680156106ce5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156106f057600080fd5b505af1158015610704573d6000803e3d6000fd5b505050506040513d602081101561071a57600080fd5b8101908080519060200190929190505050151561073657600080fd5b9392505050565b60026020528060005260406000206000915054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107df57600080fd5b60008173ffffffffffffffffffffffffffffff
"sourceMap": "289:1968:14:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;289:1968:14;;;;;;;",
"deployedSourceMap": "289:1968:14:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1864:391;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1864:391:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;498:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:46:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;262:28:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;262:28:5;;;;;;;;;;;;;;;;;;;;;;;;;;;626:208:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:208:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;1438:172:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1438:172:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;331:48;;8:9:-1;5:2;;;30:1;27;20:12;5:2;331:48:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;331:48:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;667:270;;8:9:-1;5:2;;;30:1;27;20:12;5:2;667:270:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1086:198;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1086:198:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;385:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;385:40:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;385:40:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1864:391;1963:4;2093:7;;;;;;;;;;;2080:29;;;2110:10;2080:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2080:41:14;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2080:41:14;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2080:41:14;;;;;;;;;;;;;;;;2072:50;;;;;;;;2140:13;:17;2154:2;2140:17;;;;;;;;;;;;;;;;;;;;;;;;;2132:26;;;;;;;;2176:7;;;;;;;;;;;:33;;;2210:2;2214:5;2221:4;2227:19;2176:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;2176:71:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2176:71:14;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2176:71:14;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2176:71:14;;;;;;;;;;;;;;;;2168:80;;;;;;;;1864:391;;;;;:::o;498:46::-;;;;;;;;;;;;;;;;;;;;;;:::o;262:28:5:-;;;;;;;;;;;;;:::o;626:208:4:-;359:7:5;;;;;;;;;;;337:30;;:10;:30;;;329:39;;;;;;;;791:1:4;776:11;:16;;;;768:25;;;;;;;;816:11;803:10;;:24;;;;;;;;;;;;;;;;;;626:208;:::o;1438:172:14:-;359:7:5;;;;;;;;;;;337:30;;:10;:30;;;329:39;;;;;;;;1540:13:14;:22;1554:7;1540:22;;;;;;;;;;;;;;;;;;;;;;;;;1532:31;;;;;;;;1598:5;1573:13;:22;1587:7;1573:22;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1438:172;:::o;331:48::-;;;;;;;;;;;;;;;;;;;;:::o;667:270::-;758:9;813:15;731:12;:10;:12::i;:::-;770:1;758:13;;753:178;777:8;:15;773:1;:19;753:178;;;831:8;840:1;831:11;;;;;;;;;;;;;;;;;;813:29;;875:1;864:7;:12;;;;856:21;;;;;;;;916:4;891:13;:22;905:7;891:22;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;794:3;;;;;;;753:178;;;667:270;;;:::o;1086:198::-;359:7:5;;;;;;;;;;;337:30;;:10;:30;;;329:39;;;;;;;;1194:1:14;1183:7;:12;;;;1175:21;;;;;;;;1215:13;:22;1229:7;1215:22;;;;;;;;;;;;;;;;;;;;;;;;;1214:23;1206:32;;;;;;;;1273:4;1248:13;:22;1262:7;1248:22;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;1086:198;:::o;385:40::-;;;;;;;;;;;;;;;;;;;;:::o;392:268:5:-;606:1;594:7;;;;;;;;;;;586:21;;;578:30;;;;;;;;642:10;618:7;;:35;;;;;;;;;;;;;;;;;;392:268::o",
"source": "pragma solidity 0.4.23;\nimport \"../Enum.sol\";\nimport \"../Module.sol\";\nimport \"../ModuleManager.sol\";\nimport \"../OwnerManager.sol\";\n\n\n/// @title Whitelist Module - Allows to execute transactions to whitelisted addresses without confirmations.\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract WhitelistModule is Module {\n\n string public constant NAME = \"Whitelist Module\";\n string public constant VERSION = \"0.0.1\";\n\n // isWhitelisted mapping maps destination address to boolean.\n mapping (address => bool) public isWhitelisted;\n\n /// @dev Setup function sets initial storage of contract.\n /// @param accounts List of whitelisted accounts.\n function setup(address[] accounts)\n public\n {\n setManager();\n for (uint256 i = 0; i < accounts.length; i++) {\n address account = accounts[i];\n require(account != 0);\n isWhitelisted[account] = true;\n }\n }\n\n /// @dev Allows to add destination to whitelist. This can only be done via a Safe transaction.\n /// @param account Destination address.\n function addToWhitelist(address account)\n public\n authorized\n {\n require(account != 0);\n require(!isWhitelisted[account]);\n isWhitelisted[account] = true;\n }\n\n /// @dev Allows to remove destination from whitelist. This can only be done via a Safe transaction.\n /// @param account Destination address.\n function removeFromWhitelist(address account)\n public\n authorized\n {\n require(isWhitelisted[account]);\n isWhitelisted[account] = false;\n }\n\n /// @dev Returns if Safe transaction is to a whitelisted destination.\n /// @param to Whitelisted destination address.\n /// @param value Not checked.\n /// @param data Not checked.\n /// @return Returns if transaction can be executed.\n function executeWhitelisted(address to, uint256 value, bytes data)\n public\n returns (bool)\n {\n // Only Safe owners are allowed to execute transactions to whitelisted accounts.\n require(OwnerManager(manager).isOwner(msg.sender));\n require(isWhitelisted[to]);\n require(manager.execTransactionFromModule(to, value, data, Enum.Operation.Call));\n }\n}\n",
2018-05-10 11:12:13 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/WhitelistModule.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/WhitelistModule.sol",
"exportedSymbols": {
"WhitelistModule": [
2018-05-16 13:46:33 +00:00
2381
2018-05-10 11:12:13 +00:00
]
},
2018-05-16 13:46:33 +00:00
"id": 2382,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-16 13:46:33 +00:00
"id": 2236,
2018-05-10 11:12:13 +00:00
"literals": [
"solidity",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
2018-05-16 13:46:33 +00:00
"src": "0:23:14"
2018-05-10 11:12:13 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol",
"file": "../Enum.sol",
2018-05-16 13:46:33 +00:00
"id": 2237,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 7,
"src": "24:21:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol",
"file": "../Module.sol",
2018-05-16 13:46:33 +00:00
"id": 2238,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 622,
"src": "46:23:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol",
"file": "../ModuleManager.sol",
2018-05-16 13:46:33 +00:00
"id": 2239,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 972,
"src": "70:30:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol",
"file": "../OwnerManager.sol",
2018-05-16 13:46:33 +00:00
"id": 2240,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 1344,
"src": "101:29:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-16 13:46:33 +00:00
"id": 2241,
2018-05-10 11:12:13 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 621,
"src": "317:6:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_Module_$621",
2018-05-10 11:12:13 +00:00
"typeString": "contract Module"
}
},
2018-05-16 13:46:33 +00:00
"id": 2242,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-16 13:46:33 +00:00
"src": "317:6:14"
2018-05-10 11:12:13 +00:00
}
],
"contractDependencies": [
2018-05-16 13:46:33 +00:00
580,
621,
1359
2018-05-10 11:12:13 +00:00
],
"contractKind": "contract",
"documentation": "@title Whitelist Module - Allows to execute transactions to whitelisted addresses without confirmations.\n @author Stefan George - <stefan@gnosis.pm>",
"fullyImplemented": true,
2018-05-16 13:46:33 +00:00
"id": 2381,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
2018-05-16 13:46:33 +00:00
2381,
621,
580,
1359
2018-05-10 11:12:13 +00:00
],
"name": "WhitelistModule",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
2018-05-16 13:46:33 +00:00
"id": 2245,
2018-05-10 11:12:13 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "331:48:14",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2243,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "331:6:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "57686974656c697374204d6f64756c65",
2018-05-16 13:46:33 +00:00
"id": 2244,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "361:18:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_84d69d03a7c747e8eefe7cc2b9e87b566cfc57cc90e4ed88f03f9c9780b7d4e6",
"typeString": "literal_string \"Whitelist Module\""
},
"value": "Whitelist Module"
},
"visibility": "public"
},
{
"constant": true,
2018-05-16 13:46:33 +00:00
"id": 2248,
2018-05-10 11:12:13 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "385:40:14",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2246,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "385:6:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
2018-05-16 13:46:33 +00:00
"id": 2247,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "418:7:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2252,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "498:46:14",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2251,
2018-05-10 11:12:13 +00:00
"keyType": {
2018-05-16 13:46:33 +00:00
"id": 2249,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "507:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-05-16 13:46:33 +00:00
"src": "498:25:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"valueType": {
2018-05-16 13:46:33 +00:00
"id": 2250,
2018-05-10 11:12:13 +00:00
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "518:4:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2292,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "721:216:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-16 13:46:33 +00:00
"id": 2258,
2018-05-10 11:12:13 +00:00
"name": "setManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 620,
"src": "731:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2259,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "731:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2260,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "731:12:14"
2018-05-10 11:12:13 +00:00
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2290,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "799:132:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
2018-05-16 13:46:33 +00:00
2273
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2273,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2293,
"src": "813:15:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2272,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "813:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"id": 2277,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2274,
2018-05-10 11:12:13 +00:00
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2255,
"src": "831:8:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
2018-05-16 13:46:33 +00:00
"id": 2276,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2275,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2262,
"src": "840:1:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "831:11:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
2018-05-16 13:46:33 +00:00
"src": "813:29:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-16 13:46:33 +00:00
"id": 2281,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2279,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2273,
"src": "864:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 2280,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "875:1:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-16 13:46:33 +00:00
"src": "864:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2278,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "856:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2282,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "856:21:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2283,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "856:21:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2288,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2284,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "891:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2286,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2285,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2273,
"src": "905:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "891:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
2018-05-16 13:46:33 +00:00
"id": 2287,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "916:4:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-05-16 13:46:33 +00:00
"src": "891:29:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2289,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "891:29:14"
2018-05-10 11:12:13 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-16 13:46:33 +00:00
"id": 2268,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2265,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2262,
"src": "773:1:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2266,
2018-05-10 11:12:13 +00:00
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2255,
"src": "777:8:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
2018-05-16 13:46:33 +00:00
"id": 2267,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-16 13:46:33 +00:00
"src": "777:15:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-16 13:46:33 +00:00
"src": "773:19:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2291,
2018-05-10 11:12:13 +00:00
"initializationExpression": {
"assignments": [
2018-05-16 13:46:33 +00:00
2262
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2262,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2293,
"src": "758:9:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2261,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "758:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"id": 2264,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 2263,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "770:1:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
2018-05-16 13:46:33 +00:00
"src": "758:13:14"
2018-05-10 11:12:13 +00:00
},
"loopExpression": {
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2270,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2018-05-16 13:46:33 +00:00
"src": "794:3:14",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2269,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2262,
"src": "794:1:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-16 13:46:33 +00:00
"id": 2271,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "794:3:14"
2018-05-10 11:12:13 +00:00
},
"nodeType": "ForStatement",
2018-05-16 13:46:33 +00:00
"src": "753:178:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Setup function sets initial storage of contract.\n @param accounts List of whitelisted accounts.",
2018-05-16 13:46:33 +00:00
"id": 2293,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setup",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2256,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2255,
2018-05-10 11:12:13 +00:00
"name": "accounts",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2293,
"src": "682:18:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
2018-05-16 13:46:33 +00:00
"id": 2253,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "682:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"id": 2254,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-16 13:46:33 +00:00
"src": "682:9:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "681:20:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2257,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "721:0:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "667:270:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2319,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "1165:119:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-16 13:46:33 +00:00
"id": 2303,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2301,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2295,
"src": "1183:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 2302,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "1194:1:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-16 13:46:33 +00:00
"src": "1183:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2300,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "1175:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2304,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "1175:21:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2305,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1175:21:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2310,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
2018-05-16 13:46:33 +00:00
"src": "1214:23:14",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2307,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1215:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2309,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2308,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2295,
"src": "1229:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1215:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2306,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "1206:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2311,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "1206:32:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2312,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1206:32:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2317,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2313,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1248:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2315,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2314,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2295,
"src": "1262:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1248:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
2018-05-16 13:46:33 +00:00
"id": 2316,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "1273:4:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-05-16 13:46:33 +00:00
"src": "1248:29:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2318,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1248:29:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Allows to add destination to whitelist. This can only be done via a Safe transaction.\n @param account Destination address.",
2018-05-16 13:46:33 +00:00
"id": 2320,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-05-16 13:46:33 +00:00
"id": 2298,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2297,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 601,
"src": "1150:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-05-16 13:46:33 +00:00
"src": "1150:10:14"
2018-05-10 11:12:13 +00:00
}
],
"name": "addToWhitelist",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2296,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2295,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2320,
"src": "1110:15:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2294,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1110:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1109:17:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2299,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "1165:0:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "1086:198:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2339,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "1522:88:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2328,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1540:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2330,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2329,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2322,
"src": "1554:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1540:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2327,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "1532:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2331,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "1532:31:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2332,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1532:31:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2337,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2333,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1573:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2335,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2334,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2322,
"src": "1587:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1573:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
2018-05-16 13:46:33 +00:00
"id": 2336,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "1598:5:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
2018-05-16 13:46:33 +00:00
"src": "1573:30:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2338,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1573:30:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Allows to remove destination from whitelist. This can only be done via a Safe transaction.\n @param account Destination address.",
2018-05-16 13:46:33 +00:00
"id": 2340,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-05-16 13:46:33 +00:00
"id": 2325,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2324,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 601,
"src": "1507:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-05-16 13:46:33 +00:00
"src": "1507:10:14"
2018-05-10 11:12:13 +00:00
}
],
"name": "removeFromWhitelist",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2323,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2322,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2340,
"src": "1467:15:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2321,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1467:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1466:17:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2326,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "1522:0:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "1438:172:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2379,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "1973:282:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2356,
2018-05-10 11:12:13 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2396,
"src": "2110:3:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-05-16 13:46:33 +00:00
"id": 2357,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-16 13:46:33 +00:00
"src": "2110:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2353,
2018-05-10 11:12:13 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 588,
"src": "2093:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$971",
2018-05-10 11:12:13 +00:00
"typeString": "contract ModuleManager"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$971",
2018-05-10 11:12:13 +00:00
"typeString": "contract ModuleManager"
}
],
2018-05-16 13:46:33 +00:00
"id": 2352,
2018-05-10 11:12:13 +00:00
"name": "OwnerManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1343,
"src": "2080:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_type$_t_contract$_OwnerManager_$1343_$",
2018-05-10 11:12:13 +00:00
"typeString": "type(contract OwnerManager)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2354,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2080:21:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_OwnerManager_$1343",
2018-05-10 11:12:13 +00:00
"typeString": "contract OwnerManager"
}
},
2018-05-16 13:46:33 +00:00
"id": 2355,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isOwner",
"nodeType": "MemberAccess",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1293,
"src": "2080:29:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view external returns (bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2358,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2080:41:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2351,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "2072:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2359,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2072:50:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2360,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "2072:50:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2362,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "2140:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2364,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2363,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2342,
"src": "2154:2:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "2140:17:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2361,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "2132:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2365,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2132:26:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2366,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "2132:26:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"arguments": [
{
"argumentTypes": null,
"id": 2370,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2342,
"src": "2210:2:14",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 2371,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2344,
"src": "2214:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 2372,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2346,
"src": "2221:4:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 2373,
"name": "Enum",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6,
"src": "2227:4:14",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Enum_$6_$",
"typeString": "type(contract Enum)"
}
},
"id": 2374,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "Operation",
"nodeType": "MemberAccess",
"referencedDeclaration": 5,
"src": "2227:14:14",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_Operation_$5_$",
"typeString": "type(enum Enum.Operation)"
}
},
"id": 2375,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "Call",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2227:19:14",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$5",
"typeString": "enum Enum.Operation"
}
}
],
2018-05-10 11:12:13 +00:00
"expression": {
2018-05-16 13:46:33 +00:00
"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"
}
],
2018-05-10 11:12:13 +00:00
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2368,
"name": "manager",
2018-05-10 11:12:13 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 588,
"src": "2176:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$971",
"typeString": "contract ModuleManager"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2369,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
2018-05-16 13:46:33 +00:00
"memberName": "execTransactionFromModule",
2018-05-10 11:12:13 +00:00
"nodeType": "MemberAccess",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 798,
"src": "2176:33:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$5_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2376,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
2018-05-16 13:46:33 +00:00
"isPure": false,
"kind": "functionCall",
2018-05-10 11:12:13 +00:00
"lValueRequested": false,
2018-05-16 13:46:33 +00:00
"names": [],
"nodeType": "FunctionCall",
"src": "2176:71:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"id": 2367,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2399,
2400
],
"referencedDeclaration": 2399,
"src": "2168:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2377,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2168:80:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2378,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "2168:80:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Returns if Safe transaction is to a whitelisted destination.\n @param to Whitelisted destination address.\n @param value Not checked.\n @param data Not checked.\n @return Returns if transaction can be executed.",
2018-05-16 13:46:33 +00:00
"id": 2380,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeWhitelisted",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2347,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2342,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1892:10:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2341,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1892:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2344,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1904:13:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2343,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1904:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2346,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1919:10:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2345,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1919:5:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1891:39:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2350,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2349,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1963:4:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2348,
2018-05-10 11:12:13 +00:00
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1963:4:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1962:6:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "1864:391:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-16 13:46:33 +00:00
"scope": 2382,
"src": "289:1968:14"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"src": "0:2258:14"
2018-05-10 11:12:13 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/WhitelistModule.sol",
"exportedSymbols": {
"WhitelistModule": [
2018-05-16 13:46:33 +00:00
2381
2018-05-10 11:12:13 +00:00
]
},
2018-05-16 13:46:33 +00:00
"id": 2382,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-16 13:46:33 +00:00
"id": 2236,
2018-05-10 11:12:13 +00:00
"literals": [
"solidity",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
2018-05-16 13:46:33 +00:00
"src": "0:23:14"
2018-05-10 11:12:13 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol",
"file": "../Enum.sol",
2018-05-16 13:46:33 +00:00
"id": 2237,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 7,
"src": "24:21:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol",
"file": "../Module.sol",
2018-05-16 13:46:33 +00:00
"id": 2238,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 622,
"src": "46:23:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol",
"file": "../ModuleManager.sol",
2018-05-16 13:46:33 +00:00
"id": 2239,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 972,
"src": "70:30:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol",
"file": "../OwnerManager.sol",
2018-05-16 13:46:33 +00:00
"id": 2240,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
2018-05-16 13:46:33 +00:00
"scope": 2382,
"sourceUnit": 1344,
"src": "101:29:14",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-16 13:46:33 +00:00
"id": 2241,
2018-05-10 11:12:13 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 621,
"src": "317:6:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_Module_$621",
2018-05-10 11:12:13 +00:00
"typeString": "contract Module"
}
},
2018-05-16 13:46:33 +00:00
"id": 2242,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-16 13:46:33 +00:00
"src": "317:6:14"
2018-05-10 11:12:13 +00:00
}
],
"contractDependencies": [
2018-05-16 13:46:33 +00:00
580,
621,
1359
2018-05-10 11:12:13 +00:00
],
"contractKind": "contract",
"documentation": "@title Whitelist Module - Allows to execute transactions to whitelisted addresses without confirmations.\n @author Stefan George - <stefan@gnosis.pm>",
"fullyImplemented": true,
2018-05-16 13:46:33 +00:00
"id": 2381,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
2018-05-16 13:46:33 +00:00
2381,
621,
580,
1359
2018-05-10 11:12:13 +00:00
],
"name": "WhitelistModule",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
2018-05-16 13:46:33 +00:00
"id": 2245,
2018-05-10 11:12:13 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "331:48:14",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2243,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "331:6:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "57686974656c697374204d6f64756c65",
2018-05-16 13:46:33 +00:00
"id": 2244,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "361:18:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_84d69d03a7c747e8eefe7cc2b9e87b566cfc57cc90e4ed88f03f9c9780b7d4e6",
"typeString": "literal_string \"Whitelist Module\""
},
"value": "Whitelist Module"
},
"visibility": "public"
},
{
"constant": true,
2018-05-16 13:46:33 +00:00
"id": 2248,
2018-05-10 11:12:13 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "385:40:14",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2246,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "385:6:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
2018-05-16 13:46:33 +00:00
"id": 2247,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "418:7:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2252,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "498:46:14",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2251,
2018-05-10 11:12:13 +00:00
"keyType": {
2018-05-16 13:46:33 +00:00
"id": 2249,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "507:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-05-16 13:46:33 +00:00
"src": "498:25:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
},
"valueType": {
2018-05-16 13:46:33 +00:00
"id": 2250,
2018-05-10 11:12:13 +00:00
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "518:4:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2292,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "721:216:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-16 13:46:33 +00:00
"id": 2258,
2018-05-10 11:12:13 +00:00
"name": "setManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 620,
"src": "731:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2259,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "731:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2260,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "731:12:14"
2018-05-10 11:12:13 +00:00
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2290,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "799:132:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
2018-05-16 13:46:33 +00:00
2273
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2273,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2293,
"src": "813:15:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2272,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "813:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"id": 2277,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2274,
2018-05-10 11:12:13 +00:00
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2255,
"src": "831:8:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
2018-05-16 13:46:33 +00:00
"id": 2276,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2275,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2262,
"src": "840:1:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "831:11:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
2018-05-16 13:46:33 +00:00
"src": "813:29:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-16 13:46:33 +00:00
"id": 2281,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2279,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2273,
"src": "864:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 2280,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "875:1:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-16 13:46:33 +00:00
"src": "864:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2278,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "856:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2282,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "856:21:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2283,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "856:21:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2288,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2284,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "891:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2286,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2285,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2273,
"src": "905:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "891:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
2018-05-16 13:46:33 +00:00
"id": 2287,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "916:4:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-05-16 13:46:33 +00:00
"src": "891:29:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2289,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "891:29:14"
2018-05-10 11:12:13 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-16 13:46:33 +00:00
"id": 2268,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2265,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2262,
"src": "773:1:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2266,
2018-05-10 11:12:13 +00:00
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2255,
"src": "777:8:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
2018-05-16 13:46:33 +00:00
"id": 2267,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-16 13:46:33 +00:00
"src": "777:15:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-16 13:46:33 +00:00
"src": "773:19:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2291,
2018-05-10 11:12:13 +00:00
"initializationExpression": {
"assignments": [
2018-05-16 13:46:33 +00:00
2262
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2262,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2293,
"src": "758:9:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2261,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "758:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"id": 2264,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 2263,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "770:1:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
2018-05-16 13:46:33 +00:00
"src": "758:13:14"
2018-05-10 11:12:13 +00:00
},
"loopExpression": {
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2270,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2018-05-16 13:46:33 +00:00
"src": "794:3:14",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2269,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2262,
"src": "794:1:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-16 13:46:33 +00:00
"id": 2271,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "794:3:14"
2018-05-10 11:12:13 +00:00
},
"nodeType": "ForStatement",
2018-05-16 13:46:33 +00:00
"src": "753:178:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Setup function sets initial storage of contract.\n @param accounts List of whitelisted accounts.",
2018-05-16 13:46:33 +00:00
"id": 2293,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setup",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2256,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2255,
2018-05-10 11:12:13 +00:00
"name": "accounts",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2293,
"src": "682:18:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
2018-05-16 13:46:33 +00:00
"id": 2253,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "682:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"id": 2254,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-16 13:46:33 +00:00
"src": "682:9:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "681:20:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2257,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "721:0:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "667:270:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2319,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "1165:119:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-16 13:46:33 +00:00
"id": 2303,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2301,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2295,
"src": "1183:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-05-16 13:46:33 +00:00
"id": 2302,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "1194:1:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-05-16 13:46:33 +00:00
"src": "1183:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2300,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "1175:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2304,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "1175:21:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2305,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1175:21:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2310,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
2018-05-16 13:46:33 +00:00
"src": "1214:23:14",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2307,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1215:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2309,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2308,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2295,
"src": "1229:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1215:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2306,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "1206:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2311,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "1206:32:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2312,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1206:32:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2317,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2313,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1248:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2315,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2314,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2295,
"src": "1262:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1248:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
2018-05-16 13:46:33 +00:00
"id": 2316,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "1273:4:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-05-16 13:46:33 +00:00
"src": "1248:29:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2318,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1248:29:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Allows to add destination to whitelist. This can only be done via a Safe transaction.\n @param account Destination address.",
2018-05-16 13:46:33 +00:00
"id": 2320,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-05-16 13:46:33 +00:00
"id": 2298,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2297,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 601,
"src": "1150:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-05-16 13:46:33 +00:00
"src": "1150:10:14"
2018-05-10 11:12:13 +00:00
}
],
"name": "addToWhitelist",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2296,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2295,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2320,
"src": "1110:15:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2294,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1110:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1109:17:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2299,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "1165:0:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "1086:198:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2339,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "1522:88:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2328,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1540:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2330,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2329,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2322,
"src": "1554:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1540:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2327,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "1532:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2331,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "1532:31:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2332,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1532:31:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2337,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2333,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "1573:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2335,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2334,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2322,
"src": "1587:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "1573:22:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
2018-05-16 13:46:33 +00:00
"id": 2336,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-16 13:46:33 +00:00
"src": "1598:5:14",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
2018-05-16 13:46:33 +00:00
"src": "1573:30:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-05-16 13:46:33 +00:00
"id": 2338,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "1573:30:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Allows to remove destination from whitelist. This can only be done via a Safe transaction.\n @param account Destination address.",
2018-05-16 13:46:33 +00:00
"id": 2340,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-05-16 13:46:33 +00:00
"id": 2325,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2324,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 601,
"src": "1507:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-05-16 13:46:33 +00:00
"src": "1507:10:14"
2018-05-10 11:12:13 +00:00
}
],
"name": "removeFromWhitelist",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2323,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2322,
2018-05-10 11:12:13 +00:00
"name": "account",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2340,
"src": "1467:15:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2321,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1467:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1466:17:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2326,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-16 13:46:33 +00:00
"src": "1522:0:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "1438:172:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-05-16 13:46:33 +00:00
"id": 2379,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
2018-05-16 13:46:33 +00:00
"src": "1973:282:14",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2356,
2018-05-10 11:12:13 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2396,
"src": "2110:3:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-05-16 13:46:33 +00:00
"id": 2357,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-05-16 13:46:33 +00:00
"src": "2110:10:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2353,
2018-05-10 11:12:13 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 588,
"src": "2093:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$971",
2018-05-10 11:12:13 +00:00
"typeString": "contract ModuleManager"
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$971",
2018-05-10 11:12:13 +00:00
"typeString": "contract ModuleManager"
}
],
2018-05-16 13:46:33 +00:00
"id": 2352,
2018-05-10 11:12:13 +00:00
"name": "OwnerManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1343,
"src": "2080:12:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_type$_t_contract$_OwnerManager_$1343_$",
2018-05-10 11:12:13 +00:00
"typeString": "type(contract OwnerManager)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2354,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2080:21:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_OwnerManager_$1343",
2018-05-10 11:12:13 +00:00
"typeString": "contract OwnerManager"
}
},
2018-05-16 13:46:33 +00:00
"id": 2355,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isOwner",
"nodeType": "MemberAccess",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 1293,
"src": "2080:29:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view external returns (bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2358,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2080:41:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2351,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "2072:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2359,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2072:50:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2360,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "2072:50:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2362,
2018-05-10 11:12:13 +00:00
"name": "isWhitelisted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2252,
"src": "2140:13:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
"typeString": "mapping(address => bool)"
}
},
2018-05-16 13:46:33 +00:00
"id": 2364,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2363,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2342,
"src": "2154:2:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-05-16 13:46:33 +00:00
"src": "2140:17:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-05-16 13:46:33 +00:00
"id": 2361,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-05-16 13:46:33 +00:00
2399,
2400
2018-05-10 11:12:13 +00:00
],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 2399,
"src": "2132:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-05-16 13:46:33 +00:00
"id": 2365,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2132:26:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-16 13:46:33 +00:00
"id": 2366,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "2132:26:14"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"arguments": [
{
"argumentTypes": null,
"id": 2370,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2342,
"src": "2210:2:14",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 2371,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2344,
"src": "2214:5:14",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 2372,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2346,
"src": "2221:4:14",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 2373,
"name": "Enum",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6,
"src": "2227:4:14",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Enum_$6_$",
"typeString": "type(contract Enum)"
}
},
"id": 2374,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "Operation",
"nodeType": "MemberAccess",
"referencedDeclaration": 5,
"src": "2227:14:14",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_Operation_$5_$",
"typeString": "type(enum Enum.Operation)"
}
},
"id": 2375,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "Call",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2227:19:14",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$5",
"typeString": "enum Enum.Operation"
}
}
],
2018-05-10 11:12:13 +00:00
"expression": {
2018-05-16 13:46:33 +00:00
"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"
}
],
2018-05-10 11:12:13 +00:00
"expression": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"id": 2368,
"name": "manager",
2018-05-10 11:12:13 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 588,
"src": "2176:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$971",
"typeString": "contract ModuleManager"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2369,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
2018-05-16 13:46:33 +00:00
"memberName": "execTransactionFromModule",
2018-05-10 11:12:13 +00:00
"nodeType": "MemberAccess",
2018-05-16 13:46:33 +00:00
"referencedDeclaration": 798,
"src": "2176:33:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$5_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2376,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
2018-05-16 13:46:33 +00:00
"isPure": false,
"kind": "functionCall",
2018-05-10 11:12:13 +00:00
"lValueRequested": false,
2018-05-16 13:46:33 +00:00
"names": [],
"nodeType": "FunctionCall",
"src": "2176:71:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"id": 2367,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2399,
2400
],
"referencedDeclaration": 2399,
"src": "2168:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2377,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-16 13:46:33 +00:00
"src": "2168:80:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
2018-05-10 11:12:13 +00:00
}
},
2018-05-16 13:46:33 +00:00
"id": 2378,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-16 13:46:33 +00:00
"src": "2168:80:14"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Returns if Safe transaction is to a whitelisted destination.\n @param to Whitelisted destination address.\n @param value Not checked.\n @param data Not checked.\n @return Returns if transaction can be executed.",
2018-05-16 13:46:33 +00:00
"id": 2380,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "executeWhitelisted",
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-16 13:46:33 +00:00
"id": 2347,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2342,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1892:10:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2341,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1892:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2344,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1904:13:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2343,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1904:7:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2346,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1919:10:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2345,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1919:5:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1891:39:14"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-16 13:46:33 +00:00
"id": 2350,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-16 13:46:33 +00:00
"id": 2349,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
2018-05-16 13:46:33 +00:00
"scope": 2380,
"src": "1963:4:14",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-05-16 13:46:33 +00:00
"id": 2348,
2018-05-10 11:12:13 +00:00
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-05-16 13:46:33 +00:00
"src": "1963:4:14",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-16 13:46:33 +00:00
"src": "1962:6:14"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"scope": 2381,
"src": "1864:391:14",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-05-16 13:46:33 +00:00
"scope": 2382,
"src": "289:1968:14"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"src": "0:2258:14"
2018-05-10 11:12:13 +00:00
},
"compiler": {
"name": "solc",
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
},
"networks": {
"4": {
"events": {},
"links": {},
2018-05-16 13:46:33 +00:00
"address": "0x4e2dfbbb0f2b3225fdcdec7e05dcd92c92832fbd",
"transactionHash": "0x1b787034883e27a45b7b9a90b77670ef807701894a32904f573a60b666b3bd94"
2018-05-10 11:12:13 +00:00
},
"1525950336085": {
"events": {},
"links": {},
"address": "0x15fd83fcf27f1726e692389be1b6e03fe7d56bb6",
"transactionHash": "0xc7f84311daf6a72740fe5822cd6007cec3ce1ff6aeaf454559f3e5f36c81cfd8"
2018-05-14 07:48:41 +00:00
},
"1526283540628": {
"events": {},
"links": {},
"address": "0x536f677993e3eada3e17f2f42888ee777441fc3e",
"transactionHash": "0xc7f84311daf6a72740fe5822cd6007cec3ce1ff6aeaf454559f3e5f36c81cfd8"
2018-05-16 13:46:33 +00:00
},
"1526478212260": {
"events": {},
"links": {},
"address": "0x5fde4f39a944859214e24311ad809166d35b2595",
"transactionHash": "0xe8e4d24799a8b74210c07b7faa44968bece2c73df692920f7af75181654e10f2"
},
"1526973574996": {
"events": {},
"links": {},
"address": "0xba3ef9cf5be6c120fc0a642690f297e3bd239aa3",
"transactionHash": "0xe8e4d24799a8b74210c07b7faa44968bece2c73df692920f7af75181654e10f2"
2018-05-10 11:12:13 +00:00
}
},
"schemaVersion": "2.0.0",
"updatedAt": "2018-05-22T07:20:22.983Z"
2018-05-10 11:12:13 +00:00
}