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

5380 lines
245 KiB
JSON
Raw Normal View History

2018-05-31 13:01:02 +00:00
{
"contractName": "StateChannelModule",
"abi": [
{
"constant": true,
"inputs": [],
"name": "manager",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_masterCopy",
"type": "address"
}
],
"name": "changeMasterCopy",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "NAME",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "bytes32"
}
],
"name": "isExecuted",
"outputs": [
{
"name": "",
"type": "uint256"
2018-05-31 13:01:02 +00:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "VERSION",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "setup",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "signatures",
"type": "bytes"
2018-05-31 13:01:02 +00:00
}
],
"name": "execTransaction",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "operation",
"type": "uint8"
},
{
"name": "nonce",
"type": "uint256"
}
],
"name": "getTransactionHash",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
2018-09-26 09:19:53 +00:00
"bytecode": "0x608060405234801561001057600080fd5b5061117e806100206000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632b50004114610093578063481c6a75146101595780637de7edef146101b0578063a3f4df7e146101f3578063ba0bba4014610283578063e52cb36a1461029a578063f6cc15d0146102df578063ffa1ad74146103cf575b600080fd5b34801561009f57600080fd5b5061013b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291908035906020019092919050505061045f565b60405180826000191660001916815260200191505060405180910390f35b34801561016557600080fd5b5061016e6106e7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101bc57600080fd5b506101f1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061070d565b005b3480156101ff57600080fd5b506102086108f0565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561024857808201518184015260208101905061022d565b50505050905090810190601f1680156102755780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028f57600080fd5b50610298610929565b005b3480156102a657600080fd5b506102c96004803603810190808035600019169060200190929190505050610933565b6040518082815260200191505060405180910390f35b3480156102eb57600080fd5b506103cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061094b565b005b3480156103db57600080fd5b506103e4610c1a565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610424578082015181840152602081019050610409565b50505050905090810190601f1680156104515780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f01000000000000000000000000000000000000000000000000000000000000000230888888888860405160200180897effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101887effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000002815260140185815260200184805190602001908083835b60208310151561060357805182526020820191506020810190506020830392506105de565b6001836020036101000a03801982511681845116808217855250505050505090500183600281111561063157fe5b60ff167f0100000000000000000000000000000000000000000000000000000000000000028152600101828152602001985050505050505050506040516020818303038152906040526040518082805190602001908083835b6020831015156106af578051825260208201915060208101905060208303925061068a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020905095945050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001807f4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d206d81526020017f616e6167657200000000000000000000
"deployedBytecode": "0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632b50004114610093578063481c6a75146101595780637de7edef146101b0578063a3f4df7e146101f3578063ba0bba4014610283578063e52cb36a1461029a578063f6cc15d0146102df578063ffa1ad74146103cf575b600080fd5b34801561009f57600080fd5b5061013b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff1690602001909291908035906020019092919050505061045f565b60405180826000191660001916815260200191505060405180910390f35b34801561016557600080fd5b5061016e6106e7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101bc57600080fd5b506101f1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061070d565b005b3480156101ff57600080fd5b506102086108f0565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561024857808201518184015260208101905061022d565b50505050905090810190601f1680156102755780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028f57600080fd5b50610298610929565b005b3480156102a657600080fd5b506102c96004803603810190808035600019169060200190929190505050610933565b6040518082815260200191505060405180910390f35b3480156102eb57600080fd5b506103cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061094b565b005b3480156103db57600080fd5b506103e4610c1a565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610424578082015181840152602081019050610409565b50505050905090810190601f1680156104515780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f01000000000000000000000000000000000000000000000000000000000000000230888888888860405160200180897effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101887effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000002815260140185815260200184805190602001908083835b60208310151561060357805182526020820191506020810190506020830392506105de565b6001836020036101000a03801982511681845116808217855250505050505090500183600281111561063157fe5b60ff167f0100000000000000000000000000000000000000000000000000000000000000028152600101828152602001985050505050505050506040516020818303038152906040526040518082805190602001908083835b6020831015156106af578051825260208201915060208101905060208303925061068a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020905095945050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001807f4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d206d81526020017f616e616765720000000000000000000000000000000000000000000000000000815250604001915050604051
"sourceMap": "320:2840:19:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;320:2840:19;;;;;;;",
"deployedSourceMap": "320:2840:19:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2829:329;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2829:329:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;270:28:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;270:28:4;;;;;;;;;;;;;;;;;;;;;;;;;;;626:248:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:248:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;383:52:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;383:52:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;383:52:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;673:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;673:65:19;;;;;;579:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;579:46:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1203:634;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1203:634:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;441:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;441:40:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;441:40:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2829:329;3032:7;3094:4;3089:10;;3106:1;3101:7;;3110:4;3116:2;3120:5;3127:4;3133:9;3144:5;3072:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;3072:78:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;3072:78:19;;;3062:89;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;3062:89:19;;;;;;;;;;;;;;;;3055:96;;2829:329;;;;;;;:::o;270:28:4:-;;;;;;;;;;;;;:::o;626:248:9:-;367:7:4;;;;;;;;;;;345:30;;:10;:30;;;337:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;791:1:9;776:11;:16;;;;768:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;856:11;843:10;;:24;;;;;;;;;;;;;;;;;;626:248;:::o;383:52:19:-;;;;;;;;;;;;;;;;;;;;:::o;673:65::-;719:12;:10;:12::i;:::-;673:65::o;579:46::-;;;;;;;;;;;;;;;;;:::o;1203:634::-;1413:23;1439:53;1458:2;1462:5;1469:4;1475:9;1486:5;1439:18;:53::i;:::-;1413:79;;1541:1;1510:10;:27;1521:15;1510:27;;;;;;;;;;;;;;;;;;:32;1502:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1585:38;1595:15;1612:10;1585:9;:38::i;:::-;1716:1;1686:10;:27;1697:15;1686:27;;;;;;;;;;;;;;;;;:31;;;;1735:7;;;;;;;;;;;:33;;;1769:2;1773:5;1780:4;1786:9;1735:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;1735:61:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1735:61:19;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1735:61:19;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1735:61:19;;;;;;;;;;;;;;;;1727:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1203:634;;;;;;;:::o;441:40::-;;;;;;;;;;;;;;;;;;;;:::o;442:300:4:-;656:1;644:7;;;;;;;;;;;636:21;;;628:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;724:10;700:7;;:35;;;;;;;;;;;;;;;;;;442:300::o;1843:708:19:-;2001:17;2041:20;2071:9;2090:17;2029:1;2001:30;;2123:7;;;;;;;;;;;2110:34;;;:36;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2110:36:19;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2110:36:19;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2110:36:19;;;;;;;;;;;;;;;;2090:56;;2207:1;2203:5;;2198:347;2214:9;2210:1;:13;2198:347;;;2259:42;2270:15;2287:10;2299:1;2259:10;:42::i;:::-;2244:57;;2336
"source": "pragma solidity 0.4.24;\nimport \"../base/Module.sol\";\nimport \"../base/OwnerManager.sol\";\nimport \"../common/SignatureDecoder.sol\";\n\n\n/// @title Gnosis Safe State Module - A module that allows interaction with statechannels.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract StateChannelModule is Module, SignatureDecoder {\n\n string public constant NAME = \"State Channel Module\";\n string public constant VERSION = \"0.0.2\";\n\n // isExecuted mapping allows to check if a transaction (by hash) was already executed.\n mapping (bytes32 => uint256) public isExecuted;\n\n /// @dev Setup function sets manager\n function setup()\n public\n {\n setManager();\n }\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 nonce Nonce used for this Safe transaction.\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\n function execTransaction(\n address to, \n uint256 value, \n bytes data, \n Enum.Operation operation, \n uint256 nonce,\n bytes signatures\n )\n public\n {\n bytes32 transactionHash = getTransactionHash(to, value, data, operation, nonce);\n require(isExecuted[transactionHash] == 0, \"Transaction already executed\");\n checkHash(transactionHash, signatures);\n // Mark as executed and execute transaction.\n isExecuted[transactionHash] = 1;\n require(manager.execTransactionFromModule(to, value, data, operation), \"Could not execute transaction\");\n }\n\n function checkHash(bytes32 transactionHash, bytes signatures)\n internal\n view\n {\n // There cannot be an owner with address 0.\n address lastOwner = address(0);\n address currentOwner;\n uint256 i;\n uint256 threshold = OwnerManager(manager).getThreshold();\n // Validate threshold is reached.\n for (i = 0; i < threshold; i++) {\n currentOwner = recoverKey(transactionHash, signatures, i);\n require(OwnerManager(manager).isOwner(currentOwner), \"Signature not provided by owner\");\n require(currentOwner > lastOwner, \"Signatures are not ordered by owner address\");\n lastOwner = currentOwner;\n }\n }\n\n /// @dev Returns hash to be signed by owners.\n /// @param to Destination address.\n /// @param value Ether value.\n /// @param data Data payload.\n /// @param operation Operation type.\n /// @param nonce Transaction nonce.\n /// @return Transaction hash.\n function getTransactionHash(\n address to, \n uint256 value, \n bytes data, \n Enum.Operation operation, \n uint256 nonce\n )\n public\n view\n returns (bytes32)\n {\n return keccak256(abi.encodePacked(byte(0x19), byte(0), this, to, value, data, operation, nonce));\n }\n}\n",
2018-05-31 13:01:02 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/StateChannelModule.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/StateChannelModule.sol",
"exportedSymbols": {
"StateChannelModule": [
2018-09-26 09:19:53 +00:00
2562
2018-05-31 13:01:02 +00:00
]
},
2018-09-26 09:19:53 +00:00
"id": 2563,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 2377,
2018-05-31 13:01:02 +00:00
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
2018-09-26 09:19:53 +00:00
"src": "0:23:19"
2018-05-31 13:01:02 +00:00
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/base/Module.sol",
"file": "../base/Module.sol",
"id": 2378,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2563,
"sourceUnit": 936,
"src": "24:28:19",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/base/OwnerManager.sol",
"file": "../base/OwnerManager.sol",
"id": 2379,
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2563,
"sourceUnit": 1653,
"src": "53:34:19",
"symbolAliases": [],
"unitAlias": ""
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SignatureDecoder.sol",
"file": "../common/SignatureDecoder.sol",
"id": 2380,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2563,
"sourceUnit": 1792,
"src": "88:40:19",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2381,
2018-05-31 13:01:02 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 935,
"src": "351:6:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_Module_$935",
2018-05-31 13:01:02 +00:00
"typeString": "contract Module"
}
},
2018-09-26 09:19:53 +00:00
"id": 2382,
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "351:6:19"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2383,
"name": "SignatureDecoder",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1791,
"src": "359:16:19",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_SignatureDecoder_$1791",
"typeString": "contract SignatureDecoder"
}
},
2018-09-26 09:19:53 +00:00
"id": 2384,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "359:16:19"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
2018-09-26 09:19:53 +00:00
935,
1693,
1735,
1791
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Gnosis Safe State Module - A module that allows interaction with statechannels.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 2562,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
2562,
1791,
935,
1693,
1735
2018-05-31 13:01:02 +00:00
],
"name": "StateChannelModule",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
2018-09-26 09:19:53 +00:00
"id": 2387,
2018-05-31 13:01:02 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "383:52:19",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2385,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "383:6:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "5374617465204368616e6e656c204d6f64756c65",
2018-09-26 09:19:53 +00:00
"id": 2386,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "413:22:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_e66fa361bdba11103aaf2321b03707a79b393abf1f410f3f609398777fd3a713",
"typeString": "literal_string \"State Channel Module\""
},
"value": "State Channel Module"
},
"visibility": "public"
},
{
"constant": true,
2018-09-26 09:19:53 +00:00
"id": 2390,
2018-05-31 13:01:02 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "441:40:19",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2388,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "441:6:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"hexValue": "302e302e32",
"id": 2389,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "474:7:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_stringliteral_b30367effb941b728181f67f3bd24a38a4fff408ee7fb3b074425c9fb5e9be74",
"typeString": "literal_string \"0.0.2\""
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"value": "0.0.2"
2018-05-31 13:01:02 +00:00
},
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2394,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "579:46:19",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2393,
2018-05-31 13:01:02 +00:00
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 2391,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "588:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "579:28:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 2392,
"name": "uint256",
2018-05-31 13:01:02 +00:00
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "599:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2400,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "709:29:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-09-26 09:19:53 +00:00
"id": 2397,
2018-05-31 13:01:02 +00:00
"name": "setManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 934,
"src": "719:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2398,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "719:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2399,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "719:12:19"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Setup function sets manager",
2018-09-26 09:19:53 +00:00
"id": 2401,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setup",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2395,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "687:2:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2396,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "709:0:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "673:65:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2457,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "1403:434:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
2018-09-26 09:19:53 +00:00
2417
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2417,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1413:23:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2416,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1413:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2425,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2419,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2403,
"src": "1458:2:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2420,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2405,
"src": "1462:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2421,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2407,
"src": "1469:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2422,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2409,
"src": "1475:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2423,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2411,
"src": "1486:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 2418,
2018-05-31 13:01:02 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2561,
"src": "1439:18:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$1658_$_t_uint256_$returns$_t_bytes32_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2424,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1439:53:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "1413:79:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 2431,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-31 13:01:02 +00:00
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2427,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2394,
"src": "1510:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2429,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2428,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2417,
"src": "1521:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "1510:27:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2430,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1541:1:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "1510:32:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5472616e73616374696f6e20616c7265616479206578656375746564",
2018-09-26 09:19:53 +00:00
"id": 2432,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1544:30:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_3c3f7cf602281cf7a98efd78d98ba46309975dadee18bcb57e640145699bd800",
"typeString": "literal_string \"Transaction already executed\""
},
"value": "Transaction already executed"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_3c3f7cf602281cf7a98efd78d98ba46309975dadee18bcb57e640145699bd800",
"typeString": "literal_string \"Transaction already executed\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2426,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "1502:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2433,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1502:73:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2434,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1502:73:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2436,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2417,
"src": "1595:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2437,
"name": "signatures",
2018-05-31 13:01:02 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2413,
"src": "1612:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"id": 2435,
2018-05-31 13:01:02 +00:00
"name": "checkHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2527,
"src": "1585:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_bytes_memory_ptr_$returns$__$",
"typeString": "function (bytes32,bytes memory) view"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2438,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1585:38:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2439,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1585:38:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2444,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2440,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2394,
"src": "1686:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2442,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2441,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2417,
"src": "1697:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "1686:27:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
2018-09-26 09:19:53 +00:00
"id": 2443,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
2018-05-31 13:01:02 +00:00
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1716:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
2018-05-31 13:01:02 +00:00
},
"value": "1"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"src": "1686:31:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2445,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1686:31:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2449,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2403,
"src": "1769:2:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2450,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2405,
"src": "1773:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2451,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2407,
"src": "1780:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2452,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2409,
"src": "1786:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
],
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2447,
2018-05-31 13:01:02 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 900,
"src": "1735:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
},
2018-09-26 09:19:53 +00:00
"id": 2448,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "execTransactionFromModule",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1138,
"src": "1735:33:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$1658_$returns$_t_bool_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2453,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1735:61:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f742065786563757465207472616e73616374696f6e",
2018-09-26 09:19:53 +00:00
"id": 2454,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1798:31:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4",
"typeString": "literal_string \"Could not execute transaction\""
},
"value": "Could not execute transaction"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4",
"typeString": "literal_string \"Could not execute transaction\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2446,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "1727:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2455,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1727:103:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2456,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1727:103:19"
2018-05-31 13:01:02 +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 nonce Nonce used for this Safe transaction.\n @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})",
2018-09-26 09:19:53 +00:00
"id": 2458,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execTransaction",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2414,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2403,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1237:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2402,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1237:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2405,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1258:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2404,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1258:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2407,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1282:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2406,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1282:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2409,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1303:24:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2408,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1658,
"src": "1303:14:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2411,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1338:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2410,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1338:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2413,
"name": "signatures",
2018-05-31 13:01:02 +00:00
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1361:16:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2412,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1361:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1227:156:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2415,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "1403:0:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "1203:634:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2526,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "1939:612:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
2018-09-26 09:19:53 +00:00
2466
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2466,
2018-05-31 13:01:02 +00:00
"name": "lastOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2001:17:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2465,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2001:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2470,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2468,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2029:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 2467,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "2021:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 2469,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2021:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2001:30:19"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2472,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2041:20:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2471,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2041:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2473,
2018-05-31 13:01:02 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2041:20:19"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2475,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2071:9:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2474,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2071:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2476,
2018-05-31 13:01:02 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2071:9:19"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
2018-09-26 09:19:53 +00:00
2478
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2478,
2018-05-31 13:01:02 +00:00
"name": "threshold",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2090:17:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2477,
"name": "uint256",
2018-05-31 13:01:02 +00:00
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2090:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2484,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2480,
2018-05-31 13:01:02 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 900,
"src": "2123:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
}
],
"expression": {
"argumentTypes": [
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
],
2018-09-26 09:19:53 +00:00
"id": 2479,
2018-05-31 13:01:02 +00:00
"name": "OwnerManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1652,
"src": "2110:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_OwnerManager_$1652_$",
2018-05-31 13:01:02 +00:00
"typeString": "type(contract OwnerManager)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2481,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2110:21:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_OwnerManager_$1652",
2018-05-31 13:01:02 +00:00
"typeString": "contract OwnerManager"
}
},
2018-09-26 09:19:53 +00:00
"id": 2482,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "getThreshold",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1588,
"src": "2110:34:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
"typeString": "function () view external returns (uint256)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2483,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2110:36:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2090:56:19"
2018-05-31 13:01:02 +00:00
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2524,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "2230:315:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2501,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2495,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2244:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2497,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2460,
"src": "2270:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2498,
"name": "signatures",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2462,
"src": "2287:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2499,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2299:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"id": 2496,
"name": "recoverKey",
2018-05-31 13:01:02 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1775,
"src": "2259:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_address_$",
"typeString": "function (bytes32,bytes memory,uint256) pure returns (address)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2500,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2259:42:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2244:57:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 2502,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2244:57:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2508,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2353:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2505,
2018-05-31 13:01:02 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 900,
"src": "2336:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
}
],
"expression": {
"argumentTypes": [
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
],
2018-09-26 09:19:53 +00:00
"id": 2504,
2018-05-31 13:01:02 +00:00
"name": "OwnerManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1652,
"src": "2323:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_OwnerManager_$1652_$",
2018-05-31 13:01:02 +00:00
"typeString": "type(contract OwnerManager)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2506,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2323:21:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_OwnerManager_$1652",
2018-05-31 13:01:02 +00:00
"typeString": "contract OwnerManager"
}
},
2018-09-26 09:19:53 +00:00
"id": 2507,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isOwner",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1602,
"src": "2323:29:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view external returns (bool)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2509,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2323:43:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e6174757265206e6f742070726f7669646564206279206f776e6572",
2018-09-26 09:19:53 +00:00
"id": 2510,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2368:33:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
},
"value": "Signature not provided by owner"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2503,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "2315:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2511,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2315:87:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2512,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2315:87:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-09-26 09:19:53 +00:00
"id": 2516,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2514,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2424:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2515,
2018-05-31 13:01:02 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2466,
"src": "2439:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2424:24:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e61747572657320617265206e6f74206f726465726564206279206f776e65722061646472657373",
2018-09-26 09:19:53 +00:00
"id": 2517,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2450:45:19",
2018-05-31 13:01:02 +00:00
"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"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_597a123a1bc14bc9690387ae0fec99721cc18eefa85fa2531a7593a762444235",
"typeString": "literal_string \"Signatures are not ordered by owner address\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2513,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "2416:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2518,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2416:80:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2519,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2416:80:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2522,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2520,
2018-05-31 13:01:02 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2466,
"src": "2510:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2521,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2522:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2510:24:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 2523,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2510:24:19"
2018-05-31 13:01:02 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 2491,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2489,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2210:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2490,
2018-05-31 13:01:02 +00:00
"name": "threshold",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2478,
"src": "2214:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"src": "2210:13:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-09-26 09:19:53 +00:00
"id": 2525,
2018-05-31 13:01:02 +00:00
"initializationExpression": {
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2487,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2485,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2203:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2486,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2207:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "2203:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 2488,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2203:5:19"
2018-05-31 13:01:02 +00:00
},
"loopExpression": {
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2493,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2018-09-26 09:19:53 +00:00
"src": "2225:3:19",
2018-05-31 13:01:02 +00:00
"subExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2492,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2225:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 2494,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2225:3:19"
2018-05-31 13:01:02 +00:00
},
"nodeType": "ForStatement",
2018-09-26 09:19:53 +00:00
"src": "2198:347:19"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 2527,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "checkHash",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2463,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2460,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "1862:23:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2459,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1862:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2462,
"name": "signatures",
2018-05-31 13:01:02 +00:00
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "1887:16:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2461,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1887:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1861:43:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2464,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "1939:0:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "1843:708:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2560,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3045:113:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30783139",
2018-09-26 09:19:53 +00:00
"id": 2546,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "3094:4:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
},
"value": "0x19"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
}
],
2018-09-26 09:19:53 +00:00
"id": 2545,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "3089:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
2018-09-26 09:19:53 +00:00
"id": 2547,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3089:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2549,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "3106:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 2548,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "3101:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
2018-09-26 09:19:53 +00:00
"id": 2550,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3101:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2551,
2018-05-31 13:01:02 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4070,
2018-09-26 09:19:53 +00:00
"src": "3110:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_StateChannelModule_$2562",
2018-05-31 13:01:02 +00:00
"typeString": "contract StateChannelModule"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2552,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2529,
"src": "3116:2:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2553,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2531,
"src": "3120:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2554,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2533,
"src": "3127:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2555,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2535,
"src": "3133:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2556,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2537,
"src": "3144:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_StateChannelModule_$2562",
2018-05-31 13:01:02 +00:00
"typeString": "contract StateChannelModule"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2543,
2018-05-31 13:01:02 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4002,
2018-09-26 09:19:53 +00:00
"src": "3072:3:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
2018-09-26 09:19:53 +00:00
"id": 2544,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "3072:16:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2557,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3072:78:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
2018-09-26 09:19:53 +00:00
"id": 2542,
2018-05-31 13:01:02 +00:00
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4009,
2018-09-26 09:19:53 +00:00
"src": "3062:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2558,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3062:89:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 2541,
"id": 2559,
2018-05-31 13:01:02 +00:00
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "3055:96:19"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Returns hash to be signed by owners.\n @param to Destination address.\n @param value Ether value.\n @param data Data payload.\n @param operation Operation type.\n @param nonce Transaction nonce.\n @return Transaction hash.",
2018-09-26 09:19:53 +00:00
"id": 2561,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTransactionHash",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2538,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2529,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2866:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2528,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2866:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2531,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2887:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2530,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2887:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2533,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2911:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2532,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2911:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2535,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2932:24:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2534,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1658,
"src": "2932:14:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2537,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2967:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2536,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2967:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2856:130:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2541,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2540,
2018-05-31 13:01:02 +00:00
"name": "",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "3032:7:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2539,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3032:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "3031:9:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "2829:329:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 2563,
"src": "320:2840:19"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"src": "0:3161:19"
2018-05-31 13:01:02 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/modules/StateChannelModule.sol",
"exportedSymbols": {
"StateChannelModule": [
2018-09-26 09:19:53 +00:00
2562
2018-05-31 13:01:02 +00:00
]
},
2018-09-26 09:19:53 +00:00
"id": 2563,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 2377,
2018-05-31 13:01:02 +00:00
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
2018-09-26 09:19:53 +00:00
"src": "0:23:19"
2018-05-31 13:01:02 +00:00
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/base/Module.sol",
"file": "../base/Module.sol",
"id": 2378,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2563,
"sourceUnit": 936,
"src": "24:28:19",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/base/OwnerManager.sol",
"file": "../base/OwnerManager.sol",
"id": 2379,
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2563,
"sourceUnit": 1653,
"src": "53:34:19",
"symbolAliases": [],
"unitAlias": ""
},
{
2018-09-26 09:19:53 +00:00
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SignatureDecoder.sol",
"file": "../common/SignatureDecoder.sol",
"id": 2380,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
2018-09-26 09:19:53 +00:00
"scope": 2563,
"sourceUnit": 1792,
"src": "88:40:19",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2381,
2018-05-31 13:01:02 +00:00
"name": "Module",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 935,
"src": "351:6:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_Module_$935",
2018-05-31 13:01:02 +00:00
"typeString": "contract Module"
}
},
2018-09-26 09:19:53 +00:00
"id": 2382,
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "351:6:19"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2383,
"name": "SignatureDecoder",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1791,
"src": "359:16:19",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_SignatureDecoder_$1791",
"typeString": "contract SignatureDecoder"
}
},
2018-09-26 09:19:53 +00:00
"id": 2384,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "359:16:19"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
2018-09-26 09:19:53 +00:00
935,
1693,
1735,
1791
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Gnosis Safe State Module - A module that allows interaction with statechannels.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 2562,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
2562,
1791,
935,
1693,
1735
2018-05-31 13:01:02 +00:00
],
"name": "StateChannelModule",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
2018-09-26 09:19:53 +00:00
"id": 2387,
2018-05-31 13:01:02 +00:00
"name": "NAME",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "383:52:19",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2385,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "383:6:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "5374617465204368616e6e656c204d6f64756c65",
2018-09-26 09:19:53 +00:00
"id": 2386,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "413:22:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_e66fa361bdba11103aaf2321b03707a79b393abf1f410f3f609398777fd3a713",
"typeString": "literal_string \"State Channel Module\""
},
"value": "State Channel Module"
},
"visibility": "public"
},
{
"constant": true,
2018-09-26 09:19:53 +00:00
"id": 2390,
2018-05-31 13:01:02 +00:00
"name": "VERSION",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "441:40:19",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2388,
2018-05-31 13:01:02 +00:00
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "441:6:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"hexValue": "302e302e32",
"id": 2389,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "474:7:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_stringliteral_b30367effb941b728181f67f3bd24a38a4fff408ee7fb3b074425c9fb5e9be74",
"typeString": "literal_string \"0.0.2\""
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"value": "0.0.2"
2018-05-31 13:01:02 +00:00
},
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2394,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "579:46:19",
2018-05-31 13:01:02 +00:00
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2393,
2018-05-31 13:01:02 +00:00
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 2391,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "588:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "579:28:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 2392,
"name": "uint256",
2018-05-31 13:01:02 +00:00
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "599:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
}
},
"value": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2400,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "709:29:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-09-26 09:19:53 +00:00
"id": 2397,
2018-05-31 13:01:02 +00:00
"name": "setManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 934,
"src": "719:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2398,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "719:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2399,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "719:12:19"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Setup function sets manager",
2018-09-26 09:19:53 +00:00
"id": 2401,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setup",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2395,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "687:2:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2396,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "709:0:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "673:65:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2457,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "1403:434:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
2018-09-26 09:19:53 +00:00
2417
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2417,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1413:23:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2416,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1413:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2425,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2419,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2403,
"src": "1458:2:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2420,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2405,
"src": "1462:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2421,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2407,
"src": "1469:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2422,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2409,
"src": "1475:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2423,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2411,
"src": "1486:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 2418,
2018-05-31 13:01:02 +00:00
"name": "getTransactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2561,
"src": "1439:18:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$1658_$_t_uint256_$returns$_t_bytes32_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation,uint256) view returns (bytes32)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2424,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1439:53:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "1413:79:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 2431,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
2018-05-31 13:01:02 +00:00
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2427,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2394,
"src": "1510:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2429,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2428,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2417,
"src": "1521:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "1510:27:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2430,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1541:1:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "1510:32:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5472616e73616374696f6e20616c7265616479206578656375746564",
2018-09-26 09:19:53 +00:00
"id": 2432,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1544:30:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_3c3f7cf602281cf7a98efd78d98ba46309975dadee18bcb57e640145699bd800",
"typeString": "literal_string \"Transaction already executed\""
},
"value": "Transaction already executed"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_3c3f7cf602281cf7a98efd78d98ba46309975dadee18bcb57e640145699bd800",
"typeString": "literal_string \"Transaction already executed\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2426,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "1502:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2433,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1502:73:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2434,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1502:73:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2436,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2417,
"src": "1595:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2437,
"name": "signatures",
2018-05-31 13:01:02 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2413,
"src": "1612:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"id": 2435,
2018-05-31 13:01:02 +00:00
"name": "checkHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2527,
"src": "1585:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_bytes_memory_ptr_$returns$__$",
"typeString": "function (bytes32,bytes memory) view"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2438,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1585:38:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2439,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1585:38:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2444,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2440,
2018-05-31 13:01:02 +00:00
"name": "isExecuted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2394,
"src": "1686:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_uint256_$",
"typeString": "mapping(bytes32 => uint256)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2442,
2018-05-31 13:01:02 +00:00
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2441,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2417,
"src": "1697:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "1686:27:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
2018-09-26 09:19:53 +00:00
"id": 2443,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
2018-05-31 13:01:02 +00:00
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1716:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
2018-05-31 13:01:02 +00:00
},
"value": "1"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"src": "1686:31:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2445,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1686:31:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2449,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2403,
"src": "1769:2:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2450,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2405,
"src": "1773:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2451,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2407,
"src": "1780:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2452,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2409,
"src": "1786:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
],
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2447,
2018-05-31 13:01:02 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 900,
"src": "1735:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
},
2018-09-26 09:19:53 +00:00
"id": 2448,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "execTransactionFromModule",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1138,
"src": "1735:33:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$_t_enum$_Operation_$1658_$returns$_t_bool_$",
2018-05-31 13:01:02 +00:00
"typeString": "function (address,uint256,bytes memory,enum Enum.Operation) external returns (bool)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2453,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1735:61:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f742065786563757465207472616e73616374696f6e",
2018-09-26 09:19:53 +00:00
"id": 2454,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1798:31:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4",
"typeString": "literal_string \"Could not execute transaction\""
},
"value": "Could not execute transaction"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b0a2f29e31cc28eee068c27ff93342fb8d9840dcad25c6f669ce8154844930c4",
"typeString": "literal_string \"Could not execute transaction\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2446,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "1727:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2455,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1727:103:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2456,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1727:103:19"
2018-05-31 13:01:02 +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 nonce Nonce used for this Safe transaction.\n @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})",
2018-09-26 09:19:53 +00:00
"id": 2458,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execTransaction",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2414,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2403,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1237:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2402,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1237:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2405,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1258:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2404,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1258:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2407,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1282:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2406,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1282:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2409,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1303:24:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2408,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1658,
"src": "1303:14:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2411,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1338:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2410,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1338:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2413,
"name": "signatures",
2018-05-31 13:01:02 +00:00
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2458,
"src": "1361:16:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2412,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1361:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1227:156:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2415,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "1403:0:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "1203:634:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2526,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "1939:612:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"assignments": [
2018-09-26 09:19:53 +00:00
2466
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2466,
2018-05-31 13:01:02 +00:00
"name": "lastOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2001:17:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2465,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2001:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2470,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2468,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2029:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 2467,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "2021:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 2469,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2021:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2001:30:19"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2472,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2041:20:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2471,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2041:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2473,
2018-05-31 13:01:02 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2041:20:19"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2475,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2071:9:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2474,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2071:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2476,
2018-05-31 13:01:02 +00:00
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2071:9:19"
2018-05-31 13:01:02 +00:00
},
{
"assignments": [
2018-09-26 09:19:53 +00:00
2478
2018-05-31 13:01:02 +00:00
],
"declarations": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2478,
2018-05-31 13:01:02 +00:00
"name": "threshold",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "2090:17:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2477,
"name": "uint256",
2018-05-31 13:01:02 +00:00
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2090:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"id": 2484,
2018-05-31 13:01:02 +00:00
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2480,
2018-05-31 13:01:02 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 900,
"src": "2123:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
}
],
"expression": {
"argumentTypes": [
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
],
2018-09-26 09:19:53 +00:00
"id": 2479,
2018-05-31 13:01:02 +00:00
"name": "OwnerManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1652,
"src": "2110:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_OwnerManager_$1652_$",
2018-05-31 13:01:02 +00:00
"typeString": "type(contract OwnerManager)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2481,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2110:21:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_OwnerManager_$1652",
2018-05-31 13:01:02 +00:00
"typeString": "contract OwnerManager"
}
},
2018-09-26 09:19:53 +00:00
"id": 2482,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "getThreshold",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1588,
"src": "2110:34:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
"typeString": "function () view external returns (uint256)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2483,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2110:36:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
"nodeType": "VariableDeclarationStatement",
2018-09-26 09:19:53 +00:00
"src": "2090:56:19"
2018-05-31 13:01:02 +00:00
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2524,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "2230:315:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2501,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2495,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2244:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2497,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2460,
"src": "2270:15:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2498,
"name": "signatures",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2462,
"src": "2287:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2499,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2299:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
2018-05-31 13:01:02 +00:00
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"id": 2496,
"name": "recoverKey",
2018-05-31 13:01:02 +00:00
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1775,
"src": "2259:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_address_$",
"typeString": "function (bytes32,bytes memory,uint256) pure returns (address)"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"id": 2500,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2259:42:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2244:57:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 2502,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2244:57:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2508,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2353:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2505,
2018-05-31 13:01:02 +00:00
"name": "manager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 900,
"src": "2336:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
}
],
"expression": {
"argumentTypes": [
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ModuleManager_$1212",
2018-05-31 13:01:02 +00:00
"typeString": "contract ModuleManager"
}
],
2018-09-26 09:19:53 +00:00
"id": 2504,
2018-05-31 13:01:02 +00:00
"name": "OwnerManager",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1652,
"src": "2323:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_OwnerManager_$1652_$",
2018-05-31 13:01:02 +00:00
"typeString": "type(contract OwnerManager)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2506,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2323:21:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_OwnerManager_$1652",
2018-05-31 13:01:02 +00:00
"typeString": "contract OwnerManager"
}
},
2018-09-26 09:19:53 +00:00
"id": 2507,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isOwner",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1602,
"src": "2323:29:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view external returns (bool)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2509,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2323:43:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e6174757265206e6f742070726f7669646564206279206f776e6572",
2018-09-26 09:19:53 +00:00
"id": 2510,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2368:33:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
},
"value": "Signature not provided by owner"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_09247dae670daab7cf1923d3334eea07c14df3c0a8f5233960935c63f47104a9",
"typeString": "literal_string \"Signature not provided by owner\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2503,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "2315:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2511,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2315:87:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2512,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2315:87:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-09-26 09:19:53 +00:00
"id": 2516,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2514,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2424:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2515,
2018-05-31 13:01:02 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2466,
"src": "2439:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2424:24:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5369676e61747572657320617265206e6f74206f726465726564206279206f776e65722061646472657373",
2018-09-26 09:19:53 +00:00
"id": 2517,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2450:45:19",
2018-05-31 13:01:02 +00:00
"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"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_597a123a1bc14bc9690387ae0fec99721cc18eefa85fa2531a7593a762444235",
"typeString": "literal_string \"Signatures are not ordered by owner address\""
}
],
2018-09-26 09:19:53 +00:00
"id": 2513,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-10-05 15:26:48 +00:00
4018,
4019
2018-05-31 13:01:02 +00:00
],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4019,
2018-09-26 09:19:53 +00:00
"src": "2416:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 2518,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2416:80:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 2519,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2416:80:19"
2018-05-31 13:01:02 +00:00
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2522,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2520,
2018-05-31 13:01:02 +00:00
"name": "lastOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2466,
"src": "2510:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2521,
2018-05-31 13:01:02 +00:00
"name": "currentOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2472,
"src": "2522:12:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2510:24:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 2523,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2510:24:19"
2018-05-31 13:01:02 +00:00
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 2491,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2489,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2210:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2490,
2018-05-31 13:01:02 +00:00
"name": "threshold",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2478,
"src": "2214:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
2018-05-31 13:01:02 +00:00
}
},
2018-09-26 09:19:53 +00:00
"src": "2210:13:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-09-26 09:19:53 +00:00
"id": 2525,
2018-05-31 13:01:02 +00:00
"initializationExpression": {
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2487,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2485,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2203:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2486,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "2207:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "2203:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 2488,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2203:5:19"
2018-05-31 13:01:02 +00:00
},
"loopExpression": {
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2493,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2018-09-26 09:19:53 +00:00
"src": "2225:3:19",
2018-05-31 13:01:02 +00:00
"subExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2492,
2018-05-31 13:01:02 +00:00
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2475,
"src": "2225:1:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 2494,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2225:3:19"
2018-05-31 13:01:02 +00:00
},
"nodeType": "ForStatement",
2018-09-26 09:19:53 +00:00
"src": "2198:347:19"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 2527,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "checkHash",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2463,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2460,
2018-05-31 13:01:02 +00:00
"name": "transactionHash",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "1862:23:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2459,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1862:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2462,
"name": "signatures",
2018-05-31 13:01:02 +00:00
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2527,
"src": "1887:16:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2461,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1887:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
2018-05-31 13:01:02 +00:00
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1861:43:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2464,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "1939:0:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "1843:708:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 2560,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3045:113:19",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30783139",
2018-09-26 09:19:53 +00:00
"id": 2546,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "3094:4:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
},
"value": "0x19"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_25_by_1",
"typeString": "int_const 25"
}
],
2018-09-26 09:19:53 +00:00
"id": 2545,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "3089:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
2018-09-26 09:19:53 +00:00
"id": 2547,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3089:10:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 2549,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "3106:1:19",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 2548,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "3101:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_bytes1_$",
"typeString": "type(bytes1)"
},
"typeName": "byte"
},
2018-09-26 09:19:53 +00:00
"id": 2550,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3101:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2551,
2018-05-31 13:01:02 +00:00
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4070,
2018-09-26 09:19:53 +00:00
"src": "3110:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_StateChannelModule_$2562",
2018-05-31 13:01:02 +00:00
"typeString": "contract StateChannelModule"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2552,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2529,
"src": "3116:2:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2553,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2531,
"src": "3120:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2554,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2533,
"src": "3127:4:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2555,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2535,
"src": "3133:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2556,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 2537,
"src": "3144:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
"typeIdentifier": "t_bytes1",
"typeString": "bytes1"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_StateChannelModule_$2562",
2018-05-31 13:01:02 +00:00
"typeString": "contract StateChannelModule"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 2543,
2018-05-31 13:01:02 +00:00
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4002,
2018-09-26 09:19:53 +00:00
"src": "3072:3:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
2018-09-26 09:19:53 +00:00
"id": 2544,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodePacked",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "3072:16:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
"typeString": "function () pure returns (bytes memory)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2557,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3072:78:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
2018-09-26 09:19:53 +00:00
"id": 2542,
2018-05-31 13:01:02 +00:00
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-10-05 15:26:48 +00:00
"referencedDeclaration": 4009,
2018-09-26 09:19:53 +00:00
"src": "3062:9:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
2018-09-26 09:19:53 +00:00
"id": 2558,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3062:89:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 2541,
"id": 2559,
2018-05-31 13:01:02 +00:00
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "3055:96:19"
2018-05-31 13:01:02 +00:00
}
]
},
"documentation": "@dev Returns hash to be signed by owners.\n @param to Destination address.\n @param value Ether value.\n @param data Data payload.\n @param operation Operation type.\n @param nonce Transaction nonce.\n @return Transaction hash.",
2018-09-26 09:19:53 +00:00
"id": 2561,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTransactionHash",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 2538,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2529,
2018-05-31 13:01:02 +00:00
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2866:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2528,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2866:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2531,
2018-05-31 13:01:02 +00:00
"name": "value",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2887:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2530,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2887:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2533,
2018-05-31 13:01:02 +00:00
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2911:10:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2532,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2911:5:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2535,
2018-05-31 13:01:02 +00:00
"name": "operation",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2932:24:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
},
"typeName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 2534,
2018-05-31 13:01:02 +00:00
"name": "Enum.Operation",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 1658,
"src": "2932:14:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_enum$_Operation_$1658",
2018-05-31 13:01:02 +00:00
"typeString": "enum Enum.Operation"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2537,
2018-05-31 13:01:02 +00:00
"name": "nonce",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "2967:13:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2536,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2967:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2856:130:19"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 2541,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 2540,
2018-05-31 13:01:02 +00:00
"name": "",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 2561,
"src": "3032:7:19",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 2539,
2018-05-31 13:01:02 +00:00
"name": "bytes32",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3032:7:19",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "3031:9:19"
2018-05-31 13:01:02 +00:00
},
2018-09-26 09:19:53 +00:00
"scope": 2562,
"src": "2829:329:19",
2018-05-31 13:01:02 +00:00
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 2563,
"src": "320:2840:19"
2018-05-31 13:01:02 +00:00
}
],
2018-09-26 09:19:53 +00:00
"src": "0:3161:19"
2018-05-31 13:01:02 +00:00
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {
2018-06-29 11:23:01 +00:00
"4": {
2018-06-26 11:48:05 +00:00
"events": {},
"links": {},
2018-10-05 15:26:48 +00:00
"address": "0x1627ecb6ed8188b6bacbb3b10f96702afdfbf654",
"transactionHash": "0x75f57cb2a58b4fc7044f711e7480db922157fa23e235ebdce6d1c8fc6bc6b510"
},
"1538739975997": {
"events": {},
"links": {},
"address": "0xd833215cbcc3f914bd1c9ece3ee7bf8b14f841bb",
"transactionHash": "0xa05ff534671ab7a7cefd5ca6bf68d5b10ee19259c09bf33323810ebcedca7157"
2018-05-31 13:01:02 +00:00
}
},
2018-06-29 11:23:01 +00:00
"schemaVersion": "2.0.0",
2018-10-05 15:26:48 +00:00
"updatedAt": "2018-10-05T14:43:41.435Z"
2018-05-31 13:01:02 +00:00
}