package tezos-shell

  1. Overview
  2. Docs

Returns the Operation.t underlying an operation

A constructor for the operation datatype. It by-passes the checks done by the parse function.

val safe_binary_of_bytes : 'a Data_encoding.t -> bytes -> ('a, Tezos_error_monad.TzCore.error list) Stdlib.result

safe_binary_of_bytes encoding bytes parses bytes using encoding. Any error happening during parsing becomes Parse_error.

If one day the functor signature is simplified, tests could use parse_unsafe directly rather than relying on this function to replace Proto.operation_data_encoding.

TODO: https://gitlab.com/tezos/tezos/-/issues/1487 Move this function to data_encoding or tezos_base and consider not catching some exceptions

module type CHAIN_STORE = sig ... end
OCaml

Innovation. Community. Security.