Module Mavkit_smart_rollup_node.Metadata

type genesis_info = {
  1. level : int32;
  2. commitment_hash : Mavkit_smart_rollup.Commitment.Hash.t;
}
module V0 : sig ... end
module V1 : sig ... end
module Versioned : sig ... end
include module type of V1
type t = {
  1. rollup_address : Mavkit_smart_rollup.Address.t;
  2. context_version : Mavryk_layer2_store.Context.Version.t;
  3. kind : Mavkit_smart_rollup.Kind.t;
  4. genesis_info : genesis_info;
}
val read_metadata_file : dir:string -> t option Mavryk_base.TzPervasives.tzresult Lwt.t

Read the metadata file from dir.

val write_metadata_file : dir:string -> t -> unit Mavryk_base.TzPervasives.tzresult Lwt.t

Write a metadata to the metadata file in dir.