package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-shell-libs.mockup/Tezos_mockup/Persistence/index.html

Module Tezos_mockup.PersistenceSource

include Persistence_intf.S

Returns a mockup environment for the default protocol (which is the first in the list of registered protocol, cf Registration module).

Sourceval init_mockup_context_by_protocol_hash : cctxt:Tezos_client_base.Client_context.printer -> protocol_hash:Tezos_base.TzPervasives.Protocol_hash.t -> constants_overrides_json:Tezos_base.TzPervasives.Data_encoding.json option -> bootstrap_accounts_json:Tezos_base.TzPervasives.Data_encoding.json option -> (Tezos_mockup_registration.Registration.mockup_environment * Tezos_mockup_registration.Registration.mockup_context) Tezos_base.TzPervasives.tzresult Lwt.t

Returns a mockup environment for the specified protocol hash.

Sourceval get_mockup_context_from_disk : base_dir:string -> protocol_hash:Tezos_base.TzPervasives.Protocol_hash.t option -> Tezos_client_base.Client_context.printer -> (Tezos_mockup_registration.Registration.mockup_environment * Tezos_mockup_registration.Registration.mockup_context) Tezos_base.TzPervasives.tzresult Lwt.t

Load a mockup environment and initializes a protocol RPC context from a mockup base directory. If the protocol is specified, check that the loaded environment agrees with it.

Sourceval create_mockup : cctxt:Tezos_client_base.Client_context.full -> protocol_hash:Tezos_base.TzPervasives.Protocol_hash.t -> constants_overrides_json:Tezos_base.TzPervasives.Data_encoding.json option -> bootstrap_accounts_json:Tezos_base.TzPervasives.Data_encoding.json option -> asynchronous:bool -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Initializes an on-disk mockup environment in base_dir for the specified protocol.

Sourceval overwrite_mockup : protocol_hash:Tezos_base.TzPervasives.Protocol_hash.t -> chain_id:Tezos_base.TzPervasives.Chain_id.t -> rpc_context:Tezos_protocol_environment.rpc_context -> protocol_data:bytes -> base_dir:string -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Overwrites an on-disk mockup environment.

Base directory states

Sourcetype base_dir_class =
  1. | Base_dir_does_not_exist
  2. | Base_dir_is_file
  3. | Base_dir_is_mockup
  4. | Base_dir_is_nonempty
  5. | Base_dir_is_empty
Sourceval pp_base_dir_class : Format.formatter -> base_dir_class -> unit
Sourceval classify_base_dir : string -> base_dir_class Tezos_base.TzPervasives.tzresult Lwt.t

Test whether base directory is a valid target for loading or creating a mockup environment.

Sourcemodule type S = Persistence_intf.S
Sourcemodule Internal_for_tests : sig ... end
OCaml

Innovation. Community. Security.