package tezt-tezos

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tezt_tezos.CodecSource

Run octez-codec commands.

In all functions below, path can be used to override the path to octez-codec, which is Constant.tezos_codec by default.

Sourceval encode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> Tezt_wrapper.JSON.u -> string Lwt.t

Run octez-codec encode <name> from <json>.

Sourceval spawn_encode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> Tezt_wrapper.JSON.u -> Tezt_wrapper.Process.t

Same as encode, but do not wait for the process to exit.

Sourceval decode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> string -> Tezt_wrapper.JSON.t Lwt.t

Run octez-codec decode <name> from <binary>.

Sourceval spawn_decode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> string -> Tezt_wrapper.Process.t

Same as decode, but do not wait for the process to exit.

Sourceval dump_encodings : ?path:string -> unit -> Tezt_wrapper.JSON.t Lwt.t

Run octez-codec dump encodings.

Sourceval spawn_dump_encodings : ?path:string -> unit -> Tezt_wrapper.Process.t

Same as dump_encodings, but do not wait for the process to exit.

OCaml

Innovation. Community. Security.