Mavryk_store_shared.Naming
The 'kind aims to be used to reflect in the type system the directory name to ease the readability of the code. E.g. [[`Block]] directory
.
type ('kind, 'data) encoded_file = 'data Mavryk_stdlib_unix.Stored_data.file
val dir_path : 'kind directory -> string
val file_path : 'kind file -> string
val is_json_file : ('kind, 'data) encoded_file -> bool
val make_encoded_file :
?json:bool ->
'kind directory ->
filename:string ->
'a Mavryk_base.TzPervasives.Data_encoding.t ->
('a -> 'a -> bool) ->
('kind, 'a) encoded_file
val encoded_file_path : ('kind, 'data) encoded_file -> string
val file_encoding :
('kind, 'data) encoded_file ->
'data Mavryk_base.TzPervasives.Data_encoding.t
val store_dir : dir_path:string -> [ `Store_dir ] directory
val protocol_file :
[ `Protocol_dir ] directory ->
Mavryk_base.TzPervasives.Protocol_hash.t ->
[ `Protocol ] file
Protocol file
val chain_dir :
[< `Store_dir | `Testchains_dir ] directory ->
Mavryk_base.TzPervasives.Chain_id.t ->
[ `Chain_dir ] directory
val chain_config_file :
[ `Chain_dir ] directory ->
([ `Chain_config ], Store_types.chain_config) encoded_file
val protocol_levels_file :
[< `Chain_dir ] directory ->
([ `Protocol_levels ],
Store_types.Protocol_levels.protocol_info Store_types.Protocol_levels.t)
encoded_file
val legacy_protocol_levels_file :
[< `Chain_dir ] directory ->
([ `Protocol_levels ],
Store_types.Protocol_levels.Legacy.activation_block
Store_types.Protocol_levels.Legacy.t)
encoded_file
val genesis_block_file :
[ `Chain_dir ] directory ->
([ `Genesis_block ], Block_repr.t) encoded_file
val current_head_file :
[ `Chain_dir ] directory ->
([ `Current_head ], Store_types.block_descriptor) encoded_file
val cementing_highwatermark_file :
[ `Chain_dir ] directory ->
([ `Cementing_highwatermark ], int32 option) encoded_file
val checkpoint_file :
[ `Chain_dir ] directory ->
([ `Checkpoint ], Store_types.block_descriptor) encoded_file
val target_file :
[ `Chain_dir ] directory ->
([ `Target ], Store_types.block_descriptor option) encoded_file
val invalid_blocks_file :
[ `Chain_dir ] directory ->
([ `Invalid_blocks ],
Store_types.invalid_block Mavryk_base.TzPervasives.Block_hash.Map.t)
encoded_file
val forked_chains_file :
[ `Chain_dir ] directory ->
([ `Forked_chains ],
Mavryk_base.TzPervasives.Block_hash.t
Mavryk_base.TzPervasives.Chain_id.Map.t)
encoded_file
val savepoint_file :
[ `Chain_dir ] directory ->
([ `Savepoint ], Store_types.block_descriptor) encoded_file
val caboose_file :
[ `Chain_dir ] directory ->
([ `Caboose ], Store_types.block_descriptor) encoded_file
val block_store_status_file :
[ `Chain_dir ] directory ->
([ `Status ], block_store_status) encoded_file
The type of floating store's kind.
val floating_blocks_dir :
[ `Chain_dir ] directory ->
floating_kind ->
[ `Floating_dir ] directory
val snapshot_dir : ?snapshot_path:string -> unit -> [ `Snapshot_dir ] directory
val snapshot_protocol_levels_file :
[< `Snapshot_dir | `Snapshot_tmp_dir | `Tar_archive ] directory ->
([ `Snapshot_protocol_levels ],
Store_types.Protocol_levels.protocol_info Store_types.Protocol_levels.t)
encoded_file
val snapshot_tar_root : [ `Tar_archive ] directory