safe-react/safe-contracts/build/contracts/GnosisSafeTeamEdition.json

6967 lines
358 KiB
JSON
Raw Normal View History

2018-05-31 13:01:02 +00:00
{
"contractName": "GnosisSafeTeamEdition",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "_threshold",
"type": "uint256"
}
],
"name": "addOwnerWithThreshold",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_owners",
"type": "address[]"
},
{
"name": "_threshold",
"type": "uint256"
},
{
"name": "to",
"type": "address"
},
{
"name": "data",
"type": "bytes"
}
],
"name": "setup",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2018-05-31 13:01:02 +00:00
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"name": "isOwner",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
}
],
"name": "execTransactionFromModule",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "module",
"type": "address"
}
],
"name": "enableModule",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_threshold",
"type": "uint256"
2018-05-31 13:01:02 +00:00
}
],
"name": "changeThreshold",
2018-05-31 13:01:02 +00:00
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_masterCopy",
2018-05-31 13:01:02 +00:00
"type": "address"
}
],
"name": "changeMasterCopy",
2018-05-31 13:01:02 +00:00
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "SENTINEL_MODULES",
2018-05-31 13:01:02 +00:00
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "SENTINEL_OWNERS",
"outputs": [
2018-05-31 13:01:02 +00:00
{
"name": "",
2018-05-31 13:01:02 +00:00
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
2018-05-31 13:01:02 +00:00
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "bytes32"
},
{
"name": "",
"type": "address"
}
],
"name": "isApproved",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getOwners",
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "NAME",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getModules",
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "prevModule",
"type": "address"
},
{
"name": "module",
"type": "address"
}
],
"name": "disableModule",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "prevOwner",
"type": "address"
},
{
"name": "oldOwner",
"type": "address"
},
{
"name": "newOwner",
"type": "address"
}
],
"name": "swapOwner",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "bytes32"
}
],
"name": "isExecuted",
"outputs": [
{
"name": "",
"type": "uint256"
2018-05-31 13:01:02 +00:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getThreshold",
"outputs": [
{
"name": "",
"type": "uint256"
2018-05-31 13:01:02 +00:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "prevOwner",
"type": "address"
},
{
"name": "owner",
"type": "address"
},
{
"name": "_threshold",
"type": "uint256"
}
],
"name": "removeOwner",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2018-05-31 13:01:02 +00:00
{
"constant": true,
"inputs": [],
"name": "VERSION",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "newContract",
"type": "address"
}
],
"name": "ContractCreation",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
},
{
"name": "nonce",
"type": "uint256"
}
],
"name": "approveTransactionWithParameters",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
},
{
"name": "nonce",
"type": "uint256"
}
],
"name": "execTransactionIfApproved",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
},
{
"name": "nonce",
"type": "uint256"
}
],
"name": "getTransactionHash",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50613df2806100206000396000f300608060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630d582f131461012a5780630ec78d9e14610177578063153414fa1461024d57806324cd131f146102f75780632b500041146103a15780632f54bf6e14610467578063468721a7146104c2578063610b59251461057a578063694e80c3146105bd5780637de7edef146105ea57806385e332cd1461062d5780638cff635514610684578063a09e89f5146106db578063a0e67e2b14610740578063a3f4df7e146107ac578063b2494df31461083c578063e009cfde146108a8578063e318b52b1461090b578063e52cb36a1461098e578063e75235b8146109d3578063f8dc5dd9146109fe578063ffa1ad7414610a6b575b005b34801561013657600080fd5b50610175600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610afb565b005b34801561018357600080fd5b5061024b6004803603810190808035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437820191505050505050919291929080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610f01565b005b34801561025957600080fd5b506102f5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610f1b565b005b34801561030357600080fd5b5061039f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050611138565b005b3480156103ad57600080fd5b50610449600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190803590602001909291905050506112db565b60405180826000191660001916815260200191505060405180910390f35b34801561047357600080fd5b506104a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611563565b604051808215151515815260200191505060405180910390f35b3480156104ce57600080fd5b50610560600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291905050506115e5565b604051808215151515815260200191505060405180910390f35b34801561058657600080fd5b506105bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611711565b005b3480156105c957600080fd5b506105e860048036038101908080359060200190929190505050611aef565b005b3480156105f657600080fd5b5061062b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d01565b005b34801561063957600080fd5b50610642611ec2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561069057600080fd5b50610699611ec7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106e757600080fd5b5061072a6004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ecc565b6040518082815260200191505060405180910390f35b34801561074c57600080fd5b50610755611ef1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561079857808201518184015260208101905061077d565b505050509050019250505060405180910390f35b3480156107b857600080fd5b506107c161208c565b604051808060200182810382528381815181526020
"deployedBytecode": "0x608060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630d582f131461012a5780630ec78d9e14610177578063153414fa1461024d57806324cd131f146102f75780632b500041146103a15780632f54bf6e14610467578063468721a7146104c2578063610b59251461057a578063694e80c3146105bd5780637de7edef146105ea57806385e332cd1461062d5780638cff635514610684578063a09e89f5146106db578063a0e67e2b14610740578063a3f4df7e146107ac578063b2494df31461083c578063e009cfde146108a8578063e318b52b1461090b578063e52cb36a1461098e578063e75235b8146109d3578063f8dc5dd9146109fe578063ffa1ad7414610a6b575b005b34801561013657600080fd5b50610175600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610afb565b005b34801561018357600080fd5b5061024b6004803603810190808035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437820191505050505050919291929080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610f01565b005b34801561025957600080fd5b506102f5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610f1b565b005b34801561030357600080fd5b5061039f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050611138565b005b3480156103ad57600080fd5b50610449600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190803590602001909291905050506112db565b60405180826000191660001916815260200191505060405180910390f35b34801561047357600080fd5b506104a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611563565b604051808215151515815260200191505060405180910390f35b3480156104ce57600080fd5b50610560600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291905050506115e5565b604051808215151515815260200191505060405180910390f35b34801561058657600080fd5b506105bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611711565b005b3480156105c957600080fd5b506105e860048036038101908080359060200190929190505050611aef565b005b3480156105f657600080fd5b5061062b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d01565b005b34801561063957600080fd5b50610642611ec2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561069057600080fd5b50610699611ec7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106e757600080fd5b5061072a6004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ecc565b6040518082815260200191505060405180910390f35b34801561074c57600080fd5b50610755611ef1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561079857808201518184015260208101905061077d565b505050509050019250505060405180910390f35b3480156107b857600080fd5b506107c161208c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108015780820151
"sourceMap": "272:4068:4:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;272:4068:4;;;;;;;",
2018-06-29 11:23:01 +00:00
"deployedSourceMap": "272:4068:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2093:595:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2093:595:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;693:303:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;693:303:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1266:638:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1266:638:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2346:618;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2346:618:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4009:329;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4009:329:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5613:129:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5613:129:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2841:429:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2841:429:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1311:459;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1311:459:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;5087:399:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5087:399:11;;;;;;;;;;;;;;;;;;;;;;;;;;626:248:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:248:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;499:55:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;499:55:9;;;;;;;;;;;;;;;;;;;;;;;;;;;287:54:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;287:54:11;;;;;;;;;;;;;;;;;;;;;;;;;;;770:66:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;770:66:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5824:458:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5824:458:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;5824:458:11;;;;;;;;;;;;;;;;;336:56:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;336:56:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;336:56:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4794:738:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4794:738:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;4794:738:9;;;;;;;;;;;;;;;;;2031:474;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2031:474:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4147:751:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4147:751:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;536:46:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;536:46:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5492:115:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5492:115:11;;;;;;;;;;;;;;;;;;;;;;;3030:783;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3030:783:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;398:40:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;398:40:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;398:40:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2093:595:11;244:4:16;222:27;;:10;:27;;;214:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2265:1:11;2256:5;:10;;;;:38;;;;;337:3;2270:24;;:5;:24;;;;2256:38;2248:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2404:1;2387:6;:13;2394:5;2387:13;;;;;;;;;;;;;;;;;;;;;;;;;:18;;;2379:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2463:6;:23;337:3;2463:23;;;;;;;;;;;;;;;;;;;;;;;;;2447:6;:13;2454:5;2447:13;;;;;;;;;;;;;;;;:39;;;;;;;;;;;;;;;;;;2522:5;2496:6;:23;337:3;2496:23;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;2537:10;;:12;;;;;;;;;;;;;2630:10;2617:9;;:23;;2613:68;;;2654:27;2670:10;2654:15;:27::i;:::-;2613:68;2093:595;;:::o;693:303:2:-;800:32;812:7;821:10;800:11;:32::i;:::-;967:22;980:2;984:4;967:12;:22::i;:::-;693:303;;;;:::o;1266:638:4:-;1605:23;1567:1;1545:6;:18;1552:10;1545:18;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;;1537:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
"source": "pragma solidity 0.4.24;\nimport \"./GnosisSafe.sol\";\nimport \"./MasterCopy.sol\";\n\n\n/// @title Gnosis Safe Team Edition - A multisignature wallet with support for confirmations.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract GnosisSafeTeamEdition is MasterCopy, GnosisSafe {\n\n string public constant NAME = \"Gnosis Safe Team Edition\";\n string public constant VERSION = \"0.0.1\";\n\n // isExecuted mapping allows to check if a transaction (by hash) was already executed.\n mapping (bytes32 => uint256) public isExecuted;\n\n // isApproved mapping allows to check if a transaction (by hash) was confirmed by an owner.\n // uint256 is used to optimize the generated assembly. if 0 then false else true\n mapping (bytes32 => mapping(address => uint256)) public isApproved;\n\n /// @dev Allows to confirm a Safe transaction with a regular transaction.\n /// This can only be done from an owner address.\n /// @param to Destination address of Safe transaction.\n /// @param value Ether value of Safe transaction.\n /// @param data Data payload of Safe transaction.\n /// @param operation Operation type of Safe transaction.\n /// @param nonce Nonce used for this Safe transaction.\n function approveTransactionWithParameters(\n address to, \n uint256 value, \n bytes data, \n Enum.Operation operation, \n uint256 nonce\n )\n public\n {\n // Only Safe owners are allowed to confirm Safe transactions.\n require(owners[msg.sender] != 0, \"Sender is not an owner\");\n bytes32 transactionHash = getTransactionHash(to, value, data, operation, nonce);\n // It should not be possible to confirm an executed transaction\n require(isExecuted[transactionHash] == 0, \"Safe transaction already executed\");\n isApproved[transactionHash][msg.sender] = 1;\n }\n\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners. If the sender is an owner this is automatically confirmed.\n /// @param to Destination address of Safe transaction.\n /// @param value Ether value of Safe transaction.\n /// @param data Data payload of Safe transaction.\n /// @param operation Operation type of Safe transaction.\n /// @param nonce Nonce used for this Safe transaction.\n function execTransactionIfApproved(\n address to, \n uint256 value, \n bytes data, \n Enum.Operation operation, \n uint256 nonce\n )\n public\n {\n bytes32 transactionHash = getTransactionHash(to, value, data, operation, nonce);\n require(isExecuted[transactionHash] == 0, \"Safe transaction already executed\");\n checkAndClearConfirmations(transactionHash);\n // Mark as executed and execute transaction.\n isExecuted[transactionHash] = 1;\n require(execute(to, value, data, operation, gasleft()), \"Could not execute safe transaction\");\n }\n\n function checkAndClearConfirmations(bytes32 transactionHash)\n internal\n {\n mapping(address => uint256) approvals = isApproved[transactionHash];\n uint256 confirmations = 0;\n // Validate threshold is reached.\n address currentOwner = owners[SENTINEL_OWNERS];\n while (currentOwner != SENTINEL_OWNERS) {\n bool ownerConfirmed = approvals[currentOwner] != 0;\n if(currentOwner == msg.sender || ownerConfirmed) {\n if (ownerConfirmed) {\n approvals[currentOwner] = 0;\n }\n confirmations ++;\n }\n currentOwner = owners[currentOwner];\n }\n require(confirmations >= threshold, \"Not enough confirmations\");\n }\n\n /// @dev Returns hash to be signed by owners.\n /// @param to Destination address.\n /// @param value Ether value.\n /// @param data Data payload.\n /// @param operation Operation type.\n /// @param nonce Transaction nonce.\n
2018-05-31 13:01:02 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafeTeamEdition.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafeTeamEdition.sol",
"exportedSymbols": {
"GnosisSafeTeamEdition": [
605
2018-05-31 13:01:02 +00:00
]
},
"id": 606,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
"id": 371,
2018-05-31 13:01:02 +00:00
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:4"
2018-05-31 13:01:02 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafe.sol",
"file": "./GnosisSafe.sol",
"id": 372,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 606,
"sourceUnit": 64,
"src": "24:26:4",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"file": "./MasterCopy.sol",
"id": 373,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 606,
"sourceUnit": 633,
"src": "51:26:4",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 374,
2018-05-31 13:01:02 +00:00
"name": "MasterCopy",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 632,
"src": "306:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_MasterCopy_$632",
2018-05-31 13:01:02 +00:00
"typeString": "contract MasterCopy"
}
},
"id": 375,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
"src": "306:10:4"
2018-05-31 13:01:02 +00:00
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 376,
2018-05-31 13:01:02 +00:00
"name": "GnosisSafe",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 63,
"src": "318:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_GnosisSafe_$63",
2018-05-31 13:01:02 +00:00
"typeString": "contract GnosisSafe"
}
},
"id": 377,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
"src": "318:10:4"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
63,
632,
2018-06-29 11:23:01 +00:00
2232,
2888,
3065
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Gnosis Safe Team Edition - A multisignature wallet with support for confirmations.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
"id": 605,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
605,
63,
2018-06-29 11:23:01 +00:00
2888,
2232,
632,
2018-06-29 11:23:01 +00:00
3065
2018-05-31 13:01:02 +00:00
],
"name": "GnosisSafeTeamEdition",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 380,
2018-05-31 13:01:02 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "336:56:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 378,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "336:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "476e6f7369732053616665205465616d2045646974696f6e",
"id": 379,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "366:26:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_69b1cb372bb47730ba653a0e87363aa6de8337d13ed5852e6fe3ba4e2004a81e",
"typeString": "literal_string \"Gnosis Safe Team Edition\""
},
"value": "Gnosis Safe Team Edition"
},
"visibility": "public"
},
{
"constant": true,
"id": 383,
2018-05-31 13:01:02 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "398:40:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 381,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "398:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
"id": 382,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "431:7:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": false,
"id": 387,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "536:46:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"typeName": {
"id": 386,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 384,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "545:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "536:28:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"valueType": {
"id": 385,
"name": "uint256",
2018-05-31 13:01:02 +00:00
"nodeType": "ElementaryTypeName",
"src": "556:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 393,
2018-05-31 13:01:02 +00:00
"name": "isApproved",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "770:66:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
},
"typeName": {
"id": 392,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 388,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "779:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "770:48:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
},
"valueType": {
"id": 391,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 389,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "798:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "790:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
"id": 390,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "809:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 444,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1457:447:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 412,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 407,
2018-05-31 13:01:02 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2494,
"src": "1545:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 410,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 408,
2018-05-31 13:01:02 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4036,
"src": "1552:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 409,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1552:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1545:18:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 411,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1567:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1545:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "53656e646572206973206e6f7420616e206f776e6572",
"id": 413,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1570:24:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b22a5f47ffb62866097c90f90b5b53f76973769c84a10c62e12a07eb2ba1ef4a",
"typeString": "literal_string \"Sender is not an owner\""
},
"value": "Sender is not an owner"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b22a5f47ffb62866097c90f90b5b53f76973769c84a10c62e12a07eb2ba1ef4a",
"typeString": "literal_string \"Sender is not an owner\""
}
],
"id": 406,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "1537:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 414,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1537:58:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 415,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1537:58:4"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
417
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 417,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1605:23:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 416,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1605:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 425,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 419,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 395,
"src": "1650:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 420,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 397,
"src": "1654:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 421,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 399,
"src": "1661:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 422,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 401,
"src": "1667:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 423,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 403,
"src": "1678:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 418,
2018-05-31 13:01:02 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 604,
"src": "1631:18:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
}
},
"id": 424,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1631:53:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "1605:79:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 431,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-31 13:01:02 +00:00
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 427,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 387,
"src": "1774:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
"id": 429,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 428,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 417,
"src": "1785:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1774:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 430,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1805:1:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1774:32:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
"id": 432,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1808:35:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
},
"value": "Safe transaction already executed"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
}
],
"id": 426,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "1766:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 433,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1766:78:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 434,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1766:78:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"id": 442,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 435,
2018-05-31 13:01:02 +00:00
"name": "isApproved",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 393,
"src": "1854:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
}
},
"id": 439,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 436,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 417,
"src": "1865:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1854:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 440,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 437,
2018-05-31 13:01:02 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4036,
"src": "1882:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 438,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1882:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1854:39:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 441,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1896:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "1854:43:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 443,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1854:43:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Allows to confirm a Safe transaction with a regular transaction.\n This can only be done from an owner address.\n @param to Destination address of Safe transaction.\n @param value Ether value of Safe transaction.\n @param data Data payload of Safe transaction.\n @param operation Operation type of Safe transaction.\n @param nonce Nonce used for this Safe transaction.",
"id": 445,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approveTransactionWithParameters",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 404,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 395,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1317:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 394,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1317:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 397,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1338:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 396,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1338:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 399,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1362:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 398,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1362:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 401,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1383:24:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 400,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "1383:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 403,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1418:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 402,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1418:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1307:130:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 405,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "1457:0:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "1266:638:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 499,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "2530:434:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
459
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 459,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2540:23:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 458,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2540:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 467,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 461,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 447,
"src": "2585:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 462,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 449,
"src": "2589:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 463,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 451,
"src": "2596:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 464,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 453,
"src": "2602:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 465,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 455,
"src": "2613:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 460,
2018-05-31 13:01:02 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 604,
"src": "2566:18:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
}
},
"id": 466,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2566:53:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2540:79:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 473,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-31 13:01:02 +00:00
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 469,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 387,
"src": "2637:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
"id": 471,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 470,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 459,
"src": "2648:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2637:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 472,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2668:1:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "2637:32:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
"id": 474,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2671:35:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
},
"value": "Safe transaction already executed"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
}
],
"id": 468,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "2629:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 475,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2629:78:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 476,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2629:78:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 478,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 459,
"src": "2744:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 477,
2018-05-31 13:01:02 +00:00
"name": "checkAndClearConfirmations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 570,
"src": "2717:26:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$returns$__$",
"typeString": "function (bytes32)"
}
},
"id": 479,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2717:43:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 480,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2717:43:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"id": 485,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 481,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 387,
"src": "2823:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
"id": 483,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 482,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 459,
"src": "2834:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "2823:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 484,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
2018-05-31 13:01:02 +00:00
"lValueRequested": false,
"nodeType": "Literal",
"src": "2853:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
2018-05-31 13:01:02 +00:00
},
"value": "1"
2018-05-31 13:01:02 +00:00
},
"src": "2823:31:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"id": 486,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2823:31:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 489,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 447,
"src": "2880:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 490,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 449,
"src": "2884:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 491,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 451,
"src": "2891:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 492,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 453,
"src": "2897:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 493,
2018-05-31 13:01:02 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4029,
"src": "2908:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 494,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2908:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 488,
2018-05-31 13:01:02 +00:00
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2121,
"src": "2872:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 495,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2872:46:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f7420657865637574652073616665207472616e73616374696f6e",
"id": 496,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2920:36:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_d12b254798790cac45e0b54201b0ecf8f3257f9e4c1cfc4633e272006616c878",
"typeString": "literal_string \"Could not execute safe transaction\""
},
"value": "Could not execute safe transaction"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_d12b254798790cac45e0b54201b0ecf8f3257f9e4c1cfc4633e272006616c878",
"typeString": "literal_string \"Could not execute safe transaction\""
}
],
"id": 487,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "2864:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 497,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2864:93:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 498,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2864:93:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Allows to execute a Safe transaction confirmed by required number of owners. If the sender is an owner this is automatically confirmed.\n @param to Destination address of Safe transaction.\n @param value Ether value of Safe transaction.\n @param data Data payload of Safe transaction.\n @param operation Operation type of Safe transaction.\n @param nonce Nonce used for this Safe transaction.",
"id": 500,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execTransactionIfApproved",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 456,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 447,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2390:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 446,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2390:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 449,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2411:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 448,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2411:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 451,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2435:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 450,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2435:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 453,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2456:24:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 452,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "2456:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 455,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2491:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 454,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2491:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2380:130:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 457,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "2530:0:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "2346:618:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 569,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3052:679:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
508
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 508,
2018-05-31 13:01:02 +00:00
"name": "approvals",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3062:37:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"typeName": {
"id": 507,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 505,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3070:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "3062:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
"id": 506,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3081:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
"value": null,
"visibility": "internal"
}
],
"id": 512,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 509,
2018-05-31 13:01:02 +00:00
"name": "isApproved",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 393,
"src": "3102:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
}
},
"id": 511,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 510,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 502,
"src": "3113:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3102:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3062:67:4"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
514
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 514,
2018-05-31 13:01:02 +00:00
"name": "confirmations",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3139:21:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 513,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3139:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 516,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
"id": 515,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3163:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
"src": "3139:25:4"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
518
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 518,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3216:20:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 517,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3216:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 522,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 519,
2018-05-31 13:01:02 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2494,
"src": "3239:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 521,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 520,
2018-05-31 13:01:02 +00:00
"name": "SENTINEL_OWNERS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2490,
"src": "3246:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3239:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3216:46:4"
2018-05-31 13:01:02 +00:00
},
{
"body": {
"id": 560,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3312:340:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
527
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 527,
2018-05-31 13:01:02 +00:00
"name": "ownerConfirmed",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3326:19:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 526,
2018-05-31 13:01:02 +00:00
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3326:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 533,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 532,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 528,
2018-05-31 13:01:02 +00:00
"name": "approvals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 508,
"src": "3348:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 530,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 529,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3358:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3348:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 531,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3375:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "3348:28:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3326:50:4"
2018-05-31 13:01:02 +00:00
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 539,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 537,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 534,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3393:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 535,
2018-05-31 13:01:02 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4036,
"src": "3409:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 536,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "3409:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "3393:26:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"id": 538,
2018-05-31 13:01:02 +00:00
"name": "ownerConfirmed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 527,
"src": "3423:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3393:44:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 553,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "3390:203:4",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 552,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3439:154:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"id": 540,
2018-05-31 13:01:02 +00:00
"name": "ownerConfirmed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 527,
"src": "3461:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 548,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "3457:88:4",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 547,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3477:68:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 545,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 541,
2018-05-31 13:01:02 +00:00
"name": "approvals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 508,
"src": "3499:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 543,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 542,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3509:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "3499:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
"id": 544,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3525:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "3499:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 546,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3499:27:4"
2018-05-31 13:01:02 +00:00
}
]
}
},
{
"expression": {
"argumentTypes": null,
"id": 550,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "3562:16:4",
2018-05-31 13:01:02 +00:00
"subExpression": {
"argumentTypes": null,
"id": 549,
2018-05-31 13:01:02 +00:00
"name": "confirmations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 514,
"src": "3562:13:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 551,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3562:16:4"
2018-05-31 13:01:02 +00:00
}
]
}
},
{
"expression": {
"argumentTypes": null,
"id": 558,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 554,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3606:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 555,
2018-05-31 13:01:02 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2494,
"src": "3621:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 557,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 556,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3628:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3621:20:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "3606:35:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 559,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3606:35:4"
2018-05-31 13:01:02 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 525,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 523,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3279:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"id": 524,
2018-05-31 13:01:02 +00:00
"name": "SENTINEL_OWNERS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2490,
"src": "3295:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "3279:31:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 561,
2018-05-31 13:01:02 +00:00
"nodeType": "WhileStatement",
"src": "3272:380:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 565,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 563,
2018-05-31 13:01:02 +00:00
"name": "confirmations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 514,
"src": "3669:13:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"argumentTypes": null,
"id": 564,
2018-05-31 13:01:02 +00:00
"name": "threshold",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2498,
"src": "3686:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"src": "3669:26:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4e6f7420656e6f75676820636f6e6669726d6174696f6e73",
"id": 566,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3697:26:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b345da2aaad39251196728cc7926bed93e890843c2a47c2cdd1122427d828094",
"typeString": "literal_string \"Not enough confirmations\""
},
"value": "Not enough confirmations"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b345da2aaad39251196728cc7926bed93e890843c2a47c2cdd1122427d828094",
"typeString": "literal_string \"Not enough confirmations\""
}
],
"id": 562,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "3661:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 567,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3661:63:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 568,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3661:63:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": null,
"id": 570,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "checkAndClearConfirmations",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 503,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 502,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3006:23:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 501,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3006:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3005:25:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 504,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "3052:0:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "2970:761:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 603,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "4225:113:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30783139",
"id": 589,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4274:4:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
},
"value": "0x19"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
}
],
"id": 588,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4269:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 590,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4269:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 592,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4286:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 591,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4281:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 593,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4281:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"id": 594,
2018-05-31 13:01:02 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4073,
"src": "4290:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$605",
2018-05-31 13:01:02 +00:00
"typeString": "contract GnosisSafeTeamEdition"
}
},
{
"argumentTypes": null,
"id": 595,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 572,
"src": "4296:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 596,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 574,
"src": "4300:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 597,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 576,
"src": "4307:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 598,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 578,
"src": "4313:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 599,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 580,
"src": "4324:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$605",
2018-05-31 13:01:02 +00:00
"typeString": "contract GnosisSafeTeamEdition"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 586,
2018-05-31 13:01:02 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4023,
"src": "4252:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 587,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "4252:16:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
},
"id": 600,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4252:78:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 585,
2018-05-31 13:01:02 +00:00
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4030,
"src": "4242:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 601,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4242:89:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"functionReturnParameters": 584,
"id": 602,
2018-05-31 13:01:02 +00:00
"nodeType": "Return",
"src": "4235:96:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Returns hash to be signed by owners.\n @param to Destination address.\n @param value Ether value.\n @param data Data payload.\n @param operation Operation type.\n @param nonce Transaction nonce.\n @return Transaction hash.",
"id": 604,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTransactionHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 581,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 572,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4046:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 571,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4046:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 574,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4067:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 573,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4067:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 576,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4091:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 575,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "4091:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 578,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4112:24:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 577,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "4112:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 580,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4147:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 579,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4147:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4036:130:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 584,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 583,
2018-05-31 13:01:02 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4212:7:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 582,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "4212:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4211:9:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "4009:329:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 606,
"src": "272:4068:4"
2018-05-31 13:01:02 +00:00
}
],
"src": "0:4341:4"
2018-05-31 13:01:02 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafeTeamEdition.sol",
"exportedSymbols": {
"GnosisSafeTeamEdition": [
605
2018-05-31 13:01:02 +00:00
]
},
"id": 606,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
"id": 371,
2018-05-31 13:01:02 +00:00
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:4"
2018-05-31 13:01:02 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafe.sol",
"file": "./GnosisSafe.sol",
"id": 372,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 606,
"sourceUnit": 64,
"src": "24:26:4",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"file": "./MasterCopy.sol",
"id": 373,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 606,
"sourceUnit": 633,
"src": "51:26:4",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 374,
2018-05-31 13:01:02 +00:00
"name": "MasterCopy",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 632,
"src": "306:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_MasterCopy_$632",
2018-05-31 13:01:02 +00:00
"typeString": "contract MasterCopy"
}
},
"id": 375,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
"src": "306:10:4"
2018-05-31 13:01:02 +00:00
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 376,
2018-05-31 13:01:02 +00:00
"name": "GnosisSafe",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 63,
"src": "318:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_GnosisSafe_$63",
2018-05-31 13:01:02 +00:00
"typeString": "contract GnosisSafe"
}
},
"id": 377,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
"src": "318:10:4"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
63,
632,
2018-06-29 11:23:01 +00:00
2232,
2888,
3065
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Gnosis Safe Team Edition - A multisignature wallet with support for confirmations.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
"id": 605,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
605,
63,
2018-06-29 11:23:01 +00:00
2888,
2232,
632,
2018-06-29 11:23:01 +00:00
3065
2018-05-31 13:01:02 +00:00
],
"name": "GnosisSafeTeamEdition",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 380,
2018-05-31 13:01:02 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "336:56:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 378,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "336:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "476e6f7369732053616665205465616d2045646974696f6e",
"id": 379,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "366:26:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_69b1cb372bb47730ba653a0e87363aa6de8337d13ed5852e6fe3ba4e2004a81e",
"typeString": "literal_string \"Gnosis Safe Team Edition\""
},
"value": "Gnosis Safe Team Edition"
},
"visibility": "public"
},
{
"constant": true,
"id": 383,
2018-05-31 13:01:02 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "398:40:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 381,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "398:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
"id": 382,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "431:7:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": false,
"id": 387,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "536:46:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"typeName": {
"id": 386,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 384,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "545:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "536:28:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"valueType": {
"id": 385,
"name": "uint256",
2018-05-31 13:01:02 +00:00
"nodeType": "ElementaryTypeName",
"src": "556:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 393,
2018-05-31 13:01:02 +00:00
"name": "isApproved",
"nodeType": "VariableDeclaration",
"scope": 605,
"src": "770:66:4",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
},
"typeName": {
"id": 392,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 388,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "779:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "770:48:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
},
"valueType": {
"id": 391,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 389,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "798:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "790:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
"id": 390,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "809:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 444,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1457:447:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 412,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 407,
2018-05-31 13:01:02 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2494,
"src": "1545:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 410,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 408,
2018-05-31 13:01:02 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4036,
"src": "1552:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 409,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1552:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1545:18:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 411,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1567:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1545:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "53656e646572206973206e6f7420616e206f776e6572",
"id": 413,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1570:24:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b22a5f47ffb62866097c90f90b5b53f76973769c84a10c62e12a07eb2ba1ef4a",
"typeString": "literal_string \"Sender is not an owner\""
},
"value": "Sender is not an owner"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b22a5f47ffb62866097c90f90b5b53f76973769c84a10c62e12a07eb2ba1ef4a",
"typeString": "literal_string \"Sender is not an owner\""
}
],
"id": 406,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "1537:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 414,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1537:58:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 415,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1537:58:4"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
417
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 417,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1605:23:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 416,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1605:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 425,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 419,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 395,
"src": "1650:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 420,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 397,
"src": "1654:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 421,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 399,
"src": "1661:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 422,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 401,
"src": "1667:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 423,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 403,
"src": "1678:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 418,
2018-05-31 13:01:02 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 604,
"src": "1631:18:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
}
},
"id": 424,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1631:53:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "1605:79:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 431,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-31 13:01:02 +00:00
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 427,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 387,
"src": "1774:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
"id": 429,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 428,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 417,
"src": "1785:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1774:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 430,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1805:1:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1774:32:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
"id": 432,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1808:35:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
},
"value": "Safe transaction already executed"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
}
],
"id": 426,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "1766:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 433,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1766:78:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 434,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1766:78:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"id": 442,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 435,
2018-05-31 13:01:02 +00:00
"name": "isApproved",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 393,
"src": "1854:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
}
},
"id": 439,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 436,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 417,
"src": "1865:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "1854:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 440,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 437,
2018-05-31 13:01:02 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4036,
"src": "1882:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 438,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1882:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "1854:39:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 441,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1896:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "1854:43:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 443,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1854:43:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Allows to confirm a Safe transaction with a regular transaction.\n This can only be done from an owner address.\n @param to Destination address of Safe transaction.\n @param value Ether value of Safe transaction.\n @param data Data payload of Safe transaction.\n @param operation Operation type of Safe transaction.\n @param nonce Nonce used for this Safe transaction.",
"id": 445,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approveTransactionWithParameters",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 404,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 395,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1317:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 394,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1317:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 397,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1338:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 396,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1338:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 399,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1362:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 398,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1362:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 401,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1383:24:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 400,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "1383:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 403,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 445,
"src": "1418:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 402,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1418:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1307:130:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 405,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "1457:0:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "1266:638:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 499,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "2530:434:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
459
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 459,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2540:23:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 458,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2540:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 467,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 461,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 447,
"src": "2585:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 462,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 449,
"src": "2589:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 463,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 451,
"src": "2596:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 464,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 453,
"src": "2602:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 465,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 455,
"src": "2613:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 460,
2018-05-31 13:01:02 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 604,
"src": "2566:18:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
}
},
"id": 466,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2566:53:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2540:79:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 473,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-31 13:01:02 +00:00
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 469,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 387,
"src": "2637:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
"id": 471,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 470,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 459,
"src": "2648:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2637:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 472,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2668:1:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "2637:32:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
"id": 474,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2671:35:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
},
"value": "Safe transaction already executed"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_78cc689035dd21cb903fbad8327952ddf83800cf1115919ff1ad2be36eed70db",
"typeString": "literal_string \"Safe transaction already executed\""
}
],
"id": 468,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "2629:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 475,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2629:78:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 476,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2629:78:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 478,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 459,
"src": "2744:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 477,
2018-05-31 13:01:02 +00:00
"name": "checkAndClearConfirmations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 570,
"src": "2717:26:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$returns$__$",
"typeString": "function (bytes32)"
}
},
"id": 479,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2717:43:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 480,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2717:43:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"id": 485,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 481,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 387,
"src": "2823:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
"id": 483,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 482,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 459,
"src": "2834:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "2823:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 484,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
2018-05-31 13:01:02 +00:00
"lValueRequested": false,
"nodeType": "Literal",
"src": "2853:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
2018-05-31 13:01:02 +00:00
},
"value": "1"
2018-05-31 13:01:02 +00:00
},
"src": "2823:31:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"id": 486,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2823:31:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 489,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 447,
"src": "2880:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 490,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 449,
"src": "2884:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 491,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 451,
"src": "2891:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 492,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 453,
"src": "2897:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 493,
2018-05-31 13:01:02 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4029,
"src": "2908:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 494,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2908:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 488,
2018-05-31 13:01:02 +00:00
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2121,
"src": "2872:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 495,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2872:46:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f7420657865637574652073616665207472616e73616374696f6e",
"id": 496,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2920:36:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_d12b254798790cac45e0b54201b0ecf8f3257f9e4c1cfc4633e272006616c878",
"typeString": "literal_string \"Could not execute safe transaction\""
},
"value": "Could not execute safe transaction"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_d12b254798790cac45e0b54201b0ecf8f3257f9e4c1cfc4633e272006616c878",
"typeString": "literal_string \"Could not execute safe transaction\""
}
],
"id": 487,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "2864:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 497,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2864:93:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 498,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "2864:93:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Allows to execute a Safe transaction confirmed by required number of owners. If the sender is an owner this is automatically confirmed.\n @param to Destination address of Safe transaction.\n @param value Ether value of Safe transaction.\n @param data Data payload of Safe transaction.\n @param operation Operation type of Safe transaction.\n @param nonce Nonce used for this Safe transaction.",
"id": 500,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execTransactionIfApproved",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 456,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 447,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2390:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 446,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2390:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 449,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2411:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 448,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2411:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 451,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2435:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 450,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2435:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 453,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2456:24:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 452,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "2456:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 455,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 500,
"src": "2491:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 454,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2491:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2380:130:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 457,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "2530:0:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "2346:618:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 569,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3052:679:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
508
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 508,
2018-05-31 13:01:02 +00:00
"name": "approvals",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3062:37:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"typeName": {
"id": 507,
2018-05-31 13:01:02 +00:00
"keyType": {
"id": 505,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3070:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "3062:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
"id": 506,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3081:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
"value": null,
"visibility": "internal"
}
],
"id": 512,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 509,
2018-05-31 13:01:02 +00:00
"name": "isApproved",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 393,
"src": "3102:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(bytes32 => mapping(address => uint256))"
}
},
"id": 511,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 510,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 502,
"src": "3113:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3102:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3062:67:4"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
514
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 514,
2018-05-31 13:01:02 +00:00
"name": "confirmations",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3139:21:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 513,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3139:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 516,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
"id": 515,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3163:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
"src": "3139:25:4"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
518
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 518,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3216:20:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 517,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3216:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 522,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 519,
2018-05-31 13:01:02 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2494,
"src": "3239:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 521,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 520,
2018-05-31 13:01:02 +00:00
"name": "SENTINEL_OWNERS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2490,
"src": "3246:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3239:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3216:46:4"
2018-05-31 13:01:02 +00:00
},
{
"body": {
"id": 560,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3312:340:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
527
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
"id": 527,
2018-05-31 13:01:02 +00:00
"name": "ownerConfirmed",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3326:19:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 526,
2018-05-31 13:01:02 +00:00
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3326:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 533,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 532,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 528,
2018-05-31 13:01:02 +00:00
"name": "approvals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 508,
"src": "3348:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 530,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 529,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3358:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3348:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 531,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3375:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "3348:28:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3326:50:4"
2018-05-31 13:01:02 +00:00
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 539,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 537,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 534,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3393:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 535,
2018-05-31 13:01:02 +00:00
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4036,
"src": "3409:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 536,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "3409:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "3393:26:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"id": 538,
2018-05-31 13:01:02 +00:00
"name": "ownerConfirmed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 527,
"src": "3423:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3393:44:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 553,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "3390:203:4",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 552,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3439:154:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"id": 540,
2018-05-31 13:01:02 +00:00
"name": "ownerConfirmed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 527,
"src": "3461:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 548,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "3457:88:4",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 547,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "3477:68:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 545,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 541,
2018-05-31 13:01:02 +00:00
"name": "approvals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 508,
"src": "3499:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 543,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 542,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3509:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "3499:23:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
"id": 544,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3525:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "3499:27:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 546,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3499:27:4"
2018-05-31 13:01:02 +00:00
}
]
}
},
{
"expression": {
"argumentTypes": null,
"id": 550,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "3562:16:4",
2018-05-31 13:01:02 +00:00
"subExpression": {
"argumentTypes": null,
"id": 549,
2018-05-31 13:01:02 +00:00
"name": "confirmations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 514,
"src": "3562:13:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 551,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3562:16:4"
2018-05-31 13:01:02 +00:00
}
]
}
},
{
"expression": {
"argumentTypes": null,
"id": 558,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 554,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3606:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 555,
2018-05-31 13:01:02 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2494,
"src": "3621:6:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 557,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 556,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3628:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3621:20:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "3606:35:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 559,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3606:35:4"
2018-05-31 13:01:02 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 525,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 523,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 518,
"src": "3279:12:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"id": 524,
2018-05-31 13:01:02 +00:00
"name": "SENTINEL_OWNERS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2490,
"src": "3295:15:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "3279:31:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 561,
2018-05-31 13:01:02 +00:00
"nodeType": "WhileStatement",
"src": "3272:380:4"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 565,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 563,
2018-05-31 13:01:02 +00:00
"name": "confirmations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 514,
"src": "3669:13:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"argumentTypes": null,
"id": 564,
2018-05-31 13:01:02 +00:00
"name": "threshold",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 2498,
"src": "3686:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"src": "3669:26:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4e6f7420656e6f75676820636f6e6669726d6174696f6e73",
"id": 566,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3697:26:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b345da2aaad39251196728cc7926bed93e890843c2a47c2cdd1122427d828094",
"typeString": "literal_string \"Not enough confirmations\""
},
"value": "Not enough confirmations"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b345da2aaad39251196728cc7926bed93e890843c2a47c2cdd1122427d828094",
"typeString": "literal_string \"Not enough confirmations\""
}
],
"id": 562,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-06-29 11:23:01 +00:00
4039,
4040
2018-05-31 13:01:02 +00:00
],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4040,
"src": "3661:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 567,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3661:63:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 568,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "3661:63:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": null,
"id": 570,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "checkAndClearConfirmations",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 503,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 502,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "3006:23:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 501,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3006:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3005:25:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 504,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "3052:0:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "2970:761:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 603,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "4225:113:4",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30783139",
"id": 589,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4274:4:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
},
"value": "0x19"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
}
],
"id": 588,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4269:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 590,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4269:10:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 592,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4286:1:4",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 591,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4281:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 593,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4281:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"id": 594,
2018-05-31 13:01:02 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4073,
"src": "4290:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$605",
2018-05-31 13:01:02 +00:00
"typeString": "contract GnosisSafeTeamEdition"
}
},
{
"argumentTypes": null,
"id": 595,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 572,
"src": "4296:2:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 596,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 574,
"src": "4300:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 597,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 576,
"src": "4307:4:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 598,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 578,
"src": "4313:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 599,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 580,
"src": "4324:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$605",
2018-05-31 13:01:02 +00:00
"typeString": "contract GnosisSafeTeamEdition"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 586,
2018-05-31 13:01:02 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4023,
"src": "4252:3:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 587,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "4252:16:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
},
"id": 600,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4252:78:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 585,
2018-05-31 13:01:02 +00:00
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-06-29 11:23:01 +00:00
"referencedDeclaration": 4030,
"src": "4242:9:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 601,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4242:89:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"functionReturnParameters": 584,
"id": 602,
2018-05-31 13:01:02 +00:00
"nodeType": "Return",
"src": "4235:96:4"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Returns hash to be signed by owners.\n @param to Destination address.\n @param value Ether value.\n @param data Data payload.\n @param operation Operation type.\n @param nonce Transaction nonce.\n @return Transaction hash.",
"id": 604,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTransactionHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 581,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 572,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4046:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 571,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4046:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 574,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4067:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 573,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4067:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 576,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4091:10:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 575,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "4091:5:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 578,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4112:24:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 577,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 29,
"src": "4112:14:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 580,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4147:13:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 579,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4147:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4036:130:4"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 584,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 583,
2018-05-31 13:01:02 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 604,
"src": "4212:7:4",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 582,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "4212:7:4",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4211:9:4"
2018-05-31 13:01:02 +00:00
},
"scope": 605,
"src": "4009:329:4",
2018-05-31 13:01:02 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 606,
"src": "272:4068:4"
2018-05-31 13:01:02 +00:00
}
],
"src": "0:4341:4"
2018-05-31 13:01:02 +00:00
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {
2018-06-29 11:23:01 +00:00
"4": {
2018-06-26 11:48:05 +00:00
"events": {},
"links": {},
2018-06-29 11:23:01 +00:00
"address": "0x302d18608065ff4920d868690ed33156883c503e",
"transactionHash": "0xfc9db9588365ec18aaf1a6cc78a164a7cfcf7386272e273098ac307d8a92bbbc"
},
"1530013596495": {
"events": {},
"links": {},
"address": "0x148118e4ddffe5df4b451451d55be4530bfc9d3e",
"transactionHash": "0xb8ed579291e3ccad4c5beb93c32744d0cca11907f5a0c90cabb6d8ff84bb2031"
2018-07-02 10:12:59 +00:00
},
"1530525742205": {
"events": {},
"links": {},
"address": "0x70b94da9b269ca9c1580e7fb069fa465c3a88e0e",
"transactionHash": "0x7b929dca2948e3f48a96ca43d31a392f30f8ba4f51a778436c9df26006682054"
2018-07-03 11:14:01 +00:00
},
"1530611935189": {
"events": {},
"links": {},
"address": "0x47fdfa601a5df4e99ac374b05baeb36dd1fca288",
"transactionHash": "0x7b929dca2948e3f48a96ca43d31a392f30f8ba4f51a778436c9df26006682054"
2018-05-31 13:01:02 +00:00
}
},
2018-06-29 11:23:01 +00:00
"schemaVersion": "2.0.0",
2018-07-03 11:14:01 +00:00
"updatedAt": "2018-07-03T09:59:18.543Z"
2018-05-31 13:01:02 +00:00
}