package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-shell-libs.proxy/Tezos_proxy/Proxy_getter/index.html

Module Tezos_proxy.Proxy_getterSource

module Local := Tezos_context_memory.Context
module Proof := Tezos_context_sigs.Context.Proof_types
Sourceval raw_context_size : Proof.raw_context -> int

The size of a tree, for logging

Sourcemodule type REQUESTS_TREE = sig ... end

The point of this data structure is as follows:

The point of this data structure is as follows:

Sourcemodule type M = sig ... end
Sourcetype proxy_m = (module M)
Sourcetype proxy_builder =
  1. | Of_rpc of Proxy_proto.proto_rpc -> proxy_m Lwt.t
    (*

    Build a proxy that uses network requests for all data.

    *)
  2. | Of_data_dir of Tezos_base.TzPervasives.Context_hash.t -> Tezos_protocol_environment.Proxy_delegate.t Tezos_base.TzPervasives.tzresult Lwt.t
    (*

    Build a proxy that looks up data in a running node's data dir.

    *)

The different ways to obtain data from the node. The two functions being wrapped are ultimately used to build Proxy_delegate.t values, that are passed to Proxy_context.empty.

Sourcetype rpc_context_args = {
  1. printer : Tezos_client_base.Client_context.printer option;
    (*

    Optional printer to display information in some custom format.

    *)
  2. proxy_builder : proxy_builder;
    (*

    Given the protocol implementation of the RPCs required by the proxy mode, how to build an instance of proxy_m that will then make it possible to build a Tezos_protocol_environment.Proxy_context.

    *)
  3. rpc_context : Tezos_rpc.Context.generic;
    (*

    How to perform RPC calls. We need such a value, because the proxy mode performs RPCs to initialize itself (by requesting the header) and also to fill Tezos_protocol_environment.Proxy_context on-demand.

    *)
  4. mode : Proxy.mode;
    (*

    Whether the client or the proxy server is running.

    *)
  5. chain : Tezos_shell_services.Block_services.chain;
    (*

    The chain to provide RPC calls for.

    *)
  6. block : Tezos_shell_services.Block_services.block;
    (*

    The block to provide RPC calls for.

    *)
}

Input data required by the proxy mode to build a Tezos_protocol_environment.rpc_context.

Sourceval make_delegate : rpc_context_args -> (module Proxy_proto.PROTO_RPC) -> Tezos_base.TzPervasives.Context_hash.t -> Tezos_protocol_environment.Proxy_delegate.t Tezos_base.TzPervasives.tzresult Lwt.t

Builds a proxy delegate in the way specified by the proxy_builder field of the rpc_context_args argument.

Functor to obtain the implementation of M for the proxy mode (as opposed to the light mode implementation)

Functor to obtain a generic implementation. Used by the light mode

Sourcemodule Internal : sig ... end

Exposed for testing purpose only, you should not use it directly

OCaml

Innovation. Community. Security.