package tezos-proxy

  1. Overview
  2. Docs
module type Proxy_sig = sig ... end

The module type of a proxy environment. Modules of this type should be prepared protocol-side and registered here to become available to the proxy facility.

type proxy_environment = (module Proxy_sig)
val register_proxy_context : proxy_environment -> unit

register_proxy_context env adds a proxy environment to the list of known environments. Raise Invalid_argument if an environment for the given protocol exists already.

val get_all_registered : unit -> proxy_environment list

get_all_registered () returns all proxy environments that have been registered so far with register_proxy_context

Returns a proxy environment for the given protocol (or the first one in the list of registered protocols if the Protocol_hash.t is None, see the Registration module).