package tezos-011-PtHangz2-test-helpers

  1. Overview
  2. Docs
type t =
  1. | B of Block.t
  2. | I of Incremental.t
val get_level : t -> Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Raw_level.t Tezos_base__TzPervasives.tzresult

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_011_PtHangz2.Protocol.Environment.Time.t Tezos_base__TzPervasives.tzresult Tezos_protocol_011_PtHangz2.Protocol.Environment.Lwt.t
val get_baking_reward : t -> priority:int -> endorsing_power:int -> Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_011_PtHangz2.Protocol.Environment.Lwt.t
val get_endorsing_reward : t -> priority:int -> endorsing_power:int -> Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_011_PtHangz2.Protocol.Environment.Lwt.t
val get_liquidity_baking_subsidy : t -> Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_011_PtHangz2.Protocol.Environment.Lwt.t
val get_liquidity_baking_cpmm_address : t -> Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Contract.t Tezos_base__TzPervasives.tzresult Tezos_protocol_011_PtHangz2.Protocol.Environment.Lwt.t
module Vote : sig ... end
module Contract : sig ... end
module Delegate : sig ... end
val init : ?rng_state:Random.State.t -> ?endorsers_per_block:int -> ?with_commitments:bool -> ?initial_balances:int64 list -> ?initial_endorsers:int -> ?min_proposal_quorum:int32 -> ?time_between_blocks: Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Period.t list -> ?minimal_block_delay: Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Period.t -> ?delay_per_missing_endorsement: Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Period.t -> ?bootstrap_contracts: Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Parameters.bootstrap_contract list -> ?level:int32 -> ?cost_per_byte:Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Tez.t -> ?liquidity_baking_subsidy: Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Tez.t -> int -> (Block.t * Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Contract.t list) Tezos_base__TzPervasives.tzresult Tezos_protocol_011_PtHangz2.Protocol.Environment.Lwt.t

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