2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"bytecode" : " 0 x 608060405234801561001057600080 f d 5 b 50611248806100206000396000 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 1690602001909291905050506108 c 4565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156101 b 0 57600080 f d 5 b 506101 b 96108e4565 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 16906020019092919050505061090 a 565 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 169060200190929190505050610 a e d 565 b 0 0 5 b 34801561028 d 57600080 f d 5 b 50610296610 c f 4565 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 5061037560048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610 d 2 d 565 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 169060200190929190505050610e59565 b 0 0 5 b 3480156103 c 657600080 f d 5 b 506103 c f 6110 f 0 565 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 810190808051906020019092919050505015156105 d e 576040517 f 0 8 c 379 a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81526004018080602001828103825260258152602001807 f 4 d 6574686 f 642063616e206 f 6e6 c 792062652063616 c 6 c 656420627920616e2081526020017 f 6 f 776e657200000000000000000000000000000000000000000000000000000081525060400191505060405180910390 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 1615156106 c 5576040517 f 0 8 c 379 a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81526004018080602001828103825260218152602001807 f 546172676574206163636 f 756e74206973206 e 6 f 742077686974656 c 6973746581526020017 f 640000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390 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 1681526020018481526020018060200183600281111561077 f 57 f e 5 b 60 f f 168152602001828103825284818151815260200191508051906020019080838360005 b 838110156107 b f 5780820151818401526020810190506107 a 4565 b 50505050905090810190601 f 1680156107 e c 5780820380
"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 1690602001909291905050506108 c 4565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156101 b 0 57600080 f d 5 b 506101 b 96108e4565 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 16906020019092919050505061090 a 565 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 169060200190929190505050610 a e d 565 b 0 0 5 b 34801561028 d 57600080 f d 5 b 50610296610 c f 4565 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 5061037560048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610 d 2 d 565 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 169060200190929190505050610e59565 b 0 0 5 b 3480156103 c 657600080 f d 5 b 506103 c f 6110 f 0 565 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 810190808051906020019092919050505015156105 d e 576040517 f 0 8 c 379 a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81526004018080602001828103825260258152602001807 f 4 d 6574686 f 642063616e206 f 6e6 c 792062652063616 c 6 c 656420627920616e2081526020017 f 6 f 776e657200000000000000000000000000000000000000000000000000000081525060400191505060405180910390 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 1615156106 c 5576040517 f 0 8 c 379 a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81526004018080602001828103825260218152602001807 f 546172676574206163636 f 756e74206973206 e 6 f 742077686974656 c 6973746581526020017 f 640000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390 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 1681526020018481526020018060200183600281111561077 f 57 f e 5 b 60 f f 168152602001828103825284818151815260200191508051906020019080838360005 b 838110156107 b f 5780820151818401526020810190506107 a 4565 b 50505050905090810190601 f 1680156107 e c 5780820380516001836020036101000 a 0 31916815260200191505 b 509550505050
2018-06-20 08:09:14 +00:00
"sourceMap" : "289:2199:21:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;289:2199:21;;;;;;;" ,
"deployedSourceMap" : "289:2199:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1984:502;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1984:502:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;498:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:46:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;262:28:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;262:28:7;;;;;;;;;;;;;;;;;;;;;;;;;;;626:248:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:248:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;1528:202:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1528:202:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;331:48;;8:9:-1;5:2;;;30:1;27;20:12;5:2;331:48:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;667:298;;8:9:-1;5:2;;;30:1;27;20:12;5:2;667:298:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1114:260;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1114:260:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;385:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;385:40:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1984:502;2083:4;2213:7;;;;;;;;;;;2200:29;;;2230:10;2200:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2200:41:21;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2200:41:21;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2200:41:21;;;;;;;;;;;;;;;;2192:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2301:13;:17;2315:2;2301:17;;;;;;;;;;;;;;;;;;;;;;;;;2293:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2374:7;;;;;;;;;;;:33;;;2408:2;2412:5;2419:4;2425:19;2374: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;2374:71:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2374:71:21;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2374:71:21;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2374:71:21;;;;;;;;;;;;;;;;2366:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1984:502;;;;;:::o;498:46::-;;;;;;;;;;;;;;;;;;;;;;:::o;262:28:7:-;;;;;;;;;;;;;:::o;626:248:5:-;359:7:7;;;;;;;;;;;337:30;;:10;:30;;;329:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;791:1:5;776:11;:16;;;;768:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;856:11;843:10;;:24;;;;;;;;;;;;;;;;;;626:248;:::o;1528:202:21:-;359:7:7;;;;;;;;;;;337:30;;:10;:30;;;329:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1630:13:21;:22;1644:7;1630:22;;;;;;;;;;;;;;;;;;;;;;;;;1622:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1718:5;1693:13;:22;1707:7;1693:22;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;1528:202;:::o;331:48::-;;;;;;;;;;;;;;;;;;;;:::o;667:298::-;758:9;813:15;731:12;:10;:12::i;:::-;770:1;758:13;;753:206;777:8;:15;773:1;:19;753:206;;;831:8;840:1;831:11;;;;;;;;;;;;;;;;;;813:29;;875:1;864:7;:12;;;;856:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;944:4;919:13;:22;933:7;919:22;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;794:3;;;;;;;753:206;;;667:298;;;:::o;1114:260::-;359:7:7;;;;;;;;;;;337:30;;:10;:30;;;329:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1222:1:21;1211:7;:12;;;;1203:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1271:13;:22;1285:7;1271:22;;;;;;;;;;;;;;;;;;;;;;;;;1270:23;1262:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1363:4;1338:13;:22;1352:7;1338:22;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;1114:260;:::o;385:40::-;;;;;;;;;;;;;;;;;;;;:::o;434:300:7:-;648:1;636:7;;;;;;;;;;;628:21;;;620:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;716:10;692:7;;:35;;;;;;;;;;;;;;;;;;434:300::o" ,
2018-05-31 13:01:02 +00:00
"source" : "pragma solidity 0.4.24;\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, \"Invalid account provided\");\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, \"Invalid account provided\");\n require(!isWhitelisted[account], \"Account is already whitelisted\");\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], \"Account is not whitelisted\");\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), \"Method can only be called by an owner\");\n require(isWhitelisted[to], \"Target account is not whitelisted\");\n require(manager.execTransactionFromModule(to, value, data, Enum.Operation.Call), \"Could not execute transaction\");\n }\n}\n" ,
"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-06-28 17:13:59 +00:00
2644
2018-05-31 13:01:02 +00:00
]
} ,
2018-06-28 17:13:59 +00:00
"id" : 2645 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-06-28 17:13:59 +00:00
"id" : 2492 ,
2018-05-31 13:01:02 +00:00
"literals" : [
"solidity" ,
"0.4" ,
".24"
] ,
"nodeType" : "PragmaDirective" ,
2018-06-20 08:09:14 +00:00
"src" : "0:23:21"
2018-05-31 13:01:02 +00:00
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol" ,
"file" : "../Enum.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2493 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-05-31 13:01:02 +00:00
"sourceUnit" : 31 ,
2018-06-20 08:09:14 +00:00
"src" : "24:21:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol" ,
"file" : "../Module.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2494 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-06-20 08:09:14 +00:00
"sourceUnit" : 733 ,
"src" : "46:23:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol" ,
"file" : "../ModuleManager.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2495 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-06-20 08:09:14 +00:00
"sourceUnit" : 1104 ,
"src" : "70:30:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol" ,
"file" : "../OwnerManager.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2496 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
"sourceUnit" : 1512 ,
2018-06-20 08:09:14 +00:00
"src" : "101:29:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2497 ,
2018-05-31 13:01:02 +00:00
"name" : "Module" ,
"nodeType" : "UserDefinedTypeName" ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 732 ,
"src" : "317:6:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_Module_$732" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract Module"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2498 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "InheritanceSpecifier" ,
2018-06-20 08:09:14 +00:00
"src" : "317:6:21"
2018-05-31 13:01:02 +00:00
}
] ,
"contractDependencies" : [
2018-06-20 08:09:14 +00:00
632 ,
732 ,
2018-06-28 17:13:59 +00:00
1688
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2644 ,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts" : [
2018-06-28 17:13:59 +00:00
2644 ,
2018-06-20 08:09:14 +00:00
732 ,
632 ,
2018-06-28 17:13:59 +00:00
1688
2018-05-31 13:01:02 +00:00
] ,
"name" : "WhitelistModule" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : true ,
2018-06-28 17:13:59 +00:00
"id" : 2501 ,
2018-05-31 13:01:02 +00:00
"name" : "NAME" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "331:48:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2499 ,
2018-05-31 13:01:02 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "331:6:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "57686974656c697374204d6f64756c65" ,
2018-06-28 17:13:59 +00:00
"id" : 2500 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "361:18:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_84d69d03a7c747e8eefe7cc2b9e87b566cfc57cc90e4ed88f03f9c9780b7d4e6" ,
"typeString" : "literal_string \"Whitelist Module\""
} ,
"value" : "Whitelist Module"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2018-06-28 17:13:59 +00:00
"id" : 2504 ,
2018-05-31 13:01:02 +00:00
"name" : "VERSION" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "385:40:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2502 ,
2018-05-31 13:01:02 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "385:6:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "302e302e31" ,
2018-06-28 17:13:59 +00:00
"id" : 2503 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "418:7:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885" ,
"typeString" : "literal_string \"0.0.1\""
} ,
"value" : "0.0.1"
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2508 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "498:46:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2507 ,
2018-05-31 13:01:02 +00:00
"keyType" : {
2018-06-28 17:13:59 +00:00
"id" : 2505 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "507:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Mapping" ,
2018-06-20 08:09:14 +00:00
"src" : "498:25:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"valueType" : {
2018-06-28 17:13:59 +00:00
"id" : 2506 ,
2018-05-31 13:01:02 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "518:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2549 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "721:244:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2018-06-28 17:13:59 +00:00
"id" : 2514 ,
2018-05-31 13:01:02 +00:00
"name" : "setManager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 731 ,
"src" : "731:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$__$returns$__$" ,
"typeString" : "function ()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2515 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "731:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2516 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "731:12:21"
2018-05-31 13:01:02 +00:00
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2547 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "799:160:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"assignments" : [
2018-06-28 17:13:59 +00:00
2529
2018-05-31 13:01:02 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2529 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2550 ,
2018-06-20 08:09:14 +00:00
"src" : "813:15:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2528 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "813:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2533 ,
2018-05-31 13:01:02 +00:00
"initialValue" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2530 ,
2018-05-31 13:01:02 +00:00
"name" : "accounts" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2511 ,
2018-06-20 08:09:14 +00:00
"src" : "831:8:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2532 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2531 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2518 ,
2018-06-20 08:09:14 +00:00
"src" : "840:1:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "831:11:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "813:29:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-06-28 17:13:59 +00:00
"id" : 2537 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2535 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2529 ,
2018-06-20 08:09:14 +00:00
"src" : "864:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-28 17:13:59 +00:00
"id" : 2536 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "875:1:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-06-20 08:09:14 +00:00
"src" : "864:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "496e76616c6964206163636f756e742070726f7669646564" ,
2018-06-28 17:13:59 +00:00
"id" : 2538 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "878:26:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
} ,
"value" : "Invalid account provided"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2534 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "856:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2539 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "856:49:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2540 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "856:49:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2545 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2541 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "919:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2543 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2542 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2529 ,
2018-06-20 08:09:14 +00:00
"src" : "933:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "919:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-06-28 17:13:59 +00:00
"id" : 2544 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "944:4:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-06-20 08:09:14 +00:00
"src" : "919:29:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2546 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "919:29:21"
2018-05-31 13:01:02 +00:00
}
]
} ,
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-06-28 17:13:59 +00:00
"id" : 2524 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2521 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2518 ,
2018-06-20 08:09:14 +00:00
"src" : "773:1:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2522 ,
2018-05-31 13:01:02 +00:00
"name" : "accounts" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2511 ,
2018-06-20 08:09:14 +00:00
"src" : "777:8:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2523 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-20 08:09:14 +00:00
"src" : "777:15:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-06-20 08:09:14 +00:00
"src" : "773:19:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2548 ,
2018-05-31 13:01:02 +00:00
"initializationExpression" : {
"assignments" : [
2018-06-28 17:13:59 +00:00
2518
2018-05-31 13:01:02 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2518 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2550 ,
2018-06-20 08:09:14 +00:00
"src" : "758:9:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2517 ,
2018-05-31 13:01:02 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "758:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2520 ,
2018-05-31 13:01:02 +00:00
"initialValue" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-28 17:13:59 +00:00
"id" : 2519 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "770:1:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "758:13:21"
2018-05-31 13:01:02 +00:00
} ,
"loopExpression" : {
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2526 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-06-20 08:09:14 +00:00
"src" : "794:3:21" ,
2018-05-31 13:01:02 +00:00
"subExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2525 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2518 ,
2018-06-20 08:09:14 +00:00
"src" : "794:1:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2527 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "794:3:21"
2018-05-31 13:01:02 +00:00
} ,
"nodeType" : "ForStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "753:206:21"
2018-05-31 13:01:02 +00:00
}
]
} ,
"documentation" : "@dev Setup function sets initial storage of contract.\n @param accounts List of whitelisted accounts." ,
2018-06-28 17:13:59 +00:00
"id" : 2550 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "setup" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2512 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2511 ,
2018-05-31 13:01:02 +00:00
"name" : "accounts" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2550 ,
2018-06-20 08:09:14 +00:00
"src" : "682:18:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[]"
} ,
"typeName" : {
"baseType" : {
2018-06-28 17:13:59 +00:00
"id" : 2509 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "682:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2510 ,
2018-05-31 13:01:02 +00:00
"length" : null ,
"nodeType" : "ArrayTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "682:9:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage_ptr" ,
"typeString" : "address[]"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "681:20:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2513 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-20 08:09:14 +00:00
"src" : "721:0:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "667:298:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2578 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "1193:181:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-06-28 17:13:59 +00:00
"id" : 2560 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2558 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2552 ,
2018-06-20 08:09:14 +00:00
"src" : "1211:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-28 17:13:59 +00:00
"id" : 2559 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1222:1:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-06-20 08:09:14 +00:00
"src" : "1211:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "496e76616c6964206163636f756e742070726f7669646564" ,
2018-06-28 17:13:59 +00:00
"id" : 2561 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1225:26:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
} ,
"value" : "Invalid account provided"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2557 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "1203:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2562 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "1203:49:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2563 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1203:49:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2568 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
2018-06-20 08:09:14 +00:00
"src" : "1270:23:21" ,
2018-05-31 13:01:02 +00:00
"subExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2565 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1271:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2567 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2566 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2552 ,
2018-06-20 08:09:14 +00:00
"src" : "1285:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1271:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4163636f756e7420697320616c72656164792077686974656c6973746564" ,
2018-06-28 17:13:59 +00:00
"id" : 2569 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1295:32:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_42f0c01c0b06bc5e652009543318e4fd67cfba114702c7f55fad1ff0c3c82ad8" ,
"typeString" : "literal_string \"Account is already whitelisted\""
} ,
"value" : "Account is already whitelisted"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_42f0c01c0b06bc5e652009543318e4fd67cfba114702c7f55fad1ff0c3c82ad8" ,
"typeString" : "literal_string \"Account is already whitelisted\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2564 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "1262:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2570 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "1262:66:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2571 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1262:66:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2576 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2572 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1338:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2574 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2573 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2552 ,
2018-06-20 08:09:14 +00:00
"src" : "1352:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1338:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-06-28 17:13:59 +00:00
"id" : 2575 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1363:4:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-06-20 08:09:14 +00:00
"src" : "1338:29:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2577 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1338:29:21"
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2579 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2555 ,
2018-05-31 13:01:02 +00:00
"modifierName" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2554 ,
2018-05-31 13:01:02 +00:00
"name" : "authorized" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 711 ,
"src" : "1178:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-06-20 08:09:14 +00:00
"src" : "1178:10:21"
2018-05-31 13:01:02 +00:00
}
] ,
"name" : "addToWhitelist" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2553 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2552 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2579 ,
2018-06-20 08:09:14 +00:00
"src" : "1138:15:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2551 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "1138:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "1137:17:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2556 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-20 08:09:14 +00:00
"src" : "1193:0:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "1114:260:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2599 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "1612:118:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2587 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1630:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2589 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2588 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2581 ,
2018-06-20 08:09:14 +00:00
"src" : "1644:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1630:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4163636f756e74206973206e6f742077686974656c6973746564" ,
2018-06-28 17:13:59 +00:00
"id" : 2590 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1654:28:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_2f56605dd36b69a55672cdc762e8d3959c002a474a30a6774bba38bb65f718e1" ,
"typeString" : "literal_string \"Account is not whitelisted\""
} ,
"value" : "Account is not whitelisted"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_2f56605dd36b69a55672cdc762e8d3959c002a474a30a6774bba38bb65f718e1" ,
"typeString" : "literal_string \"Account is not whitelisted\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2586 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "1622:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2591 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "1622:61:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2592 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1622:61:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2597 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2593 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1693:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2595 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2594 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2581 ,
2018-06-20 08:09:14 +00:00
"src" : "1707:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1693:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "66616c7365" ,
2018-06-28 17:13:59 +00:00
"id" : 2596 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1718:5:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "false"
} ,
2018-06-20 08:09:14 +00:00
"src" : "1693:30:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2598 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1693:30:21"
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2600 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2584 ,
2018-05-31 13:01:02 +00:00
"modifierName" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2583 ,
2018-05-31 13:01:02 +00:00
"name" : "authorized" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 711 ,
"src" : "1597:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-06-20 08:09:14 +00:00
"src" : "1597:10:21"
2018-05-31 13:01:02 +00:00
}
] ,
"name" : "removeFromWhitelist" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2582 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2581 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2600 ,
2018-06-20 08:09:14 +00:00
"src" : "1557:15:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2580 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "1557:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "1556:17:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2585 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-20 08:09:14 +00:00
"src" : "1612:0:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "1528:202:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2642 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "2093:393:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2616 ,
2018-05-31 13:01:02 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2659 ,
2018-06-20 08:09:14 +00:00
"src" : "2230:3:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2617 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-20 08:09:14 +00:00
"src" : "2230:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
] ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2613 ,
2018-05-31 13:01:02 +00:00
"name" : "manager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 697 ,
"src" : "2213:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_ModuleManager_$1103" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract ModuleManager"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_ModuleManager_$1103" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract ModuleManager"
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2612 ,
2018-05-31 13:01:02 +00:00
"name" : "OwnerManager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 1511 ,
2018-06-20 08:09:14 +00:00
"src" : "2200:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_type$_t_contract$_OwnerManager_$1511_$" ,
2018-05-31 13:01:02 +00:00
"typeString" : "type(contract OwnerManager)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2614 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2200:21:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_contract$_OwnerManager_$1511" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract OwnerManager"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2615 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "isOwner" ,
"nodeType" : "MemberAccess" ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 1461 ,
2018-06-20 08:09:14 +00:00
"src" : "2200:29:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_external_view$_t_address_$returns$_t_bool_$" ,
"typeString" : "function (address) view external returns (bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2618 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2200:41:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4d6574686f642063616e206f6e6c792062652063616c6c656420627920616e206f776e6572" ,
2018-06-28 17:13:59 +00:00
"id" : 2619 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "2243:39:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_4df072353ff501a1071e1cc3e2eb3ee0ebb21a35321efe90c0960bf2f4356640" ,
"typeString" : "literal_string \"Method can only be called by an owner\""
} ,
"value" : "Method can only be called by an owner"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_4df072353ff501a1071e1cc3e2eb3ee0ebb21a35321efe90c0960bf2f4356640" ,
"typeString" : "literal_string \"Method can only be called by an owner\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2611 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "2192:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2620 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2192:91:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2621 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "2192:91:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2623 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "2301:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2625 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2624 ,
2018-05-31 13:01:02 +00:00
"name" : "to" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2602 ,
2018-06-20 08:09:14 +00:00
"src" : "2315:2:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "2301:17:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "546172676574206163636f756e74206973206e6f742077686974656c6973746564" ,
2018-06-28 17:13:59 +00:00
"id" : 2626 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "2320:35:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_9a154d7dadc01125e34b410c8bdd8fd2546fbbac90b22b0d92787a072cf6fc42" ,
"typeString" : "literal_string \"Target account is not whitelisted\""
} ,
"value" : "Target account is not whitelisted"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_9a154d7dadc01125e34b410c8bdd8fd2546fbbac90b22b0d92787a072cf6fc42" ,
"typeString" : "literal_string \"Target account is not whitelisted\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2622 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "2293:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2627 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2293:63:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2628 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "2293:63:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2632 ,
2018-05-31 13:01:02 +00:00
"name" : "to" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2602 ,
2018-06-20 08:09:14 +00:00
"src" : "2408:2:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2633 ,
2018-05-31 13:01:02 +00:00
"name" : "value" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2604 ,
2018-06-20 08:09:14 +00:00
"src" : "2412:5:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2634 ,
2018-05-31 13:01:02 +00:00
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2606 ,
2018-06-20 08:09:14 +00:00
"src" : "2419:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
} ,
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2635 ,
2018-05-31 13:01:02 +00:00
"name" : "Enum" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 30 ,
2018-06-20 08:09:14 +00:00
"src" : "2425:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_contract$_Enum_$30_$" ,
"typeString" : "type(contract Enum)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2636 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "Operation" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : 29 ,
2018-06-20 08:09:14 +00:00
"src" : "2425:14:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_enum$_Operation_$29_$" ,
"typeString" : "type(enum Enum.Operation)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2637 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"memberName" : "Call" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-20 08:09:14 +00:00
"src" : "2425:19:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
} ,
{
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
}
] ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2630 ,
2018-05-31 13:01:02 +00:00
"name" : "manager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 697 ,
"src" : "2374:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_ModuleManager_$1103" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract ModuleManager"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2631 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "execTransactionFromModule" ,
"nodeType" : "MemberAccess" ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 930 ,
"src" : "2374:33:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$returns$_t_bool_$" ,
"typeString" : "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2638 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2374:71:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "436f756c64206e6f742065786563757465207472616e73616374696f6e" ,
2018-06-28 17:13:59 +00:00
"id" : 2639 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "2447:31:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4" ,
"typeString" : "literal_string \"Could not execute transaction\""
} ,
"value" : "Could not execute transaction"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4" ,
"typeString" : "literal_string \"Could not execute transaction\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2629 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "2366:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2640 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2366:113:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2641 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "2366:113:21"
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2643 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "executeWhitelisted" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2607 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2602 ,
2018-05-31 13:01:02 +00:00
"name" : "to" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2012:10:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2601 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2012:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2604 ,
2018-05-31 13:01:02 +00:00
"name" : "value" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2024:13:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2603 ,
2018-05-31 13:01:02 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2024:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2606 ,
2018-05-31 13:01:02 +00:00
"name" : "data" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2039:10:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2605 ,
2018-05-31 13:01:02 +00:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2039:5:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
"typeString" : "bytes"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "2011:39:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2610 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2609 ,
2018-05-31 13:01:02 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2083:4:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2608 ,
2018-05-31 13:01:02 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2083:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "2082:6:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "1984:502:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-06-20 08:09:14 +00:00
"src" : "289:2199:21"
2018-05-31 13:01:02 +00:00
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "0:2489:21"
2018-05-31 13:01:02 +00:00
} ,
"legacyAST" : {
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/WhitelistModule.sol" ,
"exportedSymbols" : {
"WhitelistModule" : [
2018-06-28 17:13:59 +00:00
2644
2018-05-31 13:01:02 +00:00
]
} ,
2018-06-28 17:13:59 +00:00
"id" : 2645 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-06-28 17:13:59 +00:00
"id" : 2492 ,
2018-05-31 13:01:02 +00:00
"literals" : [
"solidity" ,
"0.4" ,
".24"
] ,
"nodeType" : "PragmaDirective" ,
2018-06-20 08:09:14 +00:00
"src" : "0:23:21"
2018-05-31 13:01:02 +00:00
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol" ,
"file" : "../Enum.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2493 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-05-31 13:01:02 +00:00
"sourceUnit" : 31 ,
2018-06-20 08:09:14 +00:00
"src" : "24:21:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol" ,
"file" : "../Module.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2494 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-06-20 08:09:14 +00:00
"sourceUnit" : 733 ,
"src" : "46:23:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol" ,
"file" : "../ModuleManager.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2495 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-06-20 08:09:14 +00:00
"sourceUnit" : 1104 ,
"src" : "70:30:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol" ,
"file" : "../OwnerManager.sol" ,
2018-06-28 17:13:59 +00:00
"id" : 2496 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
"sourceUnit" : 1512 ,
2018-06-20 08:09:14 +00:00
"src" : "101:29:21" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2497 ,
2018-05-31 13:01:02 +00:00
"name" : "Module" ,
"nodeType" : "UserDefinedTypeName" ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 732 ,
"src" : "317:6:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_Module_$732" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract Module"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2498 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "InheritanceSpecifier" ,
2018-06-20 08:09:14 +00:00
"src" : "317:6:21"
2018-05-31 13:01:02 +00:00
}
] ,
"contractDependencies" : [
2018-06-20 08:09:14 +00:00
632 ,
732 ,
2018-06-28 17:13:59 +00:00
1688
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2644 ,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts" : [
2018-06-28 17:13:59 +00:00
2644 ,
2018-06-20 08:09:14 +00:00
732 ,
632 ,
2018-06-28 17:13:59 +00:00
1688
2018-05-31 13:01:02 +00:00
] ,
"name" : "WhitelistModule" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : true ,
2018-06-28 17:13:59 +00:00
"id" : 2501 ,
2018-05-31 13:01:02 +00:00
"name" : "NAME" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "331:48:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2499 ,
2018-05-31 13:01:02 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "331:6:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "57686974656c697374204d6f64756c65" ,
2018-06-28 17:13:59 +00:00
"id" : 2500 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "361:18:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_84d69d03a7c747e8eefe7cc2b9e87b566cfc57cc90e4ed88f03f9c9780b7d4e6" ,
"typeString" : "literal_string \"Whitelist Module\""
} ,
"value" : "Whitelist Module"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2018-06-28 17:13:59 +00:00
"id" : 2504 ,
2018-05-31 13:01:02 +00:00
"name" : "VERSION" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "385:40:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2502 ,
2018-05-31 13:01:02 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "385:6:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "302e302e31" ,
2018-06-28 17:13:59 +00:00
"id" : 2503 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "418:7:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885" ,
"typeString" : "literal_string \"0.0.1\""
} ,
"value" : "0.0.1"
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2508 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "498:46:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2507 ,
2018-05-31 13:01:02 +00:00
"keyType" : {
2018-06-28 17:13:59 +00:00
"id" : 2505 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "507:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Mapping" ,
2018-06-20 08:09:14 +00:00
"src" : "498:25:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"valueType" : {
2018-06-28 17:13:59 +00:00
"id" : 2506 ,
2018-05-31 13:01:02 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "518:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2549 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "721:244:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2018-06-28 17:13:59 +00:00
"id" : 2514 ,
2018-05-31 13:01:02 +00:00
"name" : "setManager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 731 ,
"src" : "731:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$__$returns$__$" ,
"typeString" : "function ()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2515 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "731:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2516 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "731:12:21"
2018-05-31 13:01:02 +00:00
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2547 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "799:160:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"assignments" : [
2018-06-28 17:13:59 +00:00
2529
2018-05-31 13:01:02 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2529 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2550 ,
2018-06-20 08:09:14 +00:00
"src" : "813:15:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2528 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "813:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2533 ,
2018-05-31 13:01:02 +00:00
"initialValue" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2530 ,
2018-05-31 13:01:02 +00:00
"name" : "accounts" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2511 ,
2018-06-20 08:09:14 +00:00
"src" : "831:8:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2532 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2531 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2518 ,
2018-06-20 08:09:14 +00:00
"src" : "840:1:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "831:11:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "813:29:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-06-28 17:13:59 +00:00
"id" : 2537 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2535 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2529 ,
2018-06-20 08:09:14 +00:00
"src" : "864:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-28 17:13:59 +00:00
"id" : 2536 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "875:1:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-06-20 08:09:14 +00:00
"src" : "864:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "496e76616c6964206163636f756e742070726f7669646564" ,
2018-06-28 17:13:59 +00:00
"id" : 2538 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "878:26:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
} ,
"value" : "Invalid account provided"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2534 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "856:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2539 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "856:49:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2540 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "856:49:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2545 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2541 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "919:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2543 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2542 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2529 ,
2018-06-20 08:09:14 +00:00
"src" : "933:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "919:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-06-28 17:13:59 +00:00
"id" : 2544 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "944:4:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-06-20 08:09:14 +00:00
"src" : "919:29:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2546 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "919:29:21"
2018-05-31 13:01:02 +00:00
}
]
} ,
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-06-28 17:13:59 +00:00
"id" : 2524 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2521 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2518 ,
2018-06-20 08:09:14 +00:00
"src" : "773:1:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2522 ,
2018-05-31 13:01:02 +00:00
"name" : "accounts" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2511 ,
2018-06-20 08:09:14 +00:00
"src" : "777:8:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2523 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-20 08:09:14 +00:00
"src" : "777:15:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-06-20 08:09:14 +00:00
"src" : "773:19:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2548 ,
2018-05-31 13:01:02 +00:00
"initializationExpression" : {
"assignments" : [
2018-06-28 17:13:59 +00:00
2518
2018-05-31 13:01:02 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2518 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2550 ,
2018-06-20 08:09:14 +00:00
"src" : "758:9:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2517 ,
2018-05-31 13:01:02 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "758:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2520 ,
2018-05-31 13:01:02 +00:00
"initialValue" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-28 17:13:59 +00:00
"id" : 2519 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "770:1:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "758:13:21"
2018-05-31 13:01:02 +00:00
} ,
"loopExpression" : {
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2526 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-06-20 08:09:14 +00:00
"src" : "794:3:21" ,
2018-05-31 13:01:02 +00:00
"subExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2525 ,
2018-05-31 13:01:02 +00:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2518 ,
2018-06-20 08:09:14 +00:00
"src" : "794:1:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2527 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "794:3:21"
2018-05-31 13:01:02 +00:00
} ,
"nodeType" : "ForStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "753:206:21"
2018-05-31 13:01:02 +00:00
}
]
} ,
"documentation" : "@dev Setup function sets initial storage of contract.\n @param accounts List of whitelisted accounts." ,
2018-06-28 17:13:59 +00:00
"id" : 2550 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "setup" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2512 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2511 ,
2018-05-31 13:01:02 +00:00
"name" : "accounts" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2550 ,
2018-06-20 08:09:14 +00:00
"src" : "682:18:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[]"
} ,
"typeName" : {
"baseType" : {
2018-06-28 17:13:59 +00:00
"id" : 2509 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "682:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2510 ,
2018-05-31 13:01:02 +00:00
"length" : null ,
"nodeType" : "ArrayTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "682:9:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage_ptr" ,
"typeString" : "address[]"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "681:20:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2513 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-20 08:09:14 +00:00
"src" : "721:0:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "667:298:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2578 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "1193:181:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-06-28 17:13:59 +00:00
"id" : 2560 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2558 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2552 ,
2018-06-20 08:09:14 +00:00
"src" : "1211:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-28 17:13:59 +00:00
"id" : 2559 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1222:1:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-06-20 08:09:14 +00:00
"src" : "1211:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "496e76616c6964206163636f756e742070726f7669646564" ,
2018-06-28 17:13:59 +00:00
"id" : 2561 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1225:26:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
} ,
"value" : "Invalid account provided"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_da3a197794c99763c55550690a7eddbab5a672fb560947793aaf405a2b5f9490" ,
"typeString" : "literal_string \"Invalid account provided\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2557 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "1203:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2562 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "1203:49:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2563 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1203:49:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2568 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
2018-06-20 08:09:14 +00:00
"src" : "1270:23:21" ,
2018-05-31 13:01:02 +00:00
"subExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2565 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1271:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2567 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2566 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2552 ,
2018-06-20 08:09:14 +00:00
"src" : "1285:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1271:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4163636f756e7420697320616c72656164792077686974656c6973746564" ,
2018-06-28 17:13:59 +00:00
"id" : 2569 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1295:32:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_42f0c01c0b06bc5e652009543318e4fd67cfba114702c7f55fad1ff0c3c82ad8" ,
"typeString" : "literal_string \"Account is already whitelisted\""
} ,
"value" : "Account is already whitelisted"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_42f0c01c0b06bc5e652009543318e4fd67cfba114702c7f55fad1ff0c3c82ad8" ,
"typeString" : "literal_string \"Account is already whitelisted\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2564 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "1262:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2570 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "1262:66:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2571 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1262:66:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2576 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2572 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1338:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2574 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2573 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2552 ,
2018-06-20 08:09:14 +00:00
"src" : "1352:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1338:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-06-28 17:13:59 +00:00
"id" : 2575 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1363:4:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-06-20 08:09:14 +00:00
"src" : "1338:29:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2577 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1338:29:21"
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2579 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2555 ,
2018-05-31 13:01:02 +00:00
"modifierName" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2554 ,
2018-05-31 13:01:02 +00:00
"name" : "authorized" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 711 ,
"src" : "1178:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-06-20 08:09:14 +00:00
"src" : "1178:10:21"
2018-05-31 13:01:02 +00:00
}
] ,
"name" : "addToWhitelist" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2553 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2552 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2579 ,
2018-06-20 08:09:14 +00:00
"src" : "1138:15:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2551 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "1138:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "1137:17:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2556 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-20 08:09:14 +00:00
"src" : "1193:0:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "1114:260:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2599 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "1612:118:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2587 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1630:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2589 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2588 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2581 ,
2018-06-20 08:09:14 +00:00
"src" : "1644:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1630:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4163636f756e74206973206e6f742077686974656c6973746564" ,
2018-06-28 17:13:59 +00:00
"id" : 2590 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1654:28:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_2f56605dd36b69a55672cdc762e8d3959c002a474a30a6774bba38bb65f718e1" ,
"typeString" : "literal_string \"Account is not whitelisted\""
} ,
"value" : "Account is not whitelisted"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_2f56605dd36b69a55672cdc762e8d3959c002a474a30a6774bba38bb65f718e1" ,
"typeString" : "literal_string \"Account is not whitelisted\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2586 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "1622:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2591 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "1622:61:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2592 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1622:61:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2597 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2593 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "1693:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2595 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2594 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2581 ,
2018-06-20 08:09:14 +00:00
"src" : "1707:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "1693:22:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "66616c7365" ,
2018-06-28 17:13:59 +00:00
"id" : 2596 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "1718:5:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "false"
} ,
2018-06-20 08:09:14 +00:00
"src" : "1693:30:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2598 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "1693:30:21"
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2600 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2584 ,
2018-05-31 13:01:02 +00:00
"modifierName" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2583 ,
2018-05-31 13:01:02 +00:00
"name" : "authorized" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 711 ,
"src" : "1597:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-06-20 08:09:14 +00:00
"src" : "1597:10:21"
2018-05-31 13:01:02 +00:00
}
] ,
"name" : "removeFromWhitelist" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2582 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2581 ,
2018-05-31 13:01:02 +00:00
"name" : "account" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2600 ,
2018-06-20 08:09:14 +00:00
"src" : "1557:15:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2580 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "1557:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "1556:17:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2585 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-20 08:09:14 +00:00
"src" : "1612:0:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "1528:202:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-06-28 17:13:59 +00:00
"id" : 2642 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-20 08:09:14 +00:00
"src" : "2093:393:21" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2616 ,
2018-05-31 13:01:02 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2659 ,
2018-06-20 08:09:14 +00:00
"src" : "2230:3:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2617 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-20 08:09:14 +00:00
"src" : "2230:10:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
] ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2613 ,
2018-05-31 13:01:02 +00:00
"name" : "manager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 697 ,
"src" : "2213:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_ModuleManager_$1103" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract ModuleManager"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_ModuleManager_$1103" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract ModuleManager"
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2612 ,
2018-05-31 13:01:02 +00:00
"name" : "OwnerManager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 1511 ,
2018-06-20 08:09:14 +00:00
"src" : "2200:12:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_type$_t_contract$_OwnerManager_$1511_$" ,
2018-05-31 13:01:02 +00:00
"typeString" : "type(contract OwnerManager)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2614 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2200:21:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_contract$_OwnerManager_$1511" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract OwnerManager"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2615 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "isOwner" ,
"nodeType" : "MemberAccess" ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 1461 ,
2018-06-20 08:09:14 +00:00
"src" : "2200:29:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_external_view$_t_address_$returns$_t_bool_$" ,
"typeString" : "function (address) view external returns (bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2618 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2200:41:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4d6574686f642063616e206f6e6c792062652063616c6c656420627920616e206f776e6572" ,
2018-06-28 17:13:59 +00:00
"id" : 2619 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "2243:39:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_4df072353ff501a1071e1cc3e2eb3ee0ebb21a35321efe90c0960bf2f4356640" ,
"typeString" : "literal_string \"Method can only be called by an owner\""
} ,
"value" : "Method can only be called by an owner"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_4df072353ff501a1071e1cc3e2eb3ee0ebb21a35321efe90c0960bf2f4356640" ,
"typeString" : "literal_string \"Method can only be called by an owner\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2611 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "2192:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2620 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2192:91:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2621 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "2192:91:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2623 ,
2018-05-31 13:01:02 +00:00
"name" : "isWhitelisted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2508 ,
2018-06-20 08:09:14 +00:00
"src" : "2301:13:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2625 ,
2018-05-31 13:01:02 +00:00
"indexExpression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2624 ,
2018-05-31 13:01:02 +00:00
"name" : "to" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2602 ,
2018-06-20 08:09:14 +00:00
"src" : "2315:2:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-06-20 08:09:14 +00:00
"src" : "2301:17:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "546172676574206163636f756e74206973206e6f742077686974656c6973746564" ,
2018-06-28 17:13:59 +00:00
"id" : 2626 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "2320:35:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_9a154d7dadc01125e34b410c8bdd8fd2546fbbac90b22b0d92787a072cf6fc42" ,
"typeString" : "literal_string \"Target account is not whitelisted\""
} ,
"value" : "Target account is not whitelisted"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_9a154d7dadc01125e34b410c8bdd8fd2546fbbac90b22b0d92787a072cf6fc42" ,
"typeString" : "literal_string \"Target account is not whitelisted\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2622 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "2293:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2627 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2293:63:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2628 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "2293:63:21"
2018-05-31 13:01:02 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2632 ,
2018-05-31 13:01:02 +00:00
"name" : "to" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2602 ,
2018-06-20 08:09:14 +00:00
"src" : "2408:2:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2633 ,
2018-05-31 13:01:02 +00:00
"name" : "value" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2604 ,
2018-06-20 08:09:14 +00:00
"src" : "2412:5:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2634 ,
2018-05-31 13:01:02 +00:00
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2606 ,
2018-06-20 08:09:14 +00:00
"src" : "2419:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
} ,
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2635 ,
2018-05-31 13:01:02 +00:00
"name" : "Enum" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 30 ,
2018-06-20 08:09:14 +00:00
"src" : "2425:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_contract$_Enum_$30_$" ,
"typeString" : "type(contract Enum)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2636 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "Operation" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : 29 ,
2018-06-20 08:09:14 +00:00
"src" : "2425:14:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_enum$_Operation_$29_$" ,
"typeString" : "type(enum Enum.Operation)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2637 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"memberName" : "Call" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-20 08:09:14 +00:00
"src" : "2425:19:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
} ,
{
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
}
] ,
"expression" : {
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"id" : 2630 ,
2018-05-31 13:01:02 +00:00
"name" : "manager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 697 ,
"src" : "2374:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-20 08:09:14 +00:00
"typeIdentifier" : "t_contract$_ModuleManager_$1103" ,
2018-05-31 13:01:02 +00:00
"typeString" : "contract ModuleManager"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2631 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "execTransactionFromModule" ,
"nodeType" : "MemberAccess" ,
2018-06-20 08:09:14 +00:00
"referencedDeclaration" : 930 ,
"src" : "2374:33:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$returns$_t_bool_$" ,
"typeString" : "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2638 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2374:71:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "436f756c64206e6f742065786563757465207472616e73616374696f6e" ,
2018-06-28 17:13:59 +00:00
"id" : 2639 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-20 08:09:14 +00:00
"src" : "2447:31:21" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4" ,
"typeString" : "literal_string \"Could not execute transaction\""
} ,
"value" : "Could not execute transaction"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4" ,
"typeString" : "literal_string \"Could not execute transaction\""
}
] ,
2018-06-28 17:13:59 +00:00
"id" : 2629 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-28 17:13:59 +00:00
2662 ,
2663
2018-05-31 13:01:02 +00:00
] ,
2018-06-28 17:13:59 +00:00
"referencedDeclaration" : 2663 ,
2018-06-20 08:09:14 +00:00
"src" : "2366:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2640 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-20 08:09:14 +00:00
"src" : "2366:113:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-28 17:13:59 +00:00
"id" : 2641 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-20 08:09:14 +00:00
"src" : "2366:113:21"
2018-05-31 13:01:02 +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-06-28 17:13:59 +00:00
"id" : 2643 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "executeWhitelisted" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2607 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2602 ,
2018-05-31 13:01:02 +00:00
"name" : "to" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2012:10:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2601 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2012:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2604 ,
2018-05-31 13:01:02 +00:00
"name" : "value" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2024:13:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2603 ,
2018-05-31 13:01:02 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2024:7:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2606 ,
2018-05-31 13:01:02 +00:00
"name" : "data" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2039:10:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2605 ,
2018-05-31 13:01:02 +00:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2039:5:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
"typeString" : "bytes"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "2011:39:21"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-28 17:13:59 +00:00
"id" : 2610 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-28 17:13:59 +00:00
"id" : 2609 ,
2018-05-31 13:01:02 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2018-06-28 17:13:59 +00:00
"scope" : 2643 ,
2018-06-20 08:09:14 +00:00
"src" : "2083:4:21" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2018-06-28 17:13:59 +00:00
"id" : 2608 ,
2018-05-31 13:01:02 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-20 08:09:14 +00:00
"src" : "2083:4:21" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "2082:6:21"
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +00:00
"scope" : 2644 ,
2018-06-20 08:09:14 +00:00
"src" : "1984:502:21" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-06-28 17:13:59 +00:00
"scope" : 2645 ,
2018-06-20 08:09:14 +00:00
"src" : "289:2199:21"
2018-05-31 13:01:02 +00:00
}
] ,
2018-06-20 08:09:14 +00:00
"src" : "0:2489:21"
2018-05-31 13:01:02 +00:00
} ,
"compiler" : {
"name" : "solc" ,
"version" : "0.4.24+commit.e67f0147.Emscripten.clang"
} ,
"networks" : {
2018-06-28 17:13:59 +00:00
"1530197641790" : {
2018-06-26 11:48:05 +00:00
"events" : { } ,
"links" : { } ,
2018-06-28 17:13:59 +00:00
"address" : "0xadeb6fb1db2bc395cdb25a6b8593d23d606fdd09" ,
"transactionHash" : "0x43b71202e5dfc71aec31581d645b1839f5bc4ddc0ac6bd149091223b726ec7e4"
2018-05-31 13:01:02 +00:00
}
} ,
2018-06-28 17:13:59 +00:00
"schemaVersion" : "2.0.1" ,
"updatedAt" : "2018-06-28T15:26:58.225Z"
2018-05-31 13:01:02 +00:00
}