package tezos-protocol-alpha
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
val pp : Tezos_protocol_environment_alpha.Format.formatter -> t -> unit
Creation functions
val create :
first_round_duration:Period_repr.t ->
delay_increment_per_round:Period_repr.t ->
t Tezos_protocol_environment_alpha.Error_monad.tzresult
create ~first_round_duration ~delay_increment_per_round
creates a valid duration value
val create_opt :
first_round_duration:Period_repr.t ->
delay_increment_per_round:Period_repr.t ->
t option
create_opt ~first_round_duration ~delay_increment_per_round
returns a valid duration value Some d
when create ~first_round_duration ~delay_increment_per_round
does not fail. It returns None
otherwise.
val encoding : t Tezos_protocol_environment_alpha.Data_encoding.encoding
Warning May trigger an exception when the expected invariant does not hold.
Accessors
val round_duration : t -> round -> Period_repr.t
round_duration round_durations ~round
returns the duration of round ~round
. This duration follows the arithmetic progression
duration(round_n) = first_round_duration
+ round_n * delay_increment_per_round
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page