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

Hydra.Contract

Description

Things related to the Hydra smart contracts / script validators.

Synopsis

Documentation

data ScriptInfo Source #

Information about relevant Hydra scripts.

Constructors

ScriptInfo 

Fields

Instances

Instances details
ToJSON ScriptInfo Source # 
Instance details

Defined in Hydra.Contract

Methods

toJSON :: ScriptInfo -> Value

toEncoding :: ScriptInfo -> Encoding

toJSONList :: [ScriptInfo] -> Value

toEncodingList :: [ScriptInfo] -> Encoding

omitField :: ScriptInfo -> Bool

Generic ScriptInfo Source # 
Instance details

Defined in Hydra.Contract

Associated Types

type Rep ScriptInfo :: Type -> Type Source #

Show ScriptInfo Source # 
Instance details

Defined in Hydra.Contract

Eq ScriptInfo Source # 
Instance details

Defined in Hydra.Contract

type Rep ScriptInfo Source # 
Instance details

Defined in Hydra.Contract

type Rep ScriptInfo = D1 ('MetaData "ScriptInfo" "Hydra.Contract" "hydra-plutus-0.20.0-IsbXaBXaexydgY5jFspDP" 'False) (C1 ('MetaCons "ScriptInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "mintingScriptHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptHash) :*: S1 ('MetaSel ('Just "mintingScriptSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :*: (S1 ('MetaSel ('Just "initialScriptHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptHash) :*: (S1 ('MetaSel ('Just "initialScriptSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "commitScriptHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptHash)))) :*: ((S1 ('MetaSel ('Just "commitScriptSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: S1 ('MetaSel ('Just "headScriptHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptHash)) :*: (S1 ('MetaSel ('Just "headScriptSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: (S1 ('MetaSel ('Just "depositScriptHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptHash) :*: S1 ('MetaSel ('Just "depositScriptSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64))))))

scriptInfo :: ScriptInfo Source #

Gather ScriptInfo from the current Hydra scripts. This is useful to determine changes in between version of 'hydra-plutus'.