Module Mavryk_shell_services.Preapply_result

type 'error t = {
  1. applied : (Mavryk_base.TzPervasives.Operation_hash.t * Mavryk_base.Operation.t) list;
    (*

    Applied operations

    *)
  2. refused : (Mavryk_base.Operation.t * 'error list) Mavryk_base.TzPervasives.Operation_hash.Map.t;
    (*

    Refused operations, for example because of an invalid signature

    *)
  3. outdated : (Mavryk_base.Operation.t * 'error list) Mavryk_base.TzPervasives.Operation_hash.Map.t;
    (*

    Outdated operations, for example a late endorsement

    *)
  4. branch_refused : (Mavryk_base.Operation.t * 'error list) Mavryk_base.TzPervasives.Operation_hash.Map.t;
    (*

    Branch refused operations, for example because of insufficient balance

    *)
  5. branch_delayed : (Mavryk_base.Operation.t * 'error list) Mavryk_base.TzPervasives.Operation_hash.Map.t;
    (*

    Branch delayed operations, for example because of a timestamp in the future

    *)
}

A container for classified operations

val empty : 'error t

empty t returns an empty instance of t: all collections * are initialized empty

val encoding : 'error list Mavryk_base.TzPervasives.Data_encoding.t -> 'error t Mavryk_base.TzPervasives.Data_encoding.t

encoding err_enc t, where err_enc is the encoding for errors, * returns an encoding for t