package tezos-012-Psithaca-test-helpers

  1. Overview
  2. Docs
type t =
  1. | B of Block.t
  2. | I of Incremental.t
val get_level : t -> Tezos_protocol_012_Psithaca.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_baking_reward_fixed_portion : t -> Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_012_Psithaca.Protocol.Environment.Lwt.t
val get_bonus_reward : t -> endorsing_power:int -> Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_012_Psithaca.Protocol.Environment.Lwt.t
val get_endorsing_reward : t -> expected_endorsing_power:int -> Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_012_Psithaca.Protocol.Environment.Lwt.t
val get_liquidity_baking_subsidy : t -> Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t Tezos_base__TzPervasives.tzresult Tezos_protocol_012_Psithaca.Protocol.Environment.Lwt.t
val get_liquidity_baking_cpmm_address : t -> Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Contract.t Tezos_base__TzPervasives.tzresult Tezos_protocol_012_Psithaca.Protocol.Environment.Lwt.t
module Vote : sig ... end
module Contract : sig ... end
module Delegate : sig ... end
val init : ?rng_state:Random.State.t -> ?commitments: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Commitment.t list -> ?initial_balances:int64 list -> ?consensus_threshold:int -> ?min_proposal_quorum:int32 -> ?bootstrap_contracts: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Parameters.bootstrap_contract list -> ?level:int32 -> ?cost_per_byte:Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t -> ?liquidity_baking_subsidy: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t -> ?endorsing_reward_per_slot: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t -> ?baking_reward_bonus_per_slot: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t -> ?baking_reward_fixed_portion: Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t -> ?origination_size:int -> ?blocks_per_cycle:int32 -> int -> (Block.t * Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Contract.t list) Tezos_base__TzPervasives.tzresult Tezos_protocol_012_Psithaca.Protocol.Environment.Lwt.t

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