package tezos-alpha-test-helpers

  1. Overview
  2. Docs
type t =
  1. | B of Block.t
  2. | I of Incremental.t

Returns the seed of the cycle to which the block belongs to.

Returns all the constants of the protocol

val get_minimal_valid_time : t -> priority:int -> endorsing_power:int -> (Tezos_protocol_alpha.Protocol.Environment.Time.t, Tezos_error_monad.TzCore.error list) Stdlib.result Tezos_protocol_alpha.Protocol.Environment.Lwt.t
val get_baking_reward : t -> priority:int -> endorsing_power:int -> (Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t, Tezos_error_monad.TzCore.error list) Stdlib.result Tezos_protocol_alpha.Protocol.Environment.Lwt.t
val get_endorsing_reward : t -> priority:int -> endorsing_power:int -> (Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t, Tezos_error_monad.TzCore.error list) Stdlib.result Tezos_protocol_alpha.Protocol.Environment.Lwt.t
module Vote : sig ... end
module Contract : sig ... end
module Delegate : sig ... end
val init : ?endorsers_per_block:int -> ?with_commitments:bool -> ?initial_balances:int64 list -> ?initial_endorsers:int -> ?min_proposal_quorum:int32 -> int -> (Block.t * Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t list, Tezos_error_monad.TzCore.error list) Stdlib.result Tezos_protocol_alpha.Protocol.Environment.Lwt.t

init n : returns an initial block with n initialized accounts and the associated implicit contracts

OCaml

Innovation. Community. Security.