{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/src/libraries/TypeHashHelper.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "library TypeHashHelper {\n    /**\n     * @notice Structural representation of transaction details\n     * @param operation type of operation\n     * @param to address to send tx to\n     * @param account address of safe\n     * @param executor address of executor if executed via executor plugin, address(0) if executed via execTransaction\n     * @param value txn value\n     * @param nonce txn nonce\n     * @param data txn callData\n     */\n    struct Transaction {\n        uint8 operation;\n        address to;\n        address account;\n        address executor;\n        uint256 value;\n        uint256 nonce;\n        bytes data;\n    }\n\n    /**\n     * @notice Type of validation struct to hash\n     * @param expiryEpoch max time till validity of the signature\n     * @param transactionStructHash txn digest generated using TypeHashHelper._buildTransactionStructHash()\n     * @param policyHash policy commit hash of the safe account\n     */\n    struct Validation {\n        uint32 expiryEpoch;\n        bytes32 transactionStructHash;\n        bytes32 policyHash;\n    }\n\n    /**\n     * @notice EIP712 typehash for transaction data\n     * @dev keccak256(\"ExecutionParams(address to,uint256 value,bytes data,uint8 operation,address account,address executor,uint256 nonce)\");\n     */\n    bytes32 public constant TRANSACTION_PARAMS_TYPEHASH =\n        0xfd4628b53a91b366f1977138e2eda53b93c8f5cc74bda8440f108d7da1e99290;\n\n    /**\n     * @notice EIP712 typehash for validation data\n     * @dev keccak256(\"ValidationParams(ExecutionParams executionParams,bytes32 policyHash,uint32 expiryEpoch)ExecutionParams(address to,uint256 value,bytes data,uint8 operation,address account,address executor,uint256 nonce)\")\n     */\n    bytes32 public constant VALIDATION_PARAMS_TYPEHASH =\n        0x0c7f653e0f641e41fbb4ed1440c7d0b08b8d2a19e1c35cfc98de2d47519e15b1;\n\n    /**\n     * @notice Builds EIP712 transaction struct hash\n     * @param txn transaction params struct\n     * @return transactionStructHash\n     */\n    function _buildTransactionStructHash(Transaction memory txn) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                TRANSACTION_PARAMS_TYPEHASH,\n                txn.to,\n                txn.value,\n                keccak256(txn.data),\n                txn.operation,\n                txn.account,\n                txn.executor,\n                txn.nonce\n            )\n        );\n    }\n\n    /**\n     * @notice Builds EIP712 validation struct hash\n     * @param validation validation params struct\n     * @return validationStructHash\n     */\n    function _buildValidationStructHash(Validation memory validation) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                VALIDATION_PARAMS_TYPEHASH,\n                validation.transactionStructHash,\n                validation.policyHash,\n                validation.expiryEpoch\n            )\n        );\n    }\n}"
}