2018-04-21 14:57:30 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
open RPC_context
|
|
|
|
|
2018-04-21 16:21:46 +04:00
|
|
|
val bootstrapped:
|
|
|
|
#streamed -> ((Block_hash.t * Time.t) Lwt_stream.t * stopper) tzresult Lwt.t
|
|
|
|
|
2018-04-21 14:57:30 +04:00
|
|
|
val valid_blocks:
|
|
|
|
#streamed ->
|
|
|
|
?chains:Chain_services.chain list ->
|
|
|
|
?protocols:Protocol_hash.t list ->
|
|
|
|
?next_protocols:Protocol_hash.t list ->
|
2018-06-06 17:15:44 +04:00
|
|
|
unit -> (((Chain_id.t * Block_hash.t) * Block_header.t) Lwt_stream.t * stopper) tzresult Lwt.t
|
2018-04-21 14:57:30 +04:00
|
|
|
|
|
|
|
val heads:
|
|
|
|
#streamed ->
|
|
|
|
?next_protocols:Protocol_hash.t list ->
|
|
|
|
Chain_services.chain ->
|
2018-06-06 17:15:44 +04:00
|
|
|
((Block_hash.t * Block_header.t) Lwt_stream.t * stopper) tzresult Lwt.t
|
2018-04-21 14:57:30 +04:00
|
|
|
|
2018-04-21 15:09:59 +04:00
|
|
|
val protocols:
|
|
|
|
#streamed ->
|
|
|
|
(Protocol_hash.t Lwt_stream.t * stopper) tzresult Lwt.t
|
|
|
|
|
2018-04-21 14:57:30 +04:00
|
|
|
module S : sig
|
|
|
|
|
2018-04-21 16:21:46 +04:00
|
|
|
val bootstrapped:
|
|
|
|
([ `GET ], unit,
|
|
|
|
unit, unit, unit,
|
|
|
|
Block_hash.t * Time.t) RPC_service.t
|
|
|
|
|
2018-04-21 14:57:30 +04:00
|
|
|
val valid_blocks:
|
|
|
|
([ `GET ], unit,
|
|
|
|
unit, < chains : Chain_services.chain list;
|
|
|
|
next_protocols : Protocol_hash.t list;
|
|
|
|
protocols : Protocol_hash.t list >, unit,
|
2018-06-06 17:15:44 +04:00
|
|
|
(Chain_id.t * Block_hash.t) * Block_header.t) RPC_service.t
|
2018-04-21 14:57:30 +04:00
|
|
|
|
|
|
|
val heads:
|
|
|
|
([ `GET ], unit,
|
|
|
|
unit * Chain_services.chain,
|
|
|
|
< next_protocols : Protocol_hash.t list >, unit,
|
2018-06-06 17:15:44 +04:00
|
|
|
Block_hash.t * Block_header.t) RPC_service.t
|
2018-04-21 14:57:30 +04:00
|
|
|
|
2018-04-21 15:09:59 +04:00
|
|
|
val protocols:
|
|
|
|
([ `GET ], unit,
|
|
|
|
unit, unit, unit,
|
|
|
|
Protocol_hash.t) RPC_service.t
|
|
|
|
|
2018-04-21 14:57:30 +04:00
|
|
|
end
|
|
|
|
|