{ "contractName": "SocialRecoveryModule", "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" }, { "constant": true, "inputs": [], "name": "manager", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "isFriend", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_masterCopy", "type": "address" } ], "name": "changeMasterCopy", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "NAME", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "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" } ], "name": "recoverAccess", "outputs": [], "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" } ], "bytecode": "0x608060405234801561001057600080fd5b50611131806100206000396000f3006080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806336749c1a146100e05780633cf5b3091461014957806342cde4e8146101bc578063481c6a75146101ed57806368125a1b1461024457806379716e431461029f5780637de7edef146102d05780639ca89d0d14610313578063a3f4df7e1461035c578063ae68b056146103ec578063b79ffaff14610471578063ce146828146104da578063d2740c7614610547578063e52cb36a146105b0578063ffa1ad74146105f9575b600080fd5b3480156100ec57600080fd5b506100f5610689565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b34801561015557600080fd5b506101ba60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff1690602001909291905050506106ad565b005b3480156101c857600080fd5b506101d1610822565b604051808260ff1660ff16815260200191505060405180910390f35b3480156101f957600080fd5b50610202610835565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025057600080fd5b50610285600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061085b565b604051808215151515815260200191505060405180910390f35b3480156102ab57600080fd5b506102ce600480360381019080803560001916906020019092919050505061087b565b005b3480156102dc57600080fd5b50610311600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061097c565b005b34801561031f57600080fd5b506103426004803603810190808035600019169060200190929190505050610a41565b604051808215151515815260200191505060405180910390f35b34801561036857600080fd5b50610371610b40565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b1578082015181840152602081019050610396565b50505050905090810190601f1680156103de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103f857600080fd5b50610453600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b79565b60405180826000191660001916815260200191505060405180910390f35b34801561047d57600080fd5b506104c06004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610be5565b604051808215151515815260200191505060405180910390f35b3480156104e657600080fd5b5061050560048036038101908080359060200190929190505050610c14565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561055357600080fd5b506105ae600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610c52565b005b3480156105bc57600080fd5b506105df6004803603810190808035600019169060200190929190505050610f55565b604051808215151515815260200191505060405180910390f35b34801561060557600080fd5b5061060e610f75565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561064e578082015181840152602081019050610633565b50505050905090810190601f16801561067b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b7f54e99c6e0000000000000000000000000000000000000000000000000000000081565b60008083518360ff16111515156106c357600080fd5b60028360ff16101515156106d657600080fd5b6106de610fae565b600091505b83518210156107ea5783828151811015156106fa57fe5b90602001906020020151905060008173ffffffffffffffffffffffffffffffffffffffff161415151561072c57600080fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561078557600080fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555081806001019250506106e3565b8360029080519060200190610800929190611038565b5082600160146101000a81548160ff021916908360ff16021790555050505050565b600160149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156108d357600080fd5b60046000826000191660001916815260200190815260200160002060009054906101000a900460ff1615151561090857600080fd5b600160056000836000191660001916815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109d857600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141515156109fe57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008090505b600280549050811015610b34576005600085600019166000191681526020019081526020016000206000600283815481101515610a8357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610b045781806001019250505b600160149054906101000a900460ff1660ff16821415610b275760019250610b39565b8080600101915050610a4a565b600092505b5050919050565b6040805190810160405280601681526020017f536f6369616c205265636f76657279204d6f64756c650000000000000000000081525081565b6000816040518082805190602001908083835b602083101515610bb15780518252602082019150602081019050602083039250610b8c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b600281815481101515610c2357fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610cad57600080fd5b602083015191507f54e99c6e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515610d2057600080fd5b610d2983610b79565b905060046000826000191660001916815260200190815260200160002060009054906101000a900460ff16151515610d6057600080fd5b610d6981610a41565b1515610d7457600080fd5b600160046000836000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b021640a600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008660006040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001836002811115610e8557fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015610ec5578082015181840152602081019050610eaa565b50505050905090810190601f168015610ef25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610f1457600080fd5b505af1158015610f28573d6000803e3d6000fd5b505050506040513d6020811015610f3e57600080fd5b810190808051906020019092919050505050505050565b60046020528060005260406000206000915054906101000a900460ff1681565b6040805190810160405280600581526020017f302e302e3100000000000000000000000000000000000000000000000000000081525081565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610ff557600080fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b8280548282559060005260206000209081019282156110b1579160200282015b828111156110b05782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611058565b5b5090506110be91906110c2565b5090565b61110291905b808211156110fe57600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055506001016110c8565b5090565b905600a165627a7a72305820d0d4a797e7a772df46dc5c07d636325879d9fe91e9fe0a658f50ee02e27f0c8e0029", "deployedBytecode": "0x6080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806336749c1a146100e05780633cf5b3091461014957806342cde4e8146101bc578063481c6a75146101ed57806368125a1b1461024457806379716e431461029f5780637de7edef146102d05780639ca89d0d14610313578063a3f4df7e1461035c578063ae68b056146103ec578063b79ffaff14610471578063ce146828146104da578063d2740c7614610547578063e52cb36a146105b0578063ffa1ad74146105f9575b600080fd5b3480156100ec57600080fd5b506100f5610689565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b34801561015557600080fd5b506101ba60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff1690602001909291905050506106ad565b005b3480156101c857600080fd5b506101d1610822565b604051808260ff1660ff16815260200191505060405180910390f35b3480156101f957600080fd5b50610202610835565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025057600080fd5b50610285600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061085b565b604051808215151515815260200191505060405180910390f35b3480156102ab57600080fd5b506102ce600480360381019080803560001916906020019092919050505061087b565b005b3480156102dc57600080fd5b50610311600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061097c565b005b34801561031f57600080fd5b506103426004803603810190808035600019169060200190929190505050610a41565b604051808215151515815260200191505060405180910390f35b34801561036857600080fd5b50610371610b40565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b1578082015181840152602081019050610396565b50505050905090810190601f1680156103de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103f857600080fd5b50610453600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b79565b60405180826000191660001916815260200191505060405180910390f35b34801561047d57600080fd5b506104c06004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610be5565b604051808215151515815260200191505060405180910390f35b3480156104e657600080fd5b5061050560048036038101908080359060200190929190505050610c14565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561055357600080fd5b506105ae600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610c52565b005b3480156105bc57600080fd5b506105df6004803603810190808035600019169060200190929190505050610f55565b604051808215151515815260200191505060405180910390f35b34801561060557600080fd5b5061060e610f75565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561064e578082015181840152602081019050610633565b50505050905090810190601f16801561067b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b7f54e99c6e0000000000000000000000000000000000000000000000000000000081565b60008083518360ff16111515156106c357600080fd5b60028360ff16101515156106d657600080fd5b6106de610fae565b600091505b83518210156107ea5783828151811015156106fa57fe5b90602001906020020151905060008173ffffffffffffffffffffffffffffffffffffffff161415151561072c57600080fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561078557600080fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555081806001019250506106e3565b8360029080519060200190610800929190611038565b5082600160146101000a81548160ff021916908360ff16021790555050505050565b600160149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156108d357600080fd5b60046000826000191660001916815260200190815260200160002060009054906101000a900460ff1615151561090857600080fd5b600160056000836000191660001916815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109d857600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff16141515156109fe57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008090505b600280549050811015610b34576005600085600019166000191681526020019081526020016000206000600283815481101515610a8357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610b045781806001019250505b600160149054906101000a900460ff1660ff16821415610b275760019250610b39565b8080600101915050610a4a565b600092505b5050919050565b6040805190810160405280601681526020017f536f6369616c205265636f76657279204d6f64756c650000000000000000000081525081565b6000816040518082805190602001908083835b602083101515610bb15780518252602082019150602081019050602083039250610b8c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b600281815481101515610c2357fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610cad57600080fd5b602083015191507f54e99c6e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515610d2057600080fd5b610d2983610b79565b905060046000826000191660001916815260200190815260200160002060009054906101000a900460ff16151515610d6057600080fd5b610d6981610a41565b1515610d7457600080fd5b600160046000836000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b021640a600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008660006040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001836002811115610e8557fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015610ec5578082015181840152602081019050610eaa565b50505050905090810190601f168015610ef25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610f1457600080fd5b505af1158015610f28573d6000803e3d6000fd5b505050506040513d6020811015610f3e57600080fd5b810190808051906020019092919050505050505050565b60046020528060005260406000206000915054906101000a900460ff1681565b6040805190810160405280600581526020017f302e302e3100000000000000000000000000000000000000000000000000000081525081565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610ff557600080fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b8280548282559060005260206000209081019282156110b1579160200282015b828111156110b05782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611058565b5b5090506110be91906110c2565b5090565b61110291905b808211156110fe57600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055506001016110c8565b5090565b905600a165627a7a72305820d0d4a797e7a772df46dc5c07d636325879d9fe91e9fe0a658f50ee02e27f0c8e0029", "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:64;;;;;;;;2763:17;2775:4;2763:11;:17::i;:::-;2744:36;;2799:10;:20;2810:8;2799:20;;;;;;;;;;;;;;;;;;;;;;;;;;;2798:21;2790:30;;;;;;;;2838:38;2867:8;2838:28;:38::i;:::-;2830:47;;;;;;;;2910:4;2887:10;:20;2898:8;2887:20;;;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;2924:7;;;;;;;;;;;:21;;;2954:7;;;;;;;;;;;2964:1;2967:4;2973:19;2924:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;2924:69:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2924:69:20;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2924:69:20;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2924:69:20;;;;;;;;;;;;;;;;;2245:755;;;:::o;770:43::-;;;;;;;;;;;;;;;;;;;;;;:::o;413:40::-;;;;;;;;;;;;;;;;;;;;:::o;392:268:8:-;606:1;594:7;;;;;;;;;;;586:21;;;578:30;;;;;;;;642:10;618:7;;:35;;;;;;;;;;;;;;;;;;392:268::o;306:3521:20:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", "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 - \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", "ast": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/SocialRecoveryModule.sol", "exportedSymbols": { "SocialRecoveryModule": [ 2304 ] }, "id": 2305, "nodeType": "SourceUnit", "nodes": [ { "id": 2047, "literals": [ "solidity", "0.4", ".23" ], "nodeType": "PragmaDirective", "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": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "file": "../ModuleManager.sol", "id": 2050, "nodeType": "ImportDirective", "scope": 2305, "sourceUnit": 1143, "src": "70:30:20", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol", "file": "../OwnerManager.sol", "id": 2051, "nodeType": "ImportDirective", "scope": 2305, "sourceUnit": 1439, "src": "101:29:20", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 2052, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 877, "src": "339:6:20", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$877", "typeString": "contract Module" } }, "id": 2053, "nodeType": "InheritanceSpecifier", "src": "339:6:20" } ], "contractDependencies": [ 779, 877, 1559 ], "contractKind": "contract", "documentation": "@title Social Recovery Module - Allows to replace an owner without Safe confirmations if friends approve the replacement.\n @author Stefan George - ", "fullyImplemented": true, "id": 2304, "linearizedBaseContracts": [ 2304, 877, 779, 1559 ], "name": "SocialRecoveryModule", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 2056, "name": "NAME", "nodeType": "VariableDeclaration", "scope": 2304, "src": "353:54:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 2054, "name": "string", "nodeType": "ElementaryTypeName", "src": "353:6:20", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "536f6369616c205265636f76657279204d6f64756c65", "id": 2055, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "383:24:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_8f499aea563eae5544b16c9123d6c7c8537a7d9dd86296aa60c65de194207230", "typeString": "literal_string \"Social Recovery Module\"" }, "value": "Social Recovery Module" }, "visibility": "public" }, { "constant": true, "id": 2059, "name": "VERSION", "nodeType": "VariableDeclaration", "scope": 2304, "src": "413:40:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 2057, "name": "string", "nodeType": "ElementaryTypeName", "src": "413:6:20", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "302e302e31", "id": 2058, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "446:7:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": true, "id": 2062, "name": "REPLACE_OWNER_FUNCTION_IDENTIFIER", "nodeType": "VariableDeclaration", "scope": 2304, "src": "459:72:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 2060, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "459:6:20", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "54e99c6e", "id": 2061, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "518:13:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_c9d777df93ed5e148240dbbfbc0215def5044b10739d563ea8310789d1317911", "typeString": "literal_string (contains invalid UTF-8 sequence at position 4)" }, "value": null }, "visibility": "public" }, { "constant": false, "id": 2064, "name": "threshold", "nodeType": "VariableDeclaration", "scope": 2304, "src": "538:22:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 2063, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "538:5:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2067, "name": "friends", "nodeType": "VariableDeclaration", "scope": 2304, "src": "566:24:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[]" }, "typeName": { "baseType": { "id": 2065, "name": "address", "nodeType": "ElementaryTypeName", "src": "566:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 2066, "length": null, "nodeType": "ArrayTypeName", "src": "566:9:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2071, "name": "isFriend", "nodeType": "VariableDeclaration", "scope": 2304, "src": "661:41:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "typeName": { "id": 2070, "keyType": { "id": 2068, "name": "address", "nodeType": "ElementaryTypeName", "src": "670:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "661:25:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 2069, "name": "bool", "nodeType": "ElementaryTypeName", "src": "681:4:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2075, "name": "isExecuted", "nodeType": "VariableDeclaration", "scope": 2304, "src": "770:43:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "typeName": { "id": 2074, "keyType": { "id": 2072, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "779:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "770:25:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "valueType": { "id": 2073, "name": "bool", "nodeType": "ElementaryTypeName", "src": "790:4:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2081, "name": "isConfirmed", "nodeType": "VariableDeclaration", "scope": 2304, "src": "905:65:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" }, "typeName": { "id": 2080, "keyType": { "id": 2076, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "914:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "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", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } } }, "value": null, "visibility": "public" }, { "body": { "id": 2091, "nodeType": "Block", "src": "999:57:20", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "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)" } }, "id": 2087, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2085, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2465, "src": "1026:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2086, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1026:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1017:20:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2083, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1009:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2088, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1009:29:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2089, "nodeType": "ExpressionStatement", "src": "1009:29:20" }, { "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": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2104, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2101, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2097, "src": "1343:10:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2102, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2095, "src": "1357:8:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2103, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1357:15:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1343:29:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2100, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1335:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2105, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1335:38:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2106, "nodeType": "ExpressionStatement", "src": "1335:38:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "id": 2110, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2108, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2097, "src": "1391:10:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "argumentTypes": null, "hexValue": "32", "id": 2109, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1405:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "src": "1391:15:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2107, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1383:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2111, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1383:24:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2112, "nodeType": "ExpressionStatement", "src": "1383:24:20" }, { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 2113, "name": "setManager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 876, "src": "1417:10:20", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "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": { "argumentTypes": null, "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" } }, "id": 2131, "indexExpression": { "argumentTypes": null, "id": 2130, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2117, "src": "1557:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1548:11:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "1531:28:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 2136, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2134, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2128, "src": "1581:6:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 2135, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1591:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1581:11:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2133, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1573:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2137, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1573:20:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2138, "nodeType": "ExpressionStatement", "src": "1573:20:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2143, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1615:17:20", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2140, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2071, "src": "1616:8:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2142, "indexExpression": { "argumentTypes": null, "id": 2141, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2128, "src": "1625:6:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1616:16:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2139, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1607:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2144, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1607:26:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2145, "nodeType": "ExpressionStatement", "src": "1607:26:20" }, { "expression": { "argumentTypes": null, "id": 2150, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2146, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2071, "src": "1647:8:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2148, "indexExpression": { "argumentTypes": null, "id": 2147, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2128, "src": "1656:6:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1647:16:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2149, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1666:4:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1647:23:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2151, "nodeType": "ExpressionStatement", "src": "1647:23:20" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2123, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2120, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2117, "src": "1491:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2121, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2095, "src": "1495:8:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2122, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1495:15:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1491:19:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2153, "initializationExpression": { "assignments": [ 2117 ], "declarations": [ { "constant": false, "id": 2117, "name": "i", "nodeType": "VariableDeclaration", "scope": 2163, "src": "1476:9:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2116, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1476:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2119, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2118, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1488:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "1476:13:20" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2125, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "1512:3:20", "subExpression": { "argumentTypes": null, "id": 2124, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2117, "src": "1512:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2126, "nodeType": "ExpressionStatement", "src": "1512:3:20" }, "nodeType": "ForStatement", "src": "1471:210:20" }, { "expression": { "argumentTypes": null, "id": 2156, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2154, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2067, "src": "1690:7:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2155, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2095, "src": "1700:8:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "1690:18:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2157, "nodeType": "ExpressionStatement", "src": "1690:18:20" }, { "expression": { "argumentTypes": null, "id": 2160, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2158, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2064, "src": "1718:9:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2159, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2097, "src": "1730:10:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "1718:22:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 2161, "nodeType": "ExpressionStatement", "src": "1718:22:20" } ] }, "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, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "setup", "nodeType": "FunctionDefinition", "parameters": { "id": 2098, "nodeType": "ParameterList", "parameters": [ { "constant": false, "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", "nodeType": "VariableDeclaration", "scope": 2163, "src": "1288:16:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 2096, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1288:5:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "1267:38:20" }, "payable": false, "returnParameters": { "id": 2099, "nodeType": "ParameterList", "parameters": [], "src": "1325:0:20" }, "scope": 2304, "src": "1253:494:20", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2186, "nodeType": "Block", "src": "1944:97:20", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2174, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1962:21:20", "subExpression": { "argumentTypes": null, "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)" } }, "id": 2173, "indexExpression": { "argumentTypes": null, "id": 2172, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2165, "src": "1974:8:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1963:20:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2170, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1954:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2175, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1954:30:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2176, "nodeType": "ExpressionStatement", "src": "1954:30:20" }, { "expression": { "argumentTypes": null, "id": 2184, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2177, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2081, "src": "1994:11:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2181, "indexExpression": { "argumentTypes": null, "id": 2178, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2165, "src": "2006:8:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1994:21:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2182, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2179, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2465, "src": "2016:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2180, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2016:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1994:33:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2183, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "2030:4:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1994:40:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2185, "nodeType": "ExpressionStatement", "src": "1994:40:20" } ] }, "documentation": "@dev Allows a friend to confirm a Safe transaction.\n @param dataHash Safe transaction hash.", "id": 2187, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 2168, "modifierName": { "argumentTypes": null, "id": 2167, "name": "onlyFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2092, "src": "1929:10:20", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1929:10:20" } ], "name": "confirmTransaction", "nodeType": "FunctionDefinition", "parameters": { "id": 2166, "nodeType": "ParameterList", "parameters": [ { "constant": false, "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", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "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": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2193, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2071, "src": "2381:8:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2196, "indexExpression": { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2381:20:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2192, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2373:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2197, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2373:29:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2198, "nodeType": "ExpressionStatement", "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" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 2206, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2204, "name": "functionIdentifier", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2200, "src": "2678:18:20", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 2205, "name": "REPLACE_OWNER_FUNCTION_IDENTIFIER", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2062, "src": "2700:33:20", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "src": "2678:55:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2203, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2670:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2207, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2670:64:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2208, "nodeType": "ExpressionStatement", "src": "2670:64:20" }, { "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", "typeDescriptions": { "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" } } ], "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)" } }, "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" } }, "nodeType": "VariableDeclarationStatement", "src": "2744:36:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "2798:21:20", "subExpression": { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2215, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2790:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2220, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2790:30:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2221, "nodeType": "ExpressionStatement", "src": "2790:30:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2222, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2830:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2226, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2830:47:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2227, "nodeType": "ExpressionStatement", "src": "2830:47:20" }, { "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", "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": { "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2233, "nodeType": "ExpressionStatement", "src": "2887:27:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "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" } } ], "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" }, "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": { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$29_$", "typeString": "type(enum Enum.Operation)" } }, "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" } ], "expression": { "argumentTypes": null, "id": 2234, "name": "manager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 844, "src": "2924:7:20", "typeDescriptions": { "typeIdentifier": "t_contract$_ModuleManager_$1142", "typeString": "contract ModuleManager" } }, "id": 2236, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "executeModule", "nodeType": "MemberAccess", "referencedDeclaration": 1033, "src": "2924:21:20", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$returns$_t_bool_$", "typeString": "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)" } }, "id": 2245, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2924:69:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2246, "nodeType": "ExpressionStatement", "src": "2924:69:20" } ] }, "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, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "recoverAccess", "nodeType": "FunctionDefinition", "parameters": { "id": 2190, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2189, "name": "data", "nodeType": "VariableDeclaration", "scope": 2248, "src": "2268:10:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2188, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2268:5:20", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "2267:12:20" }, "payable": false, "returnParameters": { "id": 2191, "nodeType": "ParameterList", "parameters": [], "src": "2299:0:20" }, "scope": 2304, "src": "2245:755:20", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2290, "nodeType": "Block", "src": "3272:294:20", "statements": [ { "assignments": [], "declarations": [ { "constant": false, "id": 2256, "name": "confirmationCount", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3282:25:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2255, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3282:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2257, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "3282:25:20" }, { "body": { "id": 2286, "nodeType": "Block", "src": "3362:176:20", "statements": [ { "condition": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2269, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2081, "src": "3380:11:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2271, "indexExpression": { "argumentTypes": null, "id": 2270, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2250, "src": "3392:8:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3380:21:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2275, "indexExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2272, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2067, "src": "3402:7:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2274, "indexExpression": { "argumentTypes": null, "id": 2273, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2259, "src": "3410:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3402:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3380:33:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2279, "nodeType": "IfStatement", "src": "3376:74:20", "trueBody": { "expression": { "argumentTypes": null, "id": 2277, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3431:19:20", "subExpression": { "argumentTypes": null, "id": 2276, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2256, "src": "3431:17:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2278, "nodeType": "ExpressionStatement", "src": "3431:19:20" } }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2282, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2280, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2256, "src": "3468:17:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 2281, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2064, "src": "3489:9:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "3468:30:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2285, "nodeType": "IfStatement", "src": "3464:63:20", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 2283, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3523:4:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 2254, "id": 2284, "nodeType": "Return", "src": "3516:11:20" } } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2265, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2262, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2259, "src": "3337:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2263, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2067, "src": "3341:7:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2264, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3341:14:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3337:18:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2287, "initializationExpression": { "assignments": [ 2259 ], "declarations": [ { "constant": false, "id": 2259, "name": "i", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3322:9:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2258, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3322:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2261, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2260, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3334:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "3322:13:20" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2267, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3357:3:20", "subExpression": { "argumentTypes": null, "id": 2266, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2259, "src": "3357:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2268, "nodeType": "ExpressionStatement", "src": "3357:3:20" }, "nodeType": "ForStatement", "src": "3317:221:20" }, { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 2288, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3554:5:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "functionReturnParameters": 2254, "id": 2289, "nodeType": "Return", "src": "3547:12:20" } ] }, "documentation": "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param dataHash Data hash.\n @return Confirmation status.", "id": 2291, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isConfirmedByRequiredFriends", "nodeType": "FunctionDefinition", "parameters": { "id": 2251, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2250, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3199:16:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2249, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3199:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3198:18:20" }, "payable": false, "returnParameters": { "id": 2254, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2253, "name": "", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3262:4:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2252, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3262:4:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3261:6:20" }, "scope": 2304, "src": "3161:405:20", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 2302, "nodeType": "Block", "src": "3786:39:20", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2299, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2293, "src": "3813:4:20", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2298, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2459, "src": "3803:9:20", "typeDescriptions": { "typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$", "typeString": "function () pure returns (bytes32)" } }, "id": 2300, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3803:15:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "functionReturnParameters": 2297, "id": 2301, "nodeType": "Return", "src": "3796:22:20" } ] }, "documentation": "@dev Returns hash of data encoding owner replacement.\n @param data Data payload.\n @return Data hash.", "id": 2303, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getDataHash", "nodeType": "FunctionDefinition", "parameters": { "id": 2294, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2293, "name": "data", "nodeType": "VariableDeclaration", "scope": 2303, "src": "3716:10:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2292, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3716:5:20", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "3715:12:20" }, "payable": false, "returnParameters": { "id": 2297, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2296, "name": "", "nodeType": "VariableDeclaration", "scope": 2303, "src": "3773:7:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2295, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3773:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3772:9:20" }, "scope": 2304, "src": "3695:130:20", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 2305, "src": "306:3521:20" } ], "src": "0:3828:20" }, "legacyAST": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/SocialRecoveryModule.sol", "exportedSymbols": { "SocialRecoveryModule": [ 2304 ] }, "id": 2305, "nodeType": "SourceUnit", "nodes": [ { "id": 2047, "literals": [ "solidity", "0.4", ".23" ], "nodeType": "PragmaDirective", "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": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "file": "../ModuleManager.sol", "id": 2050, "nodeType": "ImportDirective", "scope": 2305, "sourceUnit": 1143, "src": "70:30:20", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol", "file": "../OwnerManager.sol", "id": 2051, "nodeType": "ImportDirective", "scope": 2305, "sourceUnit": 1439, "src": "101:29:20", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 2052, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 877, "src": "339:6:20", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$877", "typeString": "contract Module" } }, "id": 2053, "nodeType": "InheritanceSpecifier", "src": "339:6:20" } ], "contractDependencies": [ 779, 877, 1559 ], "contractKind": "contract", "documentation": "@title Social Recovery Module - Allows to replace an owner without Safe confirmations if friends approve the replacement.\n @author Stefan George - ", "fullyImplemented": true, "id": 2304, "linearizedBaseContracts": [ 2304, 877, 779, 1559 ], "name": "SocialRecoveryModule", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 2056, "name": "NAME", "nodeType": "VariableDeclaration", "scope": 2304, "src": "353:54:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 2054, "name": "string", "nodeType": "ElementaryTypeName", "src": "353:6:20", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "536f6369616c205265636f76657279204d6f64756c65", "id": 2055, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "383:24:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_8f499aea563eae5544b16c9123d6c7c8537a7d9dd86296aa60c65de194207230", "typeString": "literal_string \"Social Recovery Module\"" }, "value": "Social Recovery Module" }, "visibility": "public" }, { "constant": true, "id": 2059, "name": "VERSION", "nodeType": "VariableDeclaration", "scope": 2304, "src": "413:40:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 2057, "name": "string", "nodeType": "ElementaryTypeName", "src": "413:6:20", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "302e302e31", "id": 2058, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "446:7:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": true, "id": 2062, "name": "REPLACE_OWNER_FUNCTION_IDENTIFIER", "nodeType": "VariableDeclaration", "scope": 2304, "src": "459:72:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 2060, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "459:6:20", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "54e99c6e", "id": 2061, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "518:13:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_c9d777df93ed5e148240dbbfbc0215def5044b10739d563ea8310789d1317911", "typeString": "literal_string (contains invalid UTF-8 sequence at position 4)" }, "value": null }, "visibility": "public" }, { "constant": false, "id": 2064, "name": "threshold", "nodeType": "VariableDeclaration", "scope": 2304, "src": "538:22:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 2063, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "538:5:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2067, "name": "friends", "nodeType": "VariableDeclaration", "scope": 2304, "src": "566:24:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[]" }, "typeName": { "baseType": { "id": 2065, "name": "address", "nodeType": "ElementaryTypeName", "src": "566:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 2066, "length": null, "nodeType": "ArrayTypeName", "src": "566:9:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2071, "name": "isFriend", "nodeType": "VariableDeclaration", "scope": 2304, "src": "661:41:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "typeName": { "id": 2070, "keyType": { "id": 2068, "name": "address", "nodeType": "ElementaryTypeName", "src": "670:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "661:25:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 2069, "name": "bool", "nodeType": "ElementaryTypeName", "src": "681:4:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2075, "name": "isExecuted", "nodeType": "VariableDeclaration", "scope": 2304, "src": "770:43:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "typeName": { "id": 2074, "keyType": { "id": 2072, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "779:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "770:25:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "valueType": { "id": 2073, "name": "bool", "nodeType": "ElementaryTypeName", "src": "790:4:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2081, "name": "isConfirmed", "nodeType": "VariableDeclaration", "scope": 2304, "src": "905:65:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" }, "typeName": { "id": 2080, "keyType": { "id": 2076, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "914:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "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", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } } }, "value": null, "visibility": "public" }, { "body": { "id": 2091, "nodeType": "Block", "src": "999:57:20", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "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)" } }, "id": 2087, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2085, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2465, "src": "1026:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2086, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1026:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1017:20:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2083, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1009:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2088, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1009:29:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2089, "nodeType": "ExpressionStatement", "src": "1009:29:20" }, { "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": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2104, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2101, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2097, "src": "1343:10:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2102, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2095, "src": "1357:8:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2103, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1357:15:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1343:29:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2100, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1335:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2105, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1335:38:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2106, "nodeType": "ExpressionStatement", "src": "1335:38:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "id": 2110, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2108, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2097, "src": "1391:10:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "argumentTypes": null, "hexValue": "32", "id": 2109, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1405:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "src": "1391:15:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2107, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1383:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2111, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1383:24:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2112, "nodeType": "ExpressionStatement", "src": "1383:24:20" }, { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 2113, "name": "setManager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 876, "src": "1417:10:20", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "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": { "argumentTypes": null, "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" } }, "id": 2131, "indexExpression": { "argumentTypes": null, "id": 2130, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2117, "src": "1557:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1548:11:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "1531:28:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 2136, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2134, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2128, "src": "1581:6:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 2135, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1591:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1581:11:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2133, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1573:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2137, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1573:20:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2138, "nodeType": "ExpressionStatement", "src": "1573:20:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2143, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1615:17:20", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2140, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2071, "src": "1616:8:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2142, "indexExpression": { "argumentTypes": null, "id": 2141, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2128, "src": "1625:6:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1616:16:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2139, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1607:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2144, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1607:26:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2145, "nodeType": "ExpressionStatement", "src": "1607:26:20" }, { "expression": { "argumentTypes": null, "id": 2150, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2146, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2071, "src": "1647:8:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2148, "indexExpression": { "argumentTypes": null, "id": 2147, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2128, "src": "1656:6:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1647:16:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2149, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1666:4:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1647:23:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2151, "nodeType": "ExpressionStatement", "src": "1647:23:20" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2123, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2120, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2117, "src": "1491:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2121, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2095, "src": "1495:8:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2122, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1495:15:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1491:19:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2153, "initializationExpression": { "assignments": [ 2117 ], "declarations": [ { "constant": false, "id": 2117, "name": "i", "nodeType": "VariableDeclaration", "scope": 2163, "src": "1476:9:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2116, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1476:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2119, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2118, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1488:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "1476:13:20" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2125, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "1512:3:20", "subExpression": { "argumentTypes": null, "id": 2124, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2117, "src": "1512:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2126, "nodeType": "ExpressionStatement", "src": "1512:3:20" }, "nodeType": "ForStatement", "src": "1471:210:20" }, { "expression": { "argumentTypes": null, "id": 2156, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2154, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2067, "src": "1690:7:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2155, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2095, "src": "1700:8:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "1690:18:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2157, "nodeType": "ExpressionStatement", "src": "1690:18:20" }, { "expression": { "argumentTypes": null, "id": 2160, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2158, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2064, "src": "1718:9:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2159, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2097, "src": "1730:10:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "1718:22:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 2161, "nodeType": "ExpressionStatement", "src": "1718:22:20" } ] }, "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, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "setup", "nodeType": "FunctionDefinition", "parameters": { "id": 2098, "nodeType": "ParameterList", "parameters": [ { "constant": false, "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", "nodeType": "VariableDeclaration", "scope": 2163, "src": "1288:16:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 2096, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1288:5:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "1267:38:20" }, "payable": false, "returnParameters": { "id": 2099, "nodeType": "ParameterList", "parameters": [], "src": "1325:0:20" }, "scope": 2304, "src": "1253:494:20", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2186, "nodeType": "Block", "src": "1944:97:20", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2174, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1962:21:20", "subExpression": { "argumentTypes": null, "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)" } }, "id": 2173, "indexExpression": { "argumentTypes": null, "id": 2172, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2165, "src": "1974:8:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1963:20:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2170, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "1954:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2175, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1954:30:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2176, "nodeType": "ExpressionStatement", "src": "1954:30:20" }, { "expression": { "argumentTypes": null, "id": 2184, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2177, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2081, "src": "1994:11:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2181, "indexExpression": { "argumentTypes": null, "id": 2178, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2165, "src": "2006:8:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1994:21:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2182, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2179, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2465, "src": "2016:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2180, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2016:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1994:33:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2183, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "2030:4:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1994:40:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2185, "nodeType": "ExpressionStatement", "src": "1994:40:20" } ] }, "documentation": "@dev Allows a friend to confirm a Safe transaction.\n @param dataHash Safe transaction hash.", "id": 2187, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 2168, "modifierName": { "argumentTypes": null, "id": 2167, "name": "onlyFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2092, "src": "1929:10:20", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1929:10:20" } ], "name": "confirmTransaction", "nodeType": "FunctionDefinition", "parameters": { "id": 2166, "nodeType": "ParameterList", "parameters": [ { "constant": false, "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", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "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": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2193, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2071, "src": "2381:8:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2196, "indexExpression": { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2381:20:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2192, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2373:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2197, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2373:29:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2198, "nodeType": "ExpressionStatement", "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" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 2206, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2204, "name": "functionIdentifier", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2200, "src": "2678:18:20", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 2205, "name": "REPLACE_OWNER_FUNCTION_IDENTIFIER", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2062, "src": "2700:33:20", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "src": "2678:55:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2203, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2670:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2207, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2670:64:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2208, "nodeType": "ExpressionStatement", "src": "2670:64:20" }, { "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", "typeDescriptions": { "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" } } ], "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)" } }, "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" } }, "nodeType": "VariableDeclarationStatement", "src": "2744:36:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "2798:21:20", "subExpression": { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2215, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2790:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2220, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2790:30:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2221, "nodeType": "ExpressionStatement", "src": "2790:30:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2222, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2468, 2469 ], "referencedDeclaration": 2468, "src": "2830:7:20", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2226, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2830:47:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2227, "nodeType": "ExpressionStatement", "src": "2830:47:20" }, { "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", "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": { "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", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2233, "nodeType": "ExpressionStatement", "src": "2887:27:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "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" } } ], "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" }, "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": { "argumentTypes": null, "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", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$29_$", "typeString": "type(enum Enum.Operation)" } }, "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" } ], "expression": { "argumentTypes": null, "id": 2234, "name": "manager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 844, "src": "2924:7:20", "typeDescriptions": { "typeIdentifier": "t_contract$_ModuleManager_$1142", "typeString": "contract ModuleManager" } }, "id": 2236, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "executeModule", "nodeType": "MemberAccess", "referencedDeclaration": 1033, "src": "2924:21:20", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$returns$_t_bool_$", "typeString": "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)" } }, "id": 2245, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2924:69:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2246, "nodeType": "ExpressionStatement", "src": "2924:69:20" } ] }, "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, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "recoverAccess", "nodeType": "FunctionDefinition", "parameters": { "id": 2190, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2189, "name": "data", "nodeType": "VariableDeclaration", "scope": 2248, "src": "2268:10:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2188, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2268:5:20", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "2267:12:20" }, "payable": false, "returnParameters": { "id": 2191, "nodeType": "ParameterList", "parameters": [], "src": "2299:0:20" }, "scope": 2304, "src": "2245:755:20", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2290, "nodeType": "Block", "src": "3272:294:20", "statements": [ { "assignments": [], "declarations": [ { "constant": false, "id": 2256, "name": "confirmationCount", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3282:25:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2255, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3282:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2257, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "3282:25:20" }, { "body": { "id": 2286, "nodeType": "Block", "src": "3362:176:20", "statements": [ { "condition": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2269, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2081, "src": "3380:11:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2271, "indexExpression": { "argumentTypes": null, "id": 2270, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2250, "src": "3392:8:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3380:21:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2275, "indexExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2272, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2067, "src": "3402:7:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2274, "indexExpression": { "argumentTypes": null, "id": 2273, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2259, "src": "3410:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3402:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3380:33:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2279, "nodeType": "IfStatement", "src": "3376:74:20", "trueBody": { "expression": { "argumentTypes": null, "id": 2277, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3431:19:20", "subExpression": { "argumentTypes": null, "id": 2276, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2256, "src": "3431:17:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2278, "nodeType": "ExpressionStatement", "src": "3431:19:20" } }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2282, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2280, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2256, "src": "3468:17:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 2281, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2064, "src": "3489:9:20", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "3468:30:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2285, "nodeType": "IfStatement", "src": "3464:63:20", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 2283, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3523:4:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 2254, "id": 2284, "nodeType": "Return", "src": "3516:11:20" } } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2265, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2262, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2259, "src": "3337:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2263, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2067, "src": "3341:7:20", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2264, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3341:14:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3337:18:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2287, "initializationExpression": { "assignments": [ 2259 ], "declarations": [ { "constant": false, "id": 2259, "name": "i", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3322:9:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2258, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3322:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2261, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2260, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3334:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "3322:13:20" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2267, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3357:3:20", "subExpression": { "argumentTypes": null, "id": 2266, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2259, "src": "3357:1:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2268, "nodeType": "ExpressionStatement", "src": "3357:3:20" }, "nodeType": "ForStatement", "src": "3317:221:20" }, { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 2288, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3554:5:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "functionReturnParameters": 2254, "id": 2289, "nodeType": "Return", "src": "3547:12:20" } ] }, "documentation": "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param dataHash Data hash.\n @return Confirmation status.", "id": 2291, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isConfirmedByRequiredFriends", "nodeType": "FunctionDefinition", "parameters": { "id": 2251, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2250, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3199:16:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2249, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3199:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3198:18:20" }, "payable": false, "returnParameters": { "id": 2254, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2253, "name": "", "nodeType": "VariableDeclaration", "scope": 2291, "src": "3262:4:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2252, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3262:4:20", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3261:6:20" }, "scope": 2304, "src": "3161:405:20", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 2302, "nodeType": "Block", "src": "3786:39:20", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2299, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2293, "src": "3813:4:20", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2298, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2459, "src": "3803:9:20", "typeDescriptions": { "typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$", "typeString": "function () pure returns (bytes32)" } }, "id": 2300, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3803:15:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "functionReturnParameters": 2297, "id": 2301, "nodeType": "Return", "src": "3796:22:20" } ] }, "documentation": "@dev Returns hash of data encoding owner replacement.\n @param data Data payload.\n @return Data hash.", "id": 2303, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getDataHash", "nodeType": "FunctionDefinition", "parameters": { "id": 2294, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2293, "name": "data", "nodeType": "VariableDeclaration", "scope": 2303, "src": "3716:10:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2292, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3716:5:20", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "3715:12:20" }, "payable": false, "returnParameters": { "id": 2297, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2296, "name": "", "nodeType": "VariableDeclaration", "scope": 2303, "src": "3773:7:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2295, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3773:7:20", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3772:9:20" }, "scope": 2304, "src": "3695:130:20", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 2305, "src": "306:3521:20" } ], "src": "0:3828:20" }, "compiler": { "name": "solc", "version": "0.4.23+commit.124ca40d.Emscripten.clang" }, "networks": { "4": { "events": {}, "links": {}, "address": "0x364cfc50a8c4eab27bebbb54aac0f51fb74015d3", "transactionHash": "0xd31966624227345ccb60fc9f51e315d610071b6418712c5f528a7a64f7c0d103" }, "1525950336085": { "events": {}, "links": {}, "address": "0xfe2114e016fa8d92959754f25d4f63f155ad1a6a", "transactionHash": "0xa514f0c5c6fcab99a16bba503b6ed893935cedfafe2e5c8c825dfc117e1e266d" }, "1526283540628": { "events": {}, "links": {}, "address": "0x12fb2fe4f6d4c08b14c694e163b9bee65697e708", "transactionHash": "0xa514f0c5c6fcab99a16bba503b6ed893935cedfafe2e5c8c825dfc117e1e266d" } }, "schemaVersion": "2.0.0", "updatedAt": "2018-05-14T07:39:37.975Z" }