Module util

Module util 

Source
Expand description

Utility functions

Constantsยง

HOUR ๐Ÿ”’
MilliSeconds in an hour

Functionsยง

generate_genesis
Generate a deterministic genesis event corresponding to the DAGโ€™s configuration.
hours_since ๐Ÿ”’
Calculate the number of hours since a given timestamp.
millis_until_next_rotation
Calculate the time in milliseconds until the next_rotation, given as a timestamp. next_rotation here represents a timestamp in UNIX epoch format.
next_hour_timestamp ๐Ÿ”’
Calculate the next hour timestamp given a number of hours. If hours is 0, calculate the timestamp of this hour.
next_rotation_timestamp
Calculate the timestamp of the next DAG rotation.
recreate_from_replayer_log
replayer_log ๐Ÿ”’