hydra-tx-0.19.0: Hydra transaction library
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Tx.DepositDeadline

Synopsis

Documentation

newtype DepositDeadline Source #

A positive, non-zero number of seconds.

Instances

Instances details
Arbitrary DepositDeadline Source # 
Instance details

Defined in Hydra.Tx.DepositDeadline

FromJSON DepositDeadline Source # 
Instance details

Defined in Hydra.Tx.DepositDeadline

ToJSON DepositDeadline Source # 
Instance details

Defined in Hydra.Tx.DepositDeadline

Show DepositDeadline Source # 
Instance details

Defined in Hydra.Tx.DepositDeadline

Eq DepositDeadline Source # 
Instance details

Defined in Hydra.Tx.DepositDeadline

Ord DepositDeadline Source # 
Instance details

Defined in Hydra.Tx.DepositDeadline

depositFromNominalDiffTime :: MonadFail m => NominalDiffTime -> m DepositDeadline Source #

Create a DepositDeadline from a NominalDiffTime. This will fail if a negative NominalDiffTime is provided and truncates to 1s if values < 1s are given.