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

Hydra.Tx.CollectCom

Synopsis

Construction

collectComTx Source #

Arguments

:: NetworkId 
-> ScriptRegistry

Published Hydra scripts to reference.

-> VerificationKey PaymentKey

Party who's authorizing this transaction

-> HeadId

Head identifier

-> HeadParameters

Parameters of the head to collect .

-> (TxIn, TxOut CtxUTxO)

Everything needed to spend the Head state-machine output.

-> Map TxIn (TxOut CtxUTxO)

Data needed to spend the commit output produced by each party. Should contain the PT and is locked by ν_commit script.

-> UTxO

UTxO to be used to collect. Should match whatever is recorded in the commit inputs.

-> Tx 

Create a transaction collecting all "committed" utxo and opening a Head, i.e. driving the Head script state.

Observation

newtype UTxOHash Source #

Constructors

UTxOHash ByteString 

Instances

Instances details
Arbitrary UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

FromJSON UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Methods

parseJSON :: Value -> Parser UTxOHash

parseJSONList :: Value -> Parser [UTxOHash]

omittedField :: Maybe UTxOHash

ToJSON UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Methods

toJSON :: UTxOHash -> Value

toEncoding :: UTxOHash -> Encoding

toJSONList :: [UTxOHash] -> Value

toEncodingList :: [UTxOHash] -> Encoding

omitField :: UTxOHash -> Bool

Generic UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Associated Types

type Rep UTxOHash :: Type -> Type Source #

Show UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

HasTypeProxy UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Associated Types

data AsType UTxOHash #

SerialiseAsRawBytes UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Eq UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

type Rep UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

type Rep UTxOHash = D1 ('MetaData "UTxOHash" "Hydra.Tx.CollectCom" "hydra-tx-0.22.0-F0GpoikV7lPBPp4VCs3iEf" 'True) (C1 ('MetaCons "UTxOHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
data AsType UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

data CollectComObservation Source #

Instances

Instances details
FromJSON CollectComObservation Source # 
Instance details

Defined in Hydra.Tx.CollectCom

ToJSON CollectComObservation Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Generic CollectComObservation Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Associated Types

type Rep CollectComObservation :: Type -> Type Source #

Show CollectComObservation Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Eq CollectComObservation Source # 
Instance details

Defined in Hydra.Tx.CollectCom

type Rep CollectComObservation Source # 
Instance details

Defined in Hydra.Tx.CollectCom

type Rep CollectComObservation = D1 ('MetaData "CollectComObservation" "Hydra.Tx.CollectCom" "hydra-tx-0.22.0-F0GpoikV7lPBPp4VCs3iEf" 'False) (C1 ('MetaCons "CollectComObservation" 'PrefixI 'True) (S1 ('MetaSel ('Just "headId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HeadId) :*: S1 ('MetaSel ('Just "utxoHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTxOHash)))

observeCollectComTx Source #

Arguments

:: UTxO

A UTxO set to lookup tx inputs

-> Tx 
-> Maybe CollectComObservation 

Identify a collectCom tx by lookup up the input spending the Head output and decoding its redeemer.