Module Injector.Inj_operation

Hash with b58check encoding iop(53), for ids of injector operations

type id = Id.t

Alias for L1 operations ids

type errors = {
  1. count : int;
  2. last_error : Mavryk_base.TzPervasives.tztrace option;
}

Structure to keep track of injection errors.

type t = private {
  1. id : id;
  2. operation : operation;
  3. mutable errors : errors;
}

The type of L1 operations that are injected on Mavryk. These have an id attached to them that allows tracking and retrieving their status.

val make : operation -> t

make op returns an L1 operation with the corresponding hash.

val encoding : t Mavryk_base.TzPervasives.Data_encoding.t

Encoding for L1 operations

val pp : Stdlib.Format.formatter -> t -> unit

Pretty printer for L1 operations. Only the relevant part for the rollup node is printed.

val register_error : t -> Mavryk_base.TzPervasives.tztrace -> unit

Register an error as occurring during injection of an operation. Its internal error counter is incremented.