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

9859 lines
490 KiB
JSON
Raw Normal View History

2018-05-10 11:12:13 +00:00
{
"contractName": "GnosisSafePersonalEdition",
"abi": [
{
"constant": true,
"inputs": [
{
2018-05-16 13:46:33 +00:00
"name": "owner",
"type": "address"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"name": "isOwner",
2018-05-10 11:12:13 +00:00
"outputs": [
{
"name": "",
2018-05-16 13:46:33 +00:00
"type": "bool"
2018-05-10 11:12:13 +00:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
2018-05-16 13:46:33 +00:00
"name": "to",
2018-05-10 11:12:13 +00:00
"type": "address"
},
{
2018-05-16 13:46:33 +00:00
"name": "value",
"type": "uint256"
},
2018-05-10 11:12:13 +00:00
{
2018-05-16 13:46:33 +00:00
"name": "data",
"type": "bytes"
},
2018-05-10 11:12:13 +00:00
{
2018-05-16 13:46:33 +00:00
"name": "operation",
2018-05-10 11:12:13 +00:00
"type": "uint8"
}
],
2018-05-16 13:46:33 +00:00
"name": "execTransactionFromModule",
2018-05-10 11:12:13 +00:00
"outputs": [
{
2018-05-16 13:46:33 +00:00
"name": "success",
2018-05-10 11:12:13 +00:00
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "module",
"type": "address"
}
],
2018-05-16 13:46:33 +00:00
"name": "enableModule",
2018-05-10 11:12:13 +00:00
"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,
2018-05-16 13:46:33 +00:00
"inputs": [],
"name": "SENTINEL_MODULES",
2018-05-10 11:12:13 +00:00
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
2018-05-16 13:46:33 +00:00
"name": "prevOwner",
"type": "address"
2018-05-10 11:12:13 +00:00
},
{
"name": "owner",
"type": "address"
},
{
"name": "_threshold",
"type": "uint8"
}
],
"name": "removeOwner",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2018-05-16 13:46:33 +00:00
{
"constant": true,
"inputs": [],
"name": "SENTINEL_OWNERS",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2018-05-10 11:12:13 +00:00
{
"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": "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": "nonce",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2018-05-16 13:46:33 +00:00
{
"constant": true,
"inputs": [],
"name": "getModules",
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2018-05-10 11:12:13 +00:00
{
"constant": false,
"inputs": [
{
2018-05-16 13:46:33 +00:00
"name": "_threshold",
2018-05-10 11:12:13 +00:00
"type": "uint8"
}
],
2018-05-16 13:46:33 +00:00
"name": "changeThreshold",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
2018-05-10 11:12:13 +00:00
{
2018-05-16 13:46:33 +00:00
"name": "owner",
"type": "address"
},
{
"name": "_threshold",
"type": "uint8"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"name": "addOwnerWithThreshold",
"outputs": [],
2018-05-10 11:12:13 +00:00
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
2018-05-16 13:46:33 +00:00
"constant": false,
"inputs": [
2018-05-10 11:12:13 +00:00
{
2018-05-16 13:46:33 +00:00
"name": "prevModule",
"type": "address"
},
{
"name": "module",
"type": "address"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"name": "disableModule",
"outputs": [],
2018-05-10 11:12:13 +00:00
"payable": false,
2018-05-16 13:46:33 +00:00
"stateMutability": "nonpayable",
2018-05-10 11:12:13 +00:00
"type": "function"
},
{
"constant": false,
"inputs": [
{
2018-05-16 13:46:33 +00:00
"name": "prevOwner",
"type": "address"
},
{
"name": "oldOwner",
"type": "address"
},
{
"name": "newOwner",
"type": "address"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"name": "swapOwner",
2018-05-10 11:12:13 +00:00
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2018-05-16 13:46:33 +00:00
{
"constant": true,
"inputs": [],
"name": "getThreshold",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2018-05-10 11:12:13 +00:00
{
"constant": true,
"inputs": [],
"name": "VERSION",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [],
"name": "ExecutionFailed",
"type": "event"
},
{
"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": "safeTxGas",
"type": "uint256"
},
{
"name": "dataGas",
"type": "uint256"
},
{
"name": "gasPrice",
"type": "uint256"
},
2018-05-27 11:24:10 +00:00
{
"name": "gasToken",
"type": "address"
},
2018-05-10 11:12:13 +00:00
{
"name": "v",
"type": "uint8[]"
},
{
"name": "r",
"type": "bytes32[]"
},
{
"name": "s",
"type": "bytes32[]"
}
],
2018-05-27 11:24:10 +00:00
"name": "execAndPayTransaction",
2018-05-10 11:12:13 +00:00
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "executionGas",
"type": "uint256"
},
{
"name": "dataGas",
"type": "uint256"
}
],
"name": "totalGasCosts",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
}
],
2018-05-16 13:46:33 +00:00
"name": "requiredTxGas",
2018-05-10 11:12:13 +00:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"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": "safeTxGas",
"type": "uint256"
},
{
"name": "dataGas",
"type": "uint256"
},
{
"name": "gasPrice",
"type": "uint256"
},
2018-05-27 11:24:10 +00:00
{
"name": "gasToken",
"type": "address"
},
2018-05-10 11:12:13 +00:00
{
"name": "_nonce",
"type": "uint256"
}
],
"name": "getTransactionHash",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50613ee5806100206000396000f300608060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806314148af21461012a5780632f54bf6e146102d1578063468721a71461032c578063610b5925146103e45780637de7edef1461042757806385e332cd1461046a57806386040aa9146104c15780638cff635514610531578063a04222e114610588578063a0e67e2b14610661578063a3f4df7e146106cd578063ad8a04501461075d578063affed0e0146107a8578063b2494df3146107d3578063b7f3358d1461083f578063b91a667f1461086f578063ba08ea24146108bf578063c4ca3a9c146109c3578063e009cfde14610a77578063e318b52b14610ada578063e75235b814610b5d578063ffa1ad7414610b8e575b005b34801561013657600080fd5b506102cf600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091929192908035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437820191505050505050919291929080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610c1e565b005b3480156102dd57600080fd5b50610312600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f5f565b604051808215151515815260200191505060405180910390f35b34801561033857600080fd5b506103ca600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190505050610fe1565b604051808215151515815260200191505060405180910390f35b3480156103f057600080fd5b50610425600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061110d565b005b34801561043357600080fd5b50610468600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114eb565b005b34801561047657600080fd5b5061047f6116ac565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104cd57600080fd5b5061052f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff1690602001909291905050506116b1565b005b34801561053d57600080fd5b50610546611ae4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561059457600080fd5b5061065f60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611ae9565b005b34801561066d57600080fd5b50610676611b03565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156106b957808201518184015260208101905061069e565b505050509050019250505060405180910390f35b3480156106d957600080fd5b506106e2611c9e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610722578082015181840152602081019050610707565b50505050905090810190601f16801561074f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561076957600080fd5b506107926004803603810190808035906020019092919080359060200190929190505050611cd7565b6040518082815260200191505060405180910390f35b3480156107b457600080fd5b506107bd611cec565b6040518082815260200191505060405180910390f35b348015
"deployedBytecode": "0x608060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806314148af21461012a5780632f54bf6e146102d1578063468721a71461032c578063610b5925146103e45780637de7edef1461042757806385e332cd1461046a57806386040aa9146104c15780638cff635514610531578063a04222e114610588578063a0e67e2b14610661578063a3f4df7e146106cd578063ad8a04501461075d578063affed0e0146107a8578063b2494df3146107d3578063b7f3358d1461083f578063b91a667f1461086f578063ba08ea24146108bf578063c4ca3a9c146109c3578063e009cfde14610a77578063e318b52b14610ada578063e75235b814610b5d578063ffa1ad7414610b8e575b005b34801561013657600080fd5b506102cf600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091929192908035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437820191505050505050919291929080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290505050610c1e565b005b3480156102dd57600080fd5b50610312600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f5f565b604051808215151515815260200191505060405180910390f35b34801561033857600080fd5b506103ca600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff169060200190929190505050610fe1565b604051808215151515815260200191505060405180910390f35b3480156103f057600080fd5b50610425600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061110d565b005b34801561043357600080fd5b50610468600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114eb565b005b34801561047657600080fd5b5061047f6116ac565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104cd57600080fd5b5061052f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff1690602001909291905050506116b1565b005b34801561053d57600080fd5b50610546611ae4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561059457600080fd5b5061065f60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611ae9565b005b34801561066d57600080fd5b50610676611b03565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156106b957808201518184015260208101905061069e565b505050509050019250505060405180910390f35b3480156106d957600080fd5b506106e2611c9e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610722578082015181840152602081019050610707565b50505050905090810190601f16801561074f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561076957600080fd5b506107926004803603810190808035906020019092919080359060200190929190505050611cd7565b6040518082815260200191505060405180910390f35b3480156107b457600080fd5b506107bd611cec565b6040518082815260200191505060405180910390f35b3480156107df57600080fd5b506107e8611cf2565b60405180806020018281
"sourceMap": "449:6475:3:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;449:6475:3;;;;;;;",
"deployedSourceMap": "449:6475:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1660:1451;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1660:1451:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;517:60:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;517:60:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;517:60:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3543:209;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3543:209:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;779:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;779:20:3;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6422:500:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6422:500:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4670:523;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4670:523:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5255:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5255:113:9;;;;;;;;;;;;;;;;;;;;;;;;;;;583:40:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;583:40:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;583:40:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1660:1451;1994:16;2611;2688:14;2013:9;1994:28;;2032:113;2042:93;2061:2;2065:5;2072:4;2078:9;2089;2100:7;2109:8;2119;2129:5;;2042:18;:93::i;:::-;2137:1;2140;2143;2032:9;:113::i;:::-;2206:5;;:7;;;;;;;;;;;;;2264:9;737:5;2231:9;:29;:42;;2223:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2335:46;2343:2;2347:5;2354:4;2360:9;2371;2335:7;:46::i;:::-;2334:47;2330:100;;;2402:17;;;;;;;;;;2330:100;2594:1;2583:8;:12;2579:524;;;2630:44;2655:9;2644:8;:20;2666:7;2630:13;:44::i;:::-;2611:63;;2716:8;2705;:19;2688:36;;2762:1;2742:22;;:8;:22;;;2738:355;;;2851:9;:18;;:26;2870:6;2851:26;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24
"source": "pragma solidity 0.4.24;\nimport \"./interfaces/ERC20Token.sol\";\nimport \"./GnosisSafe.sol\";\nimport \"./MasterCopy.sol\";\n\n\n/// @title Gnosis Safe Personal Edition - A multisignature wallet with support for confirmations using signed messages based on ERC191.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\n/// @author Ricardo Guilherme Schmidt - (Status Research & Development GmbH) - Gas Token Payment\ncontract GnosisSafePersonalEdition is MasterCopy, GnosisSafe {\n\n string public constant NAME = \"Gnosis Safe Personal Edition\";\n string public constant VERSION = \"0.0.1\";\n \n uint256 internal constant BASE_TX_GAS_COSTS = 21000;\n uint256 internal constant PAYMENT_GAS_COSTS = 11000;\n\n event ExecutionFailed();\n\n uint256 public nonce;\n\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners.\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 safeTxGas Gas that should be used for the Safe transaction.\n /// @param dataGas Gas costs for data used to trigger the safe transaction.\n /// @param gasPrice Gas price that should be used for the payment calculation.\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\n /// @param v Array of signature V values sorted by owner addresses.\n /// @param r Array of signature R values sorted by owner addresses.\n /// @param s Array of signature S values sorted by owner addresses.\n function execAndPayTransaction(\n address to, \n uint256 value, \n bytes data, \n Enum.Operation operation, \n uint256 safeTxGas,\n uint256 dataGas,\n uint256 gasPrice,\n address gasToken,\n uint8[] v, \n bytes32[] r, \n bytes32[] s\n )\n public\n {\n uint256 startGas = gasleft();\n checkHash(getTransactionHash(to, value, data, operation, safeTxGas, dataGas, gasPrice, gasToken, nonce), v, r, s);\n // Increase nonce and execute transaction.\n nonce++;\n require(gasleft() - PAYMENT_GAS_COSTS >= safeTxGas, \"Not enough gas to execute safe transaction\");\n if (!execute(to, value, data, operation, safeTxGas)) {\n emit ExecutionFailed();\n }\n \n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\n if (gasPrice > 0) {\n uint256 gasCosts = totalGasCosts(startGas - gasleft(), dataGas);\n uint256 amount = gasCosts * gasPrice;\n if (gasToken == address(0)) {\n // solium-disable-next-line security/no-tx-origin\n tx.origin.transfer(amount);\n } else {\n // solium-disable-next-line security/no-tx-origin\n require(ERC20Token(gasToken).transfer(tx.origin, amount), \"Could not pay gas costs with token\");\n }\n } \n }\n\n /// @dev Calculates the total gas costs for a safe transaction with the gas costs for the execution of the transaction.\n /// @param executionGas Gas costs for the execution of the safe transaction.\n /// @param dataGas Gas costs for data used to trigger the safe transaction.\n /// @return Total gas costs for the execution (this includes gas costs for the payment to tx.origin, base transaction and payload data).\n function totalGasCosts(uint256 executionGas, uint256 dataGas) \n public \n pure\n returns (uint256) \n {\n return executionGas + dataGas + PAYMENT_GAS_COSTS + BASE_TX_GAS_COSTS;\n }\n\n /// @dev Allows to estimate a Safe transaction. \n /// This method is only meant for estimation purpose, therfore two different protection mechanism against execution in a transaction have been made:\n /// 1.)
2018-05-10 11:12:13 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafePersonalEdition.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafePersonalEdition.sol",
"exportedSymbols": {
"GnosisSafePersonalEdition": [
401
2018-05-10 11:12:13 +00:00
]
},
"id": 402,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-27 11:24:10 +00:00
"id": 65,
2018-05-10 11:12:13 +00:00
"literals": [
"solidity",
"0.4",
2018-05-27 11:24:10 +00:00
".24"
2018-05-10 11:12:13 +00:00
],
"nodeType": "PragmaDirective",
2018-05-27 11:24:10 +00:00
"src": "0:23:3"
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/interfaces/ERC20Token.sol",
"file": "./interfaces/ERC20Token.sol",
"id": 66,
"nodeType": "ImportDirective",
"scope": 402,
"sourceUnit": 1721,
2018-05-27 11:24:10 +00:00
"src": "24:37:3",
"symbolAliases": [],
"unitAlias": ""
2018-05-10 11:12:13 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafe.sol",
"file": "./GnosisSafe.sol",
2018-05-27 11:24:10 +00:00
"id": 67,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
"scope": 402,
2018-05-27 11:24:10 +00:00
"sourceUnit": 64,
"src": "62:26:3",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"file": "./MasterCopy.sol",
2018-05-27 11:24:10 +00:00
"id": 68,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
"scope": 402,
"sourceUnit": 663,
2018-05-27 11:24:10 +00:00
"src": "89:26:3",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 69,
2018-05-10 11:12:13 +00:00
"name": "MasterCopy",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 662,
2018-05-27 11:24:10 +00:00
"src": "487:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_MasterCopy_$662",
2018-05-10 11:12:13 +00:00
"typeString": "contract MasterCopy"
}
},
2018-05-27 11:24:10 +00:00
"id": 70,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-27 11:24:10 +00:00
"src": "487:10:3"
2018-05-10 11:12:13 +00:00
},
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 71,
2018-05-10 11:12:13 +00:00
"name": "GnosisSafe",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 63,
"src": "499:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_GnosisSafe_$63",
2018-05-10 11:12:13 +00:00
"typeString": "contract GnosisSafe"
}
},
2018-05-27 11:24:10 +00:00
"id": 72,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-27 11:24:10 +00:00
"src": "499:10:3"
2018-05-10 11:12:13 +00:00
}
],
"contractDependencies": [
2018-05-27 11:24:10 +00:00
63,
662,
1118,
1504,
1654
2018-05-10 11:12:13 +00:00
],
"contractKind": "contract",
2018-05-27 11:24:10 +00:00
"documentation": "@title Gnosis Safe Personal Edition - A multisignature wallet with support for confirmations using signed messages based on ERC191.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>\n @author Ricardo Guilherme Schmidt - (Status Research & Development GmbH) - Gas Token Payment",
2018-05-10 11:12:13 +00:00
"fullyImplemented": true,
"id": 401,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
401,
2018-05-27 11:24:10 +00:00
63,
1504,
1118,
662,
1654
2018-05-10 11:12:13 +00:00
],
"name": "GnosisSafePersonalEdition",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 75,
2018-05-10 11:12:13 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "517:60:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 73,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "517:6:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "476e6f736973205361666520506572736f6e616c2045646974696f6e",
2018-05-27 11:24:10 +00:00
"id": 74,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "547:30:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b657d2895d137bf089ce1df776b732639b1ebc2a3aec3bd837e225e9e0965154",
"typeString": "literal_string \"Gnosis Safe Personal Edition\""
},
"value": "Gnosis Safe Personal Edition"
},
"visibility": "public"
},
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 78,
2018-05-10 11:12:13 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "583:40:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 76,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "583:6:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
2018-05-27 11:24:10 +00:00
"id": 77,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "616:7:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 81,
2018-05-10 11:12:13 +00:00
"name": "BASE_TX_GAS_COSTS",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "634:51:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 79,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "634:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "3231303030",
2018-05-27 11:24:10 +00:00
"id": 80,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "680:5:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_21000_by_1",
"typeString": "int_const 21000"
},
"value": "21000"
},
"visibility": "internal"
},
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 84,
2018-05-10 11:12:13 +00:00
"name": "PAYMENT_GAS_COSTS",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "691:51:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 82,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "691:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"hexValue": "3131303030",
2018-05-27 11:24:10 +00:00
"id": 83,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "737:5:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_rational_11000_by_1",
"typeString": "int_const 11000"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"value": "11000"
2018-05-10 11:12:13 +00:00
},
"visibility": "internal"
},
{
"anonymous": false,
"documentation": null,
2018-05-27 11:24:10 +00:00
"id": 86,
2018-05-10 11:12:13 +00:00
"name": "ExecutionFailed",
"nodeType": "EventDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 85,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "770:2:3"
2018-05-10 11:12:13 +00:00
},
2018-05-27 11:24:10 +00:00
"src": "749:24:3"
2018-05-10 11:12:13 +00:00
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 88,
2018-05-10 11:12:13 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "779:20:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 87,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "779:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 213,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "1984:1127:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
2018-05-27 11:24:10 +00:00
117
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 117,
2018-05-10 11:12:13 +00:00
"name": "startGas",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1994:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 116,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1994:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 120,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-27 11:24:10 +00:00
"id": 118,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
2018-05-27 11:24:10 +00:00
"src": "2013:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
2018-05-27 11:24:10 +00:00
"id": 119,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2013:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "1994:28:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 123,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 90,
"src": "2061:2:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 124,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 92,
"src": "2065:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 125,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 94,
"src": "2072:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 126,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 96,
"src": "2078:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 127,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 98,
"src": "2089:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 128,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 100,
"src": "2100:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 129,
2018-05-10 11:12:13 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 102,
"src": "2109:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 130,
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2119:8:3",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 131,
2018-05-10 11:12:13 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 88,
"src": "2129:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
{
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-10 11:12:13 +00:00
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-05-27 11:24:10 +00:00
"id": 122,
2018-05-10 11:12:13 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 400,
2018-05-27 11:24:10 +00:00
"src": "2042:18:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$_t_bytes32_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256,uint256,uint256,address,uint256) view returns (bytes32)"
2018-05-10 11:12:13 +00:00
}
},
2018-05-27 11:24:10 +00:00
"id": 132,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2042:93:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 133,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 107,
"src": "2137:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[] memory"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 134,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 110,
"src": "2140:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 135,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 113,
"src": "2143:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[] memory"
},
{
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
},
{
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
],
2018-05-27 11:24:10 +00:00
"id": 121,
2018-05-10 11:12:13 +00:00
"name": "checkHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 354,
2018-05-27 11:24:10 +00:00
"src": "2032:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_array$_t_uint8_$dyn_memory_ptr_$_t_array$_t_bytes32_$dyn_memory_ptr_$_t_array$_t_bytes32_$dyn_memory_ptr_$returns$__$",
"typeString": "function (bytes32,uint8[] memory,bytes32[] memory,bytes32[] memory) view"
}
},
2018-05-27 11:24:10 +00:00
"id": 136,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2032:113:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-27 11:24:10 +00:00
"id": 137,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "2032:113:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 139,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2018-05-27 11:24:10 +00:00
"src": "2206:7:3",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 138,
2018-05-10 11:12:13 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 88,
"src": "2206:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"id": 140,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "2206:7:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
"id": 147,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
"id": 145,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-27 11:24:10 +00:00
"id": 142,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
2018-05-27 11:24:10 +00:00
"src": "2231:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
2018-05-27 11:24:10 +00:00
"id": 143,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2231:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 144,
2018-05-10 11:12:13 +00:00
"name": "PAYMENT_GAS_COSTS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 84,
"src": "2243:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"src": "2231:29:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 146,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 98,
"src": "2264:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"src": "2231:42:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4e6f7420656e6f7567682067617320746f20657865637574652073616665207472616e73616374696f6e",
"id": 148,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2275:44:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_e7ccb05a0f2c66d12451cdfc6bbab488c38ab704d0f6af9ad18763542e9e5f18",
"typeString": "literal_string \"Not enough gas to execute safe transaction\""
},
"value": "Not enough gas to execute safe transaction"
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_e7ccb05a0f2c66d12451cdfc6bbab488c38ab704d0f6af9ad18763542e9e5f18",
"typeString": "literal_string \"Not enough gas to execute safe transaction\""
2018-05-10 11:12:13 +00:00
}
],
2018-05-27 11:24:10 +00:00
"id": 141,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2658,
2018-05-27 11:24:10 +00:00
"src": "2223:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 149,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2223:97:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 150,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "2223:97:3"
2018-05-10 11:12:13 +00:00
},
{
"condition": {
"argumentTypes": null,
"id": 158,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2334:47:3",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 152,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 90,
"src": "2343:2:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 153,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 92,
"src": "2347:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 154,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 94,
"src": "2354:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 155,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 96,
"src": "2360:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 156,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 98,
"src": "2371:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 151,
2018-05-10 11:12:13 +00:00
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1007,
"src": "2335:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
2018-05-10 11:12:13 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 157,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2335:46:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 163,
2018-05-10 11:12:13 +00:00
"nodeType": "IfStatement",
"src": "2330:100:3",
2018-05-10 11:12:13 +00:00
"trueBody": {
"id": 162,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "2383:47:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 159,
2018-05-10 11:12:13 +00:00
"name": "ExecutionFailed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 86,
"src": "2402:15:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 160,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2402:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 161,
2018-05-10 11:12:13 +00:00
"nodeType": "EmitStatement",
"src": "2397:22:3"
2018-05-10 11:12:13 +00:00
}
]
}
},
{
2018-05-27 11:24:10 +00:00
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 166,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 164,
2018-05-27 11:24:10 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2583:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-27 11:24:10 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 165,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2594:1:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
2018-05-10 11:12:13 +00:00
},
2018-05-27 11:24:10 +00:00
"value": "0"
},
"src": "2583:12:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
2018-05-27 11:24:10 +00:00
},
"falseBody": null,
"id": 212,
2018-05-27 11:24:10 +00:00
"nodeType": "IfStatement",
"src": "2579:524:3",
2018-05-27 11:24:10 +00:00
"trueBody": {
"id": 211,
2018-05-27 11:24:10 +00:00
"nodeType": "Block",
"src": "2597:506:3",
2018-05-27 11:24:10 +00:00
"statements": [
2018-05-10 11:12:13 +00:00
{
2018-05-27 11:24:10 +00:00
"assignments": [
168
2018-05-27 11:24:10 +00:00
],
"declarations": [
{
"constant": false,
"id": 168,
2018-05-27 11:24:10 +00:00
"name": "gasCosts",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "2611:16:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 167,
2018-05-27 11:24:10 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2611:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
2018-05-10 11:12:13 +00:00
}
2018-05-27 11:24:10 +00:00
],
"id": 176,
2018-05-27 11:24:10 +00:00
"initialValue": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 173,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 170,
2018-05-27 11:24:10 +00:00
"name": "startGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 117,
"src": "2644:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 171,
2018-05-27 11:24:10 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "2655:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 172,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2655:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "2644:20:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 174,
2018-05-27 11:24:10 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 100,
"src": "2666:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
2018-05-10 11:12:13 +00:00
"expression": {
2018-05-27 11:24:10 +00:00
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 169,
2018-05-27 11:24:10 +00:00
"name": "totalGasCosts",
2018-05-10 11:12:13 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 232,
"src": "2630:13:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
2018-05-10 11:12:13 +00:00
}
},
"id": 175,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2630:44:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"nodeType": "VariableDeclarationStatement",
"src": "2611:63:3"
2018-05-10 11:12:13 +00:00
},
{
2018-05-27 11:24:10 +00:00
"assignments": [
178
2018-05-27 11:24:10 +00:00
],
"declarations": [
{
"constant": false,
"id": 178,
2018-05-27 11:24:10 +00:00
"name": "amount",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "2688:14:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 177,
2018-05-27 11:24:10 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2688:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
2018-05-10 11:12:13 +00:00
}
2018-05-27 11:24:10 +00:00
],
"id": 182,
2018-05-27 11:24:10 +00:00
"initialValue": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"commonType": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-27 11:24:10 +00:00
},
"id": 181,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 179,
2018-05-27 11:24:10 +00:00
"name": "gasCosts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 168,
"src": "2705:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
"id": 180,
2018-05-27 11:24:10 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2716:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "2705:19:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2688:36:3"
2018-05-27 11:24:10 +00:00
},
{
"condition": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 187,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 183,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2742:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 185,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2762:1:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 184,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2754:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 186,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2754:10:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2742:22:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
},
2018-05-27 11:24:10 +00:00
"falseBody": {
"id": 209,
2018-05-27 11:24:10 +00:00
"nodeType": "Block",
"src": "2898:195:3",
2018-05-27 11:24:10 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 202,
2018-05-27 11:24:10 +00:00
"name": "tx",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2666,
"src": "3021:2:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_transaction",
"typeString": "tx"
}
},
"id": 203,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "origin",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "3021:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 204,
2018-05-27 11:24:10 +00:00
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 178,
"src": "3032:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 199,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "3002:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 198,
2018-05-27 11:24:10 +00:00
"name": "ERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1720,
"src": "2991:10:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ERC20Token_$1720_$",
2018-05-27 11:24:10 +00:00
"typeString": "type(contract ERC20Token)"
}
},
"id": 200,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2991:20:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC20Token_$1720",
2018-05-27 11:24:10 +00:00
"typeString": "contract ERC20Token"
}
},
"id": 201,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": 1674,
"src": "2991:29:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256) external returns (bool)"
}
},
"id": 205,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2991:48:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f74207061792067617320636f737473207769746820746f6b656e",
"id": 206,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3041:36:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_8560a13547eca5648355c8db1a9f8653b6f657d31d476c36bca25e47b45b08f4",
"typeString": "literal_string \"Could not pay gas costs with token\""
},
"value": "Could not pay gas costs with token"
2018-05-27 11:24:10 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_8560a13547eca5648355c8db1a9f8653b6f657d31d476c36bca25e47b45b08f4",
"typeString": "literal_string \"Could not pay gas costs with token\""
2018-05-27 11:24:10 +00:00
}
],
"id": 197,
2018-05-27 11:24:10 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-27 11:24:10 +00:00
],
"referencedDeclaration": 2658,
"src": "2983:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-27 11:24:10 +00:00
}
},
"id": 207,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2983:95:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 208,
2018-05-27 11:24:10 +00:00
"nodeType": "ExpressionStatement",
"src": "2983:95:3"
2018-05-27 11:24:10 +00:00
}
]
},
"id": 210,
2018-05-27 11:24:10 +00:00
"nodeType": "IfStatement",
"src": "2738:355:3",
2018-05-27 11:24:10 +00:00
"trueBody": {
"id": 196,
2018-05-27 11:24:10 +00:00
"nodeType": "Block",
"src": "2766:126:3",
2018-05-27 11:24:10 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 193,
2018-05-27 11:24:10 +00:00
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 178,
"src": "2870:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 188,
2018-05-27 11:24:10 +00:00
"name": "tx",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2666,
"src": "2851:2:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_transaction",
"typeString": "tx"
}
},
"id": 191,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "origin",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2851:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 192,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2851:18:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 194,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2851:26:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 195,
2018-05-27 11:24:10 +00:00
"nodeType": "ExpressionStatement",
"src": "2851:26:3"
2018-05-27 11:24:10 +00:00
}
]
2018-05-10 11:12:13 +00:00
}
}
2018-05-27 11:24:10 +00:00
]
}
2018-05-10 11:12:13 +00:00
}
]
},
2018-05-27 11:24:10 +00:00
"documentation": "@dev Allows to execute a Safe transaction confirmed by required number of owners.\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 safeTxGas Gas that should be used for the Safe transaction.\n @param dataGas Gas costs for data used to trigger the safe transaction.\n @param gasPrice Gas price that should be used for the payment calculation.\n @param gasToken Token address (or 0 if ETH) that is used for the payment.\n @param v Array of signature V values sorted by owner addresses.\n @param r Array of signature R values sorted by owner addresses.\n @param s Array of signature S values sorted by owner addresses.",
"id": 214,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
2018-05-27 11:24:10 +00:00
"name": "execAndPayTransaction",
2018-05-10 11:12:13 +00:00
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 114,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 90,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1700:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 89,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1700:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 92,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1721:13:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 91,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1721:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 94,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1745:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 93,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1745:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 96,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1766:24:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 95,
2018-05-10 11:12:13 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 29,
"src": "1766:14:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 98,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1801:17:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 97,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1801:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 100,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1828:15:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 99,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1828:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 102,
2018-05-10 11:12:13 +00:00
"name": "gasPrice",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1853:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 101,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1853:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 104,
"name": "gasToken",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1879:16:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 103,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1879:7:3",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 107,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1905:9:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[]"
},
"typeName": {
"baseType": {
2018-05-27 11:24:10 +00:00
"id": 105,
2018-05-10 11:12:13 +00:00
"name": "uint8",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1905:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
2018-05-27 11:24:10 +00:00
"id": 106,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-27 11:24:10 +00:00
"src": "1905:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_storage_ptr",
"typeString": "uint8[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 110,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1925:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
2018-05-27 11:24:10 +00:00
"id": 108,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1925:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
2018-05-27 11:24:10 +00:00
"id": 109,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-27 11:24:10 +00:00
"src": "1925:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 113,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1947:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
2018-05-27 11:24:10 +00:00
"id": 111,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1947:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
2018-05-27 11:24:10 +00:00
"id": 112,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-27 11:24:10 +00:00
"src": "1947:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"src": "1690:274:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-27 11:24:10 +00:00
"id": 115,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "1984:0:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "1660:1451:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 231,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "3666:86:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 229,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 227,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 225,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 223,
2018-05-10 11:12:13 +00:00
"name": "executionGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 216,
"src": "3683:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 224,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 218,
"src": "3698:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3683:22:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 226,
2018-05-10 11:12:13 +00:00
"name": "PAYMENT_GAS_COSTS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 84,
"src": "3708:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3683:42:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 228,
2018-05-10 11:12:13 +00:00
"name": "BASE_TX_GAS_COSTS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 81,
"src": "3728:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3683:62:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 222,
"id": 230,
2018-05-10 11:12:13 +00:00
"nodeType": "Return",
"src": "3676:69:3"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Calculates the total gas costs for a safe transaction with the gas costs for the execution of the transaction.\n @param executionGas Gas costs for the execution of the safe transaction.\n @param dataGas Gas costs for data used to trigger the safe transaction.\n @return Total gas costs for the execution (this includes gas costs for the payment to tx.origin, base transaction and payload data).",
"id": 232,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalGasCosts",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 219,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 216,
2018-05-10 11:12:13 +00:00
"name": "executionGas",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "3566:20:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 215,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3566:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 218,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "3588:15:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 217,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3588:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3565:39:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 222,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 221,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "3652:7:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 220,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3652:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3651:9:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "3543:209:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "pure",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 279,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "4822:371:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
248
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
"id": 248,
2018-05-10 11:12:13 +00:00
"name": "startGas",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4832:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 247,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4832:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 251,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 249,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "4851:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 250,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4851:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4832:28:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 254,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 234,
"src": "4973:2:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 255,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 236,
"src": "4977:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 256,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 238,
"src": "4984:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 257,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 240,
"src": "4990:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 258,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "5001:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 259,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5001:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 253,
2018-05-10 11:12:13 +00:00
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1007,
"src": "4965:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
2018-05-10 11:12:13 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 260,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4965:46:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 252,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2657,
"src": "4957:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 261,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4957:55:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 262,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "4957:55:3"
2018-05-10 11:12:13 +00:00
},
{
2018-05-27 11:24:10 +00:00
"assignments": [
264
2018-05-27 11:24:10 +00:00
],
"declarations": [
{
"constant": false,
"id": 264,
2018-05-27 11:24:10 +00:00
"name": "requiredGas",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "5022:19:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 263,
2018-05-27 11:24:10 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5022:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 269,
2018-05-27 11:24:10 +00:00
"initialValue": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 268,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 265,
2018-05-10 11:12:13 +00:00
"name": "startGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 248,
"src": "5044:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 266,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "5055:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 267,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5055:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "5044:20:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"nodeType": "VariableDeclarationStatement",
"src": "5022:42:3"
2018-05-10 11:12:13 +00:00
},
2018-05-27 11:24:10 +00:00
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 274,
2018-05-27 11:24:10 +00:00
"name": "requiredGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 264,
"src": "5172:11:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 272,
2018-05-27 11:24:10 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2641,
"src": "5155:3:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 273,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "5155:16:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
},
"id": 275,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5155:29:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 271,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "5148:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
"typeString": "type(string storage pointer)"
},
"typeName": "string"
},
"id": 276,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5148:37:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
],
"id": 270,
2018-05-27 11:24:10 +00:00
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
2659,
2660
2018-05-27 11:24:10 +00:00
],
"referencedDeclaration": 2660,
"src": "5141:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
"typeString": "function (string memory) pure"
}
},
"id": 277,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5141:45:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 278,
2018-05-27 11:24:10 +00:00
"nodeType": "ExpressionStatement",
"src": "5141:45:3"
2018-05-27 11:24:10 +00:00
}
]
},
"documentation": "@dev Allows to estimate a Safe transaction. \n This method is only meant for estimation purpose, therfore two different protection mechanism against execution in a transaction have been made:\n 1.) The method can only be called from the safe itself\n 2.) The response is returned with a revert\n When estimating set `from` to the address of the safe.\n Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execAndPayTransaction`\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 @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).",
"id": 280,
2018-05-27 11:24:10 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 243,
2018-05-27 11:24:10 +00:00
"modifierName": {
"argumentTypes": null,
"id": 242,
2018-05-27 11:24:10 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1653,
"src": "4781:10:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "4781:10:3"
2018-05-27 11:24:10 +00:00
}
],
"name": "requiredTxGas",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 241,
2018-05-27 11:24:10 +00:00
"nodeType": "ParameterList",
"parameters": [
2018-05-10 11:12:13 +00:00
{
"constant": false,
"id": 234,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4693:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 233,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4693:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 236,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4705:13:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 235,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4705:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 238,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4720:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 237,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "4720:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 240,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4732:24:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 239,
2018-05-10 11:12:13 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 29,
"src": "4732:14:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4692:65:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 246,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 245,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4809:7:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 244,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4809:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4808:9:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "4670:523:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 353,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "5303:519:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
295
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
"id": 295,
2018-05-10 11:12:13 +00:00
"name": "lastOwner",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5365:17:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 294,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5365:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 299,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 297,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5393:1:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 296,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "5385:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 298,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5385:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "5365:30:3"
2018-05-10 11:12:13 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
"id": 301,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5405:20:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 300,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5405:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 302,
2018-05-10 11:12:13 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "5405:20:3"
2018-05-10 11:12:13 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
"id": 304,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5435:9:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 303,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5435:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 305,
2018-05-10 11:12:13 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "5435:9:3"
2018-05-10 11:12:13 +00:00
},
{
"body": {
"id": 351,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "5528:288:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 329,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 316,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5542:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 318,
2018-05-10 11:12:13 +00:00
"name": "hash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "5567:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 319,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 285,
"src": "5573:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[] memory"
}
},
"id": 321,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 320,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5575:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5573:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 322,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 288,
"src": "5579:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
},
"id": 324,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 323,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5581:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5579:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 325,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 291,
"src": "5585:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
},
"id": 327,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 326,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5587:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5585:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 317,
2018-05-10 11:12:13 +00:00
"name": "ecrecover",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2646,
"src": "5557:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
"typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
}
},
"id": 328,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5557:33:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5542:48:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 330,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5542:48:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
2018-05-10 11:12:13 +00:00
},
"id": 336,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"baseExpression": {
"argumentTypes": null,
"id": 332,
2018-05-16 13:46:33 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1132,
"src": "5612:6:3",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 334,
2018-05-16 13:46:33 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 333,
2018-05-16 13:46:33 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5619:12:3",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5612:20:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 335,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5636:1:3",
2018-05-16 13:46:33 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5612:25:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e6174757265206e6f742070726f7669646564206279206f776e6572",
"id": 337,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5639:33:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
},
"value": "Signature not provided by owner"
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
2018-05-10 11:12:13 +00:00
}
],
"id": 331,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2658,
"src": "5604:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 338,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5604:69:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 339,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5604:69:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 343,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 341,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5695:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"id": 342,
2018-05-10 11:12:13 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 295,
"src": "5710:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5695:24:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e61747572657320617265206e6f74206f726465726564206279206f776e65722061646472657373",
"id": 344,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5721:45:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_597a123a1bc14bc9690387ae0fec99721cc18eefa85fa2531a7593a762444235",
"typeString": "literal_string \"Signatures are not ordered by owner address\""
},
"value": "Signatures are not ordered by owner address"
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_597a123a1bc14bc9690387ae0fec99721cc18eefa85fa2531a7593a762444235",
"typeString": "literal_string \"Signatures are not ordered by owner address\""
2018-05-10 11:12:13 +00:00
}
],
"id": 340,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2658,
"src": "5687:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 345,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5687:80:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 346,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5687:80:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"id": 349,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 347,
2018-05-10 11:12:13 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 295,
"src": "5781:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 348,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5793:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5781:24:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 350,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5781:24:3"
2018-05-10 11:12:13 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 312,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 310,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5508:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"id": 311,
2018-05-10 11:12:13 +00:00
"name": "threshold",
"nodeType": "Identifier",
2018-05-16 13:46:33 +00:00
"overloadedDeclarations": [],
"referencedDeclaration": 1136,
"src": "5512:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"src": "5508:13:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 352,
2018-05-10 11:12:13 +00:00
"initializationExpression": {
"expression": {
"argumentTypes": null,
"id": 308,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 306,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5501:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
"id": 307,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5505:1:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5501:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 309,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5501:5:3"
2018-05-10 11:12:13 +00:00
},
"loopExpression": {
"expression": {
"argumentTypes": null,
"id": 314,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "5523:3:3",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
"id": 313,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5523:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 315,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5523:3:3"
2018-05-10 11:12:13 +00:00
},
"nodeType": "ForStatement",
"src": "5496:320:3"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": null,
"id": 354,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "checkHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 292,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 282,
2018-05-10 11:12:13 +00:00
"name": "hash",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5218:12:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 281,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5218:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 285,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5232:9:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[]"
},
"typeName": {
"baseType": {
"id": 283,
2018-05-10 11:12:13 +00:00
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "5232:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"id": 284,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
"src": "5232:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_storage_ptr",
"typeString": "uint8[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 288,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5243:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 286,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5243:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 287,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
"src": "5243:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 291,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5256:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 289,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5256:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 290,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
"src": "5256:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5217:51:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 293,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "5303:0:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "5199:623:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 399,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "6746:176:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"arguments": [
{
"argumentTypes": null,
"hexValue": "30783139",
"id": 381,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "6808:4:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
},
"value": "0x19"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
}
],
"id": 380,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "6803:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 382,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
2018-05-27 11:24:10 +00:00
"kind": "typeConversion",
2018-05-10 11:12:13 +00:00
"lValueRequested": false,
2018-05-27 11:24:10 +00:00
"names": [],
"nodeType": "FunctionCall",
"src": "6803:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
2018-05-10 11:12:13 +00:00
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 384,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "6820:1:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 383,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "6815:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 385,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
2018-05-27 11:24:10 +00:00
"kind": "typeConversion",
2018-05-10 11:12:13 +00:00
"lValueRequested": false,
2018-05-27 11:24:10 +00:00
"names": [],
"nodeType": "FunctionCall",
"src": "6815:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
2018-05-10 11:12:13 +00:00
}
},
2018-05-27 11:24:10 +00:00
{
"argumentTypes": null,
"id": 386,
2018-05-27 11:24:10 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2687,
"src": "6824:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_GnosisSafePersonalEdition_$401",
2018-05-27 11:24:10 +00:00
"typeString": "contract GnosisSafePersonalEdition"
}
},
{
"argumentTypes": null,
"id": 387,
2018-05-27 11:24:10 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 356,
"src": "6830:2:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 388,
2018-05-27 11:24:10 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 358,
"src": "6834:5:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 389,
2018-05-27 11:24:10 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 360,
"src": "6841:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 390,
2018-05-27 11:24:10 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 362,
"src": "6847:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 391,
2018-05-27 11:24:10 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 364,
"src": "6858:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 392,
2018-05-27 11:24:10 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 366,
"src": "6869:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 393,
2018-05-27 11:24:10 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 368,
"src": "6878:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 394,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 370,
"src": "6888:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 395,
2018-05-27 11:24:10 +00:00
"name": "_nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 372,
"src": "6898:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_contract$_GnosisSafePersonalEdition_$401",
2018-05-27 11:24:10 +00:00
"typeString": "contract GnosisSafePersonalEdition"
},
{
"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"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 378,
2018-05-27 11:24:10 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2641,
"src": "6786:3:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 379,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "6786:16:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
},
"id": 396,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "6786:119:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 377,
2018-05-10 11:12:13 +00:00
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2648,
"src": "6763:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 397,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "6763:152:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"functionReturnParameters": 376,
"id": 398,
2018-05-10 11:12:13 +00:00
"nodeType": "Return",
"src": "6756:159:3"
2018-05-10 11:12:13 +00:00
}
]
},
2018-05-27 11:24:10 +00:00
"documentation": "@dev Returns hash to be signed by owners.\n @param to Destination address.\n @param value Ether value.\n @param data Data payload.\n @param operation Operation type.\n @param safeTxGas Fas that should be used for the safe transaction.\n @param dataGas Gas costs for data used to trigger the safe transaction.\n @param gasPrice Maximum gas price that should be used for this transaction.\n @param gasToken Token address (or 0 if ETH) that is used for the payment.\n @param _nonce Transaction nonce.\n @return Transaction hash.",
"id": 400,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTransactionHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 373,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 356,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6459:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 355,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6459:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 358,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6480:13:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 357,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6480:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 360,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6504:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 359,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "6504:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 362,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6525:24:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 361,
2018-05-10 11:12:13 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 29,
"src": "6525:14:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 364,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6560:17:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 363,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6560:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 366,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6588:15:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 365,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6588:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 368,
2018-05-10 11:12:13 +00:00
"name": "gasPrice",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6614:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 367,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6614:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 370,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6641:16:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 369,
2018-05-27 11:24:10 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6641:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 372,
2018-05-10 11:12:13 +00:00
"name": "_nonce",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6667:14:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 371,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6667:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "6449:238:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 376,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 375,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6733:7:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 374,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "6733:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "6732:9:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "6422:500:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 402,
"src": "449:6475:3"
2018-05-10 11:12:13 +00:00
}
],
"src": "0:6925:3"
2018-05-10 11:12:13 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafePersonalEdition.sol",
"exportedSymbols": {
"GnosisSafePersonalEdition": [
401
2018-05-10 11:12:13 +00:00
]
},
"id": 402,
2018-05-10 11:12:13 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-05-27 11:24:10 +00:00
"id": 65,
2018-05-10 11:12:13 +00:00
"literals": [
"solidity",
"0.4",
2018-05-27 11:24:10 +00:00
".24"
2018-05-10 11:12:13 +00:00
],
"nodeType": "PragmaDirective",
2018-05-27 11:24:10 +00:00
"src": "0:23:3"
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/interfaces/ERC20Token.sol",
"file": "./interfaces/ERC20Token.sol",
"id": 66,
"nodeType": "ImportDirective",
"scope": 402,
"sourceUnit": 1721,
2018-05-27 11:24:10 +00:00
"src": "24:37:3",
"symbolAliases": [],
"unitAlias": ""
2018-05-10 11:12:13 +00:00
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/GnosisSafe.sol",
"file": "./GnosisSafe.sol",
2018-05-27 11:24:10 +00:00
"id": 67,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
"scope": 402,
2018-05-27 11:24:10 +00:00
"sourceUnit": 64,
"src": "62:26:3",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol",
"file": "./MasterCopy.sol",
2018-05-27 11:24:10 +00:00
"id": 68,
2018-05-10 11:12:13 +00:00
"nodeType": "ImportDirective",
"scope": 402,
"sourceUnit": 663,
2018-05-27 11:24:10 +00:00
"src": "89:26:3",
2018-05-10 11:12:13 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 69,
2018-05-10 11:12:13 +00:00
"name": "MasterCopy",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 662,
2018-05-27 11:24:10 +00:00
"src": "487:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_MasterCopy_$662",
2018-05-10 11:12:13 +00:00
"typeString": "contract MasterCopy"
}
},
2018-05-27 11:24:10 +00:00
"id": 70,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-27 11:24:10 +00:00
"src": "487:10:3"
2018-05-10 11:12:13 +00:00
},
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 71,
2018-05-10 11:12:13 +00:00
"name": "GnosisSafe",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 63,
"src": "499:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_contract$_GnosisSafe_$63",
2018-05-10 11:12:13 +00:00
"typeString": "contract GnosisSafe"
}
},
2018-05-27 11:24:10 +00:00
"id": 72,
2018-05-10 11:12:13 +00:00
"nodeType": "InheritanceSpecifier",
2018-05-27 11:24:10 +00:00
"src": "499:10:3"
2018-05-10 11:12:13 +00:00
}
],
"contractDependencies": [
2018-05-27 11:24:10 +00:00
63,
662,
1118,
1504,
1654
2018-05-10 11:12:13 +00:00
],
"contractKind": "contract",
2018-05-27 11:24:10 +00:00
"documentation": "@title Gnosis Safe Personal Edition - A multisignature wallet with support for confirmations using signed messages based on ERC191.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>\n @author Ricardo Guilherme Schmidt - (Status Research & Development GmbH) - Gas Token Payment",
2018-05-10 11:12:13 +00:00
"fullyImplemented": true,
"id": 401,
2018-05-10 11:12:13 +00:00
"linearizedBaseContracts": [
401,
2018-05-27 11:24:10 +00:00
63,
1504,
1118,
662,
1654
2018-05-10 11:12:13 +00:00
],
"name": "GnosisSafePersonalEdition",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 75,
2018-05-10 11:12:13 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "517:60:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 73,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "517:6:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "476e6f736973205361666520506572736f6e616c2045646974696f6e",
2018-05-27 11:24:10 +00:00
"id": 74,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "547:30:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b657d2895d137bf089ce1df776b732639b1ebc2a3aec3bd837e225e9e0965154",
"typeString": "literal_string \"Gnosis Safe Personal Edition\""
},
"value": "Gnosis Safe Personal Edition"
},
"visibility": "public"
},
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 78,
2018-05-10 11:12:13 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "583:40:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 76,
2018-05-10 11:12:13 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "583:6:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "302e302e31",
2018-05-27 11:24:10 +00:00
"id": 77,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "616:7:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885",
"typeString": "literal_string \"0.0.1\""
},
"value": "0.0.1"
},
"visibility": "public"
},
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 81,
2018-05-10 11:12:13 +00:00
"name": "BASE_TX_GAS_COSTS",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "634:51:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 79,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "634:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "3231303030",
2018-05-27 11:24:10 +00:00
"id": 80,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "680:5:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_21000_by_1",
"typeString": "int_const 21000"
},
"value": "21000"
},
"visibility": "internal"
},
{
"constant": true,
2018-05-27 11:24:10 +00:00
"id": 84,
2018-05-10 11:12:13 +00:00
"name": "PAYMENT_GAS_COSTS",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "691:51:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 82,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "691:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"hexValue": "3131303030",
2018-05-27 11:24:10 +00:00
"id": 83,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-05-27 11:24:10 +00:00
"src": "737:5:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
2018-05-16 13:46:33 +00:00
"typeIdentifier": "t_rational_11000_by_1",
"typeString": "int_const 11000"
2018-05-10 11:12:13 +00:00
},
2018-05-16 13:46:33 +00:00
"value": "11000"
2018-05-10 11:12:13 +00:00
},
"visibility": "internal"
},
{
"anonymous": false,
"documentation": null,
2018-05-27 11:24:10 +00:00
"id": 86,
2018-05-10 11:12:13 +00:00
"name": "ExecutionFailed",
"nodeType": "EventDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 85,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "770:2:3"
2018-05-10 11:12:13 +00:00
},
2018-05-27 11:24:10 +00:00
"src": "749:24:3"
2018-05-10 11:12:13 +00:00
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 88,
2018-05-10 11:12:13 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 401,
2018-05-27 11:24:10 +00:00
"src": "779:20:3",
2018-05-10 11:12:13 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 87,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "779:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 213,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "1984:1127:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
2018-05-27 11:24:10 +00:00
117
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 117,
2018-05-10 11:12:13 +00:00
"name": "startGas",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1994:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 116,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1994:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"id": 120,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-27 11:24:10 +00:00
"id": 118,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
2018-05-27 11:24:10 +00:00
"src": "2013:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
2018-05-27 11:24:10 +00:00
"id": 119,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2013:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
2018-05-27 11:24:10 +00:00
"src": "1994:28:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 123,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 90,
"src": "2061:2:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 124,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 92,
"src": "2065:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 125,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 94,
"src": "2072:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 126,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 96,
"src": "2078:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 127,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 98,
"src": "2089:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 128,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 100,
"src": "2100:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 129,
2018-05-10 11:12:13 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 102,
"src": "2109:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 130,
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2119:8:3",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 131,
2018-05-10 11:12:13 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 88,
"src": "2129:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
{
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-10 11:12:13 +00:00
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-05-27 11:24:10 +00:00
"id": 122,
2018-05-10 11:12:13 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 400,
2018-05-27 11:24:10 +00:00
"src": "2042:18:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$_t_bytes32_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256,uint256,uint256,address,uint256) view returns (bytes32)"
2018-05-10 11:12:13 +00:00
}
},
2018-05-27 11:24:10 +00:00
"id": 132,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2042:93:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 133,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 107,
"src": "2137:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[] memory"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 134,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 110,
"src": "2140:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
},
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 135,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 113,
"src": "2143:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[] memory"
},
{
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
},
{
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
],
2018-05-27 11:24:10 +00:00
"id": 121,
2018-05-10 11:12:13 +00:00
"name": "checkHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 354,
2018-05-27 11:24:10 +00:00
"src": "2032:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_array$_t_uint8_$dyn_memory_ptr_$_t_array$_t_bytes32_$dyn_memory_ptr_$_t_array$_t_bytes32_$dyn_memory_ptr_$returns$__$",
"typeString": "function (bytes32,uint8[] memory,bytes32[] memory,bytes32[] memory) view"
}
},
2018-05-27 11:24:10 +00:00
"id": 136,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2032:113:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-05-27 11:24:10 +00:00
"id": 137,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "2032:113:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 139,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2018-05-27 11:24:10 +00:00
"src": "2206:7:3",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 138,
2018-05-10 11:12:13 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 88,
"src": "2206:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"id": 140,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
2018-05-27 11:24:10 +00:00
"src": "2206:7:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
"id": 147,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-05-27 11:24:10 +00:00
"id": 145,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-05-27 11:24:10 +00:00
"id": 142,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
2018-05-27 11:24:10 +00:00
"src": "2231:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
2018-05-27 11:24:10 +00:00
"id": 143,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-05-27 11:24:10 +00:00
"src": "2231:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 144,
2018-05-10 11:12:13 +00:00
"name": "PAYMENT_GAS_COSTS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 84,
"src": "2243:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"src": "2231:29:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"id": 146,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 98,
"src": "2264:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"src": "2231:42:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4e6f7420656e6f7567682067617320746f20657865637574652073616665207472616e73616374696f6e",
"id": 148,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2275:44:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_e7ccb05a0f2c66d12451cdfc6bbab488c38ab704d0f6af9ad18763542e9e5f18",
"typeString": "literal_string \"Not enough gas to execute safe transaction\""
},
"value": "Not enough gas to execute safe transaction"
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_e7ccb05a0f2c66d12451cdfc6bbab488c38ab704d0f6af9ad18763542e9e5f18",
"typeString": "literal_string \"Not enough gas to execute safe transaction\""
2018-05-10 11:12:13 +00:00
}
],
2018-05-27 11:24:10 +00:00
"id": 141,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2658,
2018-05-27 11:24:10 +00:00
"src": "2223:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 149,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2223:97:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 150,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "2223:97:3"
2018-05-10 11:12:13 +00:00
},
{
"condition": {
"argumentTypes": null,
"id": 158,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2334:47:3",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 152,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 90,
"src": "2343:2:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 153,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 92,
"src": "2347:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 154,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 94,
"src": "2354:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 155,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 96,
"src": "2360:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 156,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 98,
"src": "2371:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 151,
2018-05-10 11:12:13 +00:00
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1007,
"src": "2335:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
2018-05-10 11:12:13 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 157,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2335:46:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 163,
2018-05-10 11:12:13 +00:00
"nodeType": "IfStatement",
"src": "2330:100:3",
2018-05-10 11:12:13 +00:00
"trueBody": {
"id": 162,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "2383:47:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 159,
2018-05-10 11:12:13 +00:00
"name": "ExecutionFailed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 86,
"src": "2402:15:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 160,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2402:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 161,
2018-05-10 11:12:13 +00:00
"nodeType": "EmitStatement",
"src": "2397:22:3"
2018-05-10 11:12:13 +00:00
}
]
}
},
{
2018-05-27 11:24:10 +00:00
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 166,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 164,
2018-05-27 11:24:10 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2583:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-27 11:24:10 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 165,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2594:1:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
2018-05-10 11:12:13 +00:00
},
2018-05-27 11:24:10 +00:00
"value": "0"
},
"src": "2583:12:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
2018-05-27 11:24:10 +00:00
},
"falseBody": null,
"id": 212,
2018-05-27 11:24:10 +00:00
"nodeType": "IfStatement",
"src": "2579:524:3",
2018-05-27 11:24:10 +00:00
"trueBody": {
"id": 211,
2018-05-27 11:24:10 +00:00
"nodeType": "Block",
"src": "2597:506:3",
2018-05-27 11:24:10 +00:00
"statements": [
2018-05-10 11:12:13 +00:00
{
2018-05-27 11:24:10 +00:00
"assignments": [
168
2018-05-27 11:24:10 +00:00
],
"declarations": [
{
"constant": false,
"id": 168,
2018-05-27 11:24:10 +00:00
"name": "gasCosts",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "2611:16:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 167,
2018-05-27 11:24:10 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2611:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
2018-05-10 11:12:13 +00:00
}
2018-05-27 11:24:10 +00:00
],
"id": 176,
2018-05-27 11:24:10 +00:00
"initialValue": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 173,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 170,
2018-05-27 11:24:10 +00:00
"name": "startGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 117,
"src": "2644:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 171,
2018-05-27 11:24:10 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "2655:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 172,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2655:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "2644:20:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 174,
2018-05-27 11:24:10 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 100,
"src": "2666:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
2018-05-10 11:12:13 +00:00
"expression": {
2018-05-27 11:24:10 +00:00
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 169,
2018-05-27 11:24:10 +00:00
"name": "totalGasCosts",
2018-05-10 11:12:13 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 232,
"src": "2630:13:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
2018-05-10 11:12:13 +00:00
}
},
"id": 175,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2630:44:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"nodeType": "VariableDeclarationStatement",
"src": "2611:63:3"
2018-05-10 11:12:13 +00:00
},
{
2018-05-27 11:24:10 +00:00
"assignments": [
178
2018-05-27 11:24:10 +00:00
],
"declarations": [
{
"constant": false,
"id": 178,
2018-05-27 11:24:10 +00:00
"name": "amount",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "2688:14:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 177,
2018-05-27 11:24:10 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2688:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 182,
2018-05-27 11:24:10 +00:00
"initialValue": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"commonType": {
2018-05-10 11:12:13 +00:00
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-27 11:24:10 +00:00
},
"id": 181,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 179,
2018-05-27 11:24:10 +00:00
"name": "gasCosts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 168,
"src": "2705:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
"id": 180,
2018-05-27 11:24:10 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2716:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "2705:19:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-05-27 11:24:10 +00:00
"nodeType": "VariableDeclarationStatement",
"src": "2688:36:3"
2018-05-27 11:24:10 +00:00
},
{
"condition": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 187,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 183,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2742:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 185,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2762:1:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 184,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2754:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 186,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2754:10:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2742:22:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-10 11:12:13 +00:00
}
},
2018-05-27 11:24:10 +00:00
"falseBody": {
"id": 209,
2018-05-27 11:24:10 +00:00
"nodeType": "Block",
"src": "2898:195:3",
2018-05-27 11:24:10 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 202,
2018-05-27 11:24:10 +00:00
"name": "tx",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2666,
"src": "3021:2:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_transaction",
"typeString": "tx"
}
},
"id": 203,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "origin",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "3021:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 204,
2018-05-27 11:24:10 +00:00
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 178,
"src": "3032:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 199,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "3002:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 198,
2018-05-27 11:24:10 +00:00
"name": "ERC20Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1720,
"src": "2991:10:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ERC20Token_$1720_$",
2018-05-27 11:24:10 +00:00
"typeString": "type(contract ERC20Token)"
}
},
"id": 200,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2991:20:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC20Token_$1720",
2018-05-27 11:24:10 +00:00
"typeString": "contract ERC20Token"
}
},
"id": 201,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": 1674,
"src": "2991:29:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256) external returns (bool)"
}
},
"id": 205,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2991:48:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f74207061792067617320636f737473207769746820746f6b656e",
"id": 206,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3041:36:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_8560a13547eca5648355c8db1a9f8653b6f657d31d476c36bca25e47b45b08f4",
"typeString": "literal_string \"Could not pay gas costs with token\""
},
"value": "Could not pay gas costs with token"
2018-05-27 11:24:10 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_8560a13547eca5648355c8db1a9f8653b6f657d31d476c36bca25e47b45b08f4",
"typeString": "literal_string \"Could not pay gas costs with token\""
2018-05-27 11:24:10 +00:00
}
],
"id": 197,
2018-05-27 11:24:10 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-27 11:24:10 +00:00
],
"referencedDeclaration": 2658,
"src": "2983:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-27 11:24:10 +00:00
}
},
"id": 207,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2983:95:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 208,
2018-05-27 11:24:10 +00:00
"nodeType": "ExpressionStatement",
"src": "2983:95:3"
2018-05-27 11:24:10 +00:00
}
]
},
"id": 210,
2018-05-27 11:24:10 +00:00
"nodeType": "IfStatement",
"src": "2738:355:3",
2018-05-27 11:24:10 +00:00
"trueBody": {
"id": 196,
2018-05-27 11:24:10 +00:00
"nodeType": "Block",
"src": "2766:126:3",
2018-05-27 11:24:10 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 193,
2018-05-27 11:24:10 +00:00
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 178,
"src": "2870:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 188,
2018-05-27 11:24:10 +00:00
"name": "tx",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2666,
"src": "2851:2:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_transaction",
"typeString": "tx"
}
},
"id": 191,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "origin",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2851:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 192,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2851:18:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 194,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2851:26:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 195,
2018-05-27 11:24:10 +00:00
"nodeType": "ExpressionStatement",
"src": "2851:26:3"
2018-05-27 11:24:10 +00:00
}
]
2018-05-10 11:12:13 +00:00
}
}
2018-05-27 11:24:10 +00:00
]
}
2018-05-10 11:12:13 +00:00
}
]
},
2018-05-27 11:24:10 +00:00
"documentation": "@dev Allows to execute a Safe transaction confirmed by required number of owners.\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 safeTxGas Gas that should be used for the Safe transaction.\n @param dataGas Gas costs for data used to trigger the safe transaction.\n @param gasPrice Gas price that should be used for the payment calculation.\n @param gasToken Token address (or 0 if ETH) that is used for the payment.\n @param v Array of signature V values sorted by owner addresses.\n @param r Array of signature R values sorted by owner addresses.\n @param s Array of signature S values sorted by owner addresses.",
"id": 214,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
2018-05-27 11:24:10 +00:00
"name": "execAndPayTransaction",
2018-05-10 11:12:13 +00:00
"nodeType": "FunctionDefinition",
"parameters": {
2018-05-27 11:24:10 +00:00
"id": 114,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 90,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1700:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 89,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1700:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 92,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1721:13:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 91,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1721:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 94,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1745:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 93,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1745:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 96,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1766:24:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
2018-05-27 11:24:10 +00:00
"id": 95,
2018-05-10 11:12:13 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 29,
"src": "1766:14:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 98,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1801:17:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 97,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1801:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 100,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1828:15:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 99,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1828:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 102,
2018-05-10 11:12:13 +00:00
"name": "gasPrice",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1853:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-05-27 11:24:10 +00:00
"id": 101,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1853:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 104,
"name": "gasToken",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1879:16:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 103,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1879:7:3",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 107,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1905:9:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[]"
},
"typeName": {
"baseType": {
2018-05-27 11:24:10 +00:00
"id": 105,
2018-05-10 11:12:13 +00:00
"name": "uint8",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1905:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
2018-05-27 11:24:10 +00:00
"id": 106,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-27 11:24:10 +00:00
"src": "1905:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_storage_ptr",
"typeString": "uint8[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 110,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1925:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
2018-05-27 11:24:10 +00:00
"id": 108,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1925:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
2018-05-27 11:24:10 +00:00
"id": 109,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-27 11:24:10 +00:00
"src": "1925:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-05-27 11:24:10 +00:00
"id": 113,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "VariableDeclaration",
"scope": 214,
2018-05-27 11:24:10 +00:00
"src": "1947:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
2018-05-27 11:24:10 +00:00
"id": 111,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-05-27 11:24:10 +00:00
"src": "1947:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
2018-05-27 11:24:10 +00:00
"id": 112,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
2018-05-27 11:24:10 +00:00
"src": "1947:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
}
],
2018-05-27 11:24:10 +00:00
"src": "1690:274:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
2018-05-27 11:24:10 +00:00
"id": 115,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-05-27 11:24:10 +00:00
"src": "1984:0:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "1660:1451:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 231,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "3666:86:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 229,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 227,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 225,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 223,
2018-05-10 11:12:13 +00:00
"name": "executionGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 216,
"src": "3683:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 224,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 218,
"src": "3698:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3683:22:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 226,
2018-05-10 11:12:13 +00:00
"name": "PAYMENT_GAS_COSTS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 84,
"src": "3708:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3683:42:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
"id": 228,
2018-05-10 11:12:13 +00:00
"name": "BASE_TX_GAS_COSTS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 81,
"src": "3728:17:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3683:62:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 222,
"id": 230,
2018-05-10 11:12:13 +00:00
"nodeType": "Return",
"src": "3676:69:3"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": "@dev Calculates the total gas costs for a safe transaction with the gas costs for the execution of the transaction.\n @param executionGas Gas costs for the execution of the safe transaction.\n @param dataGas Gas costs for data used to trigger the safe transaction.\n @return Total gas costs for the execution (this includes gas costs for the payment to tx.origin, base transaction and payload data).",
"id": 232,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalGasCosts",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 219,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 216,
2018-05-10 11:12:13 +00:00
"name": "executionGas",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "3566:20:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 215,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3566:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 218,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "3588:15:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 217,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3588:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3565:39:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 222,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 221,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "3652:7:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 220,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3652:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3651:9:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "3543:209:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "pure",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 279,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "4822:371:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
248
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
"id": 248,
2018-05-10 11:12:13 +00:00
"name": "startGas",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4832:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 247,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4832:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 251,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 249,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "4851:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 250,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4851:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4832:28:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 254,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 234,
"src": "4973:2:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 255,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 236,
"src": "4977:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 256,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 238,
"src": "4984:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 257,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 240,
"src": "4990:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 258,
2018-05-10 11:12:13 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "5001:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 259,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5001:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 253,
2018-05-27 11:24:10 +00:00
"name": "execute",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1007,
"src": "4965:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$29_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) returns (bool)"
}
},
"id": 260,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4965:46:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 252,
2018-05-27 11:24:10 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-27 11:24:10 +00:00
],
"referencedDeclaration": 2657,
"src": "4957:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 261,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4957:55:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 262,
2018-05-27 11:24:10 +00:00
"nodeType": "ExpressionStatement",
"src": "4957:55:3"
2018-05-27 11:24:10 +00:00
},
{
"assignments": [
264
2018-05-27 11:24:10 +00:00
],
"declarations": [
{
"constant": false,
"id": 264,
2018-05-27 11:24:10 +00:00
"name": "requiredGas",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "5022:19:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 263,
2018-05-27 11:24:10 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5022:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 269,
2018-05-27 11:24:10 +00:00
"initialValue": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 268,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 265,
2018-05-27 11:24:10 +00:00
"name": "startGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 248,
"src": "5044:8:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 266,
2018-05-27 11:24:10 +00:00
"name": "gasleft",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2647,
"src": "5055:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_gasleft_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 267,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5055:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "5044:20:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "5022:42:3"
2018-05-27 11:24:10 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 274,
2018-05-27 11:24:10 +00:00
"name": "requiredGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 264,
"src": "5172:11:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 272,
2018-05-27 11:24:10 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2641,
"src": "5155:3:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 273,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "5155:16:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
2018-05-10 11:12:13 +00:00
}
},
"id": 275,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5155:29:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-10 11:12:13 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 271,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "5148:6:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
"typeString": "type(string storage pointer)"
},
"typeName": "string"
2018-05-10 11:12:13 +00:00
},
"id": 276,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
2018-05-27 11:24:10 +00:00
"kind": "typeConversion",
2018-05-10 11:12:13 +00:00
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5148:37:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
2018-05-10 11:12:13 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
2018-05-10 11:12:13 +00:00
}
],
"id": 270,
2018-05-27 11:24:10 +00:00
"name": "revert",
2018-05-10 11:12:13 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [
2659,
2660
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2660,
"src": "5141:6:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
"typeString": "function (string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 277,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5141:45:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 278,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5141:45:3"
2018-05-10 11:12:13 +00:00
}
]
},
2018-05-27 11:24:10 +00:00
"documentation": "@dev Allows to estimate a Safe transaction. \n This method is only meant for estimation purpose, therfore two different protection mechanism against execution in a transaction have been made:\n 1.) The method can only be called from the safe itself\n 2.) The response is returned with a revert\n When estimating set `from` to the address of the safe.\n Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execAndPayTransaction`\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 @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).",
"id": 280,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 243,
2018-05-10 11:12:13 +00:00
"modifierName": {
"argumentTypes": null,
"id": 242,
2018-05-10 11:12:13 +00:00
"name": "authorized",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1653,
"src": "4781:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "4781:10:3"
2018-05-10 11:12:13 +00:00
}
],
2018-05-16 13:46:33 +00:00
"name": "requiredTxGas",
2018-05-10 11:12:13 +00:00
"nodeType": "FunctionDefinition",
"parameters": {
"id": 241,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 234,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4693:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 233,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4693:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 236,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4705:13:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 235,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4705:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 238,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4720:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 237,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "4720:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 240,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4732:24:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 239,
2018-05-10 11:12:13 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 29,
"src": "4732:14:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4692:65:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 246,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 245,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 280,
"src": "4809:7:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 244,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4809:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4808:9:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "4670:523:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 353,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "5303:519:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"assignments": [
295
2018-05-10 11:12:13 +00:00
],
"declarations": [
{
"constant": false,
"id": 295,
2018-05-10 11:12:13 +00:00
"name": "lastOwner",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5365:17:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 294,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5365:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 299,
2018-05-10 11:12:13 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 297,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5393:1:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 296,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "5385:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 298,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5385:10:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "5365:30:3"
2018-05-10 11:12:13 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
"id": 301,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5405:20:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 300,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5405:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 302,
2018-05-10 11:12:13 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "5405:20:3"
2018-05-10 11:12:13 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
"id": 304,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5435:9:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 303,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5435:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 305,
2018-05-10 11:12:13 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "5435:9:3"
2018-05-10 11:12:13 +00:00
},
{
"body": {
"id": 351,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "5528:288:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 329,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 316,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5542:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 318,
2018-05-10 11:12:13 +00:00
"name": "hash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "5567:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 319,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 285,
"src": "5573:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[] memory"
}
},
"id": 321,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 320,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5575:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5573:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 322,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 288,
"src": "5579:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
},
"id": 324,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 323,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5581:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5579:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 325,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 291,
"src": "5585:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[] memory"
}
},
"id": 327,
2018-05-10 11:12:13 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 326,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5587:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5585:4:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 317,
2018-05-10 11:12:13 +00:00
"name": "ecrecover",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2646,
"src": "5557:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
"typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
}
},
"id": 328,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5557:33:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5542:48:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 330,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5542:48:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
2018-05-10 11:12:13 +00:00
},
"id": 336,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-10 11:12:13 +00:00
"argumentTypes": null,
2018-05-16 13:46:33 +00:00
"baseExpression": {
"argumentTypes": null,
"id": 332,
2018-05-16 13:46:33 +00:00
"name": "owners",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1132,
"src": "5612:6:3",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
}
},
"id": 334,
2018-05-16 13:46:33 +00:00
"indexExpression": {
"argumentTypes": null,
"id": 333,
2018-05-16 13:46:33 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5619:12:3",
2018-05-16 13:46:33 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5612:20:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-16 13:46:33 +00:00
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 335,
2018-05-16 13:46:33 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5636:1:3",
2018-05-16 13:46:33 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5612:25:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e6174757265206e6f742070726f7669646564206279206f776e6572",
"id": 337,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5639:33:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
},
"value": "Signature not provided by owner"
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
2018-05-10 11:12:13 +00:00
}
],
"id": 331,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2658,
"src": "5604:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 338,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5604:69:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 339,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5604:69:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 343,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 341,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5695:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"id": 342,
2018-05-10 11:12:13 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 295,
"src": "5710:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5695:24:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e61747572657320617265206e6f74206f726465726564206279206f776e65722061646472657373",
"id": 344,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5721:45:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_597a123a1bc14bc9690387ae0fec99721cc18eefa85fa2531a7593a762444235",
"typeString": "literal_string \"Signatures are not ordered by owner address\""
},
"value": "Signatures are not ordered by owner address"
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_597a123a1bc14bc9690387ae0fec99721cc18eefa85fa2531a7593a762444235",
"typeString": "literal_string \"Signatures are not ordered by owner address\""
2018-05-10 11:12:13 +00:00
}
],
"id": 340,
2018-05-10 11:12:13 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2657,
2658
2018-05-10 11:12:13 +00:00
],
"referencedDeclaration": 2658,
"src": "5687:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-10 11:12:13 +00:00
}
},
"id": 345,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "5687:80:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 346,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5687:80:3"
2018-05-10 11:12:13 +00:00
},
{
"expression": {
"argumentTypes": null,
"id": 349,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 347,
2018-05-10 11:12:13 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 295,
"src": "5781:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 348,
2018-05-10 11:12:13 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 301,
"src": "5793:12:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5781:24:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 350,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5781:24:3"
2018-05-10 11:12:13 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 312,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 310,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5508:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"id": 311,
2018-05-10 11:12:13 +00:00
"name": "threshold",
"nodeType": "Identifier",
2018-05-16 13:46:33 +00:00
"overloadedDeclarations": [],
"referencedDeclaration": 1136,
"src": "5512:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"src": "5508:13:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 352,
2018-05-10 11:12:13 +00:00
"initializationExpression": {
"expression": {
"argumentTypes": null,
"id": 308,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 306,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5501:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
"id": 307,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5505:1:3",
2018-05-10 11:12:13 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5501:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 309,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5501:5:3"
2018-05-10 11:12:13 +00:00
},
"loopExpression": {
"expression": {
"argumentTypes": null,
"id": 314,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "5523:3:3",
2018-05-10 11:12:13 +00:00
"subExpression": {
"argumentTypes": null,
"id": 313,
2018-05-10 11:12:13 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "5523:1:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 315,
2018-05-10 11:12:13 +00:00
"nodeType": "ExpressionStatement",
"src": "5523:3:3"
2018-05-10 11:12:13 +00:00
},
"nodeType": "ForStatement",
"src": "5496:320:3"
2018-05-10 11:12:13 +00:00
}
]
},
"documentation": null,
"id": 354,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "checkHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 292,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 282,
2018-05-10 11:12:13 +00:00
"name": "hash",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5218:12:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 281,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5218:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 285,
2018-05-10 11:12:13 +00:00
"name": "v",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5232:9:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr",
"typeString": "uint8[]"
},
"typeName": {
"baseType": {
"id": 283,
2018-05-10 11:12:13 +00:00
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "5232:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"id": 284,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
"src": "5232:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint8_$dyn_storage_ptr",
"typeString": "uint8[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 288,
2018-05-10 11:12:13 +00:00
"name": "r",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5243:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 286,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5243:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 287,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
"src": "5243:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 291,
2018-05-10 11:12:13 +00:00
"name": "s",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "5256:11:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 289,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5256:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 290,
2018-05-10 11:12:13 +00:00
"length": null,
"nodeType": "ArrayTypeName",
"src": "5256:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5217:51:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 293,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "5303:0:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "5199:623:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 399,
2018-05-10 11:12:13 +00:00
"nodeType": "Block",
"src": "6746:176:3",
2018-05-10 11:12:13 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-05-27 11:24:10 +00:00
"arguments": [
{
"argumentTypes": null,
"hexValue": "30783139",
"id": 381,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "6808:4:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
},
"value": "0x19"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
}
],
"id": 380,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "6803:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 382,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "6803:10:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 384,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "6820:1:3",
2018-05-27 11:24:10 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 383,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "6815:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
"id": 385,
2018-05-27 11:24:10 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "6815:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"id": 386,
2018-05-27 11:24:10 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2687,
"src": "6824:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_GnosisSafePersonalEdition_$401",
2018-05-27 11:24:10 +00:00
"typeString": "contract GnosisSafePersonalEdition"
}
},
{
"argumentTypes": null,
"id": 387,
2018-05-27 11:24:10 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 356,
"src": "6830:2:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 388,
2018-05-27 11:24:10 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 358,
"src": "6834:5:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 389,
2018-05-27 11:24:10 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 360,
"src": "6841:4:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 390,
2018-05-27 11:24:10 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 362,
"src": "6847:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_enum$_Operation_$29",
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
"id": 391,
2018-05-27 11:24:10 +00:00
"name": "safeTxGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 364,
"src": "6858:9:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 392,
2018-05-27 11:24:10 +00:00
"name": "dataGas",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 366,
"src": "6869:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 393,
2018-05-27 11:24:10 +00:00
"name": "gasPrice",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 368,
"src": "6878:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-10 11:12:13 +00:00
}
},
{
"argumentTypes": null,
"id": 394,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 370,
"src": "6888:8:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 395,
2018-05-27 11:24:10 +00:00
"name": "_nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 372,
"src": "6898:6:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
2018-05-10 11:12:13 +00:00
}
],
"expression": {
"argumentTypes": [
{
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_contract$_GnosisSafePersonalEdition_$401",
2018-05-27 11:24:10 +00:00
"typeString": "contract GnosisSafePersonalEdition"
},
{
"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"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-10 11:12:13 +00:00
}
],
2018-05-27 11:24:10 +00:00
"expression": {
"argumentTypes": null,
"id": 378,
2018-05-27 11:24:10 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2641,
"src": "6786:3:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 379,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
2018-05-27 11:24:10 +00:00
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "6786:16:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
2018-05-10 11:12:13 +00:00
},
"id": 396,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
2018-05-27 11:24:10 +00:00
"isPure": false,
"kind": "functionCall",
2018-05-10 11:12:13 +00:00
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "6786:119:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"id": 377,
2018-05-10 11:12:13 +00:00
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2648,
"src": "6763:9:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 397,
2018-05-10 11:12:13 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "6763:152:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"functionReturnParameters": 376,
"id": 398,
2018-05-10 11:12:13 +00:00
"nodeType": "Return",
"src": "6756:159:3"
2018-05-10 11:12:13 +00:00
}
]
},
2018-05-27 11:24:10 +00:00
"documentation": "@dev Returns hash to be signed by owners.\n @param to Destination address.\n @param value Ether value.\n @param data Data payload.\n @param operation Operation type.\n @param safeTxGas Fas that should be used for the safe transaction.\n @param dataGas Gas costs for data used to trigger the safe transaction.\n @param gasPrice Maximum gas price that should be used for this transaction.\n @param gasToken Token address (or 0 if ETH) that is used for the payment.\n @param _nonce Transaction nonce.\n @return Transaction hash.",
"id": 400,
2018-05-10 11:12:13 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTransactionHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 373,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 356,
2018-05-10 11:12:13 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6459:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 355,
2018-05-10 11:12:13 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6459:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 358,
2018-05-10 11:12:13 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6480:13:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 357,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6480:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 360,
2018-05-10 11:12:13 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6504:10:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 359,
2018-05-10 11:12:13 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "6504:5:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 362,
2018-05-10 11:12:13 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6525:24:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
"id": 361,
2018-05-10 11:12:13 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-05-27 11:24:10 +00:00
"referencedDeclaration": 29,
"src": "6525:14:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
2018-05-27 11:24:10 +00:00
"typeIdentifier": "t_enum$_Operation_$29",
2018-05-10 11:12:13 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 364,
2018-05-10 11:12:13 +00:00
"name": "safeTxGas",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6560:17:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 363,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6560:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 366,
2018-05-10 11:12:13 +00:00
"name": "dataGas",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6588:15:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 365,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6588:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 368,
2018-05-10 11:12:13 +00:00
"name": "gasPrice",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6614:16:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 367,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6614:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 370,
2018-05-27 11:24:10 +00:00
"name": "gasToken",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6641:16:3",
2018-05-27 11:24:10 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 369,
2018-05-27 11:24:10 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6641:7:3",
2018-05-27 11:24:10 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 372,
2018-05-10 11:12:13 +00:00
"name": "_nonce",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6667:14:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 371,
2018-05-10 11:12:13 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6667:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "6449:238:3"
2018-05-10 11:12:13 +00:00
},
"payable": false,
"returnParameters": {
"id": 376,
2018-05-10 11:12:13 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 375,
2018-05-10 11:12:13 +00:00
"name": "",
"nodeType": "VariableDeclaration",
"scope": 400,
"src": "6733:7:3",
2018-05-10 11:12:13 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 374,
2018-05-10 11:12:13 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "6733:7:3",
2018-05-10 11:12:13 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "6732:9:3"
2018-05-10 11:12:13 +00:00
},
"scope": 401,
"src": "6422:500:3",
2018-05-10 11:12:13 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 402,
"src": "449:6475:3"
2018-05-10 11:12:13 +00:00
}
],
"src": "0:6925:3"
2018-05-10 11:12:13 +00:00
},
"compiler": {
"name": "solc",
2018-05-27 11:24:10 +00:00
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
2018-05-10 11:12:13 +00:00
},
"networks": {
"4": {
"events": {},
"links": {},
"address": "0xd07b0b778cb265e61886c6a037ad0a1ccd605f13",
"transactionHash": "0xf3b9f8c0358d81f3f4d600ad6bd4d01725c1b82c6e8d3a5d5cbf00bf3ab7f935"
2018-05-26 07:36:34 +00:00
},
2018-05-27 11:24:10 +00:00
"1527420696956": {
2018-05-26 07:36:34 +00:00
"events": {},
"links": {},
"address": "0x58ae455dab5137699c13bc2cf9637714c2172cb6",
"transactionHash": "0xfda1becb511b1d4beeb0f6f7a9d1b95aad7ee26b0d43dfbfb93e244853299a6c"
2018-05-10 11:12:13 +00:00
}
},
"schemaVersion": "2.0.0",
"updatedAt": "2018-05-28T06:08:59.465Z"
2018-05-10 11:12:13 +00:00
}