{ "contractName": "SocialRecoveryModule", "abi": [ { "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": "prevOwner", "type": "address" }, { "name": "oldOwner", "type": "address" }, { "name": "newOwner", "type": "address" } ], "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": "pure", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b50611171806100206000396000f3006080604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633cf5b309146100d557806342cde4e814610148578063481c6a751461017957806368125a1b146101d057806377231eaa1461022b57806379716e43146102ae5780637de7edef146102df5780639ca89d0d14610322578063a3f4df7e1461036b578063ae68b056146103fb578063b79ffaff14610480578063ce146828146104e9578063e52cb36a14610556578063ffa1ad741461059f575b600080fd5b3480156100e157600080fd5b5061014660048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff16906020019092919050505061062f565b005b34801561015457600080fd5b5061015d6107a4565b604051808260ff1660ff16815260200191505060405180910390f35b34801561018557600080fd5b5061018e6107b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101dc57600080fd5b50610211600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107dd565b604051808215151515815260200191505060405180910390f35b34801561023757600080fd5b506102ac600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107fd565b005b3480156102ba57600080fd5b506102dd6004803603810190808035600019169060200190929190505050610bbe565b005b3480156102eb57600080fd5b50610320600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cbf565b005b34801561032e57600080fd5b506103516004803603810190808035600019169060200190929190505050610d84565b604051808215151515815260200191505060405180910390f35b34801561037757600080fd5b50610380610e83565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103c05780820151818401526020810190506103a5565b50505050905090810190601f1680156103ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561040757600080fd5b50610462600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ebc565b60405180826000191660001916815260200191505060405180910390f35b34801561048c57600080fd5b506104cf6004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f28565b604051808215151515815260200191505060405180910390f35b3480156104f557600080fd5b5061051460048036038101908080359060200190929190505050610f57565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561056257600080fd5b506105856004803603810190808035600019169060200190929190505050610f95565b604051808215151515815260200191505060405180910390f35b3480156105ab57600080fd5b506105b4610fb5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105f45780820151818401526020810190506105d9565b50505050905090810190601f1680156106215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60008083518360ff161115151561064557600080fd5b60028360ff161015151561065857600080fd5b610660610fee565b600091505b835182101561076c57838281518110151561067c57fe5b90602001906020020151905060008173ffffffffffffffffffffffffffffffffffffffff16141515156106ae57600080fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561070757600080fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508180600101925050610665565b8360029080519060200190610782929190611078565b5082600160146101000a81548160ff021916908360ff16021790555050505050565b600160149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b60606000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561085957600080fd5b848484604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200193505050506040516020818303038152906040527fe318b52b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050915061098682610ebc565b905060046000826000191660001916815260200190815260200160002060009054906101000a900460ff161515156109bd57600080fd5b6109c681610d84565b15156109d157600080fd5b600160046000836000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663468721a7600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008560006040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001836002811115610ae257fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015610b22578082015181840152602081019050610b07565b50505050905090810190601f168015610b4f5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610b7157600080fd5b505af1158015610b85573d6000803e3d6000fd5b505050506040513d6020811015610b9b57600080fd5b81019080805190602001909291905050501515610bb757600080fd5b5050505050565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610c1657600080fd5b60046000826000191660001916815260200190815260200160002060009054906101000a900460ff16151515610c4b57600080fd5b600160056000836000191660001916815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d1b57600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff1614151515610d4157600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008090505b600280549050811015610e77576005600085600019166000191681526020019081526020016000206000600283815481101515610dc657fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610e475781806001019250505b600160149054906101000a900460ff1660ff16821415610e6a5760019250610e7c565b8080600101915050610d8d565b600092505b5050919050565b6040805190810160405280601681526020017f536f6369616c205265636f76657279204d6f64756c650000000000000000000081525081565b6000816040518082805190602001908083835b602083101515610ef45780518252602082019150602081019050602083039250610ecf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b600281815481101515610f6657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b6040805190810160405280600581526020017f302e302e3100000000000000000000000000000000000000000000000000000081525081565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561103557600080fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b8280548282559060005260206000209081019282156110f1579160200282015b828111156110f05782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611098565b5b5090506110fe9190611102565b5090565b61114291905b8082111561113e57600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101611108565b5090565b905600a165627a7a7230582016bbe219e7ccae5c600c8f48a1fc8b74cff478e1cbbcf8be80a150f855d6eb800029", "deployedBytecode": "0x6080604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633cf5b309146100d557806342cde4e814610148578063481c6a751461017957806368125a1b146101d057806377231eaa1461022b57806379716e43146102ae5780637de7edef146102df5780639ca89d0d14610322578063a3f4df7e1461036b578063ae68b056146103fb578063b79ffaff14610480578063ce146828146104e9578063e52cb36a14610556578063ffa1ad741461059f575b600080fd5b3480156100e157600080fd5b5061014660048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff16906020019092919050505061062f565b005b34801561015457600080fd5b5061015d6107a4565b604051808260ff1660ff16815260200191505060405180910390f35b34801561018557600080fd5b5061018e6107b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101dc57600080fd5b50610211600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107dd565b604051808215151515815260200191505060405180910390f35b34801561023757600080fd5b506102ac600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107fd565b005b3480156102ba57600080fd5b506102dd6004803603810190808035600019169060200190929190505050610bbe565b005b3480156102eb57600080fd5b50610320600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cbf565b005b34801561032e57600080fd5b506103516004803603810190808035600019169060200190929190505050610d84565b604051808215151515815260200191505060405180910390f35b34801561037757600080fd5b50610380610e83565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103c05780820151818401526020810190506103a5565b50505050905090810190601f1680156103ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561040757600080fd5b50610462600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ebc565b60405180826000191660001916815260200191505060405180910390f35b34801561048c57600080fd5b506104cf6004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f28565b604051808215151515815260200191505060405180910390f35b3480156104f557600080fd5b5061051460048036038101908080359060200190929190505050610f57565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561056257600080fd5b506105856004803603810190808035600019169060200190929190505050610f95565b604051808215151515815260200191505060405180910390f35b3480156105ab57600080fd5b506105b4610fb5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105f45780820151818401526020810190506105d9565b50505050905090810190601f1680156106215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60008083518360ff161115151561064557600080fd5b60028360ff161015151561065857600080fd5b610660610fee565b600091505b835182101561076c57838281518110151561067c57fe5b90602001906020020151905060008173ffffffffffffffffffffffffffffffffffffffff16141515156106ae57600080fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561070757600080fd5b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508180600101925050610665565b8360029080519060200190610782929190611078565b5082600160146101000a81548160ff021916908360ff16021790555050505050565b600160149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b60606000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561085957600080fd5b848484604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200193505050506040516020818303038152906040527fe318b52b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050915061098682610ebc565b905060046000826000191660001916815260200190815260200160002060009054906101000a900460ff161515156109bd57600080fd5b6109c681610d84565b15156109d157600080fd5b600160046000836000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663468721a7600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008560006040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001836002811115610ae257fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015610b22578082015181840152602081019050610b07565b50505050905090810190601f168015610b4f5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610b7157600080fd5b505af1158015610b85573d6000803e3d6000fd5b505050506040513d6020811015610b9b57600080fd5b81019080805190602001909291905050501515610bb757600080fd5b5050505050565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610c1657600080fd5b60046000826000191660001916815260200190815260200160002060009054906101000a900460ff16151515610c4b57600080fd5b600160056000836000191660001916815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d1b57600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff1614151515610d4157600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008090505b600280549050811015610e77576005600085600019166000191681526020019081526020016000206000600283815481101515610dc657fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610e475781806001019250505b600160149054906101000a900460ff1660ff16821415610e6a5760019250610e7c565b8080600101915050610d8d565b600092505b5050919050565b6040805190810160405280601681526020017f536f6369616c205265636f76657279204d6f64756c650000000000000000000081525081565b6000816040518082805190602001908083835b602083101515610ef45780518252602082019150602081019050602083039250610ecf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b600281815481101515610f6657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60046020528060005260406000206000915054906101000a900460ff1681565b6040805190810160405280600581526020017f302e302e3100000000000000000000000000000000000000000000000000000081525081565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561103557600080fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b8280548282559060005260206000209081019282156110f1579160200282015b828111156110f05782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611098565b5b5090506110fe9190611102565b5090565b61114291905b8082111561113e57600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101611108565b5090565b905600a165627a7a7230582016bbe219e7ccae5c600c8f48a1fc8b74cff478e1cbbcf8be80a150f855d6eb800029", "sourceMap": "306:3426:18:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;306:3426:18;;;;;;;", "deployedSourceMap": "306:3426:18:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1175:494;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1175:494:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;460:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;460:22:18;;;;;;;;;;;;;;;;;;;;;;;;;;;262:28:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;262:28:7;;;;;;;;;;;;;;;;;;;;;;;;;;;583:41:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;583:41:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2296:609;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2296:609:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1782:181;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1782:181:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;626:208:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:208:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;3066:405:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3066:405:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;353:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;353:54:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3600:130;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3600:130:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;827:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;827:65:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;488:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;488:24:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;692:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;692:43:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;413:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;413:40:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1175:494;1398:9;1453:14;1279:8;:15;1265:10;:29;;;;1257:38;;;;;;;;1327:1;1313:10;:15;;;;1305:24;;;;;;;;1339:12;:10;:12::i;:::-;1410:1;1398:13;;1393:210;1417:8;:15;1413:1;:19;1393:210;;;1470:8;1479:1;1470:11;;;;;;;;;;;;;;;;;;1453:28;;1513:1;1503:6;:11;;;;1495:20;;;;;;;;1538:8;:16;1547:6;1538:16;;;;;;;;;;;;;;;;;;;;;;;;;1537:17;1529:26;;;;;;;;1588:4;1569:8;:16;1578:6;1569:16;;;;;;;;;;;;;;;;:23;;;;;;;;;;;;;;;;;;1434:3;;;;;;;1393:210;;;1622:8;1612:7;:18;;;;;;;;;;;;:::i;:::-;;1652:10;1640:9;;:22;;;;;;;;;;;;;;;;;;1175:494;;;;:::o;460:22::-;;;;;;;;;;;;;:::o;262:28:7:-;;;;;;;;;;;;;:::o;583:41:18:-;;;;;;;;;;;;;;;;;;;;;;:::o;2296:609::-;2506:17;2628:16;2475:8;:20;2484:10;2475:20;;;;;;;;;;;;;;;;;;;;;;;;;2467:29;;;;;;;;2588:9;2599:8;2609;2526:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2526:92:18;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;2526:92:18;2506:112;;2647:17;2659:4;2647:11;:17::i;:::-;2628:36;;2683:10;:20;2694:8;2683:20;;;;;;;;;;;;;;;;;;;;;;;;;;;2682:21;2674:30;;;;;;;;2722:38;2751:8;2722:28;:38::i;:::-;2714:47;;;;;;;;2794:4;2771:10;:20;2782:8;2771:20;;;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;2816:7;;;;;;;;;;;:33;;;2858:7;;;;;;;;;;;2868:1;2871:4;2877:19;2816:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;2816:81:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2816:81:18;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2816:81:18;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2816:81:18;;;;;;;;;;;;;;;;2808:90;;;;;;;;2296:609;;;;;:::o;1782:181::-;939:8;:20;948:10;939:20;;;;;;;;;;;;;;;;;;;;;;;;;931:29;;;;;;;;1885:10;:20;1896:8;1885:20;;;;;;;;;;;;;;;;;;;;;;;;;;;1884:21;1876:30;;;;;;;;1952:4;1916:11;:21;1928:8;1916:21;;;;;;;;;;;;;;;;;:33;1938:10;1916:33;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;1782:181;:::o;626:208:5:-;359:7:7;;;;;;;;;;;337:30;;:10;:30;;;329:39;;;;;;;;791:1:5;776:11;:16;;;;768:25;;;;;;;;816:11;803:10;;:24;;;;;;;;;;;;;;;;;;626:208;:::o;3066:405:18:-;3167:4;3187:25;3227:9;3239:1;3227:13;;3222:221;3246:7;:14;;;;3242:1;:18;3222:221;;;3285:11;:21;3297:8;3285:21;;;;;;;;;;;;;;;;;:33;3307:7;3315:1;3307:10;;;;;;;;;;;;;;;;;;;;;;;;;;;3285:33;;;;;;;;;;;;;;;;;;;;;;;;;3281:74;;;3336:19;;;;;;;3281:74;3394:9;;;;;;;;;;;3373:30;;:17;:30;3369:63;;;3428:4;3421:11;;;;3369:63;3262:3;;;;;;;3222:221;;;3459:5;3452:12;;3066:405;;;;;;:::o;353:54::-;;;;;;;;;;;;;;;;;;;;:::o;3600:130::-;3678:7;3718:4;3708: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;;;3708:15:18;;;;;;;;;;;;;;;;3701:22;;3600:130;;;:::o;827:65::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;488:24::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;692:43::-;;;;;;;;;;;;;;;;;;;;;;:::o;413:40::-;;;;;;;;;;;;;;;;;;;;:::o;392:268:7:-;606:1;594:7;;;;;;;;;;;586:21;;;578:30;;;;;;;;642:10;618:7;;:35;;;;;;;;;;;;;;;;;;392:268::o;306:3426:18:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", "source": "pragma solidity 0.4.24;\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\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 prevOwner Owner that pointed to the owner to be replaced in the linked list\n /// @param oldOwner Owner address to be replaced.\n /// @param newOwner New owner address.\n /// @return Returns if transaction can be executed.\n function recoverAccess(address prevOwner, address oldOwner, address newOwner)\n public\n {\n // Only friends are allowed to execute the replacement.\n require(isFriend[msg.sender]);\n bytes memory data = abi.encodeWithSignature(\"swapOwner(address,address,address)\", prevOwner, oldOwner, newOwner);\n bytes32 dataHash = getDataHash(data);\n require(!isExecuted[dataHash]);\n require(isConfirmedByRequiredFriends(dataHash));\n isExecuted[dataHash] = true;\n require(manager.execTransactionFromModule(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 pure\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": [ 2234 ] }, "id": 2235, "nodeType": "SourceUnit", "nodes": [ { "id": 1975, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:23:18" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "file": "../Enum.sol", "id": 1976, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 31, "src": "24:21:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol", "file": "../Module.sol", "id": 1977, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 751, "src": "46:23:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "file": "../ModuleManager.sol", "id": 1978, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 1101, "src": "70:30:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol", "file": "../OwnerManager.sol", "id": 1979, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 1473, "src": "101:29:18", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 1980, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 750, "src": "339:6:18", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$750", "typeString": "contract Module" } }, "id": 1981, "nodeType": "InheritanceSpecifier", "src": "339:6:18" } ], "contractDependencies": [ 652, 750, 1619 ], "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": 2234, "linearizedBaseContracts": [ 2234, 750, 652, 1619 ], "name": "SocialRecoveryModule", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 1984, "name": "NAME", "nodeType": "VariableDeclaration", "scope": 2234, "src": "353:54:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 1982, "name": "string", "nodeType": "ElementaryTypeName", "src": "353:6:18", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "536f6369616c205265636f76657279204d6f64756c65", "id": 1983, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "383:24:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_8f499aea563eae5544b16c9123d6c7c8537a7d9dd86296aa60c65de194207230", "typeString": "literal_string \"Social Recovery Module\"" }, "value": "Social Recovery Module" }, "visibility": "public" }, { "constant": true, "id": 1987, "name": "VERSION", "nodeType": "VariableDeclaration", "scope": 2234, "src": "413:40:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 1985, "name": "string", "nodeType": "ElementaryTypeName", "src": "413:6:18", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "302e302e31", "id": 1986, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "446:7:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": false, "id": 1989, "name": "threshold", "nodeType": "VariableDeclaration", "scope": 2234, "src": "460:22:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 1988, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "460:5:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 1992, "name": "friends", "nodeType": "VariableDeclaration", "scope": 2234, "src": "488:24:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1990, "name": "address", "nodeType": "ElementaryTypeName", "src": "488:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1991, "length": null, "nodeType": "ArrayTypeName", "src": "488:9:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 1996, "name": "isFriend", "nodeType": "VariableDeclaration", "scope": 2234, "src": "583:41:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "typeName": { "id": 1995, "keyType": { "id": 1993, "name": "address", "nodeType": "ElementaryTypeName", "src": "592:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "583:25:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 1994, "name": "bool", "nodeType": "ElementaryTypeName", "src": "603:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2000, "name": "isExecuted", "nodeType": "VariableDeclaration", "scope": 2234, "src": "692:43:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "typeName": { "id": 1999, "keyType": { "id": 1997, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "701:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "692:25:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "valueType": { "id": 1998, "name": "bool", "nodeType": "ElementaryTypeName", "src": "712:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2006, "name": "isConfirmed", "nodeType": "VariableDeclaration", "scope": 2234, "src": "827:65:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" }, "typeName": { "id": 2005, "keyType": { "id": 2001, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "836:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "827:46:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" }, "valueType": { "id": 2004, "keyType": { "id": 2002, "name": "address", "nodeType": "ElementaryTypeName", "src": "856:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "847:25:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 2003, "name": "bool", "nodeType": "ElementaryTypeName", "src": "867:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } } }, "value": null, "visibility": "public" }, { "body": { "id": 2016, "nodeType": "Block", "src": "921:57:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2009, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "939:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2012, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2010, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "948:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2011, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "948:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "939:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2008, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "931:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2013, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "931:29:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2014, "nodeType": "ExpressionStatement", "src": "931:29:18" }, { "id": 2015, "nodeType": "PlaceholderStatement", "src": "970:1:18" } ] }, "documentation": null, "id": 2017, "name": "onlyFriend", "nodeType": "ModifierDefinition", "parameters": { "id": 2007, "nodeType": "ParameterList", "parameters": [], "src": "918:2:18" }, "src": "899:79:18", "visibility": "internal" }, { "body": { "id": 2087, "nodeType": "Block", "src": "1247:422:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2029, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2026, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2022, "src": "1265:10:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2027, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1279:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2028, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1279:15:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1265:29:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2025, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1257:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2030, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1257:38:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2031, "nodeType": "ExpressionStatement", "src": "1257:38:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "id": 2035, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2033, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2022, "src": "1313:10:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "argumentTypes": null, "hexValue": "32", "id": 2034, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1327:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "src": "1313:15:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2032, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1305:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2036, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1305:24:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2037, "nodeType": "ExpressionStatement", "src": "1305:24:18" }, { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 2038, "name": "setManager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 749, "src": "1339:10:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2039, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1339:12:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2040, "nodeType": "ExpressionStatement", "src": "1339:12:18" }, { "body": { "id": 2077, "nodeType": "Block", "src": "1439:164:18", "statements": [ { "assignments": [ 2053 ], "declarations": [ { "constant": false, "id": 2053, "name": "friend", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1453:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2052, "name": "address", "nodeType": "ElementaryTypeName", "src": "1453:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 2057, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2054, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1470:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2056, "indexExpression": { "argumentTypes": null, "id": 2055, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2042, "src": "1479:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1470:11:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "1453:28:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 2061, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2059, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2053, "src": "1503:6:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 2060, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1513:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1503:11:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2058, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1495:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2062, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1495:20:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2063, "nodeType": "ExpressionStatement", "src": "1495:20:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2068, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1537:17:18", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2065, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "1538:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2067, "indexExpression": { "argumentTypes": null, "id": 2066, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2053, "src": "1547:6:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1538:16:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2064, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1529:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2069, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1529:26:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2070, "nodeType": "ExpressionStatement", "src": "1529:26:18" }, { "expression": { "argumentTypes": null, "id": 2075, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2071, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "1569:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2073, "indexExpression": { "argumentTypes": null, "id": 2072, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2053, "src": "1578:6:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1569:16:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2074, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1588:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1569:23:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2076, "nodeType": "ExpressionStatement", "src": "1569:23:18" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2048, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2045, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2042, "src": "1413:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2046, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1417:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2047, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1417:15:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1413:19:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2078, "initializationExpression": { "assignments": [ 2042 ], "declarations": [ { "constant": false, "id": 2042, "name": "i", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1398:9:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2041, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1398:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2044, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2043, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1410:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "1398:13:18" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2050, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "1434:3:18", "subExpression": { "argumentTypes": null, "id": 2049, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2042, "src": "1434:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2051, "nodeType": "ExpressionStatement", "src": "1434:3:18" }, "nodeType": "ForStatement", "src": "1393:210:18" }, { "expression": { "argumentTypes": null, "id": 2081, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2079, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1992, "src": "1612:7:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2080, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1622:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "1612:18:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2082, "nodeType": "ExpressionStatement", "src": "1612:18:18" }, { "expression": { "argumentTypes": null, "id": 2085, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2083, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1989, "src": "1640:9:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2084, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2022, "src": "1652:10:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "1640:22:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 2086, "nodeType": "ExpressionStatement", "src": "1640:22:18" } ] }, "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": 2088, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "setup", "nodeType": "FunctionDefinition", "parameters": { "id": 2023, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2020, "name": "_friends", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1190:18:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 2018, "name": "address", "nodeType": "ElementaryTypeName", "src": "1190:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 2019, "length": null, "nodeType": "ArrayTypeName", "src": "1190:9:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2022, "name": "_threshold", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1210:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 2021, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1210:5:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "1189:38:18" }, "payable": false, "returnParameters": { "id": 2024, "nodeType": "ParameterList", "parameters": [], "src": "1247:0:18" }, "scope": 2234, "src": "1175:494:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2111, "nodeType": "Block", "src": "1866:97:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2099, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1884:21:18", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2096, "name": "isExecuted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2000, "src": "1885:10:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" } }, "id": 2098, "indexExpression": { "argumentTypes": null, "id": 2097, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2090, "src": "1896:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1885:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2095, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1876:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2100, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1876:30:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2101, "nodeType": "ExpressionStatement", "src": "1876:30:18" }, { "expression": { "argumentTypes": null, "id": 2109, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2102, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2006, "src": "1916:11:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2106, "indexExpression": { "argumentTypes": null, "id": 2103, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2090, "src": "1928:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1916:21:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2107, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2104, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "1938:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2105, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1938:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1916:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2108, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1952:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1916:40:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2110, "nodeType": "ExpressionStatement", "src": "1916:40:18" } ] }, "documentation": "@dev Allows a friend to confirm a Safe transaction.\n @param dataHash Safe transaction hash.", "id": 2112, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 2093, "modifierName": { "argumentTypes": null, "id": 2092, "name": "onlyFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2017, "src": "1851:10:18", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1851:10:18" } ], "name": "confirmTransaction", "nodeType": "FunctionDefinition", "parameters": { "id": 2091, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2090, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2112, "src": "1810:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2089, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1810:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "1809:18:18" }, "payable": false, "returnParameters": { "id": 2094, "nodeType": "ParameterList", "parameters": [], "src": "1866:0:18" }, "scope": 2234, "src": "1782:181:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2177, "nodeType": "Block", "src": "2393:512:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2122, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "2475:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2125, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2123, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "2484:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2124, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2484:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2475:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2121, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2467:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2126, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2467:29:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2127, "nodeType": "ExpressionStatement", "src": "2467:29:18" }, { "assignments": [ 2129 ], "declarations": [ { "constant": false, "id": 2129, "name": "data", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2506:17:18", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2128, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2506:5:18", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "id": 2137, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "737761704f776e657228616464726573732c616464726573732c6164647265737329", "id": 2132, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2550:36:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_e318b52b9bee2870ac7ee0af86866eb2e8f9569b34de6028eb487e7983ba6df8", "typeString": "literal_string \"swapOwner(address,address,address)\"" }, "value": "swapOwner(address,address,address)" }, { "argumentTypes": null, "id": 2133, "name": "prevOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2114, "src": "2588:9:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 2134, "name": "oldOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2116, "src": "2599:8:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 2135, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2118, "src": "2609:8:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e318b52b9bee2870ac7ee0af86866eb2e8f9569b34de6028eb487e7983ba6df8", "typeString": "literal_string \"swapOwner(address,address,address)\"" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "expression": { "argumentTypes": null, "id": 2130, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2585, "src": "2526:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2131, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "encodeWithSignature", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2526:23:18", "typeDescriptions": { "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$", "typeString": "function (string memory) pure returns (bytes memory)" } }, "id": 2136, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2526:92:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "nodeType": "VariableDeclarationStatement", "src": "2506:112:18" }, { "assignments": [ 2139 ], "declarations": [ { "constant": false, "id": 2139, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2628:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2138, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2628:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "id": 2143, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2141, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "2659:4:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2140, "name": "getDataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2233, "src": "2647:11:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2142, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2647:17:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "VariableDeclarationStatement", "src": "2628:36:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2148, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "2682:21:18", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2145, "name": "isExecuted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2000, "src": "2683:10:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" } }, "id": 2147, "indexExpression": { "argumentTypes": null, "id": 2146, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2139, "src": "2694:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2683:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2144, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2674:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2149, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2674:30:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2150, "nodeType": "ExpressionStatement", "src": "2674:30:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2153, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2139, "src": "2751:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 2152, "name": "isConfirmedByRequiredFriends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2221, "src": "2722:28:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$", "typeString": "function (bytes32) view returns (bool)" } }, "id": 2154, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2722:38:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2151, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2714:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2155, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2714:47:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2156, "nodeType": "ExpressionStatement", "src": "2714:47:18" }, { "expression": { "argumentTypes": null, "id": 2161, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2157, "name": "isExecuted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2000, "src": "2771:10:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" } }, "id": 2159, "indexExpression": { "argumentTypes": null, "id": 2158, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2139, "src": "2782:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2771:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2160, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "2794:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "2771:27:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2162, "nodeType": "ExpressionStatement", "src": "2771:27:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2167, "name": "manager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 717, "src": "2858:7:18", "typeDescriptions": { "typeIdentifier": "t_contract$_ModuleManager_$1100", "typeString": "contract ModuleManager" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_ModuleManager_$1100", "typeString": "contract ModuleManager" } ], "id": 2166, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2850:7:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 2168, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2850:16:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "hexValue": "30", "id": 2169, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2868:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, { "argumentTypes": null, "id": 2170, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "2871:4:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2171, "name": "Enum", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 30, "src": "2877:4:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Enum_$30_$", "typeString": "type(contract Enum)" } }, "id": 2172, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Operation", "nodeType": "MemberAccess", "referencedDeclaration": 29, "src": "2877:14:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$29_$", "typeString": "type(enum Enum.Operation)" } }, "id": 2173, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Call", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2877:19:18", "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": 2164, "name": "manager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 717, "src": "2816:7:18", "typeDescriptions": { "typeIdentifier": "t_contract$_ModuleManager_$1100", "typeString": "contract ModuleManager" } }, "id": 2165, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "execTransactionFromModule", "nodeType": "MemberAccess", "referencedDeclaration": 927, "src": "2816:33:18", "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": 2174, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2816:81:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2163, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2808:7:18", "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": "2808:90:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2176, "nodeType": "ExpressionStatement", "src": "2808:90:18" } ] }, "documentation": "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param prevOwner Owner that pointed to the owner to be replaced in the linked list\n @param oldOwner Owner address to be replaced.\n @param newOwner New owner address.\n @return Returns if transaction can be executed.", "id": 2178, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "recoverAccess", "nodeType": "FunctionDefinition", "parameters": { "id": 2119, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2114, "name": "prevOwner", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2319:17:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2113, "name": "address", "nodeType": "ElementaryTypeName", "src": "2319:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2116, "name": "oldOwner", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2338:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2115, "name": "address", "nodeType": "ElementaryTypeName", "src": "2338:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2118, "name": "newOwner", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2356:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2117, "name": "address", "nodeType": "ElementaryTypeName", "src": "2356:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "2318:55:18" }, "payable": false, "returnParameters": { "id": 2120, "nodeType": "ParameterList", "parameters": [], "src": "2393:0:18" }, "scope": 2234, "src": "2296:609:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2220, "nodeType": "Block", "src": "3177:294:18", "statements": [ { "assignments": [], "declarations": [ { "constant": false, "id": 2186, "name": "confirmationCount", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3187:25:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2185, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3187:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2187, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "3187:25:18" }, { "body": { "id": 2216, "nodeType": "Block", "src": "3267:176:18", "statements": [ { "condition": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2199, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2006, "src": "3285:11:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2201, "indexExpression": { "argumentTypes": null, "id": 2200, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2180, "src": "3297:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3285:21:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2205, "indexExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2202, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1992, "src": "3307:7:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2204, "indexExpression": { "argumentTypes": null, "id": 2203, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2189, "src": "3315:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3307:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3285:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2209, "nodeType": "IfStatement", "src": "3281:74:18", "trueBody": { "expression": { "argumentTypes": null, "id": 2207, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3336:19:18", "subExpression": { "argumentTypes": null, "id": 2206, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2186, "src": "3336:17:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2208, "nodeType": "ExpressionStatement", "src": "3336:19:18" } }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2212, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2210, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2186, "src": "3373:17:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 2211, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1989, "src": "3394:9:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "3373:30:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2215, "nodeType": "IfStatement", "src": "3369:63:18", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 2213, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3428:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 2184, "id": 2214, "nodeType": "Return", "src": "3421:11:18" } } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2195, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2192, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2189, "src": "3242:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2193, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1992, "src": "3246:7:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2194, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3246:14:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3242:18:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2217, "initializationExpression": { "assignments": [ 2189 ], "declarations": [ { "constant": false, "id": 2189, "name": "i", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3227:9:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2188, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3227:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2191, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2190, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3239:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "3227:13:18" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2197, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3262:3:18", "subExpression": { "argumentTypes": null, "id": 2196, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2189, "src": "3262:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2198, "nodeType": "ExpressionStatement", "src": "3262:3:18" }, "nodeType": "ForStatement", "src": "3222:221:18" }, { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 2218, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3459:5:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "functionReturnParameters": 2184, "id": 2219, "nodeType": "Return", "src": "3452:12:18" } ] }, "documentation": "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param dataHash Data hash.\n @return Confirmation status.", "id": 2221, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isConfirmedByRequiredFriends", "nodeType": "FunctionDefinition", "parameters": { "id": 2181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2180, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3104:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2179, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3104:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3103:18:18" }, "payable": false, "returnParameters": { "id": 2184, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2183, "name": "", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3167:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2182, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3167:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3166:6:18" }, "scope": 2234, "src": "3066:405:18", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 2232, "nodeType": "Block", "src": "3691:39:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2229, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2223, "src": "3718:4:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2228, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2592, "src": "3708:9:18", "typeDescriptions": { "typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$", "typeString": "function () pure returns (bytes32)" } }, "id": 2230, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3708:15:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "functionReturnParameters": 2227, "id": 2231, "nodeType": "Return", "src": "3701:22:18" } ] }, "documentation": "@dev Returns hash of data encoding owner replacement.\n @param data Data payload.\n @return Data hash.", "id": 2233, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getDataHash", "nodeType": "FunctionDefinition", "parameters": { "id": 2224, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2223, "name": "data", "nodeType": "VariableDeclaration", "scope": 2233, "src": "3621:10:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2222, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3621:5:18", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "3620:12:18" }, "payable": false, "returnParameters": { "id": 2227, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2226, "name": "", "nodeType": "VariableDeclaration", "scope": 2233, "src": "3678:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2225, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3678:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3677:9:18" }, "scope": 2234, "src": "3600:130:18", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 2235, "src": "306:3426:18" } ], "src": "0:3733:18" }, "legacyAST": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/SocialRecoveryModule.sol", "exportedSymbols": { "SocialRecoveryModule": [ 2234 ] }, "id": 2235, "nodeType": "SourceUnit", "nodes": [ { "id": 1975, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:23:18" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "file": "../Enum.sol", "id": 1976, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 31, "src": "24:21:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Module.sol", "file": "../Module.sol", "id": 1977, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 751, "src": "46:23:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/ModuleManager.sol", "file": "../ModuleManager.sol", "id": 1978, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 1101, "src": "70:30:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/OwnerManager.sol", "file": "../OwnerManager.sol", "id": 1979, "nodeType": "ImportDirective", "scope": 2235, "sourceUnit": 1473, "src": "101:29:18", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 1980, "name": "Module", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 750, "src": "339:6:18", "typeDescriptions": { "typeIdentifier": "t_contract$_Module_$750", "typeString": "contract Module" } }, "id": 1981, "nodeType": "InheritanceSpecifier", "src": "339:6:18" } ], "contractDependencies": [ 652, 750, 1619 ], "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": 2234, "linearizedBaseContracts": [ 2234, 750, 652, 1619 ], "name": "SocialRecoveryModule", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 1984, "name": "NAME", "nodeType": "VariableDeclaration", "scope": 2234, "src": "353:54:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 1982, "name": "string", "nodeType": "ElementaryTypeName", "src": "353:6:18", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "536f6369616c205265636f76657279204d6f64756c65", "id": 1983, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "383:24:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_8f499aea563eae5544b16c9123d6c7c8537a7d9dd86296aa60c65de194207230", "typeString": "literal_string \"Social Recovery Module\"" }, "value": "Social Recovery Module" }, "visibility": "public" }, { "constant": true, "id": 1987, "name": "VERSION", "nodeType": "VariableDeclaration", "scope": 2234, "src": "413:40:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory", "typeString": "string" }, "typeName": { "id": 1985, "name": "string", "nodeType": "ElementaryTypeName", "src": "413:6:18", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "argumentTypes": null, "hexValue": "302e302e31", "id": 1986, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "446:7:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": false, "id": 1989, "name": "threshold", "nodeType": "VariableDeclaration", "scope": 2234, "src": "460:22:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 1988, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "460:5:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 1992, "name": "friends", "nodeType": "VariableDeclaration", "scope": 2234, "src": "488:24:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1990, "name": "address", "nodeType": "ElementaryTypeName", "src": "488:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1991, "length": null, "nodeType": "ArrayTypeName", "src": "488:9:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 1996, "name": "isFriend", "nodeType": "VariableDeclaration", "scope": 2234, "src": "583:41:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "typeName": { "id": 1995, "keyType": { "id": 1993, "name": "address", "nodeType": "ElementaryTypeName", "src": "592:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "583:25:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 1994, "name": "bool", "nodeType": "ElementaryTypeName", "src": "603:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2000, "name": "isExecuted", "nodeType": "VariableDeclaration", "scope": 2234, "src": "692:43:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "typeName": { "id": 1999, "keyType": { "id": 1997, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "701:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "692:25:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" }, "valueType": { "id": 1998, "name": "bool", "nodeType": "ElementaryTypeName", "src": "712:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "public" }, { "constant": false, "id": 2006, "name": "isConfirmed", "nodeType": "VariableDeclaration", "scope": 2234, "src": "827:65:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" }, "typeName": { "id": 2005, "keyType": { "id": 2001, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "836:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "827:46:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" }, "valueType": { "id": 2004, "keyType": { "id": 2002, "name": "address", "nodeType": "ElementaryTypeName", "src": "856:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "847:25:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 2003, "name": "bool", "nodeType": "ElementaryTypeName", "src": "867:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } } }, "value": null, "visibility": "public" }, { "body": { "id": 2016, "nodeType": "Block", "src": "921:57:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2009, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "939:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2012, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2010, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "948:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2011, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "948:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "939:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2008, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "931:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2013, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "931:29:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2014, "nodeType": "ExpressionStatement", "src": "931:29:18" }, { "id": 2015, "nodeType": "PlaceholderStatement", "src": "970:1:18" } ] }, "documentation": null, "id": 2017, "name": "onlyFriend", "nodeType": "ModifierDefinition", "parameters": { "id": 2007, "nodeType": "ParameterList", "parameters": [], "src": "918:2:18" }, "src": "899:79:18", "visibility": "internal" }, { "body": { "id": 2087, "nodeType": "Block", "src": "1247:422:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2029, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2026, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2022, "src": "1265:10:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2027, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1279:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2028, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1279:15:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1265:29:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2025, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1257:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2030, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1257:38:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2031, "nodeType": "ExpressionStatement", "src": "1257:38:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "id": 2035, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2033, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2022, "src": "1313:10:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "argumentTypes": null, "hexValue": "32", "id": 2034, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1327:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "src": "1313:15:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2032, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1305:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2036, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1305:24:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2037, "nodeType": "ExpressionStatement", "src": "1305:24:18" }, { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 2038, "name": "setManager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 749, "src": "1339:10:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2039, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1339:12:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2040, "nodeType": "ExpressionStatement", "src": "1339:12:18" }, { "body": { "id": 2077, "nodeType": "Block", "src": "1439:164:18", "statements": [ { "assignments": [ 2053 ], "declarations": [ { "constant": false, "id": 2053, "name": "friend", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1453:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2052, "name": "address", "nodeType": "ElementaryTypeName", "src": "1453:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 2057, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2054, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1470:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2056, "indexExpression": { "argumentTypes": null, "id": 2055, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2042, "src": "1479:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1470:11:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "1453:28:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 2061, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2059, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2053, "src": "1503:6:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 2060, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1513:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "1503:11:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2058, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1495:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2062, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1495:20:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2063, "nodeType": "ExpressionStatement", "src": "1495:20:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2068, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1537:17:18", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2065, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "1538:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2067, "indexExpression": { "argumentTypes": null, "id": 2066, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2053, "src": "1547:6:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1538:16:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2064, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1529:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2069, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1529:26:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2070, "nodeType": "ExpressionStatement", "src": "1529:26:18" }, { "expression": { "argumentTypes": null, "id": 2075, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2071, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "1569:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2073, "indexExpression": { "argumentTypes": null, "id": 2072, "name": "friend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2053, "src": "1578:6:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1569:16:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2074, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1588:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1569:23:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2076, "nodeType": "ExpressionStatement", "src": "1569:23:18" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2048, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2045, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2042, "src": "1413:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2046, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1417:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 2047, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1417:15:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "1413:19:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2078, "initializationExpression": { "assignments": [ 2042 ], "declarations": [ { "constant": false, "id": 2042, "name": "i", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1398:9:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2041, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1398:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2044, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2043, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1410:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "1398:13:18" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2050, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "1434:3:18", "subExpression": { "argumentTypes": null, "id": 2049, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2042, "src": "1434:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2051, "nodeType": "ExpressionStatement", "src": "1434:3:18" }, "nodeType": "ForStatement", "src": "1393:210:18" }, { "expression": { "argumentTypes": null, "id": 2081, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2079, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1992, "src": "1612:7:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2080, "name": "_friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2020, "src": "1622:8:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "1612:18:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2082, "nodeType": "ExpressionStatement", "src": "1612:18:18" }, { "expression": { "argumentTypes": null, "id": 2085, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 2083, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1989, "src": "1640:9:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 2084, "name": "_threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2022, "src": "1652:10:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "1640:22:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 2086, "nodeType": "ExpressionStatement", "src": "1640:22:18" } ] }, "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": 2088, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "setup", "nodeType": "FunctionDefinition", "parameters": { "id": 2023, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2020, "name": "_friends", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1190:18:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 2018, "name": "address", "nodeType": "ElementaryTypeName", "src": "1190:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 2019, "length": null, "nodeType": "ArrayTypeName", "src": "1190:9:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2022, "name": "_threshold", "nodeType": "VariableDeclaration", "scope": 2088, "src": "1210:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 2021, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1210:5:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "1189:38:18" }, "payable": false, "returnParameters": { "id": 2024, "nodeType": "ParameterList", "parameters": [], "src": "1247:0:18" }, "scope": 2234, "src": "1175:494:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2111, "nodeType": "Block", "src": "1866:97:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2099, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "1884:21:18", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2096, "name": "isExecuted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2000, "src": "1885:10:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" } }, "id": 2098, "indexExpression": { "argumentTypes": null, "id": 2097, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2090, "src": "1896:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1885:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2095, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "1876:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2100, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1876:30:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2101, "nodeType": "ExpressionStatement", "src": "1876:30:18" }, { "expression": { "argumentTypes": null, "id": 2109, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2102, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2006, "src": "1916:11:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2106, "indexExpression": { "argumentTypes": null, "id": 2103, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2090, "src": "1928:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1916:21:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2107, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2104, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "1938:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2105, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1938:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "1916:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2108, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1952:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1916:40:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2110, "nodeType": "ExpressionStatement", "src": "1916:40:18" } ] }, "documentation": "@dev Allows a friend to confirm a Safe transaction.\n @param dataHash Safe transaction hash.", "id": 2112, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 2093, "modifierName": { "argumentTypes": null, "id": 2092, "name": "onlyFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2017, "src": "1851:10:18", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1851:10:18" } ], "name": "confirmTransaction", "nodeType": "FunctionDefinition", "parameters": { "id": 2091, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2090, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2112, "src": "1810:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2089, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1810:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "1809:18:18" }, "payable": false, "returnParameters": { "id": 2094, "nodeType": "ParameterList", "parameters": [], "src": "1866:0:18" }, "scope": 2234, "src": "1782:181:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2177, "nodeType": "Block", "src": "2393:512:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2122, "name": "isFriend", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1996, "src": "2475:8:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2125, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2123, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2598, "src": "2484:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2124, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2484:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2475:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2121, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2467:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2126, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2467:29:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2127, "nodeType": "ExpressionStatement", "src": "2467:29:18" }, { "assignments": [ 2129 ], "declarations": [ { "constant": false, "id": 2129, "name": "data", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2506:17:18", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2128, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "2506:5:18", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "id": 2137, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "737761704f776e657228616464726573732c616464726573732c6164647265737329", "id": 2132, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2550:36:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_e318b52b9bee2870ac7ee0af86866eb2e8f9569b34de6028eb487e7983ba6df8", "typeString": "literal_string \"swapOwner(address,address,address)\"" }, "value": "swapOwner(address,address,address)" }, { "argumentTypes": null, "id": 2133, "name": "prevOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2114, "src": "2588:9:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 2134, "name": "oldOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2116, "src": "2599:8:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 2135, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2118, "src": "2609:8:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_e318b52b9bee2870ac7ee0af86866eb2e8f9569b34de6028eb487e7983ba6df8", "typeString": "literal_string \"swapOwner(address,address,address)\"" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "expression": { "argumentTypes": null, "id": 2130, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2585, "src": "2526:3:18", "typeDescriptions": { "typeIdentifier": "t_magic_abi", "typeString": "abi" } }, "id": 2131, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "encodeWithSignature", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2526:23:18", "typeDescriptions": { "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$", "typeString": "function (string memory) pure returns (bytes memory)" } }, "id": 2136, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2526:92:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, "nodeType": "VariableDeclarationStatement", "src": "2506:112:18" }, { "assignments": [ 2139 ], "declarations": [ { "constant": false, "id": 2139, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2628:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2138, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2628:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "id": 2143, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2141, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "2659:4:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2140, "name": "getDataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2233, "src": "2647:11:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 2142, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2647:17:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "VariableDeclarationStatement", "src": "2628:36:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2148, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "2682:21:18", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2145, "name": "isExecuted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2000, "src": "2683:10:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" } }, "id": 2147, "indexExpression": { "argumentTypes": null, "id": 2146, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2139, "src": "2694:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2683:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2144, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2674:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2149, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2674:30:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2150, "nodeType": "ExpressionStatement", "src": "2674:30:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2153, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2139, "src": "2751:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 2152, "name": "isConfirmedByRequiredFriends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2221, "src": "2722:28:18", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$", "typeString": "function (bytes32) view returns (bool)" } }, "id": 2154, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2722:38:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2151, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2714:7:18", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 2155, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2714:47:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2156, "nodeType": "ExpressionStatement", "src": "2714:47:18" }, { "expression": { "argumentTypes": null, "id": 2161, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2157, "name": "isExecuted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2000, "src": "2771:10:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$", "typeString": "mapping(bytes32 => bool)" } }, "id": 2159, "indexExpression": { "argumentTypes": null, "id": 2158, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2139, "src": "2782:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2771:20:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 2160, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "2794:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "2771:27:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2162, "nodeType": "ExpressionStatement", "src": "2771:27:18" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2167, "name": "manager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 717, "src": "2858:7:18", "typeDescriptions": { "typeIdentifier": "t_contract$_ModuleManager_$1100", "typeString": "contract ModuleManager" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_ModuleManager_$1100", "typeString": "contract ModuleManager" } ], "id": 2166, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2850:7:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 2168, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2850:16:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "hexValue": "30", "id": 2169, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2868:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, { "argumentTypes": null, "id": 2170, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2129, "src": "2871:4:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2171, "name": "Enum", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 30, "src": "2877:4:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Enum_$30_$", "typeString": "type(contract Enum)" } }, "id": 2172, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Operation", "nodeType": "MemberAccess", "referencedDeclaration": 29, "src": "2877:14:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_enum$_Operation_$29_$", "typeString": "type(enum Enum.Operation)" } }, "id": 2173, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Call", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2877:19:18", "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": 2164, "name": "manager", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 717, "src": "2816:7:18", "typeDescriptions": { "typeIdentifier": "t_contract$_ModuleManager_$1100", "typeString": "contract ModuleManager" } }, "id": 2165, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "execTransactionFromModule", "nodeType": "MemberAccess", "referencedDeclaration": 927, "src": "2816:33:18", "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": 2174, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2816:81:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 2163, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 2601, 2602 ], "referencedDeclaration": 2601, "src": "2808:7:18", "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": "2808:90:18", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2176, "nodeType": "ExpressionStatement", "src": "2808:90:18" } ] }, "documentation": "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param prevOwner Owner that pointed to the owner to be replaced in the linked list\n @param oldOwner Owner address to be replaced.\n @param newOwner New owner address.\n @return Returns if transaction can be executed.", "id": 2178, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "recoverAccess", "nodeType": "FunctionDefinition", "parameters": { "id": 2119, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2114, "name": "prevOwner", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2319:17:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2113, "name": "address", "nodeType": "ElementaryTypeName", "src": "2319:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2116, "name": "oldOwner", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2338:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2115, "name": "address", "nodeType": "ElementaryTypeName", "src": "2338:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2118, "name": "newOwner", "nodeType": "VariableDeclaration", "scope": 2178, "src": "2356:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2117, "name": "address", "nodeType": "ElementaryTypeName", "src": "2356:7:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "2318:55:18" }, "payable": false, "returnParameters": { "id": 2120, "nodeType": "ParameterList", "parameters": [], "src": "2393:0:18" }, "scope": 2234, "src": "2296:609:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 2220, "nodeType": "Block", "src": "3177:294:18", "statements": [ { "assignments": [], "declarations": [ { "constant": false, "id": 2186, "name": "confirmationCount", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3187:25:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2185, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3187:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2187, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "3187:25:18" }, { "body": { "id": 2216, "nodeType": "Block", "src": "3267:176:18", "statements": [ { "condition": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2199, "name": "isConfirmed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2006, "src": "3285:11:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(bytes32 => mapping(address => bool))" } }, "id": 2201, "indexExpression": { "argumentTypes": null, "id": 2200, "name": "dataHash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2180, "src": "3297:8:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3285:21:18", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 2205, "indexExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2202, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1992, "src": "3307:7:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2204, "indexExpression": { "argumentTypes": null, "id": 2203, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2189, "src": "3315:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3307:10:18", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3285:33:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2209, "nodeType": "IfStatement", "src": "3281:74:18", "trueBody": { "expression": { "argumentTypes": null, "id": 2207, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3336:19:18", "subExpression": { "argumentTypes": null, "id": 2206, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2186, "src": "3336:17:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2208, "nodeType": "ExpressionStatement", "src": "3336:19:18" } }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2212, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2210, "name": "confirmationCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2186, "src": "3373:17:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 2211, "name": "threshold", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1989, "src": "3394:9:18", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "3373:30:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 2215, "nodeType": "IfStatement", "src": "3369:63:18", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 2213, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3428:4:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 2184, "id": 2214, "nodeType": "Return", "src": "3421:11:18" } } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 2195, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 2192, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2189, "src": "3242:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2193, "name": "friends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1992, "src": "3246:7:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 2194, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "3246:14:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3242:18:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 2217, "initializationExpression": { "assignments": [ 2189 ], "declarations": [ { "constant": false, "id": 2189, "name": "i", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3227:9:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2188, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3227:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2191, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 2190, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3239:1:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "3227:13:18" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 2197, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "3262:3:18", "subExpression": { "argumentTypes": null, "id": 2196, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2189, "src": "3262:1:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2198, "nodeType": "ExpressionStatement", "src": "3262:3:18" }, "nodeType": "ForStatement", "src": "3222:221:18" }, { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 2218, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3459:5:18", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "functionReturnParameters": 2184, "id": 2219, "nodeType": "Return", "src": "3452:12:18" } ] }, "documentation": "@dev Returns if Safe transaction is a valid owner replacement transaction.\n @param dataHash Data hash.\n @return Confirmation status.", "id": 2221, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isConfirmedByRequiredFriends", "nodeType": "FunctionDefinition", "parameters": { "id": 2181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2180, "name": "dataHash", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3104:16:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2179, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3104:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3103:18:18" }, "payable": false, "returnParameters": { "id": 2184, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2183, "name": "", "nodeType": "VariableDeclaration", "scope": 2221, "src": "3167:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2182, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3167:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3166:6:18" }, "scope": 2234, "src": "3066:405:18", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 2232, "nodeType": "Block", "src": "3691:39:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2229, "name": "data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2223, "src": "3718:4:18", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 2228, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2592, "src": "3708:9:18", "typeDescriptions": { "typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$", "typeString": "function () pure returns (bytes32)" } }, "id": 2230, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3708:15:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "functionReturnParameters": 2227, "id": 2231, "nodeType": "Return", "src": "3701:22:18" } ] }, "documentation": "@dev Returns hash of data encoding owner replacement.\n @param data Data payload.\n @return Data hash.", "id": 2233, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getDataHash", "nodeType": "FunctionDefinition", "parameters": { "id": 2224, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2223, "name": "data", "nodeType": "VariableDeclaration", "scope": 2233, "src": "3621:10:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2222, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3621:5:18", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "3620:12:18" }, "payable": false, "returnParameters": { "id": 2227, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2226, "name": "", "nodeType": "VariableDeclaration", "scope": 2233, "src": "3678:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2225, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3678:7:18", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "3677:9:18" }, "scope": 2234, "src": "3600:130:18", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 2235, "src": "306:3426:18" } ], "src": "0:3733:18" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": { "4": { "events": {}, "links": {}, "address": "0xf1f0987c2fb0a6fc7ca75465e34318ff64fb24c6", "transactionHash": "0x9a1262d8d385b0ec7979a9141249dc703f74e98cf9c9f4060ad16ecd92f67dad" }, "1527316019334": { "events": {}, "links": {}, "address": "0x268518ad20d3faa34e233e8685d726ad2ec10b4b", "transactionHash": "0x3b404f9bf2e58e33eeaba336d431c1d819a719b0765dfe2a33831b97d9036a2e" }, "1527420696956": { "events": {}, "links": {}, "address": "0x99d67fc14c6d86cf065a844515916bfbb3ec764d", "transactionHash": "0x05db0b84de2c38f22917f5a5372ee159959c99ae966e9b07fb99c11a3e099d4d" } }, "schemaVersion": "2.0.0", "updatedAt": "2018-05-27T11:31:46.341Z" }