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" : " 0 x 608060405234801561001057600080 f d 5 b 50610 c 78806100206000396000 f 300608060405260043610610099576000357 c 0 100000000000000000000000000000000000000000000000000000000900463 f f f f f f f f 1680632 f 2 f 3 b e 11461009e5780633 a f 32 a b f 14610149578063481 c 6 a 75146101 a 45780637 d e 7 e d e f 146101 f b 5780638 a b 1 d 6811461023e578063 a 3 f 4 d f 7e14610281578063 b d 5 b 853 b 14610311578063e43252 d 714610377578063 f f a 1 a d 74146103 b a 575 b 600080 f d 5 b 3480156100 a a 57600080 f d 5 b 5061012 f 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190803590602001908201803590602001908080601 f 0 16020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061044 a 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561015557600080 f d 5 b 5061018 a 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919050505061073 d 565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156101 b 0 57600080 f d 5 b 506101 b 961075 d 565 b 604051808273 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16815260200191505060405180910390 f 35 b 34801561020757600080 f d 5 b 5061023 c 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610783565 b 0 0 5 b 34801561024 a 57600080 f d 5 b 5061027 f 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610848565 b 0 0 5 b 34801561028 d 57600080 f d 5 b 50610296610957565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 838110156102 d 65780820151818401526020810190506102 b b 565 b 50505050905090810190601 f 1680156103035780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 34801561031 d 57600080 f d 5 b 5061037560048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610990565 b 0 0 5 b 34801561038357600080 f d 5 b 506103 b 8600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610 a 53565 b 0 0 5 b 3480156103 c 657600080 f d 5 b 506103 c f 610 b 89565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 8381101561040 f 5780820151818401526020810190506103 f 4565 b 50505050905090810190601 f 16801561043 c 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 6000600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16632 f 54 b f 6e336040518263 f f f f f f f f 167 c 0 100000000000000000000000000000000000000000000000000000000028152600401808273 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 168152602001915050602060405180830381600087803 b 15801561050957600080 f d 5 b 505 a f 115801561051 d 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561053357600080 f d 5 b 8101908080519060200190929190505050151561054 f 57600080 f d 5 b 600260008573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16815260200190815260200160002060009054906101000 a 900460 f f 1615156105 a 757600080 f d 5 b 600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1663468721 a 785858560006040518563 f f f f f f f f 167 c 0 100000000000000000000000000000000000000000000000000000000028152600401808573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1681526020018481526020018060200183600281111561066157 f e 5 b 60 f f 168152602001828103825284818151815260200191508051906020019080838360005 b 838110156106 a 1578082015181840152602081019050610686565 b 50505050905090810190601 f 1680156106 c e 5780820380516001836020036101000 a 0 31916815260200191505 b 5095505050505050602060405180830381600087803 b 1580156106 f 0 57600080 f d 5 b 505 a f 1158015610704573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561071 a 57600080 f d 5 b 8101908080519060200190929190505050151561073657600080 f d 5 b 9392505050565 b 60026020528060005260406000206000915054906101000 a 900460 f f 1681565 b 600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1681565 b 600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 163373 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16141515
"deployedBytecode" : " 0 x 608060405260043610610099576000357 c 0 100000000000000000000000000000000000000000000000000000000900463 f f f f f f f f 1680632 f 2 f 3 b e 11461009e5780633 a f 32 a b f 14610149578063481 c 6 a 75146101 a 45780637 d e 7 e d e f 146101 f b 5780638 a b 1 d 6811461023e578063 a 3 f 4 d f 7e14610281578063 b d 5 b 853 b 14610311578063e43252 d 714610377578063 f f a 1 a d 74146103 b a 575 b 600080 f d 5 b 3480156100 a a 57600080 f d 5 b 5061012 f 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190803590602001908201803590602001908080601 f 0 16020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061044 a 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561015557600080 f d 5 b 5061018 a 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919050505061073 d 565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156101 b 0 57600080 f d 5 b 506101 b 961075 d 565 b 604051808273 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16815260200191505060405180910390 f 35 b 34801561020757600080 f d 5 b 5061023 c 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610783565 b 0 0 5 b 34801561024 a 57600080 f d 5 b 5061027 f 600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610848565 b 0 0 5 b 34801561028 d 57600080 f d 5 b 50610296610957565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 838110156102 d 65780820151818401526020810190506102 b b 565 b 50505050905090810190601 f 1680156103035780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 34801561031 d 57600080 f d 5 b 5061037560048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610990565 b 0 0 5 b 34801561038357600080 f d 5 b 506103 b 8600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610 a 53565 b 0 0 5 b 3480156103 c 657600080 f d 5 b 506103 c f 610 b 89565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 8381101561040 f 5780820151818401526020810190506103 f 4565 b 50505050905090810190601 f 16801561043 c 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 6000600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16632 f 54 b f 6e336040518263 f f f f f f f f 167 c 0 100000000000000000000000000000000000000000000000000000000028152600401808273 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 168152602001915050602060405180830381600087803 b 15801561050957600080 f d 5 b 505 a f 115801561051 d 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561053357600080 f d 5 b 8101908080519060200190929190505050151561054 f 57600080 f d 5 b 600260008573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16815260200190815260200160002060009054906101000 a 900460 f f 1615156105 a 757600080 f d 5 b 600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1663468721 a 785858560006040518563 f f f f f f f f 167 c 0 100000000000000000000000000000000000000000000000000000000028152600401808573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1681526020018481526020018060200183600281111561066157 f e 5 b 60 f f 168152602001828103825284818151815260200191508051906020019080838360005 b 838110156106 a 1578082015181840152602081019050610686565 b 50505050905090810190601 f 1680156106 c e 5780820380516001836020036101000 a 0 31916815260200191505 b 5095505050505050602060405180830381600087803 b 1580156106 f 0 57600080 f d 5 b 505 a f 1158015610704573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561071 a 57600080 f d 5 b 8101908080519060200190929190505050151561073657600080 f d 5 b 9392505050565 b 60026020528060005260406000206000915054906101000 a 900460 f f 1681565 b 600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1681565 b 600160009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 163373 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 161415156107 d f 57600080 f d 5 b 60008173 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f
"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"
2018-05-22 07:22:38 +00:00
} ,
"1526973574996" : {
"events" : { } ,
"links" : { } ,
"address" : "0xba3ef9cf5be6c120fc0a642690f297e3bd239aa3" ,
"transactionHash" : "0xe8e4d24799a8b74210c07b7faa44968bece2c73df692920f7af75181654e10f2"
2018-05-10 11:12:13 +00:00
}
} ,
"schemaVersion" : "2.0.0" ,
2018-05-22 07:22:38 +00:00
"updatedAt" : "2018-05-22T07:20:22.983Z"
2018-05-10 11:12:13 +00:00
}