Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype ContestationPeriod = UnsafeContestationPeriod {
- milliseconds :: DiffMilliSeconds
- contestationPeriodFromDiffTime :: NominalDiffTime -> ContestationPeriod
- contestationPeriodToDiffTime :: ContestationPeriod -> NominalDiffTime
- addContestationPeriod :: POSIXTime -> ContestationPeriod -> POSIXTime
Documentation
newtype ContestationPeriod Source #
UnsafeContestationPeriod | |
|
Instances
addContestationPeriod :: POSIXTime -> ContestationPeriod -> POSIXTime Source #
Compute the (on-chain) contestation deadline from a given current time and
the ContestationPeriod
.