ligo/src/proto_alpha/lib_delegate/client_baking_blocks.mli

50 lines
1.6 KiB
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
2018-02-06 00:17:03 +04:00
(* Copyright (c) 2014 - 2018. *)
2016-09-08 21:13:10 +04:00
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
open Proto_alpha
open Alpha_context
2016-09-08 21:13:10 +04:00
type block_info = {
hash: Block_hash.t ;
2018-02-16 04:26:24 +04:00
chain_id: Chain_id.t ;
2016-09-08 21:13:10 +04:00
predecessor: Block_hash.t ;
fitness: MBytes.t list ;
timestamp: Time.t ;
protocol: Protocol_hash.t ;
next_protocol: Protocol_hash.t ;
level: Raw_level.t ;
2016-09-08 21:13:10 +04:00
}
val info:
#Proto_alpha.rpc_context ->
?chain:Chain_services.chain ->
Block_services.block ->
block_info tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val monitor_valid_blocks:
#Proto_alpha.rpc_context ->
?chains:Chain_services.chain list ->
?protocols:Protocol_hash.t list ->
?next_protocols:Protocol_hash.t list ->
unit -> block_info tzresult Lwt_stream.t tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val monitor_heads:
#Proto_alpha.rpc_context ->
?next_protocols:Protocol_hash.t list ->
Chain_services.chain ->
block_info tzresult Lwt_stream.t tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val blocks_from_current_cycle:
#Proto_alpha.rpc_context ->
?chain:Chain_services.chain ->
Block_services.block ->
?offset:int32 ->
unit ->
Block_hash.t list tzresult Lwt.t