package octez-shell-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Protocol store

type t

The type for the protocol store.

mem pstore proto_hash tests the existence of the protocol indexed by proto_hash in the store.

all pstore returns the set of all stored protocols in pstore.

raw_store pstore proto_hash proto_bytes stores on disk the protocol proto_bytes (encoded bytes) indexed as proto_hash. Returns None if the protocol already exists.

store pstore proto_hash protocol stores on disk the protocol protocol indexed as proto_hash. Returns None if the protocol already exists.

read pstore proto_hash reads from pstore and returns the protocol indexed by proto_hash. Returns None if the protocol cannot be read.

val init : [ `Store_dir ] Tezos_store_shared.Naming.directory -> t Lwt.t

init store_dir creates a store relatively to store_dir path or loads it if it already exists.

OCaml

Innovation. Community. Security.