Module Sync_ledger.Any_ledger

type 'a t
val t_of_sexp : ( Sexplib0__.Sexp.t -> 'a ) -> Sexplib0__.Sexp.t -> 'a t
val sexp_of_t : ( 'a -> Sexplib0__.Sexp.t ) -> 'a t -> Sexplib0__.Sexp.t
type diff
type index = int
module Responder : sig ... end
val create : Mina_ledger__Ledger.Any_ledger.witness -> logger:Logger.t -> trust_system:Trust_system.t -> 'a t
val query_reader : 'a t -> (Snark_params.Tick.Field.t * Mina_ledger__Ledger.Location.Addr.t Syncable_ledger.Query.t) Pipe_lib.Linear_pipe.Reader.t
val destroy : 'a t -> unit
val new_goal : 'a t -> Snark_params.Tick.Field.t -> data:'a -> equal:( 'a -> 'a -> bool ) -> [ `New | `Repeat | `Update_data ]
val peek_valid_tree : 'a t -> Mina_ledger__Ledger.Any_ledger.witness option
val valid_tree : 'a t -> (Mina_ledger__Ledger.Any_ledger.witness * 'a) Async_kernel.Deferred.t
val wait_until_valid : 'a t -> Snark_params.Tick.Field.t -> [ `Ok of Mina_ledger__Ledger.Any_ledger.witness | `Target_changed of Snark_params.Tick.Field.t option * Snark_params.Tick.Field.t ] Async_kernel.Deferred.t
val fetch : 'a t -> Snark_params.Tick.Field.t -> data:'a -> equal:( 'a -> 'a -> bool ) -> [ `Ok of Mina_ledger__Ledger.Any_ledger.witness | `Target_changed of Snark_params.Tick.Field.t option * Snark_params.Tick.Field.t ] Async_kernel.Deferred.t
val apply_or_queue_diff : 'a t -> diff -> unit
val merkle_path_at_addr : 'a t -> Mina_ledger__Ledger.Location.Addr.t -> [ `Left of Mina_base.Ledger_hash.t | `Right of Mina_base.Ledger_hash.t ] list Core_kernel.Or_error.t