package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-shell-libs.shell/Tezos_shell/Shell_operation/MakeParser/index.html

Module Shell_operation.MakeParserSource

Create a PARSER tailored to a given protocol.

Parameters

Signature

Sourcetype protocol_operation = Proto.operation

Similar to the same type in the protocol, see Tezos_protocol_environment.PROTOCOL.operation

Sourceval parse : Tezos_base.TzPervasives.Operation_hash.t -> Tezos_base.Operation.t -> protocol_operation operation Tezos_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), and
  • Validation_errors.Parse_error if serialized data cannot be parsed.
OCaml

Innovation. Community. Security.