Shell_operation.MakeParser
Create a PARSER
tailored to a given protocol.
type protocol_operation = Proto.operation
Similar to the same type in the protocol, see Mavryk_protocol_environment.PROTOCOL.operation
val parse :
Mavryk_base.TzPervasives.Operation_hash.t ->
Mavryk_base.Operation.t ->
protocol_operation operation Mavryk_base.TzPervasives.tzresult
parse 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.