2018-05-04 16:04:04 +02:00
{
2018-05-10 13:12:13 +02:00
"contractName" : "SocialRecoveryModule" ,
2018-05-04 16:04:04 +02:00
"abi" : [
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "REPLACE_OWNER_FUNCTION_IDENTIFIER" ,
"outputs" : [
{
"name" : "" ,
"type" : "bytes4"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "threshold" ,
"outputs" : [
{
"name" : "" ,
"type" : "uint8"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
2018-05-10 13:12:13 +02:00
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "manager" ,
"outputs" : [
{
"name" : "" ,
"type" : "address"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
2018-05-04 16:04:04 +02:00
{
"constant" : true ,
"inputs" : [
{
"name" : "" ,
"type" : "address"
}
] ,
"name" : "isFriend" ,
"outputs" : [
{
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
2018-05-10 13:12:13 +02:00
"constant" : false ,
"inputs" : [
2018-05-04 16:04:04 +02:00
{
2018-05-10 13:12:13 +02:00
"name" : "_masterCopy" ,
"type" : "address"
2018-05-04 16:04:04 +02:00
}
] ,
2018-05-10 13:12:13 +02:00
"name" : "changeMasterCopy" ,
"outputs" : [ ] ,
2018-05-04 16:04:04 +02:00
"payable" : false ,
2018-05-10 13:12:13 +02:00
"stateMutability" : "nonpayable" ,
2018-05-04 16:04:04 +02:00
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
2018-05-10 13:12:13 +02:00
"name" : "NAME" ,
2018-05-04 16:04:04 +02:00
"outputs" : [
{
"name" : "" ,
2018-05-10 13:12:13 +02:00
"type" : "string"
2018-05-04 16:04:04 +02:00
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [
{
"name" : "" ,
"type" : "bytes32"
} ,
{
"name" : "" ,
"type" : "address"
}
] ,
"name" : "isConfirmed" ,
"outputs" : [
{
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [
{
"name" : "" ,
"type" : "uint256"
}
] ,
"name" : "friends" ,
"outputs" : [
{
"name" : "" ,
"type" : "address"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [
{
"name" : "" ,
"type" : "bytes32"
}
] ,
"name" : "isExecuted" ,
"outputs" : [
{
"name" : "" ,
"type" : "bool"
}
] ,
"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" : "_friends" ,
"type" : "address[]"
} ,
{
"name" : "_threshold" ,
"type" : "uint8"
}
] ,
"name" : "setup" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"name" : "dataHash" ,
"type" : "bytes32"
}
] ,
"name" : "confirmTransaction" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"name" : "data" ,
"type" : "bytes"
}
] ,
2018-05-10 13:12:13 +02:00
"name" : "recoverAccess" ,
"outputs" : [ ] ,
2018-05-04 16:04:04 +02:00
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [
{
"name" : "dataHash" ,
"type" : "bytes32"
}
] ,
"name" : "isConfirmedByRequiredFriends" ,
"outputs" : [
{
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [
{
"name" : "data" ,
"type" : "bytes"
}
] ,
"name" : "getDataHash" ,
"outputs" : [
{
"name" : "" ,
"type" : "bytes32"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
}
] ,
2018-05-10 13:12:13 +02:00
"bytecode" : " 0 x 608060405234801561001057600080 f d 5 b 50611131806100206000396000 f 3006080604052600436106100 d b 576000357 c 0 100000000000000000000000000000000000000000000000000000000900463 f f f f f f f f 16806336749 c 1 a 146100e05780633 c f 5 b 3091461014957806342 c d e 4e8146101 b c 578063481 c 6 a 75146101 e d 57806368125 a 1 b 1461024457806379716e431461029 f 5780637 d e 7 e d e f 146102 d 0 5780639 c a 89 d 0 d 14610313578063 a 3 f 4 d f 7e1461035 c 578063 a e 68 b 0 56146103 e c 578063 b 79 f f a f f 14610471578063 c e 146828146104 d a 578063 d 2740 c 7614610547578063e52 c b 36 a 146105 b 0 578063 f f a 1 a d 74146105 f 9575 b 600080 f d 5 b 3480156100 e c 57600080 f d 5 b 506100 f 5610689565 b 60405180827 b f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 19167 b f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1916815260200191505060405180910390 f 35 b 34801561015557600080 f d 5 b 506101 b a 60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560 f f 1690602001909291905050506106 a d 565 b 0 0 5 b 3480156101 c 857600080 f d 5 b 506101 d 1610822565 b 604051808260 f f 1660 f f 16815260200191505060405180910390 f 35 b 3480156101 f 957600080 f d 5 b 50610202610835565 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 34801561025057600080 f d 5 b 50610285600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919050505061085 b 565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156102 a b 57600080 f d 5 b 506102 c e 600480360381019080803560001916906020019092919050505061087 b 565 b 0 0 5 b 3480156102 d c 57600080 f d 5 b 50610311600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919050505061097 c 565 b 0 0 5 b 34801561031 f 57600080 f d 5 b 506103426004803603810190808035600019169060200190929190505050610 a 41565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561036857600080 f d 5 b 50610371610 b 40565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 838110156103 b 1578082015181840152602081019050610396565 b 50505050905090810190601 f 1680156103 d e 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 3480156103 f 857600080 f d 5 b 50610453600480360381019080803590602001908201803590602001908080601 f 0 160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610 b 79565 b 60405180826000191660001916815260200191505060405180910390 f 35 b 34801561047 d 57600080 f d 5 b 506104 c 0 6004803603810190808035600019169060200190929190803573 f f f f f f f f f f f f f f f f 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 b e 5565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156104e657600080 f d 5 b 5061050560048036038101908080359060200190929190505050610 c 14565 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 34801561055357600080 f d 5 b 506105 a e 600480360381019080803590602001908201803590602001908080601 f 0 160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610 c 52565 b 0 0 5 b 3480156105 b c 57600080 f d 5 b 506105 d f 6004803603810190808035600019169060200190929190505050610 f 55565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561060557600080 f d 5 b 5061060e610 f 75565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 8381101561064e578082015181840152602081019050610633565 b 50505050905090810190601 f 16801561067 b 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 7 f 54e99 c 6e0000000000000000000000000000000000000000000000000000000081565 b 60008083518360 f f 16111515156106 c 357600080 f d 5 b 60028360 f f 16101515156106 d 657600080 f d 5 b 6106 d e 610 f a e 565 b 600091505 b 83518210156107 e a 5783828151811015156106 f a 57 f e 5 b 90602001906020020151905060008173 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 161415151561072 c 57600080 f d 5 b 600360008273 f f f f f f f f f f f f f f f f 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 1615151561078557600080 f d 5 b 6001600360008373 f f f f f f f f f f f f f f f f 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 16815260200190815260200160002060006101000 a 81548160 f f 0 219169083
"deployedBytecode" : " 0 x 6080604052600436106100 d b 576000357 c 0 100000000000000000000000000000000000000000000000000000000900463 f f f f f f f f 16806336749 c 1 a 146100e05780633 c f 5 b 3091461014957806342 c d e 4e8146101 b c 578063481 c 6 a 75146101 e d 57806368125 a 1 b 1461024457806379716e431461029 f 5780637 d e 7 e d e f 146102 d 0 5780639 c a 89 d 0 d 14610313578063 a 3 f 4 d f 7e1461035 c 578063 a e 68 b 0 56146103 e c 578063 b 79 f f a f f 14610471578063 c e 146828146104 d a 578063 d 2740 c 7614610547578063e52 c b 36 a 146105 b 0 578063 f f a 1 a d 74146105 f 9575 b 600080 f d 5 b 3480156100 e c 57600080 f d 5 b 506100 f 5610689565 b 60405180827 b f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 19167 b f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1916815260200191505060405180910390 f 35 b 34801561015557600080 f d 5 b 506101 b a 60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560 f f 1690602001909291905050506106 a d 565 b 0 0 5 b 3480156101 c 857600080 f d 5 b 506101 d 1610822565 b 604051808260 f f 1660 f f 16815260200191505060405180910390 f 35 b 3480156101 f 957600080 f d 5 b 50610202610835565 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 34801561025057600080 f d 5 b 50610285600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919050505061085 b 565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156102 a b 57600080 f d 5 b 506102 c e 600480360381019080803560001916906020019092919050505061087 b 565 b 0 0 5 b 3480156102 d c 57600080 f d 5 b 50610311600480360381019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919050505061097 c 565 b 0 0 5 b 34801561031 f 57600080 f d 5 b 506103426004803603810190808035600019169060200190929190505050610 a 41565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561036857600080 f d 5 b 50610371610 b 40565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 838110156103 b 1578082015181840152602081019050610396565 b 50505050905090810190601 f 1680156103 d e 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 3480156103 f 857600080 f d 5 b 50610453600480360381019080803590602001908201803590602001908080601 f 0 160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610 b 79565 b 60405180826000191660001916815260200191505060405180910390 f 35 b 34801561047 d 57600080 f d 5 b 506104 c 0 6004803603810190808035600019169060200190929190803573 f f f f f f f f f f f f f f f f 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 b e 5565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156104e657600080 f d 5 b 5061050560048036038101908080359060200190929190505050610 c 14565 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 34801561055357600080 f d 5 b 506105 a e 600480360381019080803590602001908201803590602001908080601 f 0 160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610 c 52565 b 0 0 5 b 3480156105 b c 57600080 f d 5 b 506105 d f 6004803603810190808035600019169060200190929190505050610 f 55565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561060557600080 f d 5 b 5061060e610 f 75565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 8381101561064e578082015181840152602081019050610633565 b 50505050905090810190601 f 16801561067 b 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 7 f 54e99 c 6e0000000000000000000000000000000000000000000000000000000081565 b 60008083518360 f f 16111515156106 c 357600080 f d 5 b 60028360 f f 16101515156106 d 657600080 f d 5 b 6106 d e 610 f a e 565 b 600091505 b 83518210156107 e a 5783828151811015156106 f a 57 f e 5 b 90602001906020020151905060008173 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 161415151561072 c 57600080 f d 5 b 600360008273 f f f f f f f f f f f f f f f f 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 1615151561078557600080 f d 5 b 6001600360008373 f f f f f f f f f f f f f f f f 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 16815260200190815260200160002060006101000 a 81548160 f f 0 2191690831515021790555081806001019250506106e3565 b 8360029080519060
"sourceMap" : "306:3521:20:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;306:3521:20;;;;;;;" ,
"deployedSourceMap" : " 306 : 3521 : 20 : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 459 : 72 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 459 : 72 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1253 : 494 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 1253 : 494 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 538 : 22 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 538 : 22 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 262 : 28 : 8 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 262 : 28 : 8 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 661 : 41 : 20 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 661 : 41 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1860 : 181 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 1860 : 181 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 626 : 208 : 6 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 626 : 208 : 6 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3161 : 405 : 20 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3161 : 405 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 353 : 54 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 353 : 54 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 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 ; 353 : 54 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3695 : 130 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3695 : 130 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 905 : 65 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 905 : 65 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 566 : 24 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 566 : 24 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2245 : 755 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 2245 : 755 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 770 : 43 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 770 : 43 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 413 : 40 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 413 : 40 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 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 ; 413 : 40 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 459 : 72 ; ; ; : : : o ; 1253 : 494 : : - ; 1476 : 9 ; 1531 : 14 ; 1357 : 8 ; : 15 ; 1343 : 10 ; : 29 ; ; ; ; 1335 : 38 ; ; ; ; ; ; ; ; 1405 : 1 ; 1391 : 10 ; : 15 ; ; ; ; 1383 : 24 ; ; ; ; ; ; ; ; 1417 : 12 ; : 10 ; : 12 : : i ; : : : - ; 1488 : 1 ; 1476 : 13 ; ; 1471 : 210 ; 1495 : 8 ; : 15 ; 1491 : 1 ; : 19 ; 1471 : 210 ; ; ; 1548 : 8 ; 1557 : 1 ; 1548 : 11 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1531 : 28 ; ; 1591 : 1 ; 1581 : 6 ; : 11 ; ; ; ; 1573 : 20 ; ; ; ; ; ; ; ; 1616 : 8 ; : 16 ; 1625 : 6 ; 1616 : 16 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1615 : 17 ; 1607 : 26 ; ; ; ; ; ; ; ; 1666 : 4 ; 1647 : 8 ; : 16 ; 1656 : 6 ; 1647 : 16 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : 23 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1512 : 3 ; ; ; ; ; ; ; 1471 : 210 ; ; ; 1700 : 8 ; 1690 : 7 ; : 18 ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; 1730 : 10 ; 1718 : 9 ; ; : 22 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1253 : 494 ; ; ; ; : : : o ; 538 : 22 : : - ; ; ; ; ; ; ; ; ; ; ; ; ; : : : o ; 262 : 28 : 8 : - ; ; ; ; ; ; ; ; ; ; ; ; ; : : : o ; 661 : 41 : 20 : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : o ; 1860 : 181 : : - ; 1017 : 8 ; : 20 ; 1026 : 10 ; 1017 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1009 : 29 ; ; ; ; ; ; ; ; 1963 : 10 ; : 20 ; 1974 : 8 ; 1963 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1962 : 21 ; 1954 : 30 ; ; ; ; ; ; ; ; 2030 : 4 ; 1994 : 11 ; : 21 ; 2006 : 8 ; 1994 : 21 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : 33 ; 2016 : 10 ; 1994 : 33 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : 40 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1860 : 181 ; : : : o ; 626 : 208 : 6 : - ; 359 : 7 : 8 ; ; ; ; ; ; ; ; ; ; ; 337 : 30 ; ; : 10 ; : 30 ; ; ; 329 : 39 ; ; ; ; ; ; ; ; 791 : 1 : 6 ; 776 : 11 ; : 16 ; ; ; ; 768 : 25 ; ; ; ; ; ; ; ; 816 : 11 ; 803 : 10 ; ; : 24 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 626 : 208 ; : : : o ; 3161 : 405 : 20 : - ; 3262 : 4 ; 3282 : 25 ; 3322 : 9 ; 3334 : 1 ; 3322 : 13 ; ; 3317 : 221 ; 3341 : 7 ; : 14 ; ; ; ; 3337 : 1 ; : 18 ; 3317 : 221 ; ; ; 3380 : 11 ; : 21 ; 3392 : 8 ; 3380 : 21 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : 33 ; 3402 : 7 ; 3410 : 1 ; 3402 : 10 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3380 : 33 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3376 : 74 ; ; ; 3431 : 19 ; ; ; ; ; ; ; 3376 : 74 ; 3489 : 9 ; ; ; ; ; ; ; ; ; ; ; 3468 : 30 ; ; : 17 ; : 30 ; 3464 : 63 ; ; ; 3523 : 4 ; 3516 : 11 ; ; ; ; 3464 : 63 ; 3357 : 3 ; ; ; ; ; ; ; 3317 : 221 ; ; ; 3554 : 5 ; 3547 : 12 ; ; 3161 : 405 ; ; ; ; ; ; : : : o ; 353 : 54 : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : o ; 3695 : 130 : : - ; 3773 : 7 ; 3813 : 4 ; 3803 : 15 ; ; ; ; ; ; ; ; ; ; ; ; ; 36 : 153 : -1 ; 66 : 2 ; 61 : 3 ; 58 : 11 ; 51 : 19 ; 36 : 153 ; ; ; 182 : 3 ; 176 : 10 ; 171 : 3 ; 164 : 23 ; 98 : 2 ; 93 : 3 ; 89 : 12 ; 82 : 19 ; ; 123 : 2 ; 118 : 3 ; 114 : 12 ; 107 : 19 ; ; 148 : 2 ; 143 : 3 ; 139 : 12 ; 132 : 19 ; ; 36 : 153 ; ; ; 274 : 1 ; 267 : 3 ; 263 : 2 ; 259 : 12 ; 254 : 3 ; 250 : 22 ; 246 : 30 ; 315 : 4 ; 311 : 9 ; 305 : 3 ; 299 : 10 ; 295 : 26 ; 356 : 4 ; 350 : 3 ; 344 : 10 ; 340 : 21 ; 389 : 7 ; 380 ; 377 : 20 ; 372 : 3 ; 365 : 33 ; 3 : 399 ; ; ; 3803 : 15 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3796 : 22 ; ; 3695 : 130 ; ; ; : : : o ; 905 : 65 : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : o ; 566 : 24 : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : o ; 2245 : 755 : : - ; 2485 : 25 ; 2744 : 16 ; 2381 : 8 ; : 20 ; 2390 : 10 ; 2381 : 20 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2373 : 29 ; ; ; ; ; ; ; ; 2645 : 4 ; 2639 ; 2635 : 15 ; 2629 : 22 ; 2607 : 44 ; ; 2700 : 33 ; 2678 : 55 ; ; ; : 18 ; : 55 ; ; ; ; 2670 :
"source" : "pragma solidity 0.4.23;\nimport \"../Enum.sol\";\nimport \"../Module.sol\";\nimport \"../ModuleManager.sol\";\nimport \"../OwnerManager.sol\";\n\n\n/// @title Social Recovery Module - Allows to replace an owner without Safe confirmations if friends approve the replacement.\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract SocialRecoveryModule is Module {\n\n string public constant NAME = \"Social Recovery Module\";\n string public constant VERSION = \"0.0.1\";\n bytes4 public constant REPLACE_OWNER_FUNCTION_IDENTIFIER = hex\"54e99c6e\";\n\n uint8 public threshold;\n address[] public friends;\n\n // isFriend mapping maps friend's address to friend status.\n mapping (address => bool) public isFriend;\n // isExecuted mapping maps data hash to execution status.\n mapping (bytes32 => bool) public isExecuted;\n // isConfirmed mapping maps data hash to friend's address to confirmation status.\n mapping (bytes32 => mapping (address => bool)) public isConfirmed;\n\n modifier onlyFriend() {\n require(isFriend[msg.sender]);\n _;\n }\n\n /// @dev Setup function sets initial storage of contract.\n /// @param _friends List of friends' addresses.\n /// @param _threshold Required number of friends to confirm replacement.\n function setup(address[] _friends, uint8 _threshold)\n public\n {\n require(_threshold <= _friends.length);\n require(_threshold >= 2);\n setManager();\n // Set allowed friends.\n for (uint256 i = 0; i < _friends.length; i++) {\n address friend = _friends[i];\n require(friend != 0);\n require(!isFriend[friend]);\n isFriend[friend] = true;\n }\n friends = _friends;\n threshold = _threshold;\n }\n\n /// @dev Allows a friend to confirm a Safe transaction.\n /// @param dataHash Safe transaction hash.\n function confirmTransaction(bytes32 dataHash)\n public\n onlyFriend\n {\n require(!isExecuted[dataHash]);\n isConfirmed[dataHash][msg.sender] = true;\n }\n\n /// @dev Returns if Safe transaction is a valid owner replacement transaction.\n /// @param data Encoded owner replacement transaction.\n /// @return Returns if transaction can be executed.\n function recoverAccess(bytes data)\n public\n {\n // Only friends are allowed to execute the replacement.\n require(isFriend[msg.sender]);\n // Validate that transaction is a owner replacement transaction.\n bytes4 functionIdentifier;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n functionIdentifier := mload(add(data, 0x20))\n }\n require(functionIdentifier == REPLACE_OWNER_FUNCTION_IDENTIFIER);\n bytes32 dataHash = getDataHash(data);\n require(!isExecuted[dataHash]);\n require(isConfirmedByRequiredFriends(dataHash));\n isExecuted[dataHash] = true;\n manager.executeModule(address(manager), 0, data, Enum.Operation.Call);\n }\n\n /// @dev Returns if Safe transaction is a valid owner replacement transaction.\n /// @param dataHash Data hash.\n /// @return Confirmation status.\n function isConfirmedByRequiredFriends(bytes32 dataHash)\n public\n view\n returns (bool)\n {\n uint256 confirmationCount;\n for (uint256 i = 0; i < friends.length; i++) {\n if (isConfirmed[dataHash][friends[i]])\n confirmationCount++;\n if (confirmationCount == threshold)\n return true;\n }\n return false;\n }\n\n /// @dev Returns hash of data encoding owner replacement.\n /// @param data Data payload.\n /// @return Data hash.\n function getDataHash(bytes data)\n public\n view\n returns (bytes32)\n {\n return keccak256(data);\n }\n}\n" ,
"sourcePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/SocialRecoveryModule.sol" ,
2018-05-04 16:04:04 +02:00
"ast" : {
2018-05-10 13:12:13 +02:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/SocialRecoveryModule.sol" ,
2018-05-04 16:04:04 +02:00
"exportedSymbols" : {
2018-05-10 13:12:13 +02:00
"SocialRecoveryModule" : [
2304
2018-05-04 16:04:04 +02:00
]
} ,
2018-05-10 13:12:13 +02:00
"id" : 2305 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-05-10 13:12:13 +02:00
"id" : 2047 ,
2018-05-04 16:04:04 +02:00
"literals" : [
"solidity" ,
"0.4" ,
2018-05-10 13:12:13 +02:00
".23"
2018-05-04 16:04:04 +02:00
] ,
"nodeType" : "PragmaDirective" ,
2018-05-10 13:12:13 +02:00
"src" : "0:23:20"
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol" ,
"file" : "../Enum.sol" ,
"id" : 2048 ,
"nodeType" : "ImportDirective" ,
"scope" : 2305 ,
"sourceUnit" : 31 ,
"src" : "24:21:20" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol" ,
"file" : "../Module.sol" ,
"id" : 2049 ,
"nodeType" : "ImportDirective" ,
"scope" : 2305 ,
"sourceUnit" : 878 ,
"src" : "46:23:20" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol" ,
"file" : "../ModuleManager.sol" ,
"id" : 2050 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ImportDirective" ,
2018-05-10 13:12:13 +02:00
"scope" : 2305 ,
"sourceUnit" : 1143 ,
"src" : "70:30:20" ,
2018-05-04 16:04:04 +02:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
2018-05-10 13:12:13 +02:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol" ,
"file" : "../OwnerManager.sol" ,
"id" : 2051 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ImportDirective" ,
2018-05-10 13:12:13 +02:00
"scope" : 2305 ,
"sourceUnit" : 1439 ,
"src" : "101:29:20" ,
2018-05-04 16:04:04 +02:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
2018-05-10 13:12:13 +02:00
"arguments" : null ,
2018-05-04 16:04:04 +02:00
"baseName" : {
"contractScope" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2052 ,
"name" : "Module" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "UserDefinedTypeName" ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 877 ,
"src" : "339:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_contract$_Module_$877" ,
"typeString" : "contract Module"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2053 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "InheritanceSpecifier" ,
2018-05-10 13:12:13 +02:00
"src" : "339:6:20"
2018-05-04 16:04:04 +02:00
}
] ,
"contractDependencies" : [
2018-05-10 13:12:13 +02:00
779 ,
877 ,
1559
2018-05-04 16:04:04 +02:00
] ,
"contractKind" : "contract" ,
2018-05-10 13:12:13 +02:00
"documentation" : "@title Social Recovery Module - Allows to replace an owner without Safe confirmations if friends approve the replacement.\n @author Stefan George - <stefan@gnosis.pm>" ,
2018-05-04 16:04:04 +02:00
"fullyImplemented" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2304 ,
2018-05-04 16:04:04 +02:00
"linearizedBaseContracts" : [
2018-05-10 13:12:13 +02:00
2304 ,
877 ,
779 ,
1559
2018-05-04 16:04:04 +02:00
] ,
2018-05-10 13:12:13 +02:00
"name" : "SocialRecoveryModule" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2056 ,
2018-05-04 16:04:04 +02:00
"name" : "NAME" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "353:54:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2054 ,
2018-05-04 16:04:04 +02:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "353:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"hexValue" : "536f6369616c205265636f76657279204d6f64756c65" ,
"id" : 2055 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "383:24:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_stringliteral_8f499aea563eae5544b16c9123d6c7c8537a7d9dd86296aa60c65de194207230" ,
"typeString" : "literal_string \"Social Recovery Module\""
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"value" : "Social Recovery Module"
2018-05-04 16:04:04 +02:00
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2059 ,
2018-05-04 16:04:04 +02:00
"name" : "VERSION" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "413:40:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2057 ,
2018-05-04 16:04:04 +02:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "413:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "302e302e31" ,
2018-05-10 13:12:13 +02:00
"id" : 2058 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "446:7:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885" ,
"typeString" : "literal_string \"0.0.1\""
} ,
"value" : "0.0.1"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2062 ,
2018-05-04 16:04:04 +02:00
"name" : "REPLACE_OWNER_FUNCTION_IDENTIFIER" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "459:72:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2060 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes4" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "459:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "54e99c6e" ,
2018-05-10 13:12:13 +02:00
"id" : 2061 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "518:13:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_c9d777df93ed5e148240dbbfbc0215def5044b10739d563ea8310789d1317911" ,
"typeString" : "literal_string (contains invalid UTF-8 sequence at position 4)"
} ,
"value" : null
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2064 ,
2018-05-04 16:04:04 +02:00
"name" : "threshold" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "538:22:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2063 ,
2018-05-04 16:04:04 +02:00
"name" : "uint8" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "538:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2067 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "566:24:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
2018-05-10 13:12:13 +02:00
"typeString" : "address[]"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
"baseType" : {
2018-05-10 13:12:13 +02:00
"id" : 2065 ,
2018-05-04 16:04:04 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "566:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2066 ,
2018-05-04 16:04:04 +02:00
"length" : null ,
"nodeType" : "ArrayTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "566:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "address[]"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2071 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "661:41:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2070 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2068 ,
2018-05-04 16:04:04 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "670:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "661:25:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"valueType" : {
2018-05-10 13:12:13 +02:00
"id" : 2069 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "681:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2075 ,
2018-05-04 16:04:04 +02:00
"name" : "isExecuted" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "770:43:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2074 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2072 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "779:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "770:25:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
} ,
"valueType" : {
2018-05-10 13:12:13 +02:00
"id" : 2073 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "790:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2081 ,
2018-05-04 16:04:04 +02:00
"name" : "isConfirmed" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "905:65:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2080 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2076 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "914:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "905:46:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
} ,
"valueType" : {
2018-05-10 13:12:13 +02:00
"id" : 2079 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2077 ,
2018-05-04 16:04:04 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "934:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "925:25:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"valueType" : {
2018-05-10 13:12:13 +02:00
"id" : 2078 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "945:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2091 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "999:57:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2084 ,
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2071 ,
"src" : "1017:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2087 ,
"indexExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2085 ,
2018-05-04 16:04:04 +02:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2465 ,
"src" : "1026:3:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2086 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "1026:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
"src" : "1017:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2083 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1009:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2088 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1009:29:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2089 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1009:29:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"id" : 2090 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "PlaceholderStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1048:1:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : null ,
"id" : 2092 ,
"name" : "onlyFriend" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ModifierDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2082 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-10 13:12:13 +02:00
"src" : "996:2:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"src" : "977:79:20" ,
2018-05-04 16:04:04 +02:00
"visibility" : "internal"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2162 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "1325:422:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"id" : 2104 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2101 ,
"name" : "_threshold" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2097 ,
"src" : "1343:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2102 ,
"name" : "_friends" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2095 ,
"src" : "1357:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2103 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"memberName" : "length" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "1357:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1343:29:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2100 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1335:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2105 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1335:38:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2106 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1335:38:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"commonType" : {
2018-05-04 16:04:04 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2110 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2108 ,
"name" : "_threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2097 ,
"src" : "1391:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
}
} ,
"nodeType" : "BinaryOperation" ,
2018-05-10 13:12:13 +02:00
"operator" : ">=" ,
2018-05-04 16:04:04 +02:00
"rightExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"hexValue" : "32" ,
"id" : 2109 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1405:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_rational_2_by_1" ,
"typeString" : "int_const 2"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"value" : "2"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"src" : "1391:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2107 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1383:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2111 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1383:24:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2112 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1383:24:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [ ] ,
2018-05-04 16:04:04 +02:00
"expression" : {
2018-05-10 13:12:13 +02:00
"argumentTypes" : [ ] ,
"id" : 2113 ,
"name" : "setManager" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 876 ,
"src" : "1417:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_function_internal_nonpayable$__$returns$__$" ,
"typeString" : "function ()"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2114 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1417:12:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2115 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1417:12:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"body" : {
"id" : 2152 ,
"nodeType" : "Block" ,
"src" : "1517:164:20" ,
"statements" : [
2018-05-04 16:04:04 +02:00
{
2018-05-10 13:12:13 +02:00
"assignments" : [
2128
] ,
"declarations" : [
{
"constant" : false ,
"id" : 2128 ,
"name" : "friend" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2163 ,
"src" : "1531:14:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
"id" : 2127 ,
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "1531:7:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
] ,
"id" : 2132 ,
"initialValue" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2129 ,
"name" : "_friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2095 ,
"src" : "1548:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2131 ,
"indexExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2130 ,
"name" : "i" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2117 ,
"src" : "1557:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
2018-05-04 16:04:04 +02:00
}
} ,
"isConstant" : false ,
2018-05-10 13:12:13 +02:00
"isLValue" : true ,
2018-05-04 16:04:04 +02:00
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "IndexAccess" ,
"src" : "1548:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
2018-05-10 13:12:13 +02:00
} ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "1531:28:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2136 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2134 ,
"name" : "friend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2128 ,
"src" : "1581:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-10 13:12:13 +02:00
"id" : 2135 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1591:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1581:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2133 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1573:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2137 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1573:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2138 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1573:20:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2143 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
2018-05-10 13:12:13 +02:00
"src" : "1615:17:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2140 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2071 ,
"src" : "1616:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2142 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2141 ,
"name" : "friend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2128 ,
"src" : "1625:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1616:16:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2139 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1607:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2144 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1607:26:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2145 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1607:26:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2150 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2146 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2071 ,
"src" : "1647:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2148 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2147 ,
"name" : "friend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2128 ,
"src" : "1656:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1647:16:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-05-10 13:12:13 +02:00
"id" : 2149 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1666:4:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1647:23:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2151 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1647:23:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2123 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2120 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2117 ,
"src" : "1491:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2121 ,
2018-05-04 16:04:04 +02:00
"name" : "_friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2095 ,
"src" : "1495:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2122 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "1495:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1491:19:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2153 ,
2018-05-04 16:04:04 +02:00
"initializationExpression" : {
"assignments" : [
2018-05-10 13:12:13 +02:00
2117
2018-05-04 16:04:04 +02:00
] ,
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2117 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2163 ,
"src" : "1476:9:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2116 ,
2018-05-04 16:04:04 +02:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "1476:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2119 ,
2018-05-04 16:04:04 +02:00
"initialValue" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-10 13:12:13 +02:00
"id" : 2118 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1488:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1476:13:20"
2018-05-04 16:04:04 +02:00
} ,
"loopExpression" : {
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2125 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-05-10 13:12:13 +02:00
"src" : "1512:3:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2124 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2117 ,
"src" : "1512:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2126 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1512:3:20"
2018-05-04 16:04:04 +02:00
} ,
"nodeType" : "ForStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1471:210:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2156 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2154 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2067 ,
"src" : "1690:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2155 ,
2018-05-04 16:04:04 +02:00
"name" : "_friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2095 ,
"src" : "1700:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1690:18:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2157 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1690:18:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2160 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2158 ,
2018-05-04 16:04:04 +02:00
"name" : "threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2064 ,
"src" : "1718:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2159 ,
2018-05-04 16:04:04 +02:00
"name" : "_threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2097 ,
"src" : "1730:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1718:22:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2161 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1718:22:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Setup function sets initial storage of contract.\n @param _friends List of friends' addresses.\n @param _threshold Required number of friends to confirm replacement." ,
"id" : 2163 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "setup" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2098 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2095 ,
2018-05-04 16:04:04 +02:00
"name" : "_friends" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2163 ,
"src" : "1268:18:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "address[]"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
"baseType" : {
2018-05-10 13:12:13 +02:00
"id" : 2093 ,
2018-05-04 16:04:04 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "1268:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2094 ,
2018-05-04 16:04:04 +02:00
"length" : null ,
"nodeType" : "ArrayTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "1268:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "address[]"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2097 ,
2018-05-04 16:04:04 +02:00
"name" : "_threshold" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2163 ,
"src" : "1288:16:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2096 ,
2018-05-04 16:04:04 +02:00
"name" : "uint8" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "1288:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "1267:38:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2099 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-10 13:12:13 +02:00
"src" : "1325:0:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "1253:494:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2186 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "1944:97:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2174 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
"src" : "1962:21:20" ,
"subExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2171 ,
"name" : "isExecuted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2075 ,
"src" : "1963:10:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
} ,
"id" : 2173 ,
"indexExpression" : {
"argumentTypes" : null ,
"id" : 2172 ,
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2165 ,
"src" : "1974:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
2018-05-04 16:04:04 +02:00
} ,
"isConstant" : false ,
2018-05-10 13:12:13 +02:00
"isLValue" : true ,
2018-05-04 16:04:04 +02:00
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "IndexAccess" ,
"src" : "1963:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2170 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1954:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2175 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1954:30:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2176 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1954:30:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2184 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2177 ,
2018-05-04 16:04:04 +02:00
"name" : "isConfirmed" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2081 ,
"src" : "1994:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2181 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2178 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2165 ,
"src" : "2006:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1994:21:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2182 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2179 ,
2018-05-04 16:04:04 +02:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2465 ,
"src" : "2016:3:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2180 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "2016:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1994:33:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-05-10 13:12:13 +02:00
"id" : 2183 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "2030:4:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1994:40:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2185 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1994:40:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Allows a friend to confirm a Safe transaction.\n @param dataHash Safe transaction hash." ,
"id" : 2187 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
2018-05-10 13:12:13 +02:00
"arguments" : null ,
"id" : 2168 ,
2018-05-04 16:04:04 +02:00
"modifierName" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2167 ,
2018-05-04 16:04:04 +02:00
"name" : "onlyFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2092 ,
"src" : "1929:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-05-10 13:12:13 +02:00
"src" : "1929:10:20"
2018-05-04 16:04:04 +02:00
}
] ,
"name" : "confirmTransaction" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2166 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2165 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2187 ,
"src" : "1888:16:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2164 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "1888:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "1887:18:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2169 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-10 13:12:13 +02:00
"src" : "1944:0:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "1860:181:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2247 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "2299:701:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2193 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2071 ,
"src" : "2381:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2196 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"expression" : {
"argumentTypes" : null ,
"id" : 2194 ,
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2465 ,
"src" : "2390:3:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
"id" : 2195 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
"src" : "2390:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "2381:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2192 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2373:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2197 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2373:29:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2198 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2373:29:20"
} ,
{
"assignments" : [ ] ,
"declarations" : [
{
"constant" : false ,
"id" : 2200 ,
"name" : "functionIdentifier" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2248 ,
"src" : "2485:25:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
} ,
"typeName" : {
"id" : 2199 ,
"name" : "bytes4" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "2485:6:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 2201 ,
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "2485:25:20"
} ,
{
"externalReferences" : [
{
"functionIdentifier" : {
"declaration" : 2200 ,
"isOffset" : false ,
"isSlot" : false ,
"src" : "2607:18:20" ,
"valueSize" : 1
}
} ,
{
"data" : {
"declaration" : 2189 ,
"isOffset" : false ,
"isSlot" : false ,
"src" : "2639:4:20" ,
"valueSize" : 1
}
}
] ,
"id" : 2202 ,
"nodeType" : "InlineAssembly" ,
"operations" : "{\n functionIdentifier := mload(add(data, 0x20))\n}" ,
"src" : "2584:93:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2206 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2204 ,
"name" : "functionIdentifier" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2200 ,
"src" : "2678:18:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
2018-05-04 16:04:04 +02:00
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2205 ,
"name" : "REPLACE_OWNER_FUNCTION_IDENTIFIER" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2062 ,
"src" : "2700:33:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "2678:55:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2203 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2670:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2207 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2670:64:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2208 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2670:64:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"assignments" : [
2210
] ,
"declarations" : [
{
"constant" : false ,
"id" : 2210 ,
"name" : "dataHash" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2248 ,
"src" : "2744:16:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
"id" : 2209 ,
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "2744:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 2214 ,
"initialValue" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"id" : 2212 ,
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2189 ,
"src" : "2775:4:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
2018-05-04 16:04:04 +02:00
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
2018-05-04 16:04:04 +02:00
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2211 ,
"name" : "getDataHash" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2303 ,
"src" : "2763:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_function_internal_view$_t_bytes_memory_ptr_$returns$_t_bytes32_$" ,
"typeString" : "function (bytes memory) view returns (bytes32)"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2213 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2763:17:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"nodeType" : "VariableDeclarationStatement" ,
"src" : "2744:36:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2219 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
"src" : "2798:21:20" ,
"subExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2216 ,
"name" : "isExecuted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2075 ,
"src" : "2799:10:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
}
} ,
"id" : 2218 ,
"indexExpression" : {
"argumentTypes" : null ,
"id" : 2217 ,
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2210 ,
"src" : "2810:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
}
} ,
"isConstant" : false ,
2018-05-10 13:12:13 +02:00
"isLValue" : true ,
"isPure" : false ,
2018-05-04 16:04:04 +02:00
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "IndexAccess" ,
"src" : "2799:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2215 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2790:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2220 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2790:30:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2221 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2790:30:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [
{
"argumentTypes" : null ,
"id" : 2224 ,
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2210 ,
"src" : "2867:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
] ,
"id" : 2223 ,
"name" : "isConfirmedByRequiredFriends" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2291 ,
"src" : "2838:28:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_function_internal_view$_t_bytes32_$returns$_t_bool_$" ,
"typeString" : "function (bytes32) view returns (bool)"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2225 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2838:38:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2222 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2830:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2226 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2830:47:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2227 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2830:47:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"expression" : {
"argumentTypes" : null ,
"id" : 2232 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2228 ,
"name" : "isExecuted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2075 ,
"src" : "2887:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2230 ,
"indexExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2229 ,
"name" : "dataHash" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2210 ,
"src" : "2898:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
"src" : "2887:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
"id" : 2231 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "2910:4:20" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
"src" : "2887:27:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2233 ,
"nodeType" : "ExpressionStatement" ,
"src" : "2887:27:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"expression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [
{
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [
{
"argumentTypes" : null ,
"id" : 2238 ,
"name" : "manager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 844 ,
"src" : "2954:7:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_contract$_ModuleManager_$1142" ,
"typeString" : "contract ModuleManager"
}
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_contract$_ModuleManager_$1142" ,
"typeString" : "contract ModuleManager"
}
] ,
"id" : 2237 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
"src" : "2946:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2239 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
2018-05-10 13:12:13 +02:00
"isLValue" : false ,
2018-05-04 16:04:04 +02:00
"isPure" : false ,
2018-05-10 13:12:13 +02:00
"kind" : "typeConversion" ,
2018-05-04 16:04:04 +02:00
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2946:16:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_address" ,
"typeString" : "address"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
{
"argumentTypes" : null ,
"hexValue" : "30" ,
"id" : 2240 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "2964:1:20" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
{
"argumentTypes" : null ,
"id" : 2241 ,
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2189 ,
"src" : "2967:4:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
} ,
{
"argumentTypes" : null ,
"expression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"expression" : {
"argumentTypes" : null ,
"id" : 2242 ,
"name" : "Enum" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 30 ,
"src" : "2973:4:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_contract$_Enum_$30_$" ,
"typeString" : "type(contract Enum)"
}
} ,
"id" : 2243 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "Operation" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : 29 ,
"src" : "2973:14:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_type$_t_enum$_Operation_$29_$" ,
"typeString" : "type(enum Enum.Operation)"
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
} ,
"id" : 2244 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"memberName" : "Call" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
"src" : "2973:19:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
} ,
{
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
2018-05-04 16:04:04 +02:00
}
] ,
"expression" : {
2018-05-10 13:12:13 +02:00
"argumentTypes" : null ,
"id" : 2234 ,
"name" : "manager" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 844 ,
"src" : "2924:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_contract$_ModuleManager_$1142" ,
"typeString" : "contract ModuleManager"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2236 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"memberName" : "executeModule" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : 1033 ,
"src" : "2924:21:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"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-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2245 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2924:69:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2246 ,
"nodeType" : "ExpressionStatement" ,
"src" : "2924:69:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param data Encoded owner replacement transaction.\n @return Returns if transaction can be executed." ,
"id" : 2248 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
2018-05-10 13:12:13 +02:00
"modifiers" : [ ] ,
"name" : "recoverAccess" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2190 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2189 ,
2018-05-04 16:04:04 +02:00
"name" : "data" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2248 ,
"src" : "2268:10:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2188 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "2268:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "2267:12:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2191 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
2018-05-10 13:12:13 +02:00
"parameters" : [ ] ,
"src" : "2299:0:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "2245:755:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "nonpayable" ,
2018-05-10 13:12:13 +02:00
"superFunction" : null ,
2018-05-04 16:04:04 +02:00
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2290 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "3272:294:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"assignments" : [ ] ,
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2256 ,
2018-05-04 16:04:04 +02:00
"name" : "confirmationCount" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3282:25:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2255 ,
2018-05-04 16:04:04 +02:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3282:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2257 ,
2018-05-04 16:04:04 +02:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3282:25:20"
2018-05-04 16:04:04 +02:00
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2286 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "3362:176:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"condition" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2269 ,
2018-05-04 16:04:04 +02:00
"name" : "isConfirmed" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2081 ,
"src" : "3380:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2271 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2270 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2250 ,
"src" : "3392:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "3380:21:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2275 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2272 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2067 ,
"src" : "3402:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2274 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2273 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2259 ,
"src" : "3410:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "3402:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "3380:33:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2279 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "IfStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3376:74:20" ,
2018-05-04 16:04:04 +02:00
"trueBody" : {
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2277 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-05-10 13:12:13 +02:00
"src" : "3431:19:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2276 ,
2018-05-04 16:04:04 +02:00
"name" : "confirmationCount" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2256 ,
"src" : "3431:17:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2278 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3431:19:20"
2018-05-04 16:04:04 +02:00
}
} ,
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2282 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2280 ,
2018-05-04 16:04:04 +02:00
"name" : "confirmationCount" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2256 ,
"src" : "3468:17:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2281 ,
2018-05-04 16:04:04 +02:00
"name" : "threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2064 ,
"src" : "3489:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "3468:30:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2285 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "IfStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3464:63:20" ,
2018-05-04 16:04:04 +02:00
"trueBody" : {
"expression" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-05-10 13:12:13 +02:00
"id" : 2283 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "3523:4:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-05-10 13:12:13 +02:00
"functionReturnParameters" : 2254 ,
"id" : 2284 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Return" ,
2018-05-10 13:12:13 +02:00
"src" : "3516:11:20"
2018-05-04 16:04:04 +02:00
}
}
]
} ,
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2265 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2262 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2259 ,
"src" : "3337:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2263 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2067 ,
"src" : "3341:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2264 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "3341:14:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "3337:18:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2287 ,
2018-05-04 16:04:04 +02:00
"initializationExpression" : {
"assignments" : [
2018-05-10 13:12:13 +02:00
2259
2018-05-04 16:04:04 +02:00
] ,
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2259 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3322:9:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2258 ,
2018-05-04 16:04:04 +02:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3322:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2261 ,
2018-05-04 16:04:04 +02:00
"initialValue" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-10 13:12:13 +02:00
"id" : 2260 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "3334:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3322:13:20"
2018-05-04 16:04:04 +02:00
} ,
"loopExpression" : {
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2267 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-05-10 13:12:13 +02:00
"src" : "3357:3:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2266 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2259 ,
"src" : "3357:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2268 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3357:3:20"
2018-05-04 16:04:04 +02:00
} ,
"nodeType" : "ForStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3317:221:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"hexValue" : "66616c7365" ,
2018-05-10 13:12:13 +02:00
"id" : 2288 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "3554:5:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "false"
} ,
2018-05-10 13:12:13 +02:00
"functionReturnParameters" : 2254 ,
"id" : 2289 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Return" ,
2018-05-10 13:12:13 +02:00
"src" : "3547:12:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param dataHash Data hash.\n @return Confirmation status." ,
"id" : 2291 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : true ,
"modifiers" : [ ] ,
"name" : "isConfirmedByRequiredFriends" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2251 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2250 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3199:16:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2249 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3199:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3198:18:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2254 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2253 ,
2018-05-04 16:04:04 +02:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3262:4:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2252 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3262:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3261:6:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "3161:405:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2302 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "3786:39:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2299 ,
2018-05-04 16:04:04 +02:00
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2293 ,
"src" : "3813:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2298 ,
2018-05-04 16:04:04 +02:00
"name" : "keccak256" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2459 ,
"src" : "3803:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_sha3_pure$__$returns$_t_bytes32_$" ,
"typeString" : "function () pure returns (bytes32)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2300 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "3803:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
2018-05-10 13:12:13 +02:00
"functionReturnParameters" : 2297 ,
"id" : 2301 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Return" ,
2018-05-10 13:12:13 +02:00
"src" : "3796:22:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Returns hash of data encoding owner replacement.\n @param data Data payload.\n @return Data hash." ,
"id" : 2303 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : true ,
"modifiers" : [ ] ,
"name" : "getDataHash" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2294 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2293 ,
2018-05-04 16:04:04 +02:00
"name" : "data" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2303 ,
"src" : "3716:10:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2292 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3716:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3715:12:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2297 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2296 ,
2018-05-04 16:04:04 +02:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2303 ,
"src" : "3773:7:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2295 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3773:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3772:9:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "3695:130:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-05-10 13:12:13 +02:00
"scope" : 2305 ,
"src" : "306:3521:20"
2018-05-04 16:04:04 +02:00
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "0:3828:20"
2018-05-04 16:04:04 +02:00
} ,
"legacyAST" : {
2018-05-10 13:12:13 +02:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/SocialRecoveryModule.sol" ,
2018-05-04 16:04:04 +02:00
"exportedSymbols" : {
2018-05-10 13:12:13 +02:00
"SocialRecoveryModule" : [
2304
2018-05-04 16:04:04 +02:00
]
} ,
2018-05-10 13:12:13 +02:00
"id" : 2305 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-05-10 13:12:13 +02:00
"id" : 2047 ,
2018-05-04 16:04:04 +02:00
"literals" : [
"solidity" ,
"0.4" ,
2018-05-10 13:12:13 +02:00
".23"
2018-05-04 16:04:04 +02:00
] ,
"nodeType" : "PragmaDirective" ,
2018-05-10 13:12:13 +02:00
"src" : "0:23:20"
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol" ,
"file" : "../Enum.sol" ,
"id" : 2048 ,
"nodeType" : "ImportDirective" ,
"scope" : 2305 ,
"sourceUnit" : 31 ,
"src" : "24:21:20" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol" ,
"file" : "../Module.sol" ,
"id" : 2049 ,
"nodeType" : "ImportDirective" ,
"scope" : 2305 ,
"sourceUnit" : 878 ,
"src" : "46:23:20" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol" ,
"file" : "../ModuleManager.sol" ,
"id" : 2050 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ImportDirective" ,
2018-05-10 13:12:13 +02:00
"scope" : 2305 ,
"sourceUnit" : 1143 ,
"src" : "70:30:20" ,
2018-05-04 16:04:04 +02:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
2018-05-10 13:12:13 +02:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol" ,
"file" : "../OwnerManager.sol" ,
"id" : 2051 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ImportDirective" ,
2018-05-10 13:12:13 +02:00
"scope" : 2305 ,
"sourceUnit" : 1439 ,
"src" : "101:29:20" ,
2018-05-04 16:04:04 +02:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
2018-05-10 13:12:13 +02:00
"arguments" : null ,
2018-05-04 16:04:04 +02:00
"baseName" : {
"contractScope" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2052 ,
"name" : "Module" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "UserDefinedTypeName" ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 877 ,
"src" : "339:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_contract$_Module_$877" ,
"typeString" : "contract Module"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2053 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "InheritanceSpecifier" ,
2018-05-10 13:12:13 +02:00
"src" : "339:6:20"
2018-05-04 16:04:04 +02:00
}
] ,
"contractDependencies" : [
2018-05-10 13:12:13 +02:00
779 ,
877 ,
1559
2018-05-04 16:04:04 +02:00
] ,
"contractKind" : "contract" ,
2018-05-10 13:12:13 +02:00
"documentation" : "@title Social Recovery Module - Allows to replace an owner without Safe confirmations if friends approve the replacement.\n @author Stefan George - <stefan@gnosis.pm>" ,
2018-05-04 16:04:04 +02:00
"fullyImplemented" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2304 ,
2018-05-04 16:04:04 +02:00
"linearizedBaseContracts" : [
2018-05-10 13:12:13 +02:00
2304 ,
877 ,
779 ,
1559
2018-05-04 16:04:04 +02:00
] ,
2018-05-10 13:12:13 +02:00
"name" : "SocialRecoveryModule" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2056 ,
2018-05-04 16:04:04 +02:00
"name" : "NAME" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "353:54:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2054 ,
2018-05-04 16:04:04 +02:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "353:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"hexValue" : "536f6369616c205265636f76657279204d6f64756c65" ,
"id" : 2055 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "383:24:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_stringliteral_8f499aea563eae5544b16c9123d6c7c8537a7d9dd86296aa60c65de194207230" ,
"typeString" : "literal_string \"Social Recovery Module\""
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"value" : "Social Recovery Module"
2018-05-04 16:04:04 +02:00
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2059 ,
2018-05-04 16:04:04 +02:00
"name" : "VERSION" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "413:40:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2057 ,
2018-05-04 16:04:04 +02:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "413:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "string"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "302e302e31" ,
2018-05-10 13:12:13 +02:00
"id" : 2058 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "446:7:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885" ,
"typeString" : "literal_string \"0.0.1\""
} ,
"value" : "0.0.1"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2018-05-10 13:12:13 +02:00
"id" : 2062 ,
2018-05-04 16:04:04 +02:00
"name" : "REPLACE_OWNER_FUNCTION_IDENTIFIER" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "459:72:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2060 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes4" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "459:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "54e99c6e" ,
2018-05-10 13:12:13 +02:00
"id" : 2061 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "518:13:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_c9d777df93ed5e148240dbbfbc0215def5044b10739d563ea8310789d1317911" ,
"typeString" : "literal_string (contains invalid UTF-8 sequence at position 4)"
} ,
"value" : null
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2064 ,
2018-05-04 16:04:04 +02:00
"name" : "threshold" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "538:22:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2063 ,
2018-05-04 16:04:04 +02:00
"name" : "uint8" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "538:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2067 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "566:24:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
2018-05-10 13:12:13 +02:00
"typeString" : "address[]"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
"baseType" : {
2018-05-10 13:12:13 +02:00
"id" : 2065 ,
2018-05-04 16:04:04 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "566:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2066 ,
2018-05-04 16:04:04 +02:00
"length" : null ,
"nodeType" : "ArrayTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "566:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "address[]"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2071 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "661:41:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2070 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2068 ,
2018-05-04 16:04:04 +02:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "670:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "661:25:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"valueType" : {
2018-05-10 13:12:13 +02:00
"id" : 2069 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "681:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2075 ,
2018-05-04 16:04:04 +02:00
"name" : "isExecuted" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "770:43:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2074 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2072 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "779:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "770:25:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
} ,
"valueType" : {
2018-05-10 13:12:13 +02:00
"id" : 2073 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "790:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
} ,
"value" : null ,
"visibility" : "public"
} ,
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2081 ,
2018-05-04 16:04:04 +02:00
"name" : "isConfirmed" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "905:65:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2080 ,
2018-05-04 16:04:04 +02:00
"keyType" : {
2018-05-10 13:12:13 +02:00
"id" : 2076 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "914:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"nodeType" : "Mapping" ,
2018-05-10 13:12:13 +02:00
"src" : "905:46:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
} ,
"valueType" : {
"id" : 2079 ,
"keyType" : {
"id" : 2077 ,
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "934:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"nodeType" : "Mapping" ,
"src" : "925:25:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
} ,
"valueType" : {
"id" : 2078 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "945:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"value" : null ,
2018-05-04 16:04:04 +02:00
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2091 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "999:57:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2084 ,
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2071 ,
"src" : "1017:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2087 ,
"indexExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
"expression" : {
2018-05-10 13:12:13 +02:00
"argumentTypes" : null ,
"id" : 2085 ,
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2465 ,
"src" : "1026:3:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2086 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
"src" : "1026:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
"src" : "1017:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2083 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1009:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2088 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1009:29:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2089 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1009:29:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
{
"id" : 2090 ,
"nodeType" : "PlaceholderStatement" ,
"src" : "1048:1:20"
}
]
} ,
"documentation" : null ,
"id" : 2092 ,
"name" : "onlyFriend" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
"id" : 2082 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "996:2:20"
} ,
"src" : "977:79:20" ,
"visibility" : "internal"
} ,
{
"body" : {
"id" : 2162 ,
"nodeType" : "Block" ,
"src" : "1325:422:20" ,
"statements" : [
2018-05-04 16:04:04 +02:00
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2104 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2101 ,
2018-05-04 16:04:04 +02:00
"name" : "_threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2097 ,
"src" : "1343:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2102 ,
2018-05-04 16:04:04 +02:00
"name" : "_friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2095 ,
"src" : "1357:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2103 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "1357:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1343:29:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2100 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1335:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2105 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1335:38:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2106 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1335:38:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2110 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2108 ,
2018-05-04 16:04:04 +02:00
"name" : "_threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2097 ,
"src" : "1391:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "32" ,
2018-05-10 13:12:13 +02:00
"id" : 2109 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1405:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_2_by_1" ,
"typeString" : "int_const 2"
} ,
"value" : "2"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1391:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2107 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1383:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2111 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1383:24:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2112 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1383:24:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
"id" : 2113 ,
"name" : "setManager" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 876 ,
"src" : "1417:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_function_internal_nonpayable$__$returns$__$" ,
"typeString" : "function ()"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2114 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "1417:12:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
"id" : 2115 ,
"nodeType" : "ExpressionStatement" ,
"src" : "1417:12:20"
} ,
{
"body" : {
"id" : 2152 ,
"nodeType" : "Block" ,
"src" : "1517:164:20" ,
"statements" : [
{
"assignments" : [
2128
] ,
"declarations" : [
{
"constant" : false ,
"id" : 2128 ,
"name" : "friend" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2163 ,
"src" : "1531:14:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
"id" : 2127 ,
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "1531:7:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 2132 ,
"initialValue" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2129 ,
"name" : "_friends" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2095 ,
"src" : "1548:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
"id" : 2131 ,
"indexExpression" : {
"argumentTypes" : null ,
"id" : 2130 ,
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2117 ,
"src" : "1557:1:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
2018-05-04 16:04:04 +02:00
}
} ,
"isConstant" : false ,
2018-05-10 13:12:13 +02:00
"isLValue" : true ,
2018-05-04 16:04:04 +02:00
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "IndexAccess" ,
"src" : "1548:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
2018-05-10 13:12:13 +02:00
} ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "1531:28:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2136 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2134 ,
"name" : "friend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2128 ,
"src" : "1581:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-10 13:12:13 +02:00
"id" : 2135 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1591:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1581:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2133 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1573:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2137 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1573:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2138 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1573:20:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2143 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
2018-05-10 13:12:13 +02:00
"src" : "1615:17:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2140 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2071 ,
"src" : "1616:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2142 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2141 ,
"name" : "friend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2128 ,
"src" : "1625:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1616:16:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2139 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1607:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2144 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1607:26:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2145 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1607:26:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2150 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2146 ,
2018-05-04 16:04:04 +02:00
"name" : "isFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2071 ,
"src" : "1647:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2148 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2147 ,
"name" : "friend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2128 ,
"src" : "1656:6:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1647:16:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-05-10 13:12:13 +02:00
"id" : 2149 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1666:4:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1647:23:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2151 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1647:23:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2123 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2120 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2117 ,
"src" : "1491:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2121 ,
2018-05-04 16:04:04 +02:00
"name" : "_friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2095 ,
"src" : "1495:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2122 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "1495:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1491:19:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2153 ,
2018-05-04 16:04:04 +02:00
"initializationExpression" : {
"assignments" : [
2018-05-10 13:12:13 +02:00
2117
2018-05-04 16:04:04 +02:00
] ,
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2117 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2163 ,
"src" : "1476:9:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2116 ,
2018-05-04 16:04:04 +02:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "1476:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2119 ,
2018-05-04 16:04:04 +02:00
"initialValue" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-10 13:12:13 +02:00
"id" : 2118 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "1488:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1476:13:20"
2018-05-04 16:04:04 +02:00
} ,
"loopExpression" : {
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2125 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-05-10 13:12:13 +02:00
"src" : "1512:3:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2124 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2117 ,
"src" : "1512:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2126 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1512:3:20"
2018-05-04 16:04:04 +02:00
} ,
"nodeType" : "ForStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1471:210:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2156 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2154 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2067 ,
"src" : "1690:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2155 ,
2018-05-04 16:04:04 +02:00
"name" : "_friends" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2095 ,
"src" : "1700:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[] memory"
}
} ,
"src" : "1690:18:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2157 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1690:18:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2160 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2158 ,
"name" : "threshold" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2064 ,
"src" : "1718:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2159 ,
"name" : "_threshold" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2097 ,
"src" : "1730:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "1718:22:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2161 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1718:22:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Setup function sets initial storage of contract.\n @param _friends List of friends' addresses.\n @param _threshold Required number of friends to confirm replacement." ,
"id" : 2163 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
2018-05-10 13:12:13 +02:00
"modifiers" : [ ] ,
"name" : "setup" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2098 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2095 ,
"name" : "_friends" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2163 ,
"src" : "1268:18:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_memory_ptr" ,
"typeString" : "address[]"
} ,
"typeName" : {
"baseType" : {
"id" : 2093 ,
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "1268:7:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"id" : 2094 ,
"length" : null ,
"nodeType" : "ArrayTypeName" ,
"src" : "1268:9:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage_ptr" ,
"typeString" : "address[]"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
"id" : 2097 ,
"name" : "_threshold" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2163 ,
"src" : "1288:16:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2096 ,
"name" : "uint8" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "1288:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "1267:38:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2099 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-10 13:12:13 +02:00
"src" : "1325:0:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "1253:494:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2186 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "1944:97:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2174 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
2018-05-10 13:12:13 +02:00
"src" : "1962:21:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2171 ,
2018-05-04 16:04:04 +02:00
"name" : "isExecuted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2075 ,
"src" : "1963:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2173 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2172 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2165 ,
"src" : "1974:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1963:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2170 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "1954:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2175 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "1954:30:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2176 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1954:30:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2184 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2177 ,
2018-05-04 16:04:04 +02:00
"name" : "isConfirmed" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2081 ,
"src" : "1994:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2181 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2178 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2165 ,
"src" : "2006:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1994:21:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2182 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2179 ,
2018-05-04 16:04:04 +02:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2465 ,
"src" : "2016:3:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2180 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "2016:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "1994:33:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-05-10 13:12:13 +02:00
"id" : 2183 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "2030:4:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-05-10 13:12:13 +02:00
"src" : "1994:40:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2185 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "1994:40:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Allows a friend to confirm a Safe transaction.\n @param dataHash Safe transaction hash." ,
"id" : 2187 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [
{
2018-05-10 13:12:13 +02:00
"arguments" : null ,
"id" : 2168 ,
2018-05-04 16:04:04 +02:00
"modifierName" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2167 ,
2018-05-04 16:04:04 +02:00
"name" : "onlyFriend" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2092 ,
"src" : "1929:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-05-10 13:12:13 +02:00
"src" : "1929:10:20"
2018-05-04 16:04:04 +02:00
}
] ,
"name" : "confirmTransaction" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2166 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2165 ,
"name" : "dataHash" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2187 ,
"src" : "1888:16:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
"id" : 2164 ,
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "1888:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"value" : null ,
"visibility" : "internal"
}
] ,
"src" : "1887:18:20"
} ,
"payable" : false ,
"returnParameters" : {
"id" : 2169 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "1944:0:20"
} ,
"scope" : 2304 ,
"src" : "1860:181:20" ,
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
"id" : 2247 ,
"nodeType" : "Block" ,
"src" : "2299:701:20" ,
"statements" : [
2018-05-04 16:04:04 +02:00
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2193 ,
"name" : "isFriend" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2071 ,
"src" : "2381:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2196 ,
"indexExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"expression" : {
"argumentTypes" : null ,
"id" : 2194 ,
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2465 ,
"src" : "2390:3:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
"id" : 2195 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
2018-05-10 13:12:13 +02:00
"isPure" : false ,
2018-05-04 16:04:04 +02:00
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
"src" : "2390:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
"src" : "2381:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2192 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2373:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2197 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2373:29:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2198 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2373:29:20"
} ,
{
"assignments" : [ ] ,
"declarations" : [
{
"constant" : false ,
"id" : 2200 ,
"name" : "functionIdentifier" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 2248 ,
"src" : "2485:25:20" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
} ,
"typeName" : {
"id" : 2199 ,
"name" : "bytes4" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "2485:6:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 2201 ,
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "2485:25:20"
} ,
{
"externalReferences" : [
{
"functionIdentifier" : {
"declaration" : 2200 ,
"isOffset" : false ,
"isSlot" : false ,
"src" : "2607:18:20" ,
"valueSize" : 1
}
} ,
{
"data" : {
"declaration" : 2189 ,
"isOffset" : false ,
"isSlot" : false ,
"src" : "2639:4:20" ,
"valueSize" : 1
}
}
] ,
"id" : 2202 ,
"nodeType" : "InlineAssembly" ,
"operations" : "{\n functionIdentifier := mload(add(data, 0x20))\n}" ,
"src" : "2584:93:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2206 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2204 ,
"name" : "functionIdentifier" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2200 ,
"src" : "2678:18:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
2018-05-04 16:04:04 +02:00
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2205 ,
"name" : "REPLACE_OWNER_FUNCTION_IDENTIFIER" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2062 ,
"src" : "2700:33:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes4" ,
"typeString" : "bytes4"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "2678:55:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2203 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2670:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2207 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2670:64:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2208 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2670:64:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"assignments" : [
2210
] ,
2018-05-04 16:04:04 +02:00
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2210 ,
"name" : "dataHash" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2248 ,
"src" : "2744:16:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2209 ,
"name" : "bytes32" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "2744:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2214 ,
"initialValue" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"id" : 2212 ,
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2189 ,
"src" : "2775:4:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
] ,
"id" : 2211 ,
"name" : "getDataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2303 ,
"src" : "2763:11:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$_t_bytes_memory_ptr_$returns$_t_bytes32_$" ,
"typeString" : "function (bytes memory) view returns (bytes32)"
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
} ,
"id" : 2213 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2763:17:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
} ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "2744:36:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2219 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
2018-05-10 13:12:13 +02:00
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
"src" : "2798:21:20" ,
"subExpression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2216 ,
"name" : "isExecuted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2075 ,
"src" : "2799:10:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
}
} ,
"id" : 2218 ,
"indexExpression" : {
"argumentTypes" : null ,
"id" : 2217 ,
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2210 ,
"src" : "2810:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
"src" : "2799:20:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2215 ,
2018-05-04 16:04:04 +02:00
"name" : "require" ,
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2790:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2220 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2790:30:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2221 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "2790:30:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"expression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [
{
"argumentTypes" : null ,
"id" : 2224 ,
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2210 ,
"src" : "2867:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
] ,
"id" : 2223 ,
"name" : "isConfirmedByRequiredFriends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2291 ,
"src" : "2838:28:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$_t_bytes32_$returns$_t_bool_$" ,
"typeString" : "function (bytes32) view returns (bool)"
}
} ,
"id" : 2225 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2838:38:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-04 16:04:04 +02:00
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2222 ,
"name" : "require" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
2018-05-10 13:12:13 +02:00
"overloadedDeclarations" : [
2468 ,
2469
] ,
"referencedDeclaration" : 2468 ,
"src" : "2830:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2226 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "2830:47:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2227 ,
"nodeType" : "ExpressionStatement" ,
"src" : "2830:47:20"
2018-05-04 16:04:04 +02:00
} ,
{
2018-05-10 13:12:13 +02:00
"expression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2232 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"leftHandSide" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
"id" : 2228 ,
"name" : "isExecuted" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2075 ,
"src" : "2887:10:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_bool_$" ,
"typeString" : "mapping(bytes32 => bool)"
}
} ,
"id" : 2230 ,
"indexExpression" : {
"argumentTypes" : null ,
"id" : 2229 ,
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2210 ,
"src" : "2898:8:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : true ,
"nodeType" : "IndexAccess" ,
"src" : "2887:20:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"hexValue" : "74727565" ,
"id" : 2231 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
2018-05-10 13:12:13 +02:00
"isPure" : true ,
"kind" : "bool" ,
2018-05-04 16:04:04 +02:00
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"nodeType" : "Literal" ,
"src" : "2910:4:20" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
"src" : "2887:27:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"id" : 2233 ,
"nodeType" : "ExpressionStatement" ,
"src" : "2887:27:20"
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"arguments" : [
{
"argumentTypes" : null ,
"id" : 2238 ,
"name" : "manager" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 844 ,
"src" : "2954:7:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_contract$_ModuleManager_$1142" ,
"typeString" : "contract ModuleManager"
}
2018-05-04 16:04:04 +02:00
}
2018-05-10 13:12:13 +02:00
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_contract$_ModuleManager_$1142" ,
"typeString" : "contract ModuleManager"
}
] ,
"id" : 2237 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
"src" : "2946:7:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2239 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2946:16:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "30" ,
"id" : 2240 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "2964:1:20" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
{
"argumentTypes" : null ,
"id" : 2241 ,
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 2189 ,
"src" : "2967:4:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
} ,
{
"argumentTypes" : null ,
"expression" : {
2018-05-04 16:04:04 +02:00
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"expression" : {
"argumentTypes" : null ,
"id" : 2242 ,
"name" : "Enum" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 30 ,
"src" : "2973:4:20" ,
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_contract$_Enum_$30_$" ,
"typeString" : "type(contract Enum)"
}
} ,
"id" : 2243 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "Operation" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : 29 ,
"src" : "2973:14:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_type$_t_enum$_Operation_$29_$" ,
"typeString" : "type(enum Enum.Operation)"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2244 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
2018-05-10 13:12:13 +02:00
"isLValue" : false ,
"isPure" : true ,
2018-05-04 16:04:04 +02:00
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"memberName" : "Call" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
"src" : "2973:19:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
2018-05-04 16:04:04 +02:00
}
}
2018-05-10 13:12:13 +02:00
] ,
"expression" : {
"argumentTypes" : [
2018-05-04 16:04:04 +02:00
{
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
} ,
{
"typeIdentifier" : "t_enum$_Operation_$29" ,
"typeString" : "enum Enum.Operation"
2018-05-04 16:04:04 +02:00
}
] ,
"expression" : {
2018-05-10 13:12:13 +02:00
"argumentTypes" : null ,
"id" : 2234 ,
"name" : "manager" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 844 ,
"src" : "2924:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"typeIdentifier" : "t_contract$_ModuleManager_$1142" ,
"typeString" : "contract ModuleManager"
2018-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2236 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"memberName" : "executeModule" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : 1033 ,
"src" : "2924:21:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
2018-05-10 13:12:13 +02:00
"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-05-04 16:04:04 +02:00
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2245 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
2018-05-10 13:12:13 +02:00
"isPure" : false ,
"kind" : "functionCall" ,
2018-05-04 16:04:04 +02:00
"lValueRequested" : false ,
2018-05-10 13:12:13 +02:00
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "2924:69:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-10 13:12:13 +02:00
}
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"id" : 2246 ,
"nodeType" : "ExpressionStatement" ,
"src" : "2924:69:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param data Encoded owner replacement transaction.\n @return Returns if transaction can be executed." ,
"id" : 2248 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
2018-05-10 13:12:13 +02:00
"modifiers" : [ ] ,
"name" : "recoverAccess" ,
2018-05-04 16:04:04 +02:00
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2190 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2189 ,
2018-05-04 16:04:04 +02:00
"name" : "data" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2248 ,
"src" : "2268:10:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2188 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "2268:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "2267:12:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2191 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
2018-05-10 13:12:13 +02:00
"parameters" : [ ] ,
"src" : "2299:0:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "2245:755:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "nonpayable" ,
2018-05-10 13:12:13 +02:00
"superFunction" : null ,
2018-05-04 16:04:04 +02:00
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2290 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "3272:294:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"assignments" : [ ] ,
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2256 ,
2018-05-04 16:04:04 +02:00
"name" : "confirmationCount" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3282:25:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2255 ,
2018-05-04 16:04:04 +02:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3282:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2257 ,
2018-05-04 16:04:04 +02:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3282:25:20"
2018-05-04 16:04:04 +02:00
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2286 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "3362:176:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"condition" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2269 ,
2018-05-04 16:04:04 +02:00
"name" : "isConfirmed" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2081 ,
"src" : "3380:11:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$" ,
"typeString" : "mapping(bytes32 => mapping(address => bool))"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2271 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2270 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2250 ,
"src" : "3392:8:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "3380:21:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_mapping$_t_address_$_t_bool_$" ,
"typeString" : "mapping(address => bool)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2275 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
"baseExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2272 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2067 ,
"src" : "3402:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2274 ,
2018-05-04 16:04:04 +02:00
"indexExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2273 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2259 ,
"src" : "3410:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "3402:10:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "IndexAccess" ,
2018-05-10 13:12:13 +02:00
"src" : "3380:33:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2279 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "IfStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3376:74:20" ,
2018-05-04 16:04:04 +02:00
"trueBody" : {
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2277 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-05-10 13:12:13 +02:00
"src" : "3431:19:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2276 ,
2018-05-04 16:04:04 +02:00
"name" : "confirmationCount" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2256 ,
"src" : "3431:17:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2278 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3431:19:20"
2018-05-04 16:04:04 +02:00
}
} ,
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2282 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2280 ,
2018-05-04 16:04:04 +02:00
"name" : "confirmationCount" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2256 ,
"src" : "3468:17:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2281 ,
2018-05-04 16:04:04 +02:00
"name" : "threshold" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2064 ,
"src" : "3489:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "3468:30:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2285 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "IfStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3464:63:20" ,
2018-05-04 16:04:04 +02:00
"trueBody" : {
"expression" : {
"argumentTypes" : null ,
"hexValue" : "74727565" ,
2018-05-10 13:12:13 +02:00
"id" : 2283 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "3523:4:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "true"
} ,
2018-05-10 13:12:13 +02:00
"functionReturnParameters" : 2254 ,
"id" : 2284 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Return" ,
2018-05-10 13:12:13 +02:00
"src" : "3516:11:20"
2018-05-04 16:04:04 +02:00
}
}
]
} ,
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-05-10 13:12:13 +02:00
"id" : 2265 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2262 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2259 ,
"src" : "3337:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<" ,
"rightExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2263 ,
2018-05-04 16:04:04 +02:00
"name" : "friends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2067 ,
"src" : "3341:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_array$_t_address_$dyn_storage" ,
"typeString" : "address[] storage ref"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2264 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : true ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "length" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-05-10 13:12:13 +02:00
"src" : "3341:14:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"src" : "3337:18:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2287 ,
2018-05-04 16:04:04 +02:00
"initializationExpression" : {
"assignments" : [
2018-05-10 13:12:13 +02:00
2259
2018-05-04 16:04:04 +02:00
] ,
"declarations" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2259 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3322:9:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2258 ,
2018-05-04 16:04:04 +02:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3322:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2261 ,
2018-05-04 16:04:04 +02:00
"initialValue" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-05-10 13:12:13 +02:00
"id" : 2260 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "3334:1:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
"nodeType" : "VariableDeclarationStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3322:13:20"
2018-05-04 16:04:04 +02:00
} ,
"loopExpression" : {
"expression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2267 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "++" ,
"prefix" : false ,
2018-05-10 13:12:13 +02:00
"src" : "3357:3:20" ,
2018-05-04 16:04:04 +02:00
"subExpression" : {
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2266 ,
2018-05-04 16:04:04 +02:00
"name" : "i" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2259 ,
"src" : "3357:1:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2268 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ExpressionStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3357:3:20"
2018-05-04 16:04:04 +02:00
} ,
"nodeType" : "ForStatement" ,
2018-05-10 13:12:13 +02:00
"src" : "3317:221:20"
2018-05-04 16:04:04 +02:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"hexValue" : "66616c7365" ,
2018-05-10 13:12:13 +02:00
"id" : 2288 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-05-10 13:12:13 +02:00
"src" : "3554:5:20" ,
2018-05-04 16:04:04 +02:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "false"
} ,
2018-05-10 13:12:13 +02:00
"functionReturnParameters" : 2254 ,
"id" : 2289 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Return" ,
2018-05-10 13:12:13 +02:00
"src" : "3547:12:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param dataHash Data hash.\n @return Confirmation status." ,
"id" : 2291 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : true ,
"modifiers" : [ ] ,
"name" : "isConfirmedByRequiredFriends" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2251 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2250 ,
2018-05-04 16:04:04 +02:00
"name" : "dataHash" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3199:16:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2249 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3199:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3198:18:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2254 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2253 ,
2018-05-04 16:04:04 +02:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2291 ,
"src" : "3262:4:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2252 ,
2018-05-04 16:04:04 +02:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3262:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3261:6:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "3161:405:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2018-05-10 13:12:13 +02:00
"id" : 2302 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Block" ,
2018-05-10 13:12:13 +02:00
"src" : "3786:39:20" ,
2018-05-04 16:04:04 +02:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-05-10 13:12:13 +02:00
"id" : 2299 ,
2018-05-04 16:04:04 +02:00
"name" : "data" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2293 ,
"src" : "3813:4:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
] ,
2018-05-10 13:12:13 +02:00
"id" : 2298 ,
2018-05-04 16:04:04 +02:00
"name" : "keccak256" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-05-10 13:12:13 +02:00
"referencedDeclaration" : 2459 ,
"src" : "3803:9:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_sha3_pure$__$returns$_t_bytes32_$" ,
"typeString" : "function () pure returns (bytes32)"
}
} ,
2018-05-10 13:12:13 +02:00
"id" : 2300 ,
2018-05-04 16:04:04 +02:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-05-10 13:12:13 +02:00
"src" : "3803:15:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
2018-05-10 13:12:13 +02:00
"functionReturnParameters" : 2297 ,
"id" : 2301 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "Return" ,
2018-05-10 13:12:13 +02:00
"src" : "3796:22:20"
2018-05-04 16:04:04 +02:00
}
]
} ,
2018-05-10 13:12:13 +02:00
"documentation" : "@dev Returns hash of data encoding owner replacement.\n @param data Data payload.\n @return Data hash." ,
"id" : 2303 ,
2018-05-04 16:04:04 +02:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : true ,
"modifiers" : [ ] ,
"name" : "getDataHash" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2294 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2293 ,
2018-05-04 16:04:04 +02:00
"name" : "data" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2303 ,
"src" : "3716:10:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2292 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3716:5:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
2018-05-10 13:12:13 +02:00
"typeString" : "bytes"
2018-05-04 16:04:04 +02:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3715:12:20"
2018-05-04 16:04:04 +02:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 13:12:13 +02:00
"id" : 2297 ,
2018-05-04 16:04:04 +02:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 13:12:13 +02:00
"id" : 2296 ,
2018-05-04 16:04:04 +02:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 13:12:13 +02:00
"scope" : 2303 ,
"src" : "3773:7:20" ,
2018-05-04 16:04:04 +02:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
} ,
"typeName" : {
2018-05-10 13:12:13 +02:00
"id" : 2295 ,
2018-05-04 16:04:04 +02:00
"name" : "bytes32" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 13:12:13 +02:00
"src" : "3773:7:20" ,
2018-05-04 16:04:04 +02:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes32" ,
"typeString" : "bytes32"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "3772:9:20"
2018-05-04 16:04:04 +02:00
} ,
2018-05-10 13:12:13 +02:00
"scope" : 2304 ,
"src" : "3695:130:20" ,
2018-05-04 16:04:04 +02:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-05-10 13:12:13 +02:00
"scope" : 2305 ,
"src" : "306:3521:20"
2018-05-04 16:04:04 +02:00
}
] ,
2018-05-10 13:12:13 +02:00
"src" : "0:3828:20"
2018-05-04 16:04:04 +02:00
} ,
"compiler" : {
"name" : "solc" ,
2018-05-10 13:12:13 +02:00
"version" : "0.4.23+commit.124ca40d.Emscripten.clang"
2018-05-04 16:04:04 +02:00
} ,
"networks" : {
"4" : {
"events" : { } ,
"links" : { } ,
2018-05-10 13:12:13 +02:00
"address" : "0x364cfc50a8c4eab27bebbb54aac0f51fb74015d3" ,
"transactionHash" : "0xd31966624227345ccb60fc9f51e315d610071b6418712c5f528a7a64f7c0d103"
2018-05-08 16:41:03 +02:00
} ,
2018-05-10 13:12:13 +02:00
"1525950336085" : {
2018-05-08 16:41:03 +02:00
"events" : { } ,
"links" : { } ,
2018-05-10 13:12:13 +02:00
"address" : "0xfe2114e016fa8d92959754f25d4f63f155ad1a6a" ,
"transactionHash" : "0xa514f0c5c6fcab99a16bba503b6ed893935cedfafe2e5c8c825dfc117e1e266d"
2018-05-04 16:04:04 +02:00
}
} ,
"schemaVersion" : "2.0.0" ,
2018-05-10 13:12:13 +02:00
"updatedAt" : "2018-05-10T11:07:04.698Z"
2018-05-04 16:04:04 +02:00
}