Shell_operation.MakeParserCreate a PARSER tailored to a given protocol.
module Proto : Tezos_protocol_environment.PROTOCOLtype protocol_operation = Proto.operationSimilar to the same type in the protocol, see Tezos_protocol_environment.PROTOCOL.operation
val parse :
Tezos_base.TzPervasives.Operation_hash.t ->
Tezos_base.Operation.t ->
protocol_operation operation Tezos_base.TzPervasives.tzresultparse hash op reads a usual Operation.t and lifts it to the type protocol_operation used by this module. This function is in the tzresult monad, because it can return the following errors:
Validation_errors.Oversized_operation if the size of the operation data within op is too large (to protect against DoS attacks), andValidation_errors.Parse_error if serialized data cannot be parsed.