6877 lines
352 KiB
JSON
6877 lines
352 KiB
JSON
|
{
|
||
|
"contractName": "GnosisSafeTeamEdition",
|
||
|
"abi": [
|
||
|
{
|
||
|
"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": "_masterCopy",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "changeMasterCopy",
|
||
|
"outputs": [],
|
||
|
"payable": false,
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"constant": true,
|
||
|
"inputs": [],
|
||
|
"name": "SENTINEL_MODULES",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"payable": false,
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"name": "prevOwner",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"name": "owner",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"name": "_threshold",
|
||
|
"type": "uint8"
|
||
|
}
|
||
|
],
|
||
|
"name": "removeOwner",
|
||
|
"outputs": [],
|
||
|
"payable": false,
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"constant": true,
|
||
|
"inputs": [],
|
||
|
"name": "SENTINEL_OWNERS",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"payable": false,
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"name": "_owners",
|
||
|
"type": "address[]"
|
||
|
},
|
||
|
{
|
||
|
"name": "_threshold",
|
||
|
"type": "uint8"
|
||
|
},
|
||
|
{
|
||
|
"name": "to",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"name": "data",
|
||
|
"type": "bytes"
|
||
|
}
|
||
|
],
|
||
|
"name": "setup",
|
||
|
"outputs": [],
|
||
|
"payable": false,
|
||
|
"stateMutability": "nonpayable",
|
||
|
"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": "_threshold",
|
||
|
"type": "uint8"
|
||
|
}
|
||
|
],
|
||
|
"name": "changeThreshold",
|
||
|
"outputs": [],
|
||
|
"payable": false,
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"name": "owner",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"name": "_threshold",
|
||
|
"type": "uint8"
|
||
|
}
|
||
|
],
|
||
|
"name": "addOwnerWithThreshold",
|
||
|
"outputs": [],
|
||
|
"payable": false,
|
||
|
"stateMutability": "nonpayable",
|
||
|
"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": "bool"
|
||
|
}
|
||
|
],
|
||
|
"payable": false,
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"constant": true,
|
||
|
"inputs": [],
|
||
|
"name": "getThreshold",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "",
|
||
|
"type": "uint8"
|
||
|
}
|
||
|
],
|
||
|
"payable": false,
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"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": "0x608060405234801561001057600080fd5b50613c6b806100206000396000f300608060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063153414fa1461012a57806324cd131f146101d45780632b5000411461027e5780632f54bf6e14610344578063468721a71461039f578063610b5925146104575780637de7edef1461049a57806385e332cd146104dd57806386040aa9146105345780638cff6355146105a4578063a04222e1146105fb578063a09e89f5146106d4578063a0e67e2b14610739578063a3f4df7e146107a5578063b2494df314610835578063b7f3358d146108a1578063b91a667f146108d1578063e009cfde14610921578063e318b52b14610984578063e52cb36a14610a07578063e75235b814610a50578063ffa1ad7414610a81575b005b34801561013657600080fd5b506101d2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610b11565b005b3480156101e057600080fd5b5061027c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610d39565b005b34801561028a57600080fd5b50610326600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610efa565b60405180826000191660001916815260200191505060405180910390f35b34801561035057600080fd5b50610385600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611182565b604051808215151515815260200191505060405180910390f35b3480156103ab57600080fd5b5061043d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190505050611204565b604051808215151515815260200191505060405180910390f35b34801561046357600080fd5b50610498600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611330565b005b3480156104a657600080fd5b506104db600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061170e565b005b3480156104e957600080fd5b506104f26118cf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561054057600080fd5b506105a2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff1690602001909291905050506118d4565b005b3480156105b057600080fd5b506105b9611d07565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561060757600080fd5b506106d260048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611d0c565b005b3480156106e057600080fd5b506107236004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d26565b6040518082815260200191505060405180910390f35b34801561074557600080fd5b5061074e611d4b565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610791578082015181840152602081019050610776565b505050509050019250505060405180910390f35b3480156107b157600080fd5b506107ba611ee6565b60405180806020018281038252838181518152602001915080519060
|
||
|
"deployedBytecode": "0x608060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063153414fa1461012a57806324cd131f146101d45780632b5000411461027e5780632f54bf6e14610344578063468721a71461039f578063610b5925146104575780637de7edef1461049a57806385e332cd146104dd57806386040aa9146105345780638cff6355146105a4578063a04222e1146105fb578063a09e89f5146106d4578063a0e67e2b14610739578063a3f4df7e146107a5578063b2494df314610835578063b7f3358d146108a1578063b91a667f146108d1578063e009cfde14610921578063e318b52b14610984578063e52cb36a14610a07578063e75235b814610a50578063ffa1ad7414610a81575b005b34801561013657600080fd5b506101d2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610b11565b005b3480156101e057600080fd5b5061027c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610d39565b005b34801561028a57600080fd5b50610326600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190505050610efa565b60405180826000191660001916815260200191505060405180910390f35b34801561035057600080fd5b50610385600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611182565b604051808215151515815260200191505060405180910390f35b3480156103ab57600080fd5b5061043d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190505050611204565b604051808215151515815260200191505060405180910390f35b34801561046357600080fd5b50610498600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611330565b005b3480156104a657600080fd5b506104db600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061170e565b005b3480156104e957600080fd5b506104f26118cf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561054057600080fd5b506105a2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff1690602001909291905050506118d4565b005b3480156105b057600080fd5b506105b9611d07565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561060757600080fd5b506106d260048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611d0c565b005b3480156106e057600080fd5b506107236004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d26565b6040518082815260200191505060405180910390f35b34801561074557600080fd5b5061074e611d4b565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610791578082015181840152602081019050610776565b505050509050019250505060405180910390f35b3480156107b157600080fd5b506107ba611ee6565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107fa578082015181840152602081
|
||
|
"sourceMap": "272:4060:4:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;272:4060:4;;;;;;;",
|
||
|
"deployedSourceMap": "272:4060:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1263:634;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1263:634:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2339:617;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2339:617:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4001:329;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4001:329:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5374:129:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5374:129:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2710:429:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2710:429:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1311:459;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1311:459:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;626:248:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:248:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;499:55:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;499:55:8;;;;;;;;;;;;;;;;;;;;;;;;;;;3024:672:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3024:672:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;287:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;287:54:9;;;;;;;;;;;;;;;;;;;;;;;;;;;693:301:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;693:301:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;767:66:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;767:66:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5585:458:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5585:458: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;5585:458:9;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4663:738:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4663:738:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;4663:738:8;;;;;;;;;;;;;;;;;4852:397:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4852:397:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;2089:593;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2089:593:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2031:343:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2031:343:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4030:633:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4030:633:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;536:43:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;536:43:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5255:113:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5255:113:9;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1263:634;1602:23;1564:1;1542:6;:18;1549:10;1542:18;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;;1534:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1628:53;1647:2;1651:5;1658:4;1664:9;1675:5;1628:18;:53::i;:::-;1602:79;;1772:10;:27;1783:15;1772:27;;;;;;;;;;;;;;;;;;;;;;;;;;;1771:28;1763:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1889:1;1847:10;:27;1858:15;1847:27;;;;;;;;;;;;;;;;;:39;1875:10;1847:39;;;;;;;;;;;;;;;:43;;;;1263:634;;;;;;:::o;2339:617::-;2533:23;2559:53;2578:2;2582:5;2589:4;2595:9;2606:5;2559:18;:53::i;:::-;2533:79;;2631:10;:27;2642:15;2631:27;;;;;;;;;;;;;;;;;;;;;;;;;;;2630:28;2622:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2706:43;2733:15;2706:26;:43::i;:::-;2842:4;2812:10;:27;2823:15;2812:27;;;;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;2864:46;2872:2;2876:5;2883:4;2889:9;2900;2864:7;:46::i;:::-;2856:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
"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 => bool) 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], \"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], \"Safe transaction already executed\");\n checkAndClearConfirmations(transactionHash);\n // Mark as executed and execute transaction.\n isExecuted[transactionHash] = true;\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 ///
|
||
|
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafeTeamEdition.sol",
|
||
|
"ast": {
|
||
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafeTeamEdition.sol",
|
||
|
"exportedSymbols": {
|
||
|
"GnosisSafeTeamEdition": [
|
||
|
635
|
||
|
]
|
||
|
},
|
||
|
"id": 636,
|
||
|
"nodeType": "SourceUnit",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"id": 403,
|
||
|
"literals": [
|
||
|
"solidity",
|
||
|
"0.4",
|
||
|
".24"
|
||
|
],
|
||
|
"nodeType": "PragmaDirective",
|
||
|
"src": "0:23:4"
|
||
|
},
|
||
|
{
|
||
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafe.sol",
|
||
|
"file": "./GnosisSafe.sol",
|
||
|
"id": 404,
|
||
|
"nodeType": "ImportDirective",
|
||
|
"scope": 636,
|
||
|
"sourceUnit": 64,
|
||
|
"src": "24:26:4",
|
||
|
"symbolAliases": [],
|
||
|
"unitAlias": ""
|
||
|
},
|
||
|
{
|
||
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
|
||
|
"file": "./MasterCopy.sol",
|
||
|
"id": 405,
|
||
|
"nodeType": "ImportDirective",
|
||
|
"scope": 636,
|
||
|
"sourceUnit": 663,
|
||
|
"src": "51:26:4",
|
||
|
"symbolAliases": [],
|
||
|
"unitAlias": ""
|
||
|
},
|
||
|
{
|
||
|
"baseContracts": [
|
||
|
{
|
||
|
"arguments": null,
|
||
|
"baseName": {
|
||
|
"contractScope": null,
|
||
|
"id": 406,
|
||
|
"name": "MasterCopy",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 662,
|
||
|
"src": "306:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_contract$_MasterCopy_$662",
|
||
|
"typeString": "contract MasterCopy"
|
||
|
}
|
||
|
},
|
||
|
"id": 407,
|
||
|
"nodeType": "InheritanceSpecifier",
|
||
|
"src": "306:10:4"
|
||
|
},
|
||
|
{
|
||
|
"arguments": null,
|
||
|
"baseName": {
|
||
|
"contractScope": null,
|
||
|
"id": 408,
|
||
|
"name": "GnosisSafe",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 63,
|
||
|
"src": "318:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_contract$_GnosisSafe_$63",
|
||
|
"typeString": "contract GnosisSafe"
|
||
|
}
|
||
|
},
|
||
|
"id": 409,
|
||
|
"nodeType": "InheritanceSpecifier",
|
||
|
"src": "318:10:4"
|
||
|
}
|
||
|
],
|
||
|
"contractDependencies": [
|
||
|
63,
|
||
|
662,
|
||
|
1118,
|
||
|
1504,
|
||
|
1654
|
||
|
],
|
||
|
"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": 635,
|
||
|
"linearizedBaseContracts": [
|
||
|
635,
|
||
|
63,
|
||
|
1504,
|
||
|
1118,
|
||
|
662,
|
||
|
1654
|
||
|
],
|
||
|
"name": "GnosisSafeTeamEdition",
|
||
|
"nodeType": "ContractDefinition",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"constant": true,
|
||
|
"id": 412,
|
||
|
"name": "NAME",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "336:56:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_memory",
|
||
|
"typeString": "string"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 410,
|
||
|
"name": "string",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "336:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_storage_ptr",
|
||
|
"typeString": "string"
|
||
|
}
|
||
|
},
|
||
|
"value": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "476e6f7369732053616665205465616d2045646974696f6e",
|
||
|
"id": 411,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "366:26:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_stringliteral_69b1cb372bb47730ba653a0e87363aa6de8337d13ed5852e6fe3ba4e2004a81e",
|
||
|
"typeString": "literal_string \"Gnosis Safe Team Edition\""
|
||
|
},
|
||
|
"value": "Gnosis Safe Team Edition"
|
||
|
},
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"constant": true,
|
||
|
"id": 415,
|
||
|
"name": "VERSION",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "398:40:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_memory",
|
||
|
"typeString": "string"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 413,
|
||
|
"name": "string",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "398:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_storage_ptr",
|
||
|
"typeString": "string"
|
||
|
}
|
||
|
},
|
||
|
"value": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "302e302e31",
|
||
|
"id": 414,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "431:7:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
|
||
|
"typeString": "literal_string \"0.0.1\""
|
||
|
},
|
||
|
"value": "0.0.1"
|
||
|
},
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 419,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "536:43:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 418,
|
||
|
"keyType": {
|
||
|
"id": 416,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "545:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "536:25:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 417,
|
||
|
"name": "bool",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "556:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 425,
|
||
|
"name": "isApproved",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "767:66:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 424,
|
||
|
"keyType": {
|
||
|
"id": 420,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "776:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "767:48:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 423,
|
||
|
"keyType": {
|
||
|
"id": 421,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "795:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "787:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 422,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "806:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 475,
|
||
|
"nodeType": "Block",
|
||
|
"src": "1454:443:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"id": 444,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 439,
|
||
|
"name": "owners",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1132,
|
||
|
"src": "1542:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
|
||
|
"typeString": "mapping(address => address)"
|
||
|
}
|
||
|
},
|
||
|
"id": 442,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 440,
|
||
|
"name": "msg",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2654,
|
||
|
"src": "1549:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_message",
|
||
|
"typeString": "msg"
|
||
|
}
|
||
|
},
|
||
|
"id": 441,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "sender",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "1549:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1542:18:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "!=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 443,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1564:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"src": "1542:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "53656e646572206973206e6f7420616e206f776e6572",
|
||
|
"id": 445,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1567:24:4",
|
||
|
"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": 438,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "1534:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 446,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "1534:58:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 447,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "1534:58:4"
|
||
|
},
|
||
|
{
|
||
|
"assignments": [
|
||
|
449
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 449,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1602:23:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 448,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1602:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 457,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 451,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 427,
|
||
|
"src": "1647:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 452,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 429,
|
||
|
"src": "1651:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 453,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 431,
|
||
|
"src": "1658:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 454,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 433,
|
||
|
"src": "1664:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 455,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 435,
|
||
|
"src": "1675:5:4",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"id": 450,
|
||
|
"name": "getTransactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 634,
|
||
|
"src": "1628:18:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
|
||
|
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 456,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "1628:53:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "1602:79:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 462,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "UnaryOperation",
|
||
|
"operator": "!",
|
||
|
"prefix": true,
|
||
|
"src": "1771:28:4",
|
||
|
"subExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 459,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 419,
|
||
|
"src": "1772:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 461,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 460,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 449,
|
||
|
"src": "1783:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1772:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
|
||
|
"id": 463,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1801:35:4",
|
||
|
"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": 458,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "1763:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 464,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "1763:74:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 465,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "1763:74:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 473,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 466,
|
||
|
"name": "isApproved",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 425,
|
||
|
"src": "1847:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
}
|
||
|
},
|
||
|
"id": 470,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 467,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 449,
|
||
|
"src": "1858:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1847:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 471,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 468,
|
||
|
"name": "msg",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2654,
|
||
|
"src": "1875:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_message",
|
||
|
"typeString": "msg"
|
||
|
}
|
||
|
},
|
||
|
"id": 469,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "sender",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "1875:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": true,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1847:39:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "31",
|
||
|
"id": 472,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1889:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_1_by_1",
|
||
|
"typeString": "int_const 1"
|
||
|
},
|
||
|
"value": "1"
|
||
|
},
|
||
|
"src": "1847:43:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"id": 474,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "1847:43:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"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": 476,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": false,
|
||
|
"modifiers": [],
|
||
|
"name": "approveTransactionWithParameters",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 436,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 427,
|
||
|
"name": "to",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1314:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 426,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1314:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 429,
|
||
|
"name": "value",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1335:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 428,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1335:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 431,
|
||
|
"name": "data",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1359:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 430,
|
||
|
"name": "bytes",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1359:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_storage_ptr",
|
||
|
"typeString": "bytes"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 433,
|
||
|
"name": "operation",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1380:24:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"contractScope": null,
|
||
|
"id": 432,
|
||
|
"name": "Enum.Operation",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 29,
|
||
|
"src": "1380:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 435,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1415:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 434,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1415:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "1304:130:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 437,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [],
|
||
|
"src": "1454:0:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "1263:634:4",
|
||
|
"stateMutability": "nonpayable",
|
||
|
"superFunction": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 529,
|
||
|
"nodeType": "Block",
|
||
|
"src": "2523:433:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"assignments": [
|
||
|
490
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 490,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2533:23:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 489,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2533:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 498,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 492,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 478,
|
||
|
"src": "2578:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 493,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 480,
|
||
|
"src": "2582:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 494,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 482,
|
||
|
"src": "2589:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 495,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 484,
|
||
|
"src": "2595:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 496,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 486,
|
||
|
"src": "2606:5:4",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"id": 491,
|
||
|
"name": "getTransactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 634,
|
||
|
"src": "2559:18:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
|
||
|
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 497,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2559:53:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "2533:79:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 503,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "UnaryOperation",
|
||
|
"operator": "!",
|
||
|
"prefix": true,
|
||
|
"src": "2630:28:4",
|
||
|
"subExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 500,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 419,
|
||
|
"src": "2631:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 502,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 501,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 490,
|
||
|
"src": "2642:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "2631:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
|
||
|
"id": 504,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "2660:35:4",
|
||
|
"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": 499,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "2622:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 505,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2622:74:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 506,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2622:74:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 508,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 490,
|
||
|
"src": "2733:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": [
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"id": 507,
|
||
|
"name": "checkAndClearConfirmations",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 600,
|
||
|
"src": "2706:26:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$returns$__$",
|
||
|
"typeString": "function (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 509,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2706:43:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 510,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2706:43:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 515,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 511,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 419,
|
||
|
"src": "2812:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 513,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 512,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 490,
|
||
|
"src": "2823:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": true,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "2812:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "74727565",
|
||
|
"id": 514,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "bool",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "2842:4:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
},
|
||
|
"value": "true"
|
||
|
},
|
||
|
"src": "2812:34:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"id": 516,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2812:34:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 519,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 478,
|
||
|
"src": "2872:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 520,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 480,
|
||
|
"src": "2876:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 521,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 482,
|
||
|
"src": "2883:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 522,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 484,
|
||
|
"src": "2889:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [],
|
||
|
"expression": {
|
||
|
"argumentTypes": [],
|
||
|
"id": 523,
|
||
|
"name": "gasleft",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2647,
|
||
|
"src": "2900:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
|
||
|
"typeString": "function () view returns (uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 524,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2900:9:4",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"id": 518,
|
||
|
"name": "execute",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1007,
|
||
|
"src": "2864:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
|
||
|
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 525,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2864:46:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "436f756c64206e6f7420657865637574652073616665207472616e73616374696f6e",
|
||
|
"id": 526,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "2912:36:4",
|
||
|
"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": 517,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "2856:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 527,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2856:93:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 528,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2856:93:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"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": 530,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": false,
|
||
|
"modifiers": [],
|
||
|
"name": "execTransactionIfApproved",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 487,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 478,
|
||
|
"name": "to",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2383:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 477,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2383:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 480,
|
||
|
"name": "value",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2404:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 479,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2404:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 482,
|
||
|
"name": "data",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2428:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 481,
|
||
|
"name": "bytes",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2428:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_storage_ptr",
|
||
|
"typeString": "bytes"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 484,
|
||
|
"name": "operation",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2449:24:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"contractScope": null,
|
||
|
"id": 483,
|
||
|
"name": "Enum.Operation",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 29,
|
||
|
"src": "2449:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 486,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2484:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 485,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2484:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "2373:130:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 488,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [],
|
||
|
"src": "2523:0:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "2339:617:4",
|
||
|
"stateMutability": "nonpayable",
|
||
|
"superFunction": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 599,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3044:679:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"assignments": [
|
||
|
538
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 538,
|
||
|
"name": "approvals",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3054:37:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 537,
|
||
|
"keyType": {
|
||
|
"id": 535,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3062:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "3054:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 536,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3073:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 542,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 539,
|
||
|
"name": "isApproved",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 425,
|
||
|
"src": "3094:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
}
|
||
|
},
|
||
|
"id": 541,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 540,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 532,
|
||
|
"src": "3105:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3094:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3054:67:4"
|
||
|
},
|
||
|
{
|
||
|
"assignments": [
|
||
|
544
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 544,
|
||
|
"name": "confirmations",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3131:21:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 543,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3131:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 546,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 545,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3155:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3131:25:4"
|
||
|
},
|
||
|
{
|
||
|
"assignments": [
|
||
|
548
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 548,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3208:20:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 547,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3208:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 552,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 549,
|
||
|
"name": "owners",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1132,
|
||
|
"src": "3231:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
|
||
|
"typeString": "mapping(address => address)"
|
||
|
}
|
||
|
},
|
||
|
"id": 551,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 550,
|
||
|
"name": "SENTINEL_OWNERS",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1128,
|
||
|
"src": "3238:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3231:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3208:46:4"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 590,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3304:340:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"assignments": [
|
||
|
557
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 557,
|
||
|
"name": "ownerConfirmed",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3318:19:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 556,
|
||
|
"name": "bool",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3318:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 563,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"id": 562,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 558,
|
||
|
"name": "approvals",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 538,
|
||
|
"src": "3340:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 560,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 559,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3350:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3340:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "!=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 561,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3367:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"src": "3340:28:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3318:50:4"
|
||
|
},
|
||
|
{
|
||
|
"condition": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
},
|
||
|
"id": 569,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"id": 567,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 564,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3385:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "==",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 565,
|
||
|
"name": "msg",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2654,
|
||
|
"src": "3401:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_message",
|
||
|
"typeString": "msg"
|
||
|
}
|
||
|
},
|
||
|
"id": 566,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "sender",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "3401:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"src": "3385:26:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "||",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 568,
|
||
|
"name": "ownerConfirmed",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 557,
|
||
|
"src": "3415:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"src": "3385:44:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"falseBody": null,
|
||
|
"id": 583,
|
||
|
"nodeType": "IfStatement",
|
||
|
"src": "3382:203:4",
|
||
|
"trueBody": {
|
||
|
"id": 582,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3431:154:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"condition": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 570,
|
||
|
"name": "ownerConfirmed",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 557,
|
||
|
"src": "3453:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"falseBody": null,
|
||
|
"id": 578,
|
||
|
"nodeType": "IfStatement",
|
||
|
"src": "3449:88:4",
|
||
|
"trueBody": {
|
||
|
"id": 577,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3469:68:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 575,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 571,
|
||
|
"name": "approvals",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 538,
|
||
|
"src": "3491:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 573,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 572,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3501:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": true,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3491:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 574,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3517:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"src": "3491:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"id": 576,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3491:27:4"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 580,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "UnaryOperation",
|
||
|
"operator": "++",
|
||
|
"prefix": false,
|
||
|
"src": "3554:16:4",
|
||
|
"subExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 579,
|
||
|
"name": "confirmations",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 544,
|
||
|
"src": "3554:13:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"id": 581,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3554:16:4"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 588,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 584,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3598:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 585,
|
||
|
"name": "owners",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1132,
|
||
|
"src": "3613:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
|
||
|
"typeString": "mapping(address => address)"
|
||
|
}
|
||
|
},
|
||
|
"id": 587,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 586,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3620:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3613:20:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"src": "3598:35:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"id": 589,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3598:35:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"condition": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"id": 555,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 553,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3271:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "!=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 554,
|
||
|
"name": "SENTINEL_OWNERS",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1128,
|
||
|
"src": "3287:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"src": "3271:31:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"id": 591,
|
||
|
"nodeType": "WhileStatement",
|
||
|
"src": "3264:380:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"id": 595,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 593,
|
||
|
"name": "confirmations",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 544,
|
||
|
"src": "3661:13:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": ">=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 594,
|
||
|
"name": "threshold",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1136,
|
||
|
"src": "3678:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint8",
|
||
|
"typeString": "uint8"
|
||
|
}
|
||
|
},
|
||
|
"src": "3661:26:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "4e6f7420656e6f75676820636f6e6669726d6174696f6e73",
|
||
|
"id": 596,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3689:26:4",
|
||
|
"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": 592,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "3653:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 597,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "3653:63:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 598,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3653:63:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"documentation": null,
|
||
|
"id": 600,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": false,
|
||
|
"modifiers": [],
|
||
|
"name": "checkAndClearConfirmations",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 533,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 532,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "2998:23:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 531,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2998:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "2997:25:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 534,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [],
|
||
|
"src": "3044:0:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "2962:761:4",
|
||
|
"stateMutability": "nonpayable",
|
||
|
"superFunction": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 633,
|
||
|
"nodeType": "Block",
|
||
|
"src": "4217:113:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30783139",
|
||
|
"id": 619,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "4266:4:4",
|
||
|
"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": 618,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "ElementaryTypeNameExpression",
|
||
|
"src": "4261:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_type$_t_bytes1_$",
|
||
|
"typeString": "type(bytes1)"
|
||
|
},
|
||
|
"typeName": "byte"
|
||
|
},
|
||
|
"id": 620,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "typeConversion",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4261:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 622,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "4278:1:4",
|
||
|
"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": 621,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "ElementaryTypeNameExpression",
|
||
|
"src": "4273:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_type$_t_bytes1_$",
|
||
|
"typeString": "type(bytes1)"
|
||
|
},
|
||
|
"typeName": "byte"
|
||
|
},
|
||
|
"id": 623,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "typeConversion",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4273:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 624,
|
||
|
"name": "this",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2689,
|
||
|
"src": "4282:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$635",
|
||
|
"typeString": "contract GnosisSafeTeamEdition"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 625,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 602,
|
||
|
"src": "4288:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 626,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 604,
|
||
|
"src": "4292:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 627,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 606,
|
||
|
"src": "4299:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 628,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 608,
|
||
|
"src": "4305:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 629,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 610,
|
||
|
"src": "4316:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": [
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$635",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 616,
|
||
|
"name": "abi",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2641,
|
||
|
"src": "4244:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_abi",
|
||
|
"typeString": "abi"
|
||
|
}
|
||
|
},
|
||
|
"id": 617,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "encodePacked",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "4244:16:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
|
||
|
"typeString": "function () pure returns (bytes memory)"
|
||
|
}
|
||
|
},
|
||
|
"id": 630,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4244:78:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": [
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
],
|
||
|
"id": 615,
|
||
|
"name": "keccak256",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2648,
|
||
|
"src": "4234:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
|
||
|
"typeString": "function () pure returns (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 631,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4234:89:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"functionReturnParameters": 614,
|
||
|
"id": 632,
|
||
|
"nodeType": "Return",
|
||
|
"src": "4227:96:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"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": 634,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": true,
|
||
|
"modifiers": [],
|
||
|
"name": "getTransactionHash",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 611,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 602,
|
||
|
"name": "to",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4038:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 601,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4038:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 604,
|
||
|
"name": "value",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4059:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 603,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4059:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 606,
|
||
|
"name": "data",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4083:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 605,
|
||
|
"name": "bytes",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4083:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_storage_ptr",
|
||
|
"typeString": "bytes"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 608,
|
||
|
"name": "operation",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4104:24:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"contractScope": null,
|
||
|
"id": 607,
|
||
|
"name": "Enum.Operation",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 29,
|
||
|
"src": "4104:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 610,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4139:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 609,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4139:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "4028:130:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 614,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 613,
|
||
|
"name": "",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4204:7:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 612,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4204:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "4203:9:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "4001:329:4",
|
||
|
"stateMutability": "view",
|
||
|
"superFunction": null,
|
||
|
"visibility": "public"
|
||
|
}
|
||
|
],
|
||
|
"scope": 636,
|
||
|
"src": "272:4060:4"
|
||
|
}
|
||
|
],
|
||
|
"src": "0:4333:4"
|
||
|
},
|
||
|
"legacyAST": {
|
||
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafeTeamEdition.sol",
|
||
|
"exportedSymbols": {
|
||
|
"GnosisSafeTeamEdition": [
|
||
|
635
|
||
|
]
|
||
|
},
|
||
|
"id": 636,
|
||
|
"nodeType": "SourceUnit",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"id": 403,
|
||
|
"literals": [
|
||
|
"solidity",
|
||
|
"0.4",
|
||
|
".24"
|
||
|
],
|
||
|
"nodeType": "PragmaDirective",
|
||
|
"src": "0:23:4"
|
||
|
},
|
||
|
{
|
||
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafe.sol",
|
||
|
"file": "./GnosisSafe.sol",
|
||
|
"id": 404,
|
||
|
"nodeType": "ImportDirective",
|
||
|
"scope": 636,
|
||
|
"sourceUnit": 64,
|
||
|
"src": "24:26:4",
|
||
|
"symbolAliases": [],
|
||
|
"unitAlias": ""
|
||
|
},
|
||
|
{
|
||
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
|
||
|
"file": "./MasterCopy.sol",
|
||
|
"id": 405,
|
||
|
"nodeType": "ImportDirective",
|
||
|
"scope": 636,
|
||
|
"sourceUnit": 663,
|
||
|
"src": "51:26:4",
|
||
|
"symbolAliases": [],
|
||
|
"unitAlias": ""
|
||
|
},
|
||
|
{
|
||
|
"baseContracts": [
|
||
|
{
|
||
|
"arguments": null,
|
||
|
"baseName": {
|
||
|
"contractScope": null,
|
||
|
"id": 406,
|
||
|
"name": "MasterCopy",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 662,
|
||
|
"src": "306:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_contract$_MasterCopy_$662",
|
||
|
"typeString": "contract MasterCopy"
|
||
|
}
|
||
|
},
|
||
|
"id": 407,
|
||
|
"nodeType": "InheritanceSpecifier",
|
||
|
"src": "306:10:4"
|
||
|
},
|
||
|
{
|
||
|
"arguments": null,
|
||
|
"baseName": {
|
||
|
"contractScope": null,
|
||
|
"id": 408,
|
||
|
"name": "GnosisSafe",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 63,
|
||
|
"src": "318:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_contract$_GnosisSafe_$63",
|
||
|
"typeString": "contract GnosisSafe"
|
||
|
}
|
||
|
},
|
||
|
"id": 409,
|
||
|
"nodeType": "InheritanceSpecifier",
|
||
|
"src": "318:10:4"
|
||
|
}
|
||
|
],
|
||
|
"contractDependencies": [
|
||
|
63,
|
||
|
662,
|
||
|
1118,
|
||
|
1504,
|
||
|
1654
|
||
|
],
|
||
|
"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": 635,
|
||
|
"linearizedBaseContracts": [
|
||
|
635,
|
||
|
63,
|
||
|
1504,
|
||
|
1118,
|
||
|
662,
|
||
|
1654
|
||
|
],
|
||
|
"name": "GnosisSafeTeamEdition",
|
||
|
"nodeType": "ContractDefinition",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"constant": true,
|
||
|
"id": 412,
|
||
|
"name": "NAME",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "336:56:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_memory",
|
||
|
"typeString": "string"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 410,
|
||
|
"name": "string",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "336:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_storage_ptr",
|
||
|
"typeString": "string"
|
||
|
}
|
||
|
},
|
||
|
"value": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "476e6f7369732053616665205465616d2045646974696f6e",
|
||
|
"id": 411,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "366:26:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_stringliteral_69b1cb372bb47730ba653a0e87363aa6de8337d13ed5852e6fe3ba4e2004a81e",
|
||
|
"typeString": "literal_string \"Gnosis Safe Team Edition\""
|
||
|
},
|
||
|
"value": "Gnosis Safe Team Edition"
|
||
|
},
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"constant": true,
|
||
|
"id": 415,
|
||
|
"name": "VERSION",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "398:40:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_memory",
|
||
|
"typeString": "string"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 413,
|
||
|
"name": "string",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "398:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_string_storage_ptr",
|
||
|
"typeString": "string"
|
||
|
}
|
||
|
},
|
||
|
"value": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "302e302e31",
|
||
|
"id": 414,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "431:7:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
|
||
|
"typeString": "literal_string \"0.0.1\""
|
||
|
},
|
||
|
"value": "0.0.1"
|
||
|
},
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 419,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "536:43:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 418,
|
||
|
"keyType": {
|
||
|
"id": 416,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "545:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "536:25:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 417,
|
||
|
"name": "bool",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "556:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 425,
|
||
|
"name": "isApproved",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 635,
|
||
|
"src": "767:66:4",
|
||
|
"stateVariable": true,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 424,
|
||
|
"keyType": {
|
||
|
"id": 420,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "776:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "767:48:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 423,
|
||
|
"keyType": {
|
||
|
"id": 421,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "795:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "787:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 422,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "806:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 475,
|
||
|
"nodeType": "Block",
|
||
|
"src": "1454:443:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"id": 444,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 439,
|
||
|
"name": "owners",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1132,
|
||
|
"src": "1542:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
|
||
|
"typeString": "mapping(address => address)"
|
||
|
}
|
||
|
},
|
||
|
"id": 442,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 440,
|
||
|
"name": "msg",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2654,
|
||
|
"src": "1549:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_message",
|
||
|
"typeString": "msg"
|
||
|
}
|
||
|
},
|
||
|
"id": 441,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "sender",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "1549:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1542:18:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "!=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 443,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1564:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"src": "1542:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "53656e646572206973206e6f7420616e206f776e6572",
|
||
|
"id": 445,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1567:24:4",
|
||
|
"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": 438,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "1534:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 446,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "1534:58:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 447,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "1534:58:4"
|
||
|
},
|
||
|
{
|
||
|
"assignments": [
|
||
|
449
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 449,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1602:23:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 448,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1602:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 457,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 451,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 427,
|
||
|
"src": "1647:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 452,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 429,
|
||
|
"src": "1651:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 453,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 431,
|
||
|
"src": "1658:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 454,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 433,
|
||
|
"src": "1664:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 455,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 435,
|
||
|
"src": "1675:5:4",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"id": 450,
|
||
|
"name": "getTransactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 634,
|
||
|
"src": "1628:18:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
|
||
|
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 456,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "1628:53:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "1602:79:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 462,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "UnaryOperation",
|
||
|
"operator": "!",
|
||
|
"prefix": true,
|
||
|
"src": "1771:28:4",
|
||
|
"subExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 459,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 419,
|
||
|
"src": "1772:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 461,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 460,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 449,
|
||
|
"src": "1783:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1772:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
|
||
|
"id": 463,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1801:35:4",
|
||
|
"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": 458,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "1763:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 464,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "1763:74:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 465,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "1763:74:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 473,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 466,
|
||
|
"name": "isApproved",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 425,
|
||
|
"src": "1847:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
}
|
||
|
},
|
||
|
"id": 470,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 467,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 449,
|
||
|
"src": "1858:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1847:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 471,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 468,
|
||
|
"name": "msg",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2654,
|
||
|
"src": "1875:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_message",
|
||
|
"typeString": "msg"
|
||
|
}
|
||
|
},
|
||
|
"id": 469,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "sender",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "1875:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": true,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "1847:39:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "31",
|
||
|
"id": 472,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "1889:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_1_by_1",
|
||
|
"typeString": "int_const 1"
|
||
|
},
|
||
|
"value": "1"
|
||
|
},
|
||
|
"src": "1847:43:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"id": 474,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "1847:43:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"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": 476,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": false,
|
||
|
"modifiers": [],
|
||
|
"name": "approveTransactionWithParameters",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 436,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 427,
|
||
|
"name": "to",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1314:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 426,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1314:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 429,
|
||
|
"name": "value",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1335:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 428,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1335:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 431,
|
||
|
"name": "data",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1359:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 430,
|
||
|
"name": "bytes",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1359:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_storage_ptr",
|
||
|
"typeString": "bytes"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 433,
|
||
|
"name": "operation",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1380:24:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"contractScope": null,
|
||
|
"id": 432,
|
||
|
"name": "Enum.Operation",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 29,
|
||
|
"src": "1380:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 435,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 476,
|
||
|
"src": "1415:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 434,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "1415:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "1304:130:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 437,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [],
|
||
|
"src": "1454:0:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "1263:634:4",
|
||
|
"stateMutability": "nonpayable",
|
||
|
"superFunction": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 529,
|
||
|
"nodeType": "Block",
|
||
|
"src": "2523:433:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"assignments": [
|
||
|
490
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 490,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2533:23:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 489,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2533:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 498,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 492,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 478,
|
||
|
"src": "2578:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 493,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 480,
|
||
|
"src": "2582:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 494,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 482,
|
||
|
"src": "2589:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 495,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 484,
|
||
|
"src": "2595:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 496,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 486,
|
||
|
"src": "2606:5:4",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"id": 491,
|
||
|
"name": "getTransactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 634,
|
||
|
"src": "2559:18:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bytes32_$",
|
||
|
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 497,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2559:53:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "2533:79:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 503,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "UnaryOperation",
|
||
|
"operator": "!",
|
||
|
"prefix": true,
|
||
|
"src": "2630:28:4",
|
||
|
"subExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 500,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 419,
|
||
|
"src": "2631:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 502,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 501,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 490,
|
||
|
"src": "2642:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "2631:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "53616665207472616e73616374696f6e20616c7265616479206578656375746564",
|
||
|
"id": 504,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "2660:35:4",
|
||
|
"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": 499,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "2622:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 505,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2622:74:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 506,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2622:74:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 508,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 490,
|
||
|
"src": "2733:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": [
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
],
|
||
|
"id": 507,
|
||
|
"name": "checkAndClearConfirmations",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 600,
|
||
|
"src": "2706:26:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$returns$__$",
|
||
|
"typeString": "function (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 509,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2706:43:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 510,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2706:43:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 515,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 511,
|
||
|
"name": "isExecuted",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 419,
|
||
|
"src": "2812:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
|
||
|
"typeString": "mapping(bytes32 => bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 513,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 512,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 490,
|
||
|
"src": "2823:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": true,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "2812:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "74727565",
|
||
|
"id": 514,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "bool",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "2842:4:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
},
|
||
|
"value": "true"
|
||
|
},
|
||
|
"src": "2812:34:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"id": 516,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2812:34:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 519,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 478,
|
||
|
"src": "2872:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 520,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 480,
|
||
|
"src": "2876:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 521,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 482,
|
||
|
"src": "2883:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 522,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 484,
|
||
|
"src": "2889:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [],
|
||
|
"expression": {
|
||
|
"argumentTypes": [],
|
||
|
"id": 523,
|
||
|
"name": "gasleft",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2647,
|
||
|
"src": "2900:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
|
||
|
"typeString": "function () view returns (uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 524,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2900:9:4",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"id": 518,
|
||
|
"name": "execute",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1007,
|
||
|
"src": "2864:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
|
||
|
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
|
||
|
}
|
||
|
},
|
||
|
"id": 525,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2864:46:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "436f756c64206e6f7420657865637574652073616665207472616e73616374696f6e",
|
||
|
"id": 526,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "2912:36:4",
|
||
|
"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": 517,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "2856:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 527,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "2856:93:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 528,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "2856:93:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"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": 530,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": false,
|
||
|
"modifiers": [],
|
||
|
"name": "execTransactionIfApproved",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 487,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 478,
|
||
|
"name": "to",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2383:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 477,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2383:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 480,
|
||
|
"name": "value",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2404:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 479,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2404:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 482,
|
||
|
"name": "data",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2428:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 481,
|
||
|
"name": "bytes",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2428:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_storage_ptr",
|
||
|
"typeString": "bytes"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 484,
|
||
|
"name": "operation",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2449:24:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"contractScope": null,
|
||
|
"id": 483,
|
||
|
"name": "Enum.Operation",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 29,
|
||
|
"src": "2449:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 486,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 530,
|
||
|
"src": "2484:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 485,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2484:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "2373:130:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 488,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [],
|
||
|
"src": "2523:0:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "2339:617:4",
|
||
|
"stateMutability": "nonpayable",
|
||
|
"superFunction": null,
|
||
|
"visibility": "public"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 599,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3044:679:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"assignments": [
|
||
|
538
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 538,
|
||
|
"name": "approvals",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3054:37:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 537,
|
||
|
"keyType": {
|
||
|
"id": 535,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3062:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Mapping",
|
||
|
"src": "3054:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
},
|
||
|
"valueType": {
|
||
|
"id": 536,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3073:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 542,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 539,
|
||
|
"name": "isApproved",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 425,
|
||
|
"src": "3094:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_uint256_$_$",
|
||
|
"typeString": "mapping(bytes32 => mapping(address => uint256))"
|
||
|
}
|
||
|
},
|
||
|
"id": 541,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 540,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 532,
|
||
|
"src": "3105:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3094:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3054:67:4"
|
||
|
},
|
||
|
{
|
||
|
"assignments": [
|
||
|
544
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 544,
|
||
|
"name": "confirmations",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3131:21:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 543,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3131:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 546,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 545,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3155:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3131:25:4"
|
||
|
},
|
||
|
{
|
||
|
"assignments": [
|
||
|
548
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 548,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3208:20:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 547,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3208:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 552,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 549,
|
||
|
"name": "owners",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1132,
|
||
|
"src": "3231:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
|
||
|
"typeString": "mapping(address => address)"
|
||
|
}
|
||
|
},
|
||
|
"id": 551,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 550,
|
||
|
"name": "SENTINEL_OWNERS",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1128,
|
||
|
"src": "3238:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3231:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3208:46:4"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 590,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3304:340:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"assignments": [
|
||
|
557
|
||
|
],
|
||
|
"declarations": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 557,
|
||
|
"name": "ownerConfirmed",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "3318:19:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 556,
|
||
|
"name": "bool",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "3318:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"id": 563,
|
||
|
"initialValue": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"id": 562,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 558,
|
||
|
"name": "approvals",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 538,
|
||
|
"src": "3340:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 560,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 559,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3350:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3340:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "!=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 561,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3367:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"src": "3340:28:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "VariableDeclarationStatement",
|
||
|
"src": "3318:50:4"
|
||
|
},
|
||
|
{
|
||
|
"condition": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
},
|
||
|
"id": 569,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"id": 567,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 564,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3385:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "==",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 565,
|
||
|
"name": "msg",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2654,
|
||
|
"src": "3401:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_message",
|
||
|
"typeString": "msg"
|
||
|
}
|
||
|
},
|
||
|
"id": 566,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "sender",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "3401:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"src": "3385:26:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "||",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 568,
|
||
|
"name": "ownerConfirmed",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 557,
|
||
|
"src": "3415:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"src": "3385:44:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"falseBody": null,
|
||
|
"id": 583,
|
||
|
"nodeType": "IfStatement",
|
||
|
"src": "3382:203:4",
|
||
|
"trueBody": {
|
||
|
"id": 582,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3431:154:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"condition": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 570,
|
||
|
"name": "ownerConfirmed",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 557,
|
||
|
"src": "3453:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"falseBody": null,
|
||
|
"id": 578,
|
||
|
"nodeType": "IfStatement",
|
||
|
"src": "3449:88:4",
|
||
|
"trueBody": {
|
||
|
"id": 577,
|
||
|
"nodeType": "Block",
|
||
|
"src": "3469:68:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 575,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 571,
|
||
|
"name": "approvals",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 538,
|
||
|
"src": "3491:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
|
||
|
"typeString": "mapping(address => uint256)"
|
||
|
}
|
||
|
},
|
||
|
"id": 573,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 572,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3501:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": true,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3491:23:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 574,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3517:1:4",
|
||
|
"subdenomination": null,
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_rational_0_by_1",
|
||
|
"typeString": "int_const 0"
|
||
|
},
|
||
|
"value": "0"
|
||
|
},
|
||
|
"src": "3491:27:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"id": 576,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3491:27:4"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 580,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "UnaryOperation",
|
||
|
"operator": "++",
|
||
|
"prefix": false,
|
||
|
"src": "3554:16:4",
|
||
|
"subExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 579,
|
||
|
"name": "confirmations",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 544,
|
||
|
"src": "3554:13:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"id": 581,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3554:16:4"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 588,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 584,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3598:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "Assignment",
|
||
|
"operator": "=",
|
||
|
"rightHandSide": {
|
||
|
"argumentTypes": null,
|
||
|
"baseExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 585,
|
||
|
"name": "owners",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1132,
|
||
|
"src": "3613:6:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
|
||
|
"typeString": "mapping(address => address)"
|
||
|
}
|
||
|
},
|
||
|
"id": 587,
|
||
|
"indexExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 586,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3620:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"isConstant": false,
|
||
|
"isLValue": true,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "IndexAccess",
|
||
|
"src": "3613:20:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"src": "3598:35:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"id": 589,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3598:35:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"condition": {
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"id": 555,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 553,
|
||
|
"name": "currentOwner",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 548,
|
||
|
"src": "3271:12:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": "!=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 554,
|
||
|
"name": "SENTINEL_OWNERS",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1128,
|
||
|
"src": "3287:15:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"src": "3271:31:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
"id": 591,
|
||
|
"nodeType": "WhileStatement",
|
||
|
"src": "3264:380:4"
|
||
|
},
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"commonType": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"id": 595,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"lValueRequested": false,
|
||
|
"leftExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 593,
|
||
|
"name": "confirmations",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 544,
|
||
|
"src": "3661:13:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"nodeType": "BinaryOperation",
|
||
|
"operator": ">=",
|
||
|
"rightExpression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 594,
|
||
|
"name": "threshold",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 1136,
|
||
|
"src": "3678:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint8",
|
||
|
"typeString": "uint8"
|
||
|
}
|
||
|
},
|
||
|
"src": "3661:26:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bool",
|
||
|
"typeString": "bool"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "4e6f7420656e6f75676820636f6e6669726d6174696f6e73",
|
||
|
"id": 596,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "string",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "3689:26:4",
|
||
|
"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": 592,
|
||
|
"name": "require",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [
|
||
|
2657,
|
||
|
2658
|
||
|
],
|
||
|
"referencedDeclaration": 2658,
|
||
|
"src": "3653:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||
|
"typeString": "function (bool,string memory) pure"
|
||
|
}
|
||
|
},
|
||
|
"id": 597,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "3653:63:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_tuple$__$",
|
||
|
"typeString": "tuple()"
|
||
|
}
|
||
|
},
|
||
|
"id": 598,
|
||
|
"nodeType": "ExpressionStatement",
|
||
|
"src": "3653:63:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"documentation": null,
|
||
|
"id": 600,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": false,
|
||
|
"modifiers": [],
|
||
|
"name": "checkAndClearConfirmations",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 533,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 532,
|
||
|
"name": "transactionHash",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 600,
|
||
|
"src": "2998:23:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 531,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "2998:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "2997:25:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 534,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [],
|
||
|
"src": "3044:0:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "2962:761:4",
|
||
|
"stateMutability": "nonpayable",
|
||
|
"superFunction": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"body": {
|
||
|
"id": 633,
|
||
|
"nodeType": "Block",
|
||
|
"src": "4217:113:4",
|
||
|
"statements": [
|
||
|
{
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30783139",
|
||
|
"id": 619,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "4266:4:4",
|
||
|
"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": 618,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "ElementaryTypeNameExpression",
|
||
|
"src": "4261:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_type$_t_bytes1_$",
|
||
|
"typeString": "type(bytes1)"
|
||
|
},
|
||
|
"typeName": "byte"
|
||
|
},
|
||
|
"id": 620,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "typeConversion",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4261:10:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"arguments": [
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"hexValue": "30",
|
||
|
"id": 622,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "number",
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "Literal",
|
||
|
"src": "4278:1:4",
|
||
|
"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": 621,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"lValueRequested": false,
|
||
|
"nodeType": "ElementaryTypeNameExpression",
|
||
|
"src": "4273:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_type$_t_bytes1_$",
|
||
|
"typeString": "type(bytes1)"
|
||
|
},
|
||
|
"typeName": "byte"
|
||
|
},
|
||
|
"id": 623,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"kind": "typeConversion",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4273:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 624,
|
||
|
"name": "this",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2689,
|
||
|
"src": "4282:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$635",
|
||
|
"typeString": "contract GnosisSafeTeamEdition"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 625,
|
||
|
"name": "to",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 602,
|
||
|
"src": "4288:2:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 626,
|
||
|
"name": "value",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 604,
|
||
|
"src": "4292:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 627,
|
||
|
"name": "data",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 606,
|
||
|
"src": "4299:4:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 628,
|
||
|
"name": "operation",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 608,
|
||
|
"src": "4305:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"argumentTypes": null,
|
||
|
"id": 629,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 610,
|
||
|
"src": "4316:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": [
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes1",
|
||
|
"typeString": "bytes1"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_contract$_GnosisSafeTeamEdition_$635",
|
||
|
"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",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
{
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": null,
|
||
|
"id": 616,
|
||
|
"name": "abi",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2641,
|
||
|
"src": "4244:3:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_magic_abi",
|
||
|
"typeString": "abi"
|
||
|
}
|
||
|
},
|
||
|
"id": 617,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": true,
|
||
|
"lValueRequested": false,
|
||
|
"memberName": "encodePacked",
|
||
|
"nodeType": "MemberAccess",
|
||
|
"referencedDeclaration": null,
|
||
|
"src": "4244:16:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
|
||
|
"typeString": "function () pure returns (bytes memory)"
|
||
|
}
|
||
|
},
|
||
|
"id": 630,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4244:78:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"expression": {
|
||
|
"argumentTypes": [
|
||
|
{
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes memory"
|
||
|
}
|
||
|
],
|
||
|
"id": 615,
|
||
|
"name": "keccak256",
|
||
|
"nodeType": "Identifier",
|
||
|
"overloadedDeclarations": [],
|
||
|
"referencedDeclaration": 2648,
|
||
|
"src": "4234:9:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
|
||
|
"typeString": "function () pure returns (bytes32)"
|
||
|
}
|
||
|
},
|
||
|
"id": 631,
|
||
|
"isConstant": false,
|
||
|
"isLValue": false,
|
||
|
"isPure": false,
|
||
|
"kind": "functionCall",
|
||
|
"lValueRequested": false,
|
||
|
"names": [],
|
||
|
"nodeType": "FunctionCall",
|
||
|
"src": "4234:89:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"functionReturnParameters": 614,
|
||
|
"id": 632,
|
||
|
"nodeType": "Return",
|
||
|
"src": "4227:96:4"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"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": 634,
|
||
|
"implemented": true,
|
||
|
"isConstructor": false,
|
||
|
"isDeclaredConst": true,
|
||
|
"modifiers": [],
|
||
|
"name": "getTransactionHash",
|
||
|
"nodeType": "FunctionDefinition",
|
||
|
"parameters": {
|
||
|
"id": 611,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 602,
|
||
|
"name": "to",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4038:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 601,
|
||
|
"name": "address",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4038:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_address",
|
||
|
"typeString": "address"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 604,
|
||
|
"name": "value",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4059:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 603,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4059:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 606,
|
||
|
"name": "data",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4083:10:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_memory_ptr",
|
||
|
"typeString": "bytes"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 605,
|
||
|
"name": "bytes",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4083:5:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes_storage_ptr",
|
||
|
"typeString": "bytes"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 608,
|
||
|
"name": "operation",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4104:24:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"contractScope": null,
|
||
|
"id": 607,
|
||
|
"name": "Enum.Operation",
|
||
|
"nodeType": "UserDefinedTypeName",
|
||
|
"referencedDeclaration": 29,
|
||
|
"src": "4104:14:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_enum$_Operation_$29",
|
||
|
"typeString": "enum Enum.Operation"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
},
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 610,
|
||
|
"name": "nonce",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4139:13:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 609,
|
||
|
"name": "uint256",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4139:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_uint256",
|
||
|
"typeString": "uint256"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "4028:130:4"
|
||
|
},
|
||
|
"payable": false,
|
||
|
"returnParameters": {
|
||
|
"id": 614,
|
||
|
"nodeType": "ParameterList",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"constant": false,
|
||
|
"id": 613,
|
||
|
"name": "",
|
||
|
"nodeType": "VariableDeclaration",
|
||
|
"scope": 634,
|
||
|
"src": "4204:7:4",
|
||
|
"stateVariable": false,
|
||
|
"storageLocation": "default",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
},
|
||
|
"typeName": {
|
||
|
"id": 612,
|
||
|
"name": "bytes32",
|
||
|
"nodeType": "ElementaryTypeName",
|
||
|
"src": "4204:7:4",
|
||
|
"typeDescriptions": {
|
||
|
"typeIdentifier": "t_bytes32",
|
||
|
"typeString": "bytes32"
|
||
|
}
|
||
|
},
|
||
|
"value": null,
|
||
|
"visibility": "internal"
|
||
|
}
|
||
|
],
|
||
|
"src": "4203:9:4"
|
||
|
},
|
||
|
"scope": 635,
|
||
|
"src": "4001:329:4",
|
||
|
"stateMutability": "view",
|
||
|
"superFunction": null,
|
||
|
"visibility": "public"
|
||
|
}
|
||
|
],
|
||
|
"scope": 636,
|
||
|
"src": "272:4060:4"
|
||
|
}
|
||
|
],
|
||
|
"src": "0:4333:4"
|
||
|
},
|
||
|
"compiler": {
|
||
|
"name": "solc",
|
||
|
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
|
||
|
},
|
||
|
"networks": {
|
||
|
"4": {
|
||
|
"events": {},
|
||
|
"links": {},
|
||
|
"address": "0x49177854cc884e0fbdadf69f3ddd255b4693b525",
|
||
|
"transactionHash": "0x230882f0b4bfda1e180148b9dfabcaca88e1d7dc267b00e3680563d5fe43e403"
|
||
|
},
|
||
|
"1527420696956": {
|
||
|
"events": {},
|
||
|
"links": {},
|
||
|
"address": "0xb8d09a68423900f75635ae045562a8338060c9aa",
|
||
|
"transactionHash": "0xa71d3b0b3752acc18733fa881f70c256d63562f28ccca9af910fad3beee9181a"
|
||
|
},
|
||
|
"1527678155804": {
|
||
|
"events": {},
|
||
|
"links": {},
|
||
|
"address": "0x8bec74b923b0d2ac349b920ab7566f9c2de06ed1",
|
||
|
"transactionHash": "0x846890db3c85ef38bf8ee86c789f20fbdf1c6339e44f897e15e80ba166b50de3"
|
||
|
}
|
||
|
},
|
||
|
"schemaVersion": "2.0.0",
|
||
|
"updatedAt": "2018-05-31T12:54:32.491Z"
|
||
|
}
|