hydra-plutus-0.20.0: Hydra Plutus Contracts
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Data.ContestationPeriod

Synopsis

Documentation

newtype ContestationPeriod Source #

Constructors

UnsafeContestationPeriod 

Fields

Instances

Instances details
Arbitrary ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

FromJSON ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

ToJSON ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Generic ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Associated Types

type Rep ContestationPeriod :: Type -> Type Source #

Num ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Show ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Eq ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Ord ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Eq ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

FromData ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Methods

fromBuiltinData :: BuiltinData -> Maybe ContestationPeriod

ToData ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Methods

toBuiltinData :: ContestationPeriod -> BuiltinData

UnsafeFromData ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

Methods

unsafeFromBuiltinData :: BuiltinData -> ContestationPeriod

type Rep ContestationPeriod Source # 
Instance details

Defined in Hydra.Data.ContestationPeriod

type Rep ContestationPeriod = D1 ('MetaData "ContestationPeriod" "Hydra.Data.ContestationPeriod" "hydra-plutus-0.20.0-LbBW0QYa4oSFBvNyDrDbFg" 'True) (C1 ('MetaCons "UnsafeContestationPeriod" 'PrefixI 'True) (S1 ('MetaSel ('Just "milliseconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffMilliSeconds)))

addContestationPeriod :: POSIXTime -> ContestationPeriod -> POSIXTime Source #

Compute the (on-chain) contestation deadline from a given current time and the ContestationPeriod.